mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 19:37:34 +00:00
LibWeb: Move set_needs_display() from layout node to paintable
For this method, there is no need to go through the layout node when we can directly reach the paintable.
This commit is contained in:
parent
814bed33b4
commit
7c2713c14f
21 changed files with 97 additions and 87 deletions
|
@ -165,7 +165,9 @@ public:
|
|||
[[nodiscard]] HTML::BrowsingContext const& browsing_context() const;
|
||||
[[nodiscard]] HTML::BrowsingContext& browsing_context();
|
||||
|
||||
void set_needs_display() const { const_cast<Layout::Node&>(*m_layout_node).set_needs_display(); }
|
||||
JS::GCPtr<HTML::Navigable> navigable() const;
|
||||
|
||||
virtual void set_needs_display() const;
|
||||
|
||||
Layout::Box const* containing_block() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue