Index: Source/core/frame/FrameView.cpp |
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
index 63c7faa24d53d41603d8cea36476da2ffbb9c253..22bd64ad5b229c21c8e7c34649234cae15480ebb 100644 |
--- a/Source/core/frame/FrameView.cpp |
+++ b/Source/core/frame/FrameView.cpp |
@@ -323,6 +323,24 @@ void FrameView::detachCustomScrollbars() |
} |
} |
+void FrameView::recalculateCustomScrollbarStyle() |
+{ |
+ bool didStyleChange = false; |
+ if (m_horizontalScrollbar && m_horizontalScrollbar->isCustomScrollbar()) { |
+ m_horizontalScrollbar->styleChanged(); |
+ didStyleChange = true; |
+ } |
+ if (m_verticalScrollbar && m_verticalScrollbar->isCustomScrollbar()) { |
+ m_verticalScrollbar->styleChanged(); |
+ didStyleChange = true; |
+ } |
+ if (didStyleChange) { |
+ updateScrollbarGeometry(); |
+ updateScrollCorner(); |
+ positionScrollbarLayers(); |
+ } |
+} |
+ |
void FrameView::recalculateScrollbarOverlayStyle() |
{ |
ScrollbarOverlayStyle oldOverlayStyle = scrollbarOverlayStyle(); |