summaryrefslogtreecommitdiff
path: root/core/fpdfapi/page/cpdf_pageobject.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-05 22:18:32 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-05 22:18:32 +0000
commita0032a2a2c53794bbf0ccb412a5c70ce66f052fb (patch)
tree6de942a596e722095d1ac933c7ef4e04254dba8a /core/fpdfapi/page/cpdf_pageobject.h
parent90ad6b38f2cf4f32ba705659e0fa5f18274dad62 (diff)
downloadpdfium-a0032a2a2c53794bbf0ccb412a5c70ce66f052fb.tar.xz
Remove optional matrix parameter from CPDF_PageObject::GetBBox().
Instead, add GetTransformedBBox() with a required matrix parameter and use that when the there is a matrix. Change-Id: I594f3eb6bc7e1bc3eb6aa9f66556ebb1dfdbebe1 Reviewed-on: https://pdfium-review.googlesource.com/c/43553 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_pageobject.h')
-rw-r--r--core/fpdfapi/page/cpdf_pageobject.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fpdfapi/page/cpdf_pageobject.h b/core/fpdfapi/page/cpdf_pageobject.h
index 3fc35aa063..1dfe20b6f9 100644
--- a/core/fpdfapi/page/cpdf_pageobject.h
+++ b/core/fpdfapi/page/cpdf_pageobject.h
@@ -60,7 +60,8 @@ class CPDF_PageObject : public CPDF_GraphicStates {
CFX_FloatRect GetRect() const {
return CFX_FloatRect(m_Left, m_Bottom, m_Right, m_Top);
}
- FX_RECT GetBBox(const CFX_Matrix* pMatrix) const;
+ FX_RECT GetBBox() const;
+ FX_RECT GetTransformedBBox(const CFX_Matrix& matrix) const;
// Get what content stream the object was parsed from in its page. This number
// is the index of the content stream in the "Contents" array, or 0 if there