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

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

Issue 1422493003: Change Widget subclasses to use a CullRect instead of an IntRect for painting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/InspectorOverlay.cpp
diff --git a/third_party/WebKit/Source/web/InspectorOverlay.cpp b/third_party/WebKit/Source/web/InspectorOverlay.cpp
index 08ac0b79d51952b13c32ae68d922bd2cba3f2d63..5914390d4bf2d41418cefecdc1c1173e55d755d4 100644
--- a/third_party/WebKit/Source/web/InspectorOverlay.cpp
+++ b/third_party/WebKit/Source/web/InspectorOverlay.cpp
@@ -50,6 +50,7 @@
#include "platform/JSONValues.h"
#include "platform/ScriptForbiddenScope.h"
#include "platform/graphics/GraphicsContext.h"
+#include "platform/graphics/paint/CullRect.h"
#include "public/platform/Platform.h"
#include "public/platform/WebData.h"
#include "web/PageOverlay.h"
@@ -116,7 +117,7 @@ public:
GraphicsContext& graphicsContext = toWebGraphicsContextImpl(context)->graphicsContext();
FrameView* view = m_overlay->overlayMainFrame()->view();
ASSERT(!view->needsLayout());
- view->paint(&graphicsContext, IntRect(0, 0, view->width(), view->height()));
+ view->paint(&graphicsContext, CullRect(IntRect(0, 0, view->width(), view->height())));
}
private:

Powered by Google App Engine
This is Rietveld 408576698