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

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

Issue 1801383002: Re-enable several MSVC warnings (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: address more comments Created 4 years, 9 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
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/fpdfapi/fpdf_page/pageint.h" 7 #include "core/fpdfapi/fpdf_page/pageint.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after
706 void CPDF_Page::GetDisplayMatrix(CFX_Matrix& matrix, 706 void CPDF_Page::GetDisplayMatrix(CFX_Matrix& matrix,
707 int xPos, 707 int xPos,
708 int yPos, 708 int yPos,
709 int xSize, 709 int xSize,
710 int ySize, 710 int ySize,
711 int iRotate) const { 711 int iRotate) const {
712 if (m_PageWidth == 0 || m_PageHeight == 0) { 712 if (m_PageWidth == 0 || m_PageHeight == 0) {
713 return; 713 return;
714 } 714 }
715 CFX_Matrix display_matrix; 715 CFX_Matrix display_matrix;
716 int x0, y0, x1, y1, x2, y2; 716 int x0 = 0;
717 int y0 = 0;
718 int x1 = 0;
719 int y1 = 0;
720 int x2 = 0;
721 int y2 = 0;
717 iRotate %= 4; 722 iRotate %= 4;
718 switch (iRotate) { 723 switch (iRotate) {
719 case 0: 724 case 0:
720 x0 = xPos; 725 x0 = xPos;
721 y0 = yPos + ySize; 726 y0 = yPos + ySize;
722 x1 = xPos; 727 x1 = xPos;
723 y1 = yPos; 728 y1 = yPos;
724 x2 = xPos + xSize; 729 x2 = xPos + xSize;
725 y2 = yPos + ySize; 730 y2 = yPos + ySize;
726 break; 731 break;
(...skipping 29 matching lines...) Expand all
756 matrix = m_PageMatrix; 761 matrix = m_PageMatrix;
757 matrix.Concat(display_matrix); 762 matrix.Concat(display_matrix);
758 } 763 }
759 764
760 CPDF_ParseOptions::CPDF_ParseOptions() { 765 CPDF_ParseOptions::CPDF_ParseOptions() {
761 m_bTextOnly = FALSE; 766 m_bTextOnly = FALSE;
762 m_bMarkedContent = TRUE; 767 m_bMarkedContent = TRUE;
763 m_bSeparateForm = TRUE; 768 m_bSeparateForm = TRUE;
764 m_bDecodeInlineImage = FALSE; 769 m_bDecodeInlineImage = FALSE;
765 } 770 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698