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

Side by Side Diff: core/src/fpdfapi/fpdf_page/fpdf_page_func.cpp

Issue 1321293003: Fix a #include in fpdf_page_func.cpp. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Added a missing include to safe_conversions_impl.h Created 5 years, 3 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 | « no previous file | third_party/base/numerics/safe_conversions_impl.h » ('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 <limits.h> 7 #include <limits.h>
8 8
9 #include "../../../../third_party/base/numerics/safe_conversions_impl.h"
9 #include "../../../include/fpdfapi/fpdf_module.h" 10 #include "../../../include/fpdfapi/fpdf_module.h"
10 #include "../../../include/fpdfapi/fpdf_page.h" 11 #include "../../../include/fpdfapi/fpdf_page.h"
11 #include "../../../include/fxcrt/fx_safe_types.h" 12 #include "../../../include/fxcrt/fx_safe_types.h"
12 #include "../../../third_party/base/numerics/safe_conversions_impl.h"
13 #include "pageint.h" 13 #include "pageint.h"
14 14
15 class CPDF_PSEngine; 15 class CPDF_PSEngine;
16 typedef enum { 16 typedef enum {
17 PSOP_ADD, 17 PSOP_ADD,
18 PSOP_SUB, 18 PSOP_SUB,
19 PSOP_MUL, 19 PSOP_MUL,
20 PSOP_DIV, 20 PSOP_DIV,
21 PSOP_IDIV, 21 PSOP_IDIV,
22 PSOP_MOD, 22 PSOP_MOD,
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 for (int i = 0; i < m_nOutputs; i++) { 909 for (int i = 0; i < m_nOutputs; i++) {
910 if (results[i] < m_pRanges[i * 2]) { 910 if (results[i] < m_pRanges[i * 2]) {
911 results[i] = m_pRanges[i * 2]; 911 results[i] = m_pRanges[i * 2];
912 } else if (results[i] > m_pRanges[i * 2 + 1]) { 912 } else if (results[i] > m_pRanges[i * 2 + 1]) {
913 results[i] = m_pRanges[i * 2 + 1]; 913 results[i] = m_pRanges[i * 2 + 1];
914 } 914 }
915 } 915 }
916 } 916 }
917 return TRUE; 917 return TRUE;
918 } 918 }
OLDNEW
« no previous file with comments | « no previous file | third_party/base/numerics/safe_conversions_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698