Changeset 116304 in webkit
- Timestamp:
- May 7, 2012 5:58:21 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 8 deleted
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r116299 r116304 1 2012-05-07 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r116299, r116301, and r116303. 4 http://trac.webkit.org/changeset/116299 5 http://trac.webkit.org/changeset/116301 6 http://trac.webkit.org/changeset/116303 7 https://bugs.webkit.org/show_bug.cgi?id=85795 8 9 Build is still broken (Requested by Ossy on #webkit). 10 11 * qt/MainQt.cpp: 12 (main): 13 1 14 2012-05-07 Balazs Kelemen <kbalazs@webkit.org> 2 15 -
trunk/Source/WebKit2/qt/MainQt.cpp
r116299 r116304 26 26 27 27 #include <QApplication> 28 #include <QByteArray> 29 #include <QFile> 30 #include <QPlatformIntegration> 31 #include <QPlatformIntegrationPlugin> 32 #include <QPluginLoader> 28 33 29 #include <stdio.h> 34 30 … … 48 44 } 49 45 50 static void initializeTestPlatformPluginForWTRIfRequired()51 {52 QByteArray pluginPath = qgetenv("QT_WEBKIT2_TEST_PLATFORM_PLUGIN_PATH");53 if (pluginPath.isEmpty())54 return;55 56 QPluginLoader loader(QFile::decodeName(pluginPath.data()));57 QPlatformIntegrationPlugin* plugin = qobject_cast<QPlatformIntegrationPlugin*>(loader.instance());58 if (!plugin)59 qFatal("cannot initialize test platform plugin\n");60 61 qputenv("QT_QPA_PLATFORM_PLUGIN_PATH", pluginPath);62 qputenv("QT_QPA_PLATFORM", "testplatform");63 }64 65 46 // The framework entry point. 66 47 // We call our platform specific entry point directly rather than WebKitMain because it makes little sense … … 76 57 #endif 77 58 78 initializeTestPlatformPluginForWTRIfRequired();79 59 WebKit::initializeWebKit2Theme(); 80 60 -
trunk/Tools/ChangeLog
r116303 r116304 1 2012-05-07 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r116299, r116301, and r116303. 4 http://trac.webkit.org/changeset/116299 5 http://trac.webkit.org/changeset/116301 6 http://trac.webkit.org/changeset/116303 7 https://bugs.webkit.org/show_bug.cgi?id=85795 8 9 Build is still broken (Requested by Ossy on #webkit). 10 11 * DumpRenderTree/qt/DumpRenderTree.pro: 12 * DumpRenderTree/qt/main.cpp: 13 (main): 14 * QtTestPlatformPlugin/QtTestPlatformPlugin.pro: Removed. 15 * QtTestPlatformPlugin/TestIntegration.cpp: Removed. 16 * QtTestPlatformPlugin/TestIntegration.h: Removed. 17 * QtTestPlatformPlugin/mac/TestFontDatabase.h: Removed. 18 * QtTestPlatformPlugin/mac/TestFontDatabase.mm: Removed. 19 * QtTestPlatformPlugin/mac/TestIntegrationMac.mm: Removed. 20 * QtTestPlatformPlugin/main.cpp: Removed. 21 * QtTestPlatformPlugin/testplatform.json: Removed. 22 * Tools.pro: 23 * WebKitTestRunner/Target.pri: 24 * WebKitTestRunner/qt/main.cpp: 25 (main): 26 1 27 2012-05-07 Balazs Kelemen <kbalazs@webkit.org> 2 28 -
trunk/Tools/DumpRenderTree/qt/DumpRenderTree.pro
r116299 r116304 58 58 DEFINES += USE_SYSTEM_MALLOC=1 59 59 60 mac: LIB_SUFFIX=.dylib61 win: LIB_SUFFIX=.dll62 unix:!mac: LIB_SUFFIX=.so63 DEFINES += TEST_PLATFORM_PLUGIN_PATH=\"\\\"$${ROOT_BUILD_DIR}$${QMAKE_DIR_SEP}lib$${QMAKE_DIR_SEP}libtestplatform$${LIB_SUFFIX}\\\"\"64 65 60 RESOURCES = DumpRenderTree.qrc -
trunk/Tools/DumpRenderTree/qt/main.cpp
r116303 r116304 32 32 #include "QtInitializeTestFonts.h" 33 33 34 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)35 #include <QPlatformIntegration>36 #include <QPlatformIntegrationPlugin>37 #include <QPluginLoader>38 #endif39 40 34 #include <wtf/AlwaysInline.h> 41 35 … … 130 124 #endif 131 125 132 static void initializeTestPlatformPlugin(int argc, char* const argv[])133 {134 #if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)135 QPluginLoader loader(TEST_PLATFORM_PLUGIN_PATH);136 QPlatformIntegrationPlugin* plugin = qobject_cast<QPlatformIntegrationPlugin*>(loader.instance());137 if (!plugin)138 qFatal("cannot initialize test platform plugin\n");139 140 QByteArray platform = qgetenv("QT_QPA_PLATFORM");141 QByteArray platformPluginPath = qgetenv("QT_QPA_PLATFORM_PLUGIN_PATH");142 for (int i = 0; i < argc; ++i) {143 if (QByteArray(argv[i]) == "-platform" && i + 1 < argc)144 platform = argv[i + 1];145 else if (QByteArray(argv[i]) == "-platformpluginpath" && i + 1 < argc)146 platformPluginPath = argv[i + 1];147 }148 if (!platform.isEmpty())149 qputenv("QT_WEBKIT_ORIGINAL_PLATFORM", platform);150 if (!platformPluginPath.isEmpty())151 qputenv("QT_WEBKIT_ORIGINAL_PLATFORM_PLUGIN_PATH", platformPluginPath);152 153 qputenv("QT_QPA_PLATFORM_PLUGIN_PATH", TEST_PLATFORM_PLUGIN_PATH);154 qputenv("QT_QPA_PLATFORM", "testplatform");155 #endif156 }157 158 126 int main(int argc, char* argv[]) 159 127 { … … 178 146 179 147 WebKit::initializeTestFonts(); 180 181 initializeTestPlatformPlugin(argc, argv);182 148 183 149 QApplication::setGraphicsSystem("raster"); -
trunk/Tools/Tools.pro
r116299 r116304 13 13 SUBDIRS += DumpRenderTree/qt/DumpRenderTree.pro 14 14 SUBDIRS += DumpRenderTree/qt/ImageDiff.pro 15 16 haveQt(5): SUBDIRS += QtTestPlatformPlugin/QtTestPlatformPlugin.pro17 15 18 16 !no_webkit2 { -
trunk/Tools/WebKitTestRunner/Target.pri
r116299 r116304 38 38 *-clang*:QMAKE_CXXFLAGS += "-include $$PREFIX_HEADER" 39 39 40 mac: LIB_SUFFIX=.dylib41 win: LIB_SUFFIX=.dll42 unix:!mac: LIB_SUFFIX=.so43 DEFINES += TEST_PLATFORM_PLUGIN_PATH=\"\\\"$${ROOT_BUILD_DIR}$${QMAKE_DIR_SEP}lib$${QMAKE_DIR_SEP}libtestplatform$${LIB_SUFFIX}\\\"\"44 45 40 RESOURCES = qt/WebKitTestRunner.qrc -
trunk/Tools/WebKitTestRunner/qt/main.cpp
r116299 r116304 103 103 qputenv("QT_WEBKIT_THEME_NAME", "qstyle"); 104 104 105 QByteArray platform = qgetenv("QT_QPA_PLATFORM");106 QByteArray platformPluginPath = qgetenv("QT_QPA_PLATFORM_PLUGIN_PATH");107 for (int i = 0; i < argc; ++i) {108 if (QByteArray(argv[i]) == "-platform" && i + 1 < argc)109 platform = argv[i + 1];110 else if (QByteArray(argv[i]) == "-platformpluginpath" && i + 1 < argc)111 platformPluginPath = argv[i + 1];112 }113 if (!platform.isEmpty())114 qputenv("QT_WEBKIT_ORIGINAL_PLATFORM", platform);115 if (!platformPluginPath.isEmpty())116 qputenv("QT_WEBKIT_ORIGINAL_PLATFORM_PLUGIN_PATH", platformPluginPath);117 118 // Tell the web process that we want to use the test platform plugin.119 qputenv("QT_WEBKIT2_TEST_PLATFORM_PLUGIN_PATH", TEST_PLATFORM_PLUGIN_PATH);120 121 105 QQuickWebViewExperimental::setFlickableViewportEnabled(false); 122 106 QApplication app(argc, argv);
Note: See TracChangeset
for help on using the changeset viewer.