| Index: Source/core/rendering/RenderObject.cpp
|
| diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
|
| index d6c298a73982a99d637007027bab4d7da285f2b1..ce7f7ad1b09b99be7bb9ca4d0021d31f3c0ead2c 100644
|
| --- a/Source/core/rendering/RenderObject.cpp
|
| +++ b/Source/core/rendering/RenderObject.cpp
|
| @@ -286,14 +286,12 @@ bool RenderObject::isLegend() const
|
|
|
| void RenderObject::setFlowThreadStateIncludingDescendants(FlowThreadState state)
|
| {
|
| - setFlowThreadState(state);
|
| -
|
| - for (RenderObject* child = firstChild(); child; child = child->nextSibling()) {
|
| - // If the child is a fragmentation context it already updated the descendants flag accordingly.
|
| - if (child->isRenderFlowThread())
|
| + for (RenderObject *object = this; object; object = object->nextInPreOrder(this)) {
|
| + // If object is a fragmentation context it already updated the descendants flag accordingly.
|
| + if (object->isRenderFlowThread())
|
| continue;
|
| - ASSERT(state != child->flowThreadState());
|
| - child->setFlowThreadStateIncludingDescendants(state);
|
| + ASSERT(state != object->flowThreadState());
|
| + object->setFlowThreadState(state);
|
| }
|
| }
|
|
|
|
|