Reimplement imperative shadowdom API for better performance
In this CL, we add hashset that control all the assigned slots in the shadowroot for each node. Thanks to this hashset we can find the assigned slot for each node in O(1) order, instead of searching all the slot for each shadow root. Other changes about slot change event will be added in separate CL. Bug: 869308 See design doc at https://docs.google.com/document/d/1n2iDNkI5bF4B5eefxa0SRSyS_RVchvTNSqezvA4PyF4/edit#heading=h.dkp0e2job8nf Change-Id: I60284316902417efd692988b449fe660af8349c5 Reviewed-on: https://chromium-review.googlesource.com/1195298 Commit-Queue: Kyoko Muto <kymuto@google.com> Reviewed-by:Hayato Ito <hayato@chromium.org> Reviewed-by:
Rakina Zata Amni <rakina@chromium.org> Cr-Commit-Position: refs/heads/master@{#592731}
Showing
Please register or sign in to comment