(sheet: CSSStyleSheet)
| 389 | cancelAsyncOperations = false; |
| 390 | |
| 391 | function removeCSSRulesFromSheet(sheet: CSSStyleSheet) { |
| 392 | if (!sheet) { |
| 393 | return; |
| 394 | } |
| 395 | for (let i = sheet.cssRules.length - 1; i >= 0; i--) { |
| 396 | sheet.deleteRule(i); |
| 397 | } |
| 398 | } |
| 399 | |
| 400 | function prepareOverridesSheet(): CSSStyleSheet { |
| 401 | if (!syncStyle) { |
no test coverage detected