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

Side by Side Diff: core/src/fpdfapi/fpdf_render/fpdf_render.cpp

Issue 294353002: Fix warnings in android build, fix font rendering issue, fix issue 357588: wrong characters represe… (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Patch Set after rebase Created 6 years, 7 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 "../../../include/fpdfapi/fpdf_render.h" 7 #include "../../../include/fpdfapi/fpdf_render.h"
8 #include "../../../include/fpdfapi/fpdf_module.h" 8 #include "../../../include/fpdfapi/fpdf_module.h"
9 #include "../fpdf_page/pageint.h" 9 #include "../fpdf_page/pageint.h"
10 #include "../../../include/fxge/fx_ge.h" 10 #include "../../../include/fxge/fx_ge.h"
(...skipping 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 return TRUE; 501 return TRUE;
502 } 502 }
503 CFX_AffineMatrix matrix = pFormObj->m_FormMatrix; 503 CFX_AffineMatrix matrix = pFormObj->m_FormMatrix;
504 matrix.Concat(*pObj2Device); 504 matrix.Concat(*pObj2Device);
505 CPDF_Dictionary* pResources = NULL; 505 CPDF_Dictionary* pResources = NULL;
506 if (pFormObj->m_pForm && pFormObj->m_pForm->m_pFormDict) { 506 if (pFormObj->m_pForm && pFormObj->m_pForm->m_pFormDict) {
507 pResources = pFormObj->m_pForm->m_pFormDict->GetDict(FX_BSTRC("Resources ")); 507 pResources = pFormObj->m_pForm->m_pFormDict->GetDict(FX_BSTRC("Resources "));
508 } 508 }
509 CPDF_RenderStatus status; 509 CPDF_RenderStatus status;
510 status.Initialize(m_Level + 1, m_pContext, m_pDevice, NULL, m_pStopObj, 510 status.Initialize(m_Level + 1, m_pContext, m_pDevice, NULL, m_pStopObj,
511 this, pFormObj, &m_Options, m_Transparency, m_bDropObjects , pResources, TRUE); 511 this, pFormObj, &m_Options, m_Transparency, m_bDropObjects , pResources, FALSE);
512 status.m_curBlend = m_curBlend; 512 status.m_curBlend = m_curBlend;
513 m_pDevice->SaveState(); 513 m_pDevice->SaveState();
514 status.RenderObjectList(pFormObj->m_pForm, &matrix); 514 status.RenderObjectList(pFormObj->m_pForm, &matrix);
515 m_bStopped = status.m_bStopped; 515 m_bStopped = status.m_bStopped;
516 m_pDevice->RestoreState(); 516 m_pDevice->RestoreState();
517 return TRUE; 517 return TRUE;
518 } 518 }
519 FX_BOOL IsAvailableMatrix(const CFX_AffineMatrix& matrix) 519 FX_BOOL IsAvailableMatrix(const CFX_AffineMatrix& matrix)
520 { 520 {
521 if (matrix.a == 0 || matrix.d == 0) { 521 if (matrix.a == 0 || matrix.d == 0) {
(...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after
1479 CPDF_ContentMarkItem& item = pData->GetItem(i); 1479 CPDF_ContentMarkItem& item = pData->GetItem(i);
1480 if (item.GetName() == FX_BSTRC("OC") && item.GetParamType() == CPDF_Cont entMarkItem::PropertiesDict) { 1480 if (item.GetName() == FX_BSTRC("OC") && item.GetParamType() == CPDF_Cont entMarkItem::PropertiesDict) {
1481 CPDF_Dictionary* pOCG = (CPDF_Dictionary*)item.GetParam(); 1481 CPDF_Dictionary* pOCG = (CPDF_Dictionary*)item.GetParam();
1482 if (!CheckOCGVisible(pOCG)) { 1482 if (!CheckOCGVisible(pOCG)) {
1483 return FALSE; 1483 return FALSE;
1484 } 1484 }
1485 } 1485 }
1486 } 1486 }
1487 return TRUE; 1487 return TRUE;
1488 } 1488 }
OLDNEW
« no previous file with comments | « core/src/fpdfapi/fpdf_parser/fpdf_parser_parser.cpp ('k') | core/src/fpdfapi/fpdf_render/fpdf_render_loadimage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698