aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/parse
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/parse')
-rw-r--r--components/script/parse/html.rs2
-rw-r--r--components/script/parse/xml.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/components/script/parse/html.rs b/components/script/parse/html.rs
index a16f35a7714..87aa7a6b293 100644
--- a/components/script/parse/html.rs
+++ b/components/script/parse/html.rs
@@ -150,7 +150,7 @@ impl<'a> TreeSink for servohtmlparser::Sink {
fn mark_script_already_started(&mut self, node: JS<Node>) {
let script = node.downcast::<HTMLScriptElement>();
- script.map(|script| script.mark_already_started());
+ script.map(|script| script.set_already_started(true));
}
fn complete_script(&mut self, node: JS<Node>) -> NextParserState {
diff --git a/components/script/parse/xml.rs b/components/script/parse/xml.rs
index 3dd0f89f03d..ee0959d04ef 100644
--- a/components/script/parse/xml.rs
+++ b/components/script/parse/xml.rs
@@ -107,7 +107,7 @@ impl<'a> TreeSink for servoxmlparser::Sink {
fn mark_script_already_started(&mut self, node: Self::Handle) {
let script = node.downcast::<HTMLScriptElement>();
if let Some(script) = script {
- script.mark_already_started();
+ script.set_already_started(true);
}
}