Add toWebKitCSS*Value functions to cast from CSSValue
[WebKit-https.git] / Source / WebCore / css / WebKitCSSSVGDocumentValue.h
index 4f2a053..30f71f9 100644 (file)
@@ -54,6 +54,12 @@ private:
     bool m_loadRequested;
 };
 
+inline WebKitCSSSVGDocumentValue* toWebKitCSSSVGDocumentValue(CSSValue* value)
+{
+    ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isWebKitCSSSVGDocumentValue());
+    return static_cast<WebKitCSSSVGDocumentValue*>(value);
+}
+
 } // namespace WebCore
 
 #endif // WebKitCSSSVGDocumentValue_h