Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(20)

Issue 1158673006: Replace various ScrollableArea scroll methods with setScrollPosition (Closed)

Created:
4 years, 11 months ago by bokan
Modified:
4 years, 10 months ago
CC:
blink-reviews, szager+layoutwatch_chromium.org, dshwang, eae+blinkwatch, shans, rwlbuis, krit, pdr+graphicswatchlist_chromium.org, aboxhall, blink-reviews-html_chromium.org, Justin Novosad, danakj, blink-reviews-dom_chromium.org, dglazkov+blink, je_julie, jchaffraix+rendering, blink-reviews-paint_chromium.org, Eric Willigers, rjwright, zoltan1, sof, jbroman, dmazzoni, darktears, blink-reviews-rendering, Rik, blink-reviews-animation_chromium.org, pdr+renderingwatchlist_chromium.org, leviw+renderwatch, slimming-paint-reviews_chromium.org, blink-layers+watch_chromium.org, nektarios, f(malita), Stephen Chennney
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Replace various ScrollableArea scroll methods with setScrollPosition Replaced scrollToOffsetWithoutAnimation and programaticallyScrollSmoothly with setScrollPosition and a new enum describing the type of scroll. This patch plumbs this ScrollType through to setScrollOffset to allow derived classes to differ behavior based on the type of scroll. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196867

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : Rebase #

Total comments: 13

Patch Set 4 : Rebase #

Patch Set 5 : Skobes@ review #

Patch Set 6 : Rebase #

Total comments: 2

Patch Set 7 : Rebase + Accessibility TODOs #

Patch Set 8 : Compile fix for Mac #

Patch Set 9 : Build fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -183 lines) Patch
M Source/core/dom/Element.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/frame/FrameView.h View 1 2 3 4 5 6 4 chunks +4 lines, -9 lines 0 comments Download
M Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 5 chunks +8 lines, -6 lines 0 comments Download
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M Source/core/frame/PinchViewport.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/frame/PinchViewport.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M Source/core/frame/RootFrameViewport.h View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
M Source/core/frame/RootFrameViewport.cpp View 1 2 3 4 5 6 5 chunks +17 lines, -12 lines 0 comments Download
M Source/core/frame/RootFrameViewportTest.cpp View 1 2 3 4 5 6 14 chunks +20 lines, -21 lines 0 comments Download
M Source/core/html/ImageDocument.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/SpatialNavigation.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/paint/DeprecatedPaintLayerScrollableArea.h View 1 2 3 4 5 chunks +4 lines, -6 lines 0 comments Download
M Source/core/paint/DeprecatedPaintLayerScrollableArea.cpp View 1 2 3 4 5 3 chunks +8 lines, -13 lines 0 comments Download
M Source/modules/accessibility/AXObject.cpp View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M Source/modules/accessibility/AXScrollbar.cpp View 1 2 3 4 5 6 1 chunk +3 lines, -1 line 0 comments Download
M Source/platform/graphics/GraphicsLayer.cpp View 1 chunk +4 lines, -3 lines 0 comments Download
M Source/platform/graphics/GraphicsLayerTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/platform/mac/ScrollAnimatorMac.h View 6 2 chunks +2 lines, -2 lines 0 comments Download
M Source/platform/mac/ScrollAnimatorMac.mm View 1 2 3 4 5 6 7 3 chunks +5 lines, -5 lines 0 comments Download
M Source/platform/scroll/ScrollAnimator.h View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/platform/scroll/ScrollAnimator.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -6 lines 0 comments Download
M Source/platform/scroll/ScrollAnimatorNone.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/scroll/ScrollAnimatorNone.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M Source/platform/scroll/ScrollTypes.h View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M Source/platform/scroll/ScrollableArea.h View 1 2 3 4 5 6 7 8 6 chunks +11 lines, -12 lines 0 comments Download
M Source/platform/scroll/ScrollableArea.cpp View 1 2 3 4 5 6 4 chunks +54 lines, -24 lines 0 comments Download
M Source/platform/scroll/ScrollableAreaTest.cpp View 1 2 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/scroll/Scrollbar.cpp View 1 2 3 4 5 6 3 chunks +5 lines, -4 lines 0 comments Download
M Source/web/ResizeViewportAnchor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/RotationViewportAnchor.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/tests/PinchViewportTest.cpp View 1 2 3 4 5 14 chunks +16 lines, -16 lines 0 comments Download
M Source/web/tests/ScrollAnimatorNoneTest.cpp View 4 chunks +3 lines, -4 lines 0 comments Download
M Source/web/tests/TopControlsTest.cpp View 6 chunks +6 lines, -6 lines 0 comments Download
M Source/web/tests/TouchActionTest.cpp View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 37 (14 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158673006/20001
4 years, 11 months ago (2015-06-04 13:33:39 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/46516) mac_blink_rel on ...
4 years, 11 months ago (2015-06-04 13:38:06 UTC) #4
bokan
Hey Steve, this is one of the major pieces of the mega patch split out ...
4 years, 11 months ago (2015-06-04 13:45:01 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158673006/40001
4 years, 11 months ago (2015-06-04 13:51:33 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2015-06-04 16:27:38 UTC) #10
skobes
https://codereview.chromium.org/1158673006/diff/40001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/1158673006/diff/40001/Source/core/frame/LocalFrame.cpp#newcode525 Source/core/frame/LocalFrame.cpp:525: ProgrammaticScroll); Why is this a programmatic scroll? It seems ...
4 years, 11 months ago (2015-06-04 23:35:47 UTC) #11
bokan
https://codereview.chromium.org/1158673006/diff/40001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/1158673006/diff/40001/Source/core/frame/LocalFrame.cpp#newcode525 Source/core/frame/LocalFrame.cpp:525: ProgrammaticScroll); On 2015/06/04 23:35:47, skobes wrote: > Why is ...
4 years, 11 months ago (2015-06-05 15:15:24 UTC) #12
bokan
https://codereview.chromium.org/1158673006/diff/40001/Source/core/frame/RootFrameViewport.h File Source/core/frame/RootFrameViewport.h (right): https://codereview.chromium.org/1158673006/diff/40001/Source/core/frame/RootFrameViewport.h#newcode72 Source/core/frame/RootFrameViewport.h:72: virtual ScrollBehavior scrollBehaviorStyle() const override; On 2015/06/04 23:35:47, skobes ...
4 years, 11 months ago (2015-06-05 15:17:25 UTC) #13
skobes
lgtm https://codereview.chromium.org/1158673006/diff/40001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/1158673006/diff/40001/Source/core/frame/LocalFrame.cpp#newcode525 Source/core/frame/LocalFrame.cpp:525: ProgrammaticScroll); On 2015/06/05 15:15:23, bokan wrote: > I ...
4 years, 11 months ago (2015-06-05 15:53:57 UTC) #14
bokan
https://codereview.chromium.org/1158673006/diff/40001/Source/core/frame/LocalFrame.cpp File Source/core/frame/LocalFrame.cpp (right): https://codereview.chromium.org/1158673006/diff/40001/Source/core/frame/LocalFrame.cpp#newcode525 Source/core/frame/LocalFrame.cpp:525: ProgrammaticScroll); On 2015/06/05 15:53:57, skobes wrote: > On 2015/06/05 ...
4 years, 11 months ago (2015-06-05 20:35:36 UTC) #15
bokan
+dmazzoni@ for modules/accessibility +vollick@ for platform and core/{dom|html|page|paint} For context: this is a piece of ...
4 years, 11 months ago (2015-06-05 20:41:13 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158673006/100001
4 years, 11 months ago (2015-06-05 20:42:13 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2015-06-05 21:52:44 UTC) #22
bokan
On 2015/06/05 21:52:44, commit-bot: I haz the power wrote: > Dry run: This issue passed ...
4 years, 10 months ago (2015-06-09 12:30:39 UTC) #23
Ian Vollick
On 2015/06/09 at 12:30:39, bokan wrote: > On 2015/06/05 21:52:44, commit-bot: I haz the power ...
4 years, 10 months ago (2015-06-09 19:29:13 UTC) #24
dmazzoni
https://codereview.chromium.org/1158673006/diff/100001/Source/modules/accessibility/AXObject.cpp File Source/modules/accessibility/AXObject.cpp (right): https://codereview.chromium.org/1158673006/diff/100001/Source/modules/accessibility/AXObject.cpp#newcode1089 Source/modules/accessibility/AXObject.cpp:1089: area->setScrollPosition(DoublePoint(offset.x(), offset.y()), ProgrammaticScroll); What are the implications of this ...
4 years, 10 months ago (2015-06-09 19:40:23 UTC) #25
bokan
https://codereview.chromium.org/1158673006/diff/100001/Source/modules/accessibility/AXObject.cpp File Source/modules/accessibility/AXObject.cpp (right): https://codereview.chromium.org/1158673006/diff/100001/Source/modules/accessibility/AXObject.cpp#newcode1089 Source/modules/accessibility/AXObject.cpp:1089: area->setScrollPosition(DoublePoint(offset.x(), offset.y()), ProgrammaticScroll); On 2015/06/09 19:40:23, dmazzoni wrote: > ...
4 years, 10 months ago (2015-06-09 20:03:01 UTC) #26
dmazzoni
lgtm OK, if this is not changing any existing behavior that's fine. It wasn't clear ...
4 years, 10 months ago (2015-06-09 21:15:04 UTC) #27
bokan
On 2015/06/09 21:15:04, dmazzoni wrote: > lgtm > > OK, if this is not changing ...
4 years, 10 months ago (2015-06-10 11:12:37 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158673006/120001
4 years, 10 months ago (2015-06-10 11:13:43 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: mac_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/mac_blink_compile_dbg/builds/47053)
4 years, 10 months ago (2015-06-10 11:23:41 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1158673006/160001
4 years, 10 months ago (2015-06-10 12:06:06 UTC) #36
commit-bot: I haz the power
4 years, 10 months ago (2015-06-10 13:49:19 UTC) #37
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196867

Powered by Google App Engine
This is Rietveld 408576698