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

Unified Diff: third_party/WebKit/Source/core/editing/Position.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/Position.cpp
diff --git a/third_party/WebKit/Source/core/editing/Position.cpp b/third_party/WebKit/Source/core/editing/Position.cpp
index 706160bd8b56efd048d7d878321296fdc9898efd..221c284840862dca26f6bba4820f6236adf997cd 100644
--- a/third_party/WebKit/Source/core/editing/Position.cpp
+++ b/third_party/WebKit/Source/core/editing/Position.cpp
@@ -506,13 +506,13 @@ PositionInFlatTree toPositionInFlatTree(const Position& pos)
Node* child = NodeTraversal::childAt(*anchor, offset);
if (!child) {
if (anchor->isShadowRoot())
- return PositionInFlatTree(anchor->shadowHost(), PositionAnchorType::AfterChildren);
+ return PositionInFlatTree(anchor->ownerShadowHost(), PositionAnchorType::AfterChildren);
return PositionInFlatTree(anchor, PositionAnchorType::AfterChildren);
}
child->updateDistribution();
if (child->isSlotOrActiveInsertionPoint()) {
if (anchor->isShadowRoot())
- return PositionInFlatTree(anchor->shadowHost(), offset);
+ return PositionInFlatTree(anchor->ownerShadowHost(), offset);
return PositionInFlatTree(anchor, offset);
}
if (Node* parent = FlatTreeTraversal::parent(*child))
@@ -521,12 +521,12 @@ PositionInFlatTree toPositionInFlatTree(const Position& pos)
// children of shadow host.
// e.g. "foo",0 in <progress>foo</progress>
if (anchor->isShadowRoot())
- return PositionInFlatTree(anchor->shadowHost(), PositionAnchorType::AfterChildren);
+ return PositionInFlatTree(anchor->ownerShadowHost(), PositionAnchorType::AfterChildren);
return PositionInFlatTree(anchor, PositionAnchorType::AfterChildren);
}
if (anchor->isShadowRoot())
- return PositionInFlatTree(anchor->shadowHost(), pos.anchorType());
+ return PositionInFlatTree(anchor->ownerShadowHost(), pos.anchorType());
// TODO(yosin): Once we have a test case for SLOT or active insertion point,
// this function should handle it.
return PositionInFlatTree(anchor, pos.anchorType());
« no previous file with comments | « third_party/WebKit/Source/core/editing/FrameSelection.cpp ('k') | third_party/WebKit/Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698