Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Unified Diff: third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp

Issue 2251663002: [Typed-OM] Get CSSTokenStreamValue from StyleMap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused header Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSTokenStreamValue.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp
diff --git a/third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp b/third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp
index 457f589a8a1342fee8475b1b7f14fe3d446f4ff8..2d5dd5a0a2a2d6e4db9076cc6a5d383a1faa0903 100644
--- a/third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/StyleValueFactory.cpp
@@ -8,6 +8,8 @@
#include "core/css/cssom/CSSNumberValue.h"
#include "core/css/cssom/CSSSimpleLength.h"
#include "core/css/cssom/CSSStyleValue.h"
+#include "core/css/cssom/CSSStyleVariableReferenceValue.h"
+#include "core/css/cssom/CSSTokenStreamValue.h"
#include "core/css/cssom/CSSTransformValue.h"
#include "core/css/cssom/CSSUnsupportedStyleValue.h"
@@ -33,6 +35,10 @@ CSSStyleValue* styleValueForProperty(CSSPropertyID propertyID, const CSSValue& v
return CSSNumberValue::create(primitiveValue.getDoubleValue());
}
+ if (value.isVariableReferenceValue()) {
+ return CSSTokenStreamValue::fromCSSValue(toCSSVariableReferenceValue(value));
+ }
+
return nullptr;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/cssom/CSSTokenStreamValue.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698