From e9adf0702e30800cdfaebce8cfacff7b444b4e79 Mon Sep 17 00:00:00 2001 From: "pkasting@chromium.org" Date: Mon, 8 Mar 2010 23:34:07 +0000 Subject: Replace lots of "int x, int y" with gfx::Point. Also use gfx::Size and gfx::Rect in a few more places. BUG=none TEST=none Review URL: http://codereview.chromium.org/669130 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40966 0039d316-1c4b-4281-b951-d872f2087c98 --- base/gfx/rect.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'base/gfx') diff --git a/base/gfx/rect.cc b/base/gfx/rect.cc index 961fa03..a3c6712 100644 --- a/base/gfx/rect.cc +++ b/base/gfx/rect.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -111,8 +111,7 @@ void Rect::Inset(int left, int top, int right, int bottom) { } void Rect::Offset(int horizontal, int vertical) { - set_x(x() + horizontal); - set_y(y() + vertical); + origin_.Offset(horizontal, vertical); } bool Rect::operator==(const Rect& other) const { -- cgit v1.1