Peng Zhou would like Chromium LUCI CQ, Keren Zhu and Avi Drissman to review this change.
Revert "[Mac Window Occlusion] Hide native view for empty visible bounds"
This reverts commit d6e93f444e82820e0e4f8c5d9d7447f89ae06a5c.
Reason for revert: Caused performance regression.
Failure Link: 541312491
Original change's description:
> [Mac Window Occlusion] Hide native view for empty visible bounds
>
> `NativeViewHostMac::AttachNativeView` runs before
> `NativeViewHost::Layout`. As a result, a WebContents attached to a host
> with empty visible bounds may be visible when its native view is added
> to the new hierarchy. The native view is then hidden by `Layout`,
> causing a visible-to-hidden transition that the page can observe.
>
> Hide the native view before attaching it when the host has empty visible
> bounds. Also pass the initial visibility to `ViewsHostableAttach` so
> that a remote `WebContentsNSView` applies it before `SetParentNSView`.
>
> Bug: 540648468
> Change-Id: I3c449cd84c553ea898c82a1353e4c66731bc9f6d
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8175843
> Reviewed-by: Keren Zhu <kere...@chromium.org>
> Reviewed-by: Avi Drissman <a...@chromium.org>
> Commit-Queue: Peng Zhou <peng...@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1671951}
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Bot-Commit | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |