(cssString: string, cssFileName?)
| 886 | |
| 887 | @profile |
| 888 | private appendCss(cssString: string, cssFileName?): void { |
| 889 | if (!cssString && !cssFileName) { |
| 890 | return; |
| 891 | } |
| 892 | if (cssFileName) { |
| 893 | this._cssFiles.push(cssFileName); |
| 894 | currentScopeTag = cssFileName; |
| 895 | } |
| 896 | |
| 897 | const cssFile = cssString ? CSSSource.fromSource(cssString, cssFileName) : CSSSource.fromURI(cssFileName); |
| 898 | |
| 899 | currentScopeTag = null; |
| 900 | this._css = this._css + cssFile.source; |
| 901 | this._localCssSelectors.push(...cssFile.selectors); |
| 902 | this._localCssKeyframes.push(...cssFile.keyframes); |
| 903 | this._localCssSelectorVersion++; |
| 904 | this.ensureSelectors(); |
| 905 | } |
| 906 | |
| 907 | public getKeyframeAnimationWithName(animationName: string): KeyframeAnimationInfo { |
| 908 | if (!this._mergedCssKeyframes) { |
no test coverage detected