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

Side by Side Diff: fpdfsdk/fpdf_transformpage.cpp

Issue 2216853004: Refactor fx_ge part 2 (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Fixing build, comments Created 4 years, 4 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
« no previous file with comments | « fpdfsdk/formfiller/cffl_iformfiller.cpp ('k') | fpdfsdk/fsdk_baseform.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_transformpage.h" 7 #include "public/fpdf_transformpage.h"
8 8
9 #include "core/fpdfapi/fpdf_page/include/cpdf_clippath.h" 9 #include "core/fpdfapi/fpdf_page/include/cpdf_clippath.h"
10 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h" 10 #include "core/fpdfapi/fpdf_page/include/cpdf_page.h"
11 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" 11 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h"
12 #include "core/fpdfapi/fpdf_page/include/cpdf_path.h" 12 #include "core/fpdfapi/fpdf_page/include/cpdf_path.h"
13 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" 13 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h"
14 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" 14 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h"
15 #include "core/fpdfapi/fpdf_parser/include/cpdf_number.h" 15 #include "core/fpdfapi/fpdf_parser/include/cpdf_number.h"
16 #include "core/fpdfapi/fpdf_parser/include/cpdf_reference.h" 16 #include "core/fpdfapi/fpdf_parser/include/cpdf_reference.h"
17 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" 17 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h"
18 #include "core/fxge/include/cfx_pathdata.h"
18 #include "fpdfsdk/include/fsdk_define.h" 19 #include "fpdfsdk/include/fsdk_define.h"
19 20
20 namespace { 21 namespace {
21 22
22 void SetBoundingBox(CPDF_Page* page, 23 void SetBoundingBox(CPDF_Page* page,
23 const CFX_ByteString& key, 24 const CFX_ByteString& key,
24 float left, 25 float left,
25 float bottom, 26 float bottom,
26 float right, 27 float right,
27 float top) { 28 float top) {
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 } else if (pDirectObj->IsStream()) { 326 } else if (pDirectObj->IsStream()) {
326 pContentArray = new CPDF_Array(); 327 pContentArray = new CPDF_Array();
327 pContentArray->AddReference(pDoc, pStream->GetObjNum()); 328 pContentArray->AddReference(pDoc, pStream->GetObjNum());
328 pContentArray->AddReference(pDoc, pDirectObj->GetObjNum()); 329 pContentArray->AddReference(pDoc, pDirectObj->GetObjNum());
329 pPageDic->SetAtReference("Contents", pDoc, 330 pPageDic->SetAtReference("Contents", pDoc,
330 pDoc->AddIndirectObject(pContentArray)); 331 pDoc->AddIndirectObject(pContentArray));
331 } 332 }
332 } 333 }
333 } 334 }
334 } 335 }
OLDNEW
« no previous file with comments | « fpdfsdk/formfiller/cffl_iformfiller.cpp ('k') | fpdfsdk/fsdk_baseform.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698