suppress build warnings when disabling webgpu and webxr (#35379)

Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
webbeef 2025-02-08 00:16:21 -08:00 committed by GitHub
parent 654df4c8b7
commit 827012fc08
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 26 additions and 15 deletions

View file

@ -5,6 +5,7 @@
use std::cell::Cell;
use std::cmp;
use std::ptr::{self, NonNull};
#[cfg(feature = "webxr")]
use std::rc::Rc;
#[cfg(feature = "webgl_backtrace")]
@ -58,6 +59,7 @@ use crate::dom::element::cors_setting_for_element;
use crate::dom::event::{Event, EventBubbles, EventCancelable};
use crate::dom::htmlcanvaselement::{utils as canvas_utils, LayoutCanvasRenderingContextHelpers};
use crate::dom::node::{Node, NodeDamage, NodeTraits};
#[cfg(feature = "webxr")]
use crate::dom::promise::Promise;
use crate::dom::vertexarrayobject::VertexAttribData;
use crate::dom::webgl_extensions::WebGLExtensions;