aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servoparser/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/servoparser/mod.rs')
-rw-r--r--components/script/dom/servoparser/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/servoparser/mod.rs b/components/script/dom/servoparser/mod.rs
index 2abed929231..5ee23a997f4 100644
--- a/components/script/dom/servoparser/mod.rs
+++ b/components/script/dom/servoparser/mod.rs
@@ -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;
}