summaryrefslogtreecommitdiff
path: root/core/fpdfapi/render/cpdf_renderstatus.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-04-09 20:19:55 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-04-09 20:19:55 +0000
commit40baf04a567236d51b26e2d94f0ed7f2694cfeb1 (patch)
treeb3656b2a4590e0aa877d2a66e662751143042ee2 /core/fpdfapi/render/cpdf_renderstatus.h
parent124abf5d68b9fe96bf8a95f239b77fdd47fdc556 (diff)
downloadpdfium-40baf04a567236d51b26e2d94f0ed7f2694cfeb1.tar.xz
Cleanup CPDF_RenderStatus::GetObjectClippedRect().
- Just return the rect directly and let the caller check for emptiness. - Get rid of a boolean parameter with always false argument. Change-Id: Ia33587db34c0a628047e59b7faa390c3ac57ec8a Reviewed-on: https://pdfium-review.googlesource.com/29971 Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdfapi/render/cpdf_renderstatus.h')
-rw-r--r--core/fpdfapi/render/cpdf_renderstatus.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/fpdfapi/render/cpdf_renderstatus.h b/core/fpdfapi/render/cpdf_renderstatus.h
index 44afa10f19..e5bd872b5c 100644
--- a/core/fpdfapi/render/cpdf_renderstatus.h
+++ b/core/fpdfapi/render/cpdf_renderstatus.h
@@ -153,10 +153,8 @@ class CPDF_RenderStatus {
const CPDF_GraphicStates* pPathObj,
bool bStroke);
FX_ARGB GetStrokeArgb(CPDF_PageObject* pObj) const;
- bool GetObjectClippedRect(const CPDF_PageObject* pObj,
- const CFX_Matrix* pObj2Device,
- bool bLogical,
- FX_RECT& rect) const;
+ FX_RECT GetObjectClippedRect(const CPDF_PageObject* pObj,
+ const CFX_Matrix* pObj2Device) const;
void GetScaledMatrix(CFX_Matrix& matrix) const;
static const int kRenderMaxRecursionDepth = 64;