summaryrefslogtreecommitdiff
path: root/xfa/fwl/theme/cfwl_checkboxtp.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-04-13 12:04:43 -0700
committerCommit bot <commit-bot@chromium.org>2016-04-13 12:04:43 -0700
commit380f20a6000bd640d7fd8f1567961f1f05d79f5a (patch)
treeba8dd6ef2825381171eca97a3b90de9fd7d9ed07 /xfa/fwl/theme/cfwl_checkboxtp.cpp
parenta654f0d0889c50d0995bd873c119ae75b0ab5a09 (diff)
downloadpdfium-380f20a6000bd640d7fd8f1567961f1f05d79f5a.tar.xz
Remove some FWL code.
Remove unused or ifdef'd code from FWL. Review URL: https://codereview.chromium.org/1874963002
Diffstat (limited to 'xfa/fwl/theme/cfwl_checkboxtp.cpp')
-rw-r--r--xfa/fwl/theme/cfwl_checkboxtp.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/xfa/fwl/theme/cfwl_checkboxtp.cpp b/xfa/fwl/theme/cfwl_checkboxtp.cpp
index 94f69a4389..39a19b7981 100644
--- a/xfa/fwl/theme/cfwl_checkboxtp.cpp
+++ b/xfa/fwl/theme/cfwl_checkboxtp.cpp
@@ -21,7 +21,6 @@
#define CHECKBOX_COLOR_BOXLT2 (ArgbEncode(255, 113, 111, 100))
#define CHECKBOX_COLOR_BOXRB1 (ArgbEncode(255, 241, 239, 226))
#define CHECKBOX_COLOR_BOXRB2 (ArgbEncode(255, 255, 255, 255))
-#define CHECKBOX_FXGE_CoordinatesAdjust
CFWL_CheckBoxTP::CFWL_CheckBoxTP() : m_pCheckPath(NULL) {
m_pThemeData = new CKBThemeData;
@@ -134,20 +133,12 @@ void CFWL_CheckBoxTP::DrawBoxBk(IFWL_Widget* pWidget,
pRect->height - CHECKBOX_SIZE_SIGNMARGIN * 2);
}
} else {
-#ifdef CHECKBOX_FXGE_CoordinatesAdjust
CFX_RectF rect(*pRect);
rect.Deflate(0, 0, 1, 1);
path.AddEllipse(rect);
-#else
- path.AddEllipse(*pRect);
-#endif
if (bClipSign) {
fillMode = FXFILL_ALTERNATE;
-#ifdef CHECKBOX_FXGE_CoordinatesAdjust
CFX_RectF rtClip(rect);
-#else
- CFX_RectF rtClip(*pRect);
-#endif
rtClip.Deflate(CHECKBOX_SIZE_SIGNMARGIN - 1,
CHECKBOX_SIZE_SIGNMARGIN - 1);
path.AddEllipse(rtClip);