DescriptionInitial viewport is not the same as FrameView rect.
FrameView rect is also changed by the visual viewport.
Set the initial viewport size on FrameView whenever it changes in
WebViewImpl and use it for matching media queries when collecting
@viewport rules. See [2] for spec reference.
This is fixing what was introduced in [1].
[1] https://codereview.chromium.org/2414343002/
[2] https://www.w3.org/TR/css-device-adapt-1/#media-queries
R=bokan@chromium.org,timloh@chromium.org
BUG=332763
Committed: https://crrev.com/d2002126e0773ec4cc5bdc01d992ed37e6fbed61
Cr-Commit-Position: refs/heads/master@{#426424}
Patch Set 1 #Patch Set 2 : Rebased #
Total comments: 4
Patch Set 3 : DCHECK that initial viewport size is read from main frame only. #
Dependent Patchsets: Messages
Total messages: 26 (16 generated)
|