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

Issue 35403002: Set a fixed layout size only if the container view has a WRAP_CONTENT layout mode. (Closed)

Created:
7 years, 2 months ago by mkosiba (inactive)
Modified:
7 years, 1 month ago
Reviewers:
joth, benm (inactive)
CC:
chromium-reviews, android-webview-reviews_chromium.org
Visibility:
Public.

Description

Set a fixed layout size only if the container view has a WRAP_CONTENT layout mode. Using the measureSpec from the onMeasure callback to decide whether to set a fixed layout size or not has proven to be a bit unpredictable. Changing the code to look at the LayoutParams instead. BUG=None TEST=AndroidWebViewTest // android_webview-only, trybots were happy. NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231815

Patch Set 1 #

Total comments: 11

Patch Set 2 : improve comment #

Patch Set 3 : update comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -8 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 chunk +6 lines, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwLayoutSizer.java View 1 2 chunks +27 lines, -6 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwLayoutSizerTest.java View 7 chunks +63 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
mkosiba (inactive)
PTAL
7 years, 2 months ago (2013-10-22 15:23:59 UTC) #1
benm (inactive)
thanks Martin, sounds good. Just some clarification on the big comment I think https://codereview.chromium.org/35403002/diff/1/android_webview/java/src/org/chromium/android_webview/AwLayoutSizer.java File ...
7 years, 2 months ago (2013-10-22 15:39:06 UTC) #2
mkosiba (inactive)
https://codereview.chromium.org/35403002/diff/1/android_webview/java/src/org/chromium/android_webview/AwLayoutSizer.java File android_webview/java/src/org/chromium/android_webview/AwLayoutSizer.java (right): https://codereview.chromium.org/35403002/diff/1/android_webview/java/src/org/chromium/android_webview/AwLayoutSizer.java#newcode231 android_webview/java/src/org/chromium/android_webview/AwLayoutSizer.java:231: // the viewport size cannot be directly calculated from ...
7 years, 2 months ago (2013-10-22 17:27:15 UTC) #3
benm (inactive)
lgtm Thanks, that comment is much clearer now.
7 years, 2 months ago (2013-10-24 14:42:50 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mkosiba@chromium.org/35403002/90001
7 years, 1 month ago (2013-10-30 11:46:54 UTC) #5
commit-bot: I haz the power
7 years, 1 month ago (2013-10-30 11:47:22 UTC) #6
Message was sent while issue was closed.
Change committed as 231815

Powered by Google App Engine
This is Rietveld 408576698