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

Unified Diff: fpdfsdk/src/fsdk_baseform.cpp

Issue 1513363002: Remove CFX_AffineMatrix/CPDF_Matrix (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Nits Created 5 years 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
« no previous file with comments | « fpdfsdk/src/fsdk_baseannot.cpp ('k') | fpdfsdk/src/fsdk_mgr.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fpdfsdk/src/fsdk_baseform.cpp
diff --git a/fpdfsdk/src/fsdk_baseform.cpp b/fpdfsdk/src/fsdk_baseform.cpp
index 98836e9465b7ddd1dd675d74c2a106d75457cb83..80f8c8fcad244eef1f0ea1353528a6399a3c1499 100644
--- a/fpdfsdk/src/fsdk_baseform.cpp
+++ b/fpdfsdk/src/fsdk_baseform.cpp
@@ -329,7 +329,7 @@ void CPDFSDK_Widget::ResetFieldAppearance(FX_BOOL bValueChanged) {
}
void CPDFSDK_Widget::DrawAppearance(CFX_RenderDevice* pDevice,
- const CPDF_Matrix* pUser2Device,
+ const CFX_Matrix* pUser2Device,
CPDF_Annot::AppearanceMode mode,
const CPDF_RenderOptions* pOptions) {
int nFieldType = GetFieldType();
@@ -378,7 +378,7 @@ void CPDFSDK_Widget::DrawShadow(CFX_RenderDevice* pDevice,
CPDFDoc_Environment* pEnv = m_pInterForm->GetDocument()->GetEnv();
if (!pEnv)
return;
- CFX_AffineMatrix page2device;
+ CFX_Matrix page2device;
pPageView->GetCurrentMatrix(page2device);
page2device.Transform(((FX_FLOAT)rc.left), ((FX_FLOAT)rc.bottom),
rcDevice.left, rcDevice.bottom);
@@ -1312,8 +1312,8 @@ CFX_ByteString CPDFSDK_Widget::GetBorderAppStream() const {
dsBorder);
}
-CPDF_Matrix CPDFSDK_Widget::GetMatrix() const {
- CPDF_Matrix mt;
+CFX_Matrix CPDFSDK_Widget::GetMatrix() const {
+ CFX_Matrix mt;
CPDF_FormControl* pControl = GetFormControl();
ASSERT(pControl != NULL);
@@ -1324,16 +1324,16 @@ CPDF_Matrix CPDFSDK_Widget::GetMatrix() const {
switch (abs(pControl->GetRotation() % 360)) {
case 0:
default:
- mt = CPDF_Matrix(1, 0, 0, 1, 0, 0);
+ mt = CFX_Matrix(1, 0, 0, 1, 0, 0);
break;
case 90:
- mt = CPDF_Matrix(0, 1, -1, 0, fWidth, 0);
+ mt = CFX_Matrix(0, 1, -1, 0, fWidth, 0);
break;
case 180:
- mt = CPDF_Matrix(-1, 0, 0, -1, fWidth, fHeight);
+ mt = CFX_Matrix(-1, 0, 0, -1, fWidth, fHeight);
break;
case 270:
- mt = CPDF_Matrix(0, -1, 1, 0, 0, fHeight);
+ mt = CFX_Matrix(0, -1, 1, 0, 0, fHeight);
break;
}
« no previous file with comments | « fpdfsdk/src/fsdk_baseannot.cpp ('k') | fpdfsdk/src/fsdk_mgr.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698