| Index: third_party/WebKit/Source/core/dom/Element.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Element.cpp b/third_party/WebKit/Source/core/dom/Element.cpp
|
| index 4b146314627f4c71e8e39040cffaf7eb002c7094..03583eda3b36d35f71497a02778a6aaf8280ea5a 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -2693,7 +2693,10 @@ void Element::updateFocusAppearance(
|
|
|
| // When focusing an editable element in an iframe, don't reset the selection
|
| // if it already contains a selection.
|
| - if (this == frame->selection().rootEditableElement())
|
| + if (this ==
|
| + frame->selection()
|
| + .computeVisibleSelectionInDOMTreeDeprecated()
|
| + .rootEditableElement())
|
| return;
|
|
|
| // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
|
|
|