| Index: third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| diff --git a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| index e133907fda044f6f7959d4645ee95e99598d5a2f..83423250f28e4097069073d77a08ad9054f45d1a 100644
|
| --- a/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| +++ b/third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp
|
| @@ -52,6 +52,7 @@
|
| #include "core/css/CSSURIValue.h"
|
| #include "core/css/CSSValuePair.h"
|
| #include "core/css/CSSValuePool.h"
|
| +#include "core/css/CSSVariableReferenceValue.h"
|
| #include "core/css/HashTools.h"
|
| #include "core/css/parser/CSSParserFastPaths.h"
|
| #include "core/css/parser/CSSParserValues.h"
|
| @@ -372,6 +373,13 @@ bool CSSPropertyParser::parseValue(CSSPropertyID unresolvedProperty, bool import
|
| return true;
|
| }
|
|
|
| + if (RuntimeEnabledFeatures::cssVariablesEnabled() && value->id == CSSValueInternalVariableValue) {
|
| + // We don't expand the shorthand here because crazypants.
|
| + m_parsedProperties.append(CSSProperty(propId, CSSVariableReferenceValue::create(value->variableData), important, false, 0, m_implicitShorthand));
|
| + m_valueList->next();
|
| + return true;
|
| + }
|
| +
|
| if (CSSParserFastPaths::isKeywordPropertyID(propId)) {
|
| if (!CSSParserFastPaths::isValidKeywordPropertyAndValue(propId, id))
|
| return false;
|
|
|