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

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

Issue 1611413005: Make HTMLSlotElement.distributedNodeNextTo&distributedNodePreviousTo faster (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add Performance Test 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.h
diff --git a/third_party/WebKit/Source/core/html/HTMLSlotElement.h b/third_party/WebKit/Source/core/html/HTMLSlotElement.h
index c5e5082d28b407feb8c1add32d60ed2a929801e8..3df403f2d1de8f9fc7cfdf5e0eff51fa0d1ab550 100644
--- a/third_party/WebKit/Source/core/html/HTMLSlotElement.h
+++ b/third_party/WebKit/Source/core/html/HTMLSlotElement.h
@@ -77,8 +77,8 @@ private:
HTMLSlotElement(Document&);
WillBeHeapVector<RefPtrWillBeMember<Node>> m_assignedNodes;
- // TODO(hayato): Share code with DistributedNode class
kochi 2016/01/27 08:29:14 Does this CL really address this TODO?
yuzuchan 2016/02/01 05:40:42 I have decided to use a hash table here instead of
WillBeHeapVector<RefPtrWillBeMember<Node>> m_distributedNodes;
+ WillBeHeapHashMap<RawPtrWillBeMember<const Node>, size_t> m_distributedIndices;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698