| Index: sky/engine/core/dom/Element.cpp
|
| diff --git a/sky/engine/core/dom/Element.cpp b/sky/engine/core/dom/Element.cpp
|
| index 7cb85c47be175f80c235353cded265ef4be8b1f0..8cee479481d6c5f667063c05603ef1021e9fc059 100644
|
| --- a/sky/engine/core/dom/Element.cpp
|
| +++ b/sky/engine/core/dom/Element.cpp
|
| @@ -801,6 +801,9 @@ void Element::attach(const AttachContext& context)
|
| {
|
| ASSERT(document().inStyleRecalc());
|
|
|
| + if (isInsertionPoint())
|
| + toInsertionPoint(this)->attachDistribution(context);
|
| +
|
| // We've already been through detach when doing an attach, but we might
|
| // need to clear any state that's been added since then.
|
| if (hasRareData() && styleChangeType() == NeedsReattachStyleChange) {
|
| @@ -826,6 +829,9 @@ void Element::attach(const AttachContext& context)
|
|
|
| void Element::detach(const AttachContext& context)
|
| {
|
| + if (isInsertionPoint())
|
| + toInsertionPoint(this)->detachDistribution(context);
|
| +
|
| if (hasRareData()) {
|
| ElementRareData* data = elementRareData();
|
|
|
|
|