We can avoid comparing a bunch of attributes if the two elements being evaluated for style sharing both share the same ElementAttributeData.
Created attachment 174680 [details] Patch
Comment on attachment 174680 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=174680&action=review > Source/WebCore/css/StyleResolver.cpp:1205 > + // Optimization: Avoid pointless comparisons when the elements share the same attribute data. > + if (element->attributeData() != m_element->attributeData()) { > + if (element->fastGetAttribute(XMLNames::langAttr) != m_element->fastGetAttribute(XMLNames::langAttr)) Might be nice to factor the attribute specific tests to a function.
Created attachment 174686 [details] Patch for landing
Comment on attachment 174686 [details] Patch for landing Clearing flags on attachment: 174686 Committed r134962: <http://trac.webkit.org/changeset/134962>
All reviewed patches have been landed. Closing bug.