ScrollbarThemes should be returned by reference.
[WebKit-https.git] / Source / WebCore / platform / ScrollableArea.cpp
index 5dfc695..aefc021 100644 (file)
@@ -339,14 +339,14 @@ void ScrollableArea::setScrollbarOverlayStyle(ScrollbarOverlayStyle overlayStyle
     m_scrollbarOverlayStyle = overlayStyle;
 
     if (horizontalScrollbar()) {
-        ScrollbarTheme::theme()->updateScrollbarOverlayStyle(*horizontalScrollbar());
+        ScrollbarTheme::theme().updateScrollbarOverlayStyle(*horizontalScrollbar());
         horizontalScrollbar()->invalidate();
         if (ScrollAnimator* scrollAnimator = existingScrollAnimator())
             scrollAnimator->invalidateScrollbarPartLayers(horizontalScrollbar());
     }
     
     if (verticalScrollbar()) {
-        ScrollbarTheme::theme()->updateScrollbarOverlayStyle(*verticalScrollbar());
+        ScrollbarTheme::theme().updateScrollbarOverlayStyle(*verticalScrollbar());
         verticalScrollbar()->invalidate();
         if (ScrollAnimator* scrollAnimator = existingScrollAnimator())
             scrollAnimator->invalidateScrollbarPartLayers(verticalScrollbar());