diff options
author | Tom Sepez <tsepez@chromium.org> | 2016-02-29 17:27:50 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2016-02-29 17:27:50 -0800 |
commit | 020fd8a9f715b7a0e9f9d9689245ebee1e2e7e18 (patch) | |
tree | 6cc766fc0414435079d2c96c59f44a7038ee16db /fpdfsdk/src/fxedit/fxet_pageobjs.cpp | |
parent | ac4b8361e7919c6188587b89cbfbb748b3079b5b (diff) | |
download | pdfium-020fd8a9f715b7a0e9f9d9689245ebee1e2e7e18.tar.xz |
Add CFX_FloatRect::ToFxRect().
R=dsinclair@chromium.org
Review URL: https://codereview.chromium.org/1752543002 .
Diffstat (limited to 'fpdfsdk/src/fxedit/fxet_pageobjs.cpp')
-rw-r--r-- | fpdfsdk/src/fxedit/fxet_pageobjs.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/fpdfsdk/src/fxedit/fxet_pageobjs.cpp b/fpdfsdk/src/fxedit/fxet_pageobjs.cpp index 63ab467ebe..6d091b7c19 100644 --- a/fpdfsdk/src/fxedit/fxet_pageobjs.cpp +++ b/fpdfsdk/src/fxedit/fxet_pageobjs.cpp @@ -100,9 +100,7 @@ void IFX_Edit::DrawUnderline(CFX_RenderDevice* pDevice, if (!rcClip.IsEmpty()) { CFX_FloatRect rcTemp = rcClip; pUser2Device->TransformRect(rcTemp); - pDevice->SetClip_Rect(FX_RECT((int32_t)rcTemp.left, (int32_t)rcTemp.top, - (int32_t)rcTemp.right, - (int32_t)rcTemp.bottom)); + pDevice->SetClip_Rect(rcTemp.ToFxRect()); } if (IFX_Edit_Iterator* pIterator = pEdit->GetIterator()) { @@ -171,9 +169,7 @@ void IFX_Edit::DrawEdit(CFX_RenderDevice* pDevice, if (!rcClip.IsEmpty()) { CFX_FloatRect rcTemp = rcClip; pUser2Device->TransformRect(rcTemp); - pDevice->SetClip_Rect(FX_RECT((int32_t)rcTemp.left, (int32_t)rcTemp.top, - (int32_t)rcTemp.right, - (int32_t)rcTemp.bottom)); + pDevice->SetClip_Rect(rcTemp.ToFxRect()); } if (IFX_Edit_Iterator* pIterator = pEdit->GetIterator()) { @@ -293,9 +289,7 @@ void IFX_Edit::DrawRichEdit(CFX_RenderDevice* pDevice, if (!rcClip.IsEmpty()) { CFX_FloatRect rcTemp = rcClip; pUser2Device->TransformRect(rcTemp); - pDevice->SetClip_Rect(FX_RECT((int32_t)rcTemp.left, (int32_t)rcTemp.top, - (int32_t)rcTemp.right, - (int32_t)rcTemp.bottom)); + pDevice->SetClip_Rect(rcTemp.ToFxRect()); } if (IFX_Edit_Iterator* pIterator = pEdit->GetIterator()) { |