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

Unified Diff: Source/core/paint/ViewPainter.cpp

Issue 1179263003: ViewPainter should skip painting if not inside painting subtree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | « LayoutTests/fast/images/resources/grid-transparent.png ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ViewPainter.cpp
diff --git a/Source/core/paint/ViewPainter.cpp b/Source/core/paint/ViewPainter.cpp
index 2af46f8b3073baa4bc497c7ae0df5421d4d30957..fd892d571a52e8ebc3a2a99f43c804adeaff4f20 100644
--- a/Source/core/paint/ViewPainter.cpp
+++ b/Source/core/paint/ViewPainter.cpp
@@ -31,6 +31,9 @@ void ViewPainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffs
void ViewPainter::paintBoxDecorationBackground(const PaintInfo& paintInfo)
{
+ if (!paintInfo.shouldPaintWithinRoot(&m_layoutView))
+ return;
+
if (paintInfo.skipRootBackground())
return;
« no previous file with comments | « LayoutTests/fast/images/resources/grid-transparent.png ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698