diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-07 20:31:10 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-07 20:31:10 +0000 |
commit | 9fed656915010adf6003017bc2e3c353668f9dc5 (patch) | |
tree | 916fe24d3c07556f54f33c5107ffb924dd1b5fca /xfa/fxfa/cxfa_ffline.cpp | |
parent | 73c4b0fe5dd1e1924b2cd7b19910ef9d86dcc9ab (diff) | |
download | pdfium-9fed656915010adf6003017bc2e3c353668f9dc5.tar.xz |
Rename CXFA_Line to CXFA_LineData
This CL renames CXFA_Line to CXFA_LineData to make it clear the code is
part of the data hierarchy.
Change-Id: I8056a4afeea1340ee53dab697b6ea83c0e7b2eb4
Reviewed-on: https://pdfium-review.googlesource.com/17985
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffline.cpp')
-rw-r--r-- | xfa/fxfa/cxfa_ffline.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xfa/fxfa/cxfa_ffline.cpp b/xfa/fxfa/cxfa_ffline.cpp index cc52ce1763..a5e9441061 100644 --- a/xfa/fxfa/cxfa_ffline.cpp +++ b/xfa/fxfa/cxfa_ffline.cpp @@ -57,12 +57,12 @@ void CXFA_FFLine::RenderWidget(CXFA_Graphics* pGS, if (!value) return; - CXFA_Line lineObj = value.GetLine(); + CXFA_LineData lineData = value.GetLineData(); FX_ARGB lineColor = 0xFF000000; int32_t iStrokeType = 0; float fLineWidth = 1.0f; int32_t iCap = 0; - CXFA_EdgeData edgeData = lineObj.GetEdgeData(); + CXFA_EdgeData edgeData = lineData.GetEdgeData(); if (edgeData) { if (edgeData.GetPresence() != XFA_ATTRIBUTEENUM_Visible) return; @@ -80,9 +80,9 @@ void CXFA_FFLine::RenderWidget(CXFA_Graphics* pGS, if (CXFA_Margin mgWidget = m_pDataAcc->GetMargin()) XFA_RectWidthoutMargin(rtLine, mgWidget); - GetRectFromHand(rtLine, lineObj.GetHand(), fLineWidth); + GetRectFromHand(rtLine, lineData.GetHand(), fLineWidth); CXFA_Path linePath; - if (lineObj.GetSlope() && rtLine.right() > 0.0f && rtLine.bottom() > 0.0f) + if (lineData.GetSlope() && rtLine.right() > 0.0f && rtLine.bottom() > 0.0f) linePath.AddLine(rtLine.TopRight(), rtLine.BottomLeft()); else linePath.AddLine(rtLine.TopLeft(), rtLine.BottomRight()); |