mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 09:07:44 +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
|
@ -2568,9 +2568,4 @@ void Painter::draw_scaled_bitmap_with_transform(IntRect const& dst_rect, Bitmap
|
|||
}
|
||||
}
|
||||
|
||||
void Painter::set_clip_rect(IntRect const& rect)
|
||||
{
|
||||
state().clip_rect = rect.intersected(m_target->rect());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -177,7 +177,6 @@ public:
|
|||
}
|
||||
|
||||
IntRect clip_rect() const { return state().clip_rect; }
|
||||
void set_clip_rect(IntRect const&);
|
||||
|
||||
int scale() const { return state().scale; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue