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

Unified Diff: Source/core/dom/ElementData.h

Issue 947393002: InlinedVisitor: Migrate dom to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
Index: Source/core/dom/ElementData.h
diff --git a/Source/core/dom/ElementData.h b/Source/core/dom/ElementData.h
index 407d55edd6e9e9408785db61367bdf8d4444a652..1e3d9427a9c3d55a0cc25ec814e8027c3f07ba52 100644
--- a/Source/core/dom/ElementData.h
+++ b/Source/core/dom/ElementData.h
@@ -79,8 +79,8 @@ public:
bool isUnique() const { return m_isUnique; }
- void traceAfterDispatch(Visitor*);
- void trace(Visitor*);
+ DECLARE_TRACE_AFTER_DISPATCH();
haraken 2015/02/24 09:18:36 Add a comment on why we need traceAfterDispatch.
+ DECLARE_TRACE();
protected:
ElementData();
@@ -132,7 +132,7 @@ public:
explicit ShareableElementData(const UniqueElementData&);
~ShareableElementData();
- void traceAfterDispatch(Visitor* visitor) { ElementData::traceAfterDispatch(visitor); }
+ DEFINE_INLINE_TRACE_AFTER_DISPATCH() { ElementData::traceAfterDispatch(visitor); }
// Add support for placement new as ShareableElementData is not allocated
// with a fixed size. Instead the allocated memory size is computed based on
@@ -173,7 +173,7 @@ public:
explicit UniqueElementData(const ShareableElementData&);
explicit UniqueElementData(const UniqueElementData&);
- void traceAfterDispatch(Visitor*);
+ DECLARE_TRACE_AFTER_DISPATCH();
// FIXME: We might want to support sharing element data for elements with
// presentation attribute style. Lots of table cells likely have the same

Powered by Google App Engine
This is Rietveld 408576698