Chromium Code Reviews| Index: Source/core/testing/Internals.cpp |
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
| index 981b7c9143119ef885b49b9ea5f0d3ab908a0531..6c8dc2a2bddcfb9da66f73ac81523868b0b7c2f9 100644 |
| --- a/Source/core/testing/Internals.cpp |
| +++ b/Source/core/testing/Internals.cpp |
| @@ -2484,4 +2484,9 @@ void Internals::forceRestrictIFramePermissions() |
| RuntimeEnabledFeatures::setRestrictIFramePermissionsEnabled(true); |
| } |
| +void Internals::triggerAutoplayViewportCheck(HTMLMediaElement* element) |
| +{ |
| + element->viewportTimerFired(0); |
| +} |
| + |
| } // namespace blink |