[FCP++] Enable subframes, OOPIFs from the renderer side
Currently, FCP++ is only collecting results from the main frame. This CL will enable it to collect results from subframes, including OOPIFs in particular. This CL also simplify the size calculation. Originally, we intersect the mapped visual rect with the viewport rect. This step is actually unnecessary, because LocalToAncestorVisualRect() has already included the viewport clipping. For OOPIF, this CL adds an extra step upon the normal work flow. Visual rects of OOPIF live in the main frame space, but they are not clipped by the main frame viewport. So we add MapToVisualRectInTopFrameSpace, which do the viewport clipping. Bug: 934318 Change-Id: I5f91815cafdadd68a01bc1cdd5d8cf009a6e4fbe Reviewed-on: https://chromium-review.googlesource.com/c/1481574 Commit-Queue: Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:Liquan (Max) Gu <maxlg@chromium.org> Reviewed-by:
Xianzhu Wang <wangxianzhu@chromium.org> Cr-Commit-Position: refs/heads/master@{#636902}
Showing
Please register or sign in to comment