Chromium Code Reviews| Index: third_party/WebKit/Source/web/InspectorOverlay.cpp |
| diff --git a/third_party/WebKit/Source/web/InspectorOverlay.cpp b/third_party/WebKit/Source/web/InspectorOverlay.cpp |
| index 5914390d4bf2d41418cefecdc1c1173e55d755d4..d73cd21fa22b40b7bc0d4d96dae0a5a1a60421ba 100644 |
| --- a/third_party/WebKit/Source/web/InspectorOverlay.cpp |
| +++ b/third_party/WebKit/Source/web/InspectorOverlay.cpp |
| @@ -51,10 +51,10 @@ |
| #include "platform/ScriptForbiddenScope.h" |
| #include "platform/graphics/GraphicsContext.h" |
| #include "platform/graphics/paint/CullRect.h" |
| +#include "platform/graphics/paint/DisplayItemCacheSkipper.h" |
| #include "public/platform/Platform.h" |
| #include "public/platform/WebData.h" |
| #include "web/PageOverlay.h" |
| -#include "web/WebGraphicsContextImpl.h" |
| #include "web/WebInputEventConversion.h" |
| #include "web/WebLocalFrameImpl.h" |
| #include "web/WebViewImpl.h" |
| @@ -109,12 +109,13 @@ public: |
| PageOverlay::Delegate::trace(visitor); |
| } |
| - void paintPageOverlay(WebGraphicsContext* context, const WebSize& webViewSize) const override |
| + void paintPageOverlay(const PageOverlay&, GraphicsContext& graphicsContext, const WebSize& webViewSize) const override |
| { |
| if (m_overlay->isEmpty()) |
| return; |
| - GraphicsContext& graphicsContext = toWebGraphicsContextImpl(context)->graphicsContext(); |
| + // Skip cache because the following paint may conflict with the view's real painting. |
| + DisplayItemCacheSkipper cacheSkipper(graphicsContext); |
|
chrishtr
2016/05/05 16:10:43
I'm encountering this again in the context of inve
Xianzhu
2016/05/05 16:27:52
The comment seems a bit misleading. The real reaso
chrishtr
2016/05/05 16:30:07
But where does this PaintController come from? Isn
Xianzhu
2016/05/05 16:47:33
Read more code and I found I misunderstood Inspect
chrishtr
2016/05/05 16:53:04
Ok I'll put up a patch to remove this then.
|
| FrameView* view = m_overlay->overlayMainFrame()->view(); |
| ASSERT(!view->needsLayout()); |
| view->paint(&graphicsContext, CullRect(IntRect(0, 0, view->width(), view->height()))); |