mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
Add get_url() to GlobalScopeHelper (#35589)
This is needed to build with the tracing feature Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
e883eaa322
commit
084006abb6
1 changed files with 6 additions and 0 deletions
|
@ -3352,6 +3352,8 @@ pub(crate) trait GlobalScopeHelpers<D: crate::DomTypes> {
|
|||
fn incumbent() -> Option<DomRoot<D::GlobalScope>>;
|
||||
|
||||
fn perform_a_microtask_checkpoint(&self, can_gc: CanGc);
|
||||
|
||||
fn get_url(&self) -> ServoUrl;
|
||||
}
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
|
@ -3387,4 +3389,8 @@ impl GlobalScopeHelpers<crate::DomTypeHolder> for GlobalScope {
|
|||
fn perform_a_microtask_checkpoint(&self, can_gc: CanGc) {
|
||||
GlobalScope::perform_a_microtask_checkpoint(self, can_gc)
|
||||
}
|
||||
|
||||
fn get_url(&self) -> ServoUrl {
|
||||
self.get_url()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue