| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 4b4c6413ee03f3893f8eb26abed04fb044d1470f..f6dec24b0f7f9c040f9773aff97a43575d4f4910 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -1279,7 +1279,7 @@ void Element::attach(const AttachContext& context)
|
| // When a shadow root exists, it does the work of attaching the children.
|
| if (ElementShadow* shadow = this->shadow()) {
|
| parentPusher.push();
|
| - shadow->attach();
|
| + shadow->attach(context);
|
| } else if (firstChild())
|
| parentPusher.push();
|
|
|
| @@ -1318,8 +1318,8 @@ void Element::detach(const AttachContext& context)
|
| }
|
|
|
| if (ElementShadow* shadow = this->shadow()) {
|
| - detachChildrenIfNeeded();
|
| - shadow->detach();
|
| + detachChildrenIfNeeded(context);
|
| + shadow->detach(context);
|
| }
|
| ContainerNode::detach(context);
|
| }
|
|
|