| Index: sky/engine/core/editing/FrameSelection.cpp
|
| diff --git a/sky/engine/core/editing/FrameSelection.cpp b/sky/engine/core/editing/FrameSelection.cpp
|
| index 17adda6653e46bfaed48b98494c0b8cb2e39b10e..d24777918cd696c10cae6c72018a6bd8224932d1 100644
|
| --- a/sky/engine/core/editing/FrameSelection.cpp
|
| +++ b/sky/engine/core/editing/FrameSelection.cpp
|
| @@ -101,12 +101,6 @@ FrameSelection::~FrameSelection()
|
| #endif
|
| }
|
|
|
| -Element* FrameSelection::rootEditableElementOrDocumentElement() const
|
| -{
|
| - Element* selectionRoot = m_selection.rootEditableElement();
|
| - return selectionRoot ? selectionRoot : m_frame->document()->documentElement();
|
| -}
|
| -
|
| ContainerNode* FrameSelection::rootEditableElementOrTreeScopeRootNode() const
|
| {
|
| Element* selectionRoot = m_selection.rootEditableElement();
|
| @@ -1252,11 +1246,11 @@ void FrameSelection::selectAll()
|
| selectStartTarget = root.get();
|
| } else {
|
| root = m_selection.nonBoundaryShadowTreeRootNode();
|
| - if (root)
|
| + if (root) {
|
| selectStartTarget = root->shadowHost();
|
| - else {
|
| - root = document->documentElement();
|
| - selectStartTarget = document->documentElement();
|
| + } else {
|
| + root = document;
|
| + selectStartTarget = document;
|
| }
|
| }
|
| if (!root)
|
|
|