mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
* new_js_regex and matches_js_regex need a CanGc argument Signed-off-by: dericko681 <abonghoderick@gmail.com> * new_js_regex and matches_js_regex need a CanGc argument Signed-off-by: dericko681 <abonghoderick@gmail.com> * edit Propagate CanGc arguments through new_js_regex and matches_js_regex Signed-off-by: dericko681 <abonghoderick@gmail.com> * Propagate CanGc arguments through new_js_regex and matches_js_regex Signed-off-by: dericko681 <abonghoderick@gmail.com> * Propagate CanGc arguments through new_js_regex and matches_js_regex Signed-off-by: dericko681 <abonghoderick@gmail.com> * Propagate CanGc arguments through new_js_regex and matches_js_regex Signed-off-by: dericko681 <abonghoderick@gmail.com> --------- Signed-off-by: dericko681 <abonghoderick@gmail.com>
This commit is contained in:
parent
b5c8164e99
commit
83da63f638
60 changed files with 600 additions and 435 deletions
|
@ -117,7 +117,7 @@ impl HTMLOptionsCollectionMethods<crate::DomTypeHolder> for HTMLOptionsCollectio
|
|||
let node = value.upcast::<Node>();
|
||||
let root = self.upcast().root_node();
|
||||
if n >= 0 {
|
||||
Node::pre_insert(node, &root, None).map(|_| ())
|
||||
Node::pre_insert(node, &root, None, can_gc).map(|_| ())
|
||||
} else {
|
||||
let child = self.upcast().IndexedGetter(index).unwrap();
|
||||
let child_node = child.upcast::<Node>();
|
||||
|
@ -220,7 +220,7 @@ impl HTMLOptionsCollectionMethods<crate::DomTypeHolder> for HTMLOptionsCollectio
|
|||
};
|
||||
|
||||
// Step 6
|
||||
Node::pre_insert(node, &parent, reference_node.as_deref()).map(|_| ())
|
||||
Node::pre_insert(node, &parent, reference_node.as_deref(), CanGc::note()).map(|_| ())
|
||||
}
|
||||
|
||||
/// <https://html.spec.whatwg.org/multipage/#dom-htmloptionscollection-remove>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue