IntRect viewportToScreen(const IntRect& rect, const Widget* widget) const override { WebRect rectInScreen(rect); WebRect windowRect = m_popup->windowRectInScreen(); m_popup->widgetClient()->convertViewportToWindow(&rectInScreen); rectInScreen.x += windowRect.x; rectInScreen.y += windowRect.y; return rectInScreen; }
IntRect viewportToScreen(const IntRect& rect) const override { IntRect rectInScreen(rect); rectInScreen.move(m_popup->m_windowRectInScreen.x, m_popup->m_windowRectInScreen.y); return rectInScreen; }