Changeset 75467 in webkit
- Timestamp:
- Jan 10, 2011 6:50:44 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r75403 r75467 1 2011-01-10 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 3 Reviewed by Csaba Osztrogonác. 4 5 [Qt] Baseline qt_minimal configuration 6 https://bugs.webkit.org/show_bug.cgi?id=51313 7 8 * WebKit.pri: List the supported QT_NO_FEATURE flags 9 under qt_minimal configuration. 10 1 11 2011-01-10 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r75461 r75467 1 2011-01-10 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 3 Reviewed by Csaba Osztrogonác. 4 5 [Qt] Baseline qt_minimal configuration 6 https://bugs.webkit.org/show_bug.cgi?id=51313 7 8 No new tests as there is no new functionality. 9 10 * platform/graphics/qt/GraphicsLayerQt.cpp: Fix the location of the 11 QT_NO_ANIMATION guard. 12 13 * platform/qt/WheelEventQt.cpp: 14 (WebCore::PlatformWheelEvent::applyDelta): Fix the location of the 15 QT_NO_WHEELEVENT guard. 16 1 17 2011-01-10 Joe Mason <jmason@rim.com> 2 18 -
trunk/Source/WebCore/platform/graphics/qt/GraphicsLayerQt.cpp
r73380 r75467 1376 1376 // Helper functions to safely get a value out of WebCore's AnimationValue*. 1377 1377 1378 #ifndef QT_NO_ANIMATION 1378 1379 static void webkitAnimationToQtAnimationValue(const AnimationValue* animationValue, TransformOperations& transformOperations) 1379 1380 { … … 1391 1392 } 1392 1393 1393 #ifndef QT_NO_ANIMATION1394 1394 // We put a bit of the functionality in a base class to allow casting and to save some code size. 1395 1395 -
trunk/Source/WebCore/platform/network/qt/NetworkStateNotifierQt.cpp
r64965 r75467 92 92 } // namespace WebCore 93 93 94 #include "moc_NetworkStateNotifierPrivate.cpp" 95 94 96 #endif 95 96 #include "moc_NetworkStateNotifierPrivate.cpp" -
trunk/Source/WebCore/platform/qt/WheelEventQt.cpp
r61075 r75467 49 49 m_wheelTicksY = m_deltaY; 50 50 51 #ifndef QT_NO_WHEELEVENT 51 52 // Use the same single scroll step as QTextEdit 52 53 // (in QTextEditPrivate::init [h,v]bar->setSingleStep) 53 54 static const float cDefaultQtScrollStep = 20.f; 54 #ifndef QT_NO_WHEELEVENT55 55 m_deltaX *= (fullTick) ? QApplication::wheelScrollLines() * cDefaultQtScrollStep : 1; 56 56 m_deltaY *= (fullTick) ? QApplication::wheelScrollLines() * cDefaultQtScrollStep : 1; -
trunk/Tools/ChangeLog
r75464 r75467 1 2011-01-10 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 3 Reviewed by Csaba Osztrogonác. 4 5 [Qt] Baseline qt_minimal configuration 6 https://bugs.webkit.org/show_bug.cgi?id=51313 7 8 * DumpRenderTree/qt/DumpRenderTreeQt.cpp: 9 (WebCore::DumpRenderTree::resetToConsistentStateBeforeTesting): Add 10 QT_NO_UNDOSTACK guard. 11 12 * QtTestBrowser/launcherwindow.cpp: 13 (LauncherWindow::createChrome): Add QT_NO_SHORTCUT and QT_NO_PRINTER 14 guards. 15 (LauncherWindow::applyZoom): Add QT_NO_ANIMATION guard. 16 (LauncherWindow::screenshot): Add QT_NO_FILEDIALOG guard. 17 (LauncherWindow::selectElements): Add QT_NO_INPUTDIALOG guard. 18 (LauncherWindow::showUserAgentDialog): Add QT_NO_COMBOBOX guard. 19 20 * QtTestBrowser/launcherwindow.h: 21 * QtTestBrowser/locationedit.cpp: Add QT_NO_INPUTDIALOG guard. 22 * QtTestBrowser/locationedit.h: Ditto. 23 24 * QtTestBrowser/mainwindow.cpp: 25 (MainWindow::buildUI): Add QT_NO_INPUTDIALOG, QT_NO_SHORTCUT and 26 QT_NO_UNDOSTACK guards. 27 (MainWindow::setAddressUrl): Add QT_NO_INPUTDIALOG guard. 28 (MainWindow::changeLocation): Ditto. 29 (MainWindow::openFile): Add QT_NO_FILEDIALOG guard. 30 (MainWindow::openLocation): Add QT_NO_INPUTDIALOG guard. 31 32 * QtTestBrowser/webpage.cpp: 33 (WebPage::openUrlInDefaultBrowser): Add QT_NO_DESKTOPSERVICES guard. 34 (WebPage::authenticationRequired): Add QT_NO_LINEEDIT guard. 35 36 * QtTestBrowser/webview.cpp: 37 (WebViewGraphicsBased::animatedFlip): Add QT_NO_ANIMATION guard. 38 (WebViewGraphicsBased::animatedYFlip): Ditto. 39 1 40 2011-01-10 Sam Weinig <sam@webkit.org> 2 41 -
trunk/Tools/DumpRenderTree/qt/DumpRenderTreeQt.cpp
r74301 r75467 541 541 542 542 m_page->resetSettings(); 543 #ifndef QT_NO_UNDOSTACK 543 544 m_page->undoStack()->clear(); 545 #endif 544 546 m_page->mainFrame()->setZoomFactor(1.0); 545 547 clearHistory(m_page); -
trunk/Tools/QtTestBrowser/launcherwindow.cpp
r73712 r75467 164 164 void LauncherWindow::createChrome() 165 165 { 166 #ifndef QT_NO_SHORTCUT 166 167 QMenu* fileMenu = menuBar()->addMenu("&File"); 167 168 fileMenu->addAction("New Window", this, SLOT(newWindow()), QKeySequence::New); … … 171 172 fileMenu->addSeparator(); 172 173 fileMenu->addAction("Take Screen Shot...", this, SLOT(screenshot())); 174 #ifndef QT_NO_PRINTER 173 175 fileMenu->addAction(tr("Print..."), this, SLOT(print()), QKeySequence::Print); 176 #endif 174 177 fileMenu->addSeparator(); 175 178 fileMenu->addAction("Quit", QApplication::instance(), SLOT(closeAllWindows()), QKeySequence(Qt::CTRL | Qt::Key_Q)); … … 369 372 showFPS->connect(toggleGraphicsView, SIGNAL(toggled(bool)), SLOT(setEnabled(bool))); 370 373 showFPS->setChecked(m_windowOptions.showFrameRate); 374 #endif 371 375 } 372 376 … … 548 552 void LauncherWindow::applyZoom() 549 553 { 554 #ifndef QT_NO_ANIMATION 550 555 if (isGraphicsBased() && page()->settings()->testAttribute(QWebSettings::TiledBackingStoreEnabled)) { 551 556 QGraphicsWebView* view = static_cast<WebViewGraphicsBased*>(m_view)->graphicsWebView(); … … 565 570 return; 566 571 } 572 #endif 567 573 page()->mainFrame()->setZoomFactor(qreal(m_currentZoom) / 100.0); 568 574 } … … 621 627 #endif 622 628 629 #ifndef QT_NO_FILEDIALOG 623 630 QString fileName = QFileDialog::getSaveFileName(label, "Screenshot"); 624 631 if (!fileName.isEmpty()) { … … 627 634 label->setWindowTitle(QString("Screenshot - Saved at %1").arg(fileName)); 628 635 } 636 #endif 629 637 630 638 #if defined(QT_CONFIGURED_WITH_OPENGL) … … 658 666 void LauncherWindow::selectElements() 659 667 { 668 #ifndef QT_NO_INPUTDIALOG 660 669 bool ok; 661 670 QString str = QInputDialog::getText(this, "Select elements", "Choose elements", … … 670 679 #endif 671 680 } 681 #endif 672 682 } 673 683 … … 822 832 dialog->setLayout(layout); 823 833 834 #ifndef QT_NO_COMBOBOX 824 835 QComboBox* combo = new QComboBox(dialog); 825 836 combo->setSizeAdjustPolicy(QComboBox::AdjustToMinimumContentsLength); … … 830 841 int index = combo->findText(page()->userAgentForUrl(QUrl())); 831 842 combo->setCurrentIndex(index); 843 #endif 832 844 833 845 QDialogButtonBox* buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok … … 837 849 layout->addWidget(buttonBox); 838 850 851 #ifndef QT_NO_COMBOBOX 839 852 if (dialog->exec() && !combo->currentText().isEmpty()) { 840 853 page()->setUserAgent(combo->currentText()); … … 842 855 settings.setValue("CustomUserAgent", combo->currentText()); 843 856 } 857 #endif 844 858 845 859 delete dialog; -
trunk/Tools/QtTestBrowser/launcherwindow.h
r73712 r75467 76 76 #endif 77 77 78 class QPropertyAnimation; 79 78 80 class WindowOptions { 79 81 public: -
trunk/Tools/QtTestBrowser/locationedit.cpp
r54074 r75467 27 27 28 28 #include "locationedit.h" 29 30 #ifndef QT_NO_INPUTDIALOG 29 31 30 32 LocationEdit::LocationEdit(QWidget* parent) … … 79 81 #endif 80 82 } 83 84 #endif -
trunk/Tools/QtTestBrowser/locationedit.h
r54074 r75467 29 29 #define locationedit_h 30 30 31 #ifndef QT_NO_INPUTDIALOG 31 32 #include <QtGui> 32 33 … … 53 54 54 55 #endif 56 #endif -
trunk/Tools/QtTestBrowser/mainwindow.cpp
r74941 r75467 67 67 m_toolBar->addAction(page()->action(QWebPage::Stop)); 68 68 69 #ifndef QT_NO_INPUTDIALOG 69 70 urlEdit = new LocationEdit(m_toolBar); 70 71 urlEdit->setSizePolicy(QSizePolicy::Expanding, urlEdit->sizePolicy().verticalPolicy()); … … 80 81 #endif 81 82 82 connect(page()->mainFrame(), SIGNAL(titleChanged(const QString&)),83 this, SLOT(setWindowTitle(const QString&)));84 83 connect(page()->mainFrame(), SIGNAL(urlChanged(QUrl)), this, SLOT(setAddressUrl(QUrl))); 85 84 connect(page(), SIGNAL(loadProgress(int)), urlEdit, SLOT(setProgress(int))); 85 #endif 86 87 connect(page()->mainFrame(), SIGNAL(titleChanged(const QString&)), 88 this, SLOT(setWindowTitle(const QString&))); 86 89 connect(page(), SIGNAL(windowCloseRequested()), this, SLOT(close())); 87 90 91 #ifndef QT_NO_SHORTCUT 88 92 // short-cuts 89 93 page()->action(QWebPage::Back)->setShortcut(QKeySequence::Back); … … 91 95 page()->action(QWebPage::Forward)->setShortcut(QKeySequence::Forward); 92 96 page()->action(QWebPage::Reload)->setShortcut(QKeySequence::Refresh); 97 #ifndef QT_NO_UNDOSTACK 93 98 page()->action(QWebPage::Undo)->setShortcut(QKeySequence::Undo); 94 99 page()->action(QWebPage::Redo)->setShortcut(QKeySequence::Redo); 100 #endif 95 101 page()->action(QWebPage::Cut)->setShortcut(QKeySequence::Cut); 96 102 page()->action(QWebPage::Copy)->setShortcut(QKeySequence::Copy); … … 101 107 page()->action(QWebPage::ToggleItalic)->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_I)); 102 108 page()->action(QWebPage::ToggleUnderline)->setShortcut(QKeySequence(Qt::CTRL | Qt::Key_U)); 109 #endif 103 110 } 104 111 … … 126 133 void MainWindow::setAddressUrl(const QString& url) 127 134 { 135 #ifndef QT_NO_INPUTDIALOG 128 136 if (!url.contains("about:")) 129 137 urlEdit->setText(url); 138 #endif 130 139 } 131 140 … … 165 174 void MainWindow::changeLocation() 166 175 { 176 #ifndef QT_NO_INPUTDIALOG 167 177 QString string = urlEdit->text(); 168 178 QUrl mainFrameURL = page()->mainFrame()->url(); … … 174 184 175 185 load(string); 186 #endif 176 187 } 177 188 178 189 void MainWindow::openFile() 179 190 { 191 #ifndef QT_NO_FILEDIALOG 180 192 static const QString filter("HTML Files (*.htm *.html);;Text Files (*.txt);;Image Files (*.gif *.jpg *.png);;All Files (*)"); 181 193 … … 190 202 load(QUrl::fromLocalFile(selectedFile)); 191 203 } 204 #endif 192 205 } 193 206 194 207 void MainWindow::openLocation() 195 208 { 209 #ifndef QT_NO_INPUTDIALOG 196 210 urlEdit->selectAll(); 197 211 urlEdit->setFocus(); 198 } 212 #endif 213 } -
trunk/Tools/QtTestBrowser/webpage.cpp
r75340 r75467 108 108 void WebPage::openUrlInDefaultBrowser(const QUrl& url) 109 109 { 110 #ifndef QT_NO_DESKTOPSERVICES 110 111 if (QAction* action = qobject_cast<QAction*>(sender())) 111 112 QDesktopServices::openUrl(action->data().toUrl()); 112 113 else 113 114 QDesktopServices::openUrl(url); 115 #endif 114 116 } 115 117 … … 166 168 layout->addWidget(messageLabel, 0, 1); 167 169 170 #ifndef QT_NO_LINEEDIT 168 171 QLabel* userLabel = new QLabel("Username:", dialog); 169 172 layout->addWidget(userLabel, 1, 0); … … 176 179 passInput->setEchoMode(QLineEdit::Password); 177 180 layout->addWidget(passInput, 2, 1); 181 #endif 178 182 179 183 QDialogButtonBox* buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok … … 184 188 185 189 if (dialog->exec() == QDialog::Accepted) { 190 #ifndef QT_NO_LINEEDIT 186 191 authenticator->setUser(userInput->text()); 187 192 authenticator->setPassword(passInput->text()); 193 #endif 188 194 } 189 195 -
trunk/Tools/QtTestBrowser/webview.cpp
r72712 r75467 170 170 void WebViewGraphicsBased::animatedFlip() 171 171 { 172 #ifndef QT_NO_ANIMATION 172 173 QSizeF center = graphicsWebView()->boundingRect().size() / 2; 173 174 QPointF centerPoint = QPointF(center.width(), center.height()); … … 183 184 184 185 animation->start(QAbstractAnimation::DeleteWhenStopped); 186 #endif 185 187 } 186 188 187 189 void WebViewGraphicsBased::animatedYFlip() 188 190 { 191 #ifndef QT_NO_ANIMATION 189 192 if (!m_machine) { 190 193 m_machine = new QStateMachine(this); … … 218 221 219 222 m_machine->start(); 223 #endif 220 224 } 221 225 -
trunk/WebKit.pri
r75313 r75467 110 110 win32-msvc*|wince*: QMAKE_CXXFLAGS += -wd4291 -wd4344 -wd4396 -wd4503 -wd4800 -wd4819 -wd4996 111 111 112 CONFIG(qt_minimal) { 113 DEFINES *= QT_NO_ANIMATION 114 DEFINES *= QT_NO_BEARERMANAGEMENT 115 DEFINES *= QT_NO_CLIPBOARD 116 DEFINES *= QT_NO_COMBOBOX 117 DEFINES *= QT_NO_CRASHHANDLER 118 DEFINES *= QT_NO_CURSOR 119 DEFINES *= QT_NO_DESKTOPSERVICES 120 DEFINES *= QT_NO_FILEDIALOG 121 DEFINES *= QT_NO_GRAPHICSEFFECT 122 DEFINES *= QT_NO_IM 123 DEFINES *= QT_NO_INPUTDIALOG 124 DEFINES *= QT_NO_LINEEDIT 125 DEFINES *= QT_NO_MESSAGEBOX 126 DEFINES *= QT_NO_OPENSSL 127 DEFINES *= QT_NO_PRINTER 128 DEFINES *= QT_NO_QUUID_STRING 129 DEFINES *= QT_NO_SHORTCUT 130 DEFINES *= QT_NO_STYLE_STYLESHEET 131 DEFINES *= QT_NO_SYSTEMTRAYICON 132 DEFINES *= QT_NO_TEMPORARYFILE 133 DEFINES *= QT_NO_TOOLTIP 134 DEFINES *= QT_NO_UITOOLS 135 DEFINES *= QT_NO_UNDOCOMMAND 136 DEFINES *= QT_NO_UNDOSTACK 137 DEFINES *= QT_NO_XRENDER 138 } -
trunk/WebKit/qt/ChangeLog
r75455 r75467 1 2011-01-10 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2 3 Reviewed by Csaba Osztrogonác. 4 5 [Qt] Baseline qt_minimal configuration 6 https://bugs.webkit.org/show_bug.cgi?id=51313 7 8 * WebCoreSupport/PopupMenuQt.cpp: 9 (WebCore::PopupMenuQt::show): Add QT_NO_COMBOBOX guard. 10 11 * WebCoreSupport/QtFallbackWebPopup.cpp: 12 (WebCore::QtFallbackWebPopup::populate): Add QT_NO_TOOLTIP guard. 13 14 * tests/qwebframe/tst_qwebframe.cpp: Add QT_NO_COMBOBOX guard. 15 * tests/qwebpage/tst_qwebpage.cpp: 16 (PluginPage::createPlugin): Add QT_NO_INPUTDIALOG guard. 17 1 18 2011-01-10 Adam Barth <abarth@webkit.org> 2 19 -
trunk/WebKit/qt/WebCoreSupport/PopupMenuQt.cpp
r70134 r75467 98 98 void PopupMenuQt::show(const IntRect& rect, FrameView* view, int index) 99 99 { 100 #ifndef QT_NO_COMBOBOX 100 101 if (!m_popupClient) 101 102 return; … … 118 119 m_selectData = new SelectData(m_popupClient); 119 120 m_popup->show(*m_selectData); 121 #endif 120 122 } 121 123 -
trunk/WebKit/qt/WebCoreSupport/QtFallbackWebPopup.cpp
r67453 r75467 233 233 m_combo->insertItem(i, data.itemText(i)); 234 234 model->item(i)->setEnabled(data.itemIsEnabled(i)); 235 #ifndef QT_NO_TOOLTIP 235 236 model->item(i)->setToolTip(data.itemToolTip(i)); 237 #endif 236 238 if (data.itemIsSelected(i)) 237 239 currentIndex = i; -
trunk/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp
r74220 r75467 604 604 void ipv6HostEncoding(); 605 605 void metaData(); 606 #if !defined(Q_WS_MAEMO_5) && !defined(Q_OS_SYMBIAN) 606 #if !defined(Q_WS_MAEMO_5) && !defined(Q_OS_SYMBIAN) && !defined(QT_NO_COMBOBOX) 607 607 // as maemo 5 && symbian do not use QComboBoxes to implement the popups 608 608 // this test does not make sense for it. … … 2591 2591 } 2592 2592 2593 #if !defined(Q_WS_MAEMO_5) && !defined(Q_OS_SYMBIAN) 2593 #if !defined(Q_WS_MAEMO_5) && !defined(Q_OS_SYMBIAN) && !defined(QT_NO_COMBOBOX) 2594 2594 void tst_QWebFrame::popupFocus() 2595 2595 { -
trunk/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp
r75411 r75467 590 590 if (classid == "pushbutton") 591 591 result = new QPushButton(); 592 #ifndef QT_NO_INPUTDIALOG 592 593 else if (classid == "lineedit") 593 594 result = new QLineEdit(); 595 #endif 594 596 else if (classid == "graphicswidget") 595 597 result = new QGraphicsWidget();
Note: See TracChangeset
for help on using the changeset viewer.