[mpc] Move kMaxDependencies to StyleResolverState
Instead of collecting all dependencies in a (potentially big) HashMap, and then rejecting them cache-time, it's better to reject excessive entries in the dependency map in the first place. This way declarations like "all:inherit" won't (pointlessly) create a huge HashMap internally. Bug: 1057072 Change-Id: Ib88c964cdadad2469b9635d510647be8499c76df Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2247765Reviewed-by:Xiaocheng Hu <xiaochengh@chromium.org> Commit-Queue: Anders Hartvoll Ruud <andruud@chromium.org> Cr-Commit-Position: refs/heads/master@{#779708}
Showing
Please register or sign in to comment