OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |