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

Unified Diff: Source/core/css/CSSUnsetValue.h

Issue 775153002: Implement unset value handling (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test Created 6 years 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
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/css/CSSUnsetValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSUnsetValue.h
diff --git a/Source/core/css/CSSUnsetValue.h b/Source/core/css/CSSUnsetValue.h
new file mode 100644
index 0000000000000000000000000000000000000000..a748b479fa5e26c2d39d0f0036482f8ed3fbe7d0
--- /dev/null
+++ b/Source/core/css/CSSUnsetValue.h
@@ -0,0 +1,37 @@
+// Copyright 2014 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 CSSUnsetValue_h
+#define CSSUnsetValue_h
+
+#include "core/css/CSSValue.h"
+#include "wtf/PassRefPtr.h"
+
+namespace blink {
+
+class CSSUnsetValue : public CSSValue {
+public:
+ static PassRefPtrWillBeRawPtr<CSSUnsetValue> create()
+ {
+ return adoptRefWillBeNoop(new CSSUnsetValue);
+ }
+
+ String customCSSText() const;
+
+ bool equals(const CSSUnsetValue&) const { return true; }
+
+ void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(visitor); }
+
+private:
+ CSSUnsetValue()
+ : CSSValue(UnsetClass)
+ {
+ }
+};
+
+DEFINE_CSS_VALUE_TYPE_CASTS(CSSUnsetValue, isUnsetValue());
+
+} // namespace blink
+
+#endif // CSSUnsetValue_h
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/css/CSSUnsetValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698