mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
LibWeb: Change viewport ownership from BrowsingContext
to Navigable
This commit is contained in:
parent
4356d37b2c
commit
dd7bba66ed
23 changed files with 196 additions and 129 deletions
|
@ -63,8 +63,11 @@ bool Box::is_user_scrollable() const
|
|||
|
||||
void Box::set_needs_display()
|
||||
{
|
||||
if (!navigable())
|
||||
return;
|
||||
|
||||
if (paintable_box())
|
||||
browsing_context().set_needs_display(paintable_box()->absolute_rect());
|
||||
navigable()->set_needs_display(paintable_box()->absolute_rect());
|
||||
}
|
||||
|
||||
bool Box::is_body() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue