| Index: Source/WebCore/rendering/RenderBox.cpp
|
| ===================================================================
|
| --- Source/WebCore/rendering/RenderBox.cpp (revision 123231)
|
| +++ Source/WebCore/rendering/RenderBox.cpp (working copy)
|
| @@ -385,7 +385,7 @@
|
| // For objects with visible overflow, this matches IE.
|
| // FIXME: Need to work right with writing modes.
|
| if (style()->isLeftToRightDirection())
|
| - return snapSizeToPixel(max(clientWidth(), layoutOverflowRect().maxX() - borderLeft()), clientLeft());
|
| + return snapSizeToPixel(max(clientWidth(), layoutOverflowRect().maxX() - borderLeft()), x() + clientLeft());
|
| return clientWidth() - min(ZERO_LAYOUT_UNIT, layoutOverflowRect().x() - borderLeft());
|
| }
|
|
|
| @@ -395,7 +395,7 @@
|
| return layer()->scrollHeight();
|
| // For objects with visible overflow, this matches IE.
|
| // FIXME: Need to work right with writing modes.
|
| - return snapSizeToPixel(max(clientHeight(), layoutOverflowRect().maxY() - borderTop()), clientTop());
|
| + return snapSizeToPixel(max(clientHeight(), layoutOverflowRect().maxY() - borderTop()), y() + clientTop());
|
| }
|
|
|
| int RenderBox::scrollLeft() const
|
|
|