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