| Index: Source/core/page/SpatialNavigation.cpp
|
| diff --git a/Source/core/page/SpatialNavigation.cpp b/Source/core/page/SpatialNavigation.cpp
|
| index 895c4561ba333c9eb9465e8d443fee99fe0fb271..2f5b4083c1d8a6a24ac05d2bab0ab127839fc097 100644
|
| --- a/Source/core/page/SpatialNavigation.cpp
|
| +++ b/Source/core/page/SpatialNavigation.cpp
|
| @@ -690,7 +690,8 @@ 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();
|
| + // FIXME: Doesn't work with OOPI.
|
| + LayoutSize viewSize = toLocalFrame(candidate.visibleNode->document().page()->mainFrame())->view()->visibleContentRect().size();
|
| candidate.alignment = alignmentForRects(type, currentRect, nodeRect, viewSize);
|
| }
|
|
|
|
|