summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/PWL_Edit.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-02-23 09:59:05 -0500
committerChromium commit bot <commit-bot@chromium.org>2017-02-23 15:26:17 +0000
commitfc54e054811510c3d7c8a9c6af6c90c3222c7029 (patch)
tree98025207bd4d1f397be489fe54c42b148cf40137 /fpdfsdk/pdfwindow/PWL_Edit.cpp
parenta0061afa12e0fec210727c9478adb8ac78c5d63c (diff)
downloadpdfium-fc54e054811510c3d7c8a9c6af6c90c3222c7029.tar.xz
Cleanup PWL_Utils.
This CL removes unused methods, moves methods to correct files and removes unused defines. Change-Id: I5087869b451e57d5325831814f0fa1c7f222cf4d Reviewed-on: https://pdfium-review.googlesource.com/2823 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Nicolás Peña <npm@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/pdfwindow/PWL_Edit.cpp')
-rw-r--r--fpdfsdk/pdfwindow/PWL_Edit.cpp19
1 files changed, 7 insertions, 12 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_Edit.cpp b/fpdfsdk/pdfwindow/PWL_Edit.cpp
index f96455e22d..1ba8e7d72f 100644
--- a/fpdfsdk/pdfwindow/PWL_Edit.cpp
+++ b/fpdfsdk/pdfwindow/PWL_Edit.cpp
@@ -341,10 +341,8 @@ void CPWL_Edit::DrawThisAppearance(CFX_RenderDevice* pDevice,
FXPT_TYPE::LineTo, false);
}
if (!path.GetPoints().empty()) {
- pDevice->DrawPath(
- &path, pUser2Device, &gsd, 0,
- CPWL_Utils::PWLColorToFXColor(GetBorderColor(), 255),
- FXFILL_ALTERNATE);
+ pDevice->DrawPath(&path, pUser2Device, &gsd, 0,
+ GetBorderColor().ToFXColor(255), FXFILL_ALTERNATE);
}
break;
}
@@ -373,10 +371,8 @@ void CPWL_Edit::DrawThisAppearance(CFX_RenderDevice* pDevice,
FXPT_TYPE::LineTo, false);
}
if (!path.GetPoints().empty()) {
- pDevice->DrawPath(
- &path, pUser2Device, &gsd, 0,
- CPWL_Utils::PWLColorToFXColor(GetBorderColor(), 255),
- FXFILL_ALTERNATE);
+ pDevice->DrawPath(&path, pUser2Device, &gsd, 0,
+ GetBorderColor().ToFXColor(255), FXFILL_ALTERNATE);
}
break;
}
@@ -394,10 +390,9 @@ void CPWL_Edit::DrawThisAppearance(CFX_RenderDevice* pDevice,
}
CFX_SystemHandler* pSysHandler = GetSystemHandler();
- CFX_Edit::DrawEdit(
- pDevice, pUser2Device, m_pEdit.get(),
- CPWL_Utils::PWLColorToFXColor(GetTextColor(), GetTransparency()), rcClip,
- CFX_PointF(), pRange, pSysHandler, m_pFormFiller);
+ CFX_Edit::DrawEdit(pDevice, pUser2Device, m_pEdit.get(),
+ GetTextColor().ToFXColor(GetTransparency()), rcClip,
+ CFX_PointF(), pRange, pSysHandler, m_pFormFiller);
}
bool CPWL_Edit::OnLButtonDown(const CFX_PointF& point, uint32_t nFlag) {