| 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 9bb04a993e62ab288ebeb0f8cc56f97fcd5c7f9d..c62fdc8632f18da5600b4615ae6b90e0ad6d292d 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -5259,10 +5259,8 @@ LayoutUnit LayoutBox::offsetFromLogicalTopOfFirstPage() const {
|
| return LayoutUnit();
|
|
|
| if (layoutState->layoutObject() == this) {
|
| - LayoutSize offsetDelta =
|
| - layoutState->layoutOffset() - layoutState->pageOffset();
|
| - return isHorizontalWritingMode() ? offsetDelta.height()
|
| - : offsetDelta.width();
|
| + LayoutSize offset = layoutState->paginationOffset();
|
| + return isHorizontalWritingMode() ? offset.height() : offset.width();
|
| }
|
|
|
| // A LayoutBlock always establishes a layout state, and this method is only
|
|
|