mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
09fec812c0
For the selector highlighter, we were retrieving the desugared selector of each displayed rule, and using the selector text in querySelectorAll to retrieve the elements matching the rule. This can be very expensive, especially for deeply nested rule, for a feature that might not even be used. This patch is adding a method which takes a root node, and will return the elements inside the root node that match the rule's selectors. We're only exposing the method that existed in glue.rs to get the SelectorList of a given Rule, and call `Servo_SelectorList_QueryAll` with it to get our NodeList. A test file is added to ensure this works as expected. Differential Revision: https://phabricator.services.mozilla.com/D208363 |
||
---|---|---|
.. | ||
tests | ||
inDeepTreeWalker.cpp | ||
inDeepTreeWalker.h | ||
inIDeepTreeWalker.idl | ||
inLayoutUtils.cpp | ||
inLayoutUtils.h | ||
InspectorCSSParser.cpp | ||
InspectorCSSParser.h | ||
InspectorFontFace.cpp | ||
InspectorFontFace.h | ||
InspectorUtils.cpp | ||
InspectorUtils.h | ||
moz.build | ||
ServoStyleRuleMap.cpp | ||
ServoStyleRuleMap.h |