style: Simplify some code in NoCalcLength::parse_dimension.
style: Simplify some code in NoCalcLength::parse_dimension.

Differential Revision: https://phabricator.services.mozilla.com/D3473

nnethercote/servo,notriddle/servo,splav/servo,splav/servo,nnethercote/servo,pyfisch/servo,emilio/servo,saneyuki/servo,KiChjang/servo,paulrouget/servo,pyfisch/servo,pyfisch/servo,emilio/servo,KiChjang/servo,larsbergstrom/servo,emilio/servo,KiChjang/servo,DominoTree/servo,SimonSapin/servo,SimonSapin/servo,peterjoel/servo,jimberlage/servo,szeged/servo,DominoTree/servo,KiChjang/servo,sadmansk/servo,SimonSapin/servo,emilio/servo,jimberlage/servo,szeged/servo,nnethercote/servo,larsbergstrom/servo,notriddle/servo,paulrouget/servo,saneyuki/servo,DominoTree/servo,DominoTree/servo,sadmansk/servo,saneyuki/servo,nnethercote/servo,DominoTree/servo,notriddle/servo,peterjoel/servo,szeged/servo,paulrouget/servo,larsbergstrom/servo,jimberlage/servo,splav/servo,peterjoel/servo,notriddle/servo,peterjoel/servo,KiChjang/servo,emilio/servo,sadmansk/servo,saneyuki/servo,sadmansk/servo,saneyuki/servo,sadmansk/servo,saneyuki/servo,sadmansk/servo,notriddle/servo,pyfisch/servo,jimberlage/servo,peterjoel/servo,SimonSapin/servo,emilio/servo,peterjoel/servo,pyfisch/servo,DominoTree/servo,szeged/servo,nnethercote/servo,paulrouget/servo,pyfisch/servo,nnethercote/servo,larsbergstrom/servo,emilio/servo,szeged/servo,emilio/servo,paulrouget/servo,KiChjang/servo,larsbergstrom/servo,emilio/servo,jimberlage/servo,KiChjang/servo,sadmansk/servo,jimberlage/servo,splav/servo,peterjoel/servo,notriddle/servo,jimberlage/servo,splav/servo,larsbergstrom/servo,splav/servo,splav/servo,splav/servo,DominoTree/servo,DominoTree/servo,notriddle/servo,splav/servo,KiChjang/servo,saneyuki/servo,KiChjang/servo,paulrouget/servo,splav/servo,pyfisch/servo,jimberlage/servo,nnethercote/servo,SimonSapin/servo,saneyuki/servo,paulrouget/servo,notriddle/servo,larsbergstrom/servo,saneyuki/servo,saneyuki/servo,SimonSapin/servo,szeged/servo,szeged/servo,larsbergstrom/servo,pyfisch/servo,paulrouget/servo,szeged/servo,notriddle/servo,pyfisch/servo,sadmansk/servo,peterjoel/servo,DominoTree/servo,nnethercote/servo,larsbergstrom/servo,pyfisch/servo,peterjoel/servo,paulrouget/servo,notriddle/servo,szeged/servo,larsbergstrom/servo,peterjoel/servo,jimberlage/servo,szeged/servo,DominoTree/servo,nnethercote/servo,paulrouget/servo,SimonSapin/servo,KiChjang/servo,nnethercote/servo,SimonSapin/servo,emilio/servo