| Index: Source/core/dom/shadow/ElementShadow.cpp
|
| diff --git a/Source/core/dom/shadow/ElementShadow.cpp b/Source/core/dom/shadow/ElementShadow.cpp
|
| index 790c9ab808afdd14fb2d01b1e4dacabd64d718f8..722b3559d1972b8babc63e58b07cdfbc71c67984 100644
|
| --- a/Source/core/dom/shadow/ElementShadow.cpp
|
| +++ b/Source/core/dom/shadow/ElementShadow.cpp
|
| @@ -276,21 +276,15 @@ void ElementShadow::distribute()
|
| if (!point->isActive())
|
| continue;
|
| if (point->hasTagName(HTMLNames::shadowTag)) {
|
| - if (!shadowInsertionPoint)
|
| - shadowInsertionPoint = toHTMLShadowElement(point);
|
| + ASSERT(!shadowInsertionPoint);
|
| + shadowInsertionPoint = toHTMLShadowElement(point);
|
| + shadowInsertionPoints.append(shadowInsertionPoint);
|
| } else {
|
| pool.distributeTo(point, this);
|
| if (ElementShadow* shadow = shadowWhereNodeCanBeDistributed(*point))
|
| shadow->setNeedsDistributionRecalc();
|
| }
|
| }
|
| - if (shadowInsertionPoint) {
|
| - shadowInsertionPoints.append(shadowInsertionPoint);
|
| - if (shadowInsertionPoint->hasChildNodes())
|
| - pool.populateChildren(*shadowInsertionPoint);
|
| - } else {
|
| - pool.clear();
|
| - }
|
| }
|
|
|
| for (size_t i = shadowInsertionPoints.size(); i > 0; --i) {
|
|
|