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

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

Issue 1306823004: Split out String, URI and CustomIdent from CSSPrimitiveValue (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@split_out_attr_values
Patch Set: Rebase Created 5 years, 2 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/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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCustomIdentValue.h ('k') | third_party/WebKit/Source/core/css/CSSPrimitiveValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698