diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-07-20 12:01:21 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-07-20 20:56:41 +0000 |
commit | 1a44cb4be8b60b706990cf8113abea6937aa1653 (patch) | |
tree | 8b28718a965888f0f1bd59b6c1a508dde6fdb534 /fpdfsdk/fxedit/fxet_list.cpp | |
parent | 3f753f20e9c51f7170a616a355b3f9578505c0ee (diff) | |
download | pdfium-1a44cb4be8b60b706990cf8113abea6937aa1653.tar.xz |
Convert CFX_ListItem to use CFX_FloatRect
The CFX_ListItem never calls the Height() method so doesn't need to use
CLST_Rect. This CL removes unused methods from CLST_Rect and
CPVT_FloatRect.
Change-Id: I82d4f07ec104345e9275ccd838e3c8eed1de7a50
Reviewed-on: https://pdfium-review.googlesource.com/8431
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.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/fxedit/fxet_list.cpp b/fpdfsdk/fxedit/fxet_list.cpp index 0b1a2ac532..80f4fcc63e 100644 --- a/fpdfsdk/fxedit/fxet_list.cpp +++ b/fpdfsdk/fxedit/fxet_list.cpp @@ -38,11 +38,11 @@ CFX_Edit_Iterator* CFX_ListItem::GetIterator() const { return m_pEdit->GetIterator(); } -void CFX_ListItem::SetRect(const CLST_Rect& rect) { +void CFX_ListItem::SetRect(const CFX_FloatRect& rect) { m_rcListItem = rect; } -CLST_Rect CFX_ListItem::GetRect() const { +CFX_FloatRect CFX_ListItem::GetRect() const { return m_rcListItem; } @@ -559,7 +559,7 @@ int32_t CFX_ListCtrl::GetItemIndex(const CFX_PointF& point) const { for (const auto& pListItem : m_ListItems) { if (!pListItem) continue; - CLST_Rect rcListItem = pListItem->GetRect(); + CFX_FloatRect rcListItem = pListItem->GetRect(); if (IsFloatBigger(pt.y, rcListItem.top)) bFirst = false; if (IsFloatSmaller(pt.y, rcListItem.bottom)) |