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

Issue 1277583003: Restore scale even if scroll is not restored (Closed)

Created:
5 years, 4 months ago by majidvp
Modified:
5 years, 4 months ago
Reviewers:
bokan, Nate Chapin
CC:
blink-reviews, tyoshino+watch_chromium.org, gavinp+loader_chromium.org, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Restore scale even if scroll restoration is disabled If scroll is being restored we will still restore both scroll and scale together otherwise we restore scale on its own. Here is the rationale of decoupling scale and scroll restoration: https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/p1sy9aQDmtU/jndSickDCAAJ BUG=444094 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200652

Patch Set 1 #

Patch Set 2 : Improve readability #

Total comments: 15

Patch Set 3 : Address review feedback #

Patch Set 4 : Add test for scale restoration #

Patch Set 5 : minor cleanup #

Patch Set 6 : Merge master #

Patch Set 7 : Use window.scroll{X,y} #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -47 lines) Patch
M LayoutTests/fast/history/scroll-restoration/scroll-restoration-push-replace.html View 1 2 3 4 3 chunks +3 lines, -4 lines 0 comments Download
A LayoutTests/fast/history/scroll-restoration/scroll-restoration-scale-not-impacted.html View 1 2 3 4 5 6 1 chunk +44 lines, -0 lines 0 comments Download
M Source/core/loader/FrameLoader.cpp View 1 2 3 4 5 1 chunk +26 lines, -23 lines 0 comments Download
M Source/core/page/Page.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/page/Page.cpp View 1 2 3 4 5 1 chunk +2 lines, -18 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 28 (10 generated)
majidvp
5 years, 4 months ago (2015-08-06 19:57:19 UTC) #2
Nate Chapin
Couple of code health and style nitpicks... https://codereview.chromium.org/1277583003/diff/20001/Source/core/loader/FrameLoader.cpp File Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/1277583003/diff/20001/Source/core/loader/FrameLoader.cpp#newcode1137 Source/core/loader/FrameLoader.cpp:1137: if (shouldRestoreScale ...
5 years, 4 months ago (2015-08-06 21:02:00 UTC) #4
majidvp
https://codereview.chromium.org/1277583003/diff/20001/Source/core/loader/FrameLoader.cpp File Source/core/loader/FrameLoader.cpp (right): https://codereview.chromium.org/1277583003/diff/20001/Source/core/loader/FrameLoader.cpp#newcode1137 Source/core/loader/FrameLoader.cpp:1137: if (shouldRestoreScale && shouldRestoreScroll) { On 2015/08/06 21:02:00, Nate ...
5 years, 4 months ago (2015-08-06 21:25:36 UTC) #5
Nate Chapin
On 2015/08/06 21:25:36, majidvp wrote: > https://codereview.chromium.org/1277583003/diff/20001/Source/core/loader/FrameLoader.cpp > File Source/core/loader/FrameLoader.cpp (right): > > https://codereview.chromium.org/1277583003/diff/20001/Source/core/loader/FrameLoader.cpp#newcode1137 > ...
5 years, 4 months ago (2015-08-06 21:28:54 UTC) #6
bokan
https://codereview.chromium.org/1277583003/diff/20001/Source/core/loader/FrameLoader.cpp File Source/core/loader/FrameLoader.cpp (left): https://codereview.chromium.org/1277583003/diff/20001/Source/core/loader/FrameLoader.cpp#oldcode1146 Source/core/loader/FrameLoader.cpp:1146: scrollingCoordinator->frameViewRootLayerDidChange(view); Why is this no longer needed? https://codereview.chromium.org/1277583003/diff/20001/Source/core/loader/FrameLoader.cpp File ...
5 years, 4 months ago (2015-08-07 15:08:02 UTC) #7
majidvp
PTAL https://codereview.chromium.org/1277583003/diff/20001/Source/core/loader/FrameLoader.cpp File Source/core/loader/FrameLoader.cpp (left): https://codereview.chromium.org/1277583003/diff/20001/Source/core/loader/FrameLoader.cpp#oldcode1146 Source/core/loader/FrameLoader.cpp:1146: scrollingCoordinator->frameViewRootLayerDidChange(view); On 2015/08/07 15:08:01, bokan wrote: > Why ...
5 years, 4 months ago (2015-08-07 18:24:07 UTC) #8
bokan
Code looks good, how about a test?
5 years, 4 months ago (2015-08-07 19:31:00 UTC) #9
majidvp
On 2015/08/07 19:31:00, bokan wrote: > Code looks good, how about a test? PTAL. Added ...
5 years, 4 months ago (2015-08-11 23:41:06 UTC) #10
bokan
lgtm!
5 years, 4 months ago (2015-08-13 00:37:11 UTC) #11
majidvp
On 2015/08/13 00:37:11, bokan wrote: > lgtm! japhet: friendly ping :)
5 years, 4 months ago (2015-08-14 14:37:45 UTC) #12
Nate Chapin
lgtm
5 years, 4 months ago (2015-08-14 20:24:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1277583003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1277583003/100001
5 years, 4 months ago (2015-08-14 20:30:28 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/93554)
5 years, 4 months ago (2015-08-14 22:53:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1277583003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1277583003/100001
5 years, 4 months ago (2015-08-15 16:18:58 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/93819)
5 years, 4 months ago (2015-08-15 18:04:29 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1277583003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1277583003/120001
5 years, 4 months ago (2015-08-17 15:42:26 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1277583003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1277583003/120001
5 years, 4 months ago (2015-08-17 17:09:47 UTC) #27
commit-bot: I haz the power
5 years, 4 months ago (2015-08-17 17:35:46 UTC) #28
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200652

Powered by Google App Engine
This is Rietveld 408576698