Index: Source/core/testing/Internals.cpp |
diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp |
index e0fdde4cc835917eb589aeb9cef54351b0100322..34a34af9dd054a0d727e68bffc30aa274472b138 100644 |
--- a/Source/core/testing/Internals.cpp |
+++ b/Source/core/testing/Internals.cpp |
@@ -112,6 +112,7 @@ |
#include "core/page/NetworkStateNotifier.h" |
#include "core/page/Page.h" |
#include "core/page/PrintContext.h" |
+#include "core/page/scrolling/ScrollState.h" |
#include "core/paint/DeprecatedPaintLayer.h" |
#include "core/svg/SVGImageElement.h" |
#include "core/testing/DictionaryTest.h" |
@@ -2409,6 +2410,15 @@ ClientRect* Internals::boundsInViewportSpace(Element* element) |
return ClientRect::create(element->boundsInViewportSpace()); |
} |
+void Internals::setScrollChain( |
+ ScrollState* scrollState, const WillBeHeapVector<RefPtrWillBeMember<Element>>& elements, ExceptionState&) |
+{ |
+ WillBeHeapDeque<RefPtrWillBeMember<Element>> scrollChain; |
+ for (size_t i = 0; i < elements.size(); ++i) |
+ scrollChain.append(elements[i]); |
+ scrollState->setScrollChain(scrollChain); |
+} |
+ |
void Internals::forceBlinkGCWithoutV8GC() |
{ |
ThreadState::current()->setGCState(ThreadState::FullGCScheduled); |