| OLD | NEW | 
|---|
| 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_module.h" | 7 #include "../../../include/fpdfapi/fpdf_module.h" | 
| 8 #include "../../../include/fpdfapi/fpdf_render.h" | 8 #include "../../../include/fpdfapi/fpdf_render.h" | 
| 9 #include "../../../include/fxge/fx_ge.h" | 9 #include "../../../include/fxge/fx_ge.h" | 
| 10 #include "../fpdf_page/pageint.h" | 10 #include "../fpdf_page/pageint.h" | 
| (...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 752   int Transparency = m_Transparency; | 752   int Transparency = m_Transparency; | 
| 753   FX_BOOL bGroupTransparent = FALSE; | 753   FX_BOOL bGroupTransparent = FALSE; | 
| 754   if (pPageObj->m_Type == PDFPAGE_FORM) { | 754   if (pPageObj->m_Type == PDFPAGE_FORM) { | 
| 755     CPDF_FormObject* pFormObj = (CPDF_FormObject*)pPageObj; | 755     CPDF_FormObject* pFormObj = (CPDF_FormObject*)pPageObj; | 
| 756     const CPDF_GeneralStateData* pStateData = | 756     const CPDF_GeneralStateData* pStateData = | 
| 757         pFormObj->m_GeneralState.GetObject(); | 757         pFormObj->m_GeneralState.GetObject(); | 
| 758     if (pStateData) { | 758     if (pStateData) { | 
| 759       group_alpha = pStateData->m_FillAlpha; | 759       group_alpha = pStateData->m_FillAlpha; | 
| 760     } | 760     } | 
| 761     Transparency = pFormObj->m_pForm->m_Transparency; | 761     Transparency = pFormObj->m_pForm->m_Transparency; | 
| 762     bGroupTransparent = Transparency & PDFTRANS_ISOLATED ? TRUE : FALSE; | 762     bGroupTransparent = !!(Transparency & PDFTRANS_ISOLATED); | 
| 763     if (pFormObj->m_pForm->m_pFormDict) { | 763     if (pFormObj->m_pForm->m_pFormDict) { | 
| 764       pFormResource = pFormObj->m_pForm->m_pFormDict->GetDict("Resources"); | 764       pFormResource = pFormObj->m_pForm->m_pFormDict->GetDict("Resources"); | 
| 765     } | 765     } | 
| 766   } | 766   } | 
| 767   FX_BOOL bTextClip = FALSE; | 767   FX_BOOL bTextClip = FALSE; | 
| 768   if (pPageObj->m_ClipPath.NotNull() && pPageObj->m_ClipPath.GetTextCount() && | 768   if (pPageObj->m_ClipPath.NotNull() && pPageObj->m_ClipPath.GetTextCount() && | 
| 769       m_pDevice->GetDeviceClass() == FXDC_DISPLAY && | 769       m_pDevice->GetDeviceClass() == FXDC_DISPLAY && | 
| 770       !(m_pDevice->GetDeviceCaps(FXDC_RENDER_CAPS) & FXRC_SOFT_CLIP)) { | 770       !(m_pDevice->GetDeviceCaps(FXDC_RENDER_CAPS) & FXRC_SOFT_CLIP)) { | 
| 771     bTextClip = TRUE; | 771     bTextClip = TRUE; | 
| 772   } | 772   } | 
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1453     if (item.GetName() == FX_BSTRC("OC") && | 1453     if (item.GetName() == FX_BSTRC("OC") && | 
| 1454         item.GetParamType() == CPDF_ContentMarkItem::PropertiesDict) { | 1454         item.GetParamType() == CPDF_ContentMarkItem::PropertiesDict) { | 
| 1455       CPDF_Dictionary* pOCG = (CPDF_Dictionary*)item.GetParam(); | 1455       CPDF_Dictionary* pOCG = (CPDF_Dictionary*)item.GetParam(); | 
| 1456       if (!CheckOCGVisible(pOCG)) { | 1456       if (!CheckOCGVisible(pOCG)) { | 
| 1457         return FALSE; | 1457         return FALSE; | 
| 1458       } | 1458       } | 
| 1459     } | 1459     } | 
| 1460   } | 1460   } | 
| 1461   return TRUE; | 1461   return TRUE; | 
| 1462 } | 1462 } | 
| OLD | NEW | 
|---|