Auto merge of #20185 - Beta-Alf:master, r=emilio
Auto merge of #20185 - Beta-Alf:master, r=emilio

Make KeyframesPercentage::parse faster

Minor refactoring of the parsing of keyframes.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix  #20179 (github issue number if applicable).

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it is a minor refactor so tests are already in place. The original Issue explicitly says so.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

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

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