| 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/fpdfdoc/include/cpdf_occontext.h" | 7 #include "core/fpdfdoc/include/cpdf_occontext.h" |
| 8 | 8 |
| 9 #include "core/fpdfapi/fpdf_page/cpdf_contentmarkdata.h" | |
| 10 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" | 9 #include "core/fpdfapi/fpdf_page/include/cpdf_pageobject.h" |
| 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
| 12 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 11 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
| 13 | 12 |
| 14 namespace { | 13 namespace { |
| 15 | 14 |
| 16 int32_t FindGroup(const CPDF_Array* pArray, const CPDF_Dictionary* pGroupDict) { | 15 int32_t FindGroup(const CPDF_Array* pArray, const CPDF_Dictionary* pGroupDict) { |
| 17 if (!pArray || !pGroupDict) | 16 if (!pArray || !pGroupDict) |
| 18 return -1; | 17 return -1; |
| 19 | 18 |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 | 270 |
| 272 bool CPDF_OCContext::CheckOCGVisible(const CPDF_Dictionary* pOCGDict) { | 271 bool CPDF_OCContext::CheckOCGVisible(const CPDF_Dictionary* pOCGDict) { |
| 273 if (!pOCGDict) | 272 if (!pOCGDict) |
| 274 return true; | 273 return true; |
| 275 | 274 |
| 276 CFX_ByteString csType = pOCGDict->GetStringBy("Type", "OCG"); | 275 CFX_ByteString csType = pOCGDict->GetStringBy("Type", "OCG"); |
| 277 if (csType == "OCG") | 276 if (csType == "OCG") |
| 278 return GetOCGVisible(pOCGDict); | 277 return GetOCGVisible(pOCGDict); |
| 279 return LoadOCMDState(pOCGDict); | 278 return LoadOCMDState(pOCGDict); |
| 280 } | 279 } |
| OLD | NEW |