You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LibWeb: Move and rename CSSStyleValue to StyleValues/StyleValue.{h,cpp}
This reverts 0e3487b.
Back when I made that change, I thought we could make our StyleValue
classes match the typed-om definitions directly. However, they have
different requirements. Typed-om types need to be mutable and GCed,
whereas StyleValues are immutable and ideally wouldn't require a JS VM.
While I was already making such a cataclysmic change, I've moved it into
the StyleValues directory, because it *not* being there has bothered me
for a long time. 😅
Copy file name to clipboardExpand all lines: Documentation/CSSGeneratedFiles.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Each property will have some set of these fields on it:
25
25
|`affects-stacking-context`| No |`false`| Boolean. Whether this property can cause a new stacking context for the element. |`bool property_affects_stacking_context(PropertyID)`|
26
26
|`animation-type`| Yes || String. How the property should be animated. Defined by the spec. See below. |`AnimationType animation_type_from_longhand_property(PropertyID)`|
27
27
|`inherited`| Yes || Boolean. Whether the property is inherited by its child elements. |`bool is_inherited_property(PropertyID)`|
28
-
|`initial`| Yes || String. The property's initial value if it is not specified. |`NonnullRefPtr<CSSStyleValue const> property_initial_value(PropertyID)`|
28
+
|`initial`| Yes || String. The property's initial value if it is not specified. |`NonnullRefPtr<StyleValue const> property_initial_value(PropertyID)`|
29
29
|`legacy-alias-for`| No | Nothing | String. The name of a property this is an alias for. See below. ||
30
30
|`logical-alias-for`| No | Nothing | An object. See below. |`bool property_is_logical_alias(PropertyID);`<br/>`PropertyID map_logical_alias_to_physical_property(PropertyID, LogicalAliasMappingContext const&)`|
31
31
|`longhands`| No |`[]`| Array of strings. If this is a shorthand, these are the property names that it expands out into. |`Vector<PropertyID> longhands_for_shorthand(PropertyID)`<br/>`Vector<PropertyID> expanded_longhands_for_shorthand(PropertyID)`<br/>`Vector<PropertyID> shorthands_for_longhand(PropertyID)`|
@@ -129,7 +129,7 @@ The generated code provides:
129
129
it exists in that at-rule.
130
130
-`FlyString to_string(DescriptorID)` for serializing descriptor names.
131
131
-`bool at_rule_supports_descriptor(AtRuleID, DescriptorID)` to query if the given at-rule allows the descriptor.
132
-
-`RefPtr<CSSStyleValue const> descriptor_initial_value(AtRuleID, DescriptorID)` for getting a descriptor's initial value.
132
+
-`RefPtr<StyleValue const> descriptor_initial_value(AtRuleID, DescriptorID)` for getting a descriptor's initial value.
133
133
-`DescriptorMetadata get_descriptor_metadata(AtRuleID, DescriptorID)` returns data used for parsing the descriptor.
Copy file name to clipboardExpand all lines: Documentation/LibWebFromLoadingToPainting.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ The cascade origin determines the processing order for rules. The "user-agent" s
80
80
81
81
Note: the user-agent style is a built-in CSS style sheet that lives in the LibWeb source code [here](https://github.com/LadybirdBrowser/ladybird/blob/master/Libraries/LibWeb/CSS/Default.css).
82
82
83
-
The end product of style computation is a fully populated StyleProperties object. It has a CSSStyleValue for each CSS::PropertyID. In spec parlance, these are the *computed* values. (Note that these are not the same as you get from `getComputedStyle()`, that API returns the *resolved* values.)
83
+
The end product of style computation is a fully populated StyleProperties object. It has a StyleValue for each CSS::PropertyID. In spec parlance, these are the *computed* values. (Note that these are not the same as you get from `getComputedStyle()`, that API returns the *resolved* values.)
0 commit comments