summaryrefslogtreecommitdiff
path: root/fxjs/xfa/cjx_layoutpseudomodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/xfa/cjx_layoutpseudomodel.cpp')
-rw-r--r--fxjs/xfa/cjx_layoutpseudomodel.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/fxjs/xfa/cjx_layoutpseudomodel.cpp b/fxjs/xfa/cjx_layoutpseudomodel.cpp
index ea842c78e0..4c460c8a41 100644
--- a/fxjs/xfa/cjx_layoutpseudomodel.cpp
+++ b/fxjs/xfa/cjx_layoutpseudomodel.cpp
@@ -92,7 +92,8 @@ CJS_Return CJX_LayoutPseudoModel::HWXY(
if (!pDocLayout)
return CJS_Return();
- CXFA_LayoutItem* pLayoutItem = pDocLayout->GetLayoutItem(pNode);
+ CXFA_ContentLayoutItem* pLayoutItem =
+ ToContentLayoutItem(pDocLayout->GetLayoutItem(pNode));
if (!pLayoutItem)
return CJS_Return();
@@ -195,7 +196,8 @@ CJS_Return CJX_LayoutPseudoModel::pageSpan(
if (!pDocLayout)
return CJS_Return();
- CXFA_LayoutItem* pLayoutItem = pDocLayout->GetLayoutItem(pNode);
+ CXFA_ContentLayoutItem* pLayoutItem =
+ ToContentLayoutItem(pDocLayout->GetLayoutItem(pNode));
if (!pLayoutItem)
return CJS_Return(runtime->NewNumber(-1));
@@ -473,7 +475,8 @@ CJS_Return CJX_LayoutPseudoModel::PageInternals(
if (!pDocLayout)
return CJS_Return();
- CXFA_LayoutItem* pLayoutItem = pDocLayout->GetLayoutItem(pNode);
+ CXFA_ContentLayoutItem* pLayoutItem =
+ ToContentLayoutItem(pDocLayout->GetLayoutItem(pNode));
if (!pLayoutItem)
return CJS_Return(runtime->NewNumber(-1));