Index: Source/core/css/CSSPrimitiveValue.cpp |
diff --git a/Source/core/css/CSSPrimitiveValue.cpp b/Source/core/css/CSSPrimitiveValue.cpp |
index a83fd88b20c41de16faedcd26909e7a0b33a6256..d2008f18de7dc2b77630fd6947ad112f16bfc223 100644 |
--- a/Source/core/css/CSSPrimitiveValue.cpp |
+++ b/Source/core/css/CSSPrimitiveValue.cpp |
@@ -1118,8 +1118,11 @@ String CSSPrimitiveValue::customCSSText(CSSTextFormattingFlags formattingFlag) c |
String CSSPrimitiveValue::customSerializeResolvingVariables(const HashMap<AtomicString, String>& variables) const |
{ |
- if (isVariableName() && variables.contains(m_value.string)) |
- return variables.get(m_value.string); |
+ if (isVariableName()) { |
+ AtomicString variableName(m_value.string); |
+ if (variables.contains(variableName)) |
+ return variables.get(variableName); |
+ } |
if (CSSCalcValue* calcValue = cssCalcValue()) |
return calcValue->customSerializeResolvingVariables(variables); |
if (Pair* pairValue = getPairValue()) |