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

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

Issue 1304993002: Change Rect and Quad to be CSSValues (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@split_counter_out_attempt_3
Patch Set: Small change to generated style builder functions Created 5 years, 4 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
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/ComputedStyleCSSValueMapping.cpp » ('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 4f9805848f9867caff5fa16af3943f92b8d4b4b2..b5b51b7c3f34233abbc09b3b1c31616656e72cab 100644
--- a/Source/core/css/CSSValue.cpp
+++ b/Source/core/css/CSSValue.cpp
@@ -46,6 +46,7 @@
#include "core/css/CSSLineBoxContainValue.h"
#include "core/css/CSSPathValue.h"
#include "core/css/CSSPrimitiveValue.h"
+#include "core/css/CSSQuadValue.h"
#include "core/css/CSSReflectValue.h"
#include "core/css/CSSSVGDocumentValue.h"
#include "core/css/CSSShadowValue.h"
@@ -129,6 +130,8 @@ bool CSSValue::equals(const CSSValue& other) const
return compareCSSValues<CSSPathValue>(*this, other);
case PrimitiveClass:
return compareCSSValues<CSSPrimitiveValue>(*this, other);
+ case QuadClass:
+ return compareCSSValues<CSSQuadValue>(*this, other);
case ReflectClass:
return compareCSSValues<CSSReflectValue>(*this, other);
case ShadowClass:
@@ -195,6 +198,8 @@ String CSSValue::cssText() const
return toCSSPathValue(this)->customCSSText();
case PrimitiveClass:
return toCSSPrimitiveValue(this)->customCSSText();
+ case QuadClass:
+ return toCSSQuadValue(this)->customCSSText();
case ReflectClass:
return toCSSReflectValue(this)->customCSSText();
case ShadowClass:
@@ -277,6 +282,9 @@ void CSSValue::destroy()
case PrimitiveClass:
delete toCSSPrimitiveValue(this);
return;
+ case QuadClass:
+ delete toCSSQuadValue(this);
+ return;
case ReflectClass:
delete toCSSReflectValue(this);
return;
@@ -368,6 +376,9 @@ void CSSValue::finalizeGarbageCollectedObject()
case PrimitiveClass:
toCSSPrimitiveValue(this)->~CSSPrimitiveValue();
return;
+ case QuadClass:
+ toCSSQuadValue(this)->~CSSQuadValue();
+ return;
case ReflectClass:
toCSSReflectValue(this)->~CSSReflectValue();
return;
@@ -459,6 +470,9 @@ DEFINE_TRACE(CSSValue)
case PrimitiveClass:
toCSSPrimitiveValue(this)->traceAfterDispatch(visitor);
return;
+ case QuadClass:
+ toCSSQuadValue(this)->traceAfterDispatch(visitor);
+ return;
case ReflectClass:
toCSSReflectValue(this)->traceAfterDispatch(visitor);
return;
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/ComputedStyleCSSValueMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698