| Index: third_party/WebKit/Source/web/WebRange.cpp
|
| diff --git a/third_party/WebKit/Source/web/WebRange.cpp b/third_party/WebKit/Source/web/WebRange.cpp
|
| index e3194e31c2d3864593820b8418611c563795ef58..803d8429d7e625dd7e1646887933663fa22a3382 100644
|
| --- a/third_party/WebKit/Source/web/WebRange.cpp
|
| +++ b/third_party/WebKit/Source/web/WebRange.cpp
|
| @@ -61,7 +61,9 @@ WebRange::WebRange(const PlainTextRange& range) {
|
| }
|
|
|
| EphemeralRange WebRange::createEphemeralRange(LocalFrame* frame) const {
|
| - Element* selectionRoot = frame->selection().rootEditableElement();
|
| + Element* selectionRoot = frame->selection()
|
| + .computeVisibleSelectionInDOMTreeDeprecated()
|
| + .rootEditableElement();
|
| ContainerNode* scope =
|
| selectionRoot ? selectionRoot : frame->document()->documentElement();
|
|
|
|
|