Fold up the SVGLengthContext::convertValueFrom* helpers

There are three with similar-looking names, and they are all a single
line each. Fold up where it improves readability, and make the last one
static.
Having folded up convertValueFromUserUnitsToPercentage() we get an
expression that looks like: value * 100 / dimension... * 100; where the
factors (100) obviously cancel out one another. Looking at the single
call-site (SVGLength::setValue) which can actual pass a percentage, it
does an explicit adjustment too. Move that adjustment into the
SVGLengthContext method and drop the two '* 100' - yielding a more
obvious conversion (and less operations to execute).

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

git-svn-id: svn://svn.chromium.org/blink/trunk@190078 bbb929c8-8fbe-4397-9dbb-9b2b20218538
3 files changed
tree: 48a7f8321c228e8d09c7a7305c8217b42170257c
  1. third_party/