[code health] merge implementations of transform matrix serialization
Refactor the two methods in ComputedStyleUtils for serializing transformation matrix values (ValueforMatrixTransform and part of ValueForTransformOperation) into a single method ValueForTransformationMatrix which takes a parameter controlling whether to force matrix3d serialization. This method uses the implementation from ValueForTransformOperation verbatim. Start a unit test suite for ComputedStyleUtils with tests for ValueForTransformationMatrix testing the zoom and force_matrix3d parameters. As such ComputedStyleUtils has been made CORE_EXPORT so that unit tests can link to it. This causes no behavioral change. Change-Id: If1c0727dc80caff77b77d9611bdeb613a96601ac Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2133366Reviewed-by:Rune Lillesveen <futhark@chromium.org> Reviewed-by:
Kevin Ellis <kevers@chromium.org> Commit-Queue: George Steel <gtsteel@chromium.org> Cr-Commit-Position: refs/heads/master@{#759278}
Showing
Please register or sign in to comment