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

Unified Diff: Source/core/dom/Attr.cpp

Issue 688933002: Make textContent trigger single DOMSubtreeModified event (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add test Created 6 years, 2 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
Index: Source/core/dom/Attr.cpp
diff --git a/Source/core/dom/Attr.cpp b/Source/core/dom/Attr.cpp
index 29e647d15692feec373ea965e375b735b9404af7..17d2ad870f3894c899b0f7f4b6937ee64b5f6123 100644
--- a/Source/core/dom/Attr.cpp
+++ b/Source/core/dom/Attr.cpp
@@ -106,7 +106,7 @@ void Attr::setValue(const AtomicString& value)
{
EventQueueScope scope;
m_ignoreChildrenChanged++;
- removeChildren();
+ removeChildren(false);
if (m_element)
elementAttribute().setValue(value);
else

Powered by Google App Engine
This is Rietveld 408576698