Commit 409c8b73 authored by yurys@chromium.org's avatar yurys@chromium.org
Browse files

2010-02-16 Yury Semikhatsky <yurys@chromium.org>

        Not Reviewed, build fix.

        * platform/graphics/FloatRect.h:
        (WebCore::FloatRect::center): make conversion from float to int explicit so that compiler
        doesn't complain about that.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@54810 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent a14f6572
2010-02-16 Yury Semikhatsky <yurys@chromium.org>
Not Reviewed, build fix.
* platform/graphics/FloatRect.h:
(WebCore::FloatRect::center): make conversion from float to int explicit so that compiler
doesn't complain about that.
2010-02-15 Dan Bernstein <mitz@apple.com>
Reviewed by Simon Fraser.
......
......@@ -99,7 +99,7 @@ public:
float right() const { return x() + width(); }
float bottom() const { return y() + height(); }
FloatPoint center() const { return IntPoint(x() + width() / 2, y() + height() / 2); }
FloatPoint center() const { return IntPoint(static_cast<int>(x() + width() / 2), static_cast<int>(y() + height() / 2)); }
void move(const FloatSize& delta) { m_location += delta; }
void move(float dx, float dy) { m_location.move(dx, dy); }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment