[Webkit-unassigned] [Bug 70810] nameNodeListCache should be invalidate when name attribute changes/modified.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 26 12:59:38 PDT 2011


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





--- Comment #6 from Arko Saha <nghq36 at motorola.com>  2011-10-26 12:59:38 PST ---
(In reply to comment #5)
> (From update of attachment 112321 [details])
> Something seems wrong here.
> 
> The notifyNodeListsAttributeChanged call should be made from Node::dispatchSubtreeModifiedEvent() - there is even a comment saying that it's there to handle the name attribute. Why doesn't that work? Is DOMSubtreeModified event broken, too?

Currently DOMSubtreeModified is not getting fired in case of name attribute.

After debugging class attributes behavior below is my observation :
When classAttr changes it calls classAttributeChanged() from StyledElement::parseMappedAttribute().
Now classAttributeChanged() invokes dispatchSubtreeModifiedEvent() which internally sends DOMSubtreeModified event and calls Node::notifyNodeListsAttributeChanged() to invalidate m_classNodeListCache.

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