OLD | NEW |
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 "core/fpdfapi/fpdf_page/pageint.h" | 7 #include "core/fpdfapi/fpdf_page/pageint.h" |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <utility> | 10 #include <utility> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "core/fpdfapi/fpdf_edit/cpdf_creator.h" | 13 #include "core/fpdfapi/fpdf_edit/cpdf_creator.h" |
14 #include "core/fpdfapi/fpdf_font/cpdf_font.h" | 14 #include "core/fpdfapi/fpdf_font/cpdf_font.h" |
15 #include "core/fpdfapi/fpdf_font/cpdf_type3font.h" | 15 #include "core/fpdfapi/fpdf_font/cpdf_type3font.h" |
16 #include "core/fpdfapi/fpdf_page/cpdf_allstates.h" | 16 #include "core/fpdfapi/fpdf_page/cpdf_allstates.h" |
17 #include "core/fpdfapi/fpdf_page/cpdf_form.h" | 17 #include "core/fpdfapi/fpdf_page/cpdf_form.h" |
18 #include "core/fpdfapi/fpdf_page/cpdf_formobject.h" | 18 #include "core/fpdfapi/fpdf_page/cpdf_formobject.h" |
19 #include "core/fpdfapi/fpdf_page/cpdf_image.h" | 19 #include "core/fpdfapi/fpdf_page/cpdf_image.h" |
20 #include "core/fpdfapi/fpdf_page/cpdf_imageobject.h" | 20 #include "core/fpdfapi/fpdf_page/cpdf_imageobject.h" |
21 #include "core/fpdfapi/fpdf_page/cpdf_meshstream.h" | 21 #include "core/fpdfapi/fpdf_page/cpdf_meshstream.h" |
22 #include "core/fpdfapi/fpdf_page/cpdf_pageobject.h" | 22 #include "core/fpdfapi/fpdf_page/cpdf_pageobject.h" |
23 #include "core/fpdfapi/fpdf_page/cpdf_pathobject.h" | 23 #include "core/fpdfapi/fpdf_page/cpdf_pathobject.h" |
24 #include "core/fpdfapi/fpdf_page/cpdf_shadingobject.h" | 24 #include "core/fpdfapi/fpdf_page/cpdf_shadingobject.h" |
25 #include "core/fpdfapi/fpdf_page/cpdf_shadingpattern.h" | 25 #include "core/fpdfapi/fpdf_page/cpdf_shadingpattern.h" |
26 #include "core/fpdfapi/fpdf_page/cpdf_textobject.h" | 26 #include "core/fpdfapi/fpdf_page/cpdf_textobject.h" |
27 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 27 #include "core/fpdfapi/fpdf_parser/cpdf_array.h" |
28 #include "core/fpdfapi/fpdf_parser/include/cpdf_dictionary.h" | 28 #include "core/fpdfapi/fpdf_parser/cpdf_dictionary.h" |
29 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 29 #include "core/fpdfapi/fpdf_parser/cpdf_document.h" |
30 #include "core/fpdfapi/fpdf_parser/include/cpdf_name.h" | 30 #include "core/fpdfapi/fpdf_parser/cpdf_name.h" |
31 #include "core/fpdfapi/fpdf_parser/include/cpdf_number.h" | 31 #include "core/fpdfapi/fpdf_parser/cpdf_number.h" |
32 #include "core/fpdfapi/fpdf_parser/include/cpdf_reference.h" | 32 #include "core/fpdfapi/fpdf_parser/cpdf_reference.h" |
33 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream.h" | 33 #include "core/fpdfapi/fpdf_parser/cpdf_stream.h" |
34 #include "core/fpdfapi/fpdf_parser/include/cpdf_stream_acc.h" | 34 #include "core/fpdfapi/fpdf_parser/cpdf_stream_acc.h" |
35 #include "core/fpdfapi/fpdf_parser/include/fpdf_parser_decode.h" | 35 #include "core/fpdfapi/fpdf_parser/fpdf_parser_decode.h" |
36 #include "core/fxcrt/include/fx_safe_types.h" | 36 #include "core/fxcrt/include/fx_safe_types.h" |
37 #include "core/fxge/include/cfx_graphstatedata.h" | 37 #include "core/fxge/include/cfx_graphstatedata.h" |
38 #include "core/fxge/include/cfx_pathdata.h" | 38 #include "core/fxge/include/cfx_pathdata.h" |
39 | 39 |
40 namespace { | 40 namespace { |
41 | 41 |
42 const int kSingleCoordinatePair = 1; | 42 const int kSingleCoordinatePair = 1; |
43 const int kTensorCoordinatePairs = 16; | 43 const int kTensorCoordinatePairs = 16; |
44 const int kCoonsCoordinatePairs = 12; | 44 const int kCoonsCoordinatePairs = 12; |
45 const int kSingleColorPerPatch = 1; | 45 const int kSingleColorPerPatch = 1; |
(...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1673 } else { | 1673 } else { |
1674 PDF_ReplaceAbbr(pElement); | 1674 PDF_ReplaceAbbr(pElement); |
1675 } | 1675 } |
1676 } | 1676 } |
1677 break; | 1677 break; |
1678 } | 1678 } |
1679 default: | 1679 default: |
1680 break; | 1680 break; |
1681 } | 1681 } |
1682 } | 1682 } |
OLD | NEW |