mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:08:10 +00:00
LibWeb: Virtualize Layout::Node::paint_fragment()
LineBoxFragment no longer needs to care what type of layout node a fragment refers to during paint, it can just call paint_fragment(). :^)
This commit is contained in:
parent
c189897e29
commit
f35b406dfb
4 changed files with 4 additions and 8 deletions
|
@ -127,6 +127,7 @@ public:
|
|||
|
||||
virtual void before_children_paint(PaintContext&, PaintPhase) {};
|
||||
virtual void paint(PaintContext&, PaintPhase);
|
||||
virtual void paint_fragment(PaintContext&, const LineBoxFragment&, PaintPhase) const { }
|
||||
virtual void after_children_paint(PaintContext&, PaintPhase) {};
|
||||
|
||||
bool is_floating() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue