| Index: third_party/WebKit/Source/core/paint/ObjectPainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/ObjectPainter.cpp b/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
|
| index 8f2770f6f91fba4fb92366ae299be0d370b2b08f..e60895de8f5e75ded19002a38198a80a971f6c12 100644
|
| --- a/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
|
| @@ -11,6 +11,7 @@
|
| #include "core/paint/BoxBorderPainter.h"
|
| #include "core/paint/LayoutObjectDrawingRecorder.h"
|
| #include "core/paint/PaintInfo.h"
|
| +#include "core/paint/PaintLayer.h"
|
| #include "core/style/BorderEdge.h"
|
| #include "core/style/ComputedStyle.h"
|
| #include "platform/geometry/LayoutPoint.h"
|
| @@ -714,11 +715,16 @@ void ObjectPainter::DoCheckPaintOffset(const PaintInfo& paint_info,
|
| LayoutPoint adjusted_paint_offset = paint_offset;
|
| if (layout_object_.IsBox())
|
| adjusted_paint_offset += ToLayoutBox(layout_object_).Location();
|
| - DCHECK(layout_object_.PaintOffset() == adjusted_paint_offset)
|
| - << " Paint offset mismatch: " << layout_object_.DebugName()
|
| - << " from PaintPropertyTreeBuilder: "
|
| - << layout_object_.PaintOffset().ToString()
|
| - << " from painter: " << adjusted_paint_offset.ToString();
|
| +
|
| + // Paint offsets don't apply to fragments other than the first,
|
| + // so disbale these checks for all paginated content.
|
| + if (!layout_object_.PaintingLayer()->EnclosingPaginationLayer()) {
|
| + DCHECK(layout_object_.PaintOffset() == adjusted_paint_offset)
|
| + << " Paint offset mismatch: " << layout_object_.DebugName()
|
| + << " from PaintPropertyTreeBuilder: "
|
| + << layout_object_.PaintOffset().ToString()
|
| + << " from painter: " << adjusted_paint_offset.ToString();
|
| + }
|
| }
|
| #endif
|
|
|
|
|