Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1476)

Unified Diff: xfa/fwl/theme/cfwl_checkboxtp.cpp

Issue 1874963002: Remove some FWL code. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_caret.cpp ('k') | xfa/fwl/theme/cfwl_comboboxtp.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/theme/cfwl_checkboxtp.cpp
diff --git a/xfa/fwl/theme/cfwl_checkboxtp.cpp b/xfa/fwl/theme/cfwl_checkboxtp.cpp
index 94f69a43894cd5bfeee17c912a0d55b3d653c944..39a19b79810872b6839b242fa0952804ab3e0bf8 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);
« no previous file with comments | « xfa/fwl/lightwidget/cfwl_caret.cpp ('k') | xfa/fwl/theme/cfwl_comboboxtp.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698