summaryrefslogtreecommitdiff
path: root/xfa/fwl/theme/cfwl_carettp.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-07-13 13:51:04 -0400
committerChromium commit bot <commit-bot@chromium.org>2017-07-13 18:33:44 +0000
commitfe75997a8a8d7fc555d91c3aad595112a46ad7a2 (patch)
treed58bf413c2261ccd96820004dbaba71bd3ad2022 /xfa/fwl/theme/cfwl_carettp.cpp
parent334e79e15c271aeccacd65376e0050725d79d79d (diff)
downloadpdfium-fe75997a8a8d7fc555d91c3aad595112a46ad7a2.tar.xz
Rename cfx_color to cxfa_color
This CL renames CFX_Color to CXFA_Color. The class has some XFA specific things like shadings and patterns in it and doesn't make sense as the colour base class. Change-Id: I1d2230b9f03a1017777ce673419926429b769e7c Reviewed-on: https://pdfium-review.googlesource.com/7752 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fwl/theme/cfwl_carettp.cpp')
-rw-r--r--xfa/fwl/theme/cfwl_carettp.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fwl/theme/cfwl_carettp.cpp b/xfa/fwl/theme/cfwl_carettp.cpp
index 4a04f869f4..6d68ba283b 100644
--- a/xfa/fwl/theme/cfwl_carettp.cpp
+++ b/xfa/fwl/theme/cfwl_carettp.cpp
@@ -9,8 +9,8 @@
#include "xfa/fwl/cfwl_caret.h"
#include "xfa/fwl/cfwl_themebackground.h"
#include "xfa/fwl/cfwl_widget.h"
-#include "xfa/fxgraphics/cfx_color.h"
#include "xfa/fxgraphics/cfx_path.h"
+#include "xfa/fxgraphics/cxfa_color.h"
CFWL_CaretTP::CFWL_CaretTP() {}
CFWL_CaretTP::~CFWL_CaretTP() {}
@@ -25,7 +25,7 @@ void CFWL_CaretTP::DrawBackground(CFWL_ThemeBackground* pParams) {
return;
DrawCaretBK(pParams->m_pGraphics, pParams->m_dwStates,
- &(pParams->m_rtPart), (CFX_Color*)pParams->m_pData,
+ &(pParams->m_rtPart), (CXFA_Color*)pParams->m_pData,
&(pParams->m_matrix));
break;
}
@@ -37,7 +37,7 @@ void CFWL_CaretTP::DrawBackground(CFWL_ThemeBackground* pParams) {
void CFWL_CaretTP::DrawCaretBK(CFX_Graphics* pGraphics,
uint32_t dwStates,
const CFX_RectF* pRect,
- CFX_Color* crFill,
+ CXFA_Color* crFill,
CFX_Matrix* pMatrix) {
CFX_Path path;
CFX_RectF rect = *pRect;
@@ -45,7 +45,7 @@ void CFWL_CaretTP::DrawCaretBK(CFX_Graphics* pGraphics,
if (crFill) {
pGraphics->SetFillColor(crFill);
} else {
- CFX_Color crFilltemp(ArgbEncode(255, 0, 0, 0));
+ CXFA_Color crFilltemp(ArgbEncode(255, 0, 0, 0));
pGraphics->SetFillColor(&crFilltemp);
}
pGraphics->FillPath(&path, FXFILL_WINDING, pMatrix);