From 978b1fabff13f7d1a22d2653c117910939e3695e Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 22 Aug 2017 09:29:03 -0400 Subject: Remove OnPageLoad and OnPageUnload from CFWL_Edit This CL updates the text edit engine to load and unload the page directly instead of calling through the edit widget. Change-Id: I636c8e8b0e635968222430098d3d268c75224b42 Reviewed-on: https://pdfium-review.googlesource.com/11590 Reviewed-by: Ryan Harrison Commit-Queue: dsinclair --- xfa/fwl/cfwl_edit.cpp | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'xfa/fwl/cfwl_edit.cpp') diff --git a/xfa/fwl/cfwl_edit.cpp b/xfa/fwl/cfwl_edit.cpp index 6e56ab2485..5ec9378f09 100644 --- a/xfa/fwl/cfwl_edit.cpp +++ b/xfa/fwl/cfwl_edit.cpp @@ -425,24 +425,6 @@ void CFWL_Edit::OnSelChanged() { RepaintRect(GetClientRect()); } -bool CFWL_Edit::OnPageLoad(int32_t nPageIndex) { - CFDE_TxtEdtPage* pPage = m_EdtEngine.GetPage(nPageIndex); - if (!pPage) - return false; - - pPage->LoadPage(); - return true; -} - -bool CFWL_Edit::OnPageUnload(int32_t nPageIndex) { - CFDE_TxtEdtPage* pPage = m_EdtEngine.GetPage(nPageIndex); - if (!pPage) - return false; - - pPage->UnloadPage(); - return true; -} - void CFWL_Edit::OnAddDoRecord(std::unique_ptr pRecord) { AddDoRecord(std::move(pRecord)); } -- cgit v1.2.3