diff options
author | Nicolas Pena <npm@chromium.org> | 2017-06-29 12:02:06 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-06-29 20:50:09 +0000 |
commit | b21f174ad87e46c823c2ef8c11682167e2d12864 (patch) | |
tree | 79c3661672cbd2f84ee835f9922231bb90a634b3 /xfa/fde/cfde_rendercontext.cpp | |
parent | 8ce58f522e046ae3b1561d592ca7b3cd7c894731 (diff) | |
download | pdfium-b21f174ad87e46c823c2ef8c11682167e2d12864.tar.xz |
Change SetReverse to GetInverse in CFX_Matrix
CFX_Matrix::GetInverse is much clearer.
Change-Id: Id10ab1723735332e1a78de853f28415ec3a4d834
Reviewed-on: https://pdfium-review.googlesource.com/7090
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'xfa/fde/cfde_rendercontext.cpp')
-rw-r--r-- | xfa/fde/cfde_rendercontext.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xfa/fde/cfde_rendercontext.cpp b/xfa/fde/cfde_rendercontext.cpp index 702f7ce295..dc2a628c23 100644 --- a/xfa/fde/cfde_rendercontext.cpp +++ b/xfa/fde/cfde_rendercontext.cpp @@ -40,15 +40,13 @@ void CFDE_RenderContext::DoRender() { if (!m_pRenderDevice || !m_pIterator) return; - CFX_Matrix rm; - rm.SetReverse(m_Transform); CFX_RectF rtDocClip = m_pRenderDevice->GetClipRect(); if (rtDocClip.IsEmpty()) { rtDocClip.left = rtDocClip.top = 0; rtDocClip.width = (float)m_pRenderDevice->GetWidth(); rtDocClip.height = (float)m_pRenderDevice->GetHeight(); } - rm.TransformRect(rtDocClip); + m_Transform.GetInverse().TransformRect(rtDocClip); IFDE_VisualSet* pVisualSet; FDE_TEXTEDITPIECE* pPiece; int32_t iCount = 0; |