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

Issue 14643011: Reset page scale factor to 1.0 on navigation to a new page. (Closed)

Created:
7 years, 7 months ago by wjmaclean
Modified:
7 years, 6 months ago
CC:
blink-reviews, Rick Byers
Visibility:
Public.

Description

Reset page scale factor to 1.0 on navigation to a new page. When navigating from a page that has page scale factor != 1 (is zoomed) to a new page, the existing code will display the new page at the current page scale factor. Instead, we wish to reset the page scale factor to 1 for the new page. BUG=162482

Patch Set 1 #

Patch Set 2 : Reset scale via layoutUpdated() instead. #

Total comments: 1

Patch Set 3 : Revise, add test. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -26 lines) Patch
A LayoutTests/fast/loader/page-scale-resets-on-new-navigation.html View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
A LayoutTests/fast/loader/page-scale-resets-on-new-navigation-expected.txt View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A LayoutTests/fast/loader/resources/page-scale-resets-on-new-navigation-child.html View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M Source/WebKit/chromium/src/WebViewImpl.cpp View 1 2 2 chunks +18 lines, -26 lines 3 comments Download
M Source/core/testing/Internals.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 1 chunk +10 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
wjmaclean
aelias@ - is this "resetting" behaviour OK for Clank, or should we preserve the existing ...
7 years, 7 months ago (2013-04-30 19:35:09 UTC) #1
aelias_OOO_until_Jul13
It's not OK for Android, nor do I think this is the right fix for ...
7 years, 7 months ago (2013-04-30 19:44:20 UTC) #2
wjmaclean
On 2013/04/30 19:44:20, aelias wrote: > It's not OK for Android, nor do I think ...
7 years, 7 months ago (2013-04-30 19:49:23 UTC) #3
wjmaclean
On 2013/04/30 19:49:23, wjmaclean wrote: > On 2013/04/30 19:44:20, aelias wrote: > > It's not ...
7 years, 7 months ago (2013-04-30 20:04:14 UTC) #4
aelias_OOO_until_Jul13
OK, seems reasonable. I had originally hid that code behind if (enable_viewport) to be conservative ...
7 years, 7 months ago (2013-04-30 21:05:18 UTC) #5
wjmaclean
Fixed and added a layout test. Adam, can you please take a look now?
7 years, 7 months ago (2013-05-01 17:27:01 UTC) #6
aelias_OOO_until_Jul13
lgtm
7 years, 7 months ago (2013-05-01 19:22:49 UTC) #7
jamesr
You seem to be moving slightly more code out of the viewportEnabled guard than I ...
7 years, 7 months ago (2013-05-03 17:55:58 UTC) #8
wjmaclean
> You seem to be moving slightly more code out of the viewportEnabled guard than ...
7 years, 7 months ago (2013-05-03 18:26:17 UTC) #9
aelias_OOO_until_Jul13
https://codereview.chromium.org/14643011/diff/10001/Source/WebKit/chromium/src/WebViewImpl.cpp File Source/WebKit/chromium/src/WebViewImpl.cpp (right): https://codereview.chromium.org/14643011/diff/10001/Source/WebKit/chromium/src/WebViewImpl.cpp#newcode3667 Source/WebKit/chromium/src/WebViewImpl.cpp:3667: // Contents size is an input to the page ...
7 years, 7 months ago (2013-05-03 21:00:50 UTC) #10
aelias_OOO_until_Jul13
I just uploaded a big refactoring for this area of the code at https://codereview.chromium.org/14813025/ that ...
7 years, 7 months ago (2013-05-13 10:36:20 UTC) #11
aelias_OOO_until_Jul13
7 years, 6 months ago (2013-06-07 19:08:40 UTC) #12
Closing this as my refactoring landed.  Please try calling
setInitialPageScaleFactorOverride(1.0f); from the Chromium side instead.

Powered by Google App Engine
This is Rietveld 408576698