| Index: Source/core/dom/Element.h
|
| diff --git a/Source/core/dom/Element.h b/Source/core/dom/Element.h
|
| index fed0c42974aaf22d8eacbf157517addd31b22a08..980aa17f63a3fe82c0dbb8529350797ed5efd427 100644
|
| --- a/Source/core/dom/Element.h
|
| +++ b/Source/core/dom/Element.h
|
| @@ -771,7 +771,7 @@ inline Element* Node::previousElementSibling() const
|
| Node* n = previousSibling();
|
| while (n && !n->isElementNode())
|
| n = n->previousSibling();
|
| - return static_cast<Element*>(n);
|
| + return toElement(n);
|
| }
|
|
|
| inline Element* Node::nextElementSibling() const
|
| @@ -779,7 +779,7 @@ inline Element* Node::nextElementSibling() const
|
| Node* n = nextSibling();
|
| while (n && !n->isElementNode())
|
| n = n->nextSibling();
|
| - return static_cast<Element*>(n);
|
| + return toElement(n);
|
| }
|
|
|
| inline bool Element::fastHasAttribute(const QualifiedName& name) const
|
|
|