RESOLVED FIXED Bug 175135
ScrollingTreeOverflowScrollingNodeIOS::updateChildNodesAfterScroll uses the wrong fixedPositionRect
https://bugs.webkit.org/show_bug.cgi?id=175135
Summary ScrollingTreeOverflowScrollingNodeIOS::updateChildNodesAfterScroll uses the w...
Frédéric Wang (:fredw)
Reported 2017-08-03 08:10:13 PDT
Extracted from bug 154399.
Attachments
Patch (12.31 KB, patch)
2017-08-03 08:53 PDT, Frédéric Wang (:fredw)
simon.fraser: review+
buildbot: commit-queue-
Archive of layout-test-results from ews122 for ios-simulator-wk2 (9.89 MB, application/zip)
2017-08-03 10:25 PDT, Build Bot
no flags
Frédéric Wang (:fredw)
Comment 1 2017-08-03 08:53:51 PDT
Simon Fraser (smfr)
Comment 2 2017-08-03 10:18:05 PDT
Comment on attachment 317124 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=317124&action=review > Source/WebCore/ChangeLog:11 > + and RenderLayerCompositor. This allows to fix some flickering issues on iOS. allows to fix => fixes > Source/WebKit/ChangeLog:11 > + and RenderLayerCompositor. This allows to fix some flickering issues on iOS. ditto > Source/WebKit/UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm:281 > + if (frameNode && frameNode->parent()) > + fixedPositionRect = frameNode->fixedPositionRect(); > + else > + fixedPositionRect = scrollingTree().fixedPositionRect(); It's not clear why you check frameNode->parent() here. Is frameNode->fixedPositionRect() on the root frame node not the same as scrollingTree().fixedPositionRect()?
Build Bot
Comment 3 2017-08-03 10:25:15 PDT
Comment on attachment 317124 [details] Patch Attachment 317124 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: http://webkit-queues.webkit.org/results/4247126 New failing tests: http/tests/security/contentSecurityPolicy/report-status-code-zero-when-using-https.html
Build Bot
Comment 4 2017-08-03 10:25:17 PDT
Created attachment 317129 [details] Archive of layout-test-results from ews122 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews122 Port: ios-simulator-wk2 Platform: Mac OS X 10.12.5
Frédéric Wang (:fredw)
Comment 5 2017-08-03 11:06:04 PDT
(In reply to Simon Fraser (smfr) from comment #2) > > Source/WebKit/UIProcess/Scrolling/ios/ScrollingTreeOverflowScrollingNodeIOS.mm:281 > > + if (frameNode && frameNode->parent()) > > + fixedPositionRect = frameNode->fixedPositionRect(); > > + else > > + fixedPositionRect = scrollingTree().fixedPositionRect(); > > It's not clear why you check frameNode->parent() here. Is > frameNode->fixedPositionRect() on the root frame node not the same as > scrollingTree().fixedPositionRect()? I'm copying what is done for the ScrollingTreeFrameScrollingNodeIOS: https://trac.webkit.org/browser/trunk/Source/WebCore/page/scrolling/ios/ScrollingTreeFrameScrollingNodeIOS.mm#L171 At the end scrollingTree().fixedPositionRect() involves WebPageProxy::computeCustomFixedPositionRect which seems to do quite complex calculation. The fixedPositionRect() function I introduced here, only does the simple calculation of ScrollingTreeFrameScrollingNodeIOS.
Frédéric Wang (:fredw)
Comment 6 2017-08-04 01:07:58 PDT
(In reply to Build Bot from comment #3) > Comment on attachment 317124 [details] > Patch > > Attachment 317124 [details] did not pass ios-sim-ews (ios-simulator-wk2): > Output: http://webkit-queues.webkit.org/results/4247126 > > New failing tests: > http/tests/security/contentSecurityPolicy/report-status-code-zero-when-using- > https.html This failure seems unrelated and the test passes locally for me.
Frédéric Wang (:fredw)
Comment 7 2017-08-04 01:08:25 PDT
Radar WebKit Bug Importer
Comment 8 2017-08-04 01:09:20 PDT
Note You need to log in before you can comment on or make changes to this bug.