http://trac.webkit.org/changeset/53878 introduced an optimization to avoid form control validation.
However, this code means that we don't share input element styles if the document contains no validity style rules.
Created attachment 126246 [details]
Comment on attachment 126246 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=126246&action=review
> if (element->isInRange() != m_element->isInRange())
> return false;
isInRange and isOutOfRange also belong to validity style rules. See SelectorChecker.cpp.
Created attachment 126254 [details]
Even less work in the common case, then :)
Comment on attachment 126254 [details]
Clearing flags on attachment: 126254
Committed r107193: <http://trac.webkit.org/changeset/107193>
All reviewed patches have been landed. Closing bug.