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

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

Issue 1194933003: Make CPDF_Object::GetString() a virtual method. (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: rebase Created 5 years, 5 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_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 "pageint.h" 9 #include "pageint.h"
10 CPDF_PageObject* CPDF_PageObject::Create(int type) 10 CPDF_PageObject* CPDF_PageObject::Create(int type)
(...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 } 824 }
825 void CPDF_PageObjects::LoadTransInfo() 825 void CPDF_PageObjects::LoadTransInfo()
826 { 826 {
827 if (m_pFormDict == NULL) { 827 if (m_pFormDict == NULL) {
828 return; 828 return;
829 } 829 }
830 CPDF_Dictionary* pGroup = m_pFormDict->GetDict(FX_BSTRC("Group")); 830 CPDF_Dictionary* pGroup = m_pFormDict->GetDict(FX_BSTRC("Group"));
831 if (pGroup == NULL) { 831 if (pGroup == NULL) {
832 return; 832 return;
833 } 833 }
834 if (pGroup->GetString(FX_BSTRC("S")) != FX_BSTRC("Transparency")) { 834 if (pGroup->GetStringAt("S") != "Transparency") {
835 return; 835 return;
836 } 836 }
837 m_Transparency |= PDFTRANS_GROUP; 837 m_Transparency |= PDFTRANS_GROUP;
838 if (pGroup->GetInteger(FX_BSTRC("I"))) { 838 if (pGroup->GetInteger(FX_BSTRC("I"))) {
839 m_Transparency |= PDFTRANS_ISOLATED; 839 m_Transparency |= PDFTRANS_ISOLATED;
840 } 840 }
841 if (pGroup->GetInteger(FX_BSTRC("K"))) { 841 if (pGroup->GetInteger(FX_BSTRC("K"))) {
842 m_Transparency |= PDFTRANS_KNOCKOUT; 842 m_Transparency |= PDFTRANS_KNOCKOUT;
843 } 843 }
844 } 844 }
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
1069 matrix = m_PageMatrix; 1069 matrix = m_PageMatrix;
1070 matrix.Concat(display_matrix); 1070 matrix.Concat(display_matrix);
1071 } 1071 }
1072 CPDF_ParseOptions::CPDF_ParseOptions() 1072 CPDF_ParseOptions::CPDF_ParseOptions()
1073 { 1073 {
1074 m_bTextOnly = FALSE; 1074 m_bTextOnly = FALSE;
1075 m_bMarkedContent = TRUE; 1075 m_bMarkedContent = TRUE;
1076 m_bSeparateForm = TRUE; 1076 m_bSeparateForm = TRUE;
1077 m_bDecodeInlineImage = FALSE; 1077 m_bDecodeInlineImage = FALSE;
1078 } 1078 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698