Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: third_party/WebKit/Source/core/html/HTMLSlotElement.cpp

Issue 1604853004: Rename slot.getDistributedNodes() to slot.getAssingedNodes({flatten: true}). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: minor Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLSlotElement.h ('k') | third_party/WebKit/Source/core/html/HTMLSlotElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698