Add toWebKitCSS*Value functions to cast from CSSValue
[WebKit-https.git] / Source / WebCore / css / WebKitCSSMixFunctionValue.h
index f8f40e2..f57fc06 100644 (file)
@@ -54,6 +54,12 @@ private:
     WebKitCSSMixFunctionValue();
     WebKitCSSMixFunctionValue(const WebKitCSSMixFunctionValue& cloneFrom);
 };
+
+inline WebKitCSSMixFunctionValue* toWebKitCSSMixFunctionValue(CSSValue* value)
+{
+    ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isWebKitCSSMixFunctionValue());
+    return static_cast<WebKitCSSMixFunctionValue*>(value);
+}
     
 } // namespace WebCore