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

Unified Diff: Source/core/dom/MutationObserver.h

Issue 1148383012: Oilpan: prefer eager finalization over prefinalizers. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
Index: Source/core/dom/MutationObserver.h
diff --git a/Source/core/dom/MutationObserver.h b/Source/core/dom/MutationObserver.h
index 157ce4ca869985ad9e0abf3d62bccfdc183425aa..c38d34acca700210c2660910c58e88164bd4da54 100644
--- a/Source/core/dom/MutationObserver.h
+++ b/Source/core/dom/MutationObserver.h
@@ -60,7 +60,6 @@ using MutationRecordVector = WillBeHeapVector<RefPtrWillBeMember<MutationRecord>
class MutationObserver final : public RefCountedWillBeGarbageCollectedFinalized<MutationObserver>, public ScriptWrappable {
DEFINE_WRAPPERTYPEINFO();
- WILL_BE_USING_PRE_FINALIZER(MutationObserver, dispose);
public:
enum MutationType {
ChildList = 1 << 0,
@@ -96,6 +95,7 @@ public:
WillBeHeapHashSet<RawPtrWillBeMember<Node>> getObservedNodes() const;
+ EAGERLY_FINALIZE();
haraken 2015/06/04 01:02:31 Add a comment on why we want to eagerly finalize?
sof 2015/06/04 07:54:39 Added. (I couldn't come up with anything meaningfu
DECLARE_TRACE();
private:
@@ -105,8 +105,6 @@ private:
void deliver();
bool shouldBeSuspended() const;
- void dispose();
-
OwnPtrWillBeMember<MutationCallback> m_callback;
MutationRecordVector m_records;
MutationObserverRegistrationSet m_registrations;

Powered by Google App Engine
This is Rietveld 408576698