| Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| index fb69e1c146c2522bf28f2d37cf2e6a6876263e3e..d93a42d32c5850b99cdc8d87aeb5bba28dd22d4d 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| @@ -1410,7 +1410,13 @@ LayoutPoint PaintLayer::visualOffsetFromAncestor(const PaintLayer* ancestorLayer
|
|
|
| void PaintLayer::didUpdateNeedsCompositedScrolling()
|
| {
|
| + bool wasSelfPaintingLayer = m_isSelfPaintingLayer;
|
| updateSelfPaintingLayer();
|
| +
|
| + // If the floating object becomes non-self-painting, so some ancestor should paint it;
|
| + // if it becomes self-painting, it should paint itself and no ancestor should paint it.
|
| + if (wasSelfPaintingLayer != m_isSelfPaintingLayer && m_layoutObject->isFloating())
|
| + LayoutBlockFlow::setAncestorShouldPaintFloatingObject(*layoutBox(), wasSelfPaintingLayer);
|
| }
|
|
|
| void PaintLayer::updateReflectionInfo(const ComputedStyle* oldStyle)
|
|
|