Revert "[css-typed-om] Implement CSSNumericValue.parse."
This reverts commit 86e5b818. Reason for revert: Added test is failing on Mac, e.g. https://storage.googleapis.com/chromium-layout-test-archives/Mac10_11_Tests/20861/layout-test-results/results.html FAIL Parsing a calc with mixed compatible units returns correct CSSMathValue assert_equals: expected "px" but got "number" Original change's description: > [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/792670 > Reviewed-by: nainar <nainar@chromium.org> > Commit-Queue: Darren Shen <shend@chromium.org> > Cr-Commit-Position: refs/heads/master@{#520361} TBR=nainar@chromium.org,shend@chromium.org Change-Id: Ib2acc1f4fc07390c75ecdda9991f984a55009a81 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: 776173, 788570 Reviewed-on: https://chromium-review.googlesource.com/798991Reviewed-by:Timothy Loh <timloh@chromium.org> Commit-Queue: Timothy Loh <timloh@chromium.org> Cr-Commit-Position: refs/heads/master@{#520421}
Showing
Please register or sign in to comment