Store requested bounds in WTHPlatform when creating platform windows
Early calls to Widget::SetBounds() for native windows with the same size (but changing origin location, for example) may lead to "host resized" event being propagated to widget's views tree when it shouldn't. Which leads to tricky side effects, such as crbug.com/1151092 under Wayland, for example. This avoids it by making sure initial bounding rectangle is cached at WTHPlatform when creating the PlatformWindow instance. R=sky@chromium.org Bug: 1151092 Change-Id: I476dc11ef336e8443c83dfa874d160a1a6a9581f Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2593547Reviewed-by:Scott Violet <sky@chromium.org> Commit-Queue: Nick Yamane <nickdiego@igalia.com> Cr-Commit-Position: refs/heads/master@{#837711}
Showing
Please register or sign in to comment