| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index 8bdd33bf65ab08aa89ff282a950ee781b2a7069f..1f59f48c4a7226289a0cabf57ae9f929f7ee4d2a 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);
|
|
|