| Index: Source/core/dom/KeyboardEvent.h
|
| diff --git a/Source/core/dom/KeyboardEvent.h b/Source/core/dom/KeyboardEvent.h
|
| index 1900174aa7f5dcc608cbb6eb08311275bb10ee7a..f16d805c0e477ea1abc494b63efc43763438ea41 100644
|
| --- a/Source/core/dom/KeyboardEvent.h
|
| +++ b/Source/core/dom/KeyboardEvent.h
|
| @@ -123,6 +123,12 @@ private:
|
| virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE;
|
| };
|
|
|
| +inline KeyboardEvent* toKeyboardEvent(Event* event)
|
| +{
|
| + ASSERT_WITH_SECURITY_IMPLICATION(!event || event->isKeyboardEvent());
|
| + return static_cast<KeyboardEvent*>(event);
|
| +}
|
| +
|
| } // namespace WebCore
|
|
|
| #endif // KeyboardEvent_h
|
|
|