Changeset 57131 in webkit


Ignore:
Timestamp:
Apr 6, 2010 12:09:02 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-06 Laszlo Gombos <Laszlo Gombos>

Reviewed by Kenneth Rohde Christiansen.

[Qt] [Symbian] Build fix for Dumprendertree if Qt printing is not supported
https://bugs.webkit.org/show_bug.cgi?id=37082

Use the QT_NO_PRINTER guard to flag QPrinter dependent code.

  • DumpRenderTree/qt/DumpRenderTreeQt.cpp: (WebCore::DumpRenderTree::dryRunPrint):
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r57125 r57131  
     12010-04-06  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        [Qt] [Symbian] Build fix for Dumprendertree if Qt printing is not supported
     6        https://bugs.webkit.org/show_bug.cgi?id=37082
     7
     8        Use the QT_NO_PRINTER guard to flag QPrinter dependent code.
     9
     10        * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
     11        (WebCore::DumpRenderTree::dryRunPrint):
     12
    1132010-04-05  Adam Barth  <abarth@webkit.org>
    214
  • trunk/WebKitTools/DumpRenderTree/qt/DumpRenderTreeQt.cpp

    r56718 r57131  
    5454#include <QPaintDevice>
    5555#include <QPaintEngine>
     56#ifndef QT_NO_PRINTER
    5657#include <QPrinter>
     58#endif
    5759#include <QUndoStack>
    5860#include <QUrl>
     
    118120
    119121
     122#ifndef QT_NO_PRINTER
    120123class NullPrinter : public QPrinter {
    121124public:
     
    133136    NullPaintEngine m_engine;
    134137};
     138#endif
    135139
    136140
     
    413417void DumpRenderTree::dryRunPrint(QWebFrame* frame)
    414418{
     419#ifndef QT_NO_PRINTER
    415420    NullPrinter printer;
    416421    frame->print(&printer);
     422#endif
    417423}
    418424
Note: See TracChangeset for help on using the changeset viewer.