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

Unified Diff: Source/web/tests/CustomEventTest.cpp

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/modules/websockets/CloseEvent.h ('k') | Source/wtf/GetPtr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/CustomEventTest.cpp
diff --git a/Source/web/tests/CustomEventTest.cpp b/Source/web/tests/CustomEventTest.cpp
index a71ab41a542367526a00d28c414322e0cd40621b..bcedb2fc1bd453fdd98fd54cd3f0bb93791d0aa6 100644
--- a/Source/web/tests/CustomEventTest.cpp
+++ b/Source/web/tests/CustomEventTest.cpp
@@ -105,7 +105,8 @@ TEST(CustomEventTest, InitWithSerializedScriptValue)
FrameTestHelpers::WebViewHelper webViewHelper;
WebFrameImpl* frame = toWebFrameImpl(webViewHelper.initializeAndLoad(baseURL + path)->mainFrame());
- WebDOMEvent event = frame->frame()->document()->createEvent("CustomEvent", IGNORE_EXCEPTION);
+ // FIXME: oilpan: Remove PassRefPtr<Event>() once we support PassRefPtrWillBeRawPtr in WebDOMEvent.
+ WebDOMEvent event = PassRefPtr<Event>(frame->frame()->document()->createEvent("CustomEvent", IGNORE_EXCEPTION));
WebDOMCustomEvent customEvent = event.to<WebDOMCustomEvent>();
v8::Isolate* isolate = toIsolate(frame->frame());
« no previous file with comments | « Source/modules/websockets/CloseEvent.h ('k') | Source/wtf/GetPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698