diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-02-21 17:18:27 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-02-21 22:59:45 +0000 |
commit | c54c07eac0531b6d9fcd591c3e44c5e27817d076 (patch) | |
tree | 8bf27d5ec965a4a1e00cd9907d2b0b98022a49a8 /core/fpdfapi/page/cpdf_allstates.h | |
parent | 892d7510db7015b1835d8e057a716518881f126d (diff) | |
download | pdfium-c54c07eac0531b6d9fcd591c3e44c5e27817d076.tar.xz |
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 <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_allstates.h')
-rw-r--r-- | core/fpdfapi/page/cpdf_allstates.h | 6 |
1 files changed, 2 insertions, 4 deletions
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; |