[Webkit-unassigned] [Bug 8091] New: Changes made to DOM styles via Obj-C not immediately visible
bugzilla-daemon at opendarwin.org
bugzilla-daemon at opendarwin.org
Thu Mar 30 14:06:26 PST 2006
http://bugzilla.opendarwin.org/show_bug.cgi?id=8091
Summary: Changes made to DOM styles via Obj-C not immediately
visible
Product: WebKit
Version: 420+ (nightly)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: HTML DOM
AssignedTo: webkit-unassigned at opendarwin.org
ReportedBy: jim.correia at pobox.com
see also rdar://4496964
Programatically change DOM styles via the Objective-C interface doesn't
automatically update the display in the WebView.
Consider the attached example.
Build and run.
Click the Change DOM button.
The changes are not immediately visible. Mousing over the web view makes the
change visible.
Sending the webview a -setNeedsDisplay:YES or sending
-setNeedsToApplyStyles:YES to the document view doesn't work around the problem
either.
The code which manipulates the DOM looks like this:
DOMDocument *document = [[webView mainFrame] DOMDocument];
DOMElement *element = [document getElementById: @"foo"];
DOMCSSStyleDeclaration *style = [element style];
[style setBackground :@"red"];
--
Configure bugmail: http://bugzilla.opendarwin.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