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 b83e27e00f66abd9fdddf4c0e3b385d4bb351a60..5aad7f755841285c46b4aeb9ace8980f0c7075c0 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -706,8 +706,8 @@ |
layer()->updateTransformationMatrix(); |
} |
-LayoutUnit LayoutBox::logicalHeightWithVisibleOverflow() const { |
- if (!m_overflow || hasOverflowClip()) |
+LayoutUnit LayoutBox::logicalHeightIncludingOverflow() const { |
+ if (!m_overflow) |
return logicalHeight(); |
LayoutRect overflow = layoutOverflowRect(); |
if (style()->isHorizontalWritingMode()) |
@@ -4712,7 +4712,7 @@ |
return; |
LayoutUnit logicalTop = child.logicalTop(); |
- LayoutUnit logicalHeight = child.logicalHeightWithVisibleOverflow(); |
+ LayoutUnit logicalHeight = child.logicalHeightIncludingOverflow(); |
LayoutUnit spaceLeft = |
pageRemainingLogicalHeightForOffset(logicalTop, AssociateWithLatterPage); |
if (spaceLeft < logicalHeight) |
@@ -4729,7 +4729,7 @@ |
// to do this if there's a chance that we need to recalculate pagination |
// struts inside. |
if (LayoutUnit pageLogicalHeight = pageLogicalHeightForOffset(logicalTop)) { |
- LayoutUnit logicalHeight = child.logicalHeightWithVisibleOverflow(); |
+ LayoutUnit logicalHeight = child.logicalHeightIncludingOverflow(); |
LayoutUnit remainingSpace = pageRemainingLogicalHeightForOffset( |
logicalTop, AssociateWithLatterPage); |
if (child.offsetToNextPage()) { |