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 9f6179739a6c1e7b78ccc6e93e37737c2f646e6a..ef054b92dd3e719ee167d0436dde99afdcc8f232 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp |
@@ -726,7 +726,7 @@ void LayoutBlock::layoutPositionedObjects(bool relayoutChildren, PositionedLayou |
} |
if (!positionedObject->needsLayout()) |
- positionedObject->markForPaginationRelayoutIfNeeded(layoutScope); |
+ markChildForPaginationRelayoutIfNeeded(*positionedObject, layoutScope); |
// FIXME: We should be able to do a r->setNeedsPositionedMovementLayout() here instead of a full layout. Need |
// to investigate why it does not trigger the correct invalidations in that case. crbug.com/350756 |
@@ -759,16 +759,6 @@ void LayoutBlock::markPositionedObjectsForLayout() |
} |
} |
-void LayoutBlock::markForPaginationRelayoutIfNeeded(SubtreeLayoutScope& layoutScope) |
-{ |
- ASSERT(!needsLayout()); |
- if (needsLayout()) |
- return; |
- |
- if (view()->layoutState()->pageLogicalHeightChanged() || (view()->layoutState()->pageLogicalHeight() && view()->layoutState()->pageLogicalOffset(*this, logicalTop()) != pageLogicalOffset())) |
- layoutScope.setChildNeedsLayout(this); |
-} |
- |
void LayoutBlock::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffset) const |
{ |
BlockPainter(*this).paint(paintInfo, paintOffset); |