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

Side by Side Diff: core/src/fpdfdoc/doc_annot.cpp

Issue 1776913007: Split fpdf_parser_objects.cpp into per-class .cpp/.h files. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Address 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
« no previous file with comments | « core/src/fpdfdoc/doc_action.cpp ('k') | core/src/fpdfdoc/doc_ap.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/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
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 }
OLDNEW
« no previous file with comments | « core/src/fpdfdoc/doc_action.cpp ('k') | core/src/fpdfdoc/doc_ap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698