Minor refactoring to CSSMathExpressionNode::TypeWithCalcResolved()

This is in preparation to clean up CSSPrimitiveValue::TypeWithCalcResolved
and CSSPrimitiveValue::UnitType::kCalc*.

Since this function has the same name as a CSSPrimitiveValue member
function, but has quite different semantics, this patch renames it.

This patch also moves some code from TransformBuilder into
CSSMathFunctionValue to avoid calling this function directly from a
not-very-related caller.

Bug: 979895
Change-Id: I4891e6643f61723bfc4004560df977bffaab2c33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1688383
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Auto-Submit: Xiaocheng Hu <xiaochengh@chromium.org>
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Cr-Commit-Position: refs/heads/master@{#674896}
6 files changed