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

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

Issue 180003002: Consistently use on-heap collections for StyleRuleBase descendants. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
« no previous file with comments | « no previous file | Source/core/css/PageRuleCollector.h » ('j') | Source/core/css/PageRuleCollector.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/ElementRuleCollector.h
diff --git a/Source/core/css/ElementRuleCollector.h b/Source/core/css/ElementRuleCollector.h
index dbab0feef00be3b72494b140e7f6b72d588ab131..42dac8d81436362d2937fc6d4a0a3a2e93b765e9 100644
--- a/Source/core/css/ElementRuleCollector.h
+++ b/Source/core/css/ElementRuleCollector.h
@@ -75,10 +75,11 @@ private:
const CSSStyleSheet* m_parentStyleSheet;
};
+// FIXME: when transition types are gone this class can be replaced with HeapVector.
haraken 2014/02/26 02:20:13 FIXME: oilpan:
Vyacheslav Egorov (Chromium) 2014/02/26 13:12:24 Done.
class StyleRuleList : public RefCounted<StyleRuleList> {
public:
static PassRefPtr<StyleRuleList> create() { return adoptRef(new StyleRuleList()); }
- Vector<StyleRule*> m_list;
+ WillBePersistentHeapVector<StyleRule*> m_list;
haraken 2014/02/26 02:20:13 This should be WillBePersistentHeapVector<RawPtrWi
haraken 2014/02/26 02:20:13 Are you sure that this won't produce memory leaks?
Erik Corry 2014/02/26 13:01:28 If the StyleRule stays raw, then it will not leak
Vyacheslav Egorov (Chromium) 2014/02/26 13:12:24 Right thanks. I really don't like verbosity of the
};
// ElementRuleCollector is designed to be used as a stack object.
« no previous file with comments | « no previous file | Source/core/css/PageRuleCollector.h » ('j') | Source/core/css/PageRuleCollector.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698