diff options
Diffstat (limited to 'components/script/dom/servoparser/mod.rs')
-rw-r--r-- | components/script/dom/servoparser/mod.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/components/script/dom/servoparser/mod.rs b/components/script/dom/servoparser/mod.rs index 2abed929231..a6c27804295 100644 --- a/components/script/dom/servoparser/mod.rs +++ b/components/script/dom/servoparser/mod.rs @@ -19,7 +19,7 @@ use dom::element::Element; use dom::globalscope::GlobalScope; use dom::htmlformelement::HTMLFormElement; use dom::htmlimageelement::HTMLImageElement; -use dom::htmlscriptelement::HTMLScriptElement; +use dom::htmlscriptelement::{HTMLScriptElement, ScriptResult}; use dom::node::{Node, NodeSiblingIterator}; use dom::text::Text; use encoding::all::UTF_8; @@ -171,7 +171,7 @@ impl ServoParser { /// ^ /// insertion point /// ``` - pub fn resume_with_pending_parsing_blocking_script(&self, script: &HTMLScriptElement) { + pub fn resume_with_pending_parsing_blocking_script(&self, script: &HTMLScriptElement, result: ScriptResult) { assert!(self.suspended.get()); self.suspended.set(false); @@ -184,7 +184,7 @@ impl ServoParser { assert_eq!(script_nesting_level, 0); self.script_nesting_level.set(script_nesting_level + 1); - script.execute(); + script.execute(result); self.script_nesting_level.set(script_nesting_level); if !self.suspended.get() { @@ -196,7 +196,7 @@ impl ServoParser { pub fn write(&self, text: Vec<DOMString>) { assert!(self.script_nesting_level.get() > 0); - if self.document.get_pending_parsing_blocking_script().is_some() { + if self.document.has_pending_parsing_blocking_script() { // There is already a pending parsing blocking script so the // parser is suspended, we just append everything to the // script input and abort these steps. @@ -326,7 +326,7 @@ impl ServoParser { script.prepare(); self.script_nesting_level.set(script_nesting_level); - if self.document.get_pending_parsing_blocking_script().is_some() { + if self.document.has_pending_parsing_blocking_script() { self.suspended.set(true); return; } |