diff options
author | Lei Zhang <thestig@chromium.org> | 2018-10-05 22:18:32 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-10-05 22:18:32 +0000 |
commit | a0032a2a2c53794bbf0ccb412a5c70ce66f052fb (patch) | |
tree | 6de942a596e722095d1ac933c7ef4e04254dba8a /core/fpdfapi/render | |
parent | 90ad6b38f2cf4f32ba705659e0fa5f18274dad62 (diff) | |
download | pdfium-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/render')
-rw-r--r-- | core/fpdfapi/render/cpdf_renderstatus.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/fpdfapi/render/cpdf_renderstatus.cpp b/core/fpdfapi/render/cpdf_renderstatus.cpp index 7d78253ea6..19fea76d70 100644 --- a/core/fpdfapi/render/cpdf_renderstatus.cpp +++ b/core/fpdfapi/render/cpdf_renderstatus.cpp @@ -1121,7 +1121,7 @@ bool CPDF_RenderStatus::ContinueSingleObject(CPDF_PageObject* pObj, FX_RECT CPDF_RenderStatus::GetObjectClippedRect( const CPDF_PageObject* pObj, const CFX_Matrix& mtObj2Device) const { - FX_RECT rect = pObj->GetBBox(&mtObj2Device); + FX_RECT rect = pObj->GetTransformedBBox(mtObj2Device); rect.Intersect(m_pDevice->GetClipBox()); return rect; } @@ -1405,7 +1405,7 @@ bool CPDF_RenderStatus::ClipPattern(const CPDF_PageObject* pPageObj, if (pPageObj->IsPath()) return SelectClipPath(pPageObj->AsPath(), mtObj2Device, bStroke); if (pPageObj->IsImage()) { - m_pDevice->SetClip_Rect(pPageObj->GetBBox(&mtObj2Device)); + m_pDevice->SetClip_Rect(pPageObj->GetTransformedBBox(mtObj2Device)); return true; } return false; @@ -1514,7 +1514,7 @@ bool CPDF_RenderStatus::ProcessTransparency(CPDF_PageObject* pPageObj, } return true; } - FX_RECT rect = pPageObj->GetBBox(&mtObj2Device); + FX_RECT rect = pPageObj->GetTransformedBBox(mtObj2Device); rect.Intersect(m_pDevice->GetClipBox()); if (rect.IsEmpty()) return true; @@ -2138,7 +2138,7 @@ void CPDF_RenderStatus::DrawShadingPattern(CPDF_ShadingPattern* pattern, void CPDF_RenderStatus::ProcessShading(const CPDF_ShadingObject* pShadingObj, const CFX_Matrix& mtObj2Device) { - FX_RECT rect = pShadingObj->GetBBox(&mtObj2Device); + FX_RECT rect = pShadingObj->GetTransformedBBox(mtObj2Device); FX_RECT clip_box = m_pDevice->GetClipBox(); rect.Intersect(clip_box); if (rect.IsEmpty()) |