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

Issue 1163433003: Remove WebViewImpl helper methods for setting scroll offset. (Closed)

Created:
4 years, 11 months ago by bokan
Modified:
4 years, 11 months ago
Reviewers:
skobes, Rick Byers
CC:
blink-reviews, caseq+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, kozyatinskiy+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Remove WebViewImpl helper methods for setting scroll offset. Remove setMainFrameScrollOffset and updateLayoutViewportScrollOffset as they're redundant and mostly used from tests anyway. Call sites were modified to set the scroll offset on the main frame directly. This patch is mostly a no-op cleanup. Semantics do change here slightly since setMainFrameScrollOffset was calling updateLayoutViewportScrollOffset with isProgrammatic=false, which is wrong. Also updated WebLocalFrameImpl::setScrollOffset to call notifyScrollPositionChanged rather than setScrollOffset since the latter doesn't update scrollbars, animators, etc. and shouldn't be used directly. Also, as a drive-by, replaced outerViewport/mainFrame with layoutViewport in applyViewportDeltas since they're all refer to the same thing. Layout viewport is the preferred terminology. BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196421

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Renamed outerViewport to layoutViewport #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -50 lines) Patch
M Source/web/DevToolsEmulator.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/web/FullscreenController.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/web/WebViewImpl.h View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 1 2 3 4 chunks +17 lines, -28 lines 0 comments Download
M Source/web/tests/PinchViewportTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/web/tests/ProgrammaticScrollTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/web/tests/TopControlsTest.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 2 3 5 chunks +5 lines, -5 lines 0 comments Download
M Source/web/tests/WebViewTest.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M public/web/WebWidget.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 18 (7 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/1163433003/40001
4 years, 11 months ago (2015-06-03 16:19:41 UTC) #2
bokan
ptal, more cleanup split off from the mega-patch.
4 years, 11 months ago (2015-06-03 16:20:58 UTC) #4
skobes
https://codereview.chromium.org/1163433003/diff/40001/Source/web/WebLocalFrameImpl.cpp File Source/web/WebLocalFrameImpl.cpp (right): https://codereview.chromium.org/1163433003/diff/40001/Source/web/WebLocalFrameImpl.cpp#newcode694 Source/web/WebLocalFrameImpl.cpp:694: view->notifyScrollPositionChanged(IntPoint(offset.width, offset.height)); One step closer to making FrameView::setScrollOffset private ...
4 years, 11 months ago (2015-06-03 16:57:57 UTC) #5
bokan
https://codereview.chromium.org/1163433003/diff/40001/Source/web/WebLocalFrameImpl.cpp File Source/web/WebLocalFrameImpl.cpp (right): https://codereview.chromium.org/1163433003/diff/40001/Source/web/WebLocalFrameImpl.cpp#newcode694 Source/web/WebLocalFrameImpl.cpp:694: view->notifyScrollPositionChanged(IntPoint(offset.width, offset.height)); On 2015/06/03 16:57:57, skobes wrote: > One ...
4 years, 11 months ago (2015-06-03 17:04:58 UTC) #6
skobes
lgtm
4 years, 11 months ago (2015-06-03 17:05:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163433003/60001
4 years, 11 months ago (2015-06-03 17:28:46 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: blink_presubmit on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/blink_presubmit/builds/34487)
4 years, 11 months ago (2015-06-03 17:37:16 UTC) #12
bokan
+Rick for public/web change
4 years, 11 months ago (2015-06-03 18:08:37 UTC) #14
Rick Byers
public/web LGTM
4 years, 11 months ago (2015-06-03 18:23:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1163433003/60001
4 years, 11 months ago (2015-06-03 18:24:56 UTC) #17
commit-bot: I haz the power
4 years, 11 months ago (2015-06-03 18:38:49 UTC) #18
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196421

Powered by Google App Engine
This is Rietveld 408576698