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

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: fixed few more indentations Created 6 years 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 b2948ef0d254de143ce815d6e4c9383fec615569..1d5db14bd502e6bb705253de596d867658b19969 100644
--- a/Source/core/editing/FrameSelection.cpp
+++ b/Source/core/editing/FrameSelection.cpp
@@ -1464,6 +1464,11 @@ void FrameSelection::focusedOrActiveStateChanged()
bool activeAndFocused = isFocusedAndActive();
RefPtrWillBeRawPtr<Document> document = m_frame->document();
+ // Invalidate All CustomScrollbars as CustomScrollbars supports
+ // CSS window-active attribute.
+ if (FrameView* view = document->view())
+ view->invalidateAllCustomScrollbarsOnActiveChanged();
+
document->updateRenderTreeIfNeeded();
// Because RenderObject::selectionBackgroundColor() and
« no previous file with comments | « LayoutTests/scrollbars/resources/scrollable-subiframe-inactive-expected.html ('k') | Source/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698