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

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

Issue 1431683008: Revert "Revert "Revert "Cleanup some numeric code.""" (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years, 1 month 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 "../../../include/fpdfapi/fpdf_page.h" 7 #include "../../../include/fpdfapi/fpdf_page.h"
8 #include "../../../include/fpdfapi/fpdf_module.h" 8 #include "../../../include/fpdfapi/fpdf_module.h"
9 #include "../../../include/fpdfapi/fpdf_serial.h" 9 #include "../../../include/fpdfapi/fpdf_serial.h"
10 #include "../../../include/fxcrt/fx_ext.h"
11 #include "pageint.h" 10 #include "pageint.h"
12 11
13 #define REQUIRE_PARAMS(count) \ 12 #define REQUIRE_PARAMS(count) \
14 if (m_ParamCount != count) { \ 13 if (m_ParamCount != count) { \
15 return; \ 14 return; \
16 } 15 }
17 16
18 CPDF_StreamContentParser::CPDF_StreamContentParser( 17 CPDF_StreamContentParser::CPDF_StreamContentParser(
19 CPDF_Document* pDocument, 18 CPDF_Document* pDocument,
20 CPDF_Dictionary* pPageResources, 19 CPDF_Dictionary* pPageResources,
(...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after
1526 m_pObjectList->m_ObjectList.AddTail(pPathObj); 1525 m_pObjectList->m_ObjectList.AddTail(pPathObj);
1527 } 1526 }
1528 if (PathClipType) { 1527 if (PathClipType) {
1529 if (!matrix.IsIdentity()) { 1528 if (!matrix.IsIdentity()) {
1530 Path.Transform(&matrix); 1529 Path.Transform(&matrix);
1531 matrix.SetIdentity(); 1530 matrix.SetIdentity();
1532 } 1531 }
1533 m_pCurStates->m_ClipPath.AppendPath(Path, PathClipType, TRUE); 1532 m_pCurStates->m_ClipPath.AppendPath(Path, PathClipType, TRUE);
1534 } 1533 }
1535 } 1534 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_font/fpdf_font_cid.cpp ('k') | core/src/fpdfapi/fpdf_page/fpdf_page_parser_old.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698