Auto merge of #20250 - emilio:style-sharing-checks-order, r=xidorn
Auto merge of #20250 - emilio:style-sharing-checks-order, r=xidorn

style: Reorder style sharing checks so that cheaper and broader ones are earlier.

This was reviewed by Xidorn in #20223, but that needs to wait for a few days so let's land this separately.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20250)
<!-- Reviewable:end -->

nnethercote/servo,pyfisch/servo,mattnenterprise/servo,SimonSapin/servo,DominoTree/servo,paulrouget/servo,pyfisch/servo,larsbergstrom/servo,emilio/servo,dati91/servo,larsbergstrom/servo,upsuper/servo,notriddle/servo,nnethercote/servo,splav/servo,peterjoel/servo,KiChjang/servo,pyfisch/servo,SimonSapin/servo,emilio/servo,sadmansk/servo,ConnorGBrewster/servo,cbrewster/servo,ConnorGBrewster/servo,larsbergstrom/servo,sadmansk/servo,DominoTree/servo,emilio/servo,anthgur/servo,paulrouget/servo,mbrubeck/servo,KiChjang/servo,sadmansk/servo,canaltinova/servo,saneyuki/servo,sadmansk/servo,ConnorGBrewster/servo,SimonSapin/servo,emilio/servo,jimberlage/servo,jimberlage/servo,SimonSapin/servo,sadmansk/servo,splav/servo,mbrubeck/servo,splav/servo,mattnenterprise/servo,szeged/servo,splav/servo,larsbergstrom/servo,szeged/servo,nnethercote/servo,notriddle/servo,peterjoel/servo,SimonSapin/servo,upsuper/servo,SimonSapin/servo,KiChjang/servo,notriddle/servo,szeged/servo,peterjoel/servo,canaltinova/servo,paulrouget/servo,notriddle/servo,dati91/servo,nnethercote/servo,mbrubeck/servo,KiChjang/servo,sadmansk/servo,SimonSapin/servo,ConnorGBrewster/servo,dati91/servo,upsuper/servo,splav/servo,mattnenterprise/servo,upsuper/servo,pyfisch/servo,KiChjang/servo,dati91/servo,peterjoel/servo,upsuper/servo,anthgur/servo,DominoTree/servo,nnethercote/servo,larsbergstrom/servo,mbrubeck/servo,KiChjang/servo,emilio/servo,jimberlage/servo,ConnorGBrewster/servo,anthgur/servo,szeged/servo,anthgur/servo,mattnenterprise/servo,szeged/servo,szeged/servo,canaltinova/servo,DominoTree/servo,emilio/servo,emilio/servo,szeged/servo,upsuper/servo,KiChjang/servo,pyfisch/servo,peterjoel/servo,notriddle/servo,splav/servo,jimberlage/servo,jimberlage/servo,canaltinova/servo,sadmansk/servo,ConnorGBrewster/servo,mbrubeck/servo,ConnorGBrewster/servo,avadacatavra/servo,cbrewster/servo,mbrubeck/servo,saneyuki/servo,avadacatavra/servo,notriddle/servo,avadacatavra/servo,paulrouget/servo,larsbergstrom/servo,notriddle/servo,paulrouget/servo,SimonSapin/servo,avadacatavra/servo,paulrouget/servo,cbrewster/servo,mattnenterprise/servo,peterjoel/servo,pyfisch/servo,splav/servo,nnethercote/servo,dati91/servo,upsuper/servo,cbrewster/servo,cbrewster/servo,larsbergstrom/servo,notriddle/servo,nnethercote/servo,dati91/servo,peterjoel/servo,jimberlage/servo,splav/servo,mbrubeck/servo,canaltinova/servo,szeged/servo,avadacatavra/servo,nnethercote/servo,notriddle/servo,mattnenterprise/servo,larsbergstrom/servo,avadacatavra/servo,canaltinova/servo,saneyuki/servo,jimberlage/servo,emilio/servo,DominoTree/servo,upsuper/servo,pyfisch/servo,anthgur/servo,larsbergstrom/servo,paulrouget/servo,larsbergstrom/servo,mbrubeck/servo,saneyuki/servo,anthgur/servo,saneyuki/servo,peterjoel/servo,jimberlage/servo,notriddle/servo,cbrewster/servo,nnethercote/servo,sadmansk/servo,DominoTree/servo,nnethercote/servo,canaltinova/servo,splav/servo,cbrewster/servo,mattnenterprise/servo,KiChjang/servo,pyfisch/servo,peterjoel/servo,paulrouget/servo,emilio/servo,avadacatavra/servo,szeged/servo,dati91/servo,DominoTree/servo,anthgur/servo,jimberlage/servo,dati91/servo,KiChjang/servo,saneyuki/servo,anthgur/servo,mattnenterprise/servo,cbrewster/servo,paulrouget/servo,szeged/servo,ConnorGBrewster/servo,splav/servo,DominoTree/servo,emilio/servo,paulrouget/servo,KiChjang/servo,peterjoel/servo,saneyuki/servo,DominoTree/servo,avadacatavra/servo,saneyuki/servo,canaltinova/servo,saneyuki/servo,pyfisch/servo,DominoTree/servo,pyfisch/servo,saneyuki/servo