Add toWebKitCSS*Value functions to cast from CSSValue
[WebKit-https.git] / Source / WebCore / css / WebKitCSSFilterValue.h
index d6df3c8..86a2552 100644 (file)
@@ -77,6 +77,12 @@ private:
     FilterOperationType m_type;
 };
 
+inline WebKitCSSFilterValue* toWebKitCSSFilterValue(CSSValue* value)
+{
+    ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isWebKitCSSFilterValue());
+    return static_cast<WebKitCSSFilterValue*>(value);
+}
+
 }
 
 #endif // ENABLE(CSS_FILTERS)