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

Issue 13704012: Improve mobile device rotation behavior. (Closed)

Created:
7 years, 8 months ago by jdduke (slow)
Modified:
7 years, 8 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Improve mobile device rotation behavior. Properly track viewport contents during resizes triggered by device rotation. BUG=135962 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148734

Patch Set 1 #

Total comments: 38

Patch Set 2 : Additional unit tests and general cleanup #

Patch Set 3 : Rebase #

Total comments: 4

Patch Set 4 : Refactoring. #

Total comments: 10

Patch Set 5 : Code review updates #

Total comments: 4

Patch Set 6 : Logic cleanup #

Total comments: 6

Patch Set 7 : Fixing rebase and nits #

Total comments: 6

Patch Set 8 : Style cleanup #

Patch Set 9 : Fixing test merge #

Patch Set 10 : Rebase #

Patch Set 11 : git cl upload with --similarity=70 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+443 lines, -18 lines) Patch
M Source/WebKit/chromium/WebKit.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
A Source/WebKit/chromium/src/ViewportAnchor.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +80 lines, -0 lines 0 comments Download
A Source/WebKit/chromium/src/ViewportAnchor.cpp View 1 2 3 4 1 chunk +131 lines, -0 lines 0 comments Download
M Source/WebKit/chromium/src/WebViewImpl.cpp View 1 2 3 4 5 6 7 8 9 10 5 chunks +29 lines, -18 lines 0 comments Download
M Source/WebKit/chromium/tests/WebFrameTest.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +115 lines, -0 lines 0 comments Download
A Source/WebKit/chromium/tests/data/resize_scroll_fixed_layout.html View 1 1 chunk +26 lines, -0 lines 0 comments Download
A Source/WebKit/chromium/tests/data/resize_scroll_fixed_width.html View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A Source/WebKit/chromium/tests/data/resize_scroll_mobile.html View 1 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
jdduke (slow)
Alex, any suggestions for additional reviewers?
7 years, 8 months ago (2013-04-05 16:01:22 UTC) #1
aelias_OOO_until_Jul13
Bunch of nits below, but at a high level, this needs more test coverage to ...
7 years, 8 months ago (2013-04-08 04:24:51 UTC) #2
jdduke (slow)
Adding some more tests for fixed layout and width=device-width, with pageScaleFactor checks. Thanks. https://codereview.chromium.org/13704012/diff/1/Source/WebKit/chromium/src/WebViewImpl.cpp File ...
7 years, 8 months ago (2013-04-10 16:58:19 UTC) #3
jdduke (slow)
Added unit tests for fixed width, fixed layout (desktop) and width=device-width (mobile), including checks on ...
7 years, 8 months ago (2013-04-10 22:38:09 UTC) #4
jdduke (slow)
@abarth: You're probably swamped, but would you mind taking a quick pass at this? Otherwise, ...
7 years, 8 months ago (2013-04-12 15:31:27 UTC) #5
abarth-chromium
I'm probably not the best reviewer for this CL. I'm happy to approve it if ...
7 years, 8 months ago (2013-04-12 17:33:30 UTC) #6
jdduke (slow)
@alias: I've expanded the unit tests to include checks on pageScaleFactor, as well as cases ...
7 years, 8 months ago (2013-04-12 19:20:16 UTC) #7
jdduke (slow)
On 2013/04/12 19:20:16, jdduke wrote: > @alias: I've expanded the unit tests to include checks ...
7 years, 8 months ago (2013-04-12 19:21:08 UTC) #8
aelias_OOO_until_Jul13
https://codereview.chromium.org/13704012/diff/17001/Source/WebKit/chromium/src/WebViewImpl.cpp File Source/WebKit/chromium/src/WebViewImpl.cpp (right): https://codereview.chromium.org/13704012/diff/17001/Source/WebKit/chromium/src/WebViewImpl.cpp#newcode1697 Source/WebKit/chromium/src/WebViewImpl.cpp:1697: if (oldSize.width && oldContentsWidth && m_minimumPageScaleFactor != oldMinimumPageScaleFactor) Could ...
7 years, 8 months ago (2013-04-15 18:25:39 UTC) #9
jdduke (slow)
Alright, I think this is ready to go. https://codereview.chromium.org/13704012/diff/17001/Source/WebKit/chromium/src/WebViewImpl.cpp File Source/WebKit/chromium/src/WebViewImpl.cpp (right): https://codereview.chromium.org/13704012/diff/17001/Source/WebKit/chromium/src/WebViewImpl.cpp#newcode1697 Source/WebKit/chromium/src/WebViewImpl.cpp:1697: if ...
7 years, 8 months ago (2013-04-16 15:40:26 UTC) #10
aelias_OOO_until_Jul13
https://codereview.chromium.org/13704012/diff/21001/Source/WebKit/chromium/src/WebViewImpl.cpp File Source/WebKit/chromium/src/WebViewImpl.cpp (right): https://codereview.chromium.org/13704012/diff/21001/Source/WebKit/chromium/src/WebViewImpl.cpp#newcode1684 Source/WebKit/chromium/src/WebViewImpl.cpp:1684: if (settings()->viewportEnabled()) { Please change this to if (settings()->viewportEnabled() ...
7 years, 8 months ago (2013-04-16 16:35:42 UTC) #11
jdduke (slow)
https://codereview.chromium.org/13704012/diff/21001/Source/WebKit/chromium/src/WebViewImpl.cpp File Source/WebKit/chromium/src/WebViewImpl.cpp (right): https://codereview.chromium.org/13704012/diff/21001/Source/WebKit/chromium/src/WebViewImpl.cpp#newcode1684 Source/WebKit/chromium/src/WebViewImpl.cpp:1684: if (settings()->viewportEnabled()) { On 2013/04/16 16:35:42, aelias wrote: > ...
7 years, 8 months ago (2013-04-16 18:58:26 UTC) #12
aelias_OOO_until_Jul13
lgtm https://codereview.chromium.org/13704012/diff/19002/Source/WebKit/chromium/src/WebViewImpl.cpp File Source/WebKit/chromium/src/WebViewImpl.cpp (right): https://codereview.chromium.org/13704012/diff/19002/Source/WebKit/chromium/src/WebViewImpl.cpp#newcode1691 Source/WebKit/chromium/src/WebViewImpl.cpp:1691: float viewportWidthRatio = newSize.width / (float) oldSize.width; Nit: ...
7 years, 8 months ago (2013-04-16 22:24:52 UTC) #13
jdduke (slow)
https://codereview.chromium.org/13704012/diff/19002/Source/WebKit/chromium/src/WebViewImpl.cpp File Source/WebKit/chromium/src/WebViewImpl.cpp (right): https://codereview.chromium.org/13704012/diff/19002/Source/WebKit/chromium/src/WebViewImpl.cpp#newcode1691 Source/WebKit/chromium/src/WebViewImpl.cpp:1691: float viewportWidthRatio = newSize.width / (float) oldSize.width; On 2013/04/16 ...
7 years, 8 months ago (2013-04-16 23:40:45 UTC) #14
aelias_OOO_until_Jul13
LG. Adam, could you approve?
7 years, 8 months ago (2013-04-16 23:47:44 UTC) #15
abarth-chromium
LGTM with some minor style nits. https://codereview.chromium.org/13704012/diff/33001/Source/WebKit/chromium/src/ViewportAnchor.h File Source/WebKit/chromium/src/ViewportAnchor.h (right): https://codereview.chromium.org/13704012/diff/33001/Source/WebKit/chromium/src/ViewportAnchor.h#newcode56 Source/WebKit/chromium/src/ViewportAnchor.h:56: class ViewportAnchor { ...
7 years, 8 months ago (2013-04-18 05:33:04 UTC) #16
jdduke (slow)
https://codereview.chromium.org/13704012/diff/33001/Source/WebKit/chromium/src/ViewportAnchor.h File Source/WebKit/chromium/src/ViewportAnchor.h (right): https://codereview.chromium.org/13704012/diff/33001/Source/WebKit/chromium/src/ViewportAnchor.h#newcode56 Source/WebKit/chromium/src/ViewportAnchor.h:56: class ViewportAnchor { On 2013/04/18 05:33:04, abarth wrote: > ...
7 years, 8 months ago (2013-04-18 16:20:07 UTC) #17
jdduke (slow)
Odd. The trybot targets compile just fine, but the triggered_tests are having trouble applying the ...
7 years, 8 months ago (2013-04-18 23:17:04 UTC) #18
abarth-chromium
> For whatever reason, ViewportAnchor.h is treated > as a rename of WebUserGestureToken.h? Yeah, the ...
7 years, 8 months ago (2013-04-19 06:50:05 UTC) #19
jdduke (slow)
On 2013/04/19 06:50:05, abarth wrote: > > For whatever reason, ViewportAnchor.h is treated > > ...
7 years, 8 months ago (2013-04-19 15:15:37 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jdduke@chromium.org/13704012/54001
7 years, 8 months ago (2013-04-19 15:41:03 UTC) #21
commit-bot: I haz the power
Change committed as 148734
7 years, 8 months ago (2013-04-19 16:48:26 UTC) #22
kenneth.r.christiansen
As the webapp might try to set the position itself, wouldn't it make more sense ...
7 years, 8 months ago (2013-04-25 12:37:37 UTC) #23
jdduke (slow)
7 years, 8 months ago (2013-04-25 14:58:30 UTC) #24
Message was sent while issue was closed.
On 2013/04/25 12:37:37, kenneth.r.christiansen wrote:
> As the webapp might try to set the position itself, wouldn't it make more
sense
> to first apply the position after the onresize handler was called?

Where does that call take place? @aelias can probably speak to that better than
I.

Powered by Google App Engine
This is Rietveld 408576698