Index: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
index 3a188a47a028e227f79a2b2afb899fb2b23fcd3c..0714d24c6258aadc85e16e1ef0bb245a42063d20 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp |
@@ -1108,7 +1108,7 @@ bool PaintLayerScrollableArea::hitTestOverflowControls(HitTestResult& result, co |
int resizeControlSize = max(resizeControlRect.height(), 0); |
if (hasVerticalScrollbar() && verticalScrollbar()->shouldParticipateInHitTesting()) { |
LayoutRect vBarRect(verticalScrollbarStart(0, box().size().width()), |
- box().borderTop(), |
+ LayoutUnit(box().borderTop()), |
verticalScrollbar()->width(), |
box().size().height() - (box().borderTop() + box().borderBottom()) - (hasHorizontalScrollbar() ? horizontalScrollbar()->height() : resizeControlSize)); |
if (vBarRect.contains(localPoint)) { |
@@ -1119,7 +1119,7 @@ bool PaintLayerScrollableArea::hitTestOverflowControls(HitTestResult& result, co |
resizeControlSize = max(resizeControlRect.width(), 0); |
if (hasHorizontalScrollbar() && horizontalScrollbar()->shouldParticipateInHitTesting()) { |
- LayoutRect hBarRect(horizontalScrollbarStart(0), |
+ LayoutRect hBarRect(horizontalScrollbarStart(LayoutUnit()), |
box().size().height() - box().borderBottom() - horizontalScrollbar()->height(), |
box().size().width() - (box().borderLeft() + box().borderRight()) - (hasVerticalScrollbar() ? verticalScrollbar()->width() : resizeControlSize), |
horizontalScrollbar()->height()); |
@@ -1316,7 +1316,7 @@ LayoutRect PaintLayerScrollableArea::scrollIntoView(const LayoutRect& rect, cons |
{ |
LayoutRect localExposeRect(box().absoluteToLocalQuad(FloatQuad(FloatRect(rect)), UseTransforms).boundingBox()); |
localExposeRect.move(-box().borderLeft(), -box().borderTop()); |
- LayoutRect layerBounds(0, 0, box().clientWidth(), box().clientHeight()); |
+ LayoutRect layerBounds(LayoutPoint(), LayoutSize(box().clientWidth(), box().clientHeight())); |
LayoutRect r = ScrollAlignment::getRectToExpose(layerBounds, localExposeRect, alignX, alignY); |
DoublePoint clampedScrollPosition = clampScrollPosition(scrollPositionDouble() + roundedIntSize(r.location())); |