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

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

Issue 2883003002: Allocate CSSGlobalRuleSet on heap. (Closed)
Patch Set: Created 3 years, 7 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 | third_party/WebKit/Source/core/dom/StyleEngine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSGlobalRuleSet.h
diff --git a/third_party/WebKit/Source/core/css/CSSGlobalRuleSet.h b/third_party/WebKit/Source/core/css/CSSGlobalRuleSet.h
index 9f46dab66beeb788bf58781de8f5ca4a8f2cd4d4..204c2a3f1d4218870f3a54673cef304082df56ed 100644
--- a/third_party/WebKit/Source/core/css/CSSGlobalRuleSet.h
+++ b/third_party/WebKit/Source/core/css/CSSGlobalRuleSet.h
@@ -21,12 +21,11 @@ class RuleSet;
// to the ScopedStyleResolver as possible to avoid full reconstruction of these
// rulesets on shadow tree changes. See https://crbug.com/401359
-class CSSGlobalRuleSet {
- DISALLOW_NEW();
+class CSSGlobalRuleSet : public GarbageCollectedFinalized<CSSGlobalRuleSet> {
WTF_MAKE_NONCOPYABLE(CSSGlobalRuleSet);
public:
- CSSGlobalRuleSet() {}
+ static CSSGlobalRuleSet* Create() { return new CSSGlobalRuleSet(); }
void Dispose();
void InitWatchedSelectorsRuleSet(Document&);
@@ -50,6 +49,7 @@ class CSSGlobalRuleSet {
DECLARE_TRACE();
private:
+ CSSGlobalRuleSet() {}
// Constructed from rules in all TreeScopes including UA style and style
// injected from extensions.
RuleFeatureSet features_;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/StyleEngine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698