diff options
Diffstat (limited to 'WebCore/platform/graphics/haiku/FloatRectHaiku.cpp')
-rw-r--r-- | WebCore/platform/graphics/haiku/FloatRectHaiku.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/WebCore/platform/graphics/haiku/FloatRectHaiku.cpp b/WebCore/platform/graphics/haiku/FloatRectHaiku.cpp index 67af3af..18fd94b 100644 --- a/WebCore/platform/graphics/haiku/FloatRectHaiku.cpp +++ b/WebCore/platform/graphics/haiku/FloatRectHaiku.cpp @@ -1,5 +1,6 @@ /* * Copyright (C) 2007 Ryan Leavengood <leavengood@gmail.com> + * Copyright (C) 2010 Stephan Aßmus <superstippi@gmx.de> * * All rights reserved. * @@ -35,13 +36,13 @@ namespace WebCore { FloatRect::FloatRect(const BRect& rect) : m_location(rect.LeftTop()) - , m_size(rect.Width(), rect.Height()) + , m_size(rect.Width() + 1, rect.Height() + 1) { } FloatRect::operator BRect() const { - return BRect(BPoint(x(), y()), BSize(width(), height())); + return BRect(BPoint(x(), y()), BSize(width() - 1, height() - 1)); } } // namespace WebCore |