| Index: sky/engine/core/rendering/RenderBox.cpp
|
| diff --git a/sky/engine/core/rendering/RenderBox.cpp b/sky/engine/core/rendering/RenderBox.cpp
|
| index 93c9ec88a7b4c83d5c3f3c34c7da05e0ef94b84e..97eec7cb6d3c5b4de5f4d20d1b092e637bc59590 100644
|
| --- a/sky/engine/core/rendering/RenderBox.cpp
|
| +++ b/sky/engine/core/rendering/RenderBox.cpp
|
| @@ -408,12 +408,6 @@ void RenderBox::scrollRectToVisible(const LayoutRect& rect, const ScrollAlignmen
|
| // Don't scroll to reveal an overflow layer that is restricted by the -webkit-line-clamp property.
|
| // This will prevent us from revealing text hidden by the slider in Safari RSS.
|
| newRect = layer()->scrollableArea()->exposeRect(rect, alignX, alignY);
|
| - } else if (!parentBox && canBeProgramaticallyScrolled()) {
|
| - if (FrameView* frameView = this->frameView()) {
|
| - LayoutRect viewRect = frameView->visibleContentRect();
|
| - LayoutRect r = ScrollAlignment::getRectToExpose(viewRect, rect, alignX, alignY);
|
| - frameView->setScrollPosition(roundedIntPoint(r.location()));
|
| - }
|
| }
|
|
|
| if (frame()->page()->autoscrollController().autoscrollInProgress())
|
|
|