| Index: third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
|
| index 156689e76873104ff6fec7eaa50a98d24490e829..09c52acbaaa635dc7d8669b13e5c1fe44060155c 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
|
| @@ -198,7 +198,7 @@ Node::InsertionNotificationRequest HTMLSlotElement::insertedInto(ContainerNode*
|
| if (ShadowRoot* root = containingShadowRoot()) {
|
| if (ElementShadow* rootOwner = root->owner())
|
| rootOwner->setNeedsDistributionRecalc();
|
| - if (root == insertionPoint->treeScope().rootNode())
|
| + if (root == insertionPoint->treeScopeOrDocument().rootNode())
|
| root->didAddSlot();
|
| }
|
|
|
| @@ -222,7 +222,7 @@ void HTMLSlotElement::removedFrom(ContainerNode* insertionPoint)
|
| // Since this insertion point is no longer visible from the shadow subtree, it need to clean itself up.
|
| clearDistribution();
|
|
|
| - if (root == insertionPoint->treeScope().rootNode())
|
| + if (root == insertionPoint->treeScopeOrDocument().rootNode())
|
| root->didRemoveSlot();
|
|
|
| HTMLElement::removedFrom(insertionPoint);
|
|
|