Skip to content

Eliminate NativeWidget entirely - #395

Merged
mrobinson merged 1 commit into
servo:mainfrom
mrobinson:remove-create-native-widget-from_ptr
Sep 21, 2026
Merged

mrobinson merged 1 commit into
servo:mainfrom
mrobinson:remove-create-native-widget-from_ptr

Conversation

@mrobinson

Copy link
Copy Markdown
Member

Instead of a temporary NativeWidget type just have the surface
constructor take a SurfaceType that contains a WindowHandle. This is
now possible since raw_window_handle is an unconditional dependency.
This allows removing hundreds of lines of boilerplate.

Instead of a temporary `NativeWidget` type just have the surface
constructor take a `SurfaceType` that contains a `WindowHandle`. This is
now possible since `raw_window_handle` is an unconditional dependency.
This allows removing hundreds of lines of boilerplate.

Signed-off-by: Martin Robinson <martin@abandonedwig.info>

@jdm jdm left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Excellent.

@mrobinson
mrobinson added this pull request to the merge queue Sep 20, 2026
@mrobinson
mrobinson removed this pull request from the merge queue due to a manual request Sep 21, 2026
@mrobinson
mrobinson added this pull request to the merge queue Sep 21, 2026
Merged via the queue into servo:main with commit 55d0afb Sep 21, 2026
13 checks passed
@mrobinson
mrobinson deleted the remove-create-native-widget-from_ptr branch September 21, 2026 05:36
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.

2 participants