RESOLVED FIXED76393
Remove caching of mapped attribute count on NamedNodeMap.
https://bugs.webkit.org/show_bug.cgi?id=76393
Summary Remove caching of mapped attribute count on NamedNodeMap.
Andreas Kling
Reported 2012-01-16 10:50:47 PST
SSIA
Attachments
Patch (11.74 KB, patch)
2012-01-16 10:51 PST, Andreas Kling
no flags
Andreas Kling
Comment 1 2012-01-16 10:51:30 PST
Antti Koivisto
Comment 2 2012-01-16 12:10:55 PST
Comment on attachment 122663 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=122663&action=review r=me, though this patch could be even more red > Source/WebCore/css/CSSStyleSelector.cpp:1070 > +static inline bool mappedAttributesEquivalent(NamedNodeMap* a, NamedNodeMap* b) > +{ > + ASSERT(a->mappedAttributeCount() == b->mappedAttributeCount()); Considering that canShareStyleWithElement seems to be only client for the mappedAttributeCount(), I wonder if it should be eliminated completely and done implicitly by this function. We don't even care about the actual count, just that they are equivalent.
Andreas Kling
Comment 3 2012-01-16 12:28:35 PST
Comment on attachment 122663 [details] Patch Clearing flags on attachment: 122663 Committed r105084: <http://trac.webkit.org/changeset/105084>
Andreas Kling
Comment 4 2012-01-16 12:28:43 PST
All reviewed patches have been landed. Closing bug.
Andreas Kling
Comment 5 2012-01-16 13:53:50 PST
Andreas Kling
Comment 7 2012-01-16 14:44:05 PST
Andreas Kling
Comment 8 2012-01-16 15:38:23 PST
Csaba Osztrogonác
Comment 9 2012-01-17 00:52:55 PST
Note You need to log in before you can comment on or make changes to this bug.