Declare that LayoutEmbeddedContent always wraps an HTMLFrameOwnerElement
LayoutEmbeddedContent is constructed for HTMLPluginElement, HTMLFrameElement, HTMLPortalElement and HTMLIFrameElement. All of these are of type HTMLFrameOwnerElement so the dynamic casts and type checks are unnecessary. Unfortunately, since the LayoutEmbeddedContent object can outlive the HTMLFrameOwnerElement, null checks are still necessary. Bug: None Change-Id: I33d3fc5654d73f92f10d302429dc3713592455a8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1866016Reviewed-by:Morten Stenshorne <mstensho@chromium.org> Reviewed-by:
Yi Gu <yigu@chromium.org> Commit-Queue: Robert Flack <flackr@chromium.org> Cr-Commit-Position: refs/heads/master@{#706988}
Showing
Please register or sign in to comment