Reset intrinsic size when embeddee's intrinsic dimensions change
The embedding LayoutObjects intrinsic size may be left as the old stale size if the new dimensions are not fully defined - which means that it qualifies as having a size and and aspect ratio (where having the former implies having the latter in most cases). Call IntrinsicSizeChanged() instead of just SetNeedsLayoutAndPrefWidthsRecalcAndFullPaintInvalidation(...), since the former also resets the intrinsic size to 300x150 (incorporating zoom). Clean up HTMLPlugInElement::GetLayoutEmbeddedObject a little bit while at it. Bug: 971647 Change-Id: I5c165d1ae18888b6368c9011bc6752b599629118 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1660341 Commit-Queue: Morten Stenshorne <mstensho@chromium.org> Reviewed-by:Morten Stenshorne <mstensho@chromium.org> Cr-Commit-Position: refs/heads/master@{#670024}
Showing
Please register or sign in to comment