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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp

Issue 2327743002: Rename Node::shadowHost() to Node::ownerShadowHost() (Closed)
Patch Set: fix Created 4 years, 3 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/editing/iterators/TextIterator.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp b/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
index a7b46b8439348be0f11bb01b1f3b60b40028f01e..62273a380a729eed99f1835c90cbe03d65a22026 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
@@ -86,7 +86,7 @@ TextIteratorBehaviorFlags adjustBehaviorFlags<EditingInFlatTreeStrategy>(TextIte
// |node| is neither a shadow root nor the owner of a layout object.
static bool notSkipping(const Node& node)
{
- return node.layoutObject() || (node.isShadowRoot() && node.shadowHost()->layoutObject());
+ return node.layoutObject() || (node.isShadowRoot() && node.ownerShadowHost()->layoutObject());
}
// This function is like Range::pastLastNode, except for the fact that it can
@@ -778,7 +778,7 @@ bool TextIteratorAlgorithm<Strategy>::shouldEmitNewlineForNode(Node* node, bool
if (layoutObject ? !layoutObject->isBR() : !isHTMLBRElement(node))
return false;
- return emitsOriginalText || !(node->isInShadowTree() && isHTMLInputElement(*node->shadowHost()));
+ return emitsOriginalText || !(node->isInShadowTree() && isHTMLInputElement(*node->ownerShadowHost()));
}
static bool shouldEmitNewlinesBeforeAndAfterNode(Node& node)

Powered by Google App Engine
This is Rietveld 408576698