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

Unified Diff: Source/core/css/CSSValue.cpp

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/css/CSSValue.h ('k') | Source/core/css/CSSValuePool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSValue.cpp
diff --git a/Source/core/css/CSSValue.cpp b/Source/core/css/CSSValue.cpp
index 1c7fbd839061016f0456c026cc26538e05532317..2d55581c4cb0d99132da46a10e080bea7ac4e220 100644
--- a/Source/core/css/CSSValue.cpp
+++ b/Source/core/css/CSSValue.cpp
@@ -53,6 +53,7 @@
#include "core/css/CSSTimingFunctionValue.h"
#include "core/css/CSSTransformValue.h"
#include "core/css/CSSUnicodeRangeValue.h"
+#include "core/css/CSSUnsetValue.h"
#include "core/css/CSSValueList.h"
namespace blink {
@@ -121,6 +122,8 @@ bool CSSValue::equals(const CSSValue& other) const
return compareCSSValues<CSSInheritedValue>(*this, other);
case InitialClass:
return compareCSSValues<CSSInitialValue>(*this, other);
+ case UnsetClass:
+ return compareCSSValues<CSSUnsetValue>(*this, other);
case GridLineNamesClass:
return compareCSSValues<CSSGridLineNamesValue>(*this, other);
case GridTemplateAreasClass:
@@ -191,6 +194,8 @@ String CSSValue::cssText() const
return toCSSImageValue(this)->customCSSText();
case InheritedClass:
return toCSSInheritedValue(this)->customCSSText();
+ case UnsetClass:
+ return toCSSUnsetValue(this)->customCSSText();
case InitialClass:
return toCSSInitialValue(this)->customCSSText();
case GridLineNamesClass:
@@ -272,6 +277,9 @@ void CSSValue::destroy()
case InitialClass:
delete toCSSInitialValue(this);
return;
+ case UnsetClass:
+ delete toCSSUnsetValue(this);
+ return;
case GridLineNamesClass:
delete toCSSGridLineNamesValue(this);
return;
@@ -366,6 +374,9 @@ void CSSValue::finalizeGarbageCollectedObject()
case InitialClass:
toCSSInitialValue(this)->~CSSInitialValue();
return;
+ case UnsetClass:
+ toCSSUnsetValue(this)->~CSSUnsetValue();
+ return;
case GridLineNamesClass:
toCSSGridLineNamesValue(this)->~CSSGridLineNamesValue();
return;
@@ -460,6 +471,9 @@ void CSSValue::trace(Visitor* visitor)
case InitialClass:
toCSSInitialValue(this)->traceAfterDispatch(visitor);
return;
+ case UnsetClass:
+ toCSSUnsetValue(this)->traceAfterDispatch(visitor);
+ return;
case GridLineNamesClass:
toCSSGridLineNamesValue(this)->traceAfterDispatch(visitor);
return;
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/CSSValuePool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698