summaryrefslogtreecommitdiff
path: root/core/fpdfapi/fpdf_page/cpdf_pathobject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/fpdf_page/cpdf_pathobject.cpp')
-rw-r--r--core/fpdfapi/fpdf_page/cpdf_pathobject.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/core/fpdfapi/fpdf_page/cpdf_pathobject.cpp b/core/fpdfapi/fpdf_page/cpdf_pathobject.cpp
index cfe7b48c8b..b62a5bd25a 100644
--- a/core/fpdfapi/fpdf_page/cpdf_pathobject.cpp
+++ b/core/fpdfapi/fpdf_page/cpdf_pathobject.cpp
@@ -21,11 +21,27 @@ CPDF_PathObject* CPDF_PathObject::Clone() const {
return obj;
}
+CPDF_PageObject::Type CPDF_PathObject::GetType() const {
+ return PATH;
+}
+
void CPDF_PathObject::Transform(const CFX_Matrix& matrix) {
m_Matrix.Concat(matrix);
CalcBoundingBox();
}
+bool CPDF_PathObject::IsPath() const {
+ return true;
+}
+
+CPDF_PathObject* CPDF_PathObject::AsPath() {
+ return this;
+}
+
+const CPDF_PathObject* CPDF_PathObject::AsPath() const {
+ return this;
+}
+
void CPDF_PathObject::CalcBoundingBox() {
if (m_Path.IsNull()) {
return;