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

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

Issue 2435003002: [wrapper-tracing] Add NodeList write barriers (Closed)
Patch Set: 2nd try 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/NodeListsNodeData.h ('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 4fa5f347f7bcec4b5b57a4d66941669f7a16a254..8f4e005d665f9ac0c2facd9c9735bece746d159b 100644
--- a/third_party/WebKit/Source/core/dom/NodeRareData.h
+++ b/third_party/WebKit/Source/core/dom/NodeRareData.h
@@ -76,8 +76,10 @@ class NodeRareData : public GarbageCollectedFinalized<NodeRareData>,
// initialized m_nodeLists is cleared by NodeRareData::traceAfterDispatch().
NodeListsNodeData& ensureNodeLists() {
DCHECK(ThreadState::current()->isGCForbidden());
- if (!m_nodeLists)
+ if (!m_nodeLists) {
m_nodeLists = NodeListsNodeData::create();
+ ScriptWrappableVisitor::writeBarrier(this, m_nodeLists);
+ }
return *m_nodeLists;
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/NodeListsNodeData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698