Chromium Code Reviews| Index: Source/core/paint/HTMLCanvasPainter.cpp |
| diff --git a/Source/core/paint/HTMLCanvasPainter.cpp b/Source/core/paint/HTMLCanvasPainter.cpp |
| index 22aaa1550189d105c16965350b57935a3ef85dc0..c0c476acac87b7dffc1aaf53436d78fb9a9f19d2 100644 |
| --- a/Source/core/paint/HTMLCanvasPainter.cpp |
| +++ b/Source/core/paint/HTMLCanvasPainter.cpp |
| @@ -27,6 +27,11 @@ void HTMLCanvasPainter::paintReplaced(const PaintInfo& paintInfo, const LayoutPo |
| if (drawingRecorder.canUseCachedDrawing()) |
| return; |
| +#if ENABLE(ASSERT) |
| + // The drawing may be in display list mode or image mode, producing different pictures for the same result. |
| + drawingRecorder.setUnderInvalidationCheckingMode(DrawingDisplayItem::CheckBitmap); |
|
chrishtr
2015/06/01 21:35:37
Indentation?
Xianzhu
2015/06/01 21:43:18
Isn't 4-space indent correct?
|
| +#endif |
| + |
| bool clip = !contentRect.contains(paintRect); |
| if (clip) { |
| context->save(); |