summaryrefslogtreecommitdiff
path: root/xfa/fde/cfde_txtedtpage.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-16 16:37:16 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-17 15:39:14 +0000
commitb3e7bfa6ed35651a22df314352883ccb44a7203d (patch)
tree7d5c4734bb8203f358890d09d2bafc49bc7fa67a /xfa/fde/cfde_txtedtpage.cpp
parent1748c4f6e42cda6ffa6bf32731d2fd525c060cf1 (diff)
downloadpdfium-b3e7bfa6ed35651a22df314352883ccb44a7203d.tar.xz
Cleanup visibilty and unused methods in xfa/fde
This CL fixes the visibility of some methods in xfa/fde along with removing unused methods. Unused params are also removed. Change-Id: Ic6e6d2ac8d07dc4bdabb3e0121831e4bf3fbb8ec Reviewed-on: https://pdfium-review.googlesource.com/11271 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_txtedtpage.cpp')
-rw-r--r--xfa/fde/cfde_txtedtpage.cpp27
1 files changed, 2 insertions, 25 deletions
diff --git a/xfa/fde/cfde_txtedtpage.cpp b/xfa/fde/cfde_txtedtpage.cpp
index 0eb2acb727..e00d2daa79 100644
--- a/xfa/fde/cfde_txtedtpage.cpp
+++ b/xfa/fde/cfde_txtedtpage.cpp
@@ -121,29 +121,6 @@ int32_t CFDE_TxtEdtPage::GetCharIndex(const CFX_PointF& fPoint, bool& bBefore) {
return nCaret;
}
-int32_t CFDE_TxtEdtPage::GetDisplayPos(const CFX_RectF& rtClip,
- FXTEXT_CHARPOS*& pCharPos,
- CFX_RectF* pBBox) const {
- pCharPos = FX_Alloc(FXTEXT_CHARPOS, m_nCharCount);
- int32_t nCharPosCount = 0;
- FXTEXT_CHARPOS* pos = pCharPos;
- for (const auto& piece : m_Pieces) {
- if (!rtClip.IntersectWith(m_pTextSet->GetRect(piece)))
- continue;
-
- int32_t nCount = m_pTextSet->GetDisplayPos(piece, pos);
- nCharPosCount += nCount;
- pos += nCount;
- }
- if ((nCharPosCount * 5) < (m_nCharCount << 2)) {
- FXTEXT_CHARPOS* pTemp = FX_Alloc(FXTEXT_CHARPOS, nCharPosCount);
- memcpy(pTemp, pCharPos, sizeof(FXTEXT_CHARPOS) * nCharPosCount);
- FX_Free(pCharPos);
- pCharPos = pTemp;
- }
- return nCharPosCount;
-}
-
void CFDE_TxtEdtPage::CalcRangeRectArray(
int32_t nStart,
int32_t nCount,
@@ -201,7 +178,7 @@ int32_t CFDE_TxtEdtPage::SelectWord(const CFX_PointF& fPoint, int32_t& nCount) {
return pIter->GetWordPos();
}
-int32_t CFDE_TxtEdtPage::LoadPage(const CFX_RectF* pClipBox) {
+int32_t CFDE_TxtEdtPage::LoadPage() {
if (m_nRefCount > 0) {
m_nRefCount++;
return m_nRefCount;
@@ -363,7 +340,7 @@ int32_t CFDE_TxtEdtPage::LoadPage(const CFX_RectF* pClipBox) {
return 0;
}
-void CFDE_TxtEdtPage::UnloadPage(const CFX_RectF* pClipBox) {
+void CFDE_TxtEdtPage::UnloadPage() {
ASSERT(m_nRefCount > 0);
m_nRefCount--;
if (m_nRefCount != 0)