There is no need to invalidate element style on id attribute change if neither the old nor the new id were mentioned in any stylesheet. This is similar to the optimization we already have for class attributes.
Created attachment 170690 [details] patch
Comment on attachment 170690 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=170690&action=review Why didn't we do this already? r=me > Source/WebCore/css/StyleResolver.cpp:4241 > +bool StyleResolver::hasSelectorForId(const AtomicString &idValue) const OH GOD & PLACEMENT > Source/WebCore/dom/Element.cpp:716 > + StyleResolver* styleResolver = document()->styleResolverIfExists(); Indentation derp.
http://trac.webkit.org/changeset/132516
This has caused bug 101047.