Skip to content

revert: Revert native element Win32 coordinate/z-order changes (#23196, #23126) - #23210

Merged
agneszitte merged 2 commits into
masterfrom
dev/xygu/20260505/native-element-reverts
May 6, 2026
Merged

agneszitte merged 2 commits into
masterfrom
dev/xygu/20260505/native-element-reverts

Conversation

@Xiaoy312

@Xiaoy312 Xiaoy312 commented May 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Reason

#23126 (with or without #23196) leads to a regression where content from one WebView2 and bleed/leak into another WebView2 (https://github.com/unoplatform/kahua-private/issues/471).
#23196 is a follow up of #23126 that can't existing alone.

Xiaoy312 added 2 commits May 5, 2026 17:28
…win32-native-element-coords"

This reverts commit 3d0094f, reversing
changes made to b4db8c0.
…ker"

This reverts commit 7175acb, reversing
changes made to 08060b5.
Copilot AI review requested due to automatic review settings May 5, 2026 21:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR reverts recent Win32 Skia native-element hosting changes (from #23196 and #23126) by moving native HWND positioning back to the arrange phase and removing the per-parent native z-order tracking logic, aiming to roll back regressions in coordinate/z-order behavior.

Changes:

  • Restore immediate SetWindowPos during ArrangeNativeElement (no longer deferred to the render/present timing).
  • Adjust first-show behavior to show the native child window on the first arrange instead of gating on render consumption.
  • Remove Win32 native-element z-index support (drop sibling tracking and SetZIndex implementation).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@unodevops

Copy link
Copy Markdown
Contributor

@agneszitte
agneszitte merged commit 9cce16b into master May 6, 2026
49 checks passed
@agneszitte
agneszitte deleted the dev/xygu/20260505/native-element-reverts branch May 6, 2026 03:39
@Xiaoy312 Xiaoy312 mentioned this pull request May 7, 2026
1 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants