[Webkit-unassigned] [Bug 18887] WF2 Support for autofocus controls

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 13 14:26:19 PDT 2008


http://bugs.webkit.org/show_bug.cgi?id=18887





------- Comment #5 from hyatt at apple.com  2008-05-13 14:26 PDT -------
You should have a change to the autofocus node kick off a timer to call focus()
on the autofocus node as soon as possible rather than listening for
DOMContentLoaded.  If the autofocus node changes and the timer is already
running, you just update the node and don't restart the timer.  The timer
callback can then just call focus() on the node.

Then you can remove all that code in the attribute parsing that is calling
setChanged and updating the theme state (since focus() in the timer callback
will do that for you).


-- 
Configure bugmail: http://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