| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index ee84fbfc31be8ffef88fe548329f7aeb731d54f6..d275765a8107dbf3cd6676f049d6237f2cd593bd 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1626,6 +1626,30 @@ String Internals::layerTreeAsText(Document* document, unsigned flags, ExceptionC
|
| return document->frame()->layerTreeAsText(layerTreeFlags);
|
| }
|
|
|
| +void Internals::setNeedsCompositedScrolling(Element* element, unsigned needsCompositedScrolling, ExceptionCode& ec)
|
| +{
|
| + if (!element) {
|
| + ec = INVALID_ACCESS_ERR;
|
| + return;
|
| + }
|
| +
|
| + element->document()->updateLayout();
|
| +
|
| + RenderObject* renderer = element->renderer();
|
| + if (!renderer || !renderer->isBox()) {
|
| + ec = INVALID_ACCESS_ERR;
|
| + return;
|
| + }
|
| +
|
| + RenderLayer* layer = toRenderBox(renderer)->layer();
|
| + if (!layer) {
|
| + ec = INVALID_ACCESS_ERR;
|
| + return;
|
| + }
|
| +
|
| + layer->setForceNeedsCompositedScrolling(static_cast<RenderLayer::ForceNeedsCompositedScrollingMode>(needsCompositedScrolling));
|
| +}
|
| +
|
| String Internals::repaintRectsAsText(Document* document, ExceptionCode& ec) const
|
| {
|
| if (!document || !document->frame()) {
|
|
|