summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_pathobject.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-24 18:46:26 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-24 18:46:26 +0000
commite835574db56d3a59f444fa98318458d83ffe15a4 (patch)
tree35bf8f662045c75a645fbebaeef7e2cca3b440bb /core/fpdfapi/page/cpdf_pathobject.h
parent877e1e212794c6a43f6661198ac1b369fab975be (diff)
downloadpdfium-e835574db56d3a59f444fa98318458d83ffe15a4.tar.xz
Make CPDF_PathObject::m_Path private.
Change-Id: I5c42af8e9e2d6a60648d291153326aef04e4c49e Reviewed-on: https://pdfium-review.googlesource.com/c/44513 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_pathobject.h')
-rw-r--r--core/fpdfapi/page/cpdf_pathobject.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/core/fpdfapi/page/cpdf_pathobject.h b/core/fpdfapi/page/cpdf_pathobject.h
index e6e0d19de8..c2166b3277 100644
--- a/core/fpdfapi/page/cpdf_pathobject.h
+++ b/core/fpdfapi/page/cpdf_pathobject.h
@@ -27,20 +27,22 @@ class CPDF_PathObject final : public CPDF_PageObject {
void CalcBoundingBox();
+ bool stroke() const { return m_bStroke; }
+ void set_stroke(bool stroke) { m_bStroke = stroke; }
+
int filltype() const { return m_FillType; }
void set_filltype(int filltype) { m_FillType = filltype; }
- bool stroke() const { return m_bStroke; }
- void set_stroke(bool stroke) { m_bStroke = stroke; }
+ CPDF_Path& path() { return m_Path; }
+ const CPDF_Path& path() const { return m_Path; }
const CFX_Matrix& matrix() const { return m_Matrix; }
void set_matrix(const CFX_Matrix& matrix) { m_Matrix = matrix; }
- CPDF_Path m_Path;
-
private:
- int m_FillType = 0;
bool m_bStroke = false;
+ int m_FillType = 0;
+ CPDF_Path m_Path;
CFX_Matrix m_Matrix;
};