summaryrefslogtreecommitdiff
path: root/xfa/fwl
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-08-22 09:29:03 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-08-23 17:19:21 +0000
commit978b1fabff13f7d1a22d2653c117910939e3695e (patch)
tree189528609f18661933e52eb723c98244ede29944 /xfa/fwl
parent6c76d50dd9fdd19bdb9c5772ccd8c6d8ae590cad (diff)
downloadpdfium-978b1fabff13f7d1a22d2653c117910939e3695e.tar.xz
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 <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fwl')
-rw-r--r--xfa/fwl/cfwl_edit.cpp18
-rw-r--r--xfa/fwl/cfwl_edit.h2
2 files changed, 0 insertions, 20 deletions
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<IFDE_TxtEdtDoRecord> pRecord) {
AddDoRecord(std::move(pRecord));
}
diff --git a/xfa/fwl/cfwl_edit.h b/xfa/fwl/cfwl_edit.h
index c0583cd7af..4a30904b0a 100644
--- a/xfa/fwl/cfwl_edit.h
+++ b/xfa/fwl/cfwl_edit.h
@@ -94,8 +94,6 @@ class CFWL_Edit : public CFWL_Widget {
void OnCaretChanged();
void OnTextChanged(const CFX_WideString& prevText);
void OnSelChanged();
- bool OnPageLoad(int32_t nPageIndex);
- bool OnPageUnload(int32_t nPageIndex);
void OnAddDoRecord(std::unique_ptr<IFDE_TxtEdtDoRecord> pRecord);
bool OnValidate(const CFX_WideString& wsText);
void SetScrollOffset(float fScrollOffset);