| 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 "public/fpdf_edit.h" | 7 #include "public/fpdf_edit.h" |
| 8 | 8 |
| 9 #include "fpdfsdk/include/fsdk_define.h" | 9 #include "fpdfsdk/include/fsdk_define.h" |
| 10 #include "public/fpdf_formfill.h" | 10 #include "public/fpdf_formfill.h" |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 return TRUE; | 196 return TRUE; |
| 197 | 197 |
| 198 CPDF_Dictionary* pSMaskDict = | 198 CPDF_Dictionary* pSMaskDict = |
| 199 pGeneralState ? ToDictionary(pGeneralState->m_pSoftMask) : NULL; | 199 pGeneralState ? ToDictionary(pGeneralState->m_pSoftMask) : NULL; |
| 200 if (pSMaskDict) | 200 if (pSMaskDict) |
| 201 return TRUE; | 201 return TRUE; |
| 202 | 202 |
| 203 if (pGeneralState && pGeneralState->m_FillAlpha != 1.0f) | 203 if (pGeneralState && pGeneralState->m_FillAlpha != 1.0f) |
| 204 return TRUE; | 204 return TRUE; |
| 205 | 205 |
| 206 if (pPageObj->m_Type == PDFPAGE_PATH) { | 206 if (pPageObj->m_Type == CPDF_PageObject::PATH) { |
| 207 if (pGeneralState && pGeneralState->m_StrokeAlpha != 1.0f) | 207 if (pGeneralState && pGeneralState->m_StrokeAlpha != 1.0f) |
| 208 return TRUE; | 208 return TRUE; |
| 209 } | 209 } |
| 210 | 210 |
| 211 if (pPageObj->m_Type == PDFPAGE_FORM) { | 211 if (pPageObj->m_Type == CPDF_PageObject::FORM) { |
| 212 CPDF_FormObject* pFormObj = (CPDF_FormObject*)pPageObj; | 212 CPDF_FormObject* pFormObj = (CPDF_FormObject*)pPageObj; |
| 213 if (pFormObj->m_pForm && | 213 if (pFormObj->m_pForm && |
| 214 (pFormObj->m_pForm->m_Transparency & PDFTRANS_ISOLATED)) | 214 (pFormObj->m_pForm->m_Transparency & PDFTRANS_ISOLATED)) |
| 215 return TRUE; | 215 return TRUE; |
| 216 if (pFormObj->m_pForm && | 216 if (pFormObj->m_pForm && |
| 217 (!(pFormObj->m_pForm->m_Transparency & PDFTRANS_ISOLATED) && | 217 (!(pFormObj->m_pForm->m_Transparency & PDFTRANS_ISOLATED) && |
| 218 (pFormObj->m_pForm->m_Transparency & PDFTRANS_GROUP))) | 218 (pFormObj->m_pForm->m_Transparency & PDFTRANS_GROUP))) |
| 219 return TRUE; | 219 return TRUE; |
| 220 } | 220 } |
| 221 return FALSE; | 221 return FALSE; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 !pPage->m_pFormDict->GetElement("Type")->GetDirect() || | 290 !pPage->m_pFormDict->GetElement("Type")->GetDirect() || |
| 291 pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetString().Compare( | 291 pPage->m_pFormDict->GetElement("Type")->GetDirect()->GetString().Compare( |
| 292 "Page")) { | 292 "Page")) { |
| 293 return; | 293 return; |
| 294 } | 294 } |
| 295 CPDF_Dictionary* pDict = pPage->m_pFormDict; | 295 CPDF_Dictionary* pDict = pPage->m_pFormDict; |
| 296 rotate %= 4; | 296 rotate %= 4; |
| 297 | 297 |
| 298 pDict->SetAt("Rotate", new CPDF_Number(rotate * 90)); | 298 pDict->SetAt("Rotate", new CPDF_Number(rotate * 90)); |
| 299 } | 299 } |
| OLD | NEW |