mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Introduce GlobalScope::live_devtools_updates
This commit is contained in:
parent
3e5c0c386c
commit
d7c2da450b
8 changed files with 20 additions and 37 deletions
|
@ -258,15 +258,6 @@ impl<'a> GlobalRef<'a> {
|
|||
)
|
||||
}
|
||||
|
||||
/// Set the `bool` value to indicate whether developer tools has requested
|
||||
/// updates from the global
|
||||
pub fn set_devtools_wants_updates(&self, send_updates: bool) {
|
||||
match *self {
|
||||
GlobalRef::Window(window) => window.set_devtools_wants_updates(send_updates),
|
||||
GlobalRef::Worker(worker) => worker.set_devtools_wants_updates(send_updates),
|
||||
}
|
||||
}
|
||||
|
||||
/// Schedule the given `callback` to be invoked after at least `duration` milliseconds have
|
||||
/// passed.
|
||||
pub fn schedule_callback(&self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue