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

Issue 2280453002: Split RootScrollerController into top-document and child-document classes (Closed)

Created:
4 years, 3 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@rootScrollerIFrames2
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split RootScrollerController into top-document and child-document classes Work on making RootScrollerController work across iframes revealed that there's two responsibilities that need management. All frames need a RootScrollerController to manage the Element currently set as root scroller and determine which Element should eventually become the effective root scroller. In addition, we need the RootScrollerController to manage the ViewportApplyScroll and set it on the appropriate element. Since only one Element on the whole page needs this callback set, it makes sense that only the top document should have this responsibility. Experience with classes like FrameView and EventHandler shows that this may be better served by subclassing the top level object rather than having isMainFrame() checks intermingled with the other code. BUG=505516 Committed: https://crrev.com/f8bc5669c399f88dc57d6a8832bc233db306c3c7 Cr-Commit-Position: refs/heads/master@{#414796}

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fixed Comments #

Patch Set 3 : Linked TODO to bug #

Messages

Total messages: 26 (14 generated)
bokan
part 2 of the cleanup
4 years, 3 months ago (2016-08-24 23:39:18 UTC) #3
bokan
Actually, I think TopDocumentRootScroller should actually be a separate class and that'll move onto Page ...
4 years, 3 months ago (2016-08-25 14:52:04 UTC) #4
tdresser
LGTM https://codereview.chromium.org/2280453002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2280453002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode477 third_party/WebKit/Source/core/dom/Document.cpp:477: // in checks to isInMainFrame. I don't quite ...
4 years, 3 months ago (2016-08-25 14:59:21 UTC) #5
bokan
https://codereview.chromium.org/2280453002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2280453002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode477 third_party/WebKit/Source/core/dom/Document.cpp:477: // in checks to isInMainFrame. On 2016/08/25 14:59:21, tdresser ...
4 years, 3 months ago (2016-08-25 15:14:13 UTC) #6
tdresser
https://codereview.chromium.org/2280453002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp File third_party/WebKit/Source/core/dom/Document.cpp (right): https://codereview.chromium.org/2280453002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode477 third_party/WebKit/Source/core/dom/Document.cpp:477: // in checks to isInMainFrame. On 2016/08/25 15:14:13, bokan ...
4 years, 3 months ago (2016-08-25 15:18:12 UTC) #9
bokan
On 2016/08/25 15:18:12, tdresser wrote: > https://codereview.chromium.org/2280453002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp > File third_party/WebKit/Source/core/dom/Document.cpp (right): > > https://codereview.chromium.org/2280453002/diff/1/third_party/WebKit/Source/core/dom/Document.cpp#newcode477 > ...
4 years, 3 months ago (2016-08-25 15:21:57 UTC) #10
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/2280453002/40001
4 years, 3 months ago (2016-08-25 18:54:24 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/268982)
4 years, 3 months ago (2016-08-25 20:55:55 UTC) #19
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/2280453002/40001
4 years, 3 months ago (2016-08-26 15:13:11 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-08-26 20:27:49 UTC) #23
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/f8bc5669c399f88dc57d6a8832bc233db306c3c7 Cr-Commit-Position: refs/heads/master@{#414796}
4 years, 3 months ago (2016-08-26 20:30:21 UTC) #25
lfg
4 years, 3 months ago (2016-08-30 14:06:47 UTC) #26
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/2293903002/ by lfg@chromium.org.

The reason for reverting is: Causes oopif renderers to die. See
https://crbug.com/641775.

Powered by Google App Engine
This is Rietveld 408576698