summaryrefslogtreecommitdiff
path: root/xfa/fde/fde_render.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-03-13 10:16:05 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-03-13 15:46:47 +0000
commit575898e6251c1dbb8de0d40a5b6ce90762aa2af2 (patch)
treec9b30307e04200c2621bfd98e4152c47653efcb6 /xfa/fde/fde_render.cpp
parent068d34426272bd7f02ffc12139ddd33ee2e237e6 (diff)
downloadpdfium-575898e6251c1dbb8de0d40a5b6ce90762aa2af2.tar.xz
Remove some single use interfaces
Remove interfaces which are only implemented once. Change-Id: I73ceaa7bfd7ef2a630479c7eebed5e32ecb99940 Reviewed-on: https://pdfium-review.googlesource.com/2944 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fde/fde_render.cpp')
-rw-r--r--xfa/fde/fde_render.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/xfa/fde/fde_render.cpp b/xfa/fde/fde_render.cpp
index b6a8f7edd0..371f9ca9e2 100644
--- a/xfa/fde/fde_render.cpp
+++ b/xfa/fde/fde_render.cpp
@@ -7,6 +7,7 @@
#include "xfa/fde/fde_render.h"
#include "third_party/base/ptr_util.h"
+#include "xfa/fde/cfde_txtedttextset.h"
#include "xfa/fde/fde_gedevice.h"
#include "xfa/fde/fde_object.h"
@@ -25,7 +26,7 @@ CFDE_RenderContext::~CFDE_RenderContext() {
}
bool CFDE_RenderContext::StartRender(CFDE_RenderDevice* pRenderDevice,
- IFDE_CanvasSet* pCanvasSet,
+ CFDE_TxtEdtPage* pCanvasSet,
const CFX_Matrix& tmDoc2Device) {
if (m_pRenderDevice)
return false;
@@ -73,7 +74,7 @@ FDE_RENDERSTATUS CFDE_RenderContext::DoRender(IFX_Pause* pPause) {
switch (pVisualSet->GetType()) {
case FDE_VISUALOBJ_Text:
- RenderText(static_cast<IFDE_TextSet*>(pVisualSet), pPiece);
+ RenderText(static_cast<CFDE_TxtEdtTextSet*>(pVisualSet), pPiece);
iCount += 5;
break;
case FDE_VISUALOBJ_Canvas:
@@ -99,7 +100,7 @@ void CFDE_RenderContext::StopRender() {
m_CharPos.clear();
}
-void CFDE_RenderContext::RenderText(IFDE_TextSet* pTextSet,
+void CFDE_RenderContext::RenderText(CFDE_TxtEdtTextSet* pTextSet,
FDE_TEXTEDITPIECE* pText) {
ASSERT(m_pRenderDevice);
ASSERT(pTextSet && pText);