summaryrefslogtreecommitdiff
path: root/fpdfsdk/fxedit/fxet_list.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-07-20 12:28:06 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-20 20:57:41 +0000
commitedd481bdfecae75042cb6daefa7bf2ff0a445677 (patch)
treedccdd6f7e43e4b392fe2a2341142d813748dc157 /fpdfsdk/fxedit/fxet_list.cpp
parent1a44cb4be8b60b706990cf8113abea6937aa1653 (diff)
downloadpdfium-edd481bdfecae75042cb6daefa7bf2ff0a445677.tar.xz
Remove CLST_Rect and replace with CFX_FloatRect.
This CL removes the CLST_Rect and uses CFX_FloatRect directly. The constructor params for CLST_Rect were (left, top, right, bottom) and CFX_FloatRect (left, bottom, right, top) so the usages have been flipped. Change-Id: I78bb2927c4ff9d5ad6d28099dd08a5bdda7646b0 Reviewed-on: https://pdfium-review.googlesource.com/8432 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/fxedit/fxet_list.cpp')
-rw-r--r--fpdfsdk/fxedit/fxet_list.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/fpdfsdk/fxedit/fxet_list.cpp b/fpdfsdk/fxedit/fxet_list.cpp
index 80f4fcc63e..6778122b7e 100644
--- a/fpdfsdk/fxedit/fxet_list.cpp
+++ b/fpdfsdk/fxedit/fxet_list.cpp
@@ -322,7 +322,7 @@ CFX_FloatRect CFX_ListCtrl::GetItemRectInternal(int32_t nIndex) const {
CFX_FloatRect rcItem = m_ListItems[nIndex]->GetRect();
rcItem.left = 0.0f;
rcItem.right = GetPlateRect().Width();
- return InnerToOuter(CLST_Rect(rcItem));
+ return InnerToOuter(rcItem);
}
int32_t CFX_ListCtrl::GetCaret() const {
@@ -519,11 +519,12 @@ void CFX_ListCtrl::ReArrange(int32_t nItemIndex) {
for (const auto& pListItem : m_ListItems) {
if (pListItem) {
float fListItemHeight = pListItem->GetItemHeight();
- pListItem->SetRect(CLST_Rect(0.0f, fPosY, 0.0f, fPosY + fListItemHeight));
+ pListItem->SetRect(
+ CFX_FloatRect(0.0f, fPosY + fListItemHeight, 0.0f, fPosY));
fPosY += fListItemHeight;
}
}
- SetContentRect(CLST_Rect(0.0f, 0.0f, 0.0f, fPosY));
+ SetContentRect(CFX_FloatRect(0.0f, fPosY, 0.0f, 0.0f));
SetScrollInfo();
}