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

Unified Diff: Source/core/css/ElementRuleCollector.h

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/ElementRuleCollector.h
diff --git a/Source/core/css/ElementRuleCollector.h b/Source/core/css/ElementRuleCollector.h
index db21c4b7f6303f199e2a2e573a2b085359f2c7b6..c3199498ee862bf907f53535f575f19c9f9be320 100644
--- a/Source/core/css/ElementRuleCollector.h
+++ b/Source/core/css/ElementRuleCollector.h
@@ -61,7 +61,7 @@ public:
uint64_t position() const { return m_position; }
unsigned specificity() const { return ruleData()->specificity() + m_specificity; }
const CSSStyleSheet* parentStyleSheet() const { return m_parentStyleSheet; }
- void trace(Visitor* visitor)
+ DEFINE_INLINE_TRACE()
{
visitor->trace(m_parentStyleSheet);
}
@@ -88,7 +88,7 @@ class StyleRuleList final : public RefCountedWillBeGarbageCollected<StyleRuleLis
public:
static PassRefPtrWillBeRawPtr<StyleRuleList> create() { return adoptRefWillBeNoop(new StyleRuleList()); }
- void trace(Visitor* visitor)
+ DEFINE_INLINE_TRACE()
{
#if ENABLE(OILPAN)
visitor->trace(m_list);

Powered by Google App Engine
This is Rietveld 408576698