summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app
diff options
context:
space:
mode:
authorjinming_wang <jinming_wang@foxitsoftware.com>2016-03-18 16:35:40 +0800
committerjinming_wang <jinming_wang@foxitsoftware.com>2016-03-18 16:35:40 +0800
commita1cef70c08a16e2b9d7ec14987a8b20660d83534 (patch)
treebaf5d5e71a2d33fca8793288e97e77a28a00f6ac /xfa/fxfa/app
parent900323a8857ce0d9f6a57e535cd864b0f649bb9c (diff)
downloadpdfium-a1cef70c08a16e2b9d7ec14987a8b20660d83534.tar.xz
Trigger page view event when re-layout is finished
BUG=pdfium:401 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1758553003 .
Diffstat (limited to 'xfa/fxfa/app')
-rw-r--r--xfa/fxfa/app/xfa_ffdocview.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/xfa/fxfa/app/xfa_ffdocview.cpp b/xfa/fxfa/app/xfa_ffdocview.cpp
index 082ca2bbaa..64d4b2375e 100644
--- a/xfa/fxfa/app/xfa_ffdocview.cpp
+++ b/xfa/fxfa/app/xfa_ffdocview.cpp
@@ -599,9 +599,13 @@ FX_BOOL CXFA_FFDocView::RunLayout() {
m_pXFADocLayout->DoLayout();
UnlockUpdate();
m_bInLayoutStatus = FALSE;
+ m_pDoc->GetDocProvider()->PageViewEvent(nullptr,
+ XFA_PAGEVIEWEVENT_StopLayout);
return TRUE;
}
m_bInLayoutStatus = FALSE;
+ m_pDoc->GetDocProvider()->PageViewEvent(nullptr,
+ XFA_PAGEVIEWEVENT_StopLayout);
UnlockUpdate();
return FALSE;
}