Add CPDF_Path::AppendFloatRect().
Make it simpler for callers that already have a CFX_FloatRect to pass
in. Instead of making them pass in the 4 components of the rectangle.
This better aligns with the APIs offered by CFX_PathData, which
CPDF_Path uses. At the same time, rename the CFX_FloatRect version of
CFX_PathData::AppendRect() to avoid overloading.
Change-Id: I0bdd53a34ef8ecaa17a8442299a2a2fcbaa54b17
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/60850
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
diff --git a/core/fxge/cfx_pathdata.h b/core/fxge/cfx_pathdata.h
index 8a18d82..3fd57e2 100644
--- a/core/fxge/cfx_pathdata.h
+++ b/core/fxge/cfx_pathdata.h
@@ -62,7 +62,7 @@
bool IsRect(const CFX_Matrix* pMatrix, CFX_FloatRect* rect) const;
void Append(const CFX_PathData* pSrc, const CFX_Matrix* pMatrix);
- void AppendRect(const CFX_FloatRect& rect);
+ void AppendFloatRect(const CFX_FloatRect& rect);
void AppendRect(float left, float bottom, float right, float top);
void AppendLine(const CFX_PointF& pt1, const CFX_PointF& pt2);
void AppendPoint(const CFX_PointF& point, FXPT_TYPE type, bool closeFigure);