Index: Source/core/html/HTMLCollection.cpp |
diff --git a/Source/core/html/HTMLCollection.cpp b/Source/core/html/HTMLCollection.cpp |
index b6e97846a2b1925cb0561d7564a40462ce690d61..4c40d0bc55a39b4d7f2fdbc70fee9ab48b2da4f0 100644 |
--- a/Source/core/html/HTMLCollection.cpp |
+++ b/Source/core/html/HTMLCollection.cpp |
@@ -255,7 +255,7 @@ template <> inline bool isMatchingElement(const ClassNodeList* nodeList, Element |
static Node* previousNode(Node& base, Node& previous, bool onlyIncludeDirectChildren) |
{ |
- return onlyIncludeDirectChildren ? previous.previousSibling() : NodeTraversal::previous(&previous, &base); |
+ return onlyIncludeDirectChildren ? previous.previousSibling() : NodeTraversal::previous(previous, &base); |
} |
static inline Node* lastDescendent(Node& node) |