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

Issue 23691017: [Android WebView] Treat zero values in viewport arguments specially (Closed)

Created:
7 years, 3 months ago by mnaganov (inactive)
Modified:
7 years, 3 months ago
CC:
blink-reviews, jamesr, kenneth.christiansen, eae+blinkwatch, abarth-chromium, dglazkov+blink, adamk+blink_chromium.org, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[Android WebView] Treat zero values in viewport arguments specially For compatibility with the old WebView, zero values in viewport arguments must not be clamped. Zero values for "width" and "height" must be interpreted as "device-width" and "device-height", respectively; and zero "initial-scale" translates into 100%. BUG=282130 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=157140

Patch Set 1 #

Total comments: 6

Patch Set 2 : Separated two quirks and moved the zero values quirk into the parsing stage #

Total comments: 4

Patch Set 3 : Addressed rune's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -0 lines) Patch
M Source/core/dom/Document.cpp View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/dom/ViewportArguments.cpp View 1 3 chunks +12 lines, -0 lines 0 comments Download
M Source/core/page/Settings.in View 1 1 chunk +4 lines, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebSettingsImpl.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/tests/WebFrameTest.cpp View 1 1 chunk +28 lines, -0 lines 0 comments Download
A Source/web/tests/data/viewport-zero-values.html View 1 chunk +8 lines, -0 lines 0 comments Download
M public/web/WebSettings.h View 1 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
mnaganov (inactive)
Alexandre, PTAL! I think it's easier to merge the quirk from crbug.com/277369 and this one ...
7 years, 3 months ago (2013-08-30 09:36:06 UTC) #1
aelias_OOO_until_Jul13
Looks fine to me. Kenneth, what do you think? This is something else we need ...
7 years, 3 months ago (2013-08-31 04:35:23 UTC) #2
rune
https://codereview.chromium.org/23691017/diff/1/Source/core/dom/ViewportArguments.h File Source/core/dom/ViewportArguments.h (right): https://codereview.chromium.org/23691017/diff/1/Source/core/dom/ViewportArguments.h#newcode57 Source/core/dom/ViewportArguments.h:57: ViewportMetaLayoutSizeAndZeroValuesQuirk, Is it important that these quirks can be ...
7 years, 3 months ago (2013-09-02 06:25:14 UTC) #3
kenneth.r.christiansen
I am fine with this, so lgtm, but please clarify Rune's comments https://codereview.chromium.org/23691017/diff/1/Source/core/dom/ViewportArguments.h File Source/core/dom/ViewportArguments.h ...
7 years, 3 months ago (2013-09-02 06:45:03 UTC) #4
mnaganov (inactive)
Please consider the updated patch. https://codereview.chromium.org/23691017/diff/1/Source/core/dom/ViewportArguments.h File Source/core/dom/ViewportArguments.h (right): https://codereview.chromium.org/23691017/diff/1/Source/core/dom/ViewportArguments.h#newcode57 Source/core/dom/ViewportArguments.h:57: ViewportMetaLayoutSizeAndZeroValuesQuirk, On 2013/09/02 06:25:14, ...
7 years, 3 months ago (2013-09-02 13:25:53 UTC) #5
kenneth.r.christiansen
I think that I am fine with this. Let's see what Rune says
7 years, 3 months ago (2013-09-02 13:44:00 UTC) #6
rune
On 2013/09/02 13:44:00, kenneth.r.christiansen wrote: > I think that I am fine with this. Let's ...
7 years, 3 months ago (2013-09-02 20:08:58 UTC) #7
rune
https://codereview.chromium.org/23691017/diff/7001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/23691017/diff/7001/Source/web/WebViewImpl.cpp#newcode3020 Source/web/WebViewImpl.cpp:3020: if (page()->settings().viewportMetaZeroValuesQuirk() && adjustedArguments.type == ViewportArguments::ViewportMeta) { Looking at ...
7 years, 3 months ago (2013-09-02 20:09:05 UTC) #8
mnaganov (inactive)
https://codereview.chromium.org/23691017/diff/7001/Source/web/WebViewImpl.cpp File Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/23691017/diff/7001/Source/web/WebViewImpl.cpp#newcode3020 Source/web/WebViewImpl.cpp:3020: if (page()->settings().viewportMetaZeroValuesQuirk() && adjustedArguments.type == ViewportArguments::ViewportMeta) { On 2013/09/02 ...
7 years, 3 months ago (2013-09-03 09:07:27 UTC) #9
rune
Rubber stamp
7 years, 3 months ago (2013-09-03 09:12:57 UTC) #10
mnaganov (inactive)
Adam, please take a look! Another WebView quirk.
7 years, 3 months ago (2013-09-03 09:15:37 UTC) #11
abarth-chromium
lgtm
7 years, 3 months ago (2013-09-03 16:19:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mnaganov@chromium.org/23691017/14001
7 years, 3 months ago (2013-09-03 16:19:40 UTC) #13
commit-bot: I haz the power
7 years, 3 months ago (2013-09-03 17:57:27 UTC) #14
Message was sent while issue was closed.
Change committed as 157140

Powered by Google App Engine
This is Rietveld 408576698