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

Issue 418883002: Simplify wrap_contents mode. (Closed)

Created:
6 years, 5 months ago by mkosiba (inactive)
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, android-webview-reviews_chromium.org, creis+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Simplify android_webview wrap_contents mode. This changes the webview implementation of wrap_contents mode from custom code explicitly calculating the layout size to a pair of settings: "ignore viewport tag" (for older apps) and "set layout size height to 0". This means this code gets simpler and means we don't have to fix a bunch of races present in the current version of the code. BUG=392460, 398445 TBR=cevans@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=288992

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : fix findbugs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+251 lines, -272 lines) Patch
M android_webview/browser/renderer_host/aw_render_view_host_ext.h View 1 chunk +0 lines, -2 lines 0 comments Download
M android_webview/browser/renderer_host/aw_render_view_host_ext.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M android_webview/common/render_view_messages.h View 1 chunk +0 lines, -5 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 3 4 5 2 chunks +5 lines, -8 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwLayoutSizer.java View 1 2 3 4 5 7 chunks +10 lines, -87 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwSettings.java View 1 2 3 2 chunks +44 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AndroidViewIntegrationTest.java View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwLayoutSizerTest.java View 1 2 3 4 8 chunks +25 lines, -140 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java View 1 2 3 2 chunks +154 lines, -0 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 4 5 1 chunk +0 lines, -8 lines 0 comments Download
M android_webview/native/aw_settings.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.h View 1 chunk +0 lines, -2 lines 0 comments Download
M android_webview/renderer/aw_render_view_ext.cc View 2 chunks +0 lines, -7 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/web_preferences.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/common/web_preferences.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
mkosiba (inactive)
6 years, 4 months ago (2014-08-07 17:52:24 UTC) #1
mnaganov (inactive)
Thumbs up for the idea, but I have a couple of comments. https://codereview.chromium.org/418883002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java ...
6 years, 4 months ago (2014-08-08 07:45:16 UTC) #2
mkosiba (inactive)
https://codereview.chromium.org/418883002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwContents.java File android_webview/java/src/org/chromium/android_webview/AwContents.java (right): https://codereview.chromium.org/418883002/diff/40001/android_webview/java/src/org/chromium/android_webview/AwContents.java#newcode429 android_webview/java/src/org/chromium/android_webview/AwContents.java:429: if (android.os.Build.VERSION.SDK_INT <= android.os.Build.VERSION_CODES.KITKAT) { On 2014/08/08 07:45:16, Mikhail ...
6 years, 4 months ago (2014-08-08 09:05:07 UTC) #3
mnaganov (inactive)
lgtm
6 years, 4 months ago (2014-08-08 10:12:36 UTC) #4
mkosiba (inactive)
cevans@chromium.org: Please review changes in webview and content IPC jochen@chromium.org: Please review changes in content/
6 years, 4 months ago (2014-08-11 11:02:14 UTC) #5
jochen (gone - plz use gerrit)
lgtm
6 years, 4 months ago (2014-08-11 14:25:50 UTC) #6
mkosiba (inactive)
I'm going to TBR cevans@chromium.org since the IPC changes are trivial (delete one message and ...
6 years, 4 months ago (2014-08-12 09:07:12 UTC) #7
mkosiba (inactive)
The CQ bit was checked by mkosiba@chromium.org
6 years, 4 months ago (2014-08-12 09:07:34 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/418883002/100001
6 years, 4 months ago (2014-08-12 09:09:38 UTC) #9
commit-bot: I haz the power
6 years, 4 months ago (2014-08-12 15:48:52 UTC) #10
Message was sent while issue was closed.
Change committed as 288992

Powered by Google App Engine
This is Rietveld 408576698