diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-02-09 13:07:43 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-02-09 19:02:55 +0000 |
commit | afb44560a21298b3588b36cbaf45e2be50f2e75b (patch) | |
tree | 21f3ececad017e6be64a19c4370cfe9fd7f9c29c /fpdfsdk/pdfwindow | |
parent | 67e4faaf8be0aebc67ebfb96d33933d9f9119d20 (diff) | |
download | pdfium-afb44560a21298b3588b36cbaf45e2be50f2e75b.tar.xz |
Remove Transform in favour of TransformPoint
This CL removes the two Transform() overrides from CFX_Matrix and calls the
TransformPoint methods directly. In the case of the 4 param version the
values were assigned to the out values before calling.
Change-Id: Id633826caec75b848774dcda6cfdcef2dbf5a7db
Reviewed-on: https://pdfium-review.googlesource.com/2573
Reviewed-by: Nicolás Peña <npm@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow')
-rw-r--r-- | fpdfsdk/pdfwindow/PWL_EditCtrl.cpp | 4 | ||||
-rw-r--r-- | fpdfsdk/pdfwindow/PWL_Wnd.cpp | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp b/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp index 94592159d4..90b7a3c7c0 100644 --- a/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp +++ b/fpdfsdk/pdfwindow/PWL_EditCtrl.cpp @@ -43,8 +43,8 @@ bool CPWL_EditCtrl::IsWndHorV() { CFX_FloatPoint point1(0, 1); CFX_FloatPoint point2(1, 1); - mt.Transform(point1.x, point1.y); - mt.Transform(point2.x, point2.y); + mt.TransformPoint(point1.x, point1.y); + mt.TransformPoint(point2.x, point2.y); return point2.y == point1.y; } diff --git a/fpdfsdk/pdfwindow/PWL_Wnd.cpp b/fpdfsdk/pdfwindow/PWL_Wnd.cpp index 8fd7b16212..1170660f1c 100644 --- a/fpdfsdk/pdfwindow/PWL_Wnd.cpp +++ b/fpdfsdk/pdfwindow/PWL_Wnd.cpp @@ -855,7 +855,7 @@ void CPWL_Wnd::PWLtoWnd(const CFX_FloatPoint& point, int32_t& y) const { CFX_Matrix mt = GetWindowMatrix(); CFX_FloatPoint pt = point; - mt.Transform(pt.x, pt.y); + mt.TransformPoint(pt.x, pt.y); x = (int32_t)(pt.x + 0.5); y = (int32_t)(pt.y + 0.5); } @@ -874,7 +874,7 @@ CFX_FloatPoint CPWL_Wnd::ChildToParent(const CFX_FloatPoint& point) const { return point; CFX_FloatPoint pt = point; - mt.Transform(pt.x, pt.y); + mt.TransformPoint(pt.x, pt.y); return pt; } @@ -895,7 +895,7 @@ CFX_FloatPoint CPWL_Wnd::ParentToChild(const CFX_FloatPoint& point) const { mt.SetReverse(mt); CFX_FloatPoint pt = point; - mt.Transform(pt.x, pt.y); + mt.TransformPoint(pt.x, pt.y); return pt; } |