diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-09-19 17:16:00 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-09-19 22:53:35 +0200 |
commit | 912596fae8d1030e4511b80dd64bfebdf7c21328 (patch) | |
tree | a9c25b669b205b8d747522715f37096a26b02d16 /Userland/Libraries/LibWeb/Layout/InlineNode.h | |
parent | 14dc20118c3f4aa3293ee92d34a62330f091af40 (diff) | |
download | serenity-912596fae8d1030e4511b80dd64bfebdf7c21328.zip |
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. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/InlineNode.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/InlineNode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/InlineNode.h b/Userland/Libraries/LibWeb/Layout/InlineNode.h index e2e39600f3..a630de43b7 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineNode.h +++ b/Userland/Libraries/LibWeb/Layout/InlineNode.h @@ -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); }; } |