mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:48:12 +00:00
LibWeb: Paint line box fragments during all paint phases
Fragment painting was very limited by only being called during the foreground paint phase. We now paint fragments as part of every phase (and the phase is passed to paint_fragment() of course!)
This commit is contained in:
parent
d129e68da8
commit
311e1039b5
5 changed files with 47 additions and 45 deletions
|
@ -46,7 +46,7 @@ public:
|
|||
virtual const char* class_name() const override { return "TextNode"; }
|
||||
virtual bool is_text() const final { return true; }
|
||||
|
||||
void paint_fragment(PaintContext&, const LineBoxFragment&) const;
|
||||
void paint_fragment(PaintContext&, const LineBoxFragment&, PaintPhase) const;
|
||||
|
||||
virtual void split_into_lines(BlockBox& container, LayoutMode) override;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue