Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Unified Diff: third_party/WebKit/Source/platform/scroll/Scrollbar.cpp

Issue 2590163004: Aura overlay scrollbars shouldn't invalidate thumb on scroll or enabled state. (Closed)
Patch Set: Fix BUILD.gn, make MockScrollableArea constructor protected Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 {
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/platform/scroll/ScrollbarTestSuite.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698