Simplify SVGLengthContext::valueForLength

The floatValueForLength helper handles the Percent type, so no need to
special-case that.
Only resolve the viewport if there's a chance that it'll be used.
Mark as const.

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

git-svn-id: svn://svn.chromium.org/blink/trunk@190431 bbb929c8-8fbe-4397-9dbb-9b2b20218538
2 files changed
tree: ebad838e7f832bd22677adcaa1cb0b2ac178815f
  1. third_party/