mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Remove an unnecessary variable from HTMLScriptElement::prepare().
This commit is contained in:
parent
ed985f75ec
commit
f45b8bc53e
1 changed files with 2 additions and 3 deletions
|
@ -227,13 +227,12 @@ impl HTMLScriptElement {
|
|||
|
||||
// Step 9.
|
||||
let doc = document_from_node(self);
|
||||
let document_from_node_ref = doc.r();
|
||||
if self.parser_inserted.get() && &*self.parser_document != document_from_node_ref {
|
||||
if self.parser_inserted.get() && &*self.parser_document != &*doc {
|
||||
return NextParserState::Continue;
|
||||
}
|
||||
|
||||
// Step 10.
|
||||
if !document_from_node_ref.is_scripting_enabled() {
|
||||
if !doc.is_scripting_enabled() {
|
||||
return NextParserState::Continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue