[Webkit-unassigned] [Bug 28235] New: Using QWebFrame::evaluateJavaScript does not relayout
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Aug 12 15:31:18 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=28235
Summary: Using QWebFrame::evaluateJavaScript does not relayout
Product: WebKit
Version: 528+ (Nightly build)
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: WebKit Qt
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: rich at kde.org
Created an attachment (id=34700)
--> (https://bugs.webkit.org/attachment.cgi?id=34700)
Patch to fix the bug
It seems that executing javascript code using evaluateJavaScript that changes
the visibility of some divs in a page does not cause an immediate relayout of
the page. The page instead remains unchanged until the user moves the mouse
over it. The problem was found by using js like this:
function toggleVisibility(id)
{
el = document.getElementById(id);
if (el.style.display == 'none')
{
el.style.display = '';
window.silk.GM_log('showing');
} else {
el.style.display = 'none';
window.silk.GM_log('hiding');
}
}
toggleVisibility('sidebar');
toggleVisibility('header');
toggleVisibility('footer');
Executed against a gitorious repository. The same code executed in the
inspector functions as expected. I've included what I think should be a patch
to fix this issue in master, though since my code has kde dependencies against
4.5 I have been unable to test it so far.
--
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