diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-12-14 20:09:43 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-14 20:09:43 +0000 |
commit | 0821c95ee9f132f77f3670a7dbbf114a82a6b9a0 (patch) | |
tree | fd736c2764ee7b1e187995548a608ed431601ac7 /xfa/fxfa/cxfa_ffline.cpp | |
parent | dcbb8e53e604178dc97d12846ddbdef88be41297 (diff) | |
download | pdfium-0821c95ee9f132f77f3670a7dbbf114a82a6b9a0.tar.xz |
Fold CXFA_ValueData into CXFA_Value
The CXFA_ValueData class is a thin wrapper around the CXFA_Value, this
CL moves the methods from CXFA_ValueData into CXFA_Value.
Change-Id: I2c57e93e5c4675b82af71cf75f2dfc0fb12e4b20
Reviewed-on: https://pdfium-review.googlesource.com/21170
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffline.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffline.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xfa/fxfa/cxfa_ffline.cpp b/xfa/fxfa/cxfa_ffline.cpp index 1af7f4e705..fb2c98a1a9 100644 --- a/xfa/fxfa/cxfa_ffline.cpp +++ b/xfa/fxfa/cxfa_ffline.cpp @@ -6,6 +6,7 @@ #include "xfa/fxfa/cxfa_ffline.h" +#include "xfa/fxfa/parser/cxfa_value.h" #include "xfa/fxgraphics/cxfa_gecolor.h" #include "xfa/fxgraphics/cxfa_gepath.h" #include "xfa/fxgraphics/cxfa_graphics.h" @@ -84,11 +85,11 @@ void CXFA_FFLine::RenderWidget(CXFA_Graphics* pGS, if (!IsMatchVisibleStatus(dwStatus)) return; - CXFA_ValueData valueData = m_pDataAcc->GetFormValueData(); - if (!valueData.HasValidNode()) + CXFA_Value* value = m_pDataAcc->GetFormValue(); + if (!value) return; - CXFA_LineData lineData = valueData.GetLineData(); + CXFA_LineData lineData = value->GetLineData(); FX_ARGB lineColor = 0xFF000000; float fLineWidth = 1.0f; XFA_AttributeEnum iStrokeType = XFA_AttributeEnum::Unknown; |