Open GoogleCodeExporter opened 9 years ago
Here's the relevant code in WebKit (DomWindow.cpp):
int DOMWindow::outerHeight() const
{
if (!m_frame)
return 0;
Page* page = m_frame->page();
if (!page)
return 0;
return static_cast<int>(page->chrome()->windowRect().height());
}
int DOMWindow::outerWidth() const
{
if (!m_frame)
return 0;
Page* page = m_frame->page();
if (!page)
return 0;
return static_cast<int>(page->chrome()->windowRect().width());
}
int DOMWindow::innerHeight() const
{
if (!m_frame)
return 0;
FrameView* view = m_frame->view();
if (!view)
return 0;
return static_cast<int>(view->height() / m_frame->pageZoomFactor());
}
int DOMWindow::innerWidth() const
{
if (!m_frame)
return 0;
FrameView* view = m_frame->view();
if (!view)
return 0;
return static_cast<int>(view->width() / m_frame->pageZoomFactor());
}
Original comment by rob...@roberthogan.net
on 23 Sep 2010 at 10:34
so at the moment we are leaking the height of the space between the top of the
frame view and the bottom of the window decoration.
Original comment by rob...@roberthogan.net
on 23 Sep 2010 at 10:36
Original issue reported on code.google.com by
rob...@roberthogan.net
on 23 Sep 2010 at 10:24