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

Unified Diff: third_party/WebKit/Source/core/css/CSSVariableData.cpp

Issue 2310823002: Skeleton implementation of CSS Properties and Values API (Closed)
Patch Set: fix stylevardata copy ctor Created 4 years, 3 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
Index: third_party/WebKit/Source/core/css/CSSVariableData.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSVariableData.cpp b/third_party/WebKit/Source/core/css/CSSVariableData.cpp
index 916c8071368dbd9daafac3f74563fbcc04f1d574..e5af28c731f24751bb70a9b74cd0190127d59cb2 100644
--- a/third_party/WebKit/Source/core/css/CSSVariableData.cpp
+++ b/third_party/WebKit/Source/core/css/CSSVariableData.cpp
@@ -4,6 +4,7 @@
#include "core/css/CSSVariableData.h"
+#include "core/css/CSSSyntaxDescriptor.h"
#include "core/css/parser/CSSParser.h"
#include "core/css/parser/CSSParserTokenRange.h"
#include "wtf/text/StringBuilder.h"
@@ -67,4 +68,10 @@ CSSVariableData::CSSVariableData(const CSSParserTokenRange& range, bool needsVar
consumeAndUpdateTokens(range);
}
+const CSSValue* CSSVariableData::parseForSyntax(const CSSSyntaxDescriptor& syntax) const
+{
+ DCHECK(!needsVariableResolution());
+ return syntax.parse(tokenRange());
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698