From 4d9df422c340b3bc33e044d3d94e1ff9582e1260 Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 31 Aug 2016 10:26:38 -0700 Subject: 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 --- core/fpdfapi/fpdf_page/cpdf_pathobject.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fpdfapi/fpdf_page/cpdf_pathobject.cpp') 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(); } -- cgit v1.2.3