mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:37:45 +00:00
LibWeb: Make StackingContext point to paint tree instead of layout tree
Eventually we should not need the layout tree for anything when painting and this code will only look at the paint tree. For now, this is just another step in that direction.
This commit is contained in:
parent
1e0ea45fe5
commit
d296992fb3
6 changed files with 86 additions and 100 deletions
|
@ -56,6 +56,13 @@ class Paintable
|
|||
public:
|
||||
virtual ~Paintable() = default;
|
||||
|
||||
[[nodiscard]] bool is_positioned() const { return layout_node().is_positioned(); }
|
||||
[[nodiscard]] bool is_fixed_position() const { return layout_node().is_fixed_position(); }
|
||||
[[nodiscard]] bool is_absolutely_positioned() const { return layout_node().is_absolutely_positioned(); }
|
||||
[[nodiscard]] bool is_floating() const { return layout_node().is_floating(); }
|
||||
[[nodiscard]] bool is_inline() const { return layout_node().is_inline(); }
|
||||
[[nodiscard]] CSS::Display display() const { return layout_node().display(); }
|
||||
|
||||
template<typename U, typename Callback>
|
||||
TraversalDecision for_each_in_inclusive_subtree_of_type(Callback callback) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue