Index: third_party/WebKit/Source/core/layout/LayoutState.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutState.cpp b/third_party/WebKit/Source/core/layout/LayoutState.cpp |
index 247523a81a2ab29ead727e91ddc1366f93aeb3f1..d9db8bc34f39908ab253dc8cb2251b3ca56f75c1 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutState.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutState.cpp |
@@ -47,7 +47,6 @@ LayoutState::LayoutState(LayoutUnit pageLogicalHeight, |
} |
LayoutState::LayoutState(LayoutBox& layoutObject, |
- const LayoutSize& offset, |
LayoutUnit pageLogicalHeight, |
bool pageLogicalHeightChanged, |
bool containingBlockLogicalWidthChanged) |
@@ -100,7 +99,8 @@ LayoutState::LayoutState(LayoutBox& layoutObject, |
layoutObject.style()->position() == FixedPosition; |
if (fixed) |
return; |
- m_paginationOffset = m_next->m_paginationOffset + offset; |
+ m_paginationOffset = |
+ m_next->m_paginationOffset + layoutObject.locationOffset(); |
if (!layoutObject.isOutOfFlowPositioned()) |
return; |
if (LayoutObject* container = layoutObject.container()) { |