1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 11:45:06 +00:00

LibWeb: Let subframes propagate paint invalidations via host element

When a paint invalidation occurs inside a subframe, it bubbles up to
Frame::set_needs_display(). From there, we call PageView if this is
the main frame, or otherwise invalidate the subframe host element.
This commit is contained in:
Andreas Kling 2020-06-07 14:56:29 +02:00
parent 59f9b32a44
commit 3ae3729b4e
5 changed files with 30 additions and 17 deletions

View file

@ -79,11 +79,6 @@ void HTMLIFrameElement::load_src(const String& value)
return;
}
m_hosted_frame->on_set_needs_display = [this](auto&) {
if (layout_node())
layout_node()->set_needs_display();
};
m_hosted_frame->loader().load(url);
}