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

Unified Diff: Source/core/css/StylePropertySet.cpp

Issue 953693002: InlinedVisitor: Migrate css 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/css/StylePropertySet.cpp
diff --git a/Source/core/css/StylePropertySet.cpp b/Source/core/css/StylePropertySet.cpp
index 1a62c47df359edd419663155c0088d44d0a6248b..2b56fd9766d4390e59d5707f1d694a5461c4ebf8 100644
--- a/Source/core/css/StylePropertySet.cpp
+++ b/Source/core/css/StylePropertySet.cpp
@@ -119,7 +119,7 @@ int ImmutableStylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const
return -1;
}
-void ImmutableStylePropertySet::traceAfterDispatch(Visitor* visitor)
+DEFINE_TRACE_AFTER_DISPATCH(ImmutableStylePropertySet)
{
const RawPtrWillBeMember<CSSValue>* values = valueArray();
for (unsigned i = 0; i < m_arraySize; i++)
@@ -156,7 +156,7 @@ PassRefPtrWillBeRawPtr<CSSValue> StylePropertySet::getPropertyCSSValue(CSSProper
return propertyAt(foundPropertyIndex).value();
}
-void StylePropertySet::trace(Visitor* visitor)
+DEFINE_TRACE(StylePropertySet)
{
if (m_isMutable)
toMutableStylePropertySet(this)->traceAfterDispatch(visitor);
@@ -560,7 +560,7 @@ int MutableStylePropertySet::findPropertyIndex(CSSPropertyID propertyID) const
return -1;
}
-void MutableStylePropertySet::traceAfterDispatch(Visitor* visitor)
+DEFINE_TRACE_AFTER_DISPATCH(MutableStylePropertySet)
{
visitor->trace(m_cssomWrapper);
visitor->trace(m_propertyVector);

Powered by Google App Engine
This is Rietveld 408576698