summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/cpwl_utils.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-07-13 13:40:06 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-13 18:26:14 +0000
commit3628f8b06e4518c81971782455270d5db4ff91c9 (patch)
tree25b61cbb0d783ba59947341ff6d1dc80613acdb8 /fpdfsdk/pdfwindow/cpwl_utils.cpp
parent469186a47d6ac939acbd80754ed9be5c085bdc22 (diff)
downloadpdfium-3628f8b06e4518c81971782455270d5db4ff91c9.tar.xz
Move CPWL_Utils::OverlapWordRange to CPVT_WordRange::Intersect
This method only deals with CPVT_WordRange objects so move to the correct class. Change-Id: If5f28178301affa8633f8ef8e89894dfb94f1ac9 Reviewed-on: https://pdfium-review.googlesource.com/7713 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow/cpwl_utils.cpp')
-rw-r--r--fpdfsdk/pdfwindow/cpwl_utils.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/fpdfsdk/pdfwindow/cpwl_utils.cpp b/fpdfsdk/pdfwindow/cpwl_utils.cpp
index ed1a94542e..998c95c875 100644
--- a/fpdfsdk/pdfwindow/cpwl_utils.cpp
+++ b/fpdfsdk/pdfwindow/cpwl_utils.cpp
@@ -18,17 +18,6 @@
#include "fpdfsdk/pdfwindow/cpwl_icon.h"
#include "fpdfsdk/pdfwindow/cpwl_wnd.h"
-CPVT_WordRange CPWL_Utils::OverlapWordRange(const CPVT_WordRange& wr1,
- const CPVT_WordRange& wr2) {
- if (wr2.EndPos < wr1.BeginPos || wr2.BeginPos > wr1.EndPos ||
- wr1.EndPos < wr2.BeginPos || wr1.BeginPos > wr2.EndPos) {
- return CPVT_WordRange();
- }
-
- return CPVT_WordRange(std::max(wr1.BeginPos, wr2.BeginPos),
- std::min(wr1.EndPos, wr2.EndPos));
-}
-
CFX_ByteString CPWL_Utils::GetAP_Check(const CFX_FloatRect& crBBox) {
const float fWidth = crBBox.right - crBBox.left;
const float fHeight = crBBox.top - crBBox.bottom;