mirror of
https://github.com/servo/servo.git
synced 2025-09-30 08:39:16 +01:00
cargo: Bump rustc to 1.89 (#36818)
Update Rustc to 1.89. Reviewable by commit. Leftover work: - #37330 - #38777 --------- Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com> Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
This commit is contained in:
parent
8587536755
commit
3225d19907
126 changed files with 408 additions and 610 deletions
|
@ -591,16 +591,13 @@ impl CustomElementRegistryMethods<crate::DomTypeHolder> for CustomElementRegistr
|
|||
return promise;
|
||||
}
|
||||
|
||||
// Steps 3, 4, 5
|
||||
// Steps 3, 4, 5, 6
|
||||
let existing_promise = self.when_defined.borrow().get(&name).cloned();
|
||||
let promise = existing_promise.unwrap_or_else(|| {
|
||||
existing_promise.unwrap_or_else(|| {
|
||||
let promise = Promise::new_in_current_realm(comp, can_gc);
|
||||
self.when_defined.borrow_mut().insert(name, promise.clone());
|
||||
promise
|
||||
});
|
||||
|
||||
// Step 6
|
||||
promise
|
||||
})
|
||||
}
|
||||
/// <https://html.spec.whatwg.org/multipage/#dom-customelementregistry-upgrade>
|
||||
fn Upgrade(&self, node: &Node) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue