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

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

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.h
diff --git a/third_party/WebKit/Source/core/css/CSSCustomIdentValue.h b/third_party/WebKit/Source/core/css/CSSCustomIdentValue.h
new file mode 100644
index 0000000000000000000000000000000000000000..4eea95183f5fcfc83f799f3227ac35e413109928
--- /dev/null
+++ b/third_party/WebKit/Source/core/css/CSSCustomIdentValue.h
@@ -0,0 +1,42 @@
+// 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.
+
+#ifndef CSSCustomIdentValue_h
+#define CSSCustomIdentValue_h
+
+#include "core/css/CSSValue.h"
+#include "wtf/PassRefPtr.h"
+#include "wtf/RefCounted.h"
+
+namespace blink {
+
+class CSSCustomIdentValue : public CSSValue {
+public:
+ static PassRefPtrWillBeRawPtr<CSSCustomIdentValue> create(const String& str)
+ {
+ return adoptRefWillBeNoop(new CSSCustomIdentValue(str));
+ }
+
+ String value() const { return m_string; }
+
+ String customCSSText() const;
+
+ bool equals(const CSSCustomIdentValue& other) const
+ {
+ return m_string == other.m_string;
+ }
+
+ DECLARE_TRACE_AFTER_DISPATCH();
+
+private:
+ CSSCustomIdentValue(const String&);
+
+ String m_string;
+};
+
+DEFINE_CSS_VALUE_TYPE_CASTS(CSSCustomIdentValue, isCustomIdentValue());
+
+} // namespace blink
+
+#endif // CSSCustomIdentValue_h
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCounterValue.h ('k') | third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698