mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:57:43 +00:00
LibWeb: Don't paint non-visible frames
This fixes an issue where iframes hidden with CSS `visibility: none` would still be visible.
This commit is contained in:
parent
e2ae286132
commit
94d54069f4
1 changed files with 3 additions and 0 deletions
|
@ -30,6 +30,9 @@ Layout::FrameBox const& NestedBrowsingContextPaintable::layout_box() const
|
|||
|
||||
void NestedBrowsingContextPaintable::paint(PaintContext& context, PaintPhase phase) const
|
||||
{
|
||||
if (!layout_box().is_visible())
|
||||
return;
|
||||
|
||||
PaintableBox::paint(context, phase);
|
||||
|
||||
if (phase == PaintPhase::Foreground) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue