Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(734)

Unified Diff: Source/core/editing/FrameSelection.cpp

Issue 748513006: Trigger style recalc when the window's active state change (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed dumppixels from testcase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/editing/FrameSelection.cpp
diff --git a/Source/core/editing/FrameSelection.cpp b/Source/core/editing/FrameSelection.cpp
index 86c6ce0ffcb63657e3bb1f4b08c81c48808427bb..a2181cbb368543158ceaa8aa66d1e8733ac2d70e 100644
--- a/Source/core/editing/FrameSelection.cpp
+++ b/Source/core/editing/FrameSelection.cpp
@@ -1464,7 +1464,7 @@ void FrameSelection::focusedOrActiveStateChanged()
bool activeAndFocused = isFocusedAndActive();
RefPtrWillBeRawPtr<Document> document = m_frame->document();
- document->updateRenderTreeIfNeeded();
+ document->updateRenderTreeOnFocusChanged();
// Because RenderObject::selectionBackgroundColor() and
// RenderObject::selectionForegroundColor() check if the frame is active,

Powered by Google App Engine
This is Rietveld 408576698