| Index: Source/core/page/SpatialNavigation.cpp
|
| diff --git a/Source/core/page/SpatialNavigation.cpp b/Source/core/page/SpatialNavigation.cpp
|
| index a4915b1aabccdeb86fa6cee25ca23058149767dd..012407c22cdb4d1544c5fcb19ab4b90de7546075 100644
|
| --- a/Source/core/page/SpatialNavigation.cpp
|
| +++ b/Source/core/page/SpatialNavigation.cpp
|
| @@ -500,10 +500,10 @@ static LayoutRect rectToAbsoluteCoordinates(LocalFrame* initialFrame, const Layo
|
| if (!frame->isLocalFrame())
|
| continue;
|
| // FIXME: Spatial navigation is broken for OOPI.
|
| - if (Element* element = frame->deprecatedLocalOwner()) {
|
| - do {
|
| + Element* element = frame->deprecatedLocalOwner();
|
| + if (element) {
|
| + for (; element; element = element->offsetParent())
|
| rect.move(element->offsetLeft(), element->offsetTop());
|
| - } while ((element = element->offsetParent()));
|
| rect.move((-toLocalFrame(frame)->view()->scrollOffset()));
|
| }
|
| }
|
|
|