summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/WebCore/html/HTMLTokenizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/WebCore/html/HTMLTokenizer.cpp')
-rw-r--r--third_party/WebKit/WebCore/html/HTMLTokenizer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/third_party/WebKit/WebCore/html/HTMLTokenizer.cpp b/third_party/WebKit/WebCore/html/HTMLTokenizer.cpp
index 1a25da1..ee2d4bf 100644
--- a/third_party/WebKit/WebCore/html/HTMLTokenizer.cpp
+++ b/third_party/WebKit/WebCore/html/HTMLTokenizer.cpp
@@ -488,7 +488,7 @@ HTMLTokenizer::State HTMLTokenizer::scriptHandler(State state)
// we need to do this slightly modified bit of one of the write() cases
// because we want to prepend to pendingSrc rather than appending
// if there's no previous prependingSrc
- if (state.loadingExtScript()) {
+ if (!pendingScripts.isEmpty()) {
if (currentPrependingSrc) {
currentPrependingSrc->append(prependingSrc);
} else {
@@ -547,7 +547,7 @@ HTMLTokenizer::State HTMLTokenizer::scriptExecution(const String& str, State sta
// we need to do this slightly modified bit of one of the write() cases
// because we want to prepend to pendingSrc rather than appending
// if there's no previous prependingSrc
- if (state.loadingExtScript()) {
+ if (!pendingScripts.isEmpty()) {
if (currentPrependingSrc)
currentPrependingSrc->append(prependingSrc);
else