Andrew Kaster
6d11414957
LibWeb: Make storage of CSS::StyleValues const-correct
...
Now we consistently use `RefPtr<StyleValue const>` for all StyleValues.
2025-04-16 10:41:44 -06:00
Sam Atkins
ac15e626dd
LibWeb/CSS: Merge ScaleStyleValue into TransformationStyleValue
...
The only ways this varies from the `scale()` function is with parsing
and serialization. Parsing stays separate, and serialization is done by
telling `TransformationStyleValue` which property it is, and overriding
its normal `to_string()` code for properties other than `transform`.
2025-01-17 10:12:39 +01:00
Sam Atkins
bd5d1b092a
LibWeb/CSS: Move TransformationSV -> Transformation code into TSV
2025-01-17 10:12:39 +01:00
Sam Atkins
01d782a5ca
LibWeb/CSS: Return TransformationStyleValue values by reference
...
Avoid copying the vector when we read from it.
2025-01-17 10:12:39 +01:00
Andreas Kling
e85c3c97fb
LibWeb: Add mode flag to CSSStyleValue::to_string()
...
This will be used to differentiate between serialization for resolved
style (i.e window.getComputedStyle()) and serialization for all other
purposes.
2024-12-07 08:31:03 +00:00
Timothy Flynn
93712b24bf
Everywhere: Hoist the Libraries folder to the top-level
2024-11-10 12:50:45 +01:00