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

Unified Diff: Source/core/frame/FrameView.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: Missed out Updating Scrollbar geometry on styleChanged: Added it now 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
« no previous file with comments | « Source/core/frame/FrameView.h ('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 fead2c37d5aef382869754e821fde1e16084b94b..05596e8bc20c3739146e092c82bc2f259a144670 100644
--- a/Source/core/frame/FrameView.cpp
+++ b/Source/core/frame/FrameView.cpp
@@ -341,6 +341,23 @@ void FrameView::recalculateCustomScrollbarStyle()
}
}
+void FrameView::invalidateAllCustomScrollbarsOnActiveChanged()
+{
+ const ChildrenWidgetSet* viewChildren = children();
+ for (const RefPtrWillBeMember<Widget>& child : *viewChildren) {
+ Widget* widget = child.get();
+ if (widget->isFrameView()) {
+ toFrameView(widget)->recalculateCustomScrollbarStyle();
+ toFrameView(widget)->invalidateAllCustomScrollbarsOnActiveChanged();
+ } else if (widget->isScrollbar()) {
+ toScrollbar(widget)->styleChanged();
+ updateScrollbarGeometry();
MuVen 2014/12/09 11:29:48 This snippet was missed. If RootFrameView has Cust
rune 2014/12/09 11:41:33 I'm not an expert on scrollbar widgets, but doesn'
+ updateScrollCorner();
+ positionScrollbarLayers();
+ }
+ }
+}
+
void FrameView::recalculateScrollbarOverlayStyle()
{
ScrollbarOverlayStyle oldOverlayStyle = scrollbarOverlayStyle();
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698