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

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

Issue 2881673003: CSS Motion Path: Support parsing of ray(<angle>) paths (Closed)
Patch Set: DCHECK_EQ Created 3 years, 7 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/CSSValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSValue.cpp b/third_party/WebKit/Source/core/css/CSSValue.cpp
index 55f8ac0fe37de9a6c2c2dca12ddf857b344c9eee..83bbbffc9c60e97ecf9bda9f9d12c92d2079cb37 100644
--- a/third_party/WebKit/Source/core/css/CSSValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSValue.cpp
@@ -54,6 +54,7 @@
#include "core/css/CSSPendingSubstitutionValue.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/CSSQuadValue.h"
+#include "core/css/CSSRayValue.h"
#include "core/css/CSSReflectValue.h"
#include "core/css/CSSShadowValue.h"
#include "core/css/CSSStringValue.h"
@@ -202,6 +203,8 @@ bool CSSValue::operator==(const CSSValue& other) const {
return CompareCSSValues<CSSPathValue>(*this, other);
case kPrimitiveClass:
return CompareCSSValues<CSSPrimitiveValue>(*this, other);
+ case kRayClass:
+ return CompareCSSValues<CSSRayValue>(*this, other);
case kIdentifierClass:
return CompareCSSValues<CSSIdentifierValue>(*this, other);
case kQuadClass:
@@ -302,6 +305,8 @@ String CSSValue::CssText() const {
return ToCSSPathValue(this)->CustomCSSText();
case kPrimitiveClass:
return ToCSSPrimitiveValue(this)->CustomCSSText();
+ case kRayClass:
+ return ToCSSRayValue(this)->CustomCSSText();
case kIdentifierClass:
return ToCSSIdentifierValue(this)->CustomCSSText();
case kQuadClass:
@@ -427,6 +432,9 @@ void CSSValue::FinalizeGarbageCollectedObject() {
case kPrimitiveClass:
ToCSSPrimitiveValue(this)->~CSSPrimitiveValue();
return;
+ case kRayClass:
+ ToCSSRayValue(this)->~CSSRayValue();
+ return;
case kIdentifierClass:
ToCSSIdentifierValue(this)->~CSSIdentifierValue();
return;
@@ -569,6 +577,9 @@ DEFINE_TRACE(CSSValue) {
case kPrimitiveClass:
ToCSSPrimitiveValue(this)->TraceAfterDispatch(visitor);
return;
+ case kRayClass:
+ ToCSSRayValue(this)->TraceAfterDispatch(visitor);
+ return;
case kIdentifierClass:
ToCSSIdentifierValue(this)->TraceAfterDispatch(visitor);
return;

Powered by Google App Engine
This is Rietveld 408576698