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:
parent
053766d79c
commit
aae356baf1
7 changed files with 184 additions and 126 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue