Index: third_party/WebKit/Source/core/paint/BlockPainter.cpp |
diff --git a/third_party/WebKit/Source/core/paint/BlockPainter.cpp b/third_party/WebKit/Source/core/paint/BlockPainter.cpp |
index 2b4339847337edd0eff8b1a6b2bb8a1b1e70aa64..1630fe9835c69fd003b7887f1be395cdd9319482 100644 |
--- a/third_party/WebKit/Source/core/paint/BlockPainter.cpp |
+++ b/third_party/WebKit/Source/core/paint/BlockPainter.cpp |
@@ -222,9 +222,8 @@ bool BlockPainter::intersectsPaintRect(const PaintInfo& paintInfo, const LayoutP |
Vector<LayoutRect> rects; |
m_layoutBlock.addElementVisualOverflowRects(rects, LayoutPoint()); |
overflowRect = unionRect(rects); |
- } else { |
- overflowRect = m_layoutBlock.visualOverflowRect(); |
} |
+ overflowRect.unite(m_layoutBlock.visualOverflowRect()); |
chrishtr
2016/05/25 20:09:40
Is this too big of a hammer for this issue?
chrishtr
2016/05/25 20:10:46
I guess it's just a performance optimization, so o
Xianzhu
2016/05/25 20:16:19
We can think of this as: when printing anonymous b
|
if (m_layoutBlock.hasOverflowModel() && m_layoutBlock.usesCompositedScrolling()) { |
overflowRect.unite(m_layoutBlock.layoutOverflowRect()); |