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

Unified Diff: third_party/WebKit/Source/core/dom/NodeRareData.h

Issue 2396693004: [wrapper-tracing] MutationObserver: Add write barriers (Closed)
Patch Set: Move WB below setting the flag, actually making the getter work Created 4 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/NodeRareData.h
diff --git a/third_party/WebKit/Source/core/dom/NodeRareData.h b/third_party/WebKit/Source/core/dom/NodeRareData.h
index d3d428f2075f5a80a1edef508e4e3de00bcbd2f8..2e2de6c8c09437299e0171e4debe85a45bfdd97a 100644
--- a/third_party/WebKit/Source/core/dom/NodeRareData.h
+++ b/third_party/WebKit/Source/core/dom/NodeRareData.h
@@ -22,6 +22,7 @@
#ifndef NodeRareData_h
#define NodeRareData_h
+#include "bindings/core/v8/ScriptWrappableVisitor.h"
#include "core/dom/MutationObserverRegistration.h"
#include "core/dom/NodeListsNodeData.h"
#include "platform/heap/Handle.h"
@@ -84,8 +85,10 @@ class NodeRareData : public GarbageCollectedFinalized<NodeRareData>,
return m_mutationObserverData.get();
}
NodeMutationObserverData& ensureMutationObserverData() {
- if (!m_mutationObserverData)
+ if (!m_mutationObserverData) {
m_mutationObserverData = NodeMutationObserverData::create();
+ ScriptWrappableVisitor::writeBarrier(this, m_mutationObserverData);
+ }
return *m_mutationObserverData;
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698