Changeset 181522 in webkit
- Timestamp:
- Mar 15, 2015 10:34:27 PM (9 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r181516 r181522 1 2015-03-15 Brent Fulgham <bfulgham@apple.com> 2 3 Scroll snap points are not supported on iframe content 4 https://bugs.webkit.org/show_bug.cgi?id=142582 5 <rdar://problem/20121319> 6 7 Reviewed by Simon Fraser. 8 9 * css3/scroll-snap/resources: Added. 10 * css3/scroll-snap/resources/iframe-content.html: Added. 11 * css3/scroll-snap/scroll-snap-iframe-expected.txt: Added. 12 * css3/scroll-snap/scroll-snap-iframe.html: Added. 13 1 14 2015-03-15 Joseph Pecoraro <pecoraro@apple.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r181521 r181522 1 2015-03-15 Brent Fulgham <bfulgham@apple.com> 2 3 Scroll snap points are not supported on iframe content 4 https://bugs.webkit.org/show_bug.cgi?id=142582 5 <rdar://problem/20121319> 6 7 Tested by css3/scroll-snap/scroll-snap-iframe.html 8 9 Reviewed by Simon Fraser. 10 11 The scroll snap points were not being applied to the iframe contents because the code 12 that sets up the scroll snap point content is not called for iframes. 13 14 To correct this, we need to make sure the snap offsets are set during post-frame layout 15 for iframes. We also need to make sure (on Mac) that the scroll animator and timers are updated. 16 17 * page/FrameView.cpp: 18 (WebCore::FrameView::performPostLayoutTasks): Call 'updateSnapOffsets' if the frame is not a 19 MainFrame. Also notify scroll animators they need to update their snap point settings. 20 1 21 2015-03-15 Simon Fraser <simon.fraser@apple.com> 2 22 -
trunk/Source/WebCore/page/FrameView.cpp
r181111 r181522 2977 2977 sendResizeEventIfNeeded(); 2978 2978 viewportContentsChanged(); 2979 2980 #if ENABLE(CSS_SCROLL_SNAP) 2981 if (!frame().isMainFrame()) { 2982 updateSnapOffsets(); 2983 if (ScrollAnimator* scrollAnimator = existingScrollAnimator()) 2984 return scrollAnimator->updateScrollAnimatorsAndTimers(); 2985 } 2986 #endif 2979 2987 } 2980 2988
Note: See TracChangeset
for help on using the changeset viewer.