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

Unified Diff: third_party/WebKit/Source/core/editing/FrameSelection.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/FrameSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
index 7564787ddb425c49a371a7f18a959716513d1ee2..4bab2e65b1eb30922fcb6ca5ce478b7e5d0e7d21 100644
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp
@@ -832,13 +832,13 @@ void FrameSelection::selectAll()
if (isContentEditable()) {
root = highestEditableRoot(selection().start());
if (Node* shadowRoot = nonBoundaryShadowTreeRootNode(selection().start()))
- selectStartTarget = shadowRoot->shadowHost();
+ selectStartTarget = shadowRoot->ownerShadowHost();
else
selectStartTarget = root;
} else {
root = nonBoundaryShadowTreeRootNode(selection().start());
if (root) {
- selectStartTarget = root->shadowHost();
+ selectStartTarget = root->ownerShadowHost();
} else {
root = document().documentElement();
selectStartTarget = document().body();
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/InsertionPoint.h ('k') | third_party/WebKit/Source/core/editing/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698