Index: third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
index 0cea0eb22dae2576fade4e41ee74a0fa4bd7d5a5..272eef08d877bcfad0d5838c6bf47a33de0c1f11 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
@@ -1219,7 +1219,7 @@ void LayoutBlock::layoutPositionedObjects(bool relayoutChildren, PositionedLayou |
positionedObject->setPreferredLogicalWidthsDirty(MarkOnlyThis); |
LayoutUnit logicalTopEstimate; |
- bool needsBlockDirectionLocationSetBeforeLayout = isPaginated && !positionedObject->isUnsplittableForPagination(); |
+ bool needsBlockDirectionLocationSetBeforeLayout = isPaginated && positionedObject->paginationBreakability() != ForbidBreaks; |
if (needsBlockDirectionLocationSetBeforeLayout) { |
// Out-of-flow objects are normally positioned after layout (while in-flow objects are |
// positioned before layout). If the child object is paginated in the same context as |