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

Side by Side Diff: fpdfsdk/src/fpdfformfill.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 unified diff | Download patch
« no previous file with comments | « fpdfsdk/src/fpdfeditpage.cpp ('k') | fpdfsdk/src/fpdfview.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "public/fpdf_formfill.h" 7 #include "public/fpdf_formfill.h"
8 8
9 #include "fpdfsdk/include/fsdk_define.h" 9 #include "fpdfsdk/include/fsdk_define.h"
10 #include "fpdfsdk/include/fsdk_mgr.h" 10 #include "fpdfsdk/include/fsdk_mgr.h"
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // Grayscale output 211 // Grayscale output
212 if (flags & FPDF_GRAYSCALE) { 212 if (flags & FPDF_GRAYSCALE) {
213 options.m_ColorMode = RENDER_COLOR_GRAY; 213 options.m_ColorMode = RENDER_COLOR_GRAY;
214 options.m_ForeColor = 0; 214 options.m_ForeColor = 0;
215 options.m_BackColor = 0xffffff; 215 options.m_BackColor = 0xffffff;
216 } 216 }
217 217
218 options.m_AddFlags = flags >> 8; 218 options.m_AddFlags = flags >> 8;
219 options.m_pOCContext = new CPDF_OCContext(pPage->m_pDocument); 219 options.m_pOCContext = new CPDF_OCContext(pPage->m_pDocument);
220 220
221 CFX_AffineMatrix matrix; 221 CFX_Matrix matrix;
222 pPage->GetDisplayMatrix(matrix, start_x, start_y, size_x, size_y, rotate); 222 pPage->GetDisplayMatrix(matrix, start_x, start_y, size_x, size_y, rotate);
223 223
224 FX_RECT clip; 224 FX_RECT clip;
225 clip.left = start_x; 225 clip.left = start_x;
226 clip.right = start_x + size_x; 226 clip.right = start_x + size_x;
227 clip.top = start_y; 227 clip.top = start_y;
228 clip.bottom = start_y + size_y; 228 clip.bottom = start_y + size_y;
229 229
230 #ifdef _SKIA_SUPPORT_ 230 #ifdef _SKIA_SUPPORT_
231 nonstd::unique_ptr<CFX_SkiaDevice> pDevice(new CFX_SkiaDevice); 231 nonstd::unique_ptr<CFX_SkiaDevice> pDevice(new CFX_SkiaDevice);
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
343 pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc); 343 pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc);
344 } 344 }
345 } else { 345 } else {
346 if (aa.ActionExist(CPDF_AAction::ClosePage)) { 346 if (aa.ActionExist(CPDF_AAction::ClosePage)) {
347 CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage); 347 CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage);
348 pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc); 348 pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc);
349 } 349 }
350 } 350 }
351 } 351 }
352 } 352 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/fpdfeditpage.cpp ('k') | fpdfsdk/src/fpdfview.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698