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

Unified Diff: Source/core/events/MutationEvent.h

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « Source/core/events/MouseEvent.cpp ('k') | Source/core/events/OverflowEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/MutationEvent.h
diff --git a/Source/core/events/MutationEvent.h b/Source/core/events/MutationEvent.h
index c86f2d1ae2117d63db53ef02861f475f3509b6bb..9e1d7d62a4a5f8861d7a061c796ea2625a075928 100644
--- a/Source/core/events/MutationEvent.h
+++ b/Source/core/events/MutationEvent.h
@@ -39,15 +39,15 @@ namespace WebCore {
REMOVAL = 3
};
- static PassRefPtr<MutationEvent> create()
+ static PassRefPtrWillBeRawPtr<MutationEvent> create()
{
- return adoptRef(new MutationEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new MutationEvent);
}
- static PassRefPtr<MutationEvent> create(const AtomicString& type, bool canBubble, PassRefPtr<Node> relatedNode = nullptr,
+ static PassRefPtrWillBeRawPtr<MutationEvent> create(const AtomicString& type, bool canBubble, PassRefPtr<Node> relatedNode = nullptr,
const String& prevValue = String(), const String& newValue = String(), const String& attrName = String(), unsigned short attrChange = 0)
{
- return adoptRef(new MutationEvent(type, canBubble, false, relatedNode, prevValue, newValue, attrName, attrChange));
+ return adoptRefWillBeRefCountedGarbageCollected(new MutationEvent(type, canBubble, false, relatedNode, prevValue, newValue, attrName, attrChange));
}
void initMutationEvent(const AtomicString& type, bool canBubble, bool cancelable, PassRefPtr<Node> relatedNode,
« no previous file with comments | « Source/core/events/MouseEvent.cpp ('k') | Source/core/events/OverflowEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698