1
Fork 0
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:
Sam Atkins 2021-09-19 17:16:00 +01:00 committed by Andreas Kling
parent 14dc20118c
commit 912596fae8
2 changed files with 41 additions and 6 deletions

View file

@ -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);
};
}