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

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

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 | « no previous file | third_party/WebKit/Source/core/dom/NodeListsNodeData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 6c2fb103380fe6e785c2522bd8bbadc94c349eec..acae74472ddd8f630d78dff46544427b048a6335 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -3983,6 +3983,7 @@ void Document::setCSSTarget(Element* newTarget) {
void Document::registerNodeList(const LiveNodeListBase* list) {
DCHECK(!m_nodeLists[list->invalidationType()].contains(list));
m_nodeLists[list->invalidationType()].add(list);
+ ScriptWrappableVisitor::writeBarrier(this, list);
if (list->isRootedAtTreeScope())
m_listsInvalidatedAtDocument.add(list);
}
@@ -3999,6 +4000,7 @@ void Document::unregisterNodeList(const LiveNodeListBase* list) {
void Document::registerNodeListWithIdNameCache(const LiveNodeListBase* list) {
DCHECK(!m_nodeLists[InvalidateOnIdNameAttrChange].contains(list));
m_nodeLists[InvalidateOnIdNameAttrChange].add(list);
+ ScriptWrappableVisitor::writeBarrier(this, list);
}
void Document::unregisterNodeListWithIdNameCache(const LiveNodeListBase* list) {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/NodeListsNodeData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698