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

Unified Diff: third_party/WebKit/Source/core/dom/Range.cpp

Issue 2532843002: Postpone DOM mutation event in Range::extractContents() (Closed)
Patch Set: 2016-11-28T18:02:27 Created 4 years, 1 month 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: third_party/WebKit/Source/core/dom/Range.cpp
diff --git a/third_party/WebKit/Source/core/dom/Range.cpp b/third_party/WebKit/Source/core/dom/Range.cpp
index 57fed6e04e3cc39acb03cf4d4a300e565bfc6f2f..e6a87e53c9ab103dd4b7d03ae8b419603dfdf3ac 100644
--- a/third_party/WebKit/Source/core/dom/Range.cpp
+++ b/third_party/WebKit/Source/core/dom/Range.cpp
@@ -774,6 +774,7 @@ DocumentFragment* Range::extractContents(ExceptionState& exceptionState) {
if (exceptionState.hadException())
return nullptr;
+ EventQueueScope scope;
return processContents(EXTRACT_CONTENTS, exceptionState);
}

Powered by Google App Engine
This is Rietveld 408576698