From c54c07eac0531b6d9fcd591c3e44c5e27817d076 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 21 Feb 2017 17:18:27 -0500 Subject: Convert text positions from x,y to CFX_PointF This Cl converts the AllStates to use CFX_PointF and changes the advance code to return a CFX_PointF instead of accepting two out floats. Change-Id: Idb5e295b92e8a16ead535773de066f4b7ea2bdd9 Reviewed-on: https://pdfium-review.googlesource.com/2813 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- core/fpdfapi/page/cpdf_allstates.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'core/fpdfapi/page/cpdf_allstates.h') diff --git a/core/fpdfapi/page/cpdf_allstates.h b/core/fpdfapi/page/cpdf_allstates.h index 1aa680a2ce..dad1b8502b 100644 --- a/core/fpdfapi/page/cpdf_allstates.h +++ b/core/fpdfapi/page/cpdf_allstates.h @@ -27,10 +27,8 @@ class CPDF_AllStates : public CPDF_GraphicStates { CFX_Matrix m_TextMatrix; CFX_Matrix m_CTM; CFX_Matrix m_ParentMatrix; - FX_FLOAT m_TextX; - FX_FLOAT m_TextY; - FX_FLOAT m_TextLineX; - FX_FLOAT m_TextLineY; + CFX_PointF m_TextPos; + CFX_PointF m_TextLinePos; FX_FLOAT m_TextLeading; FX_FLOAT m_TextRise; FX_FLOAT m_TextHorzScale; -- cgit v1.2.3