CanGc fixes from EventTarget::fire_event (#33985)

Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
This commit is contained in:
tanishka 2024-10-24 04:18:19 +05:30 committed by GitHub
parent bb4932026c
commit ea875f0a51
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 155 additions and 115 deletions

View file

@ -91,7 +91,7 @@ impl DOMParserMethods for DOMParser {
can_gc,
);
ServoParser::parse_html_document(&document, Some(s), url, can_gc);
document.set_ready_state(DocumentReadyState::Complete);
document.set_ready_state(DocumentReadyState::Complete, can_gc);
Ok(document)
},
Text_xml | Application_xml | Application_xhtml_xml | Image_svg_xml => {
@ -113,7 +113,7 @@ impl DOMParserMethods for DOMParser {
can_gc,
);
ServoParser::parse_xml_document(&document, Some(s), url, can_gc);
document.set_ready_state(DocumentReadyState::Complete);
document.set_ready_state(DocumentReadyState::Complete, can_gc);
Ok(document)
},
}