aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/servoparser/mod.rs
diff options
context:
space:
mode:
authorAnthony Ramine <n.oxyde@gmail.com>2017-01-10 21:55:42 +0100
committerAnthony Ramine <n.oxyde@gmail.com>2017-01-11 14:52:40 +0100
commit438182a7dec8b4092d81dbb832fc3e1a0f0e077e (patch)
treedc835524093b41c1c2d13d50c03db2d7f5745c7c /components/script/dom/servoparser/mod.rs
parent749ac4285422c8da71dca3d308c4424a882ebace (diff)
downloadservo-438182a7dec8b4092d81dbb832fc3e1a0f0e077e.tar.gz
servo-438182a7dec8b4092d81dbb832fc3e1a0f0e077e.zip
Introduce Document::has_pending_parsing_blocking_script
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;
}