Chromium Code Reviews| Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp |
| diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
| index ceb95a4277b7e9c32280a4110c63cb4ba8bbecfd..fee588290b8d521b0f64c002615689bb2ba0eebe 100644 |
| --- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
| +++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
| @@ -909,7 +909,8 @@ void FrameSelection::focusedOrActiveStateChanged() |
| if (Element* element = document->focusedElement()) |
| element->focusStateChanged(); |
| - document->updateLayoutTreeIfNeeded(); |
| + if (!document->isInitialEmptyDocument()) |
|
tkent
2016/01/21 02:19:32
Can you move isInitialEmptyDocument() check to Doc
kouhei (in TOK)
2016/02/18 03:50:49
Done.
|
| + document->updateLayoutTreeIfNeeded(); |
| // Because LayoutObject::selectionBackgroundColor() and |
| // LayoutObject::selectionForegroundColor() check if the frame is active, |