Fix CSS typed OM CSSSkewX and CSSSkewY toMatrix method to use degrees instead of radians.
The toMatrix method of a CSSTransformComponent should return a DOMMatrix representing the object transformation. https://www.w3.org/TR/css-typed-om-1/#dom-csstransformcomponent-tomatrix The skewXSelf and skewYSelf methods used to apply a transformation on a matrix must be provided with an angle parameter expressed in degrees. https://www.w3.org/TR/geometry-1/#dom-dommatrix-skewxself https://www.w3.org/TR/geometry-1/#dom-dommatrix-skewyself Since the angles passed to the skewXSelf and skewYSelf were in radians, DOMMatrix returned by the toMatrix method of those two components was incorrect. R=alancutter@chromium.org Change-Id: I5edc1cdf1493184584154723508c6e20c212ac92 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2242008 Commit-Queue: Alan Cutter <alancutter@chromium.org> Reviewed-by:Alan Cutter <alancutter@chromium.org> Cr-Commit-Position: refs/heads/master@{#786632}
Showing
This diff is collapsed.
Please register or sign in to comment