aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r--components/script/dom/document.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 189352c35ce..602298ec9c5 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -3894,10 +3894,10 @@ impl Document {
}
// https://fullscreen.spec.whatwg.org/#dom-element-requestfullscreen
- pub fn enter_fullscreen(&self, pending: &Element) -> Rc<Promise> {
+ pub fn enter_fullscreen(&self, pending: &Element, can_gc: CanGc) -> Rc<Promise> {
// Step 1
let in_realm_proof = AlreadyInRealm::assert();
- let promise = Promise::new_in_current_realm(InRealm::Already(&in_realm_proof));
+ let promise = Promise::new_in_current_realm(InRealm::Already(&in_realm_proof), can_gc);
let mut error = false;
// Step 4
@@ -3961,11 +3961,11 @@ impl Document {
}
// https://fullscreen.spec.whatwg.org/#exit-fullscreen
- pub fn exit_fullscreen(&self) -> Rc<Promise> {
+ pub fn exit_fullscreen(&self, can_gc: CanGc) -> Rc<Promise> {
let global = self.global();
// Step 1
let in_realm_proof = AlreadyInRealm::assert();
- let promise = Promise::new_in_current_realm(InRealm::Already(&in_realm_proof));
+ let promise = Promise::new_in_current_realm(InRealm::Already(&in_realm_proof), can_gc);
// Step 2
if self.fullscreen_element.get().is_none() {
promise.reject_error(Error::Type(String::from("fullscreen is null")));
@@ -5557,8 +5557,8 @@ impl DocumentMethods for Document {
}
// https://fullscreen.spec.whatwg.org/#dom-document-exitfullscreen
- fn ExitFullscreen(&self) -> Rc<Promise> {
- self.exit_fullscreen()
+ fn ExitFullscreen(&self, can_gc: CanGc) -> Rc<Promise> {
+ self.exit_fullscreen(can_gc)
}
// check-tidy: no specs after this line