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

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

Issue 18532004: Implement 'grid-template' parsing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined and updated after Ojan's and Elliott's comments Created 7 years, 5 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/resolver/StyleBuilderCustom.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 cdba0f0b56a698bee908f7b89b4a37d84fc5471f..0b0ba2830ba0fd116400883655c5b617a286e3b7 100644
--- a/Source/core/css/CSSValue.cpp
+++ b/Source/core/css/CSSValue.cpp
@@ -38,6 +38,7 @@
#include "core/css/CSSFontFaceSrcValue.h"
#include "core/css/CSSFunctionValue.h"
#include "core/css/CSSGradientValue.h"
+#include "core/css/CSSGridTemplateValue.h"
#include "core/css/CSSImageSetValue.h"
#include "core/css/CSSImageValue.h"
#include "core/css/CSSInheritedValue.h"
@@ -179,6 +180,8 @@ bool CSSValue::equals(const CSSValue& other) const
return compareCSSValues<CSSInheritedValue>(*this, other);
case InitialClass:
return compareCSSValues<CSSInitialValue>(*this, other);
+ case GridTemplateClass:
+ return compareCSSValues<CSSGridTemplateValue>(*this, other);
case PrimitiveClass:
return compareCSSValues<CSSPrimitiveValue>(*this, other);
case ReflectClass:
@@ -267,6 +270,8 @@ String CSSValue::cssText() const
return static_cast<const CSSInheritedValue*>(this)->customCssText();
case InitialClass:
return static_cast<const CSSInitialValue*>(this)->customCssText();
+ case GridTemplateClass:
+ return static_cast<const CSSGridTemplateValue*>(this)->customCssText();
case PrimitiveClass:
return toCSSPrimitiveValue(this)->customCssText();
case ReflectClass:
@@ -380,6 +385,9 @@ void CSSValue::destroy()
case InitialClass:
delete static_cast<CSSInitialValue*>(this);
return;
+ case GridTemplateClass:
+ delete static_cast<CSSGridTemplateValue*>(this);
+ return;
case PrimitiveClass:
delete toCSSPrimitiveValue(this);
return;
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/resolver/StyleBuilderCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698