[Webkit-unassigned] [Bug 70137] [MutationObservers] Modifications to the style property don't dispatch "attributes" Mutation Records

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 14 14:08:59 PDT 2011


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


Rafael Weinstein <rafaelw at chromium.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |darin at apple.com,
                   |                            |ojan at chromium.org,
                   |                            |sam at webkit.org




--- Comment #1 from Rafael Weinstein <rafaelw at chromium.org>  2011-10-14 14:08:59 PST ---
It looks to me like adding a check in CSSMutableStyleDeclaration::setNeedsStyleRecalc which asks whether there are any observers interested in the style attribute is the way to do this.

If any observer cares about the value, then we synchronously update the style attribute, otherwise we can just dispatch a record inline and leave the style attribute invalid.

Does this seem like a reasonable approach?

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