| Index: Source/core/dom/Node.cpp
|
| diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
|
| index 1f0ebf59e7b9965d42017696535e5e390e2103ca..0ff8d8b871a3cdd306cf911100b1f68a9bdf2413 100644
|
| --- a/Source/core/dom/Node.cpp
|
| +++ b/Source/core/dom/Node.cpp
|
| @@ -1505,7 +1505,7 @@ String Node::lookupPrefix(const AtomicString &namespaceURI) const
|
|
|
| switch (nodeType()) {
|
| case ELEMENT_NODE:
|
| - return lookupNamespacePrefix(namespaceURI, static_cast<const Element *>(this));
|
| + return lookupNamespacePrefix(namespaceURI, toElement(this));
|
| case DOCUMENT_NODE:
|
| if (Element* de = toDocument(this)->documentElement())
|
| return de->lookupPrefix(namespaceURI);
|
| @@ -1538,7 +1538,7 @@ String Node::lookupNamespaceURI(const String &prefix) const
|
|
|
| switch (nodeType()) {
|
| case ELEMENT_NODE: {
|
| - const Element *elem = static_cast<const Element *>(this);
|
| + const Element *elem = toElement(this);
|
|
|
| if (!elem->namespaceURI().isNull() && elem->prefix() == prefix)
|
| return elem->namespaceURI();
|
|
|