DescriptionMake 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 #
Messages
Total messages: 13 (6 generated)
|