| Index: sky/engine/core/rendering/RenderFlexibleBox.cpp
|
| diff --git a/sky/engine/core/rendering/RenderFlexibleBox.cpp b/sky/engine/core/rendering/RenderFlexibleBox.cpp
|
| index e2993816c2497fda12d369c38fa0cf50faea625d..d7dfbdba77f1618979c200bfe7648a91e1f05656 100644
|
| --- a/sky/engine/core/rendering/RenderFlexibleBox.cpp
|
| +++ b/sky/engine/core/rendering/RenderFlexibleBox.cpp
|
| @@ -258,11 +258,13 @@ void RenderFlexibleBox::appendChildFrameRects(ChildFrameRects& childFrameRects)
|
| }
|
| }
|
|
|
| -void RenderFlexibleBox::paintChildren(PaintInfo& paintInfo, const LayoutPoint& paintOffset)
|
| +void RenderFlexibleBox::paintChildren(PaintInfo& paintInfo, const LayoutPoint& paintOffset, Vector<RenderBox*>& layers)
|
| {
|
| for (RenderBox* child = m_orderIterator.first(); child; child = m_orderIterator.next()) {
|
| - if (!child->hasSelfPaintingLayer())
|
| - child->paint(paintInfo, paintOffset);
|
| + if (child->hasSelfPaintingLayer())
|
| + layers.append(child);
|
| + else
|
| + child->paint(paintInfo, paintOffset, layers);
|
| }
|
| }
|
|
|
|
|