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

Side by Side Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 2452703003: Revert of [wrapper-tracing] Another write barrier Node EventTargetData (Closed)
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * 10 *
(...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after
1879 return hasEventTargetData() ? eventTargetDataMap().get(this) : nullptr; 1879 return hasEventTargetData() ? eventTargetDataMap().get(this) : nullptr;
1880 } 1880 }
1881 1881
1882 EventTargetData& Node::ensureEventTargetData() { 1882 EventTargetData& Node::ensureEventTargetData() {
1883 if (hasEventTargetData()) 1883 if (hasEventTargetData())
1884 return *eventTargetDataMap().get(this); 1884 return *eventTargetDataMap().get(this);
1885 DCHECK(!eventTargetDataMap().contains(this)); 1885 DCHECK(!eventTargetDataMap().contains(this));
1886 setHasEventTargetData(true); 1886 setHasEventTargetData(true);
1887 EventTargetData* data = new EventTargetData; 1887 EventTargetData* data = new EventTargetData;
1888 eventTargetDataMap().set(this, data); 1888 eventTargetDataMap().set(this, data);
1889 ScriptWrappableVisitor::writeBarrier(this, data);
1890 return *data; 1889 return *data;
1891 } 1890 }
1892 1891
1893 HeapVector<TraceWrapperMember<MutationObserverRegistration>>* 1892 HeapVector<TraceWrapperMember<MutationObserverRegistration>>*
1894 Node::mutationObserverRegistry() { 1893 Node::mutationObserverRegistry() {
1895 if (!hasRareData()) 1894 if (!hasRareData())
1896 return nullptr; 1895 return nullptr;
1897 NodeMutationObserverData* data = rareData()->mutationObserverData(); 1896 NodeMutationObserverData* data = rareData()->mutationObserverData();
1898 if (!data) 1897 if (!data)
1899 return nullptr; 1898 return nullptr;
(...skipping 569 matching lines...) Expand 10 before | Expand all | Expand 10 after
2469 if (node) { 2468 if (node) {
2470 std::stringstream stream; 2469 std::stringstream stream;
2471 node->printNodePathTo(stream); 2470 node->printNodePathTo(stream);
2472 LOG(INFO) << stream.str(); 2471 LOG(INFO) << stream.str();
2473 } else { 2472 } else {
2474 LOG(INFO) << "Cannot showNodePath for <null>"; 2473 LOG(INFO) << "Cannot showNodePath for <null>";
2475 } 2474 }
2476 } 2475 }
2477 2476
2478 #endif 2477 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698