summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_coordinates.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-01 19:50:51 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-01 19:50:51 +0000
commitb6254e82cfb0fb2c0c3d02f6f40c1163017439a8 (patch)
treeed379d74d9abb8b71e53b395e6098733cfa68464 /core/fxcrt/fx_coordinates.h
parent789a42bf019b80f7490b785dbed548b578414afe (diff)
downloadpdfium-b6254e82cfb0fb2c0c3d02f6f40c1163017439a8.tar.xz
Rename CFX_FloatRect::Scale() to ScaleFromCenterPoint().
Change-Id: I6baab14c989e8ae692ed1c846b135af95c09ce37 Reviewed-on: https://pdfium-review.googlesource.com/20210 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fxcrt/fx_coordinates.h')
-rw-r--r--core/fxcrt/fx_coordinates.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/core/fxcrt/fx_coordinates.h b/core/fxcrt/fx_coordinates.h
index 49173a38e8..0d3d123a59 100644
--- a/core/fxcrt/fx_coordinates.h
+++ b/core/fxcrt/fx_coordinates.h
@@ -329,18 +329,7 @@ class CFX_FloatRect {
bottom += f;
}
- void Scale(float fScale) {
- float fHalfWidth = (right - left) / 2.0f;
- float fHalfHeight = (top - bottom) / 2.0f;
-
- float center_x = (left + right) / 2;
- float center_y = (top + bottom) / 2;
-
- left = center_x - fHalfWidth * fScale;
- bottom = center_y - fHalfHeight * fScale;
- right = center_x + fHalfWidth * fScale;
- top = center_y + fHalfHeight * fScale;
- }
+ void ScaleFromCenterPoint(float fScale);
static CFX_FloatRect GetBBox(const CFX_PointF* pPoints, int nPoints);