Refactor LengthMode handling in SVGLengthContext

The switch that selects the correct "dimension" factor to scale with is
repeated three times. Refactor the code so that we get the factor from a
helper function instead.

Review URL: https://codereview.chromium.org/902593002

git-svn-id: svn://svn.chromium.org/blink/trunk@189523 bbb929c8-8fbe-4397-9dbb-9b2b20218538
1 file changed
tree: 0a50a921ac4630ae2d8ca70cd43a1726d98945e9
  1. third_party/