summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_pageobjectholder.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfapi/page/cpdf_pageobjectholder.h')
-rw-r--r--core/fpdfapi/page/cpdf_pageobjectholder.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/core/fpdfapi/page/cpdf_pageobjectholder.h b/core/fpdfapi/page/cpdf_pageobjectholder.h
index aee7617c1f..0b88a86518 100644
--- a/core/fpdfapi/page/cpdf_pageobjectholder.h
+++ b/core/fpdfapi/page/cpdf_pageobjectholder.h
@@ -8,6 +8,7 @@
#define CORE_FPDFAPI_PAGE_CPDF_PAGEOBJECTHOLDER_H_
#include <memory>
+#include <vector>
#include "core/fpdfapi/page/cpdf_pageobjectlist.h"
#include "core/fxcrt/fx_coordinates.h"
@@ -41,9 +42,11 @@ class CPDF_PageObjectHolder {
m_bBackgroundAlphaNeeded = needed;
}
- bool HasImageMask() const { return m_bHasImageMask; }
- void SetHasImageMask(bool value) { m_bHasImageMask = value; }
-
+ bool HasImageMask() const { return !m_MaskBoundingBoxes.empty(); }
+ const std::vector<CFX_FloatRect>& GetMaskBoundingBoxes() const {
+ return m_MaskBoundingBoxes;
+ }
+ void AddImageMaskBoundingBox(const CFX_FloatRect& box);
void Transform(const CFX_Matrix& matrix);
CFX_FloatRect CalcBoundingBox() const;
@@ -61,7 +64,7 @@ class CPDF_PageObjectHolder {
void LoadTransInfo();
bool m_bBackgroundAlphaNeeded;
- bool m_bHasImageMask;
+ std::vector<CFX_FloatRect> m_MaskBoundingBoxes;
ParseState m_ParseState;
std::unique_ptr<CPDF_ContentParser> m_pParser;
CPDF_PageObjectList m_PageObjectList;