Package: phantomjs / 2.1.1+dfsg-2~bpo8+1

build-qt55-print.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Last-Update: 2016-02-15
Forwarded: no
Bug-Upstream: https://github.com/ariya/phantomjs/issues/13727
Author: Ximin Luo <infinity0@debian.org>
Reviewed-By: Dmitry Smirnov <onlyjob@debian.org>
Description: Port to Qt 5.5
 - In webpage, don't inherit QWebFrame::PrintCallback since it's not public

--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -1254,9 +1254,9 @@
     }
 
     printer.setPageMargins(marginLeft, marginTop, marginRight, marginBottom, QPrinter::Point);
 
-    m_mainFrame->print(&printer, this);
+    m_mainFrame->print(&printer);
     return true;
 }
 
 void WebPage::setZoomFactor(qreal zoom)
--- a/src/webpage.h
+++ b/src/webpage.h
@@ -44,9 +44,9 @@
 class NetworkAccessManager;
 class QWebInspector;
 class Phantom;
 
-class WebPage : public QObject, public QWebFrame::PrintCallback
+class WebPage : public QObject
 {
     Q_OBJECT
     Q_PROPERTY(QString title READ title)
     Q_PROPERTY(QString frameTitle READ frameTitle)