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

Unified Diff: Source/core/dom/Element.cpp

Issue 783513003: Consistently use isSpatialNavigationEnabled(...) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 73c0dd8b4d1f2937092fec0007f838441ba746bc..3118dcba727bc0a98833d52955044aee37c9d040 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -107,6 +107,7 @@
#include "core/page/FocusController.h"
#include "core/page/Page.h"
#include "core/page/PointerLockController.h"
+#include "core/page/SpatialNavigation.h"
#include "core/rendering/RenderLayer.h"
#include "core/rendering/RenderTextFragment.h"
#include "core/rendering/RenderView.h"
@@ -2117,7 +2118,7 @@ bool Element::supportsSpatialNavigationFocus() const
// This is the way to make it possible to navigate to (focus) elements
// which web designer meant for being active (made them respond to click events).
- if (!document().settings() || !document().settings()->spatialNavigationEnabled())
+ if (!isSpatialNavigationEnabled(document().frame()))
return false;
if (hasEventListeners(EventTypeNames::click)
|| hasEventListeners(EventTypeNames::keydown)
« no previous file with comments | « no previous file | Source/core/html/HTMLElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698