Index: third_party/WebKit/Source/core/html/HTMLOptionElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp b/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp |
index 7e624fe3a9e334f9275f2ab81170e22aff58a57f..07c1eb21bd3bed427f075dfa33ebe6677fa76159 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp |
@@ -32,7 +32,6 @@ |
#include "core/dom/Document.h" |
#include "core/dom/NodeComputedStyle.h" |
#include "core/dom/NodeTraversal.h" |
-#include "core/dom/ScriptLoader.h" |
#include "core/dom/Text.h" |
#include "core/dom/shadow/ShadowRoot.h" |
#include "core/html/HTMLDataListElement.h" |
@@ -383,7 +382,7 @@ String HTMLOptionElement::collectOptionInnerText() const { |
if (node->isTextNode()) |
text.append(node->nodeValue()); |
// Text nodes inside script elements are not part of the option text. |
- if (node->isElementNode() && toScriptLoaderIfPossible(toElement(node))) |
+ if (node->isElementNode() && toElement(node)->isScriptElement()) |
node = NodeTraversal::nextSkippingChildren(*node, this); |
else |
node = NodeTraversal::next(*node, this); |