| 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 d931b496bd20ef11cbcad99442b624d6c6ef83d8..412d3ec37249776bd5b4a9fea972d32adf6edb5c 100644
|
| --- a/third_party/WebKit/Source/core/dom/Node.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Node.cpp
|
| @@ -613,7 +613,7 @@ void Node::markAncestorsWithChildNeedsDistributionRecalc()
|
| if (RuntimeEnabledFeatures::shadowDOMV1Enabled() && inShadowIncludingDocument() && !document().childNeedsDistributionRecalc()) {
|
| // TODO(hayato): Support a non-document composed tree.
|
| // TODO(hayato): Enqueue a task only if a 'slotchange' event listner is registered in the document composed tree.
|
| - Microtask::enqueueMicrotask(WTF::bind(&Document::updateDistribution, &document()));
|
| + Microtask::enqueueMicrotask(WTF::bind(&Document::updateDistribution, retainedRef(&document())));
|
| }
|
| for (Node* node = this; node && !node->childNeedsDistributionRecalc(); node = node->parentOrShadowHostNode())
|
| node->setChildNeedsDistributionRecalc();
|
|
|