| Index: third_party/WebKit/Source/core/dom/Node.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
|
| index d5feaa1f73d247f0c0df0b1925e500de1d7eb700..fce91f74a2247863f6b827301943423a61b5d212 100644
|
| --- a/third_party/WebKit/Source/core/dom/Node.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Node.cpp
|
| @@ -2300,6 +2300,7 @@ StaticNodeList* Node::getDestinationInsertionPoints() {
|
| }
|
|
|
| HTMLSlotElement* Node::assignedSlot() const {
|
| + // assignedSlot doesn't need to call updateDistribution().
|
| DCHECK(!isPseudoElement());
|
| if (ShadowRoot* root = v1ShadowRootOfParent())
|
| return root->ensureSlotAssignment().findSlot(*this);
|
| @@ -2307,7 +2308,7 @@ HTMLSlotElement* Node::assignedSlot() const {
|
| }
|
|
|
| HTMLSlotElement* Node::assignedSlotForBinding() {
|
| - updateDistribution();
|
| + // assignedSlot doesn't need to call updateDistribution().
|
| if (ShadowRoot* root = v1ShadowRootOfParent()) {
|
| if (root->type() == ShadowRootType::Open)
|
| return root->ensureSlotAssignment().findSlot(*this);
|
|
|