diff options
author | Jane Liu <janeliulwq@google.com> | 2017-08-18 14:42:58 -0400 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-08-21 15:05:56 +0000 |
commit | 69ad278881f83a1f8cf45d5a42a88752c0871c7e (patch) | |
tree | 0118fe1b71175b3c5b2da9c49b33ef9a349f8444 /core/fpdfapi/page/cpdf_streamcontentparser.cpp | |
parent | 8c6dc95678810e3a054744a6a229606ac0d75134 (diff) | |
download | pdfium-69ad278881f83a1f8cf45d5a42a88752c0871c7e.tar.xz |
Converted CFX_FloatRect::{Init|Update}Rect() to take point objects
Converted CFX_FloatRect::Init() and CFX_FloatRect::UpdateRect() to take
in a CFX_PointF object instead of two coordinates.
Bug=pdfium:770
Change-Id: Ibcb620f192d6c086158c39f23c411777286005d0
Reviewed-on: https://pdfium-review.googlesource.com/11450
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'core/fpdfapi/page/cpdf_streamcontentparser.cpp')
-rw-r--r-- | core/fpdfapi/page/cpdf_streamcontentparser.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/fpdfapi/page/cpdf_streamcontentparser.cpp b/core/fpdfapi/page/cpdf_streamcontentparser.cpp index 1e6bf6c3c8..ca92b9efdf 100644 --- a/core/fpdfapi/page/cpdf_streamcontentparser.cpp +++ b/core/fpdfapi/page/cpdf_streamcontentparser.cpp @@ -114,9 +114,9 @@ CFX_FloatRect GetShadingBBox(CPDF_ShadingPattern* pShading, break; CFX_PointF origin = stream.ReadCoords(); if (bStarted) { - rect.UpdateRect(origin.x, origin.y); + rect.UpdateRect(origin); } else { - rect.InitRect(origin.x, origin.y); + rect.InitRect(origin); bStarted = true; } } |