Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(124)

Unified Diff: Source/WebCore/html/HTMLTextAreaElement.cpp

Issue 9567036: Merge 109362 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/html/HTMLTableElement.cpp ('k') | Source/WebCore/html/HTMLTitleElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/html/HTMLTextAreaElement.cpp
===================================================================
--- Source/WebCore/html/HTMLTextAreaElement.cpp (revision 109466)
+++ Source/WebCore/html/HTMLTextAreaElement.cpp (working copy)
@@ -367,8 +367,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())
« no previous file with comments | « Source/WebCore/html/HTMLTableElement.cpp ('k') | Source/WebCore/html/HTMLTitleElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698