Index: Source/core/html/HTMLScriptElement.cpp |
diff --git a/Source/core/html/HTMLScriptElement.cpp b/Source/core/html/HTMLScriptElement.cpp |
index 1b53647d8de808ab82193dec486b9394acb8cd0a..6bf842423a6bfa43d0bb4ef84448b90090364334 100644 |
--- a/Source/core/html/HTMLScriptElement.cpp |
+++ b/Source/core/html/HTMLScriptElement.cpp |
@@ -128,15 +128,7 @@ void HTMLScriptElement::didNotifySubtreeInsertionsToDocument() |
void HTMLScriptElement::setText(const String &value) |
{ |
- RefPtrWillBeRawPtr<Node> protectFromMutationEvents(this); |
- |
- if (hasOneTextChild()) { |
- toText(firstChild())->setData(value); |
- return; |
- } |
- |
- removeChildren(); |
- appendChild(document().createTextNode(value.impl()), IGNORE_EXCEPTION); |
+ setTextContent(value); |
} |
void HTMLScriptElement::setAsync(bool async) |