Add toWebKitCSS*Value functions to cast from CSSValue
[WebKit-https.git] / Source / WebCore / css / WebKitCSSArrayFunctionValue.h
index c1c9e2a..34f21ac 100644 (file)
@@ -55,6 +55,12 @@ private:
     WebKitCSSArrayFunctionValue(const WebKitCSSArrayFunctionValue& cloneFrom);
 };
 
+inline WebKitCSSArrayFunctionValue* toWebKitCSSArrayFunctionValue(CSSValue* value)
+{
+    ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isWebKitCSSArrayFunctionValue());
+    return static_cast<WebKitCSSArrayFunctionValue*>(value);
+}
+
 } // namespace WebCore
 
 #endif // ENABLE(CSS_SHADERS)