| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index be7d4c40bcc66a16026c597b11b6bbf4d7e0cb97..5d4adb4efed927c0dd007b9dd80ef5e0a25b009f 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -2291,4 +2291,18 @@ bool Internals::loseSharedGraphicsContext3D()
|
| return true;
|
| }
|
|
|
| +void Internals::forceCompositingUpdate(Document* document, ExceptionState& es)
|
| +{
|
| + if (!document || !document->renderView()) {
|
| + es.throwUninformativeAndGenericDOMException(InvalidAccessError);
|
| + return;
|
| + }
|
| +
|
| + document->updateLayout();
|
| +
|
| + RenderView* view = document->renderView();
|
| + if (view->compositor())
|
| + view->compositor()->updateCompositingLayers(CompositingUpdateFinishAllDeferredWork);
|
| +}
|
| +
|
| }
|
|
|