Switch over the Mac-specific uses of viewportToContents/contentsToViewport.
[WebKit-https.git] / WebCore / bridge / mac / WebCoreFrameBridge.mm
index ef9e18533b0fa7ce953975ee64e67874e2e7aa18..17774f7d24d2988f16778433b5eb74435a08f8b5 100644 (file)
@@ -2071,7 +2071,7 @@ static HTMLFormElement *formElementFromDOMElement(DOMElement *element)
         return VisiblePosition();
     FrameView* outerView = m_frame->view();
     FrameView* innerView = node->document()->view();
-    IntPoint innerPoint = innerView->viewportToContents(outerView->contentsToViewport(outerPoint));
+    IntPoint innerPoint = innerView->convertFromContainingWindow(outerView->convertToContainingWindow(outerPoint));
     return renderer->positionForCoordinates(innerPoint.x(), innerPoint.y());
 }