Don't scale the unit px to 1/2.54 points for PDFs

The unit px is one point inside the HTML source page but phantomjs handles it
without reason as 1/2.54 points. This makes the page smaller than expected when
trying to render a page as PDF.

https://github.com/ariya/phantomjs/issues/11590 ("page.paperSize is not
accurate for .pdf")
Disable page shrinking for pdf printing to create accurate output

PDFs are not rendered like PNG or other image formats by phantomjs because it
uses the printer functionality of Qt+Webkit. But Webkit uses some printer
"optimization" to save paper by shrinking the output. Such shrinking results in
too small content on a page.

https://github.com/ariya/phantomjs/issues/11590 ("page.paperSize is not
accurate for .pdf")
Use correctly rendered pdf for webpage-spec-renders tests

The last reference test.pdf in the tests was using a complete different region
of the input "image.jpg" because the used phantomjs version used to generate it
had a bug. This bug was fixed in 833eb824f5bae07f1b157d6757e7e3c98343f812
("Don't scale the unit px to 1/2.54 points for PDFs") and
1daa2eb4dd49efb848ff96e37f298a774520cc9b ("Disable page shrinking for pdf
printing to create accurate output").

The new version should now use the same region of the input image as the other
generated files for the gif, jpg and png tests. The only difference is the
extra height is still displayed on a second page but this is currently expected
by phantomjs.

https://github.com/ariya/phantomjs/issues/11590 ("page.paperSize is not
accurate for .pdf")
Expose HTTP status and reason to onResourceError (#12252).
Replace proxy initialization with existing method

Since we have setProxy() method, we can replace the existing code
block in Phantom::init() with simple method call getting rid of
duplicated code.
Merge pull request #12300 from artkoshelev/proxysetuprefactoring

Replace proxy initialization with existing method
Variables QT_GCC_* are undefined for QPA.
Merge pull request #12313 from Vitallium/remove-nullptr-warning

Variables QT_GCC_* are undefined for QPA.
Merge pull request #12287 from zackw/expose-http-status-to-onresourceerror

Expose HTTP status and reason to onResourceError (#12252).
Long live PhantomJS 2!

https://github.com/ariya/phantomjs/issues/10448
Qt 5 base: Fix permissions of some files.

https://github.com/ariya/phantomjs/issues/10448
Correct the unit tests of PhantomJS version.

https://github.com/ariya/phantomjs/issues/10448
Disable some failing and/or crashing unit tests.

Also, reorder the tests since webpage-spec.js seems to be sensitive to
any previously executed tests.

https://github.com/ariya/phantomjs/issues/10448
Reintroduce silent mode for building PhantomJS 2.

https://github.com/ariya/phantomjs/issues/11880
https://github.com/ariya/phantomjs/issues/10448
Travis CI: Get more dependencies for building Qt 5.

https://github.com/ariya/phantomjs/issues/11880
https://github.com/ariya/phantomjs/issues/10448
Update ChangeLog for 1.9.3.

https://github.com/ariya/phantomjs/issues/11904
Update ChangeLog for 1.9.6.

https://github.com/ariya/phantomjs/issues/11905
ChangeLog for 1.9.7.

https://github.com/ariya/phantomjs/issues/11919
Remove CoffeeScript support.

https://github.com/ariya/phantomjs/issues/12410
Fixup wrong merge: remove src/qt/src

This reapplies the patch of issue #11590 and drops the patch
from issue #11264. The former is still valid, while the latter
is hopefully resolved properly in Qt5 (see e.g. this:
https://bugs.webkit.org/show_bug.cgi?id=69419).

https://github.com/ariya/phantomjs/issues/12427