mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
LibWeb: Give InlineNodes a background
This now uses the same code as Box, so images, repeat-rules, and anything that's added in the future will work for `display: inline` elements too. :^)
This commit is contained in:
parent
14dc20118c
commit
912596fae8
2 changed files with 41 additions and 6 deletions
|
@ -18,6 +18,10 @@ public:
|
|||
virtual void paint(PaintContext&, PaintPhase) override;
|
||||
|
||||
virtual void split_into_lines(InlineFormattingContext&, LayoutMode) override;
|
||||
|
||||
private:
|
||||
template<typename Callback>
|
||||
void for_each_fragment(Callback);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue