DescriptionCleanup resolving of 'em' units in SVGLengthContext
With the 'rem' unit added, there's some duplication, since the only
difference between 'em' and 'rem' is where the style comes from.
By splitting the resolution of the style out of the methods that
convert to/from 'em' (and 'rem'), the same two functions can be used
to compute the results in both the 'em' and 'rem' case - just feeding
them with different ComputedStyle objects.
BUG=368598, 470449
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193547
Patch Set 1 #
Messages
Total messages: 7 (2 generated)
|