summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/events/UIEvent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/events/UIEvent.cpp')
-rw-r--r--chromium/third_party/WebKit/Source/core/events/UIEvent.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/chromium/third_party/WebKit/Source/core/events/UIEvent.cpp b/chromium/third_party/WebKit/Source/core/events/UIEvent.cpp
index 6a0db63dac8..ba85c8185a8 100644
--- a/chromium/third_party/WebKit/Source/core/events/UIEvent.cpp
+++ b/chromium/third_party/WebKit/Source/core/events/UIEvent.cpp
@@ -27,7 +27,7 @@
namespace WebCore {
UIEventInit::UIEventInit()
- : view(0)
+ : view(nullptr)
, detail(0)
{
}
@@ -38,7 +38,7 @@ UIEvent::UIEvent()
ScriptWrappable::init(this);
}
-UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, PassRefPtr<AbstractView> viewArg, int detailArg)
+UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg)
: Event(eventType, canBubbleArg, cancelableArg)
, m_view(viewArg)
, m_detail(detailArg)
@@ -58,7 +58,7 @@ UIEvent::~UIEvent()
{
}
-void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool cancelableArg, PassRefPtr<AbstractView> viewArg, int detailArg)
+void UIEvent::initUIEvent(const AtomicString& typeArg, bool canBubbleArg, bool cancelableArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg)
{
if (dispatched())
return;
@@ -114,4 +114,10 @@ int UIEvent::which() const
return 0;
}
+void UIEvent::trace(Visitor* visitor)
+{
+ visitor->trace(m_view);
+ Event::trace(visitor);
+}
+
} // namespace WebCore