Add toWebKitCSS*Value functions to cast from CSSValue
[WebKit-https.git] / Source / WebCore / css / TransformFunctions.cpp
index 4725f86..23aff49 100644 (file)
@@ -96,7 +96,7 @@ bool transformsForValue(const RenderStyle* style, const RenderStyle* rootStyle,
         if (!currValue->isWebKitCSSTransformValue())
             continue;
 
-        WebKitCSSTransformValue* transformValue = static_cast<WebKitCSSTransformValue*>(i.value());
+        WebKitCSSTransformValue* transformValue = toWebKitCSSTransformValue(i.value());
         if (!transformValue->length())
             continue;