| Index: third_party/WebKit/Source/core/css/StyleRule.h
|
| diff --git a/third_party/WebKit/Source/core/css/StyleRule.h b/third_party/WebKit/Source/core/css/StyleRule.h
|
| index a631def8ef10ff48d9c2a63e066411b150f6c9f0..a37ca69b7a1494e1747fb5a2fde68ea19207f176 100644
|
| --- a/third_party/WebKit/Source/core/css/StyleRule.h
|
| +++ b/third_party/WebKit/Source/core/css/StyleRule.h
|
| @@ -79,6 +79,8 @@ public:
|
| PassRefPtrWillBeRawPtr<CSSRule> createCSSOMWrapper(CSSStyleSheet* parentSheet = 0) const;
|
| PassRefPtrWillBeRawPtr<CSSRule> createCSSOMWrapper(CSSRule* parentRule) const;
|
|
|
| + void purgeMemory();
|
| +
|
| DECLARE_TRACE();
|
| DEFINE_INLINE_TRACE_AFTER_DISPATCH() { }
|
| void finalizeGarbageCollectedObject();
|
| @@ -120,6 +122,8 @@ public:
|
|
|
| PassRefPtrWillBeRawPtr<StyleRule> copy() const { return adoptRefWillBeNoop(new StyleRule(*this)); }
|
|
|
| + void purgeMemory();
|
| +
|
| static unsigned averageSizeInBytes();
|
|
|
| DECLARE_TRACE_AFTER_DISPATCH();
|
| @@ -148,6 +152,8 @@ public:
|
|
|
| DECLARE_TRACE_AFTER_DISPATCH();
|
|
|
| + void purgeMemory();
|
| +
|
| private:
|
| StyleRuleFontFace(PassRefPtrWillBeRawPtr<StylePropertySet>);
|
| StyleRuleFontFace(const StyleRuleFontFace&);
|
| @@ -173,6 +179,8 @@ public:
|
|
|
| PassRefPtrWillBeRawPtr<StyleRulePage> copy() const { return adoptRefWillBeNoop(new StyleRulePage(*this)); }
|
|
|
| + void purgeMemory();
|
| +
|
| DECLARE_TRACE_AFTER_DISPATCH();
|
|
|
| private:
|
| @@ -192,6 +200,8 @@ public:
|
|
|
| DECLARE_TRACE_AFTER_DISPATCH();
|
|
|
| + void purgeMemory();
|
| +
|
| protected:
|
| StyleRuleGroup(Type, WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase>>& adoptRule);
|
| StyleRuleGroup(const StyleRuleGroup&);
|
| @@ -211,6 +221,8 @@ public:
|
|
|
| PassRefPtrWillBeRawPtr<StyleRuleMedia> copy() const { return adoptRefWillBeNoop(new StyleRuleMedia(*this)); }
|
|
|
| + void purgeMemory() { StyleRuleGroup::purgeMemory(); }
|
| +
|
| DECLARE_TRACE_AFTER_DISPATCH();
|
|
|
| private:
|
| @@ -233,6 +245,8 @@ public:
|
|
|
| DEFINE_INLINE_TRACE_AFTER_DISPATCH() { StyleRuleGroup::traceAfterDispatch(visitor); }
|
|
|
| + void purgeMemory() { StyleRuleGroup::purgeMemory(); }
|
| +
|
| private:
|
| StyleRuleSupports(const String& conditionText, bool conditionIsSupported, WillBeHeapVector<RefPtrWillBeMember<StyleRuleBase>>& adoptRules);
|
| StyleRuleSupports(const StyleRuleSupports&);
|
| @@ -255,6 +269,8 @@ public:
|
|
|
| PassRefPtrWillBeRawPtr<StyleRuleViewport> copy() const { return adoptRefWillBeNoop(new StyleRuleViewport(*this)); }
|
|
|
| + void purgeMemory();
|
| +
|
| DECLARE_TRACE_AFTER_DISPATCH();
|
|
|
| private:
|
| @@ -271,6 +287,8 @@ public:
|
| static PassRefPtrWillBeRawPtr<StyleRuleCharset> create() { return adoptRefWillBeNoop(new StyleRuleCharset()); }
|
| DEFINE_INLINE_TRACE_AFTER_DISPATCH() { StyleRuleBase::traceAfterDispatch(visitor); }
|
|
|
| + void purgeMemory() { }
|
| +
|
| private:
|
| StyleRuleCharset() : StyleRuleBase(Charset) { }
|
| };
|
|
|