webgl: Remove manual Drop implementation for WebGLQuery (#43544)

Moves the cleanup logic to a separate helper struct to comply with the
prohibition of manual `Drop` implementations for DOM types.

Testing: WebGL tests just cover its parts
Fixes: Partially #26488

Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com>
This commit is contained in:
Domenico Rizzo
2026-03-22 21:33:35 +01:00
committed by GitHub
parent a63a00936f
commit 1e514bcfe9
2 changed files with 50 additions and 29 deletions

View File

@@ -824,10 +824,6 @@ DOMInterfaces = {
'additionalTraits': ['crate::interfaces::WebGL2RenderingContextHelpers'],
},
'WebGLQuery': {
'allowDropImpl': True,
},
'WebGLRenderbuffer': {
'allowDropImpl': True,
},