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

Unified Diff: third_party/WebKit/Source/core/paint/FramePainter.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/core/paint/FramePainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/FramePainter.cpp b/third_party/WebKit/Source/core/paint/FramePainter.cpp
index 29a03e8ca545293e5f7955865df3b2e55ca4cd58..0f222773c109aae59a5db8d655c65a0be852741c 100644
--- a/third_party/WebKit/Source/core/paint/FramePainter.cpp
+++ b/third_party/WebKit/Source/core/paint/FramePainter.cpp
@@ -27,11 +27,11 @@ namespace blink {
bool FramePainter::s_inPaintContents = false;
-void FramePainter::paint(GraphicsContext* context, const GlobalPaintFlags globalPaintFlags, const IntRect& rect)
+void FramePainter::paint(GraphicsContext* context, const GlobalPaintFlags globalPaintFlags, const CullRect& rect)
{
frameView().notifyPageThatContentAreaWillPaint();
- IntRect documentDirtyRect = rect;
+ IntRect documentDirtyRect = rect.m_rect;
IntRect visibleAreaWithoutScrollbars(frameView().location(), frameView().visibleContentRect().size());
documentDirtyRect.intersect(visibleAreaWithoutScrollbars);
@@ -47,7 +47,7 @@ void FramePainter::paint(GraphicsContext* context, const GlobalPaintFlags global
// Now paint the scrollbars.
if (!frameView().scrollbarsSuppressed() && (frameView().horizontalScrollbar() || frameView().verticalScrollbar())) {
- IntRect scrollViewDirtyRect = rect;
+ IntRect scrollViewDirtyRect = rect.m_rect;
IntRect visibleAreaWithScrollbars(frameView().location(), frameView().visibleContentRect(IncludeScrollbars).size());
scrollViewDirtyRect.intersect(visibleAreaWithScrollbars);
scrollViewDirtyRect.moveBy(-frameView().location());
@@ -184,7 +184,7 @@ void FramePainter::paintScrollbar(GraphicsContext* context, Scrollbar* bar, cons
context->fillRect(toFill, frameView().baseBackgroundColor());
}
- bar->paint(context, rect);
+ bar->paint(context, CullRect(rect));
}
const FrameView& FramePainter::frameView()
« no previous file with comments | « third_party/WebKit/Source/core/paint/FramePainter.h ('k') | third_party/WebKit/Source/core/paint/PaintInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698