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

Unified Diff: third_party/WebKit/Source/core/layout/HitTestResult.cpp

Issue 1675163002: Rename ComposedTree to FlatTree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: wip Created 4 years, 10 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
Index: third_party/WebKit/Source/core/layout/HitTestResult.cpp
diff --git a/third_party/WebKit/Source/core/layout/HitTestResult.cpp b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
index 7a4c2bc6faea630a9a6ff82c355cb1929cb101fc..f568e2ba2e574d5a45f1f8d195dbfa31996f90e9 100644
--- a/third_party/WebKit/Source/core/layout/HitTestResult.cpp
+++ b/third_party/WebKit/Source/core/layout/HitTestResult.cpp
@@ -23,7 +23,7 @@
#include "core/HTMLNames.h"
#include "core/dom/PseudoElement.h"
-#include "core/dom/shadow/ComposedTreeTraversal.h"
+#include "core/dom/shadow/FlatTreeTraversal.h"
#include "core/dom/shadow/ShadowRoot.h"
#include "core/editing/FrameSelection.h"
#include "core/editing/VisibleUnits.h"
@@ -275,7 +275,7 @@ String HitTestResult::title(TextDirection& dir) const
// For <area> tags in image maps, walk the tree for the <area>, not the <img> using it.
if (m_innerNode.get())
m_innerNode->updateDistribution();
- for (Node* titleNode = m_innerNode.get(); titleNode; titleNode = ComposedTreeTraversal::parent(*titleNode)) {
+ for (Node* titleNode = m_innerNode.get(); titleNode; titleNode = FlatTreeTraversal::parent(*titleNode)) {
if (titleNode->isElementNode()) {
String title = toElement(titleNode)->title();
if (!title.isNull()) {
@@ -522,7 +522,7 @@ void HitTestResult::resolveRectBasedTest(Node* resolvedInnerNode, const LayoutPo
Element* HitTestResult::innerElement() const
{
- for (Node* node = m_innerNode.get(); node; node = ComposedTreeTraversal::parent(*node)) {
+ for (Node* node = m_innerNode.get(); node; node = FlatTreeTraversal::parent(*node)) {
if (node->isElementNode())
return toElement(node);
}

Powered by Google App Engine
This is Rietveld 408576698