Changeset 104855 in webkit
- Timestamp:
- Jan 12, 2012 1:39:54 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r104853 r104855 1 2012-01-12 Anders Carlsson <andersca@apple.com> 2 3 Make ScrollElasticityController members private 4 https://bugs.webkit.org/show_bug.cgi?id=76208 5 6 Reviewed by Andreas Kling. 7 8 * platform/mac/ScrollAnimatorMac.mm: 9 (WebCore::ScrollAnimatorMac::endScrollGesture): 10 Call ScrollElasticityController::endScrollGesture. 11 12 * platform/mac/ScrollElasticityController.h: 13 Make members private. 14 15 * platform/mac/ScrollElasticityController.mm: 16 (WebCore::ScrollElasticityController::endScrollGesture): 17 Call snapRubberBand. 18 19 (WebCore::ScrollElasticityController::snapRubberBandTimerFired): 20 Call stopSnapRubberbandTimer. 21 1 22 2012-01-12 Anders Carlsson <andersca@apple.com> 2 23 -
trunk/Source/WebCore/platform/mac/ScrollAnimatorMac.mm
r104853 r104855 1086 1086 didEndScrollGesture(); 1087 1087 1088 m_scrollElasticityController. snapRubberBand();1088 m_scrollElasticityController.endScrollGesture(); 1089 1089 } 1090 1090 -
trunk/Source/WebCore/platform/mac/ScrollElasticityController.h
r104853 r104855 65 65 66 66 void beginScrollGesture(); 67 void endScrollGesture(); 67 68 68 69 bool handleWheelEvent(const PlatformWheelEvent&); … … 71 72 private: 72 73 void stopSnapRubberbandTimer(); 73 74 // FIXME: These members should be private. They are currently public as a stop-gap measure, while75 // the rubber-band related code from ScrollAnimatorMac is being moved over.76 public:77 74 void snapRubberBand(); 78 75 -
trunk/Source/WebCore/platform/mac/ScrollElasticityController.mm
r104853 r104855 133 133 } 134 134 135 void ScrollElasticityController::endScrollGesture() 136 { 137 snapRubberBand(); 138 } 139 135 140 bool ScrollElasticityController::handleWheelEvent(const PlatformWheelEvent& wheelEvent) 136 141 { … … 306 311 m_startStretch = m_client->stretchAmount(); 307 312 if (m_startStretch == FloatSize()) { 308 m_client->stopSnapRubberbandTimer();313 stopSnapRubberbandTimer(); 309 314 310 315 m_stretchScrollForce = FloatSize(); … … 313 318 m_origOrigin = FloatPoint(); 314 319 m_origVelocity = FloatSize(); 315 m_snapRubberbandTimerIsActive = false;316 317 320 return; 318 321 } … … 348 351 } else { 349 352 m_client->immediateScrollBy(m_origOrigin - m_client->absoluteScrollPosition()); 350 m_client->stopSnapRubberbandTimer(); 351 353 354 stopSnapRubberbandTimer(); 352 355 m_stretchScrollForce = FloatSize(); 353 356 m_startTime = 0; … … 355 358 m_origOrigin = FloatPoint(); 356 359 m_origVelocity = FloatSize(); 357 m_snapRubberbandTimerIsActive = false;358 360 } 359 361 } else {
Note: See TracChangeset
for help on using the changeset viewer.