forked from ariya/phantomjs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make QWebPage::zoomFactor accessible to PhantomJS scripts.
This adds a new WebPage::zoomFactor property, which can be used to zoom the page, i.e.: page.zoomFactor = 1.5; // zoom by 50% in page.zoomFactor = 0.5; // zoom by 50% out The rasterize.js example is adapted to take an optional fourth argument to set the zoom factor. Furthermore, the webpage-spec is extended with a simple test case for the new property. ISSUE: 579 (http://code.google.com/p/phantomjs/issues/detail?id=579)
- Loading branch information
Showing
4 changed files
with
25 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters