mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:08:12 +00:00
LibWeb: Cache the <body background> style image value
This way we don't refetch the background image every time style is recomputed (e.g when hovering different elements.)
This commit is contained in:
parent
8f25dbf394
commit
7a9cb2dfca
2 changed files with 7 additions and 1 deletions
|
@ -37,6 +37,9 @@ public:
|
|||
|
||||
virtual void parse_attribute(const String&, const String&) override;
|
||||
virtual void apply_presentational_hints(StyleProperties&) const override;
|
||||
|
||||
private:
|
||||
RefPtr<ImageStyleValue> m_background_style_value;
|
||||
};
|
||||
|
||||
template<>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue