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

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

Issue 24906003: Use toCSSFooValue() generation macro for CSSInheritedValue, CSSVariableValue and CSSGridTemplateVal… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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 | « no previous file | Source/core/css/CSSInheritedValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSGridTemplateValue.h
diff --git a/Source/core/css/CSSGridTemplateValue.h b/Source/core/css/CSSGridTemplateValue.h
index f2b796a283fbb84d3b47ddf132523c363bfae620..40967eddbce09690b391647c0f34047aec689f90 100644
--- a/Source/core/css/CSSGridTemplateValue.h
+++ b/Source/core/css/CSSGridTemplateValue.h
@@ -56,20 +56,7 @@ private:
size_t m_columnCount;
};
-inline CSSGridTemplateValue* toCSSGridTemplateValue(CSSValue* value)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(value->isGridTemplateValue());
- return static_cast<CSSGridTemplateValue*>(value);
-}
-
-inline const CSSGridTemplateValue* toCSSGridTemplateValue(const CSSValue* value)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(value->isGridTemplateValue());
- return static_cast<const CSSGridTemplateValue*>(value);
-}
-
-// Catch unneeded cast.
-void toCSSGridTemplateValue(const CSSGridTemplateValue*);
+DEFINE_CSS_VALUE_TYPE_CASTS(GridTemplateValue);
} // namespace WebCore
« no previous file with comments | « no previous file | Source/core/css/CSSInheritedValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698