DevTools: get matching selectors directly from css engine
Inspector currently relies on Element::matches() to compute matching selector indices. This does not support all selectors, for example ":host". This CL removes StaticCSSRuleList (only used by Inspector), and gets selector indices from RuleData (computed by CSS parsing engine) instead of forcing Inspector to compute them. Old Explainer: https://docs.google.com/document/d/1rBOWjHqNpkyvMj4pz-nCW-jxKgEqeRVQLsDwvR5b9Kc/edit?usp=sharing Bug: 952440, 976062 Change-Id: I846fae5e80d30d9b3fee64d10cbbe01e1b80b751 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1703542 Commit-Queue: Erik Luo <luoe@chromium.org> Reviewed-by:Andrey Kosyakov <caseq@chromium.org> Reviewed-by:
Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#682897}
Showing
Please register or sign in to comment