Index: Source/web/tests/CustomEventTest.cpp |
diff --git a/Source/web/tests/CustomEventTest.cpp b/Source/web/tests/CustomEventTest.cpp |
index c979c82a6d2f5a9abf7c483014b0d2e220cb2092..1d617be70bcdabb27024c993dac3ad2ee932560b 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. |
tkent
2014/02/28 00:59:48
Why don't you use PassRefPtrWillBeRawPtr in WebDOM
haraken
2014/02/28 01:10:03
WebDOMEvent has its own hierarchy, so using PassRe
tkent
2014/02/28 01:13:36
It makes sense. lgtm
|
+ WebDOMEvent event = PassRefPtr<Event>(frame->frame()->document()->createEvent("CustomEvent", IGNORE_EXCEPTION)); |
WebDOMCustomEvent customEvent = event.to<WebDOMCustomEvent>(); |
v8::Isolate* isolate = toIsolate(frame->frame()); |