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

Side by Side Diff: fpdfsdk/src/fpdfformfill.cpp

Issue 1519693002: Merge to XFA: Remove CFX_AffineMatrix/CPDF_Matrix (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: XFA-specific changes 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
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 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 return; 327 return;
328 CPDF_Document* pPDFDoc = pDocument->GetPDFDoc(); 328 CPDF_Document* pPDFDoc = pDocument->GetPDFDoc();
329 if (!pPDFDoc) 329 if (!pPDFDoc)
330 return; 330 return;
331 CPDFDoc_Environment* pEnv = (CPDFDoc_Environment*)hHandle; 331 CPDFDoc_Environment* pEnv = (CPDFDoc_Environment*)hHandle;
332 CPDFSDK_Document* pFXDoc = pEnv->GetSDKDocument(); 332 CPDFSDK_Document* pFXDoc = pEnv->GetSDKDocument();
333 if (!pFXDoc) 333 if (!pFXDoc)
334 return; 334 return;
335 #endif // PDF_ENABLE_XFA 335 #endif // PDF_ENABLE_XFA
336 336
337 CFX_AffineMatrix matrix; 337 CFX_Matrix matrix;
338 pPage->GetDisplayMatrix(matrix, start_x, start_y, size_x, size_y, rotate); 338 pPage->GetDisplayMatrix(matrix, start_x, start_y, size_x, size_y, rotate);
339 339
340 FX_RECT clip; 340 FX_RECT clip;
341 clip.left = start_x; 341 clip.left = start_x;
342 clip.right = start_x + size_x; 342 clip.right = start_x + size_x;
343 clip.top = start_y; 343 clip.top = start_y;
344 clip.bottom = start_y + size_y; 344 clip.bottom = start_y + size_y;
345 345
346 #ifdef _SKIA_SUPPORT_ 346 #ifdef _SKIA_SUPPORT_
347 nonstd::unique_ptr<CFX_SkiaDevice> pDevice(new CFX_SkiaDevice); 347 nonstd::unique_ptr<CFX_SkiaDevice> pDevice(new CFX_SkiaDevice);
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc); 734 pActionHandler->DoAction_Page(action, CPDF_AAction::OpenPage, pSDKDoc);
735 } 735 }
736 } else { 736 } else {
737 if (aa.ActionExist(CPDF_AAction::ClosePage)) { 737 if (aa.ActionExist(CPDF_AAction::ClosePage)) {
738 CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage); 738 CPDF_Action action = aa.GetAction(CPDF_AAction::ClosePage);
739 pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc); 739 pActionHandler->DoAction_Page(action, CPDF_AAction::ClosePage, pSDKDoc);
740 } 740 }
741 } 741 }
742 } 742 }
743 } 743 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698