Changeset 238266 in webkit
- Timestamp:
- Nov 15, 2018 9:02:56 PM (5 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r238262 r238266 1 2018-11-15 Simon Fraser <simon.fraser@apple.com> 2 3 Overlay with -webkit-overflow-scrolling:touch doesn't become scrollable after added text makes it taller 4 https://bugs.webkit.org/show_bug.cgi?id=158342 5 rdar://problem/26652811 6 7 Reviewed by Zalan Bujtas. 8 9 Patch partly by Frédéric Wang. 10 11 Add a test to check that scrollability of composited/non-composited overflow divs is properly 12 updated. This test used to fail and assert before #238090. A second test with nested divs 13 stills exhibit the issue and is fixed by the present commit. 14 15 * fast/scrolling/ios/change-scrollability-on-content-resize-expected.txt: Added. 16 * fast/scrolling/ios/change-scrollability-on-content-resize-nested-expected.txt: Added. 17 * fast/scrolling/ios/change-scrollability-on-content-resize-nested.html: Added. 18 * fast/scrolling/ios/change-scrollability-on-content-resize.html: Added. 19 1 20 2018-11-15 Truitt Savell <tsavell@apple.com> 2 21 -
trunk/Source/WebCore/ChangeLog
r238263 r238266 1 2018-11-15 Simon Fraser <simon.fraser@apple.com> 2 3 Overlay with -webkit-overflow-scrolling:touch doesn't become scrollable after added text makes it taller 4 https://bugs.webkit.org/show_bug.cgi?id=158342 5 rdar://problem/26652811 6 7 Reviewed by Zalan Bujtas. 8 9 Patch partly by Frédéric Wang. 10 11 This commit fixes an issue when resizing the content of a -webkit-overflow-scrolling: touch 12 overflow node on iOS. Indeed, the RenderLayerBacking's scrolling layer may not be properly 13 created and hence the UIProcess receives a null UIScrollView pointer. This triggers an 14 assertion in debug mode and prevents the user from scrolling the overflow node in release 15 mode. This was partially fixed by the refactoring of bug 90342 but this commit addresses 16 the remaining issues by forcing a configuration update after layout in order to ensure that 17 RenderLayerBacking's scrolling layer is available. For an overflow element that is not yet 18 composited, trigger a post-layout update that is necessary to check if we need to make it 19 composited when it gains scrollable overflow. 20 21 Tests: fast/scrolling/ios/change-scrollability-on-content-resize-nested.html 22 fast/scrolling/ios/change-scrollability-on-content-resize.html 23 24 * rendering/RenderLayer.cpp: 25 (WebCore::RenderLayer::updateScrollInfoAfterLayout): Force a configuration update so that 26 RenderLayerCompositor::updateBackingAndHierarchy will later instantiate 27 RenderLayerBacking::m_scrollingLayer. 28 1 29 2018-11-15 Fujii Hironori <Hironori.Fujii@sony.com> 2 30 -
trunk/Source/WebCore/rendering/RenderLayer.cpp
r238108 r238266 3572 3572 scrollToOffsetWithoutAnimation(IntPoint(scrollOffset())); 3573 3573 3574 if (isComposited()) 3574 if (isComposited()) { 3575 3575 setNeedsCompositingGeometryUpdate(); 3576 setNeedsCompositingConfigurationUpdate(); 3577 } 3578 3579 #if PLATFORM(IOS_FAMILY) 3580 if (canUseAcceleratedTouchScrolling()) 3581 setNeedsPostLayoutCompositingUpdate(); 3582 #endif 3576 3583 3577 3584 updateScrollSnapState(); -
trunk/Source/WebCore/rendering/RenderLayerBacking.cpp
r238212 r238266 719 719 layerConfigChanged = true; 720 720 721 // Requires layout.722 721 if (updateOverflowControlsLayers(requiresHorizontalScrollbarLayer(), requiresVerticalScrollbarLayer(), requiresScrollCornerLayer())) 723 722 layerConfigChanged = true;
Note: See TracChangeset
for help on using the changeset viewer.