Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
index 2852e51bd4b59ce7431c9bd8e6d5d0a9d1c4897d..0d39ca0b9a45feeaf33205b959f5e4c410be1f59 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -455,7 +455,7 @@ int LayoutBox::pixelSnappedScrollWidth() const |
int LayoutBox::pixelSnappedScrollHeight() const |
{ |
if (hasOverflowClip()) |
- return layer()->scrollableArea()->scrollHeight(); |
+ return snapSizeToPixel(layer()->scrollableArea()->scrollHeight(), location().y() + clientTop()); |
// For objects with visible overflow, this matches IE. |
// FIXME: Need to work right with writing modes. |
return snapSizeToPixel(scrollHeight(), location().y() + clientTop()); |