Changeset 104345 in webkit
- Timestamp:
- Jan 6, 2012 2:58:50 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r104344 r104345 1 2012-01-06 Anders Carlsson <andersca@apple.com> 2 3 Add and use ScrollElasticityControllerClient::absoluteScrollPosition 4 https://bugs.webkit.org/show_bug.cgi?id=75744 5 6 Reviewed by Dan Bernstein. 7 8 * platform/mac/ScrollAnimatorMac.h: 9 * platform/mac/ScrollAnimatorMac.mm: 10 (WebCore::ScrollAnimatorMac::absoluteScrollPosition): 11 (WebCore::ScrollAnimatorMac::snapRubberBandTimerFired): 12 * platform/mac/ScrollElasticityController.h: 13 1 14 2012-01-06 Adam Barth <abarth@webkit.org> 2 15 -
trunk/Source/WebCore/platform/mac/ScrollAnimatorMac.h
r104321 r104345 131 131 virtual bool canScrollHorizontally() OVERRIDE; 132 132 virtual bool canScrollVertically() OVERRIDE; 133 virtual WebCore::IntPoint absoluteScrollPosition() OVERRIDE; 133 134 virtual void immediateScrollByWithoutContentEdgeConstraints(const FloatSize&) OVERRIDE; 134 135 virtual void immediateScrollBy(const FloatSize&) OVERRIDE; -
trunk/Source/WebCore/platform/mac/ScrollAnimatorMac.mm
r104341 r104345 1067 1067 return false; 1068 1068 return scrollbar->enabled(); 1069 } 1070 1071 IntPoint ScrollAnimatorMac::absoluteScrollPosition() 1072 { 1073 return m_scrollableArea->visibleContentRect().location() + m_scrollableArea->scrollOrigin(); 1069 1074 } 1070 1075 … … 1351 1356 } 1352 1357 1353 m_scrollElasticityController.m_origOrigin = (m_scrollableArea->visibleContentRect().location() + m_scrollableArea->scrollOrigin()) - m_scrollElasticityController.m_startStretch;1358 m_scrollElasticityController.m_origOrigin = m_scrollElasticityController.m_client->absoluteScrollPosition() - m_scrollElasticityController.m_startStretch; 1354 1359 m_scrollElasticityController.m_origVelocity = m_scrollElasticityController.m_momentumVelocity; 1355 1360 -
trunk/Source/WebCore/platform/mac/ScrollElasticityController.h
r104321 r104345 44 44 virtual bool canScrollHorizontally() = 0; 45 45 virtual bool canScrollVertically() = 0; 46 47 // Return the absolute scroll position, not relative to the scroll origin. 48 virtual WebCore::IntPoint absoluteScrollPosition() = 0; 49 46 50 virtual void immediateScrollBy(const FloatSize&) = 0; 47 51 virtual void immediateScrollByWithoutContentEdgeConstraints(const FloatSize&) = 0;
Note: See TracChangeset
for help on using the changeset viewer.