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

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

Issue 2334323005: Rename dictionary set and get methods (Closed)
Patch Set: Created 4 years, 3 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/fpdfapi/fpdf_page/cpdf_page.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_shadingpattern.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 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/fpdf_page/include/cpdf_pageobjectholder.h" 7 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobjectholder.h"
8 8
9 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" 9 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h"
10 #include "core/fpdfapi/fpdf_page/pageint.h" 10 #include "core/fpdfapi/fpdf_page/pageint.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 bottom = std::min(bottom, pObj->m_Bottom); 53 bottom = std::min(bottom, pObj->m_Bottom);
54 top = std::max(top, pObj->m_Top); 54 top = std::max(top, pObj->m_Top);
55 } 55 }
56 return CFX_FloatRect(left, bottom, right, top); 56 return CFX_FloatRect(left, bottom, right, top);
57 } 57 }
58 58
59 void CPDF_PageObjectHolder::LoadTransInfo() { 59 void CPDF_PageObjectHolder::LoadTransInfo() {
60 if (!m_pFormDict) { 60 if (!m_pFormDict) {
61 return; 61 return;
62 } 62 }
63 CPDF_Dictionary* pGroup = m_pFormDict->GetDictBy("Group"); 63 CPDF_Dictionary* pGroup = m_pFormDict->GetDictFor("Group");
64 if (!pGroup) { 64 if (!pGroup) {
65 return; 65 return;
66 } 66 }
67 if (pGroup->GetStringBy("S") != "Transparency") { 67 if (pGroup->GetStringFor("S") != "Transparency") {
68 return; 68 return;
69 } 69 }
70 m_Transparency |= PDFTRANS_GROUP; 70 m_Transparency |= PDFTRANS_GROUP;
71 if (pGroup->GetIntegerBy("I")) { 71 if (pGroup->GetIntegerFor("I")) {
72 m_Transparency |= PDFTRANS_ISOLATED; 72 m_Transparency |= PDFTRANS_ISOLATED;
73 } 73 }
74 if (pGroup->GetIntegerBy("K")) { 74 if (pGroup->GetIntegerFor("K")) {
75 m_Transparency |= PDFTRANS_KNOCKOUT; 75 m_Transparency |= PDFTRANS_KNOCKOUT;
76 } 76 }
77 } 77 }
OLDNEW
« no previous file with comments | « core/fpdfapi/fpdf_page/cpdf_page.cpp ('k') | core/fpdfapi/fpdf_page/cpdf_shadingpattern.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698