Index: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
index 1e24a945f694ca207029653a8f68403182f80670..dd8e4a26dfbe86c0dbc3b644385ea7a2fd22cc81 100644 |
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp |
@@ -1356,6 +1356,10 @@ static PassRefPtrWillBeRawPtr<CSSValue> valueForScrollSnapCoordinate(const Vecto |
PassRefPtrWillBeRawPtr<CSSValue> ComputedStyleCSSValueMapping::get(const AtomicString customPropertyName, const ComputedStyle& style) |
{ |
+ CSSVariableData* data = style.variables()->getVariable(customPropertyName); |
+ if (!data) |
+ return nullptr; |
+ |
return CSSCustomPropertyDeclaration::create(customPropertyName, style.variables()->getVariable(customPropertyName)); |
Timothy Loh
2015/12/08 23:53:54
Since you already looked it up, just use the local
|
} |