Set a fixed layout size only if the container view has a WRAP_CONTENT layout mode.

Cherry pick http://crrev.com/35403002

> 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

BUG: 11128702
Change-Id: I08093b50965148632ca7ed8298decb55d4a6b505
3 files changed