Changeset 109265 in webkit
- Timestamp:
- Feb 29, 2012 2:43:05 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r109263 r109265 1 2012-02-29 Anders Carlsson <andersca@apple.com> 2 3 [Chromium] Some Layout Tests in platform/chromium/rubberbanding and platform/chromium/compositing/rubberbanding are failing 4 https://bugs.webkit.org/show_bug.cgi?id=79878 5 6 Reviewed by James Robinson. 7 8 Make sure that ScrollableArea::setScrollOffsetFromAnimation doesn't end up 9 setting the ScrollAnimator's current scroll position by making a new function, scrollPositionChanged, 10 that both notifyScrollPositionChanged and setScrollOffsetFromAnimation call and move the call to update 11 the position to notifyScrollPositionChanged. 12 13 * platform/ScrollableArea.cpp: 14 (WebCore::ScrollableArea::notifyScrollPositionChanged): 15 (WebCore): 16 (WebCore::ScrollableArea::scrollPositionChanged): 17 (WebCore::ScrollableArea::setScrollOffsetFromAnimation): 18 * platform/ScrollableArea.h: 19 (ScrollableArea): 20 1 21 2012-02-29 Dana Jansens <danakj@chromium.org> 2 22 -
trunk/Source/WebCore/platform/ScrollableArea.cpp
r109183 r109265 125 125 void ScrollableArea::notifyScrollPositionChanged(const IntPoint& position) 126 126 { 127 scrollPositionChanged(position); 128 scrollAnimator()->setCurrentPosition(position); 129 } 130 131 void ScrollableArea::scrollPositionChanged(const IntPoint& position) 132 { 127 133 // Tell the derived class to scroll its contents. 128 134 setScrollOffset(position); … … 151 157 } 152 158 153 scrollAnimator()->setCurrentPosition(position);154 159 scrollAnimator()->notifyContentAreaScrolled(); 155 160 } … … 171 176 return; 172 177 173 notifyScrollPositionChanged(offset);178 scrollPositionChanged(offset); 174 179 } 175 180 -
trunk/Source/WebCore/platform/ScrollableArea.h
r107823 r109265 180 180 181 181 private: 182 void scrollPositionChanged(const IntPoint&); 183 182 184 // NOTE: Only called from the ScrollAnimator. 183 185 friend class ScrollAnimator;
Note: See TracChangeset
for help on using the changeset viewer.