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

Unified Diff: third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm

Issue 1550983002: Revert of Make ScrollbarThemeAura selectively invalidate scrollbar parts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/mac/ScrollAnimatorMac.mm
diff --git a/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm b/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm
index 1548b81ab8e778f66ce86de7a8313b330a63d7b5..a731a469ac9ec262a7bf6cd3552c1fa3aaed64f9 100644
--- a/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm
+++ b/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm
@@ -428,17 +428,20 @@
break;
case TrackAlpha:
[_scrollbarPainter.get() setTrackAlpha:currentValue];
- _scrollbar->setNeedsPaintInvalidation(static_cast<ScrollbarPart>(~ThumbPart));
+ _scrollbar->setTrackNeedsRepaint(true);
break;
case UIStateTransition:
[_scrollbarPainter.get() setUiStateTransitionProgress:currentValue];
- _scrollbar->setNeedsPaintInvalidation();
+ _scrollbar->setThumbNeedsRepaint(true);
+ _scrollbar->setTrackNeedsRepaint(true);
break;
case ExpansionTransition:
[_scrollbarPainter.get() setExpansionTransitionProgress:currentValue];
- _scrollbar->setNeedsPaintInvalidation(ThumbPart);
+ _scrollbar->setThumbNeedsRepaint(true);
break;
}
+
+ _scrollbar->setNeedsPaintInvalidation();
}
- (void)invalidate

Powered by Google App Engine
This is Rietveld 408576698