Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Unified Diff: Source/core/xml/XPathPath.cpp

Issue 425383002: Move highestAncestorOrSelf() from Node to NodeTraversal (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/inspector/PageConsoleAgent.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xml/XPathPath.cpp
diff --git a/Source/core/xml/XPathPath.cpp b/Source/core/xml/XPathPath.cpp
index 9055a259f9e709b70ebf03eac0bb74161508586d..74dc33cb7b92b653468ba3ccffc04d29c976a4c9 100644
--- a/Source/core/xml/XPathPath.cpp
+++ b/Source/core/xml/XPathPath.cpp
@@ -29,6 +29,7 @@
#include "core/xml/XPathPath.h"
#include "core/dom/Document.h"
+#include "core/dom/NodeTraversal.h"
#include "core/xml/XPathPredicate.h"
#include "core/xml/XPathStep.h"
#include "core/xml/XPathValue.h"
@@ -120,7 +121,7 @@ Value LocationPath::evaluate(EvaluationContext& evaluationContext) const
if (context->inDocument())
context = context->ownerDocument();
else
- context = &context->highestAncestorOrSelf();
+ context = &NodeTraversal::highestAncestorOrSelf(*context);
}
OwnPtrWillBeRawPtr<NodeSet> nodes(NodeSet::create());
« no previous file with comments | « Source/core/inspector/PageConsoleAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698