Checks if the style tag needs updating and if so queues up the change
()
| 78 | |
| 79 | /** Checks if the style tag needs updating and if so queues up the change */ |
| 80 | private _styleUpdated(): void { |
| 81 | const changeId = this._freeStyle.changeId; |
| 82 | const lastChangeId = this._lastFreeStyleChangeId; |
| 83 | |
| 84 | if (!this._pendingRawChange && changeId === lastChangeId) { |
| 85 | return; |
| 86 | } |
| 87 | |
| 88 | this._lastFreeStyleChangeId = changeId; |
| 89 | this._pendingRawChange = false; |
| 90 | |
| 91 | this._afterAllSync(() => this.forceRenderStyles()); |
| 92 | } |
| 93 | |
| 94 | /** |
| 95 | * Insert `raw` CSS as a string. This is useful for e.g. |
no test coverage detected