Chromium Code Reviews| 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..916e02e6965e059540759da7b64d8bb327a0ec79 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 needs to call updateDistribution(). |
|
kochi
2016/12/09 08:29:04
s/needs/need/
|
| 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 needs to call updateDistribution(). |
|
kochi
2016/12/09 08:29:04
Ditto.
|
| if (ShadowRoot* root = v1ShadowRootOfParent()) { |
| if (root->type() == ShadowRootType::Open) |
| return root->ensureSlotAssignment().findSlot(*this); |