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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 861553003: Invalidate CustomScrollbars on having window-inactive selector. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 months 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
« Source/core/css/RuleFeature.h ('K') | « Source/core/dom/StyleEngine.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/frame/FrameView.cpp
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp
index 79c8bc6ed79e305da0bbcb7175273785db4eb902..73920231e60bb67f904c0c5fd75c65092b9907b0 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -340,6 +340,9 @@ void FrameView::recalculateCustomScrollbarStyle()
void FrameView::invalidateAllCustomScrollbarsOnActiveChanged()
{
+ if (m_frame && !m_frame->document()->styleEngine()->usesWindowInActiveSelector())
+ return;
rune 2015/01/20 13:42:34 Even if this document doesn't have a :window-inact
MuVen 2015/01/20 14:50:11 Done.
+
const ChildrenWidgetSet* viewChildren = children();
for (const RefPtrWillBeMember<Widget>& child : *viewChildren) {
Widget* widget = child.get();
« Source/core/css/RuleFeature.h ('K') | « Source/core/dom/StyleEngine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698