summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/events/KeyboardEvent.cpp')
-rw-r--r--chromium/third_party/WebKit/Source/core/events/KeyboardEvent.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/chromium/third_party/WebKit/Source/core/events/KeyboardEvent.cpp b/chromium/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
index c03712edadd..a529f490977 100644
--- a/chromium/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
+++ b/chromium/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
@@ -23,7 +23,6 @@
#include "config.h"
#include "core/events/KeyboardEvent.h"
-#include "core/events/ThreadLocalEventNames.h"
#include "platform/PlatformKeyboardEvent.h"
#include "platform/WindowsKeyboardCodes.h"
@@ -217,21 +216,17 @@ int KeyboardEvent::which() const
return keyCode();
}
-KeyboardEvent* findKeyboardEvent(Event* event)
+void KeyboardEvent::trace(Visitor* visitor)
{
- for (Event* e = event; e; e = e->underlyingEvent()) {
- if (e->isKeyboardEvent())
- return toKeyboardEvent(e);
- }
- return 0;
+ UIEventWithKeyState::trace(visitor);
}
-PassRefPtr<KeyboardEventDispatchMediator> KeyboardEventDispatchMediator::create(PassRefPtr<KeyboardEvent> event)
+PassRefPtrWillBeRawPtr<KeyboardEventDispatchMediator> KeyboardEventDispatchMediator::create(PassRefPtrWillBeRawPtr<KeyboardEvent> event)
{
- return adoptRef(new KeyboardEventDispatchMediator(event));
+ return adoptRefWillBeNoop(new KeyboardEventDispatchMediator(event));
}
-KeyboardEventDispatchMediator::KeyboardEventDispatchMediator(PassRefPtr<KeyboardEvent> event)
+KeyboardEventDispatchMediator::KeyboardEventDispatchMediator(PassRefPtrWillBeRawPtr<KeyboardEvent> event)
: EventDispatchMediator(event)
{
}