Skip to content
Permalink
Browse files
Remove unneeded check in HTMLSlotElement::assignedNodes()
https://bugs.webkit.org/show_bug.cgi?id=240340

Reviewed by Ryosuke Niwa.

* html/HTMLSlotElement.cpp:
(WebCore::HTMLSlotElement::assignedNodes const):

Canonical link: https://commits.webkit.org/250514@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@294144 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
mrego committed May 13, 2022
1 parent a2effb7 commit ce78fdf01ece92d2cf70c7597ea84bc0651e0f4d
Showing with 11 additions and 1 deletion.
  1. +10 −0 Source/WebCore/ChangeLog
  2. +1 −1 Source/WebCore/html/HTMLSlotElement.cpp
@@ -1,3 +1,13 @@
2022-05-12 Manuel Rego Casasnovas <rego@igalia.com>

Remove unneeded check in HTMLSlotElement::assignedNodes()
https://bugs.webkit.org/show_bug.cgi?id=240340

Reviewed by Ryosuke Niwa.

* html/HTMLSlotElement.cpp:
(WebCore::HTMLSlotElement::assignedNodes const):

2022-05-12 Manuel Rego Casasnovas <rego@igalia.com>

ARIA reflection for FrozenArray<Element> attributes
@@ -146,7 +146,7 @@ Vector<Ref<Node>> HTMLSlotElement::assignedNodes(const AssignedNodesOptions& opt
return nodes;
}

if (auto* nodes = assignedNodes(); nodes) {
if (auto* nodes = assignedNodes()) {
return compactMap(*nodes, [](auto& nodeWeakPtr) -> RefPtr<Node> {
return nodeWeakPtr.get();
});

0 comments on commit ce78fdf

Please sign in to comment.