| OLD | NEW |
| 1 // Copyright 2016 The PDFium Authors. All rights reserved. | 1 // Copyright 2016 The 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 #include <cstddef> | 5 #include <cstddef> |
| 6 #include <cstdint> | 6 #include <cstdint> |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "core/fxcrt/include/fx_basic.h" | 10 #include "core/fxcrt/include/fx_basic.h" |
| 11 #include "core/fxcrt/include/fx_system.h" | 11 #include "core/fxcrt/include/fx_system.h" |
| 12 #include "xfa/fxfa/parser/xfa_parser.h" | |
| 13 #include "xfa/fxfa/parser/xfa_parser_imp.h" | 12 #include "xfa/fxfa/parser/xfa_parser_imp.h" |
| 14 | 13 |
| 15 namespace { | 14 namespace { |
| 16 | 15 |
| 17 CFDE_XMLNode* XFA_FDEExtension_GetDocumentNode( | 16 CFDE_XMLNode* XFA_FDEExtension_GetDocumentNode( |
| 18 CFDE_XMLDoc* pXMLDoc, | 17 CFDE_XMLDoc* pXMLDoc, |
| 19 FX_BOOL bVerifyWellFormness = FALSE) { | 18 FX_BOOL bVerifyWellFormness = FALSE) { |
| 20 if (!pXMLDoc) { | 19 if (!pXMLDoc) { |
| 21 return nullptr; | 20 return nullptr; |
| 22 } | 21 } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 if (!doc->LoadXML(parser.release())) | 60 if (!doc->LoadXML(parser.release())) |
| 62 return 0; | 61 return 0; |
| 63 | 62 |
| 64 int32_t load_result = doc->DoLoad(nullptr); | 63 int32_t load_result = doc->DoLoad(nullptr); |
| 65 if (load_result < 100) | 64 if (load_result < 100) |
| 66 return 0; | 65 return 0; |
| 67 | 66 |
| 68 (void)XFA_FDEExtension_GetDocumentNode(doc.get()); | 67 (void)XFA_FDEExtension_GetDocumentNode(doc.get()); |
| 69 return 0; | 68 return 0; |
| 70 } | 69 } |
| OLD | NEW |