Auto merge of #19927 - bholley:sheet_flush_optimization, r=emilio
Auto merge of #19927 - bholley:sheet_flush_optimization, r=emilio

Avoid stylist flushes when sheets are appended and then removed again before flusing layout

https://bugzilla.mozilla.org/show_bug.cgi?id=1434756

<!-- 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/19927)
<!-- Reviewable:end -->

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