| Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| index 3e66e714d787c2019aa964c29ced7d6b6d426afb..88f304a92acb382a02d52599d2eaf91dad43914e 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp
|
| @@ -39,7 +39,6 @@
|
| #include "core/dom/ElementTraversal.h"
|
| #include "core/dom/ElementVisibilityObserver.h"
|
| #include "core/dom/Fullscreen.h"
|
| -#include "core/dom/IntersectionGeometry.h"
|
| #include "core/dom/TaskRunnerHelper.h"
|
| #include "core/dom/shadow/ShadowRoot.h"
|
| #include "core/events/Event.h"
|
| @@ -66,6 +65,7 @@
|
| #include "core/html/track/VideoTrack.h"
|
| #include "core/html/track/VideoTrackList.h"
|
| #include "core/inspector/ConsoleMessage.h"
|
| +#include "core/layout/IntersectionGeometry.h"
|
| #include "core/layout/LayoutMedia.h"
|
| #include "core/layout/api/LayoutViewItem.h"
|
| #include "core/layout/compositing/PaintLayerCompositor.h"
|
| @@ -4032,9 +4032,7 @@ DEFINE_TRACE(HTMLMediaElement::AudioSourceProviderImpl) {
|
| void HTMLMediaElement::checkViewportIntersectionChanged() {
|
| // TODO(xjz): Early return if we not in tab mirroring.
|
|
|
| - IntersectionGeometry geometry(
|
| - &document(), this, Vector<Length>(),
|
| - IntersectionGeometry::ReportRootBounds::kShouldReportRootBounds);
|
| + IntersectionGeometry geometry(nullptr, *this, Vector<Length>(), true);
|
| geometry.computeGeometry();
|
| IntRect intersectRect = geometry.intersectionIntRect();
|
| if (m_currentIntersectRect == intersectRect)
|
|
|