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

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

Issue 1405293012: [Variables] Enable get/setProperty and similar APIs from the CSSOM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use static_assert. Created 5 years, 1 month 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/CSSCustomPropertyDeclaration.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.cpp b/third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.cpp
index be7770eb5526469dccbcbac9c89125d86ae0561c..c6f2b9671e86289807753940874cae830245dec8 100644
--- a/third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.cpp
+++ b/third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.cpp
@@ -5,6 +5,8 @@
#include "config.h"
#include "core/css/CSSCustomPropertyDeclaration.h"
+#include "core/css/parser/CSSParserTokenRange.h"
+
namespace blink {
DEFINE_TRACE_AFTER_DISPATCH(CSSCustomPropertyDeclaration)
@@ -12,4 +14,9 @@ DEFINE_TRACE_AFTER_DISPATCH(CSSCustomPropertyDeclaration)
CSSValue::traceAfterDispatch(visitor);
}
+String CSSCustomPropertyDeclaration::customCSSText() const
+{
+ return m_value->tokenRange().serialize();
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698