| Index: third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
|
| index beb514fe4849554b3b0eb6c31fa82de33399386d..12eec94cb5b617d39bc22179f0aaa73672cff0c4 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp
|
| @@ -200,6 +200,18 @@ void HTMLSlotElement::DetachLayoutTree(const AttachContext& context) {
|
| HTMLElement::DetachLayoutTree(context);
|
| }
|
|
|
| +void HTMLSlotElement::RebuildDistributedChildrenLayoutTrees() {
|
| + if (!SupportsDistribution())
|
| + return;
|
| + Text* next_text_sibling = nullptr;
|
| + // This loop traverses the nodes from right to left for the same reason as the
|
| + // one described in ContainerNode::RebuildChildrenLayoutTrees().
|
| + for (auto it = distributed_nodes_.rbegin(); it != distributed_nodes_.rend();
|
| + ++it) {
|
| + RebuildLayoutTreeForChild(*it, next_text_sibling);
|
| + }
|
| +}
|
| +
|
| void HTMLSlotElement::AttributeChanged(
|
| const AttributeModificationParams& params) {
|
| if (params.name == nameAttr) {
|
|
|