summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/bindings/gobject/WebKitDOMBinding.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bindings/gobject/WebKitDOMBinding.cpp')
-rw-r--r--Source/WebCore/bindings/gobject/WebKitDOMBinding.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebCore/bindings/gobject/WebKitDOMBinding.cpp b/Source/WebCore/bindings/gobject/WebKitDOMBinding.cpp
index a9b0897..aff3434 100644
--- a/Source/WebCore/bindings/gobject/WebKitDOMBinding.cpp
+++ b/Source/WebCore/bindings/gobject/WebKitDOMBinding.cpp
@@ -57,7 +57,7 @@ static gpointer createWrapper(Node* node)
switch (node->nodeType()) {
case Node::ELEMENT_NODE:
if (node->isHTMLElement())
- wrappedNode = createHTMLElementWrapper(static_cast<HTMLElement*>(node));
+ wrappedNode = createHTMLElementWrapper(toHTMLElement(node));
else
wrappedNode = wrapElement(static_cast<Element*>(node));
break;
@@ -93,7 +93,7 @@ WebKitDOMElement* kit(Element* element)
gpointer wrappedElement;
if (element->isHTMLElement())
- wrappedElement = createHTMLElementWrapper(static_cast<HTMLElement*>(element));
+ wrappedElement = createHTMLElementWrapper(toHTMLElement(element));
else
wrappedElement = wrapElement(element);