Chromium Code Reviews| Index: Source/core/dom/Node.cpp |
| diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp |
| index 6e05eb9896d7b5d18eaf9846f4b7a221340bfa72..ed0d8c21fed406eded86cf39aa67b386deaa7ab3 100644 |
| --- a/Source/core/dom/Node.cpp |
| +++ b/Source/core/dom/Node.cpp |
| @@ -41,6 +41,7 @@ |
| #include "core/dom/DocumentType.h" |
| #include "core/dom/Element.h" |
| #include "core/dom/ElementRareData.h" |
| +#include "core/dom/ElementTraversal.h" |
| #include "core/dom/ExceptionCode.h" |
| #include "core/dom/LiveNodeList.h" |
| #include "core/dom/NodeRareData.h" |
| @@ -2548,6 +2549,16 @@ void Node::setCustomElementState(CustomElementState newState) |
| setNeedsStyleRecalc(SubtreeStyleChange); // :unresolved has changed |
| } |
| +Element* Node::previousElementSibling() const |
|
Inactive
2014/02/14 17:22:31
In a follow-up, I will drop these 2 methods from N
|
| +{ |
| + return ElementTraversal::previousSibling(*this); |
| +} |
| + |
| +Element* Node::nextElementSibling() const |
| +{ |
| + return ElementTraversal::nextSibling(*this); |
| +} |
| + |
| } // namespace WebCore |
| #ifndef NDEBUG |