| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index 7a8034acb16c6320c5d081ccebac76a07be9d099..9694b94df8c122495db4c659ab1452c33863f81f 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1974,6 +1974,24 @@ void Internals::forceFullRepaint(Document* document, ExceptionState& exceptionSt
|
| layoutView->invalidatePaintForViewAndCompositedLayers();
|
| }
|
|
|
| +void Internals::startTrackingPaintInvalidationObjects()
|
| +{
|
| + ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
|
| + toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->graphicsLayerBacking()->displayItemList()->startTrackingPaintInvalidationObjects();
|
| +}
|
| +
|
| +void Internals::stopTrackingPaintInvalidationObjects()
|
| +{
|
| + ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
|
| + toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->graphicsLayerBacking()->displayItemList()->stopTrackingPaintInvalidationObjects();
|
| +}
|
| +
|
| +Vector<String> Internals::trackedPaintInvalidationObjects()
|
| +{
|
| + ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
|
| + return toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->graphicsLayerBacking()->displayItemList()->trackedPaintInvalidationObjects();
|
| +}
|
| +
|
| ClientRectList* Internals::draggableRegions(Document* document, ExceptionState& exceptionState)
|
| {
|
| return annotatedRegions(document, true, exceptionState);
|
|
|