summaryrefslogtreecommitdiff
path: root/xfa/fwl/theme
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-07 18:40:35 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-07 18:40:35 +0000
commit50132e522702dd016b83ed12e91d065357fe0b59 (patch)
treec766cd59b00885c8dd38b1e0ff2ba9e9ebde5c85 /xfa/fwl/theme
parente0d68541163e34cc61fcb7e7cb9f5a9887f45245 (diff)
downloadpdfium-50132e522702dd016b83ed12e91d065357fe0b59.tar.xz
Rename CXFA_Border to CXFA_BorderData
This CL renames CXFA_Border to CXFA_BorderData to make it clear it's part of the Data hierarchy. Change-Id: Icfe8dc07d527ba54413f073f5a444fb7b2a71271 Reviewed-on: https://pdfium-review.googlesource.com/17974 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fwl/theme')
-rw-r--r--xfa/fwl/theme/cfwl_edittp.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/xfa/fwl/theme/cfwl_edittp.cpp b/xfa/fwl/theme/cfwl_edittp.cpp
index 0300deaba4..c01d5c9158 100644
--- a/xfa/fwl/theme/cfwl_edittp.cpp
+++ b/xfa/fwl/theme/cfwl_edittp.cpp
@@ -21,10 +21,11 @@ CFWL_EditTP::~CFWL_EditTP() {}
void CFWL_EditTP::DrawBackground(CFWL_ThemeBackground* pParams) {
if (CFWL_Part::CombTextLine == pParams->m_iPart) {
CXFA_FFWidget* pWidget = XFA_ThemeGetOuterWidget(pParams->m_pWidget);
+ CXFA_BorderData borderUIData = pWidget->GetDataAcc()->GetUIBorderData();
FX_ARGB cr = 0xFF000000;
float fWidth = 1.0f;
- if (CXFA_Border borderUI = pWidget->GetDataAcc()->GetUIBorder()) {
- CXFA_Edge edge = borderUI.GetEdge(0);
+ if (borderUIData) {
+ CXFA_Edge edge = borderUIData.GetEdge(0);
if (edge) {
cr = edge.GetColor();
fWidth = edge.GetThickness();