[css-typed-om] Implement CSSNumericValue.parse.
This patch implements CSSNumericValue.parse. We reuse the existing calc() parser, modifying it to keep bracket information since the result of CSSNumericValue.parse is sensitive to brackets. We also have to merge certain nodes in the parsed calc tree (e.g. calc(1 + 2 + 3) gets merged into one sum node). Spec: https://drafts.css-houdini.org/css-typed-om-1/#dom-cssnumericvalue-parse Bug: 776173, 788570 Change-Id: Ia4bef7c3a2eb580d11a5e51d3921ed52e1f17bf3 Reviewed-on: https://chromium-review.googlesource.com/792670Reviewed-by:nainar <nainar@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/master@{#520361}
Showing
Please register or sign in to comment