diff options
Diffstat (limited to 'Source/WebCore/dom/ClientRect.h')
-rw-r--r-- | Source/WebCore/dom/ClientRect.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/WebCore/dom/ClientRect.h b/Source/WebCore/dom/ClientRect.h index f9acef0..f739497 100644 --- a/Source/WebCore/dom/ClientRect.h +++ b/Source/WebCore/dom/ClientRect.h @@ -42,8 +42,8 @@ namespace WebCore { static PassRefPtr<ClientRect> create(const FloatRect& rect) { return adoptRef(new ClientRect(rect)); } float top() const { return m_rect.y(); } - float right() const { return m_rect.right(); } - float bottom() const { return m_rect.bottom(); } + float right() const { return m_rect.maxX(); } + float bottom() const { return m_rect.maxY(); } float left() const { return m_rect.x(); } float width() const { return m_rect.width(); } float height() const { return m_rect.height(); } |