Refactor OOPIF scroll bubbling state and cancellation
Whether or not a child is bubbling scroll was being tracked in both CrossProcessFrameConnector and RenderWidgetHostViewChildFrame. It's simpler to just have it in RWHVCF. There are several cases where we generate fake scroll updates when cancelling scroll bubbling. This is a relic from the non-scroll latching code paths and has been removed. We also deduplicate the scroll bubbling cancellation code. We were tracking the view from which scroll events are bubbled by keeping a reference to that view's parent. We now just keep a reference to the originating view directly. We also now properly cancel scroll bubbling when a child detaches. Bug: 828422, 897216 Change-Id: Iee983bd9ea05b324d556c66320a1bc5e544de057 Reviewed-on: https://chromium-review.googlesource.com/c/1357563Reviewed-by:Ken Buchanan <kenrb@chromium.org> Commit-Queue: Kevin McNee <mcnee@chromium.org> Cr-Commit-Position: refs/heads/master@{#615184}
Showing
This diff is collapsed.
Please register or sign in to comment