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 7a2de3f49ff4643be28474aea178b4ca40cb177a..b7e45c57e1d36fb1f30e3994c0ac702220103d82 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLSlotElement.cpp |
@@ -34,6 +34,7 @@ |
#include "core/dom/NodeTraversal.h" |
#include "core/dom/shadow/ElementShadow.h" |
#include "core/dom/shadow/InsertionPoint.h" |
+#include "core/html/AssignedNodesOptions.h" |
namespace blink { |
@@ -46,6 +47,14 @@ inline HTMLSlotElement::HTMLSlotElement(Document& document) |
DEFINE_NODE_FACTORY(HTMLSlotElement); |
+const WillBeHeapVector<RefPtrWillBeMember<Node>> HTMLSlotElement::getAssignedNodesForBinding(const AssignedNodesOptions& options) |
+{ |
+ updateDistribution(); |
+ if (options.hasFlatten() && options.flatten()) |
+ return getDistributedNodes(); |
+ return m_assignedNodes; |
+} |
+ |
void HTMLSlotElement::appendAssignedNode(Node& node) |
{ |
m_assignedNodes.append(&node); |