blob: 9aa384113e81187b57fbe9bffe09550c2821617f [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 "modules/picture_in_picture/ShadowRootPictureInPicture.h"
#include "core/dom/Document.h"
#include "modules/picture_in_picture/PictureInPictureController.h"
namespace blink {
// static
Element* ShadowRootPictureInPicture::pictureInPictureElement(TreeScope& scope) {
return PictureInPictureController::Ensure(scope.GetDocument())
.PictureInPictureElement(scope);
}
} // namespace blink