mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:47:34 +00:00
LibWeb: Don't regenerate linear gradient data unless size changes
This is an easy check to add and seems like it makes things a tiny bit smoother.
This commit is contained in:
parent
de5d25ee44
commit
fa5c2183df
2 changed files with 11 additions and 4 deletions
|
@ -1023,7 +1023,12 @@ private:
|
|||
GradientType m_gradient_type;
|
||||
Repeating m_repeating;
|
||||
|
||||
mutable Optional<Painting::LinearGradientData> m_resolved_data;
|
||||
struct ResolvedData {
|
||||
Painting::LinearGradientData data;
|
||||
Gfx::FloatSize size;
|
||||
};
|
||||
|
||||
mutable Optional<ResolvedData> m_resolved;
|
||||
};
|
||||
|
||||
class InheritStyleValue final : public StyleValue {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue