|
|
@@ -194,12 +194,10 @@ this.RulesMatcher = this.RulesMatcher || (() => {
|
|
|
} else {
|
|
|
const styleInfo = elementStyleInfo.selectorInfo.styleInfo;
|
|
|
const cssStyle = styleInfo.cssStyle;
|
|
|
- let styleInfos = mediaAllInfo.matchedStyles.get(cssStyle);
|
|
|
- if (!styleInfos) {
|
|
|
- styleInfos = [];
|
|
|
- mediaAllInfo.matchedStyles.set(cssStyle, styleInfos);
|
|
|
+ let matchedStyleInfo = mediaAllInfo.matchedStyles.get(cssStyle);
|
|
|
+ if (!matchedStyleInfo) {
|
|
|
+ mediaAllInfo.matchedStyles.set(cssStyle, styleInfo);
|
|
|
}
|
|
|
- styleInfos.push(styleInfo);
|
|
|
const styleValue = styleInfo.style.get(styleName);
|
|
|
if (!styleValue) {
|
|
|
styleInfo.style.set(styleName, elementStyleInfo.styleValue);
|