| Index: Source/core/page/EventHandler.cpp
|
| diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
|
| index 3551c07c7aabebba2e1a4930ec54a72f0828ca82..7d7847b8341fb306a04dcfb980e07d5eb41f33e8 100644
|
| --- a/Source/core/page/EventHandler.cpp
|
| +++ b/Source/core/page/EventHandler.cpp
|
| @@ -36,7 +36,6 @@
|
| #include "core/clipboard/DataTransfer.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/DocumentMarkerController.h"
|
| -#include "core/dom/Fullscreen.h"
|
| #include "core/dom/NodeRenderingTraversal.h"
|
| #include "core/dom/TouchList.h"
|
| #include "core/dom/shadow/ShadowRoot.h"
|
| @@ -2975,37 +2974,10 @@ bool EventHandler::handleAccessKey(const PlatformKeyboardEvent& evt)
|
| return true;
|
| }
|
|
|
| -bool EventHandler::isKeyEventAllowedInFullScreen(Fullscreen* fullscreen, const PlatformKeyboardEvent& keyEvent) const
|
| -{
|
| - if (fullscreen->webkitFullScreenKeyboardInputAllowed())
|
| - return true;
|
| -
|
| - if (keyEvent.type() == PlatformKeyboardEvent::Char) {
|
| - if (keyEvent.text().length() != 1)
|
| - return false;
|
| - UChar character = keyEvent.text()[0];
|
| - return character == ' ';
|
| - }
|
| -
|
| - int keyCode = keyEvent.windowsVirtualKeyCode();
|
| - return (keyCode >= VK_BACK && keyCode <= VK_CAPITAL)
|
| - || (keyCode >= VK_SPACE && keyCode <= VK_DELETE)
|
| - || (keyCode >= VK_OEM_1 && keyCode <= VK_OEM_PLUS)
|
| - || (keyCode >= VK_MULTIPLY && keyCode <= VK_OEM_8);
|
| -}
|
| -
|
| bool EventHandler::keyEvent(const PlatformKeyboardEvent& initialKeyEvent)
|
| {
|
| RefPtrWillBeRawPtr<FrameView> protector(m_frame->view());
|
|
|
| - ASSERT(m_frame->document());
|
| - if (Fullscreen* fullscreen = Fullscreen::fromIfExists(*m_frame->document())) {
|
| - if (fullscreen->webkitCurrentFullScreenElement() && !isKeyEventAllowedInFullScreen(fullscreen, initialKeyEvent)) {
|
| - UseCounter::count(*m_frame->document(), UseCounter::KeyEventNotAllowedInFullScreen);
|
| - return false;
|
| - }
|
| - }
|
| -
|
| if (initialKeyEvent.windowsVirtualKeyCode() == VK_CAPITAL)
|
| capsLockStateMayHaveChanged();
|
|
|
|
|