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

Unified Diff: sky/engine/core/frame/FrameView.cpp

Issue 957643002: Fix clipping of content outside the bounds of the window. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderBox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/frame/FrameView.cpp
diff --git a/sky/engine/core/frame/FrameView.cpp b/sky/engine/core/frame/FrameView.cpp
index a6ffeccc30b2c381c4439c562db3fad6fabf7efb..f27fbe0874c1c1caf7d16d8a4c704b09983752e4 100644
--- a/sky/engine/core/frame/FrameView.cpp
+++ b/sky/engine/core/frame/FrameView.cpp
@@ -647,15 +647,14 @@ void FrameView::paint(GraphicsContext* context, const IntRect& rect)
ASSERT(!m_isPainting);
m_isPainting = true;
- RenderLayer* rootLayer = renderView->layer();
-
#if ENABLE(ASSERT)
renderView->assertSubtreeIsLaidOut();
- RenderObject::SetLayoutNeededForbiddenScope forbidSetNeedsLayout(*rootLayer->renderer());
+ RenderObject::SetLayoutNeededForbiddenScope forbidSetNeedsLayout(*renderView);
#endif
- // TODO(ojan): Is this rect passed down correct or even needed?
- renderView->paintLayer(context, rootLayer, pixelSnappedIntRect(renderView->viewRect()));
+ LayerPaintingInfo paintingInfo(renderView->layer(),
+ pixelSnappedIntRect(renderView->viewRect()), LayoutSize());
+ renderView->paintLayer(context, paintingInfo);
m_isPainting = false;
m_lastPaintTime = currentTime();
« no previous file with comments | « no previous file | sky/engine/core/rendering/RenderBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698