applyStyle method

void applyStyle(
  1. CSSStyleDeclaration style
)

Implementation

void applyStyle(CSSStyleDeclaration style) {
  if (enableWebFProfileTracking) {
    WebFProfiler.instance.startTrackUICommandStep('$this.applyStyle');
  }
  // Apply default style.
  _applyDefaultStyle(style);
  // Init display from style directly cause renderStyle is not flushed yet.
  renderStyle.initDisplay(style);

  applyAttributeStyle(style);
  _applyInlineStyle(style);
  _applySheetStyle(style);
  _applyPseudoStyle(style);

  if (enableWebFProfileTracking) {
    WebFProfiler.instance.finishTrackUICommandStep();
  }
}