| 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 f3710f0d20314c96e033feab385d84e7201682cc..10ec40a2ef11f38e732dbcbab18b7d5092942b06 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
|
| @@ -1407,6 +1407,9 @@ void PaintLayerScrollableArea::resize(const PlatformEvent& evt, const LayoutSize
|
|
|
| LayoutRect PaintLayerScrollableArea::scrollIntoView(const LayoutRect& rect, const ScrollAlignment& alignX, const ScrollAlignment& alignY, ScrollType scrollType)
|
| {
|
| + if (maximumScrollPosition() == minimumScrollPosition())
|
| + return rect;
|
| +
|
| LayoutRect localExposeRect(box().absoluteToLocalQuad(FloatQuad(FloatRect(rect)), UseTransforms).boundingBox());
|
| localExposeRect.move(-box().borderLeft(), -box().borderTop());
|
| LayoutRect layerBounds(LayoutPoint(), LayoutSize(box().clientWidth(), box().clientHeight()));
|
|
|