mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:37:36 +00:00
Revert "LibWeb: Fix clip of hidden overflow..."
This reverts commit eb1ef59603c13c43b87c099c43c4d118dc8441f6. The idea of saving clip box to apply it to handle `overflow: hidden` turned out to break painting if box is painted before it's containing block (it is possible if box has negative z-index).
This commit is contained in:
parent
8f3c343b88
commit
87fa1c5e66
4 changed files with 24 additions and 23 deletions
|
@ -98,7 +98,7 @@ public:
|
|||
return m_overflow_data->scrollable_overflow_rect;
|
||||
}
|
||||
|
||||
Optional<Gfx::IntRect> clip_rect() const;
|
||||
Optional<CSSPixelRect> clip_rect() const;
|
||||
|
||||
void set_overflow_data(Optional<OverflowData> data) { m_overflow_data = move(data); }
|
||||
void set_containing_line_box_fragment(Optional<Layout::LineBoxFragmentCoordinate>);
|
||||
|
@ -157,7 +157,7 @@ private:
|
|||
Optional<CSSPixelRect> mutable m_absolute_rect;
|
||||
Optional<CSSPixelRect> mutable m_absolute_paint_rect;
|
||||
|
||||
Gfx::IntRect mutable m_clip_rect;
|
||||
Optional<CSSPixelRect> mutable m_clip_rect;
|
||||
|
||||
mutable bool m_clipping_overflow { false };
|
||||
Optional<BorderRadiusCornerClipper> mutable m_overflow_corner_radius_clipper;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue