| Index: Source/core/testing/Internals.cpp
|
| diff --git a/Source/core/testing/Internals.cpp b/Source/core/testing/Internals.cpp
|
| index d71435f31c77d55387f526855ff708a35f49700a..a07b3fdd3436ce2204243402460572a545844959 100644
|
| --- a/Source/core/testing/Internals.cpp
|
| +++ b/Source/core/testing/Internals.cpp
|
| @@ -1697,6 +1697,17 @@ String Internals::pageSizeAndMarginsInPixels(int pageNumber, int width, int heig
|
| return PrintContext::pageSizeAndMarginsInPixels(frame(), pageNumber, width, height, marginTop, marginRight, marginBottom, marginLeft);
|
| }
|
|
|
| +void Internals::setDeviceScaleFactor(float scaleFactor, ExceptionCode& ec)
|
| +{
|
| + Document* document = contextDocument();
|
| + if (!document || !document->page()) {
|
| + ec = INVALID_ACCESS_ERR;
|
| + return;
|
| + }
|
| + Page* page = document->page();
|
| + page->setDeviceScaleFactor(scaleFactor);
|
| +}
|
| +
|
| void Internals::setPageScaleFactor(float scaleFactor, int x, int y, ExceptionCode& ec)
|
| {
|
| Document* document = contextDocument();
|
|
|