mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
chore: remove unnecessary webrender_document
in script (#36648)
remove `webrender_document` in script and constellation's pipeline Testing: `webrender_document` in script crate is not being referenced anywhere in the Servo, should be safe to remove. Fixes: https://github.com/servo/servo/issues/36647 Signed-off-by: Jason Tsai <git@pews.dev>
This commit is contained in:
parent
7b0cf47dbe
commit
0eec22303b
5 changed files with 2 additions and 29 deletions
|
@ -83,8 +83,8 @@ use style::stylesheets::UrlExtraData;
|
|||
use style_traits::CSSPixel;
|
||||
use stylo_atoms::Atom;
|
||||
use url::Position;
|
||||
use webrender_api::ExternalScrollId;
|
||||
use webrender_api::units::{DevicePixel, LayoutPixel};
|
||||
use webrender_api::{DocumentId, ExternalScrollId};
|
||||
|
||||
use super::bindings::codegen::Bindings::MessagePortBinding::StructuredSerializeOptions;
|
||||
use super::bindings::trace::HashMapTracedValues;
|
||||
|
@ -353,10 +353,6 @@ pub(crate) struct Window {
|
|||
test_worklet: MutNullableDom<Worklet>,
|
||||
/// <https://drafts.css-houdini.org/css-paint-api-1/#paint-worklet>
|
||||
paint_worklet: MutNullableDom<Worklet>,
|
||||
/// The Webrender Document id associated with this window.
|
||||
#[ignore_malloc_size_of = "defined in webrender_api"]
|
||||
#[no_trace]
|
||||
webrender_document: DocumentId,
|
||||
|
||||
/// Flag to identify whether mutation observers are present(true)/absent(false)
|
||||
exists_mut_observer: Cell<bool>,
|
||||
|
@ -2775,10 +2771,6 @@ impl Window {
|
|||
.unwrap();
|
||||
}
|
||||
|
||||
pub(crate) fn webrender_document(&self) -> DocumentId {
|
||||
self.webrender_document
|
||||
}
|
||||
|
||||
#[cfg(feature = "webxr")]
|
||||
pub(crate) fn in_immersive_xr_session(&self) -> bool {
|
||||
self.navigator
|
||||
|
@ -2821,7 +2813,6 @@ impl Window {
|
|||
webgl_chan: Option<WebGLChan>,
|
||||
#[cfg(feature = "webxr")] webxr_registry: Option<webxr_api::Registry>,
|
||||
microtask_queue: Rc<MicrotaskQueue>,
|
||||
webrender_document: DocumentId,
|
||||
compositor_api: CrossProcessCompositorApi,
|
||||
relayout_event: bool,
|
||||
unminify_js: bool,
|
||||
|
@ -2906,7 +2897,6 @@ impl Window {
|
|||
local_script_source,
|
||||
test_worklet: Default::default(),
|
||||
paint_worklet: Default::default(),
|
||||
webrender_document,
|
||||
exists_mut_observer: Cell::new(false),
|
||||
compositor_api,
|
||||
has_sent_idle_message: Cell::new(false),
|
||||
|
|
|
@ -98,7 +98,6 @@ use timers::{TimerEventRequest, TimerScheduler};
|
|||
use url::Position;
|
||||
#[cfg(feature = "webgpu")]
|
||||
use webgpu_traits::{WebGPUDevice, WebGPUMsg};
|
||||
use webrender_api::DocumentId;
|
||||
use webrender_api::units::DevicePixel;
|
||||
|
||||
use crate::document_collection::DocumentCollection;
|
||||
|
@ -284,10 +283,6 @@ pub struct ScriptThread {
|
|||
/// <https://html.spec.whatwg.org/multipage/#custom-element-reactions-stack>
|
||||
custom_element_reaction_stack: CustomElementReactionStack,
|
||||
|
||||
/// The Webrender Document ID associated with this thread.
|
||||
#[no_trace]
|
||||
webrender_document: DocumentId,
|
||||
|
||||
/// Cross-process access to the compositor's API.
|
||||
#[no_trace]
|
||||
compositor_api: CrossProcessCompositorApi,
|
||||
|
@ -938,7 +933,6 @@ impl ScriptThread {
|
|||
worklet_thread_pool: Default::default(),
|
||||
docs_with_no_blocking_loads: Default::default(),
|
||||
custom_element_reaction_stack: CustomElementReactionStack::new(),
|
||||
webrender_document: state.webrender_document,
|
||||
compositor_api: state.compositor_api,
|
||||
profile_script_events: opts.debug.profile_script_events,
|
||||
print_pwm: opts.print_pwm,
|
||||
|
@ -3136,7 +3130,6 @@ impl ScriptThread {
|
|||
#[cfg(feature = "webxr")]
|
||||
self.webxr_registry.clone(),
|
||||
self.microtask_queue.clone(),
|
||||
self.webrender_document,
|
||||
self.compositor_api.clone(),
|
||||
self.relayout_event,
|
||||
self.unminify_js,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue