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()); |