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..1bb991963a5ab26d9b324a31554e501c4e62c994 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 (container()) { |
+ parentBox = container()->enclosingBox(); |
bokan
2016/09/15 20:54:41
I think we could use containingBlock rather than c
|
+ restrictedByLineClamp = !container()->style()->lineClamp().isNone(); |
} |
if (hasOverflowClip() && !restrictedByLineClamp) { |