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

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

Issue 1180143003: Don't paint self-painting frameset frames in the layout tree paint recursion. (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
Index: Source/core/paint/FrameSetPainter.cpp
diff --git a/Source/core/paint/FrameSetPainter.cpp b/Source/core/paint/FrameSetPainter.cpp
index 48161d2f58b9ef17624cb951b96390fc94052296..f026f3fce0ab7f5dd86a0389916f394540ecb01e 100644
--- a/Source/core/paint/FrameSetPainter.cpp
+++ b/Source/core/paint/FrameSetPainter.cpp
@@ -115,6 +115,8 @@ void FrameSetPainter::paintChildren(const PaintInfo& paintInfo, const LayoutPoin
size_t cols = m_layoutFrameSet.columns().m_sizes.size();
for (size_t r = 0; r < rows; r++) {
for (size_t c = 0; c < cols; c++) {
+ if (child->isLayoutBoxModelObject() && toLayoutBoxModelObject(child)->hasSelfPaintingLayer())
wkorman 2015/06/12 19:14:48 Worth adding a comment on why we do this?
chrishtr 2015/06/12 19:57:28 Done.
+ continue;
child->paint(paintInfo, adjustedPaintOffset);
child = child->nextSibling();
if (!child)

Powered by Google App Engine
This is Rietveld 408576698