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 a731a469ac9ec262a7bf6cd3552c1fa3aaed64f9..1548b81ab8e778f66ce86de7a8313b330a63d7b5 100644 |
--- a/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm |
+++ b/third_party/WebKit/Source/platform/mac/ScrollAnimatorMac.mm |
@@ -428,20 +428,17 @@ private: |
break; |
case TrackAlpha: |
[_scrollbarPainter.get() setTrackAlpha:currentValue]; |
- _scrollbar->setTrackNeedsRepaint(true); |
+ _scrollbar->setNeedsPaintInvalidation(static_cast<ScrollbarPart>(~ThumbPart)); |
break; |
case UIStateTransition: |
[_scrollbarPainter.get() setUiStateTransitionProgress:currentValue]; |
- _scrollbar->setThumbNeedsRepaint(true); |
- _scrollbar->setTrackNeedsRepaint(true); |
+ _scrollbar->setNeedsPaintInvalidation(); |
break; |
case ExpansionTransition: |
[_scrollbarPainter.get() setExpansionTransitionProgress:currentValue]; |
- _scrollbar->setThumbNeedsRepaint(true); |
+ _scrollbar->setNeedsPaintInvalidation(ThumbPart); |
break; |
} |
- |
- _scrollbar->setNeedsPaintInvalidation(); |
} |
- (void)invalidate |