Add toWebKitCSS*Value functions to cast from CSSValue
[WebKit-https.git] / Source / WebCore / css / WebKitCSSTransformValue.h
index ec092a8..ff34424 100644 (file)
@@ -82,6 +82,12 @@ private:
     TransformOperationType m_type;
 };
 
+inline WebKitCSSTransformValue* toWebKitCSSTransformValue(CSSValue* value)
+{
+    ASSERT_WITH_SECURITY_IMPLICATION(!value || value->isWebKitCSSTransformValue());
+    return static_cast<WebKitCSSTransformValue*>(value);
+}
+
 }
 
 #endif