| 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 c1649019cf2650b5694fe53b79a3a1cb984c5a5b..fafda870db862a92b1310a777d94075f5a160c63 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -1838,6 +1838,17 @@ String Internals::pageSizeAndMarginsInPixels(int pageNumber, int width, int heig
|
| return PrintContext::pageSizeAndMarginsInPixels(frame(), pageNumber, width, height, marginTop, marginRight, marginBottom, marginLeft);
|
| }
|
|
|
| +float Internals::pageScaleFactor(ExceptionState& exceptionState)
|
| +{
|
| + Document* document = contextDocument();
|
| + if (!document || !document->page()) {
|
| + exceptionState.throwDOMException(InvalidAccessError, document ? "The document's page cannot be retrieved." : "No context document can be obtained.");
|
| + return 0;
|
| + }
|
| + Page* page = document->page();
|
| + return page->frameHost().visualViewport().pageScale();
|
| +}
|
| +
|
| void Internals::setPageScaleFactor(float scaleFactor, ExceptionState& exceptionState)
|
| {
|
| Document* document = contextDocument();
|
|
|