1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:47:45 +00:00

LibWeb: Make Paintable visit its cached containing block pointer

This was *probably* already safe, but there's no harm in making sure
the cached pointer gets marked during GC.
This commit is contained in:
Andreas Kling 2023-01-11 14:36:27 +01:00
parent 6b4062ab61
commit 811b8a25c2
2 changed files with 3 additions and 1 deletions

View file

@ -141,7 +141,7 @@ protected:
private:
JS::NonnullGCPtr<Layout::Node> m_layout_node;
Optional<Layout::BlockContainer*> mutable m_containing_block;
Optional<JS::GCPtr<Layout::BlockContainer>> mutable m_containing_block;
};
inline DOM::Node* HitTestResult::dom_node()