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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use m_unit 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/CSSVariableReferenceValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSVariableReferenceValue.cpp b/third_party/WebKit/Source/core/css/CSSVariableReferenceValue.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..c231b8a84a6c7a36b3adb07a4502379d44366f7c
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/CSSVariableReferenceValue.cpp
@@ -0,0 +1,22 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "config.h"
+#include "core/css/CSSVariableReferenceValue.h"
+
+namespace blink {
+
+DEFINE_TRACE_AFTER_DISPATCH(CSSVariableReferenceValue)
+{
+ visitor->trace(m_data);
+ CSSValue::traceAfterDispatch(visitor);
+}
+
+String CSSVariableReferenceValue::customCSSText() const
+{
+ // We may want to consider caching this value.
+ return m_data->tokenRange().serialize();
+}
+
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698