summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_coordinates.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-12-01 20:05:23 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-01 20:05:23 +0000
commit967af6fabb527e58d0b166b2db1f9c44d9450402 (patch)
tree017c8cce559d51956eaf015c7c319fd88338a7a9 /core/fxcrt/fx_coordinates.h
parentb6254e82cfb0fb2c0c3d02f6f40c1163017439a8 (diff)
downloadpdfium-967af6fabb527e58d0b166b2db1f9c44d9450402.tar.xz
Add CFX_FloatRect::Scale().
Unlike ScaleFromCenterPoint(), Scale() just scales the LBRT values. Also add unit tests for CFX_FloatRect::Normalize(). Change-Id: Iebf48fa9adcf47adff3255b157d3e3056f3687fc Reviewed-on: https://pdfium-review.googlesource.com/20212 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/fxcrt/fx_coordinates.h b/core/fxcrt/fx_coordinates.h
index 0d3d123a59..5da86102f0 100644
--- a/core/fxcrt/fx_coordinates.h
+++ b/core/fxcrt/fx_coordinates.h
@@ -329,6 +329,7 @@ class CFX_FloatRect {
bottom += f;
}
+ void Scale(float fScale);
void ScaleFromCenterPoint(float fScale);
static CFX_FloatRect GetBBox(const CFX_PointF* pPoints, int nPoints);