Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Unified Diff: xfa/src/fwl/src/basewidget/fwl_editimp.cpp

Issue 1751093002: Replace FX_LPCRECT typedef with underlying types (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Remove one more default value. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/src/fgas/src/font/fx_gefont.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/src/fwl/src/basewidget/fwl_editimp.cpp
diff --git a/xfa/src/fwl/src/basewidget/fwl_editimp.cpp b/xfa/src/fwl/src/basewidget/fwl_editimp.cpp
index 4cbf92ba7bc10576729d073bc4ead8cccf3c8cf1..74c7ef21fe361f868fa5d3b5ef632e4270a2c1c9 100644
--- a/xfa/src/fwl/src/basewidget/fwl_editimp.cpp
+++ b/xfa/src/fwl/src/basewidget/fwl_editimp.cpp
@@ -866,7 +866,7 @@ FX_BOOL CFWL_EditImp::On_PageLoad(IFDE_TxtEdtEngine* pEdit,
IFDE_TxtEdtPage* pPage = pEdtEngine->GetPage(nPageIndex);
if (!pPage)
return FALSE;
- pPage->LoadPage();
+ pPage->LoadPage(nullptr, nullptr);
return TRUE;
}
FX_BOOL CFWL_EditImp::On_PageUnload(IFDE_TxtEdtEngine* pEdit,
@@ -876,7 +876,7 @@ FX_BOOL CFWL_EditImp::On_PageUnload(IFDE_TxtEdtEngine* pEdit,
IFDE_TxtEdtPage* pPage = pEdtEngine->GetPage(nPageIndex);
if (!pPage)
return FALSE;
- pPage->UnloadPage();
+ pPage->UnloadPage(nullptr);
return TRUE;
}
@@ -1186,23 +1186,23 @@ void CFWL_EditImp::UpdateEditParams() {
params.pEventSink = this;
m_pEdtEngine->SetEditParams(params);
}
+
void CFWL_EditImp::UpdateEditLayout() {
- if (m_pEdtEngine->GetTextLength() <= 0) {
- m_pEdtEngine->SetTextByStream(NULL);
- }
+ if (m_pEdtEngine->GetTextLength() <= 0)
+ m_pEdtEngine->SetTextByStream(nullptr);
+
IFDE_TxtEdtPage* pPage = m_pEdtEngine->GetPage(0);
- if (pPage) {
- pPage->UnloadPage();
- pPage = NULL;
- }
+ if (pPage)
+ pPage->UnloadPage(nullptr);
+
m_pEdtEngine->StartLayout();
- m_pEdtEngine->DoLayout(NULL);
+ m_pEdtEngine->DoLayout(nullptr);
m_pEdtEngine->EndLayout();
pPage = m_pEdtEngine->GetPage(0);
- if (pPage) {
- pPage->LoadPage();
- }
+ if (pPage)
+ pPage->LoadPage(nullptr, nullptr);
}
+
FX_BOOL CFWL_EditImp::UpdateOffset() {
CFX_RectF rtCaret;
m_pEdtEngine->GetCaretRect(rtCaret);
« no previous file with comments | « xfa/src/fgas/src/font/fx_gefont.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698