Changeset 201476 in webkit
- Timestamp:
- May 27, 2016, 5:07:35 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r201473 r201476 1 2016-05-27 Zalan Bujtas <zalan@apple.com> 2 3 EventHandler finds incorrect scrollable container. 4 https://bugs.webkit.org/show_bug.cgi?id=158132 5 <rdar://problem/26423126> 6 7 Reviewed by Brent Fulgham. 8 9 Fix the logic that checks whether we are at the beginning or at the end of the container (horizontally). 10 While scrolling to the right, deltaX has negative values. So in case of deltaX < 0, we need to check if 11 the container is not scrolled all the way to the right. 12 13 * fast/scrolling/scroll-container-horizontally-expected.txt: Added. 14 * fast/scrolling/scroll-container-horizontally.html: Added. 15 * platform/ios-simulator/TestExpectations: 16 * platform/mac-wk1/TestExpectations: 17 1 18 2016-05-27 Saam barati <sbarati@apple.com> 2 19 -
trunk/LayoutTests/platform/ios-simulator/TestExpectations
r201338 r201476 63 63 fast/events/wheel-event-destroys-overflow.html [ Skip ] 64 64 fast/events/wheel-event-outside-body.html [ Skip ] 65 fast/scrolling/scroll-container-horizontally.html [ Failure ] 65 66 66 67 # Not supported on iOS -
trunk/LayoutTests/platform/mac-wk1/TestExpectations
r201346 r201476 128 128 fast/scrolling/iframe-scrollable-after-back.html [ Skip ] 129 129 fast/scrolling/overflow-scrollable-after-back.html [ Skip ] 130 fast/scrolling/scroll-container-horizontally.html [ Failure ] 130 131 131 132 compositing/rtl/rtl-fixed-overflow-scrolled.html [ Failure ] -
trunk/Source/WebCore/ChangeLog
r201474 r201476 1 2016-05-27 Zalan Bujtas <zalan@apple.com> 2 3 EventHandler finds incorrect scrollable container. 4 https://bugs.webkit.org/show_bug.cgi?id=158132 5 <rdar://problem/26423126> 6 7 Reviewed by Brent Fulgham. 8 9 Fix the logic that checks whether we are at the beginning or at the end of the container (horizontally). 10 While scrolling to the right, deltaX has negative values. So in case of deltaX < 0, we need to check if 11 the container is not scrolled all the way to the right. 12 13 Test: fast/scrolling/scroll-container-horizontally.html 14 15 * page/mac/EventHandlerMac.mm: 16 (WebCore::findEnclosingScrollableContainer): 17 1 18 2016-05-27 Jeremy Jones <jeremyj@apple.com> 2 19 -
trunk/Source/WebCore/page/mac/EventHandlerMac.mm
r201441 r201476 818 818 if (ScrollableArea* scrollableArea = scrollableAreaForBox(*box)) { 819 819 if (((deltaY > 0) && !scrollableArea->scrolledToTop()) || ((deltaY < 0) && !scrollableArea->scrolledToBottom()) 820 || ((deltaX > 0) && !scrollableArea->scrolledTo Right()) || ((deltaX < 0) && !scrollableArea->scrolledToLeft())) {820 || ((deltaX > 0) && !scrollableArea->scrolledToLeft()) || ((deltaX < 0) && !scrollableArea->scrolledToRight())) { 821 821 return candidate; 822 822 }
Note:
See TracChangeset
for help on using the changeset viewer.