Index: third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp |
diff --git a/third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp b/third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e9e3cf3bdc53a5d22a32d5addb6dcf33e797b681 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp |
@@ -0,0 +1,27 @@ |
+// 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/CSSCustomIdentValue.h" |
+ |
+#include "core/css/CSSMarkup.h" |
+#include "wtf/text/WTFString.h" |
+ |
+namespace blink { |
+ |
+CSSCustomIdentValue::CSSCustomIdentValue(const String& str) |
+ : CSSValue(CustomIdentClass) |
+ , m_string(str) { } |
+ |
+String CSSCustomIdentValue::customCSSText() const |
+{ |
+ return quoteCSSStringIfNeeded(m_string); |
+} |
+ |
+DEFINE_TRACE_AFTER_DISPATCH(CSSCustomIdentValue) |
+{ |
+ CSSValue::traceAfterDispatch(visitor); |
+} |
+ |
+} // namespace blink |