Changeset 168049 in webkit
- Timestamp:
- Apr 30, 2014 3:05:15 PM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r168047 r168049 1 2014-04-30 Beth Dakin <bdakin@apple.com> 2 3 Always-visible scrollbars continuously repaint after non-momentum scrollling 4 https://bugs.webkit.org/show_bug.cgi?id=132403 5 -and corresponding- 6 <rdar://problem/16553878> 7 8 Reviewed by Simon Fraser. 9 10 No longer universally opt into presentation value mode whenever the scroll 11 position changes on the scrolling thread. We really only want it for momentum 12 scrolls, and this will ensure that we always set it to NO once we have set it to 13 YES. 14 * page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm: 15 (WebCore::ScrollingTreeScrollingNodeMac::handleWheelEvent): 16 (WebCore::ScrollingTreeScrollingNodeMac::setScrollLayerPosition): 17 18 Expose shouldUsePresentationValue. 19 * platform/mac/NSScrollerImpDetails.h: 20 1 21 2014-04-30 Anders Carlsson <andersca@apple.com> 2 22 -
trunk/Source/WebCore/page/scrolling/mac/ScrollingTreeScrollingNodeMac.mm
r166517 r168049 137 137 return; 138 138 139 if (wheelEvent.momentumPhase() == PlatformWheelEventPhaseBegan) { 140 [m_verticalScrollbarPainter setUsePresentationValue:YES]; 141 [m_horizontalScrollbarPainter setUsePresentationValue:YES]; 142 } 139 143 if (wheelEvent.momentumPhase() == PlatformWheelEventPhaseEnded || wheelEvent.momentumPhase() == PlatformWheelEventPhaseCancelled) { 140 // If the wheel event is ending or cancelled, then we can tell the ScrollbarPainter API that we won't 141 // be updating the position from our scrolling thread anymore for the time being. 142 if (m_verticalScrollbarPainter) 143 [m_verticalScrollbarPainter setUsePresentationValue:NO]; 144 if (m_horizontalScrollbarPainter) 145 [m_horizontalScrollbarPainter setUsePresentationValue:NO]; 144 [m_verticalScrollbarPainter setUsePresentationValue:NO]; 145 [m_horizontalScrollbarPainter setUsePresentationValue:NO]; 146 146 } 147 147 … … 372 372 [CATransaction lock]; 373 373 374 if (m_verticalScrollbarPainter) { 375 [m_verticalScrollbarPainter setUsePresentationValue:YES]; 374 if ([m_verticalScrollbarPainter shouldUsePresentationValue]) { 376 375 float presentationValue; 377 376 float overhangAmount; … … 380 379 } 381 380 382 if (m_horizontalScrollbarPainter) { 383 [m_horizontalScrollbarPainter setUsePresentationValue:YES]; 381 if ([m_horizontalScrollbarPainter shouldUsePresentationValue]) { 384 382 float presentationValue; 385 383 float overhangAmount; -
trunk/Source/WebCore/platform/mac/NSScrollerImpDetails.h
r157253 r168049 41 41 - (void)setDoubleValue:(double)doubleValue; 42 42 - (void)setPresentationValue:(double)presentationValue; 43 - (BOOL)shouldUsePresentationValue; 43 44 - (void)setUsePresentationValue:(BOOL)usePresentationValue; 44 45 - (void)setKnobProportion:(CGFloat)proportion;
Note: See TracChangeset
for help on using the changeset viewer.