summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authoramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-23 19:48:17 +0000
committeramanda@chromium.org <amanda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-23 19:48:17 +0000
commit52e598fbfe4faa6eb42afa63914b404aae04729b (patch)
tree286bef5c9e7d126ffaee30d6792741c8b2b07d97 /base
parentf40e1c0596d2490c1f771ca1e8cd07cb09afd3be (diff)
downloadchromium_src-52e598fbfe4faa6eb42afa63914b404aae04729b.zip
chromium_src-52e598fbfe4faa6eb42afa63914b404aae04729b.tar.gz
chromium_src-52e598fbfe4faa6eb42afa63914b404aae04729b.tar.bz2
SkRect.fTop should be set to the y coordinate of a CGRect, not the x
Patch contributed by James Vega <vega.james@gmail.com>. Original review: http://codereview.chromium.org/3198 Review URL: http://codereview.chromium.org/4230 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2513 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/gfx/skia_utils_mac.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/gfx/skia_utils_mac.cc b/base/gfx/skia_utils_mac.cc
index f2bec90..d9ccb3f 100644
--- a/base/gfx/skia_utils_mac.cc
+++ b/base/gfx/skia_utils_mac.cc
@@ -12,7 +12,7 @@ namespace gfx {
SkIRect CGRectToSkIRect(const CGRect& rect) {
SkIRect sk_rect = {
SkScalarRound(rect.origin.x),
- SkScalarRound(rect.origin.x),
+ SkScalarRound(rect.origin.y),
SkScalarRound(rect.origin.x + rect.size.width),
SkScalarRound(rect.origin.y + rect.size.height)
};
@@ -22,7 +22,7 @@ SkIRect CGRectToSkIRect(const CGRect& rect) {
SkRect CGRectToSkRect(const CGRect& rect) {
SkRect sk_rect = {
rect.origin.x,
- rect.origin.x,
+ rect.origin.y,
rect.origin.x + rect.size.width,
rect.origin.y + rect.size.height,
};