mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-18 00:09:44 +00:00
LibWeb: Store background layers in ComputedValues
Instead of storing these as individual `background-foo` properties, we combine them together into layers, since that is how they will be painted. It also makes it more convenient to pass them around.
This commit is contained in:
parent
64d805a027
commit
cdeac132dc
Notes:
sideshowbarker
2024-07-18 01:02:24 +09:00
Author: https://github.com/AtkinsSJ
Commit: cdeac132dc
Pull-request: https://github.com/SerenityOS/serenity/pull/10946
6 changed files with 86 additions and 1 deletions
|
@ -206,6 +206,7 @@ public:
|
|||
float line_height() const { return m_line_height; }
|
||||
float font_size() const { return m_font_size; }
|
||||
const CSS::ImageStyleValue* background_image() const { return m_background_image; }
|
||||
Vector<CSS::BackgroundLayerData> const& background_layers() const { return computed_values().background_layers(); }
|
||||
const CSS::ImageStyleValue* list_style_image() const { return m_list_style_image; }
|
||||
|
||||
NonnullRefPtr<NodeWithStyle> create_anonymous_wrapper() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue