method installScopeCssText


void installScopeCssText(String cssText, [Node scope, String name])

Source

void installScopeCssText(String cssText, [Node scope, String name]) {
  if (scope == null) scope = findStyleScope();
  if (name == null) name = '';

  if (scope == null) return;

  if (_hasShadowDomPolyfill) {
    cssText = _shimCssText(cssText, scope is ShadowRoot ? scope.host : null);
  }
  var style = element.cssTextToScopeStyle(cssText, _STYLE_CONTROLLER_SCOPE);
  applyStyleToScope(style, scope);
  // cache that this style has been applied
  styleCacheForScope(scope).add('$_name$name');
}