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

LibWeb: Port inline elements to the new Paintable system

This patch adds InlinePaintable which corresponds to Layout::InlineNode.
This commit is contained in:
Andreas Kling 2022-03-10 15:38:34 +01:00
parent 053766d79c
commit aae356baf1
7 changed files with 184 additions and 126 deletions

View file

@ -25,6 +25,7 @@ public:
virtual void after_children_paint(PaintContext&, PaintPhase) const { }
Layout::Node const& layout_node() const { return m_layout_node; }
auto const& computed_values() const { return m_layout_node.computed_values(); }
protected:
explicit Paintable(Layout::Node const& layout_node)
@ -48,7 +49,6 @@ public:
Layout::Box const& layout_box() const { return static_cast<Layout::Box const&>(Paintable::layout_node()); }
auto const& box_model() const { return layout_box().box_model(); }
auto const& computed_values() const { return layout_box().computed_values(); }
struct OverflowData {
Gfx::FloatRect scrollable_overflow_rect;