| Index: third_party/WebKit/Source/core/testing/Internals.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| index 0f9f83c1a76863edcbfc8ba0c4753a04180bc60e..922acbdcb83862acfd22986497d7845f6aa4904f 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -2458,6 +2458,26 @@ void Internals::setVisualViewportOffset(int x, int y)
|
| frame()->host()->visualViewport().setLocation(FloatPoint(x, y));
|
| }
|
|
|
| +int Internals::visualViewportHeight()
|
| +{
|
| + return expandedIntSize(frame()->host()->visualViewport().visibleRect().size()).height();
|
| +}
|
| +
|
| +int Internals::visualViewportWidth()
|
| +{
|
| + return expandedIntSize(frame()->host()->visualViewport().visibleRect().size()).width();
|
| +}
|
| +
|
| +double Internals::visualViewportScrollX()
|
| +{
|
| + return frame()->view()->scrollableArea()->scrollPositionDouble().x();
|
| +}
|
| +
|
| +double Internals::visualViewportScrollY()
|
| +{
|
| + return frame()->view()->scrollableArea()->scrollPositionDouble().y();
|
| +}
|
| +
|
| ValueIterable<int>::IterationSource* Internals::startIteration(ScriptState*, ExceptionState&)
|
| {
|
| return new InternalsIterationSource();
|
|
|