| Index: third_party/WebKit/Source/core/paint/ReplacedPainter.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/ReplacedPainter.cpp b/third_party/WebKit/Source/core/paint/ReplacedPainter.cpp
|
| index 497b7ba7bfa76c020ca64078ecd5d9474a6cf7da..c718f642847a9f13a1fcc0554607cc4b0fa843d1 100644
|
| --- a/third_party/WebKit/Source/core/paint/ReplacedPainter.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/ReplacedPainter.cpp
|
| @@ -49,6 +49,9 @@
|
| if (paintInfo.phase != PaintPhaseForeground && paintInfo.phase != PaintPhaseSelection && !m_layoutReplaced.canHaveChildren() && paintInfo.phase != PaintPhaseClippingMask)
|
| return;
|
|
|
| + if (!paintInfo.shouldPaintWithinRoot(&m_layoutReplaced))
|
| + return;
|
| +
|
| if (paintInfo.phase == PaintPhaseSelection)
|
| if (m_layoutReplaced.selectionState() == SelectionNone)
|
| return;
|
|
|