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

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

Issue 1727793002: Remove FXSYS_Div. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 10 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 | « core/include/fxcrt/fx_system.h ('k') | core/src/fpdfapi/fpdf_render/fpdf_render_pattern.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 "core/src/fpdfapi/fpdf_page/pageint.h" 7 #include "core/src/fpdfapi/fpdf_page/pageint.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after
745 break; 745 break;
746 case 3: 746 case 3:
747 x0 = xPos + xSize; 747 x0 = xPos + xSize;
748 y0 = yPos + ySize; 748 y0 = yPos + ySize;
749 x1 = xPos; 749 x1 = xPos;
750 y1 = yPos + ySize; 750 y1 = yPos + ySize;
751 x2 = xPos + xSize; 751 x2 = xPos + xSize;
752 y2 = yPos; 752 y2 = yPos;
753 break; 753 break;
754 } 754 }
755 display_matrix.Set(FXSYS_Div((FX_FLOAT)(x2 - x0), m_PageWidth), 755 display_matrix.Set(
756 FXSYS_Div((FX_FLOAT)(y2 - y0), m_PageWidth), 756 ((FX_FLOAT)(x2 - x0)) / m_PageWidth, ((FX_FLOAT)(y2 - y0)) / m_PageWidth,
757 FXSYS_Div((FX_FLOAT)(x1 - x0), m_PageHeight), 757 ((FX_FLOAT)(x1 - x0)) / m_PageHeight,
758 FXSYS_Div((FX_FLOAT)(y1 - y0), m_PageHeight), (FX_FLOAT)x0, 758 ((FX_FLOAT)(y1 - y0)) / m_PageHeight, (FX_FLOAT)x0, (FX_FLOAT)y0);
759 (FX_FLOAT)y0);
760 matrix = m_PageMatrix; 759 matrix = m_PageMatrix;
761 matrix.Concat(display_matrix); 760 matrix.Concat(display_matrix);
762 } 761 }
763 762
764 CPDF_ParseOptions::CPDF_ParseOptions() { 763 CPDF_ParseOptions::CPDF_ParseOptions() {
765 m_bTextOnly = FALSE; 764 m_bTextOnly = FALSE;
766 m_bMarkedContent = TRUE; 765 m_bMarkedContent = TRUE;
767 m_bSeparateForm = TRUE; 766 m_bSeparateForm = TRUE;
768 m_bDecodeInlineImage = FALSE; 767 m_bDecodeInlineImage = FALSE;
769 } 768 }
OLDNEW
« no previous file with comments | « core/include/fxcrt/fx_system.h ('k') | core/src/fpdfapi/fpdf_render/fpdf_render_pattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698