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

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

Issue 24954002: Generate toCSSFooValue for CSSFunctionValue and CSSSVGDocumentValue (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/CSSSVGDocumentValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSFunctionValue.h
diff --git a/Source/core/css/CSSFunctionValue.h b/Source/core/css/CSSFunctionValue.h
index d4e7e4d83ddc384bf86a23194c15dd96bce4a84d..ee5c5d9a82bd11cdcd70aa9c0367c2e848ea0906 100644
--- a/Source/core/css/CSSFunctionValue.h
+++ b/Source/core/css/CSSFunctionValue.h
@@ -59,20 +59,7 @@ private:
RefPtr<CSSValueList> m_args;
};
-inline CSSFunctionValue* toCSSFunctionValue(CSSValue* value)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(value->isFunctionValue());
- return static_cast<CSSFunctionValue*>(value);
-}
-
-inline const CSSFunctionValue* toCSSFunctionValue(const CSSValue* value)
-{
- ASSERT_WITH_SECURITY_IMPLICATION(value->isFunctionValue());
- return static_cast<const CSSFunctionValue*>(value);
-}
-
-// Catch any unneeded cast.
-void toCSSFunctionValue(const CSSFunctionValue*);
+DEFINE_CSS_VALUE_TYPE_CASTS(FunctionValue);
} // namespace WebCore
« no previous file with comments | « no previous file | Source/core/css/CSSSVGDocumentValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698