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

Issue 2387393003: Revert of Refactor ScrollableArea::setScrollPosition. (Closed)

Created:
4 years, 2 months ago by imcheng
Modified:
4 years, 2 months ago
Reviewers:
bokan, pdr., skobes, szager1
CC:
chromium-reviews, blink-reviews-html_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, eae+blinkwatch, shans, kinuko+watch, rwlbuis, krit, drott+blinkwatch_chromium.org, szager+layoutwatch_chromium.org, Justin Novosad, dglazkov+blink, Rik, jchaffraix+rendering, blink-reviews-paint_chromium.org, blink-reviews, ajuma+watch_chromium.org, Eric Willigers, rjwright, zoltan1, blink-reviews-layout_chromium.org, jbroman, pdr+graphicswatchlist_chromium.org, darktears, Stephen Chennney, blink-reviews-animation_chromium.org, pdr+renderingwatchlist_chromium.org, leviw+renderwatch, slimming-paint-reviews_chromium.org, blink-layers+watch_chromium.org, f(malita), danakj+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Refactor ScrollableArea::setScrollPosition. (patchset #6 id:100001 of https://codereview.chromium.org/2383113003/ ) Reason for revert: Blocks revert of another patch: https://codereview.chromium.org/2395683002/ Original issue's description: > Refactor ScrollableArea::setScrollPosition. > > - Eliminate some redundant PaintLayerScrollableArea methods and > indirection. > > - ScrollableArea::setScrollPosition now always clamps its argument. > Code inspection revealed that nearly all callers were clamping > the position argument anyway. > > - ScrollableArea::setScrollPosition returns immediately if the scroll > position did not change. This avoids a bunch of unnecessary > work. > > - For the rare instances where the scroll position should not be > clamped, or the scroll position update code should run even if the > scroll position didn't change, add the method > setScrollPositionUnconditionally. > > - When modifying the scroll position due to a change in effective > zoom, preserve the offset from beginning of flow, rather than the > distance from top-left of overflow area. > > BUG=417782 > R=skobes@chromium.org,bokan@chromium.org > CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 > > Committed: https://crrev.com/cddc823c56d453758003a831fd5a2475e94c0387 > Cr-Commit-Position: refs/heads/master@{#423033} TBR=bokan@chromium.org,skobes@chromium.org,pdr@chromium.org,szager@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=417782 Committed: https://crrev.com/6df05cf7d1cf36aa01a45db245093eab3c8bca0e Cr-Commit-Position: refs/heads/master@{#423041}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+141 lines, -119 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 2 chunks +6 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/forms/TextFieldInputType.cpp View 1 chunk +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 8 chunks +24 lines, -34 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBoxModelObjectTest.cpp View 5 chunks +20 lines, -25 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ScrollEnums.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/SpatialNavigation.cpp View 1 chunk +14 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h View 2 chunks +31 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp View 6 chunks +19 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp View 1 chunk +7 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollAnimatorCompositorCoordinator.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/scroll/ScrollableArea.cpp View 1 chunk +4 lines, -10 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
imcheng
Created Revert of Refactor ScrollableArea::setScrollPosition.
4 years, 2 months ago (2016-10-05 01:27:48 UTC) #2
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/2387393003/1
4 years, 2 months ago (2016-10-05 01:28:20 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 2 months ago (2016-10-05 01:29:59 UTC) #4
commit-bot: I haz the power
4 years, 2 months ago (2016-10-05 01:33:48 UTC) #6
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/6df05cf7d1cf36aa01a45db245093eab3c8bca0e
Cr-Commit-Position: refs/heads/master@{#423041}

Powered by Google App Engine
This is Rietveld 408576698