mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
|
@ -79,7 +79,7 @@ impl NamedNodeMapMethods<crate::DomTypeHolder> for NamedNodeMap {
|
|||
fn RemoveNamedItem(&self, name: DOMString) -> Fallible<DomRoot<Attr>> {
|
||||
let name = self.owner.parsed_name(name);
|
||||
self.owner
|
||||
.remove_attribute_by_name(&name)
|
||||
.remove_attribute_by_name(&name, CanGc::note())
|
||||
.ok_or(Error::NotFound)
|
||||
}
|
||||
|
||||
|
@ -91,7 +91,7 @@ impl NamedNodeMapMethods<crate::DomTypeHolder> for NamedNodeMap {
|
|||
) -> Fallible<DomRoot<Attr>> {
|
||||
let ns = namespace_from_domstring(namespace);
|
||||
self.owner
|
||||
.remove_attribute(&ns, &LocalName::from(local_name))
|
||||
.remove_attribute(&ns, &LocalName::from(local_name), CanGc::note())
|
||||
.ok_or(Error::NotFound)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue