mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Introduce Document::has_pending_parsing_blocking_script
This commit is contained in:
parent
749ac42854
commit
438182a7de
2 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue