| 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 "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" | 7 #include "fpdfsdk/fpdfxfa/include/fpdfxfa_doc.h" |
| 8 | 8 |
| 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
| 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 | 347 |
| 348 CXFA_WidgetAcc* pWidgetAcc = hWidget->GetDataAcc(); | 348 CXFA_WidgetAcc* pWidgetAcc = hWidget->GetDataAcc(); |
| 349 int nRotate = 0; | 349 int nRotate = 0; |
| 350 #ifdef PDF_ENABLE_XFA | 350 #ifdef PDF_ENABLE_XFA |
| 351 nRotate = pWidgetAcc->GetRotate(); | 351 nRotate = pWidgetAcc->GetRotate(); |
| 352 #endif | 352 #endif |
| 353 | 353 |
| 354 CPDFDoc_Environment* pEnv = m_pSDKDoc->GetEnv(); | 354 CPDFDoc_Environment* pEnv = m_pSDKDoc->GetEnv(); |
| 355 if (!pEnv) | 355 if (!pEnv) |
| 356 return FALSE; | 356 return FALSE; |
| 357 FS_RECTF pageViewRect; | 357 FS_RECTF pageViewRect = {0.0f, 0.0f, 0.0f, 0.0f}; |
| 358 pEnv->FFI_GetPageViewRect(pPage, pageViewRect); | 358 pEnv->FFI_GetPageViewRect(pPage, pageViewRect); |
| 359 | 359 |
| 360 CFX_FloatRect rcAnchor; | 360 CFX_FloatRect rcAnchor; |
| 361 | 361 |
| 362 rcAnchor.left = rtAnchor.left; | 362 rcAnchor.left = rtAnchor.left; |
| 363 rcAnchor.top = rtAnchor.bottom(); | 363 rcAnchor.top = rtAnchor.bottom(); |
| 364 rcAnchor.right = rtAnchor.right(); | 364 rcAnchor.right = rtAnchor.right(); |
| 365 rcAnchor.bottom = rtAnchor.top; | 365 rcAnchor.bottom = rtAnchor.top; |
| 366 | 366 |
| 367 int t1, t2, t; | 367 int t1, t2, t; |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1276 } | 1276 } |
| 1277 | 1277 |
| 1278 return _GetHValueByName(szPropName, hValue, | 1278 return _GetHValueByName(szPropName, hValue, |
| 1279 m_pSDKDoc->GetEnv()->GetJSRuntime()); | 1279 m_pSDKDoc->GetEnv()->GetJSRuntime()); |
| 1280 } | 1280 } |
| 1281 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, | 1281 FX_BOOL CPDFXFA_Document::_GetHValueByName(const CFX_ByteStringC& utf8Name, |
| 1282 FXJSE_HVALUE hValue, | 1282 FXJSE_HVALUE hValue, |
| 1283 IJS_Runtime* runTime) { | 1283 IJS_Runtime* runTime) { |
| 1284 return runTime->GetHValueByName(utf8Name, hValue); | 1284 return runTime->GetHValueByName(utf8Name, hValue); |
| 1285 } | 1285 } |
| OLD | NEW |