mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:57:35 +00:00
LibWeb: Add Paintable::stacking_context_rooted_here()
This is a convenience helper that lets you get the stacking context rooted at a given paintable, without checking that the paintable is a box first.
This commit is contained in:
parent
2138c164c9
commit
268492413a
3 changed files with 12 additions and 2 deletions
|
@ -134,6 +134,8 @@ public:
|
|||
template<typename T>
|
||||
bool fast_is() const = delete;
|
||||
|
||||
StackingContext const* stacking_context_rooted_here() const;
|
||||
|
||||
protected:
|
||||
explicit Paintable(Layout::Node const& layout_node)
|
||||
: m_layout_node(layout_node)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue