| 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 8528d71253edfe1745b63b60d47b2ffeede3521e..3a35e3ba9aa5bc6b6fa18874789c470c31336bb2 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -575,9 +575,9 @@ void LayoutBox::scrollRectToVisible(const LayoutRect& rect, const ScrollAlignmen
|
| LayoutRect newRect = rectToScroll;
|
|
|
| bool restrictedByLineClamp = false;
|
| - if (parent()) {
|
| - parentBox = parent()->enclosingBox();
|
| - restrictedByLineClamp = !parent()->style()->lineClamp().isNone();
|
| + if (containingBlock()) {
|
| + parentBox = containingBlock();
|
| + restrictedByLineClamp = !containingBlock()->style()->lineClamp().isNone();
|
| }
|
|
|
| if (hasOverflowClip() && !restrictedByLineClamp) {
|
|
|