| Index: third_party/WebKit/Source/core/events/KeyboardEvent.cpp
|
| diff --git a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
|
| index 03975fd5c0e8ab23ed6d61a04db2c2d41d5bac03..a78f873303c875cb767da5f43d24b970a6bb13f9 100644
|
| --- a/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
|
| +++ b/third_party/WebKit/Source/core/events/KeyboardEvent.cpp
|
| @@ -54,11 +54,11 @@ const AtomicString& eventTypeForKeyboardEventType(WebInputEvent::Type type) {
|
| }
|
|
|
| KeyboardEvent::KeyLocationCode keyLocationCode(const WebInputEvent& key) {
|
| - if (key.modifiers & WebInputEvent::IsKeyPad)
|
| + if (key.modifiers() & WebInputEvent::IsKeyPad)
|
| return KeyboardEvent::kDomKeyLocationNumpad;
|
| - if (key.modifiers & WebInputEvent::IsLeft)
|
| + if (key.modifiers() & WebInputEvent::IsLeft)
|
| return KeyboardEvent::kDomKeyLocationLeft;
|
| - if (key.modifiers & WebInputEvent::IsRight)
|
| + if (key.modifiers() & WebInputEvent::IsRight)
|
| return KeyboardEvent::kDomKeyLocationRight;
|
| return KeyboardEvent::kDomKeyLocationStandard;
|
| }
|
| @@ -89,13 +89,13 @@ KeyboardEvent::KeyboardEvent() : m_location(kDomKeyLocationStandard) {}
|
| KeyboardEvent::KeyboardEvent(const WebKeyboardEvent& key,
|
| LocalDOMWindow* domWindow)
|
| : UIEventWithKeyState(
|
| - eventTypeForKeyboardEventType(key.type),
|
| + eventTypeForKeyboardEventType(key.type()),
|
| true,
|
| true,
|
| domWindow,
|
| 0,
|
| - static_cast<PlatformEvent::Modifiers>(key.modifiers),
|
| - key.timeStampSeconds,
|
| + static_cast<PlatformEvent::Modifiers>(key.modifiers()),
|
| + key.timeStampSeconds(),
|
| InputDeviceCapabilities::doesntFireTouchEventsSourceCapabilities()),
|
| m_keyEvent(WTF::makeUnique<WebKeyboardEvent>(key)),
|
| // TODO(crbug.com/482880): Fix this initialization to lazy initialization.
|
|
|