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

Issue 13880019: [Android WebView] Update viewport size and scale calculation to match WebView Classic (Closed)

Created:
7 years, 8 months ago by mnaganov (inactive)
Modified:
7 years, 8 months ago
CC:
blink-reviews, jamesr, abarth_chromum.org, android-webview-reviews_chromium.org
Visibility:
Public.

Description

[Android WebView] Update viewport size and scale calculation to match WebView Classic Tweaked initial scaling and layout width assignment behavior to align better with the legacy WebView. Some of the tweaks are only applied when support for target-densityDpi is turned on. Assume viewport and fixed layout are always enabled. WebView will no more toggle 'setViewportEnabled' and 'fixedLayoutMode' flags, they will be always enabled. This is to avoid skipping "meta viewport" tag processing. For controlling wide viewport-related behavior, added a corresponding WebSetting. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148480

Patch Set 1 #

Patch Set 2 : Comments addressed #

Patch Set 3 : Rebased correctly #

Total comments: 4

Patch Set 4 : Addressed Adam's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -10 lines) Patch
M Source/WebKit/chromium/public/WebSettings.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/WebKit/chromium/src/ChromeClientImpl.cpp View 1 2 3 2 chunks +21 lines, -4 lines 0 comments Download
M Source/WebKit/chromium/src/WebSettingsImpl.h View 3 chunks +3 lines, -0 lines 0 comments Download
M Source/WebKit/chromium/src/WebSettingsImpl.cpp View 1 2 chunks +6 lines, -0 lines 0 comments Download
M Source/WebKit/chromium/src/WebViewImpl.cpp View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M Source/WebKit/chromium/tests/WebFrameTest.cpp View 1 4 chunks +87 lines, -3 lines 0 comments Download
A + Source/WebKit/chromium/tests/data/large-div.html View 1 chunk +0 lines, -3 lines 0 comments Download
M Source/WebKit/chromium/tests/data/viewport-2x-initial-scale.html View 1 chunk +1 line, -1 line 0 comments Download
A + Source/WebKit/chromium/tests/data/viewport-wide-2x-initial-scale.html View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mnaganov (inactive)
Hello Alexandre, PTAL! As we have discussed some time ago, to retain compatibility with the ...
7 years, 8 months ago (2013-04-12 11:53:39 UTC) #1
mnaganov (inactive)
This is the corresponding Chromium change: https://codereview.chromium.org/14234002
7 years, 8 months ago (2013-04-12 11:59:50 UTC) #2
aelias_OOO_until_Jul13
lgtm, nits below. Note you'll need review from a Blink OWNER, adding abarth@. - Please ...
7 years, 8 months ago (2013-04-15 03:56:00 UTC) #3
mnaganov (inactive)
On 2013/04/15 03:56:00, aelias wrote: > lgtm, nits below. Note you'll need review from a ...
7 years, 8 months ago (2013-04-15 16:29:44 UTC) #4
abarth-chromium
I mean, I don't really like this CL. It's make this code very complicated. I ...
7 years, 8 months ago (2013-04-15 23:33:57 UTC) #5
mnaganov (inactive)
Thanks, Adam and Alexandre! https://codereview.chromium.org/13880019/diff/11001/Source/WebKit/chromium/src/ChromeClientImpl.cpp File Source/WebKit/chromium/src/ChromeClientImpl.cpp (right): https://codereview.chromium.org/13880019/diff/11001/Source/WebKit/chromium/src/ChromeClientImpl.cpp#newcode667 Source/WebKit/chromium/src/ChromeClientImpl.cpp:667: bool applyTargetDensityDpiToLayoutSize = true; On ...
7 years, 8 months ago (2013-04-16 14:41:25 UTC) #6
abarth-chromium
Thanks. I appreciate your iterating on this patch.
7 years, 8 months ago (2013-04-16 16:57:18 UTC) #7
mnaganov (inactive)
A note for sheriffs / gardeners. If any of Android Webview tests fail after rolling ...
7 years, 8 months ago (2013-04-16 17:32:04 UTC) #8
mnaganov (inactive)
7 years, 8 months ago (2013-04-16 17:37:42 UTC) #9
Message was sent while issue was closed.
Committed patchset #4 manually as r148480 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698