1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +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:
Andreas Kling 2022-08-05 12:24:36 +02:00
parent e2ae286132
commit 94d54069f4

View file

@ -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) {