| Index: third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp b/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp
|
| index de750fbb3a57b4ec1a9ca5ee39176e8f98de7165..1bca680144eec770a8294cfd465272502f9e75db 100644
|
| --- a/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/shadow/FlatTreeTraversal.cpp
|
| @@ -68,6 +68,9 @@
|
| : sibling->previousSibling())) {
|
| if (isHTMLSlotElement(*sibling)) {
|
| const HTMLSlotElement& slot = toHTMLSlotElement(*sibling);
|
| + if (!slot.supportsDistribution()) {
|
| + const_cast<HTMLSlotElement&>(slot).updateDistributedNodesManually();
|
| + }
|
| if (Node* found = (direction == TraversalDirectionForward
|
| ? slot.firstDistributedNode()
|
| : slot.lastDistributedNode()))
|
|
|