blob: f1a3bd179a61f818fca68c177df6b12b2e1ec133 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/modules/picture_in_picture/shadow_root_picture_in_picture.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/modules/picture_in_picture/picture_in_picture_controller_impl.h"
namespace blink {
// static
Element* ShadowRootPictureInPicture::pictureInPictureElement(TreeScope& scope) {
return PictureInPictureControllerImpl::From(scope.GetDocument())
.PictureInPictureElement(scope);
}
} // namespace blink