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

Unified Diff: Source/WebCore/bindings/v8/V8RecursionScope.cpp

Issue 9355009: Merge 107170 - DOM mutations should not be delivered on worker threads (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/bindings/v8/V8RecursionScope.h ('k') | Source/WebCore/bindings/v8/V8WindowErrorHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/bindings/v8/V8RecursionScope.cpp
===================================================================
--- Source/WebCore/bindings/v8/V8RecursionScope.cpp (revision 108090)
+++ Source/WebCore/bindings/v8/V8RecursionScope.cpp (working copy)
@@ -32,11 +32,12 @@
#include "V8RecursionScope.h"
#include "IDBPendingTransactionMonitor.h"
+#include "ScriptExecutionContext.h"
#include "WebKitMutationObserver.h"
namespace WebCore {
-void V8RecursionScope::didLeaveScriptContext()
+void V8RecursionScope::didLeaveScriptContext(ScriptExecutionContext* context)
{
// FIXME: Instrument any work that takes place when script exits to c++ (e.g. Mutation Observers).
@@ -48,7 +49,8 @@
#endif
#if ENABLE(MUTATION_OBSERVERS)
- WebKitMutationObserver::deliverAllMutations();
+ if (context && context->isDocument())
+ WebKitMutationObserver::deliverAllMutations();
#endif
}
« no previous file with comments | « Source/WebCore/bindings/v8/V8RecursionScope.h ('k') | Source/WebCore/bindings/v8/V8WindowErrorHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698