Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Issue 2273163002: Cleanup and refactor RootScrollerController. (Closed)

Created:
4 years, 4 months ago by bokan
Modified:
4 years, 3 months ago
Reviewers:
tdresser
CC:
chromium-reviews, kenneth.christiansen, sof, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup and refactor root scroller machinery. Some cleanup and restructuring in anticipation of a CL to make root scrollers work across iframes: -Removed ChildViewportScrollCallback This was essentially a no-op ViewportScrollCallback that would be used inside iframe RootScrollerControllers to make everything more consistent. On reflection, I think this was a bad choice and we'll just have one ViewportScrollCallback that gets moved between frames. I've removed ChildViewportScrollCallback and folded RootViewportScrollCallback into ViewportScrollCallback. RootScrollerController's m_viewportApplyScroll is now NULL for child frames. - Initialize ViewportScrollCallback in RootScrollerController This was in FrameView because FrameView previously didn't expose the RootFrameViewport which is needed in this callback. FrameView had to expose that for other reasons so this cleans things up a little and keeps RootScrollerController more encapsulated. - Remove isViewportScrollCallback method on Document RootScrollerController is now exposed so there's no sense in growing Document's interface footprint. - Add m_currentViewportApplyScrollHost This removes the need for effectiveRootScroller to be the element that has the apply scroll callback and foreshadows changes coming in a CL to split the RootScrollerController responsibilities across two classes. BUG=505516 Committed: https://crrev.com/db5e0d5832ca0259869c57090a5bb6eee0292205 Cr-Commit-Position: refs/heads/master@{#414489}

Patch Set 1 #

Patch Set 2 : Forgot to git add new files #

Patch Set 3 : Split out TopDocumentRootScrollerController changes into a separate CL #

Total comments: 2

Patch Set 4 : Fixed class comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -343 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.h View 1 2 2 chunks +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Document.cpp View 1 2 3 chunks +4 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/dom/Element.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 3 chunks +0 lines, -13 lines 0 comments Download
D third_party/WebKit/Source/core/page/scrolling/ChildViewportScrollCallback.h View 1 chunk +0 lines, -42 lines 0 comments Download
D third_party/WebKit/Source/core/page/scrolling/ChildViewportScrollCallback.cpp View 1 chunk +0 lines, -44 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/RootScrollerController.h View 1 2 4 chunks +15 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/RootScrollerController.cpp View 1 2 5 chunks +57 lines, -22 lines 0 comments Download
D third_party/WebKit/Source/core/page/scrolling/RootViewportScrollCallback.h View 1 chunk +0 lines, -59 lines 0 comments Download
D third_party/WebKit/Source/core/page/scrolling/RootViewportScrollCallback.cpp View 1 chunk +0 lines, -108 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h View 1 2 3 1 chunk +40 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.cpp View 1 chunk +100 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (10 generated)
bokan
Tim, some cleanup before I land a patch to make this work for iframes, PTAL ...
4 years, 4 months ago (2016-08-24 23:35:27 UTC) #3
tdresser
LGTM https://codereview.chromium.org/2273163002/diff/40001/third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h File third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h (right): https://codereview.chromium.org/2273163002/diff/40001/third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h#newcode24 third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h:24: // applyScroll step of ScrollCustomization. This implementation of ...
4 years, 3 months ago (2016-08-25 14:46:47 UTC) #8
bokan
On 2016/08/25 14:46:47, tdresser wrote: > LGTM > > https://codereview.chromium.org/2273163002/diff/40001/third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h > File third_party/WebKit/Source/core/page/scrolling/ViewportScrollCallback.h > (right): ...
4 years, 3 months ago (2016-08-25 15:07:16 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2273163002/60001
4 years, 3 months ago (2016-08-25 15:07:59 UTC) #12
tdresser
Still LGTM.
4 years, 3 months ago (2016-08-25 15:08:09 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-08-25 18:44:21 UTC) #15
commit-bot: I haz the power
4 years, 3 months ago (2016-08-25 18:47:19 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/db5e0d5832ca0259869c57090a5bb6eee0292205
Cr-Commit-Position: refs/heads/master@{#414489}

Powered by Google App Engine
This is Rietveld 408576698