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

Issue 1094673002: Make window.innerWidth and innerHeight cause layout if needed. (Closed)

Created:
5 years, 8 months ago by bokan
Modified:
5 years, 8 months ago
Reviewers:
rune
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Make window.innerWidth and innerHeight cause layout if needed. innerWidth and innerHeight depend on the page scale. During page load the page scale is set to the minimum. The minimum scale factor is based on the viewport constraints and content width and so to get correct values during loading we need to layout. This only happens on the main window and only if viewport tag support is enabled, since otherwise the page loads at scale = 1. BUG=466718 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=194150

Patch Set 1 #

Total comments: 8

Patch Set 2 : Review feedback #

Patch Set 3 : Rebase #

Patch Set 4 : Fixed null check #

Unified diffs Side-by-side diffs Delta from patch set Stats (+81 lines, -28 lines) Patch
M Source/core/frame/LocalDOMWindow.cpp View 1 2 3 1 chunk +22 lines, -28 lines 0 comments Download
M Source/web/tests/PinchViewportTest.cpp View 1 2 chunks +34 lines, -0 lines 0 comments Download
A Source/web/tests/data/window_dimensions.html View 1 chunk +9 lines, -0 lines 0 comments Download
A Source/web/tests/data/window_dimensions_wide_div.html View 1 1 chunk +16 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
bokan
Rune, PTAL. WebViewImpl::updatePageDefinedViewportConstraints, called when a new ViewportDescription is set, already marks the main frame ...
5 years, 8 months ago (2015-04-16 15:18:56 UTC) #2
rune
https://codereview.chromium.org/1094673002/diff/1/Source/core/frame/LocalDOMWindow.cpp File Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/1094673002/diff/1/Source/core/frame/LocalDOMWindow.cpp#newcode951 Source/core/frame/LocalDOMWindow.cpp:951: // of the window. The initial scale can be ...
5 years, 8 months ago (2015-04-16 22:02:12 UTC) #3
bokan
Thanks Rune, new patch uploaded, ptal. https://codereview.chromium.org/1094673002/diff/1/Source/core/frame/LocalDOMWindow.cpp File Source/core/frame/LocalDOMWindow.cpp (right): https://codereview.chromium.org/1094673002/diff/1/Source/core/frame/LocalDOMWindow.cpp#newcode951 Source/core/frame/LocalDOMWindow.cpp:951: // of the ...
5 years, 8 months ago (2015-04-20 17:47:24 UTC) #4
rune
lgtm
5 years, 8 months ago (2015-04-20 21:02:39 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1094673002/40001
5 years, 8 months ago (2015-04-21 13:10:46 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1094673002/60001
5 years, 8 months ago (2015-04-21 16:54:01 UTC) #12
commit-bot: I haz the power
5 years, 8 months ago (2015-04-21 18:08:44 UTC) #13
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=194150

Powered by Google App Engine
This is Rietveld 408576698