Index: Source/core/frame/FrameView.cpp |
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
index fead2c37d5aef382869754e821fde1e16084b94b..1f8940f50a20ab498fcdc1558a7f66460ffe8da9 100644 |
--- a/Source/core/frame/FrameView.cpp |
+++ b/Source/core/frame/FrameView.cpp |
@@ -341,6 +341,19 @@ 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)->invalidateAllCustomScrollbarsOnActiveChanged(); |
+ else if (widget->isScrollbar() && toScrollbar(widget)->isCustomScrollbar()) |
+ toScrollbar(widget)->styleChanged(); |
+ } |
+ recalculateCustomScrollbarStyle(); |
+} |
+ |
void FrameView::recalculateScrollbarOverlayStyle() |
{ |
ScrollbarOverlayStyle oldOverlayStyle = scrollbarOverlayStyle(); |