mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
add CanGc as argument to methods in DissimilarOriginWindow, DocumentFragment, DocumentType, DOMRect, DOMRectReadOnly, DOMStringMap (#36395)
add CanGc as argument to methods in DissimilarOriginWindow, DocumentFragment, DocumentType, DOMRect, DOMRectReadOnly, DOMStringMap Testing: These changes do not require tests because they are a refactor. Addressed part of https://github.com/servo/servo/issues/34573. Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
parent
76e0b8ec06
commit
40655cc06c
7 changed files with 31 additions and 15 deletions
|
@ -39,8 +39,8 @@ impl DOMStringMap {
|
|||
// https://html.spec.whatwg.org/multipage/#domstringmap
|
||||
impl DOMStringMapMethods<crate::DomTypeHolder> for DOMStringMap {
|
||||
// https://html.spec.whatwg.org/multipage/#dom-domstringmap-removeitem
|
||||
fn NamedDeleter(&self, name: DOMString) {
|
||||
self.element.delete_custom_attr(name, CanGc::note())
|
||||
fn NamedDeleter(&self, name: DOMString, can_gc: CanGc) {
|
||||
self.element.delete_custom_attr(name, can_gc)
|
||||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-domstringmap-setitem
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue