Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Unified Diff: third_party/WebKit/Source/web/PageOverlay.cpp

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix CanvasRenderingContext2D::createPattern crash for #40 Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
}

Powered by Google App Engine
This is Rietveld 408576698