summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffwidget.h
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-16 19:17:25 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-01-16 19:17:25 +0000
commit7824b6348e956d9310192515f8fce22c9f14d40e (patch)
tree353b465433f46998c53c4f6c77be1063cc6fc159 /xfa/fxfa/cxfa_ffwidget.h
parentdb269577f5f033c083d10b6327cbd1e1e32feb05 (diff)
downloadpdfium-7824b6348e956d9310192515f8fce22c9f14d40e.tar.xz
Rename flag to make usage clearer
The CXFA_FFWidget::DrawBorderWithFlags method only takes one flag to force rounded drawing. This CL renames the int32_t flags to a simple bool to make the usage clear. Change-Id: I4fb552dc77ce76e35225b15d15f2edbb7f5dcf01 Reviewed-on: https://pdfium-review.googlesource.com/23010 Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffwidget.h')
-rw-r--r--xfa/fxfa/cxfa_ffwidget.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/xfa/fxfa/cxfa_ffwidget.h b/xfa/fxfa/cxfa_ffwidget.h
index 7c21903203..8ec92ef93f 100644
--- a/xfa/fxfa/cxfa_ffwidget.h
+++ b/xfa/fxfa/cxfa_ffwidget.h
@@ -71,9 +71,6 @@ void XFA_RectWithoutMargin(CFX_RectF& rt,
CXFA_FFWidget* XFA_GetWidgetFromLayoutItem(CXFA_LayoutItem* pLayoutItem);
bool XFA_IsCreateWidget(XFA_Element iType);
-#define XFA_DRAWBOX_ForceRound 1
-#define XFA_DRAWBOX_Lowered3D 2
-
class CXFA_CalcData {
public:
CXFA_CalcData();
@@ -172,11 +169,11 @@ class CXFA_FFWidget : public CXFA_ContentLayoutItem {
CXFA_Box* box,
const CFX_RectF& rtBorder,
const CFX_Matrix& matrix);
- void DrawBorderWithFlags(CXFA_Graphics* pGS,
- CXFA_Box* box,
- const CFX_RectF& rtBorder,
- const CFX_Matrix& matrix,
- uint32_t dwFlags);
+ void DrawBorderWithFlag(CXFA_Graphics* pGS,
+ CXFA_Box* box,
+ const CFX_RectF& rtBorder,
+ const CFX_Matrix& matrix,
+ bool forceRound);
CFX_RectF GetRectWithoutRotate();
bool IsMatchVisibleStatus(uint32_t dwStatus);