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

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

Issue 938283002: InlinedTracing: migrate RangeBoundaryPoint.h manually 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/RangeBoundaryPoint.h
diff --git a/Source/core/dom/RangeBoundaryPoint.h b/Source/core/dom/RangeBoundaryPoint.h
index b458c7110583c997f2e8c1d343ed2da1fd8e4514..f1d54b02b8c1562163be1e98f095c1471347c3fa 100644
--- a/Source/core/dom/RangeBoundaryPoint.h
+++ b/Source/core/dom/RangeBoundaryPoint.h
@@ -58,7 +58,11 @@ public:
void invalidateOffset() const;
void ensureOffsetIsValid() const;
- void trace(Visitor*);
+ DEFINE_INLINE_TRACE()
+ {
+ visitor->trace(m_containerNode);
+ visitor->trace(m_childBeforeBoundary);
+ }
private:
static const int invalidOffset = -1;
@@ -182,12 +186,6 @@ inline void RangeBoundaryPoint::invalidateOffset() const
m_offsetInContainer = invalidOffset;
}
-inline void RangeBoundaryPoint::trace(Visitor* visitor)
-{
- visitor->trace(m_containerNode);
- visitor->trace(m_childBeforeBoundary);
-}
-
inline bool operator==(const RangeBoundaryPoint& a, const RangeBoundaryPoint& b)
{
if (a.container() != b.container())
« 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