Changeset 56386 in webkit
- Timestamp:
- Mar 23, 2010 5:52:17 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r56385 r56386 1 2010-03-23 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Remove support for Qt v4.4 6 https://bugs.webkit.org/show_bug.cgi?id=36389 7 8 No new tests as there is no new functionality. 9 10 * WebCore.pri: 11 * WebCore.pro: 12 * platform/network/qt/ResourceHandleQt.cpp: 13 (WebCore::ResourceHandle::willLoadFromCache): 14 * platform/qt/CookieJarQt.cpp: 15 (WebCore::setCookies): 16 (WebCore::cookies): 17 * platform/qt/KURLQt.cpp: 18 (WebCore::KURL::operator QUrl): 19 * platform/qt/ScrollbarThemeQt.cpp: 20 (WebCore::ScrollbarThemeQt::paintScrollCorner): 21 * plugins/mac/PluginViewMac.cpp: 22 1 23 2010-03-23 Kent Tamura <tkent@chromium.org> 2 24 -
trunk/WebCore/WebCore.pri
r56292 r56386 99 99 # XSLT support with QtXmlPatterns 100 100 !contains(DEFINES, ENABLE_XSLT=.) { 101 contains(QT_CONFIG, xmlpatterns): !lessThan(QT_MINOR_VERSION, 5):DEFINES += ENABLE_XSLT=1101 contains(QT_CONFIG, xmlpatterns):DEFINES += ENABLE_XSLT=1 102 102 else:DEFINES += ENABLE_XSLT=0 103 103 } -
trunk/WebCore/WebCore.pro
r56292 r56386 2888 2888 } 2889 2889 2890 CONFIG(QTDIR_build):isEqual(QT_MAJOR_VERSION, 4):greaterThan(QT_MINOR_VERSION, 4) { 2891 # start with 4.5 2890 CONFIG(QTDIR_build) { 2892 2891 # Remove the following 2 lines if you want debug information in WebCore 2893 2892 CONFIG -= separate_debug_info -
trunk/WebCore/platform/network/qt/ResourceHandleQt.cpp
r55691 r56386 46 46 #include "qwebpage_p.h" 47 47 48 #if QT_VERSION >= 0x04050049 48 #include <QAbstractNetworkCache> 50 #endif51 49 #include <QCoreApplication> 52 50 #include <QUrl> … … 161 159 return false; 162 160 163 #if QT_VERSION >= 0x040500164 161 QNetworkAccessManager* manager = QWebFramePrivate::kit(frame)->page()->networkAccessManager(); 165 162 QAbstractNetworkCache* cache = manager->cache(); … … 175 172 176 173 return false; 177 #else178 return false;179 #endif180 174 } 181 175 -
trunk/WebCore/platform/qt/CookieJarQt.cpp
r54707 r56386 68 68 69 69 QList<QNetworkCookie> cookies = QNetworkCookie::parseCookies(QString(value).toAscii()); 70 #if QT_VERSION >= 0x04050071 70 QList<QNetworkCookie>::Iterator it = cookies.begin(); 72 71 while (it != cookies.end()) { … … 76 75 ++it; 77 76 } 78 #endif79 77 jar->setCookiesFromUrl(cookies, u); 80 78 } … … 93 91 QStringList resultCookies; 94 92 foreach (QNetworkCookie networkCookie, cookies) { 95 #if QT_VERSION >= 0x04050096 93 if (networkCookie.isHttpOnly()) 97 94 continue; 98 #endif99 95 resultCookies.append(QString::fromAscii( 100 96 networkCookie.toRawForm(QNetworkCookie::NameAndValueOnly).constData())); -
trunk/WebCore/platform/qt/KURLQt.cpp
r53995 r56386 28 28 namespace WebCore { 29 29 30 #if QT_VERSION < 0x04050031 static const char hexnumbers[] = "0123456789ABCDEF";32 static inline char toHex(char c)33 {34 return hexnumbers[c & 0xf];35 }36 #endif37 38 30 KURL::KURL(const QUrl& url) 39 31 { … … 43 35 KURL::operator QUrl() const 44 36 { 45 #if QT_VERSION < 0x04050046 unsigned length = m_string.length();47 48 QByteArray ba;49 ba.reserve(length);50 51 int path = -1;52 int host = m_string.find("://");53 if (host != -1) {54 host += 3;55 56 path = m_string.find('/', host);57 }58 59 for (unsigned i = 0; i < length; ++i) {60 const char chr = static_cast<char>(m_string[i]);61 62 switch (chr) {63 encode:64 case '{':65 case '}':66 case '|':67 case '\\':68 case '^':69 case '`':70 ba.append('%');71 ba.append(toHex((chr & 0xf0) >> 4));72 ba.append(toHex(chr & 0xf));73 break;74 case '[':75 case ']':76 // special case: if this is the host part, don't encode77 // otherwise, encode78 if (host == -1 || (path != -1 && i >= path))79 goto encode;80 // fall through81 default:82 ba.append(chr);83 break;84 }85 }86 #else87 // Qt 4.5 or later88 // No need for special encoding89 37 QString str = QString::fromRawData(reinterpret_cast<const QChar*>(m_string.characters()), m_string.length()); 90 38 QByteArray ba = str.toUtf8(); 91 #endif92 39 93 40 QUrl url = QUrl::fromEncoded(ba); -
trunk/WebCore/platform/qt/ScrollbarThemeQt.cpp
r53803 r56386 234 234 } 235 235 236 #if QT_VERSION < 0x040500237 context->fillRect(rect, QApplication::palette().color(QPalette::Normal, QPalette::Window), DeviceColorSpace);238 #else239 236 StylePainter p(this, context); 240 237 if (!p.isValid()) … … 244 241 option.rect = rect; 245 242 p.drawPrimitive(QStyle::PE_PanelScrollAreaCorner, option); 246 #endif247 243 } 248 244 -
trunk/WebCore/plugins/mac/PluginViewMac.cpp
r55432 r56386 79 79 #include "QWebPageClient.h" 80 80 QT_BEGIN_NAMESPACE 81 #if QT_VERSION < 0x04050082 extern Q_GUI_EXPORT WindowPtr qt_mac_window_for(const QWidget* w);83 #else84 81 extern Q_GUI_EXPORT OSWindowRef qt_mac_window_for(const QWidget* w); 85 #endif86 82 QT_END_NAMESPACE 87 83 #endif -
trunk/WebKit/qt/Api/qwebelement.cpp
r54421 r56386 865 865 866 866 QStringList classes = attribute(QLatin1String("class")).simplified().split(QLatin1Char(' '), QString::SkipEmptyParts); 867 #if QT_VERSION >= 0x040500868 867 classes.removeDuplicates(); 869 #else870 int n = classes.size();871 int j = 0;872 QSet<QString> seen;873 seen.reserve(n);874 for (int i = 0; i < n; ++i) {875 const QString& s = classes.at(i);876 if (seen.contains(s))877 continue;878 seen.insert(s);879 if (j != i)880 classes[j] = s;881 ++j;882 }883 if (n != j)884 classes.erase(classes.begin() + j, classes.end());885 #endif886 868 return classes; 887 869 } -
trunk/WebKit/qt/Api/qwebpage.cpp
r56334 r56386 1056 1056 { QKeySequence::DeleteStartOfWord, QWebPage::DeleteStartOfWord }, 1057 1057 { QKeySequence::DeleteEndOfWord, QWebPage::DeleteEndOfWord }, 1058 #if QT_VERSION >= 0x0405001059 1058 { QKeySequence::InsertParagraphSeparator, QWebPage::InsertParagraphSeparator }, 1060 1059 { QKeySequence::InsertLineSeparator, QWebPage::InsertLineSeparator }, 1061 #endif1062 1060 { QKeySequence::SelectAll, QWebPage::SelectAll }, 1063 1061 { QKeySequence::UnknownKey, QWebPage::NoWebAction } -
trunk/WebKit/qt/ChangeLog
r56373 r56386 1 2010-03-23 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Remove support for Qt v4.4 6 https://bugs.webkit.org/show_bug.cgi?id=36389 7 8 * Api/qwebelement.cpp: 9 (QWebElement::classes): 10 * Api/qwebpage.cpp: 11 (QWebPagePrivate::editorActionForKeyEvent): 12 (QWebPage::userAgentForUrl): 13 * WebCoreSupport/EditorClientQt.cpp: 14 (WebCore::EditorClientQt::handleKeyboardEvent): 15 * tests/tests.pro: 16 1 17 2010-03-22 Kent Hansen <kent.hansen@nokia.com> 2 18 -
trunk/WebKit/qt/WebCoreSupport/EditorClientQt.cpp
r54064 r56386 385 385 #endif // QT_NO_SHORTCUT 386 386 switch (kevent->windowsVirtualKeyCode()) { 387 #if QT_VERSION < 0x040500388 case VK_RETURN:389 #ifdef QT_WS_MAC390 if (kevent->shiftKey() || kevent->metaKey())391 #else392 if (kevent->shiftKey())393 #endif394 frame->editor()->command("InsertLineBreak").execute();395 else396 frame->editor()->command("InsertNewline").execute();397 break;398 #endif399 387 case VK_BACK: 400 388 frame->editor()->deleteWithDirection(SelectionController::BACKWARD, -
trunk/WebKit/qt/tests/tests.pro
r53611 r56386 2 2 TEMPLATE = subdirs 3 3 SUBDIRS = qwebframe qwebpage qwebelement qgraphicswebview qwebhistoryinterface qwebview qwebhistory qwebinspector hybridPixmap 4 greaterThan(QT_MINOR_VERSION, 4):SUBDIRS += benchmarks/painting benchmarks/loading4 SUBDIRS += benchmarks/painting benchmarks/loading -
trunk/WebKitTools/ChangeLog
r56372 r56386 1 2010-03-23 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Remove support for Qt v4.4 6 https://bugs.webkit.org/show_bug.cgi?id=36389 7 8 * DumpRenderTree/qt/main.cpp: 9 (main): 10 * QtLauncher/mainwindow.cpp: 11 (MainWindow::MainWindow): 12 1 13 2010-03-22 Csaba Osztrogonác <ossy@webkit.org> 2 14 -
trunk/WebKitTools/DumpRenderTree/qt/main.cpp
r55082 r56386 115 115 #endif 116 116 117 #if QT_VERSION >= 0x040500118 117 QApplication::setGraphicsSystem("raster"); 119 #endif120 121 118 QApplication::setStyle(new QWindowsStyle); 122 119 -
trunk/WebKitTools/QtLauncher/mainwindow.cpp
r54721 r56386 40 40 { 41 41 setAttribute(Qt::WA_DeleteOnClose); 42 #if QT_VERSION >= QT_VERSION_CHECK(4, 5, 0)43 42 if (qgetenv("QTLAUNCHER_USE_ARGB_VISUALS").toInt() == 1) 44 43 setAttribute(Qt::WA_TranslucentBackground); 45 #endif46 44 47 45 buildUI();
Note: See TracChangeset
for help on using the changeset viewer.