Commit f78cde33 authored by Hayato Ito's avatar Hayato Ito Committed by Commit Bot

Remove unrelated bug number from TODO comment

This bug number is not related to the content of TODO comment.

TBR=rakina@chromium.org

Change-Id: Ifd8563c8104a00134d91c176d8418b93592098da
Reviewed-on: https://chromium-review.googlesource.com/c/1325284Reviewed-by: default avatarHayato Ito <hayato@chromium.org>
Commit-Queue: Hayato Ito <hayato@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606385}
parent 03bbf595
...@@ -223,7 +223,7 @@ void HTMLSlotElement::DispatchSlotChangeEvent() { ...@@ -223,7 +223,7 @@ void HTMLSlotElement::DispatchSlotChangeEvent() {
Node* HTMLSlotElement::AssignedNodeNextTo(const Node& node) const { Node* HTMLSlotElement::AssignedNodeNextTo(const Node& node) const {
DCHECK(SupportsAssignment()); DCHECK(SupportsAssignment());
ContainingShadowRoot()->GetSlotAssignment().RecalcAssignment(); ContainingShadowRoot()->GetSlotAssignment().RecalcAssignment();
// TODO(crbug.com/776656): Use {node -> index} map to avoid O(N) lookup // TODO(hayato): Use {node -> index} map to avoid O(N) linear search
wtf_size_t index = assigned_nodes_.Find(&node); wtf_size_t index = assigned_nodes_.Find(&node);
DCHECK(index != WTF::kNotFound); DCHECK(index != WTF::kNotFound);
if (index + 1 == assigned_nodes_.size()) if (index + 1 == assigned_nodes_.size())
...@@ -234,7 +234,7 @@ Node* HTMLSlotElement::AssignedNodeNextTo(const Node& node) const { ...@@ -234,7 +234,7 @@ Node* HTMLSlotElement::AssignedNodeNextTo(const Node& node) const {
Node* HTMLSlotElement::AssignedNodePreviousTo(const Node& node) const { Node* HTMLSlotElement::AssignedNodePreviousTo(const Node& node) const {
DCHECK(SupportsAssignment()); DCHECK(SupportsAssignment());
ContainingShadowRoot()->GetSlotAssignment().RecalcAssignment(); ContainingShadowRoot()->GetSlotAssignment().RecalcAssignment();
// TODO(crbug.com/776656): Use {node -> index} map to avoid O(N) lookup // TODO(hayato): Use {node -> index} map to avoid O(N) linear search
wtf_size_t index = assigned_nodes_.Find(&node); wtf_size_t index = assigned_nodes_.Find(&node);
DCHECK(index != WTF::kNotFound); DCHECK(index != WTF::kNotFound);
if (index == 0) if (index == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment