summaryrefslogtreecommitdiff
path: root/xfa/fxgraphics
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-08-16 19:35:12 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-08-17 18:29:54 +0000
commit86224fc1f74a27c3448961c91e10d4e3feb427e4 (patch)
treef759d9a24e26ddbf54eaa3b62eedc7c35a46190f /xfa/fxgraphics
parent9342b33ec0e2b43c0ee0b94bb70f2e981c263877 (diff)
downloadpdfium-86224fc1f74a27c3448961c91e10d4e3feb427e4.tar.xz
Remove default argument for CXFA_Graphics::SetLineWidth().
Change-Id: I6ea062bf5def0bc5fea7c52323198209dcf4c3e9 Reviewed-on: https://pdfium-review.googlesource.com/11110 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxgraphics')
-rw-r--r--xfa/fxgraphics/cxfa_graphics.cpp11
-rw-r--r--xfa/fxgraphics/cxfa_graphics.h3
2 files changed, 9 insertions, 5 deletions
diff --git a/xfa/fxgraphics/cxfa_graphics.cpp b/xfa/fxgraphics/cxfa_graphics.cpp
index 981c288b46..4975a83251 100644
--- a/xfa/fxgraphics/cxfa_graphics.cpp
+++ b/xfa/fxgraphics/cxfa_graphics.cpp
@@ -158,11 +158,14 @@ void CXFA_Graphics::SetLineDash(FX_DashStyle dashStyle) {
RenderDeviceSetLineDash(dashStyle);
}
-void CXFA_Graphics::SetLineWidth(float lineWidth, bool isActOnDash) {
- if (m_type == FX_CONTEXT_Device && m_renderDevice) {
+void CXFA_Graphics::SetLineWidth(float lineWidth) {
+ if (m_type == FX_CONTEXT_Device && m_renderDevice)
m_info.graphState.m_LineWidth = lineWidth;
- m_info.isActOnDash = isActOnDash;
- }
+}
+
+void CXFA_Graphics::EnableActOnDash() {
+ if (m_type == FX_CONTEXT_Device && m_renderDevice)
+ m_info.isActOnDash = true;
}
void CXFA_Graphics::SetStrokeColor(const CXFA_Color& color) {
diff --git a/xfa/fxgraphics/cxfa_graphics.h b/xfa/fxgraphics/cxfa_graphics.h
index 8069c8ecbd..05f9640ca8 100644
--- a/xfa/fxgraphics/cxfa_graphics.h
+++ b/xfa/fxgraphics/cxfa_graphics.h
@@ -56,7 +56,8 @@ class CXFA_Graphics {
void SetLineCap(CFX_GraphStateData::LineCap lineCap);
void SetLineDash(float dashPhase, float* dashArray, int32_t dashCount);
void SetLineDash(FX_DashStyle dashStyle);
- void SetLineWidth(float lineWidth, bool isActOnDash = false);
+ void SetLineWidth(float lineWidth);
+ void EnableActOnDash();
void SetStrokeColor(const CXFA_Color& color);
void SetFillColor(const CXFA_Color& color);
void SetClipRect(const CFX_RectF& rect);