| 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();
|
|
|