diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2021-11-04 16:51:34 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-10 14:38:49 +0100 |
commit | 1e53768f1bd13ab9e259ce06488e4115d8e2fb85 (patch) | |
tree | e48f9a7c4bf8008b492c8ff2fb8f86d1bbae5ac9 /Userland/Libraries/LibWeb/Layout/InlineNode.cpp | |
parent | 5d0acb63ae4844a12733c8db1c7469cea846b529 (diff) | |
download | serenity-1e53768f1bd13ab9e259ce06488e4115d8e2fb85.zip |
LibWeb: Combine background-repeat-x/y pseudo-properties
While right now this doesn't save much complexity, it will do once we
care about multiple background layers per node. Then, having a single
repeat value per layer will simplify things.
It also means we can remove the pseudo-property concept entirely! :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/InlineNode.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/InlineNode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/InlineNode.cpp b/Userland/Libraries/LibWeb/Layout/InlineNode.cpp index f2b3651f2c..224328e3db 100644 --- a/Userland/Libraries/LibWeb/Layout/InlineNode.cpp +++ b/Userland/Libraries/LibWeb/Layout/InlineNode.cpp @@ -52,8 +52,8 @@ void InlineNode::paint(PaintContext& context, PaintPhase phase) auto background_data = Painting::BackgroundData { .color = computed_values().background_color(), .image = background_image() ? background_image()->bitmap() : nullptr, - .repeat_x = computed_values().background_repeat_x(), - .repeat_y = computed_values().background_repeat_y() + .repeat_x = computed_values().background_repeat().repeat_x, + .repeat_y = computed_values().background_repeat().repeat_y }; auto top_left_border_radius = computed_values().border_top_left_radius(); |