protected override trackStyle()

in packages/core/src/rendering/render-box.ts [10:40]


  protected override trackStyle() {
    super.trackStyle()
    this.style.on('boxShadow', this.handleBoxShadowChange, this)
    this.style.on('borderWidth', this.handleBorderWidthChange, this)
    this.style.on('borderColor', this.handleBorderColorChange, this)
    this.style.on('borderImage', this.handleBorderImageChange, this)
    this.style.on('borderRadius', this.handleBorderRadiusChange, this)
    this.style.on('backgroundColor', this.handleBackgroundColorChange, this)
    this.style.on('backgroundImage', this.handleBackgroundImageChange, this)
    if (hasOwn(this.style, 'boxShadow')) {
      this.handleBoxShadowChange(this.style.boxShadow)
    }
    if (hasOwn(this.style, 'borderWidth')) {
      this.handleBorderWidthChange(this.style.borderWidth)
    }
    if (hasOwn(this.style, 'borderColor')) {
      this.handleBorderColorChange(this.style.borderColor)
    }
    if (hasOwn(this.style, 'borderImage')) {
      this.handleBorderImageChange(this.style.borderImage)
    }
    if (hasOwn(this.style, 'borderRadius')) {
      this.handleBorderRadiusChange(this.style.borderRadius)
    }
    if (hasOwn(this.style, 'backgroundColor')) {
      this.handleBackgroundColorChange(this.style.backgroundColor)
    }
    if (hasOwn(this.style, 'backgroundImage')) {
      this.handleBackgroundImageChange(this.style.backgroundImage)
    }
  }