diff options
Diffstat (limited to 'Source/WebKit/chromium/src/DragScrollTimer.cpp')
-rw-r--r-- | Source/WebKit/chromium/src/DragScrollTimer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/WebKit/chromium/src/DragScrollTimer.cpp b/Source/WebKit/chromium/src/DragScrollTimer.cpp index 83b81b7..c994cd7 100644 --- a/Source/WebKit/chromium/src/DragScrollTimer.cpp +++ b/Source/WebKit/chromium/src/DragScrollTimer.cpp @@ -43,12 +43,12 @@ static IntSize distanceToRect(const IntPoint& point, const IntRect& rect) int dx = 0, dy = 0; if (point.x() < rect.x()) dx = point.x() - rect.x(); - else if (rect.right() < point.x()) - dx = point.x() - rect.right(); + else if (rect.maxX() < point.x()) + dx = point.x() - rect.maxX(); if (point.y() < rect.y()) dy = point.y() - rect.y(); - else if (rect.bottom() < point.y()) - dy = point.y() - rect.bottom(); + else if (rect.maxY() < point.y()) + dy = point.y() - rect.maxY(); return IntSize(dx, dy); } |