Index: Source/WebCore/html/HTMLTextAreaElement.cpp |
=================================================================== |
--- Source/WebCore/html/HTMLTextAreaElement.cpp (revision 109461) |
+++ Source/WebCore/html/HTMLTextAreaElement.cpp (working copy) |
@@ -354,8 +354,9 @@ |
void HTMLTextAreaElement::setDefaultValue(const String& defaultValue) |
{ |
+ RefPtr<Node> protectFromMutationEvents(this); |
+ |
// To preserve comments, remove only the text nodes, then add a single text node. |
- |
Vector<RefPtr<Node> > textNodes; |
for (Node* n = firstChild(); n; n = n->nextSibling()) { |
if (n->isTextNode()) |