summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/cpwl_utils.h
diff options
context:
space:
mode:
authordan sinclair <dsinclair@chromium.org>2017-07-12 22:05:28 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-13 17:21:35 +0000
commit8db114ab60439f6d598ec68aa629f4385a532a92 (patch)
treec389f25e34010985ba1cfd1421e9be9234a7d5cf /fpdfsdk/pdfwindow/cpwl_utils.h
parentadf922f278d23e7f955b89f48cc64b5de7925977 (diff)
downloadpdfium-8db114ab60439f6d598ec68aa629f4385a532a92.tar.xz
Use Translate instead of OffsetRect
This CL removes CPWL_Utils::OffsetRect in favour of CFX_FloatRect::Translate. Change-Id: I10e654fcd32639f2121fa78cd343879562c54186 Reviewed-on: https://pdfium-review.googlesource.com/7711 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_utils.h')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_utils.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_utils.h b/fpdfsdk/pdfwindow/cpwl_utils.h
index ef06073d99..b0caf0b386 100644
--- a/fpdfsdk/pdfwindow/cpwl_utils.h
+++ b/fpdfsdk/pdfwindow/cpwl_utils.h
@@ -36,8 +36,6 @@ class CPWL_Utils {
const CPVT_WordRange& wr2);
static CFX_FloatRect GetCenterSquare(const CFX_FloatRect& rect);
- static CFX_FloatRect OffsetRect(const CFX_FloatRect& rect, float x, float y);
-
static CFX_ByteString GetColorAppStream(const CPWL_Color& color,
const bool& bFillOrStroke = true);
static CFX_ByteString GetBorderAppStream(const CFX_FloatRect& rect,