diff options
Diffstat (limited to 'Source/WebCore/bindings/js/JSElementCustom.cpp')
-rw-r--r-- | Source/WebCore/bindings/js/JSElementCustom.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/bindings/js/JSElementCustom.cpp b/Source/WebCore/bindings/js/JSElementCustom.cpp index 3bfe110..9ed3739 100644 --- a/Source/WebCore/bindings/js/JSElementCustom.cpp +++ b/Source/WebCore/bindings/js/JSElementCustom.cpp @@ -75,7 +75,7 @@ JSValue toJSNewlyCreated(ExecState* exec, JSDOMGlobalObject* globalObject, Eleme JSNode* wrapper; if (element->isHTMLElement()) - wrapper = createJSHTMLWrapper(exec, globalObject, static_cast<HTMLElement*>(element)); + wrapper = createJSHTMLWrapper(exec, globalObject, toHTMLElement(element)); #if ENABLE(SVG) else if (element->isSVGElement()) wrapper = createJSSVGWrapper(exec, globalObject, static_cast<SVGElement*>(element)); |