Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: xfa/fde/tto/fde_textout.cpp

Issue 1882213002: Cleanup various IFX_ text interfaces. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: xfa/fde/tto/fde_textout.cpp
diff --git a/xfa/fde/tto/fde_textout.cpp b/xfa/fde/tto/fde_textout.cpp
index 49d3abb8ab1883630740c3b3e0e557acd73a0a5d..80eabd4f5e68af706744b4bc93a42a3fbbc54665 100644
--- a/xfa/fde/tto/fde_textout.cpp
+++ b/xfa/fde/tto/fde_textout.cpp
@@ -147,7 +147,7 @@ class CFDE_TextOut : public IFDE_TextOut, public CFX_Target {
void ToTextRun(const FDE_LPTTOPIECE pPiece, FX_TXTRUN& tr);
void DrawLine(const FDE_LPTTOPIECE pPiece, IFDE_Pen*& pPen);
- IFX_TxtBreak* m_pTxtBreak;
+ CFX_TxtBreak* m_pTxtBreak;
IFX_Font* m_pFont;
FX_FLOAT m_fFontSize;
FX_FLOAT m_fLineSpace;
@@ -211,8 +211,7 @@ CFDE_TextOut::CFDE_TextOut()
m_pCharPos(NULL),
m_iCharPosSize(0),
m_pRenderDevice(NULL) {
- m_pTxtBreak = IFX_TxtBreak::Create(FX_TXTBREAKPOLICY_None);
- FXSYS_assert(m_pTxtBreak != NULL);
+ m_pTxtBreak = new CFX_TxtBreak(FX_TXTBREAKPOLICY_None);
m_Matrix.SetIdentity();
m_rtClip.Reset();
m_rtLogicClip.Reset();

Powered by Google App Engine
This is Rietveld 408576698