function provideShadowDOM ()
  {
    return $this->shadowDOM
      ?: (
      $this->view && $this->view->getEngine () instanceof MatisseEngine
        ? $this->view->getCompiled ()
        : null // Shadow DOMs are only available for Matisse templates.
      );
  }