diff options
Diffstat (limited to 'WebCore/page/SpatialNavigation.cpp')
-rw-r--r-- | WebCore/page/SpatialNavigation.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/WebCore/page/SpatialNavigation.cpp b/WebCore/page/SpatialNavigation.cpp index 40aa52b..a42435f 100644 --- a/WebCore/page/SpatialNavigation.cpp +++ b/WebCore/page/SpatialNavigation.cpp @@ -35,8 +35,9 @@ #include "HTMLFrameOwnerElement.h" #include "IntRect.h" #include "Node.h" -#include "RenderLayer.h" #include "Page.h" +#include "RenderLayer.h" +#include "Settings.h" namespace WebCore { @@ -49,6 +50,11 @@ static bool isRectInDirection(FocusDirection, const IntRect&, const IntRect&); static void deflateIfOverlapped(IntRect&, IntRect&); static bool checkNegativeCoordsForNode(Node*, const IntRect&); +bool isSpatialNavigationEnabled(const Frame* frame) +{ + return (frame && frame->settings() && frame->settings()->isSpatialNavigationEnabled()); +} + void distanceDataForNode(FocusDirection direction, Node* start, FocusCandidate& candidate) { RenderObject* startRender = start->renderer(); |