OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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/page/cpdf_page.h" | 7 #include "core/fpdfapi/page/cpdf_page.h" |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <utility> | 10 #include <utility> |
11 | 11 |
12 #include "core/fpdfapi/cpdf_pagerendercontext.h" | 12 #include "core/fpdfapi/cpdf_pagerendercontext.h" |
| 13 #include "core/fpdfapi/page/cpdf_contentparser.h" |
13 #include "core/fpdfapi/page/cpdf_pageobject.h" | 14 #include "core/fpdfapi/page/cpdf_pageobject.h" |
14 #include "core/fpdfapi/page/pageint.h" | 15 #include "core/fpdfapi/page/pageint.h" |
15 #include "core/fpdfapi/parser/cpdf_array.h" | 16 #include "core/fpdfapi/parser/cpdf_array.h" |
16 #include "core/fpdfapi/parser/cpdf_dictionary.h" | 17 #include "core/fpdfapi/parser/cpdf_dictionary.h" |
17 #include "core/fpdfapi/parser/cpdf_object.h" | 18 #include "core/fpdfapi/parser/cpdf_object.h" |
18 #include "core/fpdfapi/render/cpdf_pagerendercache.h" | 19 #include "core/fpdfapi/render/cpdf_pagerendercache.h" |
19 #include "third_party/base/stl_util.h" | 20 #include "third_party/base/stl_util.h" |
20 | 21 |
21 CPDF_Page::CPDF_Page(CPDF_Document* pDocument, | 22 CPDF_Page::CPDF_Page(CPDF_Document* pDocument, |
22 CPDF_Dictionary* pPageDict, | 23 CPDF_Dictionary* pPageDict, |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 x2 = xPos + xSize; | 168 x2 = xPos + xSize; |
168 y2 = yPos; | 169 y2 = yPos; |
169 break; | 170 break; |
170 } | 171 } |
171 display_matrix.Set((x2 - x0) / m_PageWidth, (y2 - y0) / m_PageWidth, | 172 display_matrix.Set((x2 - x0) / m_PageWidth, (y2 - y0) / m_PageWidth, |
172 (x1 - x0) / m_PageHeight, (y1 - y0) / m_PageHeight, x0, | 173 (x1 - x0) / m_PageHeight, (y1 - y0) / m_PageHeight, x0, |
173 y0); | 174 y0); |
174 matrix = m_PageMatrix; | 175 matrix = m_PageMatrix; |
175 matrix.Concat(display_matrix); | 176 matrix.Concat(display_matrix); |
176 } | 177 } |
OLD | NEW |