Skip to content

[26488] Refactors GPUCanvasContext to manage context dropping.#42243

Merged
sagudev merged 1 commit intoservo:mainfrom
willypuzzle:26488-Drop-impls-for-DOM-types-should-be-forbidden-GPUCanvasContext
Jan 29, 2026
Merged

[26488] Refactors GPUCanvasContext to manage context dropping.#42243
sagudev merged 1 commit intoservo:mainfrom
willypuzzle:26488-Drop-impls-for-DOM-types-should-be-forbidden-GPUCanvasContext

Conversation

@willypuzzle
Copy link
Copy Markdown
Contributor

Moves the Drop implementation for GPUCanvasContext to a new DroppableGPUCanvasContext struct.

This ensures the context destruction logic is correctly handled, as the GPUCanvasContext struct itself is a DOM struct and should not have a drop implementation. This change aligns with the requirement that DOM types should not implement Drop.

Testing: No tests added
Fixes: #26488

Moves the `Drop` implementation for `GPUCanvasContext` to a new `DroppableGPUCanvasContext` struct.

This ensures the context destruction logic is correctly handled, as the `GPUCanvasContext` struct itself is a DOM struct and should not have a drop implementation. This change aligns with the requirement that DOM types should not implement Drop.

Fixes servo#26488

Signed-off-by: Domenico Rizzo <[email protected]>
@willypuzzle willypuzzle requested a review from sagudev as a code owner January 29, 2026 15:55
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jan 29, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jan 29, 2026
@sagudev sagudev added this pull request to the merge queue Jan 29, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jan 29, 2026
Merged via the queue into servo:main with commit 2c770c1 Jan 29, 2026
32 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jan 29, 2026
@willypuzzle willypuzzle deleted the 26488-Drop-impls-for-DOM-types-should-be-forbidden-GPUCanvasContext branch January 29, 2026 20:15
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.

Drop impls for DOM types should be forbidden

3 participants