summaryrefslogtreecommitdiff
path: root/core/fxcrt/fx_coordinates.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-07-13 13:39:34 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-13 17:55:25 +0000
commit469186a47d6ac939acbd80754ed9be5c085bdc22 (patch)
tree759d491eb8ab13a8e41a229b53f25c7bfccc30c1 /core/fxcrt/fx_coordinates.h
parent8db114ab60439f6d598ec68aa629f4385a532a92 (diff)
downloadpdfium-469186a47d6ac939acbd80754ed9be5c085bdc22.tar.xz
Move CPWL_Utils::GetCenterSquare to CFX_FloatRect
This method is working on the FloatRect content so move it to CFX_FloatRect. Change-Id: I60aabf6e3b86aa9acc59f86cff69347ec5fe5033 Reviewed-on: https://pdfium-review.googlesource.com/7712 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@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 25923f7290..a1bf11b207 100644
--- a/core/fxcrt/fx_coordinates.h
+++ b/core/fxcrt/fx_coordinates.h
@@ -482,6 +482,7 @@ class CFX_FloatRect {
FX_RECT GetInnerRect() const;
FX_RECT GetOuterRect() const;
FX_RECT GetClosestRect() const;
+ CFX_FloatRect GetCenterSquare() const;
int Substract4(CFX_FloatRect& substract_rect, CFX_FloatRect* pRects);