[Webkit-unassigned] [Bug 22944] New: QWebFrame::render() and setViewportSize() causes flash-10 object to jump
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Dec 19 19:39:51 PST 2008
https://bugs.webkit.org/show_bug.cgi?id=22944
Summary: QWebFrame::render() and setViewportSize() causes flash-
10 object to jump
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
URL: http://youtube.com
OS/Version: Linux
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Layout and Rendering
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ksquirrel.iv at gmail.com
I've added the following code to demo browser from Qt 4.4. Using WebKit from
SVN, Flash-10 from Adobe, KUbuntu Hardy 8.04.1:
void BrowserMainWindow::slotThumbnail()
{
QSize size(256,256);
QSize thumbnailClipSize(1000, 720);
QRegion thumbnailClipRegion(0, 0, 1000, 720);
WebView *webView = currentTab();
QWebPage *page = webView->page();
QWebFrame *mainFrame = page->mainFrame();
QSize pageSize = page->viewportSize();
QPainter painter;
QPixmap thumbnail(thumbnailClipSize);
painter.begin(&thumbnail);
page->setViewportSize(thumbnailClipSize);
// Flash-10 object jumps here...
mainFrame->render(&painter, thumbnailClipRegion);
painter.end();
page->setViewportSize(pageSize);
thumbnail.scaled(size, Qt::IgnoreAspectRatio,
Qt::SmoothTransformation).save("thumb.png");
}
This code just saves a thumbnail of current tab.
If setViewportSize() is called, a flash-9 video object (YouTube video for
example) during rendering jumps to the left side of webpage and then jumps
back. Without setViewportSize() rendering works fine.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list