| Index: third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
|
| index 8b06af2b00db6562533cf9dc589dd73e74471493..d72d2566b16a9d200eab52df317fb430d950e859 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp
|
| @@ -608,6 +608,13 @@ PaintLayerPainter::PaintResult PaintLayerPainter::paintLayerWithTransform(
|
| unsigned pages =
|
| ceilf(view->documentRect().height() / view->pageLogicalHeight());
|
| LayoutPoint paginationOffset;
|
| +
|
| + // The fixed position object is offset from the top of the page, so remove
|
| + // any scroll offset.
|
| + LayoutPoint offsetFromRoot;
|
| + m_paintLayer.convertToLayerCoords(paintingInfo.rootLayer, offsetFromRoot);
|
| + paginationOffset -= offsetFromRoot - m_paintLayer.location();
|
| +
|
| for (unsigned i = 0; i < pages; i++) {
|
| PaintLayerFragment fragment;
|
| fragment.backgroundRect = paintingInfo.paintDirtyRect;
|
|
|