mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +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
6 changed files with 86 additions and 1 deletions
|
@ -130,6 +130,7 @@ public:
|
|||
const Page* page() const;
|
||||
|
||||
Color background_color(const Gfx::Palette&) const;
|
||||
Vector<CSS::BackgroundLayerData> const* background_layers() const;
|
||||
RefPtr<Gfx::Bitmap> background_image() const;
|
||||
CSS::Repeat background_repeat_x() const;
|
||||
CSS::Repeat background_repeat_y() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue