Comparing version 5.3.0-beta.10 to 5.3.0-beta.11
{ | ||
"name": "xterm", | ||
"description": "Full xterm terminal, in your browser", | ||
"version": "5.3.0-beta.10", | ||
"version": "5.3.0-beta.11", | ||
"main": "lib/xterm.js", | ||
@@ -6,0 +6,0 @@ "style": "css/xterm.css", |
@@ -16,2 +16,3 @@ /** | ||
import { IBufferService, IInstantiationService, IOptionsService } from 'common/services/Services'; | ||
import { createStyle, IStyleSheet } from './StyleSheet'; | ||
@@ -36,4 +37,4 @@ const TERMINAL_CLASS_PREFIX = 'xterm-dom-renderer-owner-'; | ||
private _themeStyleElement!: HTMLStyleElement; | ||
private _dimensionsStyleElement!: HTMLStyleElement; | ||
private _themeStyle!: IStyleSheet; | ||
private _dimensionsStyle!: IStyleSheet; | ||
private _rowContainer: HTMLElement; | ||
@@ -93,4 +94,4 @@ private _rowElements: HTMLElement[] = []; | ||
this._selectionContainer.remove(); | ||
this._themeStyleElement.remove(); | ||
this._dimensionsStyleElement.remove(); | ||
this._themeStyle.dispose(); | ||
this._dimensionsStyle.dispose(); | ||
})); | ||
@@ -122,5 +123,4 @@ } | ||
if (!this._dimensionsStyleElement) { | ||
this._dimensionsStyleElement = document.createElement('style'); | ||
this._screenElement.appendChild(this._dimensionsStyleElement); | ||
if (!this._dimensionsStyle) { | ||
this._dimensionsStyle = createStyle(this._screenElement); | ||
} | ||
@@ -136,3 +136,3 @@ | ||
this._dimensionsStyleElement.textContent = styles; | ||
this._dimensionsStyle.setCss(styles); | ||
@@ -145,5 +145,4 @@ this._selectionContainer.style.height = this._viewportElement.style.height; | ||
private _injectCss(colors: ReadonlyColorSet): void { | ||
if (!this._themeStyleElement) { | ||
this._themeStyleElement = document.createElement('style'); | ||
this._screenElement.appendChild(this._themeStyleElement); | ||
if (!this._themeStyle) { | ||
this._themeStyle = createStyle(this._screenElement); | ||
} | ||
@@ -245,3 +244,3 @@ | ||
this._themeStyleElement.textContent = styles; | ||
this._themeStyle.setCss(styles); | ||
} | ||
@@ -248,0 +247,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2299772
109
23935