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 a9c7a70153d49d47c19a290c795bdc87495ab167..6c0713b3ea2e6e0c76e7ee62499d338d6f8344c7 100644 |
| --- a/third_party/WebKit/Source/core/dom/Node.cpp |
| +++ b/third_party/WebKit/Source/core/dom/Node.cpp |
| @@ -2276,6 +2276,8 @@ PassRefPtrWillBeRawPtr<StaticNodeList> Node::getDestinationInsertionPoints() |
| HTMLSlotElement* Node::assignedSlot() const |
| { |
| ASSERT(!needsDistributionRecalc()); |
| + if (!isChildOfV1ShadowHost()) |
| + return nullptr; |
|
kochi
2016/03/04 04:16:30
isChildOfV1ShadowHost() is almost identical to lin
yuzuchan
2016/03/04 06:44:01
Done.
|
| if (ElementShadow* shadow = parentElementShadow()) { |
| if (shadow->isV1()) |
| return shadow->assignedSlotFor(*this); |