| 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 3651e0f9360dbcf1107fd9c0d3151151bab1068e..864415b91be3f68c78bbd16c5d7fbaca3915a954 100644
|
| --- a/third_party/WebKit/Source/core/dom/Element.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Element.cpp
|
| @@ -2633,8 +2633,12 @@ void Element::updateFocusAppearance(
|
| if (this == frame->selection().rootEditableElement())
|
| return;
|
|
|
| + // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
|
| + // needs to be audited. See http://crbug.com/590369 for more details.
|
| + document().updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| // FIXME: We should restore the previous selection if there is one.
|
| - VisibleSelection newSelection = createVisibleSelectionDeprecated(
|
| + VisibleSelection newSelection = createVisibleSelection(
|
| firstPositionInOrBeforeNode(this), TextAffinity::Downstream);
|
| // Passing DoNotSetFocus as this function is called after
|
| // FocusController::setFocusedElement() and we don't want to change the
|
|
|