mirror of
https://github.com/servo/servo.git
synced 2025-09-30 00:29:14 +01:00
script: Rename DebuggerEvent to DebuggerAddDebuggeeEvent (#38571)
the next debugger script event, `getPossibleBreakpoints` (#37667), will contain a single attribute `unsigned long spidermonkeyId`, so it will have nothing in common with `addDebuggee`. this patch renames the latter accordingly. Testing: no behaviour changes other than the rename, so no tests needed Fixes: part of #36027 Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
parent
c49d53b8dd
commit
c4044e17bb
5 changed files with 10 additions and 10 deletions
|
@ -23,7 +23,7 @@ use crate::dom::bindings::inheritance::Castable;
|
|||
use crate::dom::bindings::root::DomRoot;
|
||||
use crate::dom::bindings::utils::define_all_exposed_interfaces;
|
||||
use crate::dom::globalscope::GlobalScope;
|
||||
use crate::dom::types::{DebuggerEvent, Event};
|
||||
use crate::dom::types::{DebuggerAddDebuggeeEvent, Event};
|
||||
#[cfg(feature = "testbinding")]
|
||||
#[cfg(feature = "webgpu")]
|
||||
use crate::dom::webgpu::identityhub::IdentityHub;
|
||||
|
@ -132,7 +132,7 @@ impl DebuggerGlobalScope {
|
|||
) {
|
||||
let debuggee_pipeline_id =
|
||||
crate::dom::pipelineid::PipelineId::new(self.upcast(), debuggee_pipeline_id, can_gc);
|
||||
let event = DomRoot::upcast::<Event>(DebuggerEvent::new(
|
||||
let event = DomRoot::upcast::<Event>(DebuggerAddDebuggeeEvent::new(
|
||||
self.upcast(),
|
||||
debuggee_global,
|
||||
&debuggee_pipeline_id,
|
||||
|
@ -141,7 +141,7 @@ impl DebuggerGlobalScope {
|
|||
));
|
||||
assert!(
|
||||
DomRoot::upcast::<Event>(event).fire(self.upcast(), can_gc),
|
||||
"Guaranteed by DebuggerEvent::new"
|
||||
"Guaranteed by DebuggerAddDebuggeeEvent::new"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue