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

Unified Diff: third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.h

Issue 1389333003: Do not keep InvalidationSets on the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/invalidation/StyleInvalidator.h
diff --git a/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.h b/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.h
index 477be9d513344669ee556f639aba13f64e13eaa5..db4a10fc8ac59c823deef4a039b0a67c18121fa2 100644
--- a/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.h
+++ b/third_party/WebKit/Source/core/css/invalidation/StyleInvalidator.h
@@ -21,7 +21,7 @@ public:
StyleInvalidator();
~StyleInvalidator();
void invalidate(Document&);
- void scheduleInvalidation(PassRefPtrWillBeRawPtr<InvalidationSet>, Element&);
+ void scheduleInvalidation(PassRefPtr<InvalidationSet>, Element&);
void clearInvalidation(Element&);
void clearPendingInvalidations();
@@ -87,8 +87,8 @@ private:
RecursionData* m_data;
};
- using InvalidationList = WillBeHeapVector<RefPtrWillBeMember<InvalidationSet>>;
- using PendingInvalidationMap = WillBeHeapHashMap<RawPtrWillBeMember<Element>, OwnPtrWillBeMember<InvalidationList>>;
+ using InvalidationList = Vector<RefPtr<InvalidationSet>>;
+ using PendingInvalidationMap = WillBeHeapHashMap<RawPtrWillBeMember<Element>, OwnPtr<InvalidationList>>;
InvalidationList& ensurePendingInvalidationList(Element&);

Powered by Google App Engine
This is Rietveld 408576698