| Index: third_party/WebKit/Source/core/page/FocusController.cpp
|
| diff --git a/third_party/WebKit/Source/core/page/FocusController.cpp b/third_party/WebKit/Source/core/page/FocusController.cpp
|
| index 5d9392435ee3adf64d68843f07f22809cc363512..073a75ae89bc6c0a06146fd4062e8c887e9a92f2 100644
|
| --- a/third_party/WebKit/Source/core/page/FocusController.cpp
|
| +++ b/third_party/WebKit/Source/core/page/FocusController.cpp
|
| @@ -1069,6 +1069,13 @@ bool FocusController::advanceFocusInDocumentOrder(
|
| setFocusedFrame(newDocument.frame());
|
|
|
| if (caretBrowsing) {
|
| + // TODO(xiaochengh): The use of updateStyleAndLayoutIgnorePendingStylesheets
|
| + // needs to be audited. See http://crbug.com/590369 for more details.
|
| + // In the long term, we should change FrameSelection::setSelection to take a
|
| + // parameter that does not require clean layout, so that modifying selection
|
| + // no longer performs synchronous layout by itself.
|
| + newDocument.updateStyleAndLayoutIgnorePendingStylesheets();
|
| +
|
| Position position = firstPositionInOrBeforeNode(element);
|
| VisibleSelection newSelection =
|
| createVisibleSelectionDeprecated(position, position);
|
|
|