summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_page/cpdf_pathobject.cpp
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-08-31 10:26:38 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-31 10:26:38 -0700
commit4d9df422c340b3bc33e044d3d94e1ff9582e1260 (patch)
tree8ad5a366cac2a11a133a7e7babd76497a737e554 /core/fpdfapi/fpdf_page/cpdf_pathobject.cpp
parent21ce1a68bb9f80bfbd4f295fd3b7181e56502fdc (diff)
downloadpdfium-4d9df422c340b3bc33e044d3d94e1ff9582e1260.tar.xz
Make CPDF_GraphState have a CPDF_GraphStateData instead of inheriting.
Get callers out of the copy-before-write business, and let the class manage it instead. Review-Url: https://codereview.chromium.org/2292363002
Diffstat (limited to 'core/fpdfapi/fpdf_page/cpdf_pathobject.cpp')
-rw-r--r--core/fpdfapi/fpdf_page/cpdf_pathobject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_pathobject.cpp b/core/fpdfapi/fpdf_page/cpdf_pathobject.cpp
index 0055d6a133..946d934edb 100644
--- a/core/fpdfapi/fpdf_page/cpdf_pathobject.cpp
+++ b/core/fpdfapi/fpdf_page/cpdf_pathobject.cpp
@@ -46,9 +46,9 @@ void CPDF_PathObject::CalcBoundingBox() {
if (!m_Path)
return;
CFX_FloatRect rect;
- FX_FLOAT width = m_GraphState.GetObject()->m_LineWidth;
+ FX_FLOAT width = m_GraphState.GetLineWidth();
if (m_bStroke && width != 0) {
- rect = m_Path.GetBoundingBox(width, m_GraphState.GetObject()->m_MiterLimit);
+ rect = m_Path.GetBoundingBox(width, m_GraphState.GetMiterLimit());
} else {
rect = m_Path.GetBoundingBox();
}