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

Unified Diff: Source/core/dom/Document.cpp

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (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 | « Source/core/dom/Document.h ('k') | Source/core/events/AutocompleteErrorEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 9deea3efe9cbfa5420230d415cda3d00c81d4cd2..9cd3a9f7679d3c1801f958ac83661fa97b265316 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -3731,9 +3731,9 @@ void Document::enqueueResizeEvent()
ensureScriptedAnimationController().enqueuePerFrameEvent(event.release());
}
-PassRefPtr<Event> Document::createEvent(const String& eventType, ExceptionState& exceptionState)
+PassRefPtrWillBeRawPtr<Event> Document::createEvent(const String& eventType, ExceptionState& exceptionState)
{
- RefPtr<Event> event = EventFactory::create(eventType);
+ RefPtrWillBeRawPtr<Event> event = EventFactory::create(eventType);
if (event)
return event.release();
@@ -3741,7 +3741,7 @@ PassRefPtr<Event> Document::createEvent(const String& eventType, ExceptionState&
return nullptr;
}
-PassRefPtr<Event> Document::createEvent(ExceptionState& exceptionState)
+PassRefPtrWillBeRawPtr<Event> Document::createEvent(ExceptionState& exceptionState)
{
if (!isSVGDocument()) {
exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, 0));
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/events/AutocompleteErrorEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698