[Webkit-unassigned] [Bug 29408] New: [Qt] QWebPage does not schedule repaint when adding content via Javascript
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 18 07:33:14 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=29408
Summary: [Qt] QWebPage does not schedule repaint when adding
content via Javascript
Product: WebKit
Version: 528+ (Nightly build)
Platform: Other
OS/Version: Mac OS X 10.5
Status: NEW
Keywords: Qt
Severity: Normal
Priority: P2
Component: New Bugs
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: vestbo at webkit.org
This bug report originated from issue QTBUG-3623
<http://bugreports.qt.nokia.com/browse/QTBUG-3623>
--- Description ---
I'm calling, using evaluateJavaScript(), a javascript method
written in my html page.
This javascript page add contents inside a <table id="mytable"></table>
However, in this specific case, the QWebView is not updated. After some
time, I move my mouse on my QWebView/Application, and suddenly I
can see my new elements added dynamically into my web page.
This case seems to only happen when I add "content" in my table:
it never happens when I update the "content", or remove the "content".
I solved my problem by doing:
QWebFrame *wbframe = this->mainFrame();
wbframe->evaluateJavaScript(cmd);
QWidget *widget = this->view();
if (widget!=NULL)
widget->update();
But you shouldn't be required to schedule your own repaint.
--
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