[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.21-584-g1e41756
mitz at apple.com
mitz at apple.com
Fri Feb 26 22:21:39 UTC 2010
The following commit has been merged in the webkit-1.1 branch:
commit 47528f046d940e20f6ba3b53a97769416f33e72b
Author: mitz at apple.com <mitz at apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Wed Feb 17 00:08:06 2010 +0000
Allow FloatRect::center() to return fractional coordinates. It was
mistakenly converting to integers.
Reviewed by Simon Fraser.
* platform/graphics/FloatRect.h:
(WebCore::FloatRect::center):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54845 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index b544364..88ead79 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,13 @@
+2010-02-16 Dan Bernstein <mitz at apple.com>
+
+ Reviewed by Simon Fraser.
+
+ Allow FloatRect::center() to return fractional coordinates. It was
+ mistakenly converting to integers.
+
+ * platform/graphics/FloatRect.h:
+ (WebCore::FloatRect::center):
+
2010-02-16 Gavin Barraclough <barraclough at apple.com>
Reviewed by Oliver Hunt.
diff --git a/WebCore/platform/graphics/FloatRect.h b/WebCore/platform/graphics/FloatRect.h
index 7a4c1d5..b265121 100644
--- a/WebCore/platform/graphics/FloatRect.h
+++ b/WebCore/platform/graphics/FloatRect.h
@@ -99,7 +99,7 @@ public:
float right() const { return x() + width(); }
float bottom() const { return y() + height(); }
- FloatPoint center() const { return IntPoint(static_cast<int>(x() + width() / 2), static_cast<int>(y() + height() / 2)); }
+ FloatPoint center() const { return FloatPoint(x() + width() / 2, y() + height() / 2); }
void move(const FloatSize& delta) { m_location += delta; }
void move(float dx, float dy) { m_location.move(dx, dy); }
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list