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

Unified Diff: Source/core/page/SpatialNavigation.cpp

Issue 22847002: Fix for crash occuring when spatial navigation is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Further fixes in test Created 7 years, 4 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
« no previous file with comments | « LayoutTests/fast/spatial-navigation/snav-date-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/SpatialNavigation.cpp
diff --git a/Source/core/page/SpatialNavigation.cpp b/Source/core/page/SpatialNavigation.cpp
index cb014f916c282beaef9813d6078bd17a04fbcadd..7e62a60271dd9970cc2f16e692814cd5c3dee36c 100644
--- a/Source/core/page/SpatialNavigation.cpp
+++ b/Source/core/page/SpatialNavigation.cpp
@@ -439,7 +439,7 @@ Node* scrollableEnclosingBoxOrParentFrameForNodeInDirection(FocusDirection direc
if (parent->isDocumentNode())
parent = toDocument(parent)->document()->frame()->ownerElement();
else
- parent = parent->parentNode();
+ parent = parent->parentOrShadowHostNode();
} while (parent && !canScrollInDirection(parent, direction) && !parent->isDocumentNode());
return parent;
« no previous file with comments | « LayoutTests/fast/spatial-navigation/snav-date-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698