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 "pageint.h" |
| 8 |
7 #include <limits.h> | 9 #include <limits.h> |
| 10 |
8 #include <vector> | 11 #include <vector> |
9 | 12 |
10 #include "../../../include/fpdfapi/fpdf_module.h" | 13 #include "core/include/fpdfapi/fpdf_module.h" |
11 #include "../../../include/fpdfapi/fpdf_page.h" | 14 #include "core/include/fpdfapi/fpdf_page.h" |
12 #include "../../../include/fxcrt/fx_safe_types.h" | 15 #include "core/include/fxcrt/fx_safe_types.h" |
13 #include "pageint.h" | |
14 #include "third_party/base/nonstd_unique_ptr.h" | 16 #include "third_party/base/nonstd_unique_ptr.h" |
15 #include "third_party/base/numerics/safe_conversions_impl.h" | 17 #include "third_party/base/numerics/safe_conversions_impl.h" |
16 | 18 |
17 class CPDF_PSEngine; | 19 class CPDF_PSEngine; |
18 typedef enum { | 20 typedef enum { |
19 PSOP_ADD, | 21 PSOP_ADD, |
20 PSOP_SUB, | 22 PSOP_SUB, |
21 PSOP_MUL, | 23 PSOP_MUL, |
22 PSOP_DIV, | 24 PSOP_DIV, |
23 PSOP_IDIV, | 25 PSOP_IDIV, |
(...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 for (int i = 0; i < m_nOutputs; i++) { | 918 for (int i = 0; i < m_nOutputs; i++) { |
917 if (results[i] < m_pRanges[i * 2]) { | 919 if (results[i] < m_pRanges[i * 2]) { |
918 results[i] = m_pRanges[i * 2]; | 920 results[i] = m_pRanges[i * 2]; |
919 } else if (results[i] > m_pRanges[i * 2 + 1]) { | 921 } else if (results[i] > m_pRanges[i * 2 + 1]) { |
920 results[i] = m_pRanges[i * 2 + 1]; | 922 results[i] = m_pRanges[i * 2 + 1]; |
921 } | 923 } |
922 } | 924 } |
923 } | 925 } |
924 return TRUE; | 926 return TRUE; |
925 } | 927 } |
OLD | NEW |