Index: third_party/WebKit/Source/platform/exported/WebScrollbarThemePainter.cpp |
diff --git a/third_party/WebKit/Source/platform/exported/WebScrollbarThemePainter.cpp b/third_party/WebKit/Source/platform/exported/WebScrollbarThemePainter.cpp |
index 1f1c76b42b9e63b0f3f50deed667f03d7c99ab7a..227801f6f971732285c4abefc249f7422576de35 100644 |
--- a/third_party/WebKit/Source/platform/exported/WebScrollbarThemePainter.cpp |
+++ b/third_party/WebKit/Source/platform/exported/WebScrollbarThemePainter.cpp |
@@ -66,8 +66,7 @@ void WebScrollbarThemePainter::paintTrackBackground(WebCanvas* canvas, const Web |
pictureBuilder.context().setDeviceScaleFactor(m_deviceScaleFactor); |
m_theme->paintTrackBackground(pictureBuilder.context(), *m_scrollbar, intRect); |
pictureBuilder.endRecording()->playback(canvas); |
- if (!m_theme->shouldRepaintAllPartsOnInvalidation()) |
- m_scrollbar->setTrackNeedsRepaint(false); |
+ m_scrollbar->setTrackNeedsRepaint(false); |
} |
void WebScrollbarThemePainter::paintBackTrackPart(WebCanvas* canvas, const WebRect& rect) |
@@ -140,8 +139,7 @@ void WebScrollbarThemePainter::paintThumb(WebCanvas* canvas, const WebRect& rect |
pictureBuilder.context().setDeviceScaleFactor(m_deviceScaleFactor); |
m_theme->paintThumb(pictureBuilder.context(), *m_scrollbar, intRect); |
pictureBuilder.endRecording()->playback(canvas); |
- if (!m_theme->shouldRepaintAllPartsOnInvalidation()) |
- m_scrollbar->setThumbNeedsRepaint(false); |
+ m_scrollbar->setThumbNeedsRepaint(false); |
} |
WebScrollbarThemePainter::WebScrollbarThemePainter(ScrollbarTheme& theme, Scrollbar& scrollbar, float deviceScaleFactor) |