summaryrefslogtreecommitdiff
path: root/core/fxge/cfx_pathdata.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-03-15 19:27:17 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-15 19:27:17 +0000
commit7d75650672a848428aaadb603b2814d33dfb479f (patch)
tree508d0c992231aa1a5faad16d7ebe1bf1c44c4d78 /core/fxge/cfx_pathdata.cpp
parent35841fa4e3dbf8f9146f78def048c4a287894a8a (diff)
downloadpdfium-7d75650672a848428aaadb603b2814d33dfb479f.tar.xz
Add a CFX_PathData::AppendRect() variant.chromium/3372
One that takes a CFX_FloatRect instead of LBRT floats. Use it where appropriate. Change-Id: I8ba19e86c61c91d8b4ef685b5cb65c8fb717f013 Reviewed-on: https://pdfium-review.googlesource.com/28581 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'core/fxge/cfx_pathdata.cpp')
-rw-r--r--core/fxge/cfx_pathdata.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/fxge/cfx_pathdata.cpp b/core/fxge/cfx_pathdata.cpp
index 4ac5cf6a7a..ac1ff42629 100644
--- a/core/fxge/cfx_pathdata.cpp
+++ b/core/fxge/cfx_pathdata.cpp
@@ -210,6 +210,10 @@ void CFX_PathData::AppendLine(const CFX_PointF& pt1, const CFX_PointF& pt2) {
AppendPoint(pt2, FXPT_TYPE::LineTo, false);
}
+void CFX_PathData::AppendRect(const CFX_FloatRect& rect) {
+ return AppendRect(rect.left, rect.bottom, rect.right, rect.top);
+}
+
void CFX_PathData::AppendRect(float left,
float bottom,
float right,