| Index: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| index e3dcf99a3a100c0e08b393a95be98d222ffef892..49ac850229fd9d192345a3dd47b76d2dffbceb3e 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp
|
| @@ -306,6 +306,7 @@ void GraphicsLayer::paint(GraphicsContext& context, const IntRect* interestRect)
|
| {
|
| ASSERT(interestRect || RuntimeEnabledFeatures::slimmingPaintSynchronizedPaintingEnabled());
|
| ASSERT(drawsContent());
|
| + ASSERT(&context.paintController() == m_paintController);
|
|
|
| if (!m_client)
|
| return;
|
| @@ -313,7 +314,7 @@ void GraphicsLayer::paint(GraphicsContext& context, const IntRect* interestRect)
|
| m_debugInfo.clearAnnotatedInvalidateRects();
|
| incrementPaintCount();
|
| #ifndef NDEBUG
|
| - if (m_paintController && contentsOpaque() && s_drawDebugRedFill) {
|
| + if (contentsOpaque() && s_drawDebugRedFill) {
|
| FloatRect rect(FloatPoint(), size());
|
| if (!DrawingRecorder::useCachedDrawingIfPossible(context, *this, DisplayItem::DebugRedFill)) {
|
| DrawingRecorder recorder(context, *this, DisplayItem::DebugRedFill, rect);
|
|
|