Index: Source/core/page/SpatialNavigation.cpp |
diff --git a/Source/core/page/SpatialNavigation.cpp b/Source/core/page/SpatialNavigation.cpp |
index 895c4561ba333c9eb9465e8d443fee99fe0fb271..53e569a3a0321708af641513f92cb1b20a6169a4 100644 |
--- a/Source/core/page/SpatialNavigation.cpp |
+++ b/Source/core/page/SpatialNavigation.cpp |
@@ -690,7 +690,7 @@ void distanceDataForNode(FocusType type, const FocusCandidate& current, FocusCan |
// Distance calculation is based on http://www.w3.org/TR/WICD/#focus-handling |
candidate.distance = sqrt(euclidianDistancePow2) + navigationAxisDistance+ orthogonalAxisDistance * 2 - sqrt(overlap); |
- LayoutSize viewSize = candidate.visibleNode->document().page()->mainFrame()->view()->visibleContentRect().size(); |
+ LayoutSize viewSize = candidate.visibleNode->document().page()->deprecatedLocalMainFrame()->view()->visibleContentRect().size(); |
candidate.alignment = alignmentForRects(type, currentRect, nodeRect, viewSize); |
} |