[css-typed-om] Implement CSSNumericValue.toSum.
CSSNumericValue.toSum converts a CSSNumericValue into the sum of terms with different units. For example, new CSSMathSum(CSS.em(1), CSS.cm(1)).toSum('mm', 'em') returns new CSSMathSum(CSS.mm(10), CSS.em(1)) Spec: https://drafts.css-houdini.org/css-typed-om-1/#dom-cssnumericvalue-tosum Bug: 776173 Change-Id: I073c9c6d0b3246ff2a085092547ba6dfb2b5a873 Reviewed-on: https://chromium-review.googlesource.com/798932 Commit-Queue: Darren Shen <shend@chromium.org> Reviewed-by:meade_UTC10 <meade@chromium.org> Cr-Commit-Position: refs/heads/master@{#521280}
Showing
Please register or sign in to comment