Chromium Code Reviews| 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. |