[css-typed-om] Allow CSSSkew and CSSPerspective to accept CSSMathValues.
Currently CSSSkew and CSSPerspective do not accept calc values (CSSMathValues) because it requires type checking the calc value to see if they match the right type. Since type checking and matching are now implemented, we have all the machinery to accept CSSMathValues too. This patch uses CSSNumericValueType.Matches* functions to check if the CSSNumericValues passed in resolve to the right type. We also (re)moved some DCHECKs. We also deelted redundant tests in inlinestyle/properties/transform.html Spec: https://drafts.css-houdini.org/css-typed-om-1/#dom-cssperspective-cssperspective https://drafts.css-houdini.org/css-typed-om-1/#dom-cssskew-cssskew Bug: 789370 Change-Id: Ice30511b022885004a3a13cca21c8316dd82a271 Reviewed-on: https://chromium-review.googlesource.com/828001Reviewed-by:meade_UTC10 <meade@chromium.org> Commit-Queue: Darren Shen <shend@chromium.org> Cr-Commit-Position: refs/heads/master@{#524342}
Showing
Please register or sign in to comment