Index: Source/core/rendering/RenderLayerScrollableArea.cpp |
diff --git a/Source/core/rendering/RenderLayerScrollableArea.cpp b/Source/core/rendering/RenderLayerScrollableArea.cpp |
index 308e7016e74a1e8f5cd0b1f9acb5855104f009e1..96ae508f9bd07b4068bda7fbdbb8f59d04f9550e 100644 |
--- a/Source/core/rendering/RenderLayerScrollableArea.cpp |
+++ b/Source/core/rendering/RenderLayerScrollableArea.cpp |
@@ -1381,6 +1381,9 @@ void RenderLayerScrollableArea::resize(const PlatformEvent& evt, const LayoutSiz |
LayoutRect RenderLayerScrollableArea::exposeRect(const LayoutRect& rect, const ScrollAlignment& alignX, const ScrollAlignment& alignY) |
{ |
LayoutRect localExposeRect(box().absoluteToLocalQuad(FloatQuad(FloatRect(rect)), UseTransforms).boundingBox()); |
+ if (box().borderTop() > 0) |
+ localExposeRect.setY(localExposeRect.y().toInt() - box().borderTop()); |
+ |
LayoutRect layerBounds(0, 0, box().clientWidth(), box().clientHeight()); |
pals
2014/09/24 12:31:36
What about borderLeft()? We should really change (
|
LayoutRect r = ScrollAlignment::getRectToExpose(layerBounds, localExposeRect, alignX, alignY); |