| Index: Source/WebCore/rendering/RenderLayer.cpp
|
| ===================================================================
|
| --- Source/WebCore/rendering/RenderLayer.cpp (revision 127544)
|
| +++ Source/WebCore/rendering/RenderLayer.cpp (working copy)
|
| @@ -1625,8 +1625,8 @@
|
| int maxX = scrollWidth() - box->pixelSnappedClientWidth();
|
| int maxY = scrollHeight() - box->pixelSnappedClientHeight();
|
|
|
| - int x = min(max(scrollOffset.width(), 0), maxX);
|
| - int y = min(max(scrollOffset.height(), 0), maxY);
|
| + int x = max(min(scrollOffset.width(), maxX), 0);
|
| + int y = max(min(scrollOffset.height(), maxY), 0);
|
| return IntSize(x, y);
|
| }
|
|
|
|
|