Besides the renaming, also change the function to return the mapped
value instead of modifying the input value in place, to make the methods
consistent with those in blink::TransformationMatrix and
gfx::AxisTransform2d.
Used the following commands to make automated changes (patchset 2)
(see https://pastebin.com/c8j2wsVe for definition of 'cg'):
sed -i 's/\( \)\([^ ].*[.>]\)TransformRect(&\([0-9a-z\._]*\))/\1\3 = \2MapRect(\3)/' `cg TransformRect -l`
sed -i 's/\( \)\([^ ].*[.>]\)TransformRect(\([0-9a-z\._]*\))/\1*\3 = \2MapRect(*\3)/' `cg TransformRect -l`
sed -i s/TransformRectReverse/InverseMapRect/g `cg TransformRectReverse -l`
git cl format
Manual edits are
- Changes of API and implementation of the functions
- Fixes for failures of the automated replacement
- Some small cleanups and optimizations
Bug: 1359528
Change-Id: If73382c9cfebb3b968ef162057c26843c57d71bb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3929799
Reviewed-by: danakj <danakj@chromium.org>
Owners-Override: danakj <danakj@chromium.org>
Commit-Queue: Xianzhu Wang <wangxianzhu@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1055553}