| 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 42ce6cf622668590db098c89ec3fd8a3b9d03fd9..29d2b84025feca3b478974d43e9b7484218dcd2f 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
|
| @@ -204,8 +204,8 @@ void HTMLSlotElement::attributeChanged(
|
| if (params.name == nameAttr) {
|
| if (ShadowRoot* root = containingShadowRoot()) {
|
| if (root->isV1() && params.oldValue != params.newValue) {
|
| - root->ensureSlotAssignment().slotRenamed(
|
| - normalizeSlotName(params.oldValue), *this);
|
| + root->slotAssignment().slotRenamed(normalizeSlotName(params.oldValue),
|
| + *this);
|
| }
|
| }
|
| }
|
| @@ -232,7 +232,7 @@ Node::InsertionNotificationRequest HTMLSlotElement::insertedInto(
|
| // - 6.4: Run assign slotables for a tree with node's tree and a set
|
| // containing each inclusive descendant of node that is a slot.
|
| if (root->isV1() && !wasInShadowTreeBeforeInserted(*this, *insertionPoint))
|
| - root->ensureSlotAssignment().slotAdded(*this);
|
| + root->didAddSlot(*this);
|
| }
|
|
|
| // We could have been distributed into in a detached subtree, make sure to
|
| @@ -272,7 +272,7 @@ void HTMLSlotElement::removedFrom(ContainerNode* insertionPoint) {
|
|
|
| if (root && root->isV1() && root == insertionPoint->treeScope().rootNode()) {
|
| // This slot was in a shadow tree and got disconnected from the shadow root.
|
| - root->ensureSlotAssignment().slotRemoved(*this);
|
| + root->slotAssignment().slotRemoved(*this);
|
| }
|
|
|
| HTMLElement::removedFrom(insertionPoint);
|
| @@ -340,7 +340,7 @@ bool HTMLSlotElement::hasAssignedNodesSlow() const {
|
| ShadowRoot* root = containingShadowRoot();
|
| DCHECK(root);
|
| DCHECK(root->isV1());
|
| - SlotAssignment& assignment = root->ensureSlotAssignment();
|
| + SlotAssignment& assignment = root->slotAssignment();
|
| if (assignment.findSlotByName(name()) != this)
|
| return false;
|
| return assignment.findHostChildBySlotName(name());
|
| @@ -350,7 +350,7 @@ bool HTMLSlotElement::findHostChildWithSameSlotName() const {
|
| ShadowRoot* root = containingShadowRoot();
|
| DCHECK(root);
|
| DCHECK(root->isV1());
|
| - SlotAssignment& assignment = root->ensureSlotAssignment();
|
| + SlotAssignment& assignment = root->slotAssignment();
|
| return assignment.findHostChildBySlotName(name());
|
| }
|
|
|
|
|