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