We could move the isStyledElement() check from canShareStyleWithElement() to the loop in findSiblingForStyleSharing().
Created attachment 118720 [details] Proposed patch
Committed r102555: <http://trac.webkit.org/changeset/102555>