summaryrefslogtreecommitdiff
path: root/xfa/fwl
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-16 16:34:38 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-16 21:16:18 +0000
commita016857bcee1a09e67bd34e895ef639a3946fa91 (patch)
tree1b6405404443a6f70496aaf8e21c31a6b5b3b89b /xfa/fwl
parent6551362bc0745049a36afe493c984a43e66ea7e4 (diff)
downloadpdfium-a016857bcee1a09e67bd34e895ef639a3946fa91.tar.xz
Simplify CFDE_TxtEdtEngine layout code
The three CFDE_TxtEdtEngine layout methods are always called in sequence. Update to only have a single Layout() method. Simplify the layout code to use existing helpers. Change-Id: I0f4d9714f231ca3cebf43579d215d97bd2fe525a Reviewed-on: https://pdfium-review.googlesource.com/11231 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fwl')
-rw-r--r--xfa/fwl/cfwl_edit.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/xfa/fwl/cfwl_edit.cpp b/xfa/fwl/cfwl_edit.cpp
index eb54375e29..9e38187ef8 100644
--- a/xfa/fwl/cfwl_edit.cpp
+++ b/xfa/fwl/cfwl_edit.cpp
@@ -726,9 +726,8 @@ void CFWL_Edit::UpdateEditLayout() {
if (pPage)
pPage->UnloadPage(nullptr);
- m_EdtEngine.StartLayout();
- m_EdtEngine.DoLayout();
- m_EdtEngine.EndLayout();
+ m_EdtEngine.Layout();
+
pPage = m_EdtEngine.GetPage(0);
if (pPage)
pPage->LoadPage(nullptr);