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

Issue 1568383002: Preserve page resize information when main frame is remote (Closed)

Created:
4 years, 11 months ago by kenrb
Modified:
4 years, 11 months ago
Reviewers:
bokan, dcheng
CC:
blink-reviews, chromium-reviews, site-isolation-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Preserve page resize information when main frame is remote Currently, resizes calls to WebViewImpl and VisualViewport are ignored when there is a remote main frame, since the top-level page and viewport sizes are irrelevant to its rendering. However, this causes incorrect rendering when a remote main frame is swapped to a local frame. This patch allows WebViewImpl and VisualViewport to keep the sizes set in that case, so that after a main frame swap the new local frame can initialize with correct values and render properly. BUG=526211, 572841 Committed: https://crrev.com/845e05d134b2bc9b6a3e360325a3c766ad2fa7ac Cr-Commit-Position: refs/heads/master@{#368986}

Patch Set 1 #

Patch Set 2 : git cl format #

Patch Set 3 : Bug fix #

Total comments: 5

Patch Set 4 : dcheng's suggestion #

Total comments: 5

Patch Set 5 : bokan review comments addressed #

Total comments: 4

Patch Set 6 : More dcheng comments addressed + fixed an error in last PS #

Patch Set 7 : Speculative test failure fix #

Patch Set 8 : Small tweak to width comparison in setSize #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -13 lines) Patch
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 1 2 3 4 5 6 7 2 chunks +8 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 2 chunks +14 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 2 3 4 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (6 generated)
kenrb
PTAL: dcheng@ for WebViewImpl.cpp and the test bokan@ for VisualViewport.cpp
4 years, 11 months ago (2016-01-08 21:30:58 UTC) #3
dcheng
https://codereview.chromium.org/1568383002/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp File third_party/WebKit/Source/core/frame/VisualViewport.cpp (right): https://codereview.chromium.org/1568383002/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp#newcode191 third_party/WebKit/Source/core/frame/VisualViewport.cpp:191: void VisualViewport::setScaleAndLocation(float scale, const FloatPoint& location) What actually needs ...
4 years, 11 months ago (2016-01-08 21:36:06 UTC) #4
bokan
https://codereview.chromium.org/1568383002/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp File third_party/WebKit/Source/core/frame/VisualViewport.cpp (right): https://codereview.chromium.org/1568383002/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp#newcode191 third_party/WebKit/Source/core/frame/VisualViewport.cpp:191: void VisualViewport::setScaleAndLocation(float scale, const FloatPoint& location) Can a remote ...
4 years, 11 months ago (2016-01-11 16:36:34 UTC) #5
kenrb
https://codereview.chromium.org/1568383002/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp File third_party/WebKit/Source/core/frame/VisualViewport.cpp (right): https://codereview.chromium.org/1568383002/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp#newcode191 third_party/WebKit/Source/core/frame/VisualViewport.cpp:191: void VisualViewport::setScaleAndLocation(float scale, const FloatPoint& location) On 2016/01/11 16:36:34, ...
4 years, 11 months ago (2016-01-11 17:07:24 UTC) #6
bokan
https://codereview.chromium.org/1568383002/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp File third_party/WebKit/Source/core/frame/VisualViewport.cpp (right): https://codereview.chromium.org/1568383002/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp#newcode191 third_party/WebKit/Source/core/frame/VisualViewport.cpp:191: void VisualViewport::setScaleAndLocation(float scale, const FloatPoint& location) On 2016/01/11 17:07:24, ...
4 years, 11 months ago (2016-01-11 18:18:58 UTC) #7
kenrb
New patchset up with comments addressed. https://codereview.chromium.org/1568383002/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp File third_party/WebKit/Source/core/frame/VisualViewport.cpp (right): https://codereview.chromium.org/1568383002/diff/40001/third_party/WebKit/Source/core/frame/VisualViewport.cpp#newcode191 third_party/WebKit/Source/core/frame/VisualViewport.cpp:191: void VisualViewport::setScaleAndLocation(float scale, ...
4 years, 11 months ago (2016-01-11 20:50:26 UTC) #8
bokan
lgtm https://codereview.chromium.org/1568383002/diff/60001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/1568383002/diff/60001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode1931 third_party/WebKit/Source/web/WebViewImpl.cpp:1931: pageScaleConstraintsSet().didChangeViewSize(m_size); On 2016/01/11 20:50:26, kenrb wrote: > On ...
4 years, 11 months ago (2016-01-11 20:52:53 UTC) #9
dcheng
https://codereview.chromium.org/1568383002/diff/80001/third_party/WebKit/Source/core/frame/VisualViewport.cpp File third_party/WebKit/Source/core/frame/VisualViewport.cpp (right): https://codereview.chromium.org/1568383002/diff/80001/third_party/WebKit/Source/core/frame/VisualViewport.cpp#newcode95 third_party/WebKit/Source/core/frame/VisualViewport.cpp:95: bool autosizerNeedsUpdating = (size.width() != m_size.width()) Move the original ...
4 years, 11 months ago (2016-01-11 21:45:30 UTC) #10
kenrb
https://codereview.chromium.org/1568383002/diff/80001/third_party/WebKit/Source/core/frame/VisualViewport.cpp File third_party/WebKit/Source/core/frame/VisualViewport.cpp (right): https://codereview.chromium.org/1568383002/diff/80001/third_party/WebKit/Source/core/frame/VisualViewport.cpp#newcode95 third_party/WebKit/Source/core/frame/VisualViewport.cpp:95: bool autosizerNeedsUpdating = (size.width() != m_size.width()) On 2016/01/11 21:45:30, ...
4 years, 11 months ago (2016-01-11 22:01:23 UTC) #11
dcheng
lgtm
4 years, 11 months ago (2016-01-11 22:59:48 UTC) #12
dcheng
lgtm
4 years, 11 months ago (2016-01-12 19:50:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1568383002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1568383002/140001
4 years, 11 months ago (2016-01-12 19:53:25 UTC) #16
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 11 months ago (2016-01-12 21:15:10 UTC) #18
commit-bot: I haz the power
4 years, 11 months ago (2016-01-12 21:16:10 UTC) #20
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/845e05d134b2bc9b6a3e360325a3c766ad2fa7ac
Cr-Commit-Position: refs/heads/master@{#368986}

Powered by Google App Engine
This is Rietveld 408576698