| Index: Source/core/style/ComputedStyle.cpp
|
| diff --git a/Source/core/style/ComputedStyle.cpp b/Source/core/style/ComputedStyle.cpp
|
| index aca2e941f6a1bf3d55f75c0322887705b9ed81db..b58cb488a969bff4b6f58bb0887ef5537e374dbf 100644
|
| --- a/Source/core/style/ComputedStyle.cpp
|
| +++ b/Source/core/style/ComputedStyle.cpp
|
| @@ -1225,6 +1225,24 @@ const Vector<AppliedTextDecoration>& ComputedStyle::appliedTextDecorations() con
|
| return rareInheritedData->appliedTextDecorations->vector();
|
| }
|
|
|
| +void ComputedStyle::createVariables()
|
| +{
|
| + RefPtr<StyleVariableData>& variables = rareInheritedData.access()->variables;
|
| + if (!variables)
|
| + variables = StyleVariableData::create();
|
| +}
|
| +
|
| +StyleVariableData* ComputedStyle::variables() const
|
| +{
|
| + ASSERT(RuntimeEnabledFeatures::cssVariablesEnabled());
|
| + return rareInheritedData->variables.get();
|
| +}
|
| +
|
| +void ComputedStyle::setVariables(PassRefPtr<StyleVariableData> variableData)
|
| +{
|
| + rareInheritedData.access()->variables = variableData;
|
| +}
|
| +
|
| float ComputedStyle::wordSpacing() const { return fontDescription().wordSpacing(); }
|
| float ComputedStyle::letterSpacing() const { return fontDescription().letterSpacing(); }
|
|
|
|
|