[Webkit-unassigned] [Bug 32580] JS Event listeners should not call Document::updateStyleForAllDocuments()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Feb 14 20:00:18 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=32580





--- Comment #13 from James Robinson <jamesr at chromium.org>  2010-02-14 20:00:13 PST ---
No, because recalcStyle() has side effects other than updating styles.  For
instance. HTMLFormControl::recalcStyle() enqueues a call to the virtual
RenderObject::updateFromElement() function.  Several overrides of this
(RenderMenuList::updateFromElement, RenderListBox::updateFromElement) cause
updates within the DOM like updating selected state, etc.

What happens in most tests currently is:

1.) The parser creates some DOM structure
2.) DOMContentLoaded fires, which calls Document::updateStyleForAllDocuments(),
which forces pending updates to occur.
3.) The test code runs in the body's onload handler.
4.) The style time fires.

-- 
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