Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(726)

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 1919813002: Implementation of CSS3 nav-up/down/left/right properties from CSS3 UI Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index b403fece842dd9db1936cd69c995f145a588a97b..277aca1214115f0d87252b98a50305dd9b099405 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -2,6 +2,8 @@
* Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
* Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org)
* Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies)
+ * Copyright (C) 2014 Opera Software ASA. All rights reserved.
+ * Copyright (C) 2016 Samsung Electronics. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -3468,6 +3470,11 @@ void EventHandler::defaultArrowEventHandler(WebFocusType focusType, KeyboardEven
if (m_frame->document()->inDesignMode())
return;
+ if (page->focusController().advanceCSSNavigationFocus(focusType)) {
+ event->setDefaultHandled();
+ return;
+ }
+
if (page->focusController().advanceFocus(focusType))
event->setDefaultHandled();
}

Powered by Google App Engine
This is Rietveld 408576698