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

Side by Side Diff: xfa/fde/fde_render.cpp

Issue 2037563002: Replace IFGAS_Font with underlying concrete type (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: Fix Windows Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "xfa/fde/fde_render.h" 7 #include "xfa/fde/fde_render.h"
8 8
9 #include "xfa/fde/fde_gedevice.h" 9 #include "xfa/fde/fde_gedevice.h"
10 #include "xfa/fde/fde_object.h" 10 #include "xfa/fde/fde_object.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 FX_Free(m_pCharPos); 104 FX_Free(m_pCharPos);
105 m_pCharPos = nullptr; 105 m_pCharPos = nullptr;
106 m_iCharPosCount = 0; 106 m_iCharPosCount = 0;
107 } 107 }
108 108
109 void CFDE_RenderContext::RenderText(IFDE_TextSet* pTextSet, 109 void CFDE_RenderContext::RenderText(IFDE_TextSet* pTextSet,
110 FDE_HVISUALOBJ hText) { 110 FDE_HVISUALOBJ hText) {
111 ASSERT(m_pRenderDevice); 111 ASSERT(m_pRenderDevice);
112 ASSERT(pTextSet && hText); 112 ASSERT(pTextSet && hText);
113 113
114 IFX_Font* pFont = pTextSet->GetFont(hText); 114 CFX_GEFont* pFont = pTextSet->GetFont(hText);
115 if (!pFont) 115 if (!pFont)
116 return; 116 return;
117 117
118 int32_t iCount = pTextSet->GetDisplayPos(hText, nullptr, FALSE); 118 int32_t iCount = pTextSet->GetDisplayPos(hText, nullptr, FALSE);
119 if (iCount < 1) 119 if (iCount < 1)
120 return; 120 return;
121 121
122 if (!m_pBrush) 122 if (!m_pBrush)
123 m_pBrush.reset(new CFDE_Brush); 123 m_pBrush.reset(new CFDE_Brush);
124 124
(...skipping 30 matching lines...) Expand all
155 m_Transform.TransformRect(rtClip); 155 m_Transform.TransformRect(rtClip);
156 const CFX_RectF& rtDevClip = m_pRenderDevice->GetClipRect(); 156 const CFX_RectF& rtDevClip = m_pRenderDevice->GetClipRect();
157 rtClip.Intersect(rtDevClip); 157 rtClip.Intersect(rtDevClip);
158 hState = m_pRenderDevice->SaveState(); 158 hState = m_pRenderDevice->SaveState();
159 return m_pRenderDevice->SetClipRect(rtClip); 159 return m_pRenderDevice->SetClipRect(rtClip);
160 } 160 }
161 161
162 void CFDE_RenderContext::RestoreClip(FDE_HDEVICESTATE hState) { 162 void CFDE_RenderContext::RestoreClip(FDE_HDEVICESTATE hState) {
163 m_pRenderDevice->RestoreState(hState); 163 m_pRenderDevice->RestoreState(hState);
164 } 164 }
OLDNEW
« no previous file with comments | « xfa/fde/fde_gedevice.cpp ('k') | xfa/fde/fde_visualset.h » ('j') | xfa/fgas/font/fgas_font.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698