Index: Source/core/page/FocusController.cpp |
diff --git a/Source/core/page/FocusController.cpp b/Source/core/page/FocusController.cpp |
index 5a24e5e3495ff26a5d3f10c5e957fd57a488ff15..e595789d202ce61f9f4ef7f69d2e7948a475038a 100644 |
--- a/Source/core/page/FocusController.cpp |
+++ b/Source/core/page/FocusController.cpp |
@@ -546,7 +546,8 @@ static Node* nextNodeWithGreaterTabIndex(Node* start, int tabIndex) |
int winningTabIndex = std::numeric_limits<short>::max() + 1; |
Node* winner = nullptr; |
for (Node& node : NodeTraversal::startsAt(start)) { |
- if (shouldVisit(&node) && node.tabIndex() > tabIndex && node.tabIndex() < winningTabIndex) { |
+ int currentTabIndex = adjustedTabIndex(&node); |
+ if (shouldVisit(&node) && currentTabIndex > tabIndex && currentTabIndex < winningTabIndex) { |
winner = &node; |
winningTabIndex = node.tabIndex(); |
kochi
2014/11/05 17:33:48
Why this isn't currentTabIndex?
tkent
2014/11/05 23:24:00
I think |currentTabIndex| and |node.tabIndex()| ar
|
} |