mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
add CanGc as argument to methods in Element (#36464)
add CanGc as argument to methods in Element Testing: These changes do not require tests because they are a refactor. Addresses part of https://github.com/servo/servo/issues/34573. Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
parent
3c5da6588d
commit
c8ecb57d97
9 changed files with 61 additions and 52 deletions
|
@ -67,7 +67,7 @@ impl NamedNodeMapMethods<crate::DomTypeHolder> for NamedNodeMap {
|
|||
|
||||
// https://dom.spec.whatwg.org/#dom-namednodemap-setnameditem
|
||||
fn SetNamedItem(&self, attr: &Attr) -> Fallible<Option<DomRoot<Attr>>> {
|
||||
self.owner.SetAttributeNode(attr)
|
||||
self.owner.SetAttributeNode(attr, CanGc::note())
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-namednodemap-setnameditemns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue