_updateContentDensity() {
      if ((0, _getEffectiveContentDensity.default)(this.ownerElement) === "compact") {
        this.classList.add("sapUiSizeCompact");
        this.classList.add("ui5-content-density-compact");
      } else {
        this.classList.remove("sapUiSizeCompact");
        this.classList.remove("ui5-content-density-compact");
      }
    }
Sets the correct content density based on the owner element's state
@private