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

Cherry pick

> 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:

BUG: 11128702
Change-Id: I08093b50965148632ca7ed8298decb55d4a6b505
3 files changed