| OLD | NEW |
| 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/include/fpdfapi/cpdf_array.h" |
| 7 #include "core/include/fpdfapi/cpdf_document.h" | 8 #include "core/include/fpdfapi/cpdf_document.h" |
| 9 #include "core/include/fpdfapi/cpdf_reference.h" |
| 8 #include "core/include/fpdfapi/fpdf_pageobj.h" | 10 #include "core/include/fpdfapi/fpdf_pageobj.h" |
| 9 #include "core/include/fpdfdoc/fpdf_doc.h" | 11 #include "core/include/fpdfdoc/fpdf_doc.h" |
| 10 | 12 |
| 11 CPDF_AnnotList::CPDF_AnnotList(CPDF_Page* pPage) | 13 CPDF_AnnotList::CPDF_AnnotList(CPDF_Page* pPage) |
| 12 : m_pDocument(pPage->m_pDocument) { | 14 : m_pDocument(pPage->m_pDocument) { |
| 13 if (!pPage->m_pFormDict) | 15 if (!pPage->m_pFormDict) |
| 14 return; | 16 return; |
| 15 | 17 |
| 16 CPDF_Array* pAnnots = pPage->m_pFormDict->GetArrayBy("Annots"); | 18 CPDF_Array* pAnnots = pPage->m_pFormDict->GetArrayBy("Annots"); |
| 17 if (!pAnnots) | 19 if (!pAnnots) |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 CFX_PathData path; | 341 CFX_PathData path; |
| 340 width /= 2; | 342 width /= 2; |
| 341 path.AppendRect(rect.left + width, rect.bottom + width, rect.right - width, | 343 path.AppendRect(rect.left + width, rect.bottom + width, rect.right - width, |
| 342 rect.top - width); | 344 rect.top - width); |
| 343 int fill_type = 0; | 345 int fill_type = 0; |
| 344 if (pOptions && (pOptions->m_Flags & RENDER_NOPATHSMOOTH)) { | 346 if (pOptions && (pOptions->m_Flags & RENDER_NOPATHSMOOTH)) { |
| 345 fill_type |= FXFILL_NOPATHSMOOTH; | 347 fill_type |= FXFILL_NOPATHSMOOTH; |
| 346 } | 348 } |
| 347 pDevice->DrawPath(&path, pUser2Device, &graph_state, argb, argb, fill_type); | 349 pDevice->DrawPath(&path, pUser2Device, &graph_state, argb, argb, fill_type); |
| 348 } | 350 } |
| OLD | NEW |