|
|
@@ -135,13 +135,8 @@ this.matchedRules = this.matchedRules || (() => {
|
|
|
}
|
|
|
|
|
|
function getMatchedElementsSelector(doc, selectorInfo, styles, matchedElementsCache) {
|
|
|
- let selectorText;
|
|
|
const filteredSelectorText = getFilteredSelector(selectorInfo.selector, selectorInfo.selectorText);
|
|
|
- if (filteredSelectorText != selectorInfo.selectorText) {
|
|
|
- selectorText = filteredSelectorText;
|
|
|
- } else {
|
|
|
- selectorText = selectorInfo.selectorText;
|
|
|
- }
|
|
|
+ const selectorText = filteredSelectorText != selectorInfo.selectorText ? filteredSelectorText : selectorInfo.selectorText;
|
|
|
const cachedMatchedElements = matchedElementsCache.get(selectorText);
|
|
|
let matchedElements = cachedMatchedElements;
|
|
|
if (!matchedElements) {
|