mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Remove now-unnecessary must_root and allow(unrooted_must_root) annotations
This commit is contained in:
parent
6df1c6d7e7
commit
611dc4bc70
28 changed files with 2 additions and 67 deletions
|
@ -3139,7 +3139,6 @@ impl Document {
|
|||
}
|
||||
|
||||
// https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn enter_fullscreen(&self, pending: &Element) -> Rc<Promise> {
|
||||
// Step 1
|
||||
let promise = Promise::new(self.global().r());
|
||||
|
@ -3198,7 +3197,6 @@ impl Document {
|
|||
}
|
||||
|
||||
// https://fullscreen.spec.whatwg.org/#exit-fullscreen
|
||||
#[allow(unrooted_must_root)]
|
||||
pub fn exit_fullscreen(&self) -> Rc<Promise> {
|
||||
let global = self.global();
|
||||
// Step 1
|
||||
|
@ -4561,7 +4559,6 @@ impl DocumentMethods for Document {
|
|||
self.fullscreen_element.get()
|
||||
}
|
||||
|
||||
#[allow(unrooted_must_root)]
|
||||
// https://fullscreen.spec.whatwg.org/#dom-document-exitfullscreen
|
||||
fn ExitFullscreen(&self) -> Rc<Promise> {
|
||||
self.exit_fullscreen()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue