Index: third_party/WebKit/Source/web/PageOverlay.cpp |
diff --git a/third_party/WebKit/Source/web/PageOverlay.cpp b/third_party/WebKit/Source/web/PageOverlay.cpp |
index 0bcd39ecea4e4abc914c178085ef8df605cfd0bd..cfe38dd2e34ae073f975f3a2c87d2624c40265f1 100644 |
--- a/third_party/WebKit/Source/web/PageOverlay.cpp |
+++ b/third_party/WebKit/Source/web/PageOverlay.cpp |
@@ -35,6 +35,7 @@ |
#include "platform/graphics/GraphicsContext.h" |
#include "platform/graphics/GraphicsLayer.h" |
#include "platform/graphics/GraphicsLayerClient.h" |
+#include "platform/graphics/GraphicsScreen.h" |
#include "public/platform/WebLayer.h" |
#include "public/web/WebViewClient.h" |
#include "web/WebDevToolsAgentImpl.h" |
@@ -103,7 +104,9 @@ IntRect PageOverlay::computeInterestRect(const GraphicsLayer* graphicsLayer, con |
void PageOverlay::paintContents(const GraphicsLayer* graphicsLayer, GraphicsContext& gc, GraphicsLayerPaintingPhase phase, const IntRect& interestRect) const |
{ |
- ASSERT(m_layer); |
+ WillPaintForDevice device(Page::screenId(m_viewImpl->page())); |
+ |
+ ASSERT(m_viewImpl->page() && m_layer); |
m_delegate->paintPageOverlay(*this, gc, interestRect.size()); |
} |