[Webkit-unassigned] [Bug 105608] [Qt] Outmost window's content size doesn't update when inner <object> frame is expanded
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 25 22:29:23 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=105608
--- Comment #2 from Chen Zhixiang <chenzx at cn.fujitsu.com> 2012-12-25 22:31:32 PST ---
During some debugging and watching,
I found that when a html contains child frames (using <object> to include),
And enable FrameFlatteningEnabled,
The outer FrameView does not get correct contentsSize.
Add log to Qt-4.8.4 demos/browser:
#include "qwebframe.h"
void WebView::loadFinished()
{
...
QWebFrame* pMainFrame = m_page->mainFrame();
int scrollBarVerticalMaximum = pMainFrame->scrollBarMaximum(Qt::Vertical);
qDebug()<<"scrollBarVerticalMaximum="<<scrollBarVerticalMaximum;
QSize contentsSize = pMainFrame->contentsSize();
qDebug()<<"contentsSize="<<contentsSize;
}
Test cases:
bug.html:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><head>
<body>
<object type="text/html" data="a.html" border="0" height="100%" width="100%"></object>
</body></html>
a.html:
<body style="width:100%; height:2000px;">
a
</body>
(1)When directly accessing a.html using default Qt demos/browser:
scrollBarVerticalMaximum= 1717
contentsSize= QSize(551, 2016)
(2)When accessing bug.html:
ERROR: called FrameView::paint with nil renderer
.\page\FrameView.cpp(2377) : WebCore::FrameView::paintContents
scrollBarVerticalMaximum= 16
contentsSize= QSize(543, 517)
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list