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

Unified Diff: third_party/WebKit/Source/core/css/StyleRule.h

Issue 1658923004: PurgeMemory. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: 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) { }
};
« no previous file with comments | « third_party/WebKit/Source/core/css/StylePropertySet.cpp ('k') | third_party/WebKit/Source/core/css/StyleRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698