Index: Source/platform/scroll/ScrollbarThemeOverlay.cpp |
diff --git a/Source/platform/scroll/ScrollbarThemeOverlay.cpp b/Source/platform/scroll/ScrollbarThemeOverlay.cpp |
index e0d76116fd329c3f8500dc26d5805bd2f40b92d9..be49135a253f135c5709608882140cc103c273ee 100644 |
--- a/Source/platform/scroll/ScrollbarThemeOverlay.cpp |
+++ b/Source/platform/scroll/ScrollbarThemeOverlay.cpp |
@@ -128,10 +128,11 @@ int ScrollbarThemeOverlay::thumbThickness(ScrollbarThemeClient*) |
void ScrollbarThemeOverlay::paintThumb(GraphicsContext* context, ScrollbarThemeClient* scrollbar, const IntRect& rect) |
{ |
- DrawingRecorder recorder(*context, *scrollbar, DisplayItem::ScrollbarThumb, rect); |
- if (recorder.canUseCachedDrawing()) |
+ if (DrawingRecorder::useCachedDrawingIfPossible(*context, *scrollbar, DisplayItem::ScrollbarThumb)) |
return; |
+ DrawingRecorder recorder(*context, *scrollbar, DisplayItem::ScrollbarThumb, rect); |
+ |
IntRect thumbRect = rect; |
if (scrollbar->orientation() == HorizontalScrollbar) { |
thumbRect.setHeight(thumbRect.height() - m_scrollbarMargin); |