| Index: third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp b/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp
|
| index 3010f8a588e2d2fe7a5cc9a80c13e7c2e958b692..2182314016934d332bf6b21c1225add627c39d3e 100644
|
| --- a/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/shadow/InsertionPoint.cpp
|
| @@ -201,7 +201,7 @@ Node::InsertionNotificationRequest InsertionPoint::insertedInto(ContainerNode* i
|
| if (ShadowRoot* root = containingShadowRoot()) {
|
| if (ElementShadow* rootOwner = root->owner()) {
|
| rootOwner->setNeedsDistributionRecalc();
|
| - if (canBeActive() && !m_registeredWithShadowRoot && insertionPoint->treeScope().rootNode() == root) {
|
| + if (canBeActive() && !m_registeredWithShadowRoot && insertionPoint->treeScopeOrDocument().rootNode() == root) {
|
| m_registeredWithShadowRoot = true;
|
| root->didAddInsertionPoint(this);
|
| if (canAffectSelector())
|
| @@ -234,7 +234,7 @@ void InsertionPoint::removedFrom(ContainerNode* insertionPoint)
|
| // Since this insertion point is no longer visible from the shadow subtree, it need to clean itself up.
|
| clearDistribution();
|
|
|
| - if (m_registeredWithShadowRoot && insertionPoint->treeScope().rootNode() == root) {
|
| + if (m_registeredWithShadowRoot && insertionPoint->treeScopeOrDocument().rootNode() == root) {
|
| DCHECK(root);
|
| m_registeredWithShadowRoot = false;
|
| root->didRemoveInsertionPoint(this);
|
|
|