Changeset 92686 in webkit


Ignore:
Timestamp:
Aug 9, 2011 8:01:45 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Unreviewed, rolling out r92683.
http://trac.webkit.org/changeset/92683
https://bugs.webkit.org/show_bug.cgi?id=65921

"Breaks Qt --minimal build. Revert pending update of the Qt

minimal configuration" (Requested by simathur on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-08-09

.:

  • Source/WebKit.pri:

Source/WebKit/qt:

  • Api/qwebsettings.cpp:

(QWebSettings::enablePersistentStorage):

Tools:

  • QtTestBrowser/cookiejar.cpp:

(TestBrowserCookieJar::TestBrowserCookieJar):

  • QtTestBrowser/launcherwindow.cpp:

(LauncherWindow::createChrome):
(LauncherWindow::setDiskCache):

  • QtTestBrowser/main.cpp:

(LauncherApplication::handleUserOptions):

  • QtTestBrowser/webpage.cpp:

(WebPage::openUrlInDefaultBrowser):

Location:
trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r92683 r92686  
     12011-08-09  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r92683.
     4        http://trac.webkit.org/changeset/92683
     5        https://bugs.webkit.org/show_bug.cgi?id=65921
     6
     7         "Breaks Qt --minimal build. Revert pending update of the Qt
     8        minimal configuration" (Requested by simathur on #webkit).
     9
     10        * Source/WebKit.pri:
     11
    1122011-08-09  Siddharth Mathur  <siddharth.mathur@nokia.com>
    213
  • trunk/Source/WebKit.pri

    r92683 r92686  
    170170    DEFINES *= QT_NO_CRASHHANDLER
    171171    DEFINES *= QT_NO_CURSOR
     172    DEFINES *= QT_NO_DESKTOPSERVICES
    172173    DEFINES *= QT_NO_FILEDIALOG
    173174    DEFINES *= QT_NO_GRAPHICSEFFECT
  • trunk/Source/WebKit/qt/Api/qwebsettings.cpp

    r92683 r92686  
    11371137void QWebSettings::enablePersistentStorage(const QString& path)
    11381138{
     1139#ifndef QT_NO_DESKTOPSERVICES
    11391140    QString storagePath;
    11401141
     
    11691170    }
    11701171#endif
     1172#endif
    11711173}
    11721174
  • trunk/Source/WebKit/qt/ChangeLog

    r92683 r92686  
     12011-08-09  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r92683.
     4        http://trac.webkit.org/changeset/92683
     5        https://bugs.webkit.org/show_bug.cgi?id=65921
     6
     7         "Breaks Qt --minimal build. Revert pending update of the Qt
     8        minimal configuration" (Requested by simathur on #webkit).
     9
     10        * Api/qwebsettings.cpp:
     11        (QWebSettings::enablePersistentStorage):
     12
    1132011-08-09  Siddharth Mathur  <siddharth.mathur@nokia.com>
    214
  • trunk/Tools/ChangeLog

    r92683 r92686  
     12011-08-09  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r92683.
     4        http://trac.webkit.org/changeset/92683
     5        https://bugs.webkit.org/show_bug.cgi?id=65921
     6
     7         "Breaks Qt --minimal build. Revert pending update of the Qt
     8        minimal configuration" (Requested by simathur on #webkit).
     9
     10        * QtTestBrowser/cookiejar.cpp:
     11        (TestBrowserCookieJar::TestBrowserCookieJar):
     12        * QtTestBrowser/launcherwindow.cpp:
     13        (LauncherWindow::createChrome):
     14        (LauncherWindow::setDiskCache):
     15        * QtTestBrowser/main.cpp:
     16        (LauncherApplication::handleUserOptions):
     17        * QtTestBrowser/webpage.cpp:
     18        (WebPage::openUrlInDefaultBrowser):
     19
    1202011-08-09  Siddharth Mathur  <siddharth.mathur@nokia.com>
    221
  • trunk/Tools/QtTestBrowser/cookiejar.cpp

    r92683 r92686  
    4242    connect(&m_timer, SIGNAL(timeout()), this, SLOT(saveToDisk()));
    4343
     44#ifndef QT_NO_DESKTOPSERVICES
    4445    QString path = QDesktopServices::storageLocation(QDesktopServices::CacheLocation);
     46#else
     47    QString path = QDir::homePath() + "/.QtTestBrowser";
     48#endif
     49
    4550    QDir().mkpath(path);
    4651    m_file.setFileName(path + "/cookieJar");
  • trunk/Tools/QtTestBrowser/launcherwindow.cpp

    r92683 r92686  
    4646#endif
    4747
     48#if !defined(QT_NO_NETWORKDISKCACHE) && !defined(QT_NO_DESKTOPSERVICES)
    4849#include <QtGui/QDesktopServices>
    4950#include <QtNetwork/QNetworkDiskCache>
     51#endif
    5052
    5153const int gExitClickArea = 80;
     
    434436    QMenu* settingsMenu = menuBar()->addMenu("&Settings");
    435437
     438#if !defined(QT_NO_NETWORKDISKCACHE) && !defined(QT_NO_DESKTOPSERVICES)
    436439    QAction* toggleDiskCache = settingsMenu->addAction("Use Disk Cache", this, SLOT(setDiskCache(bool)));
    437440    toggleDiskCache->setCheckable(true);
    438441    toggleDiskCache->setChecked(m_windowOptions.useDiskCache);
     442#endif
    439443
    440444    QAction* toggleAutoLoadImages = settingsMenu->addAction("Disable Auto Load Images", this, SLOT(toggleAutoLoadImages(bool)));
     
    819823void LauncherWindow::setDiskCache(bool enable)
    820824{
     825#if !defined(QT_NO_NETWORKDISKCACHE) && !defined(QT_NO_DESKTOPSERVICES)
    821826    m_windowOptions.useDiskCache = enable;
    822827    QNetworkDiskCache* cache = 0;
     
    827832    }
    828833    page()->networkAccessManager()->setCache(cache);
     834#endif
    829835}
    830836
  • trunk/Tools/QtTestBrowser/main.cpp

    r92683 r92686  
    183183#endif
    184184             << QString("[-viewport-update-mode %1]").arg(formatKeys(updateModes)).toLatin1().data()
     185#if !defined(QT_NO_NETWORKDISKCACHE) && !defined(QT_NO_DESKTOPSERVICES)
    185186             << "[-disk-cache]"
     187#endif
    186188             << "[-cache-webview]"
    187189             << "[-maximize]"
     
    221223
    222224    if (args.contains("-disk-cache")) {
     225#if !defined(QT_NO_NETWORKDISKCACHE) && !defined(QT_NO_DESKTOPSERVICES)
    223226        windowOptions.useDiskCache = true;
     227#else
     228    appQuit(1, "-disk-cache only works if QNetworkDiskCache and QDesktopServices is enabled in your Qt build.");
     229#endif
    224230    }
    225231
  • trunk/Tools/QtTestBrowser/webpage.cpp

    r92683 r92686  
    109109void WebPage::openUrlInDefaultBrowser(const QUrl& url)
    110110{
     111#ifndef QT_NO_DESKTOPSERVICES
    111112    if (QAction* action = qobject_cast<QAction*>(sender()))
    112113        QDesktopServices::openUrl(action->data().toUrl());
    113114    else
    114115        QDesktopServices::openUrl(url);
     116#endif
    115117}
    116118
Note: See TracChangeset for help on using the changeset viewer.