(mod: StyleModification)
| 154 | let modHistoryTotalPushed = 0; |
| 155 | |
| 156 | function pushModification(mod: StyleModification): void { |
| 157 | modificationHistory.push(mod); |
| 158 | modHistoryTotalPushed++; |
| 159 | while (modificationHistory.length > MOD_HISTORY_CAP) { |
| 160 | modificationHistory.shift(); |
| 161 | } |
| 162 | } |
| 163 | |
| 164 | // Test-only entry: exposes the history-cap mechanics (push, reset, cap value) |
| 165 | // without requiring a CDP-driven Page. Production code must go through |
no test coverage detected