Index: third_party/WebKit/Source/platform/scroll/Scrollbar.cpp |
diff --git a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp |
index a246461f0a66c8f73f12516cbaed9344fcedccbe..1c616d3227a782fb383fd0f9e4438eff00d5bb12 100644 |
--- a/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp |
+++ b/third_party/WebKit/Source/platform/scroll/Scrollbar.cpp |
@@ -531,7 +531,9 @@ void Scrollbar::setEnabled(bool e) { |
return; |
m_enabled = e; |
theme().updateEnabledState(*this); |
- setNeedsPaintInvalidation(AllParts); |
+ |
+ ScrollbarPart invalidParts = theme().invalidateOnEnabledChange(); |
+ setNeedsPaintInvalidation(invalidParts); |
} |
int Scrollbar::scrollbarThickness() const { |