From 69ad278881f83a1f8cf45d5a42a88752c0871c7e Mon Sep 17 00:00:00 2001 From: Jane Liu Date: Fri, 18 Aug 2017 14:42:58 -0400 Subject: 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 Reviewed-by: dsinclair --- core/fpdfapi/page/cpdf_streamcontentparser.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/fpdfapi') 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; } } -- cgit v1.2.3