mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove global argument from Promise::new_in_current_realm.
This commit is contained in:
parent
f79e1e327d
commit
fca5833e21
30 changed files with 54 additions and 56 deletions
|
@ -2734,7 +2734,7 @@ impl GlobalScope {
|
|||
options: &ImageBitmapOptions,
|
||||
) -> Rc<Promise> {
|
||||
let in_realm_proof = AlreadyInRealm::assert(&self);
|
||||
let p = Promise::new_in_current_realm(&self, InRealm::Already(&in_realm_proof));
|
||||
let p = Promise::new_in_current_realm(InRealm::Already(&in_realm_proof));
|
||||
if options.resizeWidth.map_or(false, |w| w == 0) {
|
||||
p.reject_error(Error::InvalidState);
|
||||
return p;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue