Allow more ViewGroup types as ViewAndroidDelegate's mContainerView
mContainerView is a ViewGroup, but some layout code assumed it was a FrameLayout. Update that code to allow any kind of ViewGroup for which the LayoutParams subclasses MarginLayoutParams (including FrameLayout, RelativeLayout, etc). It would be nice to add an assertion to setContainerView so that failures are caught earlier, but I don't see a clean way to do so. Bug: 1054106 Change-Id: If45a16c2864ef200461a08b783b425ea42346f2e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2067247 Commit-Queue: Bo <boliu@chromium.org> Auto-Submit: Evan Stade <estade@chromium.org> Reviewed-by:Bo <boliu@chromium.org> Reviewed-by:
Ted Choc <tedchoc@chromium.org> Cr-Commit-Position: refs/heads/master@{#744342}
Showing
Please register or sign in to comment