summaryrefslogtreecommitdiff
path: root/testing/xfa_js_embedder_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'testing/xfa_js_embedder_test.cpp')
-rw-r--r--testing/xfa_js_embedder_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/testing/xfa_js_embedder_test.cpp b/testing/xfa_js_embedder_test.cpp
index 995c0ed1d5..375497f9ea 100644
--- a/testing/xfa_js_embedder_test.cpp
+++ b/testing/xfa_js_embedder_test.cpp
@@ -44,7 +44,9 @@ void XFAJSEmbedderTest::TearDown() {
}
CXFA_Document* XFAJSEmbedderTest::GetXFADocument() {
- return UnderlyingFromFPDFDocument(document())->GetXFADoc()->GetXFADoc();
+ auto* pDoc = CPDFDocumentFromFPDFDocument(document());
+ auto* pContext = static_cast<CPDFXFA_Context*>(pDoc->GetExtension());
+ return pContext->GetXFADoc()->GetXFADoc();
}
bool XFAJSEmbedderTest::OpenDocumentWithOptions(