Changeset 125377 in webkit
- Timestamp:
- Aug 12, 2012 9:52:54 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r125322 r125377 1 2012-08-12 Loïc Yhuel <loic.yhuel@softathome.com> 2 3 [Qt] Make it possible to build without QtTest/QtPrintSupport 4 https://bugs.webkit.org/show_bug.cgi?id=93492 5 6 Reviewed by Tor Arne Vestbø. 7 8 * Source/QtWebKit.pro: Disable tests if no testlib 9 1 10 2012-08-10 Rob Buis <rbuis@rim.com> 2 11 -
trunk/Source/QtWebKit.pro
r124889 r125377 27 27 28 28 !no_webkit1 { 29 tests.file = tests.pri 30 SUBDIRS += tests 29 contains(DEFINES, HAVE_QTTESTLIB=1) { 30 tests.file = tests.pri 31 SUBDIRS += tests 32 } 31 33 32 34 examples.file = WebKit/qt/examples/examples.pro -
trunk/Source/WebKit/ChangeLog
r125349 r125377 1 2012-08-12 Loïc Yhuel <loic.yhuel@softathome.com> 2 3 [Qt] Make it possible to build without QtTest/QtPrintSupport 4 https://bugs.webkit.org/show_bug.cgi?id=93492 5 6 Reviewed by Tor Arne Vestbø. 7 8 * WebKit1.pri: Optional printsupport 9 1 10 2012-08-10 Joshua Netterfield <jnetterfield@rim.com> 2 11 -
trunk/Source/WebKit/WebKit1.pri
r124889 r125377 40 40 plugin_backend_xlib: PKGCONFIG += x11 41 41 42 QT += network widgets printsupport42 QT += network widgets 43 43 contains(DEFINES, HAVE_QTQUICK=1): QT += quick 44 contains(DEFINES, HAVE_QTPRINTSUPPORT=1): QT += printsupport 44 45 45 46 contains(DEFINES, WTF_USE_TEXTURE_MAPPER_GL=1)|contains(DEFINES, ENABLE_WEBGL=1) { -
trunk/Source/WebKit/qt/Api/qwebframe.cpp
r125253 r125377 94 94 #include <qfileinfo.h> 95 95 #include <qpainter.h> 96 #if HAVE(QTPRINTSUPPORT) 96 97 #include <qprinter.h> 98 #endif 97 99 #include <qregion.h> 98 100 #include <qnetworkrequest.h> … … 1428 1430 void QWebFrame::print(QPrinter *printer) const 1429 1431 { 1432 #if HAVE(QTPRINTSUPPORT) 1430 1433 QPainter painter; 1431 1434 if (!painter.begin(printer)) … … 1515 1518 1516 1519 printContext.end(); 1520 #endif // HAVE(PRINTSUPPORT) 1517 1521 } 1518 1522 #endif // QT_NO_PRINTER -
trunk/Source/WebKit/qt/Api/qwebview.cpp
r124879 r125377 31 31 #include "qevent.h" 32 32 #include "qpainter.h" 33 #if HAVE(QTPRINTSUPPORT) 33 34 #include "qprinter.h" 35 #endif 34 36 #include "qdir.h" 35 37 #include "qfile.h" … … 747 749 void QWebView::print(QPrinter *printer) const 748 750 { 749 #if ndef QT_NO_PRINTER751 #if !defined(QT_NO_PRINTER) && HAVE(QTPRINTSUPPORT) 750 752 page()->mainFrame()->print(printer); 751 753 #endif -
trunk/Source/WebKit/qt/ChangeLog
r125352 r125377 1 2012-08-12 Loïc Yhuel <loic.yhuel@softathome.com> 2 3 [Qt] Make it possible to build without QtTest/QtPrintSupport 4 https://bugs.webkit.org/show_bug.cgi?id=93492 5 6 Reviewed by Tor Arne Vestbø. 7 8 * Api/qwebframe.cpp: 9 (QWebFrame::print): Does nothing if no printsupport 10 * Api/qwebview.cpp: 11 (QWebView::print): Does nothing if no printsupport 12 1 13 2012-08-11 Pierre Rossi <pierre.rossi@gmail.com> 2 14 -
trunk/Tools/ChangeLog
r125372 r125377 1 2012-08-12 Loïc Yhuel <loic.yhuel@softathome.com> 2 3 [Qt] Make it possible to build without QtTest/QtPrintSupport 4 https://bugs.webkit.org/show_bug.cgi?id=93492 5 6 Reviewed by Tor Arne Vestbø. 7 8 * DumpRenderTree/qt/DumpRenderTree.pro: Optional printsupport 9 * DumpRenderTree/qt/DumpRenderTreeQt.cpp: 10 (WebCore): 11 (WebCore::DumpRenderTree::dryRunPrint): Does nothing if no printsupport 12 * QtTestBrowser/QtTestBrowser.pro: Optional printsupport 13 * QtTestBrowser/launcherwindow.cpp: 14 (LauncherWindow::createChrome): No print menu if no printsupport 15 (LauncherWindow::print): Does nothing if no printsupport 16 * QtTestBrowser/launcherwindow.h: 17 * Tools.pro: Disable DRT/WTR if QtTest not present 18 * qmake/mkspecs/features/default_pre.prf: printsupport no more mandatory 19 * qmake/mkspecs/features/features.prf: Qt module availability tests 20 1 21 2012-08-12 Csaba Osztrogonác <ossy@webkit.org> 2 22 -
trunk/Tools/DumpRenderTree/qt/DumpRenderTree.pro
r124879 r125377 19 19 $${ROOT_WEBKIT_DIR}/Source/WTF 20 20 21 QT = core gui network testlib webkit widgets printsupport 21 QT = core gui network testlib webkit widgets 22 contains(DEFINES, HAVE_QTPRINTSUPPORT=1): QT += printsupport 22 23 macx: QT += xml 23 24 -
trunk/Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
r124705 r125377 58 58 #include <QPaintDevice> 59 59 #include <QPaintEngine> 60 #if ndef QT_NO_PRINTER60 #if !defined(QT_NO_PRINTER) && HAVE(QTPRINTSUPPORT) 61 61 #include <QPrinter> 62 62 #endif … … 111 111 112 112 113 #if ndef QT_NO_PRINTER113 #if !defined(QT_NO_PRINTER) && HAVE(QTPRINTSUPPORT) 114 114 class NullPrinter : public QPrinter { 115 115 public: … … 501 501 void DumpRenderTree::dryRunPrint(QWebFrame* frame) 502 502 { 503 #if ndef QT_NO_PRINTER503 #if !defined(QT_NO_PRINTER) && HAVE(QTPRINTSUPPORT) 504 504 NullPrinter printer; 505 505 frame->print(&printer); -
trunk/Tools/QtTestBrowser/QtTestBrowser.pro
r124879 r125377 43 43 DESTDIR = $$ROOT_BUILD_DIR/bin 44 44 45 QT += network webkit printsupport widgets 45 QT += network webkit widgets 46 contains(DEFINES, HAVE_QTPRINTSUPPORT=1): QT += printsupport 46 47 47 48 macx:QT += xml -
trunk/Tools/QtTestBrowser/launcherwindow.cpp
r124879 r125377 52 52 #include <QMenuBar> 53 53 #endif 54 #if !defined(QT_NO_PRINTER) && HAVE(QTPRINTSUPPORT) 55 #include <QPrintPreviewDialog> 56 #endif 54 57 #include <QSlider> 55 58 #include <QSplitter> … … 238 241 fileMenu->addSeparator(); 239 242 fileMenu->addAction("Take Screen Shot...", this, SLOT(screenshot())); 240 #if ndef QT_NO_PRINTER243 #if !defined(QT_NO_PRINTER) && HAVE(QTPRINTSUPPORT) 241 244 fileMenu->addAction(tr("Print..."), this, SLOT(print()), QKeySequence::Print); 242 245 #endif … … 725 728 void LauncherWindow::print() 726 729 { 727 #if !defined(QT_NO_PRINTER) 730 #if !defined(QT_NO_PRINTER) && HAVE(QTPRINTSUPPORT) 728 731 QPrintPreviewDialog dlg(this); 729 732 connect(&dlg, SIGNAL(paintRequested(QPrinter*)), -
trunk/Tools/QtTestBrowser/launcherwindow.h
r123456 r125377 40 40 #endif 41 41 42 #if !defined(QT_NO_PRINTER)43 #include <QPrintPreviewDialog>44 #endif45 46 42 #include <QDebug> 47 43 -
trunk/Tools/Tools.pro
r124889 r125377 10 10 !no_webkit1 { 11 11 SUBDIRS += QtTestBrowser/QtTestBrowser.pro 12 SUBDIRS += DumpRenderTree/qt/DumpRenderTree.pro12 contains(DEFINES, HAVE_QTTESTLIB=1): SUBDIRS += DumpRenderTree/qt/DumpRenderTree.pro 13 13 SUBDIRS += DumpRenderTree/qt/ImageDiff.pro 14 14 } … … 16 16 !no_webkit2 { 17 17 # WTR's InjectedBundle depends currently on WK1's DumpRenderTreeSupport 18 !no_webkit1:contains(DEFINES, HAVE_QTQUICK=1): SUBDIRS += WebKitTestRunner/WebKitTestRunner.pro18 !no_webkit1:contains(DEFINES, HAVE_QTQUICK=1):contains(DEFINES, HAVE_QTTESTLIB=1): SUBDIRS += WebKitTestRunner/WebKitTestRunner.pro 19 19 20 20 contains(DEFINES, HAVE_QTQUICK=1): SUBDIRS += MiniBrowser/qt/MiniBrowser.pro -
trunk/Tools/qmake/mkspecs/features/default_pre.prf
r124879 r125377 79 79 !haveQt(5):!recursive_include: error("Building WebKit with Qt versions older than 5.0 is not supported.") 80 80 81 !haveQtModule(widgets) |!haveQtModule(printsupport){82 root_project_file: message("WebKit1 requires the QtWidgets and QtPrintSupport modules. Disabling WebKit1.")81 !haveQtModule(widgets) { 82 root_project_file: message("WebKit1 requires the QtWidgets module. Disabling WebKit1.") 83 83 CONFIG += no_webkit1 84 84 } -
trunk/Tools/qmake/mkspecs/features/features.prf
r125039 r125377 47 47 !contains(DEFINES, HAVE_QTQUICK=.) { 48 48 haveQtModule(quick): DEFINES += HAVE_QTQUICK=1 49 } 50 51 !contains(DEFINES, HAVE_QTPRINTSUPPORT=.) { 52 haveQtModule(printsupport): DEFINES += HAVE_QTPRINTSUPPORT=1 53 } 54 55 !contains(DEFINES, HAVE_QTTESTLIB=.) { 56 haveQtModule(testlib) { 57 DEFINES += HAVE_QTTESTLIB=1 58 } else { 59 message("Missing QtTest module, disabling DumpRenderTree, WebKitTestRunner and tests") 60 } 49 61 } 50 62
Note: See TracChangeset
for help on using the changeset viewer.