1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:07:36 +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

@ -15,11 +15,7 @@ public:
InlineNode(DOM::Document&, DOM::Element*, NonnullRefPtr<CSS::StyleProperties>);
virtual ~InlineNode() override;
void paint_inline(PaintContext&, Painting::PaintPhase) const;
private:
template<typename Callback>
void for_each_fragment(Callback) const;
virtual OwnPtr<Painting::Paintable> create_paintable() const override;
};
}