Chromium Code Reviews| Index: Source/core/html/HTMLScriptElement.cpp |
| diff --git a/Source/core/html/HTMLScriptElement.cpp b/Source/core/html/HTMLScriptElement.cpp |
| index 1b53647d8de808ab82193dec486b9394acb8cd0a..7993d5bcfd96275d40516574ab1a272b013dd282 100644 |
| --- a/Source/core/html/HTMLScriptElement.cpp |
| +++ b/Source/core/html/HTMLScriptElement.cpp |
| @@ -129,14 +129,7 @@ void HTMLScriptElement::didNotifySubtreeInsertionsToDocument() |
| void HTMLScriptElement::setText(const String &value) |
| { |
| RefPtrWillBeRawPtr<Node> protectFromMutationEvents(this); |
|
tkent
2015/08/19 08:11:21
This line is unnecessary. setTextContent has simi
ramya.v
2015/08/19 08:14:18
Done.
|
| - |
| - if (hasOneTextChild()) { |
| - toText(firstChild())->setData(value); |
| - return; |
| - } |
| - |
| - removeChildren(); |
| - appendChild(document().createTextNode(value.impl()), IGNORE_EXCEPTION); |
| + setTextContent(value); |
| } |
| void HTMLScriptElement::setAsync(bool async) |