12009-08-10 Kavindra Palaraja <kavindra.palaraja@nokia.com> 2 3 Reviewed by Simon Hausmann. 4 5 Various fixes and improvements to the QWebPluginInfo, QWebPluginDatabase and QWebSettings documentation. 6 7 * Api/qwebplugindatabase.cpp: 8 * Api/qwebsettings.cpp: 9 102009-08-08 Volker Hilsheimer <volker.hilsheimer@nokia.com> 11 12 Reviewed by Simon Hausmann. 13 14 Doc: there is no group of explicitly shared classes, only one class uses this. 15 16 Explain the implications in the QWebHistoryItem documentation, and get rid 17 of the "group". 18 19 * Api/qwebhistory.cpp: 20 212009-08-05 Csaba Osztrogonac <oszi@inf.u-szeged.hu> 22 23 Reviewed by Simon Hausmann. 24 25 [Qt] Fix build error caused by http://trac.webkit.org/changeset/46763 26 27 * Api/qwebpluginfactory.h: Export macro added. 28 292009-08-04 Antonio Gomes <antonio.gomes@openbossa.org> 30 31 Reviewed by Simon Hausmann. 32 33 [Qt] QWebFrame::requestedUrl method can mis-behave in case of unhandled sslErrors. 34 https://bugs.webkit.org/show_bug.cgi?id=27804 35 36 * Api/qwebframe.cpp: 37 (QWebFrame::requestedUrl): 38 * tests/qwebframe/tst_qwebframe.cpp: 39 402009-08-04 Simon Hausmann <simon.hausmann@nokia.com> 41 42 Reviewed by Tor Arne Vestbø. 43 44 Rename QWebPlugin to QWebPluginInfo, as discussed on IRC. 45 46 * Api/qwebplugindatabase.cpp: 47 (QWebPluginInfoPrivate::QWebPluginInfoPrivate): 48 (QWebPluginInfo::QWebPluginInfo): 49 (QWebPluginInfo::~QWebPluginInfo): 50 (QWebPluginInfo::name): 51 (QWebPluginInfo::description): 52 (QWebPluginInfo::mimeTypes): 53 (QWebPluginInfo::supportsMimeType): 54 (QWebPluginInfo::path): 55 (QWebPluginInfo::isNull): 56 (QWebPluginInfo::setEnabled): 57 (QWebPluginInfo::isEnabled): 58 (QWebPluginInfo::operator==): 59 (QWebPluginInfo::operator!=): 60 (QWebPluginInfo::operator=): 61 (QWebPluginDatabase::plugins): 62 (QWebPluginDatabase::pluginForMimeType): 63 (QWebPluginDatabase::setPreferredPluginForMimeType): 64 * Api/qwebplugindatabase.h: 65 * Api/qwebplugindatabase_p.h: 66 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp: 67 (tst_QWebPluginDatabase::installedPlugins): 68 (tst_QWebPluginDatabase::searchPaths): 69 (tst_QWebPluginDatabase::null_data): 70 (tst_QWebPluginDatabase::null): 71 (tst_QWebPluginDatabase::pluginForMimeType): 72 (tst_QWebPluginDatabase::enabled): 73 (tst_QWebPluginDatabase::operatorequal_data): 74 (tst_QWebPluginDatabase::operatorequal): 75 (tst_QWebPluginDatabase::preferredPlugin): 76 772009-08-04 Simon Hausmann <simon.hausmann@nokia.com> 78 79 Reviewed by Adam Treat. 80 81 Replace QWebPlugin::MimeType with a typedef to 82 QWebPluginFactory::MimeType. 83 84 * Api/qwebplugindatabase.cpp: 85 * Api/qwebplugindatabase.h: 86 * Api/qwebpluginfactory.cpp: 87 (QWebPluginFactory::MimeType::operator==): 88 * Api/qwebpluginfactory.h: 89 902009-08-04 Jakub Wieczorek <faw217@gmail.com> 91 92 Reviewed by Simon Hausmann. 93 94 Add QWebPluginDatabase API to the Qt API. 95 96 https://bugs.webkit.org/show_bug.cgi?id=27651 97 98 * Api/headers.pri: 99 * Api/qwebplugindatabase.cpp: Added. 100 (QWebPluginPrivate::QWebPluginPrivate): 101 (QWebPluginDatabasePrivate::QWebPluginDatabasePrivate): 102 (QWebPlugin::MimeType::operator==): 103 (QWebPlugin::QWebPlugin): 104 (QWebPlugin::~QWebPlugin): 105 (QWebPlugin::name): 106 (QWebPlugin::description): 107 (QWebPlugin::mimeTypes): 108 (QWebPlugin::supportsMimeType): 109 (QWebPlugin::path): 110 (QWebPlugin::isNull): 111 (QWebPlugin::setEnabled): 112 (QWebPlugin::isEnabled): 113 (QWebPlugin::operator==): 114 (QWebPlugin::operator!=): 115 (QWebPlugin::operator=): 116 (QWebPluginDatabase::QWebPluginDatabase): 117 (QWebPluginDatabase::~QWebPluginDatabase): 118 (QWebPluginDatabase::plugins): 119 (QWebPluginDatabase::defaultSearchPaths): 120 (QWebPluginDatabase::searchPaths): 121 (QWebPluginDatabase::setSearchPaths): 122 (QWebPluginDatabase::addSearchPath): 123 (QWebPluginDatabase::refresh): 124 (QWebPluginDatabase::pluginForMimeType): 125 (QWebPluginDatabase::setPreferredPluginForMimeType): 126 * Api/qwebplugindatabase.h: Added. 127 * Api/qwebplugindatabase_p.h: Added. 128 * Api/qwebsettings.cpp: 129 (QWebSettings::pluginDatabase): 130 * Api/qwebsettings.h: 131 * tests/qwebplugindatabase/qwebplugindatabase.pro: Added. 132 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp: Added. 133 (tst_QWebPluginDatabase::installedPlugins): 134 (tst_QWebPluginDatabase::searchPaths): 135 (tst_QWebPluginDatabase::null_data): 136 (tst_QWebPluginDatabase::null): 137 (tst_QWebPluginDatabase::pluginForMimeType): 138 (tst_QWebPluginDatabase::enabled): 139 (tst_QWebPluginDatabase::operatorequal_data): 140 (tst_QWebPluginDatabase::operatorequal): 141 (tst_QWebPluginDatabase::preferredPlugin): 142 * tests/tests.pro: 143 1442009-08-03 Balazs Kelemen <kelemen.balazs.3@stud.u-szeged.hu> 145 146 Reviewed by Simon Hausmann. 147 148 Do memory cleanup when running robotized QtLauncher in debug as well. 149 150 * QtLauncher/main.cpp: 151 (launcherMain): 152 (main): 153 1542009-07-30 Laszlo Gombos <laszlo.1.gombos@nokia.com> 155 156 Reviewed by Tor Arne Vestbø. 157 158 [Qt] Initialize HTML5 Application Cache for QtWebKit to a sensible default 159 https://bugs.webkit.org/show_bug.cgi?id=27866 160 161 * Api/qwebpage.cpp: 162 (initializeApplicationCachePathIfNecessary): 163 (QWebPagePrivate::QWebPagePrivate): 164 1652009-07-31 Jakob Petsovits <jakob.petsovits@torchmobile.com> 166 167 Reviewed by Adam Treat. 168 169 Build QtWebKit without benchmark tests for Qt < 4.5. 170 https://bugs.webkit.org/show_bug.cgi?id=27886 171 172 The QBENCHMARK macro is only available from 4.5 on, 173 so builds for Qt < 4.5 shouldn't try to build those. 174 175 * tests/tests.pro: 176 1772009-07-31 Kenneth Rohde Christiansen <kenneth@webkit.org> 178 179 Reviewed by Adam Treat. 180 181 Fix warning by migrating use of QString.sprintf(...) to 182 QString.arg().arg()... 183 184 * WebCoreSupport/EditorClientQt.cpp: 185 (dumpRange): 186 1872009-07-31 Kenneth Rohde Christiansen <kenneth@webkit.org> 188 189 Reviewed by Tor Arne Vestbø. 190 191 Expose the Offline Web Application Cache in the Qt API. 192 193 * Api/qwebsettings.cpp: 194 (QWebSettings::QWebSettings): 195 (QWebSettings::setOfflineWebApplicationCachePath): 196 (QWebSettings::offlineWebApplicationCachePath): 197 (QWebSettings::setOfflineWebApplicationCacheQuota): 198 (QWebSettings::offlineWebApplicationCacheQuota): 199 * Api/qwebsettings.h: 200 2012009-07-30 Kenneth Rohde Christiansen <kenneth@webkit.org> 202 203 Reviewed by Adam Treat. 204 205 Add missing Q_OBJECT to class inheriting from QObject. 206 207 * tests/qwebframe/tst_qwebframe.cpp: 208 2092009-07-30 Kenneth Rohde Christiansen <kenneth@webkit.org> 210 211 Reviewed by Adam Treat. 212 213 Fix indentation. 214 215 * tests/qwebframe/tst_qwebframe.cpp: 216 2172009-07-30 Volker Hilsheimer <volker.hilsheimer@nokia.com> 218 219 Reviewed by Simon Hausmann. 220 221 Fix documentation links to examples. 222 223 * Api/qwebview.cpp: 224 2252009-07-30 Balazs Kelemen <kelemen.balazs.3@stud.u-szeged.hu> 226 227 Reviewed by Simon Hausmann. 228 229 Allocate MainWindow on heap in robotized QtLauncher as well. 230 231 * QtLauncher/main.cpp: 232 (main): 233 2342009-07-29 Kevin McCullough <kmccullough@apple.com> 235 236 Reviewed by Darin Adler. 237 238 Added foundation work to allow a testing infrastructure for the Web 239 Inspector. 240 241 * WebCoreSupport/InspectorClientQt.cpp: 242 (WebCore::InspectorClientQt::inspectorWindowObjectCleared): 243 * WebCoreSupport/InspectorClientQt.h: 244 2452009-07-29 Zoltan Herczeg <zherczeg@inf.u-szeged.hu> 246 247 Reviewed by Simon Hausmann. 248 249 [Qt] In debug mode, this fix frees cached resources 250 and other unreferenced objects (by calling the 251 garbage collector) to remove the LEAK messages. 252 https://bugs.webkit.org/show_bug.cgi?id=27767 253 254 * Api/qwebframe.cpp: 255 (qt_drt_cache_clear): 256 * QtLauncher/main.cpp: 257 (main): 258 2592009-07-28 Kenneth Rohde Christiansen <kenneth@webkit.org> 260 261 Fix the Qt build by adapting to the changes of ScriptObject. 262 263 * Api/qwebelement.cpp: 264 (setupScriptObject): 265 2662009-07-28 Robert Hogan <robert@roberthogan.net> 267 268 Reviewed by Simon Hausmann. 269 270 Add WebKit version API to Qt. 271 272 Get the current version of WebKit from WebKit/mac/Configurations/Version.xcconfig 273 at compile time and make it available to Qt applications through 274 qWebKitVersion(). 275 276 Also amend the User Agent string to place the Safari clause outside 277 the final bracket and to the end of the UA string. 278 279 https://bugs.webkit.org/show_bug.cgi?id=27158 280 281 Minor build tweak by Simon Hausmann (adding export macros to new functions). 282 283 * Api/headers.pri: 284 * Api/qwebkitversion.cpp: Added. 285 (webKitVersion): 286 (webKitMajorVersion): 287 (webKitMinorVersion): 288 * Api/qwebkitversion.h: Added. 289 * Api/qwebpage.cpp: 290 (QWebPage::userAgentForUrl): 291 * tests/qwebview/tst_qwebview.cpp: 292 (tst_QWebView::getWebKitVersion): 293 2942009-07-28 Simon Hausmann <simon.hausmann@nokia.com> 295 296 Rubber-stamped by Ariya Hidayat. 297 298 Fix compilation with the precompiled header. 299 300 * WebKit_pch.h: Don't include JSDOMBinding.h and MathObject.h, 301 as they include AtomicString.h. AtomicString.cpp needs to enable 302 a #define before including AtomicString.h, which breaks if the PCH 303 forces the inclusion beforehand. 304 3052009-07-28 Ariya Hidayat <ariya.hidayat@nokia.com> 306 307 Reviewed by Simon Hausmann. 308 309 Added tests to ensure that scroll position can be changed 310 programmatically, even when the scroll bar policy is set to off. 311 312 * tests/qwebframe/tst_qwebframe.cpp: 313 3142009-07-28 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> 315 316 Reviewed by Simon Hausmann. 317 318 Fix a few compilation warnings in the QWebFrame tests. 319 320 * tests/qwebframe/tst_qwebframe.cpp: 321 3222009-07-28 Andre Pedralho <andre.pedralho@openbossa.org> 323 324 Reviewed by Simon Hausmann. 325 326 Fixed tst_QWebFrame::hasSetFocus test which was using 327 an undefined resource. 328 https://bugs.webkit.org/show_bug.cgi?id=27512 329 330 * tests/qwebframe/tst_qwebframe.cpp: 331 3322009-07-28 Simon Hausmann <simon.hausmann@nokia.com> 333 334 Reviewed by Ariya Hidayat. 335 336 Make it possible to pass relative file names to QtLauncher. 337 338 * QtLauncher/main.cpp: 339 (MainWindow::MainWindow): 340 3412009-07-27 Alexey Proskuryakov <ap@webkit.org> 342 343 Reviewed by Darin Adler. 344 345 https://bugs.webkit.org/show_bug.cgi?id=27735 346 Give a helpful name to JSLock constructor argument 347 348 * Api/qwebframe.cpp: 349 (QWebFrame::addToJavaScriptWindowObject): 350 3512009-07-27 Volker Hilsheimer <volker.hilsheimer@nokia.com> 352 353 Reviewed by Simon Hausmann. 354 355 QWebView's "enabled" parameter should default to true, as with QGraphicsView and 356 QPainter. 357 358 * Api/qwebview.cpp: Add reference to QPainter::renderHints(). 359 * Api/qwebview.h: Add default for enabled argument. 360 3612009-07-26 Kavindra Palaraja <kavindra.palaraja@nokia.com> 362 363 Reviewed by Simon Hausmann. 364 365 More documentation cleanups in the QWebElement class overview. 366 367 * Api/qwebelement.cpp: 368 3692009-07-26 Kavindra Palaraja <kavindra.palaraja@nokia.com> 370 371 Reviewed by Simon Hausmann. 372 373 Clean up documentation of QWebElement's findFirst and findAll functions, 374 as well as their QWebFrame counterparts. 375 376 * Api/qwebelement.cpp: 377 * Api/qwebframe.cpp: 378 3792009-07-26 Kavindra Palaraja <kavindra.palaraja@nokia.com> 380 381 Reviewed by Simon Hausmann. 382 383 Various documentation cleanups 384 385 * Fixed qdoc warnings 386 * Hide QWebNetworkInterface from the class overview 387 * Mention QWebElement in the module overview 388 * More cleanups 389 390 * Api/qwebframe.cpp: 391 * Api/qwebnetworkinterface.cpp: 392 * Api/qwebview.cpp: 393 * docs/qtwebkit.qdoc: 394 3952009-07-26 Kavindra Palaraja <kavindra.palaraja@nokia.com> 396 397 Reviewed by Simon Hausmann. 398 399 Added missing class diagram referenced from the docs, taken from the Qt 400 documentation. 401 402 * docs/qtwebkit.qdocconf: Register the image directory with 403 qdoc. 404 * docs/qwebview-diagram.png: Added. 405 4062009-07-24 Antonio Gomes <antonio.gomes@openbossa.org> 407 408 Reviewed by Adam Treat. 409 410 As per discussion on IRC, changed originalUrl by requestedUrl. 411 412 * Api/qwebframe.cpp: 413 (QWebFrame::requestedUrl): 414 * Api/qwebframe.h: 415 * tests/qwebframe/tst_qwebframe.cpp: 416 4172009-07-24 Andre Pedralho <andre.pedralho@openbossa.org> 418 419 Reviewed by Adam Treat. 420 421 Removed void QWebFrame::renderContents(...) and added the Q_PROPERTY 422 clipRenderToViewport to control whether QWebFrame::render would call 423 FrameView::paintContents rather than FrameView::paint and do not clip 424 the frame content to viewport. 425 426 427 * Api/qwebframe.cpp: 428 (QWebFramePrivate::renderPrivate): 429 (QWebFrame::clipRenderToViewport): 430 (QWebFrame::setClipRenderToViewport): 431 * Api/qwebframe.h: 432 * Api/qwebframe_p.h: 433 (QWebFramePrivate::QWebFramePrivate): 434 * tests/qwebframe/tst_qwebframe.cpp: 435 4362009-07-24 Antonio Gomes <antonio.gomes@openbossa.org> 437 438 Reviewed by Simon Hausmann. 439 440 [QT] Implement originalUrl getter method to the API 441 https://bugs.webkit.org/show_bug.cgi?id=25867 442 443 * Api/qwebframe.cpp: 444 (QWebFrame::originalUrl): 445 * Api/qwebframe.h: 446 * tests/qwebframe/qwebframe.qrc: 447 * tests/qwebframe/test1.html: Added. 448 * tests/qwebframe/test2.html: Added. 449 * tests/qwebframe/tst_qwebframe.cpp: 450 4512009-07-24 Kenneth Rohde Christiansen <kenneth@webkit.org> 452 453 Build fix for Qt. 454 455 Fix build issue introduced in 46344 456 ([Bug 22700] ApplicationCache should have size limit) 457 458 Remove method only added to the Qt ChromeClient. 459 460 * WebCoreSupport/ChromeClientQt.h: 461 4622009-07-24 Andrei Popescu <andreip@google.com> 463 464 Reviewed by Anders Carlsson. 465 466 ApplicationCache should have size limit 467 https://bugs.webkit.org/show_bug.cgi?id=22700 468 469 * WebCoreSupport/ChromeClientQt.cpp: 470 (WebCore::ChromeClientQt::reachedMaxAppCacheSize): 471 Adds empty implementation of the reachedMaxAppCacheSize callback. 472 * WebCoreSupport/ChromeClientQt.h: 473 4742009-07-23 Laszlo Gombos <laszlo.1.gombos@nokia.com> 475 476 Reviewed by Simon Hausmann. 477 478 [Qt] Add simple proxy support for QtLauncher 479 https://bugs.webkit.org/show_bug.cgi?id=27495 480 481 Picks up proxy settings from the http_proxy environment 482 variable. 483 484 * QtLauncher/QtLauncher.pro: Add QtNetwork dependency for all 485 platforms. 486 * QtLauncher/main.cpp: 487 (MainWindow::MainWindow): 488 4892009-07-23 Simon Hausmann <simon.hausmann@nokia.com> 490 491 Reviewed by Holger Freyther. 492 493 Added a testcase to verify that cached methods in the QOBject bindings 494 remain alife even after garbage collection. 495 496 * tests/qwebpage/tst_qwebpage.cpp: 497 (tst_QWebPage::protectBindingsRuntimeObjectsFromCollector): 498 4992009-07-23 Zoltan Herczeg <zherczeg@inf.u-szeged.hu> 500 501 Reviewed by Simon Hausmann. 502 503 Fixing two issues related to QtLauncher 504 - MainWindow objects are not always freed after close 505 - JavaScript window.close() sometimes crashes 506 https://bugs.webkit.org/show_bug.cgi?id=27601 507 508 * QtLauncher/main.cpp: 509 (MainWindow::MainWindow): 510 (main): 511 5122009-07-21 Volker Hilsheimer <volker.hilsheimer@nokia.com> 513 514 Reviewed by Simon Hausmann. 515 516 Various improvements to the API documentation. 517 518 * Updated link to W3c Database spec 519 * Formatting fixes, cleanups 520 * Add missing \since 4.6 tags to QWebPage::frameAt 521 * Extend QWebDatabase and QWebSecurityOrigin docs. 522 523 * Api/qwebdatabase.cpp: 524 * Api/qwebpage.cpp: 525 * Api/qwebsecurityorigin.cpp: 526 * Api/qwebview.cpp: 527 5282009-07-21 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> 529 530 Rubber-stamped by Simon Hausmann. 531 532 Remove preliminary-tag from QWebElement 533 534 * Api/qwebelement.cpp: 535 5362009-07-20 Kenneth Rohde Christiansen <kenneth@webkit.org> 537 538 Reviewed by Eric Seidel. 539 540 Fix Qt code to follow the WebKit Coding Style. 541 542 * Api/qcookiejar.cpp: 543 (QCookieJar::setCookieJar): 544 (QCookieJar::cookieJar): 545 * Api/qcookiejar.h: 546 * Api/qwebdatabase.cpp: 547 (QWebDatabase::QWebDatabase): 548 (QWebDatabase::removeDatabase): 549 * Api/qwebdatabase.h: 550 * Api/qwebdatabase_p.h: 551 * Api/qwebelement.h: 552 * Api/qwebframe.cpp: 553 (QWebFrame::title): 554 (QWebFrame::print): 555 * Api/qwebframe.h: 556 * Api/qwebframe_p.h: 557 * Api/qwebhistory.cpp: 558 (QWebHistory::clear): 559 * Api/qwebhistory.h: 560 * Api/qwebhistory_p.h: 561 * Api/qwebhistoryinterface.cpp: 562 (gCleanupInterface): 563 (QWebHistoryInterface::setDefaultInterface): 564 (QWebHistoryInterface::defaultInterface): 565 (QWebHistoryInterface::QWebHistoryInterface): 566 * Api/qwebhistoryinterface.h: 567 * Api/qwebnetworkinterface.cpp: 568 (QWebNetworkManager::started): 569 (QWebNetworkManager::finished): 570 (QWebNetworkInterfacePrivate::parseDataUrl): 571 (QWebNetworkInterface::addJob): 572 (WebCoreHttp::onResponseHeaderReceived): 573 (WebCoreHttp::onReadyRead): 574 * Api/qwebnetworkinterface.h: 575 * Api/qwebnetworkinterface_p.h: 576 * Api/qwebpage.cpp: 577 (QWebPagePrivate::editorCommandForWebActions): 578 (QWebPagePrivate::createContextMenu): 579 (QWebPagePrivate::focusInEvent): 580 (QWebPage::fixedContentsSize): 581 (QWebPage::setContentEditable): 582 (QWebPage::swallowContextMenuEvent): 583 (QWebPage::findText): 584 * Api/qwebpage.h: 585 * Api/qwebpage_p.h: 586 * Api/qwebpluginfactory.h: 587 * Api/qwebsecurityorigin.h: 588 * Api/qwebsecurityorigin_p.h: 589 * Api/qwebsettings.cpp: 590 (QWebSettingsPrivate::QWebSettingsPrivate): 591 (QWebSettingsPrivate::apply): 592 (QWebSettings::globalSettings): 593 (QWebSettings::QWebSettings): 594 (QWebSettings::fontSize): 595 (QWebSettings::setUserStyleSheetUrl): 596 (QWebSettings::setDefaultTextEncoding): 597 (QWebSettings::setIconDatabasePath): 598 (QWebSettings::iconDatabasePath): 599 (QWebSettings::iconForUrl): 600 (QWebSettings::setWebGraphic): 601 (QWebSettings::setFontFamily): 602 (QWebSettings::fontFamily): 603 (QWebSettings::testAttribute): 604 (qt_websettings_setLocalStorageDatabasePath): 605 * Api/qwebsettings.h: 606 * Api/qwebview.cpp: 607 (QWebView::setPage): 608 (QWebView::event): 609 * Api/qwebview.h: 610 6112009-07-20 Holger Hans Peter Freyther <zecke@selfish.org> 612 613 Reviewed by Simon Hausmann. 614 615 [Qt] Add test for loading webpages... 616 617 Performance test for loading webpages. Wait for the loadFinished 618 signal to be fired. This should include a non empty layout. 619 620 * tests/benchmarks/loading/tst_loading.cpp: Added. 621 (waitForSignal): 622 (tst_Loading::init): 623 (tst_Loading::cleanup): 624 (tst_Loading::load_data): 625 (tst_Loading::load): 626 * tests/benchmarks/loading/tst_loading.pro: Added. 627 * tests/tests.pro: 628 6292009-07-20 Holger Hans Peter Freyther <zecke@selfish.org> 630 631 Reviewed by Simon Hausmann. 632 633 [Qt] Add a test case for drawing a simple viewrect to a QPixmap 634 635 * tests/benchmarks/painting/tst_painting.cpp: Added. 636 (waitForSignal): 637 (tst_Painting::init): 638 (tst_Painting::cleanup): 639 (tst_Painting::paint_data): 640 (tst_Painting::paint): 641 * tests/benchmarks/painting/tst_painting.pro: Added. 642 * tests/tests.pro: 643 6442009-07-20 Laszlo Gombos <laszlo.1.gombos@nokia.com> 645 646 Reviewed by Holger Freyther. 647 648 [Qt] Add an option for QtLauncher to build without QtUiTools dependency 649 https://bugs.webkit.org/show_bug.cgi?id=27438 650 651 Based on Norbert Leser's work. 652 653 * QtLauncher/main.cpp: 654 (WebPage::createPlugin): 655 6562009-07-17 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 657 658 Reviewed by Adam Treat. 659 660 Coding style fixes. 661 662 * Api/qcookiejar.cpp: 663 (QCookieJarPrivate::QCookieJarPrivate): 664 (qHash): 665 (QCookieJar::cookieJar): 666 * Api/qwebelement.cpp: 667 (QWebElement::functions): 668 (QWebElement::scriptableProperties): 669 * Api/qwebframe.cpp: 670 (QWebFrame::metaData): 671 (QWebFrame::scrollBarValue): 672 (QWebFrame::scroll): 673 (QWebFrame::scrollPosition): 674 (QWebFrame::print): 675 * Api/qwebnetworkinterface.cpp: 676 (decodePercentEncoding): 677 (QWebNetworkRequestPrivate::init): 678 (QWebNetworkRequestPrivate::setURL): 679 (QWebNetworkRequest::QWebNetworkRequest): 680 (QWebNetworkRequest::operator=): 681 (QWebNetworkRequest::setUrl): 682 (QWebNetworkRequest::setHttpHeader): 683 (QWebNetworkRequest::httpHeaderField): 684 (QWebNetworkRequest::setHttpHeaderField): 685 (QWebNetworkRequest::setPostData): 686 (QWebNetworkJob::setResponse): 687 (QWebNetworkJob::frame): 688 (QWebNetworkManager::add): 689 (QWebNetworkManager::cancel): 690 (QWebNetworkManager::started): 691 (QWebNetworkManager::data): 692 (QWebNetworkManager::finished): 693 (QWebNetworkManager::addHttpJob): 694 (QWebNetworkManager::cancelHttpJob): 695 (QWebNetworkManager::httpConnectionClosed): 696 (QWebNetworkInterfacePrivate::sendFileData): 697 (QWebNetworkInterfacePrivate::parseDataUrl): 698 (QWebNetworkManager::doWork): 699 (QWebNetworkInterface::setDefaultInterface): 700 (QWebNetworkInterface::defaultInterface): 701 (QWebNetworkInterface::QWebNetworkInterface): 702 (QWebNetworkInterface::addJob): 703 (QWebNetworkInterface::cancelJob): 704 (WebCoreHttp::WebCoreHttp): 705 (WebCoreHttp::request): 706 (WebCoreHttp::scheduleNextRequest): 707 (WebCoreHttp::getConnection): 708 (WebCoreHttp::onResponseHeaderReceived): 709 (WebCoreHttp::onReadyRead): 710 (WebCoreHttp::onRequestFinished): 711 (WebCoreHttp::onAuthenticationRequired): 712 (WebCoreHttp::onProxyAuthenticationRequired): 713 * Api/qwebpage.cpp: 714 (QWebPagePrivate::QWebPagePrivate): 715 (QWebPagePrivate::mouseReleaseEvent): 716 (QWebPagePrivate::inputMethodEvent): 717 (QWebPagePrivate::shortcutOverrideEvent): 718 (QWebPage::inputMethodQuery): 719 (QWebPage::javaScriptPrompt): 720 (QWebPage::updatePositionDependentActions): 721 (QWebPage::userAgentForUrl): 722 (QWebPagePrivate::_q_onLoadProgressChanged): 723 (QWebPage::totalBytes): 724 (QWebPage::bytesReceived): 725 * Api/qwebsettings.cpp: 726 (QWebSettings::iconForUrl): 727 (QWebSettings::setObjectCacheCapacities): 728 * Api/qwebview.cpp: 729 (QWebView::paintEvent): 730 (QWebView::changeEvent): 731 7322009-07-17 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 733 734 Reviewed by Simon Hausmann. 735 736 Overwrite the plugin directories for the DRT. 737 Part of https://bugs.webkit.org/show_bug.cgi?id=27215 738 739 * Api/qwebpage.cpp: 740 (qt_drt_overwritePluginDirectories): Only set the plugin directories 741 to the ones in the QTWEBKIT_PLUGIN_PATH environment variable. 742 7432009-07-16 Xiaomei Ji <xji@chromium.org> 744 745 Reviewed by Dan Bernstein. 746 747 This is the 2nd part of fixing "RTL: tooltip does not get its directionlity from its element's." 748 https://bugs.webkit.org/show_bug.cgi?id=24187 749 750 Add one extra parameter to the callee of HitTestResult::title() due to the signature change. 751 752 * Api/qwebframe.cpp: 753 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): Add direction as a parameter to the callee of HitTestResult::title(). 754 * WebCoreSupport/ChromeClientQt.cpp: 755 (WebCore::ChromeClientQt::mouseDidMoveOverElement): Add direction as a parameter to the callee of HitTestResult::title(). 756 7572009-07-16 Benjamin C Meyer <benjamin.meyer@torchmobile.com> 758 759 Reviewed by Adam Treat. 760 761 Add new action to qwebpage to reload without cache. 762 763 * Api/qwebpage.cpp: 764 (QWebPagePrivate::updateAction): 765 (QWebPagePrivate::updateNavigationActions): 766 (QWebPage::triggerAction): 767 * Api/qwebpage.h: 768 7692009-07-16 Xiaomei Ji <xji@chromium.org> 770 771 Reviewed by Darin Adler. 772 773 Fix tooltip does not get its directionality from its element's directionality. 774 https://bugs.webkit.org/show_bug.cgi?id=24187 775 776 Per mitz's suggestion in comment #6, while getting the plain-text 777 title, we also get the directionality of the title. How to handle 778 the directionality is up to clients. Clients could ignore it, 779 or use attribute or unicode control characters to display the title 780 as what they want. 781 782 783 * WebCoreSupport/ChromeClientQt.cpp: 784 (WebCore::ChromeClientQt::setToolTip): Add directionality as 2nd parameter to setToopTip() (without handling it yet). 785 * WebCoreSupport/ChromeClientQt.h: Add directionality as 2nd parameter to setToolTip(). 786 7872009-07-15 Yael Aharon <yael.aharon@nokia.com> 788 789 Reviewed by Simon Hausmann. 790 791 https://bugs.webkit.org/show_bug.cgi?id=27285 792 793 When the user clicks a link with a target attribute, the newly created window should be visible. 794 Make new windows created in Qtlauncher visible. 795 796 * QtLauncher/main.cpp: 797 (WebPage::createWindow): 798 7992009-07-14 Adam Treat <adam.treat@torchmobile.com> 800 801 Reviewed by Zack Rusin. 802 803 https://bugs.webkit.org/show_bug.cgi?id=26983 804 805 The default constructed values for QSize and WebCore::IntSize are different. The former 806 produces an invalid size whereas the latter produces a size of zero. This was causing 807 a layout to be triggered when constructing a view and an assert to be hit. This patch fixes 808 the crash by taking care not to cause an unnecessary layout triggered by ScrollView::setFixedLayoutSize. 809 810 * WebCoreSupport/FrameLoaderClientQt.cpp: 811 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 812 8132009-07-13 Simon Hausmann <simon.hausmann@nokia.com> 814 815 Reviewed by Ariya Hidayat. 816 817 Fix qdoc warnings for QWebPage::shouldInterruptJavaScript() and mention 818 how to re-implement it. 819 820 * Api/qwebpage.cpp: 821 8222009-07-13 Simon Hausmann <hausmann@webkit.org> 823 824 Reviewed by Ariya Hidayat. 825 826 Fix crash with plugins when the plugin stream is cancelled. 827 828 Similar to r26667 handle the case where didReceiveResponse on the 829 plugin view results in failure to set up the stream and 830 setMainDocumentError being called instead. This will set the 831 m_pluginView back to 0 and we need check for it before calling 832 didReceiveData. 833 834 This was triggered by consecutive execution of 835 LayoutTests/plugins/return-error-from-new-stream-callback-in-full-frame-plugin.html 836 followed by LayoutTests/scrollbars/scrollbar-crash-on-refresh.html 837 838 * WebCoreSupport/FrameLoaderClientQt.cpp: 839 (WebCore::FrameLoaderClientQt::committedLoad): 840 8412009-07-13 Simon Hausmann <hausmann@webkit.org> 842 843 Reviewed by Ariya Hidayat. 844 845 Added QWebDatabase::removeAllDatabases, as a way to delete all 846 databases from the offline storage path. 847 848 Used by the Qt DRT. 849 850 * Api/qwebdatabase.cpp: 851 (QWebDatabase::removeAllDatabases): 852 * Api/qwebdatabase.h: 853 8542009-07-13 Simon Hausmann <hausmann@webkit.org> 855 856 Reviewed by Ariya Hidayat. 857 858 Added loadStarted() and loadFinished() signals to QWebFrame, 859 to allow load tracking of individual frames, as opposed to 860 QWebPage's loadStarted/loadFinished signals that are emitted 861 whenever _any_ child frame loads/finishes. 862 863 * Api/qwebframe.cpp: Document new signals. 864 * Api/qwebframe.h: Add new signals. 865 * WebCoreSupport/FrameLoaderClientQt.cpp: 866 (WebCore::FrameLoaderClientQt::setFrame): Connect new signals. 867 8682009-07-13 Simon Hausmann <hausmann@webkit.org> 869 870 Reviewed by Ariya Hidayat. 871 872 Add hooks for the GCController JavaScript interface needed by the 873 Qt DRT. 874 875 Fixed sort order of includes in qwebframe.cpp. 876 877 * Api/qwebframe.cpp: 878 (qt_drt_javaScriptObjectsCount): 879 (qt_drt_garbageCollector_collect): 880 (qt_drt_garbageCollector_collectOnAlternateThread): 881 8822009-07-13 Simon Hausmann <hausmann@webkit.org> 883 884 Reviewed by Ariya Hidayat. 885 886 Add hooks for the GCController JavaScript interface needed by the 887 Qt DRT. 888 889 Fixed sort order of includes in qwebframe.cpp. 890 891 * Api/qwebframe.cpp: 892 (qt_drt_javaScriptObjectsCount): 893 (qt_drt_garbageCollector_collect): 894 (qt_drt_garbageCollector_collectOnAlternateThread): 895 8962009-07-12 Brent Fulgham <bfulgham@gmail.com> 897 898 Speculative build fix after http://trac.webkit.org/changeset/45786. 899 900 * WebCoreSupport/ChromeClientQt.cpp: 901 (WebCore::ChromeClientQt::addMessageToConsole): 902 * WebCoreSupport/ChromeClientQt.h: 903 9042009-07-10 Yael Aharon <yael.aharon@nokia.com> 905 906 Reviewed by Holger Freyther. 907 908 https://bugs.webkit.org/show_bug.cgi?id=27136 909 910 Fix a bug where webkit hangs when executing infinite JavaScript loop. 911 912 * Api/qwebpage.cpp: 913 (QWebPage::shouldInterruptJavaScript): 914 * Api/qwebpage.h: 915 * WebCoreSupport/ChromeClientQt.cpp: 916 (WebCore::ChromeClientQt::shouldInterruptJavaScript): 917 * tests/qwebpage/tst_qwebpage.cpp: 918 (JSTestPage::JSTestPage): 919 (JSTestPage::shouldInterruptJavaScript): 920 (tst_QWebPage::infiniteLoopJS): 921 9222009-07-10 Simon Hausmann <simon.hausmann@nokia.com> 923 924 Reviewed by Holger Freyther. 925 926 https://bugs.webkit.org/show_bug.cgi?id=27108 927 928 Fix crash when in frame tree of a new frame before the new frame 929 has been installed in the frame tree, similar to r35088. 930 931 After calling Frame::init() the frame it may have been removed from the 932 frame tree again through JavaScript. Detect this by checking the page() 933 afterwards. 934 935 To make this check safe the Frame::init() code was moved into 936 QWebFrameData's constructor, where a RefPtr holds a reference to the frame. 937 After the check back in FrameLoaderClientQt we would hold the single 938 reference left and after release() the frame, its frame loader, its 939 client as well as the QWebFrame should have disappeared then. 940 941 * Api/qwebframe.cpp: 942 (QWebFramePrivate::init): Only call Frame::init here, the rest is 943 done in QWebFrameData's constructor. 944 (QWebFrame::QWebFrame): 945 * Api/qwebframe_p.h: Adjust declaration. 946 (QWebFrameData::QWebFrameData): Create the Frame here. 947 * Api/qwebpage.cpp: 948 (QWebPagePrivate::createMainFrame): Adjust and simplify 949 to new QWebFrame constructor. 950 * WebCoreSupport/FrameLoaderClientQt.cpp: 951 (WebCore::FrameLoaderClientQt::createFrame): Adjust to 952 new QWebFrame construction using QWebFrameData and add the 953 check like in r35088. 954 9552009-07-09 Beth Dakin <bdakin@apple.com> 956 957 Reviewed by Dave Hyatt. 958 959 Make Widget RefCounted to fix: 960 961 <rdar://problem/7038831> REGRESSION (TOT): In Mail, a crash occurs 962 at WebCore::Widget::afterMouseDown() after clicking To Do's close 963 box 964 <rdar://problem/6978804> WER #16: Repro Access Violation in 965 WebCore::PluginView::bindingInstance (1310178023) 966 -and- 967 <rdar://problem/6991251> WER #13: Crash in WebKit! 968 WebCore::PluginView::performRequest+203 (1311461169) 969 970 * WebCoreSupport/FrameLoaderClientQt.cpp: 971 (WebCore::FrameLoaderClientQt::createPlugin): 972 (WebCore::FrameLoaderClientQt::createJavaAppletWidget): 973 * WebCoreSupport/FrameLoaderClientQt.h: 974 9752009-07-08 Pradeepto Bhattacharya <pradeepto@kde.org> 976 977 Reviewed by Ariya Hidayat. 978 979 Build fix. 980 981 * WebCoreSupport/FrameLoaderClientQt.h: Removed the slot slotCallPolicyFunction(). 982 9832009-07-08 Simon Hausmann <hausmann@webkit.org> 984 985 Reviewed by Tor Arne Vestbø. 986 987 https://bugs.webkit.org/show_bug.cgi?id=27080 988 989 Fix DRT instability issues with fast/loader/submit-form-while-parsing-2.html 990 991 When the form is submitted we call the policy function in the frame 992 loader delayed with a queued connection. That queued connection 993 sometimes interferes with the javascript timeout set in the testcase. 994 995 Eliminate the entire delayed policy function mechanism and instead always 996 call back directly, like in the other ports. In most other places we called 997 the slot directly anyway. 998 999 * WebCoreSupport/FrameLoaderClientQt.cpp: 1000 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Remove m_policyFunction. 1001 (WebCore::FrameLoaderClientQt::callPolicyFunction): Call the policy function directly instead 1002 of emitting the queued signal. 1003 (WebCore::FrameLoaderClientQt::cancelPolicyCheck): Call callPolicyFunction directly. 1004 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): Ditto. 1005 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): Ditto. 1006 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): Ditto. 1007 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): Ditto. 1008 * WebCoreSupport/FrameLoaderClientQt.h: Remove m_policyFunction as well as the associated 1009 signal. 1010 10112009-07-07 Simon Hausmann <hausmann@webkit.org> 1012 1013 Reviewed by Holger Freyther. 1014 1015 Add Qt DRT hook for clearing the frame name. 1016 1017 * Api/qwebframe.cpp: 1018 (qt_drt_clearFrameName): 1019 10202009-07-05 Simon Hausmann <hausmann@webkit.org> 1021 1022 Reviewed by Holger Freyther. 1023 1024 Fix two qdoc warnings. 1025 1026 Added missing \property for QWebFrame::hasFocus and added \a 1027 tag for pos of QWebPage::frameAt. 1028 1029 * Api/qwebframe.cpp: 1030 * Api/qwebpage.cpp: 1031 10322009-07-04 Holger Hans Peter Freyther <zecke@selfish.org> 1033 1034 Reviewed by Simon Hausmann. 1035 1036 Use the recently introduced FocusController::setFocused 1037 1038 Use the recently introduced FocusController::setFocused 1039 in the Qt platform. The SelectionController will be updated 1040 from within the FocusController now. 1041 1042 * Api/qwebpage.cpp: 1043 (QWebPagePrivate::focusInEvent): 1044 (QWebPagePrivate::focusOutEvent): 1045 10462009-07-02 Simon Hausmann <simon.hausmann@nokia.com> 1047 1048 Reviewed by Ariya Hidayat. 1049 1050 Improve documentation of QWebFrame::setFocus and hasFocus() 1051 Added missing Q_PROPERTY for QWebFrame::hasFocus. 1052 1053 * Api/qwebframe.cpp: Clarify the docs. 1054 * Api/qwebframe.h: add Q_PROPERTY(focus). 1055 10562009-07-02 Joe Ligman <joseph.ligman@nokia.com> 1057 1058 Reviewed by Simon Hausmann. 1059 1060 Bug 26855: [Qt] New methods for QWebFrame to check and set focus. 1061 1062 Added new public methods QWebFrame::hasFocus() and QWebFrame::setFocus() 1063 Added auto test. 1064 1065 * Api/qwebframe.cpp: 1066 (QWebFrame::hasFocus): 1067 (QWebFrame::setFocus): 1068 * Api/qwebframe.h: 1069 * tests/qwebframe/tst_qwebframe.cpp: 1070 10712009-07-01 Robert Hogan <robert@roberthogan.net> 1072 1073 Reviewed by NOBODY. 1074 1075 Fix Qt segfault when javascript disabled. 1076 If clients call addToJavaScriptWindowObject even though JavascriptEnabled is false 1077 webkit will segfault on the assert: 1078 ASSERTION FAILED: _rootObject 1079 (../../../WebCore/bridge/runtime.cpp:52 1080 JSC::Bindings::Instance::Instance(WTF::PassRefPtr<JSC::Bindings::RootObject>)) 1081 Fix is to ensure JavaScript is enabled when client calls addToJavaScriptWindowObject. 1082 1083 https://bugs.webkit.org/show_bug.cgi?id=26906 1084 1085 * Api/qwebframe.cpp: 1086 (QWebFrame::addToJavaScriptWindowObject): 1087 10882009-07-01 Jakub Wieczorek <faw217@gmail.com> 1089 1090 Reviewed by Simon Hausmann. 1091 1092 [Qt] Move some API headers from WebCore.pro to headers.pri so that they 1093 get installed when running make install from the build directory. 1094 1095 * Api/headers.pri: 1096 10972009-07-01 Balazs Kelemen <kelemen.balazs.3@stud.u-szeged.hu> 1098 1099 Reviewed by Simon Hausmann. 1100 1101 Fixed robotized QtLauncher to work when there is no index.html in the user's home. 1102 1103 * QtLauncher/main.cpp: 1104 (main): 1105 11062009-06-30 Brian Weinstein <bweinstein@apple.com> 1107 1108 Reviewed by Adam Roben. 1109 1110 Renamed scrollbarUnderPoint to scrollbarAtPoint to follow conventions. 1111 1112 * Api/qwebpage.cpp: 1113 (QWebPage::swallowContextMenuEvent): 1114 11152009-06-30 Joe Ligman <joseph.ligman@nokia.com> 1116 1117 Reviewed by Adam Treat. 1118 1119 Bug 26422: [Qt] QWebPagePrivate::frameAt calculates wrong frame 1120 1121 Added a public method QWebPage::frameAt 1122 Removed QWebPagePrivate::frameAt, which calcuated the wrong frame 1123 Modified QWebPage::swallowContextMenuEvent to use the new frameAt method 1124 New test case for frameAt added to tst_qwebpage.cpp 1125 1126 * Api/qwebpage.cpp: 1127 (QWebPage::frameAt): 1128 (QWebPage::swallowContextMenuEvent): 1129 * Api/qwebpage.h: 1130 * Api/qwebpage_p.h: 1131 * tests/qwebpage/frametest/iframe.html: Added. 1132 * tests/qwebpage/frametest/iframe2.html: Added. 1133 * tests/qwebpage/frametest/iframe3.html: Added. 1134 * tests/qwebpage/tst_qwebpage.cpp: 1135 (frameAtHelper): 1136 (tst_QWebPage::frameAt): 1137 * tests/qwebpage/tst_qwebpage.qrc: 1138 11392009-06-30 Jakub Wieczorek <faw217@gmail.com> 1140 1141 Reviewed by Simon Hausmann. 1142 1143 Add QWebFrame::baseUrl() function that exposes the base URL of a frame. 1144 Autotests included. 1145 1146 * Api/qwebframe.cpp: 1147 (QWebFrame::baseUrl): 1148 * Api/qwebframe.h: 1149 * tests/qwebframe/tst_qwebframe.cpp: 1150 11512009-06-29 Simon Hausmann <simon.hausmann@nokia.com> 1152 1153 Fix the Qt build, add missing isSpeaking() implementation to 1154 ContextMenuClient. 1155 1156 * WebCoreSupport/ContextMenuClientQt.cpp: 1157 (WebCore::ContextMenuClientQt::isSpeaking): 1158 * WebCoreSupport/ContextMenuClientQt.h: 1159 11602009-06-28 Sriram Yadavalli <sriram.yadavalli@nokia.com> 1161 1162 Reviewed by Eric Seidel. 1163 1164 [Qt] Fix build break for Qt 1165 https://bugs.webkit.org/show_bug.cgi?id=26779 1166 1167 * Api/qwebpage.cpp: 1168 (QWebPage::swallowContextMenuEvent): 1169 11702009-06-27 Simon Hausmann <simon.hausmann@nokia.com> 1171 1172 Build fix for Qt under Windows. 1173 1174 * Api/qwebhistory.h: Use consistent export linkage for the datastream operators. 1175 11762009-06-26 Brian Weinstein <bweinstein@apple.com> 1177 1178 Reviewed by Simon Fraser. 1179 1180 Changed call of scrollbarUnderMouse to scrollbarUnderPoint to match new API. 1181 1182 * Api/qwebpage.cpp: 1183 (QWebPage::swallowContextMenuEvent): 1184 11852009-06-26 Jedrzej Nowacki <jedrzej.nowacki@nokia.com> 1186 1187 Reviewed by Simon Hausmann. 1188 1189 Add support for saving and loading of QWebHistory to and from a QByteArray. 1190 1191 This includes streaming operators for QWebHistory. for convenience. 1192 1193 New autotests that test QWebHistory and QWebHistoryItem serialization. 1194 1195 * Api/qwebhistory.cpp: 1196 (QWebHistory::restoreState): 1197 (QWebHistory::saveState): 1198 (operator<<): 1199 (operator>>): 1200 * Api/qwebhistory.h: 1201 * Api/qwebhistory_p.h: 1202 * tests/qwebhistory/tst_qwebhistory.cpp: 1203 (tst_QWebHistory::): 1204 (tst_QWebHistory::init): 1205 (tst_QWebHistory::title): 1206 (tst_QWebHistory::count): 1207 (tst_QWebHistory::back): 1208 (tst_QWebHistory::forward): 1209 (tst_QWebHistory::itemAt): 1210 (tst_QWebHistory::goToItem): 1211 (tst_QWebHistory::items): 1212 (tst_QWebHistory::serialize_1): 1213 (tst_QWebHistory::serialize_2): 1214 (tst_QWebHistory::serialize_3): 1215 (tst_QWebHistory::saveAndRestore_1): 1216 (tst_QWebHistory::saveAndRestore_2): 1217 (tst_QWebHistory::saveAndRestore_3): 1218 12192009-06-26 Jedrzej Nowacki <jedrzej.nowacki@nokia.com> 1220 1221 Reviewed by Simon Hausmann. 1222 1223 Fix the behaviour of QWebHistory::itemAt to interpret the specified index as absolute index. 1224 1225 Returns an invalid QWebHistoryItem if the index is out of range. 1226 1227 * Api/qwebhistory.cpp: 1228 (QWebHistory::itemAt): 1229 * tests/qwebhistory/tst_qwebhistory.cpp: 1230 (tst_QWebHistory::itemAt): 1231 12322009-06-26 Jedrzej Nowacki <jedrzej.nowacki@nokia.com> 1233 1234 Reviewed by Simon Hausmann. 1235 1236 Added a few autotest to QWebHistory. 1237 1238 * tests/qwebhistory/data/page1.html: Added. 1239 * tests/qwebhistory/data/page2.html: Added. 1240 * tests/qwebhistory/data/page3.html: Added. 1241 * tests/qwebhistory/data/page4.html: Added. 1242 * tests/qwebhistory/data/page5.html: Added. 1243 * tests/qwebhistory/data/page6.html: Added. 1244 * tests/qwebhistory/qwebhistory.pro: Added. 1245 * tests/qwebhistory/tst_qwebhistory.cpp: Added. 1246 (tst_QWebHistory::): 1247 (tst_QWebHistory::tst_QWebHistory): 1248 (tst_QWebHistory::~tst_QWebHistory): 1249 (tst_QWebHistory::init): 1250 (tst_QWebHistory::cleanup): 1251 (tst_QWebHistory::title): 1252 (tst_QWebHistory::count): 1253 (tst_QWebHistory::back): 1254 (tst_QWebHistory::forward): 1255 (tst_QWebHistory::goToItem): 1256 (tst_QWebHistory::items): 1257 * tests/qwebhistory/tst_qwebhistory.qrc: Added. 1258 * tests/tests.pro: 1259 12602009-06-26 Jedrzej Nowacki <jedrzej.nowacki@nokia.com> 1261 1262 Reviewed by Simon Hausmann. 1263 1264 Fix support for documenting functions prefixed with QWEBKIT_EXPORT 1265 1266 Add QWEBKIT_EXPORT to the list of macros to ignore by qdoc. 1267 1268 * docs/qtwebkit.qdocconf: 1269 12702009-06-26 Yongjun Zhang <yongjun.zhang@nokia.com> 1271 1272 Reviewed by Eric Seidel. 1273 1274 Bug 20303: [Qt] Key events are not working in frames. 1275 1276 Send scrolling events to current focused frame, bubble the event 1277 up to parent frame if it is not handled. Use EventHandler's new 1278 shared scrolling code. 1279 1280 * Api/qwebpage.cpp: 1281 (QWebPagePrivate::keyPressEvent): 1282 (QWebPagePrivate::handleScrolling): 1283 * Api/qwebpage_p.h: 1284 12852009-06-25 Jakub Wieczorek <faw217@gmail.com> 1286 1287 Reviewed by Adam Treat. 1288 1289 Add highlight functionality to the QWebPage::findText() method. Introduced is 1290 new HighlightAllOccurrences flag which passed to the function will make it mark 1291 all existing occurrences of specified string in the page. 1292 1293 * Api/qwebpage.cpp: 1294 (QWebPage::findText): 1295 * Api/qwebpage.h: 1296 * Api/qwebview.cpp: 1297 12982009-06-19 Daniel Teske <qt-info@nokia.com> 1299 1300 Reviewed by Simon Hausmann. 1301 1302 Remove warnings for QString() constructions from const char * 1303 1304 By explicitly wrapping it with QLatin1String() / QLatin1Char() 1305 1306 * Api/qwebelement.cpp: 1307 (QWebElement::classes): Use QLatin1String. 1308 (QWebElement::addClass): Ditto. 1309 (QWebElement::removeClass): Ditto. 1310 (QWebElement::toggleClass): Ditto. 1311 13122009-06-18 Friedemann Kleint <Friedemann.Kleint@nokia.com> 1313 1314 Reviewed by Simon Hausmann. 1315 1316 Fixed MinGW compilation. 1317 1318 * Api/qwebelement.cpp: 1319 (QWebElement::evaluateScript): 1320 13212009-06-18 Markus Goetz <Markus.Goetz@nokia.com> 1322 1323 Reviewed by Simon Hausman. 1324 1325 Clarify in docs how to compile with debug information. 1326 1327 * docs/qtwebkit.qdoc: 1328 13292009-06-17 Markus Goetz <Markus.Goetz@nokia.com> 1330 1331 Reviewed by Simon Hausmann. 1332 1333 QWebPage: Don't call supportsSsl() 1334 1335 This stops QWebPage from loading the OpenSSL libs, 1336 certificates etc. when they are not needed for the non-HTTPS case. 1337 1338 Loading the SSL libraries can be a very slow operation. 1339 1340 * Api/qwebpage.cpp: 1341 (QWebPage::userAgentForUrl): 1342 13432009-06-16 David Boddie <dboddie@trolltech.com> 1344 1345 Reviewed by Simon Hausmann. 1346 1347 Doc: Fixed QWebPage::forwardUnsupportedContent documentation and added 1348 more information about Web plugins. 1349 1350 * Api/qwebpage.cpp: 1351 * Api/qwebsettings.cpp: 1352 * docs/qtwebkit.qdoc: 1353 13542009-06-16 Morten Engvoldsen <morten.engvoldsen@nokia.com> 1355 1356 Reviewed by Ariya Hidayat. 1357 1358 Clearifying QWebFrame docs 1359 1360 Adding docs to toHtml() and toPlainText() 1361 1362 * Api/qwebframe.cpp: 1363 13642009-06-15 Benjamin C Meyer <benjamin.meyer@torchmobile.com> 1365 1366 Reviewed by Adam Treat. 1367 1368 Support the back/forward/stop/refresh multimedia keys and accept the 1369 event when handling backspace and shift backspace as we should. 1370 1371 * Api/qwebpage.cpp: 1372 (QWebPagePrivate::keyPressEvent): 1373 13742009-06-15 Andre Pedralho <andre.pedralho@openbossa.org> 1375 1376 Reviewed by Adam Treat. 1377 1378 https://bugs.webkit.org/show_bug.cgi?id=26351 1379 Remove bool QWebHitTestResult::isScrollBar() const and make sure a null QWebHitTestResult is returned instead. 1380 1381 * Api/qwebframe.cpp: 1382 (QWebFrame::hitTestContent): 1383 * Api/qwebframe.h: 1384 * Api/qwebpage.cpp: 1385 (QWebPage::updatePositionDependentActions): 1386 13872009-06-15 Simon Hausmann <simon.hausmann@nokia.com> 1388 1389 Reviewed by Adam Treat. 1390 1391 Fix the logic for disabling the fixed layout feature, when an invalid 1392 QSize is set. 1393 1394 * Api/qwebpage.cpp: 1395 (QWebPage::setFixedContentsSize): 1396 13972009-06-13 Adam Barth <abarth@webkit.org> 1398 1399 Reviewed by Darin Fisher. 1400 1401 https://bugs.webkit.org/show_bug.cgi?id=24492 1402 1403 Move registerURLSchemeAsLocal from FrameLoader to SecurityOrigin. 1404 1405 * Api/qwebpage.cpp: 1406 (QWebPage::acceptNavigationRequest): 1407 14082009-06-10 Antonio Gomes <antonio.gomes@openbossa.org> 1409 1410 Reviewed by Ariya Hidayat. 1411 1412 Documented ResolveRule and StylePriority enum values as well as their use in 1413 QWebElement::styleProperty and QWebElement::setStyleProperty methods. 1414 1415 Based on the work of Simon Hausmann. 1416 1417 * Api/qwebelement.cpp: 1418 (QWebElement::styleProperty): 1419 (QWebElement::setStyleProperty): 1420 * Api/qwebelement.h: 1421 14222009-06-09 Ariya Hidayat <ariya.hidayat@nokia.com> 1423 1424 Rubber-stamped by Simon Hausmann. 1425 1426 Fix qdoc warning, function parameter string must be referred. 1427 1428 * Api/qwebview.cpp: 1429 14302009-06-09 Simon Hausmann <simon.hausmann@nokia.com> 1431 1432 Reviewed by Ariya Hidayat. 1433 1434 Renamed QWebSettings::AllowUniversalAccessFromFileUrls to 1435 LocalContentCanAccessRemoteUrls, as discussed in the API review. 1436 1437 * Api/qwebsettings.cpp: 1438 (QWebSettingsPrivate::apply): 1439 (QWebSettings::QWebSettings): 1440 * Api/qwebsettings.h: 1441 14422009-06-09 Simon Hausmann <simon.hausmann@nokia.com> 1443 1444 Reviewed by Ariya Hidayat. 1445 1446 Merged useFixedLayout property with fixedLayoutSize and 1447 renamed the latter to fixedContentsSize. 1448 1449 * Api/qwebpage.cpp: 1450 (QWebPage::fixedContentsSize): 1451 (QWebPage::setFixedContentsSize): 1452 * Api/qwebpage.h: 1453 * WebCoreSupport/FrameLoaderClientQt.cpp: 1454 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 1455 14562009-06-09 Simon Hausmann <simon.hausmann@nokia.com> 1457 1458 Reviewed by Ariya Hidayat. 1459 1460 Renamed QWebHitTestResult::linkTarget to linkElement() and made it return 1461 a QWebElement. The link target itself is always the target DOM attribute. 1462 1463 * Api/qwebframe.cpp: 1464 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 1465 (QWebHitTestResult::linkElement): 1466 * Api/qwebframe.h: 1467 * Api/qwebframe_p.h: 1468 * tests/qwebframe/tst_qwebframe.cpp: 1469 14702009-06-08 Simon Hausmann <simon.hausmann@nokia.com> 1471 1472 Reviewed by Holger Freyther. 1473 1474 Renamed QWebElement::enclosingBlock to enclosingBlockElement 1475 and changed the return type to QWebElement, as discussed in 1476 the API review. This API is more generic and through 1477 QWebElement's geometry() it is possible to retrieve the 1478 same information. 1479 1480 * Api/qwebelement.cpp: 1481 (QWebElement::QWebElement): 1482 * Api/qwebelement.h: 1483 * Api/qwebframe.cpp: 1484 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 1485 (QWebHitTestResult::enclosingBlockElement): 1486 * Api/qwebframe.h: 1487 * Api/qwebframe_p.h: 1488 14892009-06-05 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> 1490 1491 Reviewed by Simon Hausmann. 1492 1493 [Qt] Add missing includes of config.h 1494 1495 * Api/qcookiejar.cpp: 1496 * Api/qwebnetworkinterface.cpp: 1497 * Plugins/ICOHandler.cpp: 1498 * WebCoreSupport/DragClientQt.cpp: 1499 * WebCoreSupport/EditCommandQt.cpp: 1500 15012009-06-03 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 1502 1503 Reviewed by Simon Hausmann. 1504 1505 Add API to make it possible to clear all memory caches used by 1506 QtWebKit. 1507 1508 * Api/qwebsettings.cpp: 1509 (QWebSettings::clearMemoryCaches): 1510 * Api/qwebsettings.h: 1511 15122009-06-01 Benjamin C Meyer <benjamin.meyer@torchmobile.com> 1513 1514 Rubber-stamped by Gustavo Noronha. 1515 1516 Before guessing the url trim the string to remove whitespace added to the start/end by the user. 1517 1518 * Api/qwebview.cpp: 1519 (QWebView::guessUrlFromString): 1520 * tests/qwebview/tst_qwebview.cpp: 1521 (tst_QWebView::guessUrlFromString_data): 1522 15232009-06-01 Benjamin C Meyer <benjamin.meyer@torchmobile.com> 1524 1525 Rubber-stamped by Gustavo Noronha. 1526 1527 Use QLatin1Char() to compile when QT_NO_CAST_FROM_ASCII and QT_NO_CAST_TO_ASCII is defined 1528 1529 * Api/qwebview.cpp: 1530 (QWebView::guessUrlFromString): 1531 15322009-06-01 Benjamin C Meyer <benjamin.meyer@torchmobile.com> 1533 1534 Rubber-stamped by Gustavo Noronha. 1535 1536 Cleanup autotest file 1537 - use proper includes 1538 - remove useless constructor and destructor 1539 - add missing newline at the end of the file 1540 1541 * tests/qwebview/tst_qwebview.cpp: 1542 15432009-06-01 Benjamin C Meyer <benjamin.meyer@torchmobile.com> 1544 1545 Rubber-stamped by Gustavo Noronha. 1546 1547 Add a missing space between two words in the documentation. 1548 1549 * Api/qwebview.cpp: 1550 15512009-05-26 Benjamin C Meyer <benjamin.meyer@torchmobile.com> 1552 1553 Reviewed by Holger Freyther. 1554 1555 https://bugs.webkit.org/show_bug.cgi?id=25823 1556 1557 Add an API to generate a QUrl out of a string correcting for errors and missing information. 1558 See the API documentation for more details about the function. 1559 1560 Autotests: included 1561 1562 * Api/qwebview.cpp: 1563 (QWebView::guessUrlFromString): 1564 * Api/qwebview.h: 1565 * QtLauncher/main.cpp: 1566 (MainWindow::MainWindow): 1567 (MainWindow::changeLocation): 1568 * tests/qwebview/.gitignore: Added. 1569 * tests/qwebview/qwebview.pro: 1570 (tst_QWebView::initTestCase): 1571 (tst_QWebView::cleanupTestCase): 1572 (tst_QWebView::init): 1573 (tst_QWebView::cleanup): 1574 (tst_QWebView::guessUrlFromString_data): 1575 (tst_QWebView::guessUrlFromString): 1576 15772009-05-23 David Kilzer <ddkilzer@apple.com> 1578 1579 Part 2 of 2: Bug 25495: Implement PassOwnPtr and replace uses of std::auto_ptr 1580 1581 <https://bugs.webkit.org/show_bug.cgi?id=25495> 1582 1583 Reviewed by Oliver Hunt. 1584 1585 * WebCoreSupport/ChromeClientQt.h: 1586 (WebCore::ChromeClientQt::createHTMLParserQuirks): Return a 1587 PassOwnPtr<> instead of a raw HTMLParserQuirks pointer. 1588 15892009-05-23 Jakob Truelsen <antialize@gmail.com> 1590 1591 Reviewed by Holger Freyther. 1592 1593 https://bugs.webkit.org/show_bug.cgi?id=25863 1594 1595 Expose the default text encoding property to Qt. 1596 1597 * Api/qwebsettings.cpp: 1598 (QWebSettingsPrivate::apply): 1599 (QWebSettings::setDefaultTextEncoding): 1600 (QWebSettings::defaultTextEncoding): 1601 * Api/qwebsettings.h: 1602 16032009-05-21 Antonio Gomes <antonio.gomes@openbossa.org> 1604 1605 Reviewed by Simon Hausmann. 1606 1607 [Qt] Additional test for resource load (CSS file) for QWebFrame. 1608 1609 * tests/qwebframe/qwebframe.qrc: 1610 * tests/qwebframe/style.css: Added. 1611 * tests/qwebframe/tst_qwebframe.cpp: 1612 16132009-05-22 Simon Hausmann <simon.hausmann@nokia.com> 1614 1615 Unreviewed Qt build fix. 1616 1617 Provide dummy implementation of pure virtual EditorClient method. 1618 1619 * WebCoreSupport/EditorClientQt.cpp: 1620 (WebCore::EditorClientQt::getAutoCorrectSuggestionForMisspelledWord): 1621 * WebCoreSupport/EditorClientQt.h: 1622 16232009-05-20 Ariya Hidayat <ariya.hidayat@nokia.com> 1624 1625 Reviewed by Simon Hausmann and Holger Freyther. 1626 1627 [Qt] Add renderHints property to QWebView. 1628 1629 * Api/qwebview.cpp: 1630 (QWebViewPrivate::QWebViewPrivate): 1631 (QWebView::renderHints): 1632 (QWebView::setRenderHints): 1633 (QWebView::setRenderHint): 1634 (QWebView::paintEvent): 1635 * Api/qwebview.h: 1636 * tests/qwebview/qwebview.pro: Added. 1637 * tests/qwebview/tst_qwebview.cpp: Added. 1638 (tst_QWebView::tst_QWebView): 1639 (tst_QWebView::~tst_QWebView): 1640 (tst_QWebView::init): 1641 (tst_QWebView::cleanup): 1642 (tst_QWebView::renderHints): 1643 * tests/tests.pro: 1644 16452009-05-20 Holger Hans Peter Freyther <zecke@selfish.org> 1646 1647 Reviewed by Darin Adler. 1648 1649 https://bugs.webkit.org/show_bug.cgi?id=25834 1650 1651 Make ChromeClient a interface again 1652 1653 With recent additions to ChromeClient.h empty defaults were 1654 added. This is bad for porters as these changes go unnoticed 1655 and at runtime no notImplemented warning is logged and grepping 1656 for notImplemented will not show anything. Change this Client 1657 to be like the other Clients again and always have pure virtuals 1658 (but for stuff inside #ifdef PLATFORM(MAC)). 1659 1660 Update the various WebKit/* implementations to compile again. 1661 1662 * WebCoreSupport/ChromeClientQt.cpp: 1663 (WebCore::ChromeClientQt::setCursor): 1664 (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame): 1665 * WebCoreSupport/ChromeClientQt.h: 1666 (WebCore::ChromeClientQt::scrollRectIntoView): 1667 16682009-05-19 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 1669 1670 Reviewed by Simon Hausmann. 1671 1672 Fix a plugin bug in the WebKit code, similar to the one in WebCore. 1673 1674 The problem is when a non visible QtPluginWidget would show it self 1675 in a sibling frame. The problem was due to our clipping. In Qt, 1676 if setMask is set with an empty QRegion, no clipping will 1677 be performed, so in that case we hide the PluginContainer 1678 1679 * WebCoreSupport/FrameLoaderClientQt.cpp: 1680 (WebCore::): 1681 16822009-05-18 Zoltan Horvath <horvath.zoltan.6@stud.u-szeged.hu> 1683 1684 Reviewed by Ariya Hidayat. 1685 1686 Makes QtLauncher to accept multiple urls in command line and opens these in separate windows. 1687 1688 * QtLauncher/main.cpp: 1689 (MainWindow::newWindow): 1690 (main): 1691 16922009-05-14 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 1693 1694 Reviewed by Ariya Hidayat. 1695 1696 Add a comment to QWebView::iconChanged(), mentioning that you will 1697 need to set the icon database path for icons to be loaded, and thus 1698 receive the signal. 1699 1700 * Api/qwebview.cpp: 1701 17022009-05-14 Yael Aharon <yael.aharon@nokia.com> 1703 1704 Reviewed by Ariya Hidayat. 1705 1706 Fix setHtml test case by adding <head> tag to the expected result. This tag is automatically added by WebKit. 1707 1708 * tests/qwebframe/tst_qwebframe.cpp: 1709 17102009-05-14 Yael Aharon <yael.aharon@nokia.com> 1711 1712 Reviewed by Ariya Hidayat. 1713 1714 Add a test case for the signal urlChanged(). 1715 * tests/qwebframe/tst_qwebframe.cpp: 1716 17172009-05-13 Yael Aharon <yael.aharon@nokia.com> 1718 1719 Reviewed by Ariya Hidayat. 1720 1721 Move emitting the signal QWebFrame::urlChanged to FrameLoaderClientQt::dispatchDidCommitLoad(). 1722 This is to ensure that urlChanged() is emitted even if the frame has no title. 1723 1724 * WebCoreSupport/FrameLoaderClientQt.cpp: 1725 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle): 1726 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad): 1727 17282009-05-13 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 1729 1730 Rubberstamped by Ariya Hidayat. 1731 1732 Fix coding style: Add {} to contents of if, containing a for loop. 1733 1734 * Api/qwebelement.cpp: 1735 (QWebElement::styleProperty): 1736 17372009-05-12 Antonio Gomes <antonio.gomes@openbossa.org> 1738 1739 Reviewed by Ariya Hidayat. 1740 1741 Fixed a possible crash @styleProperty when there is no embedded/external CSS set. 1742 1743 * Api/qwebelement.cpp: 1744 (QWebElement::styleProperty): 1745 * tests/qwebelement/tst_qwebelement.cpp: 1746 (tst_QWebElement::style): 1747 17482009-05-12 Antonio Gomes <antonio.gomes@openbossa.org> 1749 1750 Reviewed by Ariya Hidayat. 1751 1752 Added external CSS test cases to QWebElement::styleProperty() method. 1753 1754 Also some ::styleProperty() tests cleanup. 1755 1756 * tests/qwebelement/tst_qwebelement.cpp: 1757 (tst_QWebElement::style): 1758 17592009-05-12 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 1760 1761 Reviewed by Ariya Hidayat. 1762 1763 Many methods were not considering the case of the element not having 1764 siblings or children when inserting nodes, and thus broke in some 1765 situations. This patch fixes that. 1766 1767 * Api/qwebelement.cpp: 1768 (QWebElement::prependInside): 1769 (QWebElement::appendOutside): 1770 (QWebElement::encloseWith): 1771 17722009-05-08 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 1773 1774 Reviewed by Ariya Hidayat. 1775 1776 Make is possible to mark a style property as important while setting 1777 it. Also support the normal CSS property syntax "!important", while 1778 accepting spaces between the ! and the important keyword. 1779 1780 * Api/qwebelement.cpp: 1781 (QWebElement::setStyleProperty): 1782 * Api/qwebelement.h: 1783 * tests/qwebelement/tst_qwebelement.cpp: 1784 (tst_QWebElement::style): 1785 17862009-05-08 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 1787 1788 Reviewed by Ariya Hidayat. 1789 1790 Working with Antonio Gomes. 1791 1792 Add support for finding the style property actually applied to the element. 1793 1794 * Api/qwebelement.cpp: 1795 (QWebElement::styleProperty): 1796 * Api/qwebelement.h: 1797 * tests/qwebelement/tst_qwebelement.cpp: 1798 (tst_QWebElement::style): 1799 18002009-05-11 Norbert Leser <norbert.leser@nokia.com> 1801 1802 Reviewed by Darin Adler. 1803 1804 Bug 24538: class/struct mixup in forward declarations 1805 https://bugs.webkit.org/show_bug.cgi?id=24538 1806 1807 * Api/qwebpage.h: 1808 18092009-05-11 Laszlo Gombos <laszlo.1.gombos@nokia.com> 1810 1811 Reviewed by Holger Freyther. 1812 1813 Fix Qt build when ENABLE_DATABASE is turned off 1814 1815 https://bugs.webkit.org/show_bug.cgi?id=25587 1816 1817 * Api/qwebdatabase.cpp: 1818 (QWebDatabase::displayName): 1819 (QWebDatabase::expectedSize): 1820 (QWebDatabase::size): 1821 (QWebDatabase::fileName): 1822 (QWebDatabase::removeDatabase): 1823 * Api/qwebdatabase_p.h: 1824 * Api/qwebsecurityorigin.cpp: 1825 (QWebSecurityOrigin::allOrigins): 1826 (QWebSecurityOrigin::databases): 1827 18282009-05-05 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 1829 1830 Reviewed by Simon Hausmann. 1831 1832 Improve behaviour of the QWebElement enclose* functions, to work 1833 similar to the jQuery wrap functions. We now enclose the contents 1834 of the element in the child of the deepest descendant element 1835 within the structure of the enclose element structure given. 1836 1837 * Api/qwebelement.cpp: 1838 (findInsertionPoint): 1839 (QWebElement::encloseContentsWith): 1840 (QWebElement::encloseWith): 1841 (QWebElement::replace): 1842 * tests/qwebelement/tst_qwebelement.cpp: 1843 (tst_QWebElement::encloseContentsWith): 1844 (tst_QWebElement::encloseWith): 1845 18462009-05-06 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 1847 1848 Reviewed by Simon Hausmann. 1849 1850 After commit rev @43215, setHtml() without a <head> tag, 1851 automatically adds it, so update our test case to respect this. 1852 1853 * tests/qwebelement/tst_qwebelement.cpp: 1854 (tst_QWebElement::textHtml): 1855 18562009-05-06 Simon Hausmann <simon.hausmann@nokia.com> 1857 1858 Unreviewed Qt build fix. 1859 1860 Dont' use ENABLE() in Qt API headers, as they are not available when building 1861 against the API. 1862 1863 * Api/qwebdatabase.h: 1864 * Api/qwebsecurityorigin.h: 1865 18662009-05-05 Ben Murdoch <benm@google.com> 1867 1868 Reviewed by Eric Seidel. 1869 1870 Add #if ENABLE(DATABASE) guards around database code so toggling ENABLE_DATABASE off does not break builds. 1871 https://bugs.webkit.org/show_bug.cgi?id=24776 1872 1873 * Api/qwebdatabase.cpp: 1874 * Api/qwebdatabase.h: 1875 * Api/qwebdatabase_p.h: 1876 * Api/qwebsecurityorigin.cpp: 1877 (QWebSecurityOrigin::databaseUsage): 1878 (QWebSecurityOrigin::databaseQuota): 1879 (QWebSecurityOrigin::setDatabaseQuota): 1880 * Api/qwebsecurityorigin.h: 1881 * WebCoreSupport/ChromeClientQt.cpp: 1882 (WebCore::ChromeClientQt::exceededDatabaseQuota): 1883 * WebCoreSupport/ChromeClientQt.h: 1884 18852009-05-05 Simon Hausmann <simon.hausmann@nokia.com> 1886 1887 Reviewed by Tor Arne Vestbø. 1888 1889 Various improvements to the class documentation, including a simple snippet for QWebElement. 1890 1891 * Api/qwebelement.cpp: 1892 * Api/qwebframe.cpp: 1893 * docs/webkitsnippets/webelement/main.cpp: Added. 1894 * docs/webkitsnippets/webelement/webelement.pro: Added. 1895 18962009-05-05 Simon Hausmann <simon.hausmann@nokia.com> 1897 1898 Reviewed by Ariya Hidayat. 1899 1900 Simplify variant conversion by moving the null check into 1901 convertValueToQVariant. 1902 1903 * Api/qwebframe.cpp: 1904 (QWebFrame::evaluateJavaScript): Moved null check into conversion function. 1905 * tests/qwebframe/tst_qwebframe.cpp: 1906 Added test to verify the correct conversion of null values to QVariant. 1907 19082009-05-01 Geoffrey Garen <ggaren@apple.com> 1909 1910 Rubber Stamped by Sam Weinig. 1911 1912 Renamed JSValuePtr => JSValue. 1913 1914 * Api/qwebelement.cpp: 1915 (setupScriptContext): 1916 (setupScriptObject): 1917 (QWebElement::evaluateScript): 1918 (QWebElement::functions): 1919 (QWebElement::scriptableProperty): 1920 (QWebElement::setScriptableProperty): 1921 (QWebElement::scriptableProperties): 1922 19232009-05-01 Pavel Feldman <pfeldman@chromium.org> 1924 1925 Reviewed by Timothy Hatcher. 1926 1927 Add a FrameLoaderClient callback for the ResourceRetrievedByXMLHttpRequest. 1928 1929 https://bugs.webkit.org/show_bug.cgi?id=25347 1930 1931 * WebCoreSupport/FrameLoaderClientQt.cpp: 1932 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceByXMLHttpRequest): 1933 * WebCoreSupport/FrameLoaderClientQt.h: 1934 19352009-04-30 David Kilzer <ddkilzer@apple.com> 1936 1937 Provide a mechanism to create a quirks delegate for HTMLParser 1938 1939 Reviewed by David Hyatt. 1940 1941 * WebCoreSupport/ChromeClientQt.h: 1942 (WebCore::ChromeClientQt::createHTMLParserQuirks): Added. The 1943 default implementation of this factory method returns 0. 1944 19452009-04-30 Ariya Hidayat <ariya.hidayat@nokia.com> 1946 1947 Unreviewed build fix after r43072. 1948 1949 * Api/qwebframe.cpp: 1950 (qt_drt_setJavaScriptProfilingEnabled): Enclose with JAVASCRIPT_DEBUGGER. 1951 19522009-04-30 Ariya Hidayat <ariya.hidayat@nokia.com> 1953 1954 Unreviewed build fix after r43063. 1955 1956 * WebCoreSupport/ChromeClientQt.cpp: 1957 (WebCore::ChromeClientQt::addMessageToConsole): 1958 * WebCoreSupport/ChromeClientQt.h: 1959 19602009-04-30 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 1961 1962 Reviewed by Simon Hausmann. 1963 1964 Implement encloseContentsWith and rename wrap to encloseWith. 1965 1966 Also in encloseWith, make sure that you cannot enclose with 1967 non-enclosable elements. 1968 1969 * Api/qwebelement.cpp: 1970 (QWebElement::encloseContentsWith): 1971 (QWebElement::encloseWith): 1972 * Api/qwebelement.h: 1973 * tests/qwebelement/tst_qwebelement.cpp: 1974 (tst_QWebElement::encloseContentsWith): 1975 (tst_QWebElement::encloseWith): 1976 19772009-04-30 Holger Hans Peter Freyther <zecke@selfish.org> 1978 1979 Reviewed by Darin Adler. 1980 1981 The Qt API exposes a global history patch CSSStyleSelector to make API consumers work again 1982 1983 https://bugs.webkit.org/show_bug.cgi?id=20952 1984 1985 The QtWebKit port made the mistake of exposing a global history. This broke 1986 with the addition of PageGroup and LinkHash. This needs to be repaired 1987 for Qt4.5. 1988 1989 Add a function to LinkHash.cpp that is resolving a URL. Use this 1990 function from within CSSStyleSelector to forward the url to the 1991 QWebHistoryInterface API. 1992 1993 It is sad that there is a path within visitedLinkHash which is now 1994 doing a memcpy, it is sad to add a PLATFORM(QT) define to CSSStyleSelector 1995 and using QtWebKit types within WebCore is a layering violation as well. 1996 1997 PageGroup::setShouldTrackVisitedLinks is currently not enabled. For 1998 Qt4.6 a second version of the QWebHistoryInterface is going to be 1999 added which will fix things up. 2000 2001 * Api/qwebhistoryinterface.cpp: 2002 (QWebHistoryInterface::setDefaultInterface): Add note for Qt4.6 2003 * Api/qwebpage.cpp: Remove PageGroup::setShouldTrackVisitedLinks(true) 2004 (QWebPagePrivate::QWebPagePrivate): 2005 * tests/qwebhistoryinterface/qwebhistoryinterface.pro: Added unit test. 2006 * tests/qwebhistoryinterface/tst_qwebhistoryinterface.cpp: Added unit test. 2007 (tst_QWebHistoryInterface::tst_QWebHistoryInterface): 2008 (tst_QWebHistoryInterface::~tst_QWebHistoryInterface): 2009 (tst_QWebHistoryInterface::init): 2010 (tst_QWebHistoryInterface::cleanup): 2011 (FakeHistoryImplementation::addHistoryEntry): 2012 (FakeHistoryImplementation::historyContains): 2013 (tst_QWebHistoryInterface::visitedLinks): Check the Qt4.4 behaviour. 2014 * tests/tests.pro: 2015 20162009-04-30 Ariya Hidayat <ariya.hidayat@nokia.com> 2017 2018 Unreviewed build fix, after r43035. 2019 2020 Temporarily use Position::deprecatedEditingOffset(). 2021 2022 * Api/qwebpage.cpp: 2023 (QWebPage::inputMethodQuery): 2024 20252009-03-27 Benjamin C Meyer <benjamin.meyer@torchmobile.com> 2026 2027 Reviewed by Simon Hausmann. 2028 2029 Update the page actions when a finishing loading even if the frame is 2030 not the top frame such as when browsing inside of a website with frames. 2031 https://bugs.webkit.org/show_bug.cgi?id=24890 2032 2033 * WebCoreSupport/FrameLoaderClientQt.cpp: 2034 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 2035 * tests/qwebpage/frametest/frame_a.html: Added. 2036 * tests/qwebpage/frametest/index.html: Added. 2037 * tests/qwebpage/tst_qwebpage.cpp: 2038 (tst_QWebPage::backActionUpdate): 2039 20402009-04-29 Ariya Hidayat <ariya.hidayat@nokia.com> 2041 2042 Reviewed by Simon Hausmann. 2043 2044 Implement QWebElement::evaluateScript. 2045 2046 * Api/qwebelement.cpp: 2047 (setupScriptContext): 2048 (QWebElement::evaluateScript): 2049 * Api/qwebelement.h: 2050 * tests/qwebelement/tst_qwebelement.cpp: 2051 (tst_QWebElement::evaluateScript): 2052 20532009-04-29 Simon Hausmann <simon.hausmann@nokia.com> 2054 2055 Reviewed by Ariya Hidayat. 2056 2057 Replaced QWebElementCollection with QList<QWebElement>. 2058 2059 * Api/qwebelement.cpp: 2060 (QWebElement::findAll): 2061 * Api/qwebelement.h: 2062 * Api/qwebframe.cpp: 2063 (QWebFrame::findAllElements): 2064 * Api/qwebframe.h: 2065 * QtLauncher/main.cpp: 2066 (MainWindow::selectElements): 2067 * tests/qwebelement/tst_qwebelement.cpp: 2068 (tst_QWebElement::simpleCollection): 2069 (tst_QWebElement::namespaceURI): 2070 (tst_QWebElement::nullSelect): 2071 20722009-04-28 Simon Hausmann <simon.hausmann@nokia.com> 2073 2074 Reviewed by Tor Arne Vestbø. 2075 2076 QWebElement API changes after another round of API review: 2077 2078 * Fix argument names of findAll/findFirst 2079 * Split up toXml into innerXml and outerXml 2080 * Removed confusing toggleClass overload 2081 * Fixed casing of namespaceUri to follow QXmlStreamReader 2082 * Removed tagName from firstChild/nextSibling/etc. 2083 * Renamed append/prepend/insertAfter/insertBefore to [append|prepend][Inside|Outside] 2084 * Renamed wrapWith() back to wrap() 2085 * Made clone() const 2086 * Renamed remove() to takeFromDocument(), added removeFromDocument() 2087 * Renamed clear() to removeChildren() 2088 * Renamed scriptsFunctions/callScriptFunction to functions()/callFunction() 2089 * Renamed scriptProperty to scriptableProperty 2090 2091 * Api/qwebelement.cpp: 2092 (QWebElement::findAll): 2093 (QWebElement::findFirst): 2094 (QWebElement::setOuterXml): 2095 (QWebElement::toOuterXml): 2096 (QWebElement::setInnerXml): 2097 (QWebElement::toInnerXml): 2098 (QWebElement::namespaceUri): 2099 (QWebElement::firstChild): 2100 (QWebElement::lastChild): 2101 (QWebElement::nextSibling): 2102 (QWebElement::previousSibling): 2103 (QWebElement::callFunction): 2104 (QWebElement::functions): 2105 (QWebElement::scriptableProperty): 2106 (QWebElement::setScriptableProperty): 2107 (QWebElement::scriptableProperties): 2108 (QWebElement::appendInside): 2109 (QWebElement::prependInside): 2110 (QWebElement::prependOutside): 2111 (QWebElement::appendOutside): 2112 (QWebElement::clone): 2113 (QWebElement::takeFromDocument): 2114 (QWebElement::removeFromDocument): 2115 (QWebElement::removeChildren): 2116 (QWebElement::wrap): 2117 (QWebElement::replace): 2118 * Api/qwebelement.h: 2119 * Api/qwebframe.cpp: 2120 (QWebFrame::findAllElements): 2121 (QWebFrame::findFirstElement): 2122 * Api/qwebframe.h: 2123 * tests/qwebelement/tst_qwebelement.cpp: 2124 (tst_QWebElement::textHtml): 2125 (tst_QWebElement::classes): 2126 (tst_QWebElement::namespaceURI): 2127 (tst_QWebElement::foreachManipulation): 2128 (tst_QWebElement::callFunction): 2129 (tst_QWebElement::callFunctionSubmitForm): 2130 (tst_QWebElement::functionNames): 2131 (tst_QWebElement::properties): 2132 (tst_QWebElement::appendAndPrepend): 2133 (tst_QWebElement::insertBeforeAndAfter): 2134 (tst_QWebElement::remove): 2135 (tst_QWebElement::clear): 2136 (tst_QWebElement::replaceWith): 2137 21382009-04-28 Simon Hausmann <simon.hausmann@nokia.com> 2139 2140 Reviewed by Tor Arne Vestbø. 2141 2142 Fix some qdoc warnings. 2143 2144 * Api/qwebframe.cpp: Fix links. 2145 * Api/qwebnetworkinterface.cpp: Make docs internal. 2146 * Api/qwebnetworkinterface.h: Ditto. 2147 * Api/qwebpage.cpp: Fix property name in \property. 2148 21492009-04-24 Simon Hausmann <simon.hausmann@nokia.com> 2150 2151 Rubber-stamped by Ariya Hidayat. 2152 2153 Fix qdoc warning about link to QAction::isEnabled. 2154 2155 * Api/qwebpage.cpp: 2156 21572009-04-24 Simon Hausmann <simon.hausmann@nokia.com> 2158 2159 Reviewed by Ariya Hidayat. 2160 2161 Added support for generating API docs in the Qt build using "make docs" 2162 2163 Added code snippets and overview from the Qt sources references in the API docs. 2164 2165 * Api/qwebpage.cpp: Adjust paths to snippets. 2166 * Api/qwebview.cpp: Ditto. 2167 * docs/docs.pri: Added. 2168 * docs/qtwebkit.qdoc: Added. 2169 * docs/qtwebkit.qdocconf: Added. 2170 * docs/webkitsnippets/qtwebkit_build_snippet.qdoc: Added. 2171 * docs/webkitsnippets/qtwebkit_qwebview_snippet.cpp: Added. 2172 * docs/webkitsnippets/simple/main.cpp: Added. 2173 * docs/webkitsnippets/simple/simple.pro: Added. 2174 * docs/webkitsnippets/webpage/main.cpp: Added. 2175 * docs/webkitsnippets/webpage/webpage.pro: Added. 2176 21772009-04-23 Antonio Gomes <antonio.gomes@openbossa.org> 2178 2179 Reviewed by Ariya Hidayat. 2180 2181 [Qt] Added QWebElement::computedStyleProperty method. 2182 2183 * Api/qwebelement.cpp: 2184 (QWebElement::computedStyleProperty): 2185 * Api/qwebelement.h: 2186 * tests/qwebelement/tst_qwebelement.cpp: 2187 (tst_QWebElement::computedStyle): 2188 21892009-04-23 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> 2190 2191 Rubber-stamped by Ariya Hidayat. 2192 2193 [Qt] Rename QWebElement arguments from html to markup 2194 2195 * Api/qwebelement.cpp: 2196 (QWebElement::append): 2197 (QWebElement::prepend): 2198 (QWebElement::insertBefore): 2199 (QWebElement::insertAfter): 2200 * Api/qwebelement.h: 2201 22022009-04-21 Antonio Gomes <antonio.gomes@openbossa.org> 2203 2204 Reviewed by Ariya Hidayat. 2205 2206 QWebElementSelection renamed to QWebElementCollection. 2207 2208 * Api/qwebelement.cpp: 2209 (QWebElement::findAll): 2210 (QWebElementCollectionPrivate::QWebElementCollectionPrivate): 2211 (QWebElementCollectionPrivate::create): 2212 (QWebElementCollection::QWebElementCollection): 2213 (QWebElementCollection::operator=): 2214 (QWebElementCollection::~QWebElementCollection): 2215 (QWebElementCollection::operator+): 2216 (QWebElementCollection::append): 2217 (QWebElementCollection::count): 2218 (QWebElementCollection::at): 2219 (QWebElementCollection::toList): 2220 * Api/qwebelement.h: 2221 * Api/qwebframe.cpp: 2222 (QWebFrame::findAllElements): 2223 * Api/qwebframe.h: 2224 * QtLauncher/main.cpp: 2225 (MainWindow::selectElements): 2226 * tests/qwebelement/tst_qwebelement.cpp: 2227 (tst_QWebElement::simpleCollection): 2228 (tst_QWebElement::iteration): 2229 (tst_QWebElement::emptyCollection): 2230 (tst_QWebElement::appendCollection): 2231 (tst_QWebElement::nullSelect): 2232 22332009-04-17 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2234 2235 Reviewed by Simon Hausmann. 2236 2237 https://bugs.webkit.org/show_bug.cgi?id=25242 2238 2239 Remove QtCore 4.5 dependency from QWebElement test 2240 2241 * tests/qwebelement/tst_qwebelement.cpp: 2242 (tst_QWebElement::iteration): Use QList::count() instead of QList::length() 2243 22442009-04-16 Holger Hans Peter Freyther <zecke@selfish.org> 2245 2246 Rubber-stamped by Simon Hausmann. 2247 2248 Make the operator== and operator!= non inline to 2249 allow looking at the d-pointer in the future. 2250 2251 * Api/qwebelement.cpp: 2252 (QWebElement::operator==): 2253 (QWebElement::operator!=): 2254 * Api/qwebelement.h: 2255 22562009-04-15 Antonio Gomes <antonio.gomes@openbossa.org> 2257 2258 Reviewed by Ariya Hidayat. 2259 2260 Rename extend() method in QWebElementSelection to append(). 2261 2262 * Api/qwebelement.cpp: 2263 (QWebElementSelection::append): 2264 * Api/qwebelement.h: 2265 * tests/qwebelement/tst_qwebelement.cpp: 2266 (tst_QWebElement::appendSelection): 2267 22682009-04-15 Antonio Gomes <antonio.gomes@openbossa.org> 2269 2270 Reviewed by Simon Hausmann. 2271 2272 Fixed nit/typo in QWebElement documentation. 2273 2274 * Api/qwebelement.cpp: 2275 22762009-04-14 Laszlo Gombos <laszlo.1.gombos@nokia.com> 2277 2278 Reviewed by Simon Hausmann. 2279 2280 https://bugs.webkit.org/show_bug.cgi?id=24841 2281 2282 Fix linking against QtWebKit for Symbian and other platforms 2283 where the OS ABI distinguishes between an import or an export situation. 2284 2285 * Api/qwebkitglobal.h: Instead of white-listing Win, remove the test. 2286 22872009-04-14 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 2288 2289 Reviewed by Tor Arne Vestbø. 2290 2291 Rename QWebElement::setHtml and html to setXml and toXml respectivily. 2292 2293 Also add a mean to define the scope (inner or other). 2294 2295 * Api/qwebelement.cpp: 2296 (QWebElement::setXml): 2297 (QWebElement::toXml): 2298 * Api/qwebelement.h: 2299 * tests/qwebelement/tst_qwebelement.cpp: 2300 (tst_QWebElement::textHtml): 2301 (tst_QWebElement::foreachManipulation): 2302 23032009-04-14 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 2304 2305 Reviewed by Tor Arne Vestbø. 2306 2307 Rename QWebElement::setText() and text() to ::setPlainText and 2308 ::toPlainText, respectively. 2309 2310 * Api/qwebelement.cpp: 2311 (QWebElement::setPlainText): 2312 (QWebElement::toPlainText): 2313 * Api/qwebelement.h: 2314 * tests/qwebelement/tst_qwebelement.cpp: 2315 (tst_QWebElement::textHtml): 2316 (tst_QWebElement::simpleSelection): 2317 (tst_QWebElement::appendAndPrepend): 2318 (tst_QWebElement::insertBeforeAndAfter): 2319 (tst_QWebElement::replaceWith): 2320 (tst_QWebElement::wrap): 2321 (tst_QWebElement::firstChildNextSiblingWithTag): 2322 (tst_QWebElement::lastChildPreviousSiblingWithTag): 2323 23242009-04-06 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> 2325 2326 Reviewed by Simon Hausmann. 2327 2328 [Qt] Rename DOM API select function to findFirst, findAll, etc. 2329 2330 * Api/qwebelement.cpp: 2331 (QWebElement::findAll): 2332 (QWebElement::findFirst): 2333 * Api/qwebelement.h: 2334 * Api/qwebframe.cpp: 2335 (QWebFrame::findAllElements): 2336 (QWebFrame::findFirstElement): 2337 * Api/qwebframe.h: 2338 * QtLauncher/main.cpp: 2339 (MainWindow::selectElements): 2340 * tests/qwebelement/tst_qwebelement.cpp: 2341 (tst_QWebElement::simpleSelection): 2342 (tst_QWebElement::attributesNS): 2343 (tst_QWebElement::classes): 2344 (tst_QWebElement::namespaceURI): 2345 (tst_QWebElement::iteration): 2346 (tst_QWebElement::foreachManipulation): 2347 (tst_QWebElement::callFunctionSubmitForm): 2348 (tst_QWebElement::documentElement): 2349 (tst_QWebElement::frame): 2350 (tst_QWebElement::style): 2351 (tst_QWebElement::extendSelection): 2352 (tst_QWebElement::properties): 2353 (tst_QWebElement::appendAndPrepend): 2354 (tst_QWebElement::insertBeforeAndAfter): 2355 (tst_QWebElement::remove): 2356 (tst_QWebElement::clear): 2357 (tst_QWebElement::replaceWith): 2358 (tst_QWebElement::wrap): 2359 (tst_QWebElement::nullSelect): 2360 (tst_QWebElement::firstChildNextSibling): 2361 (tst_QWebElement::firstChildNextSiblingWithTag): 2362 (tst_QWebElement::lastChildPreviousSibling): 2363 (tst_QWebElement::lastChildPreviousSiblingWithTag): 2364 23652009-04-06 Simon Hausmann <simon.hausmann@nokia.com> 2366 Ariya Hidayat <ariya.hidayat@nokia.com> 2367 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> 2368 Genevieve Mak <gen@staikos.net> 2369 2370 Reviewed by Tor Arne Vestbø, Simon Hausmann 2371 2372 First revision of new API in the Qt port to access the DOM. 2373 2374 * Api/headers.pri: Added qwebelement.h to the API headers. 2375 * Api/qwebelement.cpp: Added. 2376 * Api/qwebelement.h: Added. 2377 * Api/qwebframe.cpp: 2378 (QWebFrame::documentElement): Added accessor for the document element. 2379 (QWebFrame::selectElements): Added convenienc query method. 2380 (QWebFrame::selectElement): Ditto. 2381 (QWebHitTestResult::element): Added accessor for underlying DOM element. 2382 * Api/qwebframe.h: 2383 * QtLauncher/main.cpp: Simple test gui for element selections. 2384 * tests/qwebelement/qwebelement.pro: Added. 2385 * tests/qwebelement/tst_qwebelement.cpp: Added. 2386 * tests/tests.pro: Added QWebElement & QWebElementSelection unit tests. 2387 23882009-04-02 Simon Hausmann <simon.hausmann@nokia.com> 2389 2390 Fix the Qt build. 2391 2392 * Api/qwebpage.cpp: 2393 (QWebPage::triggerAction): Adapted code to renamed loadFrameRequest function. 2394 23952009-04-02 Takumi Asaki <takumi.asaki@nokia.com> 2396 2397 Reviewed by Simon Hausmann. 2398 2399 Fix pre-edit handling of text fields with input methods. 2400 2401 The input method sends an empty preeditString() if all characters of 2402 the preedit should be deleted. So inputMethodEvent() has to use 2403 preeditString() if it's empty. 2404 2405 * Api/qwebpage.cpp: 2406 (QWebPagePrivate::inputMethodEvent): 2407 24082009-03-30 Simon Hausmann <simon.hausmann@nokia.com> 2409 2410 Rubber-stamped by Tor Arne Vestbø. 2411 2412 Document that setHtml/setContent loads only the html/data immediately, not external objects. 2413 2414 * Api/qwebframe.cpp: 2415 * Api/qwebview.cpp: 2416 24172009-03-29 Darin Adler <darin@apple.com> 2418 2419 Try to fix Qt build. 2420 2421 * WebCoreSupport/EditorClientQt.cpp: Added include of HTMLElement.h. 2422 2423 * WebCoreSupport/FrameLoaderClientQt.cpp: Added include of FormState.h. 2424 (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement): 2425 Removed unneeded call to detachChildren, which is called by FrameLoader 2426 right after this. 2427 (WebCore::FrameLoaderClientQt::createFrame): Use loadURLIntoChildFrame 2428 as other platforms do in the corresponding functions. 2429 24302009-03-27 Erik L. Bunce <elbunce@xendom.com> 2431 2432 Reviewed by Simon Hausmann. 2433 2434 https://bugs.webkit.org/show_bug.cgi?id=24869 2435 2436 Fixes an incorrect case in tst_qwebpage. 2437 2438 * tests/qwebpage/tst_qwebpage.cpp: 2439 (tst_QWebPage::cursorMovements): 2440 24412009-03-27 Erik L. Bunce <elbunce@xendom.com> 2442 2443 Reviewed by Simon Hausmann. 2444 2445 https://bugs.webkit.org/show_bug.cgi?id=24746 2446 2447 Add new editing related QWebPage::WebActions 2448 * Clipboard: PasteAndMatchStyle 2449 * Formatting: RemoveFormat, ToggleStrikethrough, ToggleSubscript, and 2450 ToggleSuperscript 2451 * List Editing: InsertUnorderedList, InsertOrderedList, Indent, Outdent 2452 * Paragraph Justification: AlignCenter, AlignJustified, AlignLeft, AlignRight 2453 2454 Improved selection and editing tests. 2455 2456 * Api/qwebpage.cpp: 2457 (QWebPagePrivate::updateEditorActions): 2458 (QWebPage::action): 2459 * Api/qwebpage.h: 2460 * tests/qwebpage/tst_qwebpage.cpp: 2461 (tst_QWebPage::textSelection): 2462 (tst_QWebPage::textEditing): 2463 24642009-03-26 Simon Hausmann <simon.hausmann@nokia.com> 2465 2466 Rubber-stamped by Tor Arne Vestbø. 2467 2468 Fix the documentation of the QLocale usage in userAgentForUrl. 2469 2470 * Api/qwebpage.cpp: 2471 24722009-03-20 Erik L. Bunce <elbunce@xendom.com> 2473 2474 Reviewed by Simon Hausmann. 2475 2476 Fix for InsertParagraphSeparator and InsertLineSeparator so that 2477 QWebPage::action() creates QActions for them. Also make sure they get 2478 updated appropriately. 2479 2480 * Api/qwebpage.cpp: 2481 (QWebPagePrivate::updateEditorActions): 2482 (QWebPage::action): 2483 * tests/qwebpage/tst_qwebpage.cpp: 2484 (tst_QWebPage::textEditing): 2485 24862009-03-20 Erik L. Bunce <elbunce@xendom.com> 2487 2488 Reviewed by Tor Arne Vestbø. 2489 2490 Fix QWebPage::WebActions action states to more closely match when they are 2491 actually applicable and remove erroneous documentation. 2492 2493 * Most WebActions implemented using editor commands now use the 2494 Editor::Command::isEnabled() to control their availability. 2495 * SelectAll is always enabled (since it's editor command is). 2496 * SetTextDirection{} family of WebActions are available when canEdit() is true 2497 and not just canEditRichly(). 2498 2499 Fix and clarify documentation about the availability of various web actions. 2500 2501 * Api/qwebpage.cpp: 2502 (QWebPagePrivate::updateAction): 2503 (QWebPagePrivate::updateEditorActions): 2504 * tests/qwebpage/tst_qwebpage.cpp: 2505 (tst_QWebPage::textSelection): 2506 25072009-03-19 Ariya Hidayat <ariya.hidayat@trolltech.com> 2508 2509 Reviewed by Simon Hausmann. 2510 2511 Fixes pedantic compilation in QtWebKit. 2512 2513 There are no semi-colons after namespace declarations. 2514 2515 * Api/qwebdatabase.h: 2516 * Api/qwebsecurityorigin.h: 2517 25182009-03-19 David Boddie <dboddie@trolltech.com> 2519 2520 Reviewed by Simon Hausmann. 2521 2522 Doc: Removed obsolete warning about Flash and other plugins. 2523 2524 * Api/qwebsettings.cpp: 2525 25262009-03-19 Paul Olav Tvete <paul.tvete@nokia.com> 2527 2528 Reviewed by Simon Hausmann. 2529 2530 Properly escape tooltip text 2531 2532 ManualTest: http://xkcd.com/554/ 2533 2534 * WebCoreSupport/ChromeClientQt.cpp: 2535 (WebCore::ChromeClientQt::setToolTip): 2536 25372009-03-10 Adam Treat <adam.treat@torchmobile.com> 2538 2539 Build fix for Qt after r41555. 2540 2541 * Api/qwebpage.cpp: 2542 (QWebPage::acceptNavigationRequest): 2543 25442009-03-10 Xan Lopez <xlopez@igalia.com> 2545 2546 Build fix, no review. 2547 2548 * Api/qwebpage.cpp: 2549 (QWebPage::inputMethodQuery): 2550 25512009-03-07 Adam Treat <adam.treat@torchmobile.com> 2552 2553 Reviewed by Cameron Zwarich. 2554 2555 These methods are clearly returning the wrong values as the two were 2556 returning swapped information. 2557 2558 * Api/qwebpage.cpp: 2559 (QWebPage::totalBytes): 2560 (QWebPage::bytesReceived): 2561 25622009-03-05 Ariya Hidayat <ariya.hidayat@nokia.com> 2563 2564 Rubber-stamped by Simon Hausmann. 2565 2566 [Qt] NPAPI plugins are supported, adjust the API documentation. 2567 2568 * Api/qwebsettings.cpp: 2569 25702009-03-04 Adam Barth <abath@webkit.org> 2571 2572 Reviewed by Alexey Proskuryakov. 2573 2574 https://bugs.webkit.org/show_bug.cgi?id=24356 2575 2576 Fix WebKit style for allowUniversalAccessFromFileURLs. 2577 2578 * Api/qwebsettings.cpp: 2579 (QWebSettingsPrivate::apply): 2580 25812009-03-03 Adam Barth <abarth@webkit.org> 2582 2583 Reviewed by Alexey Proskuryakov. 2584 2585 https://bugs.webkit.org/show_bug.cgi?id=24340 2586 2587 Expose AllowUniversalAccessFromFileUrls to Qt clients. 2588 2589 * Api/qwebsettings.cpp: 2590 (QWebSettingsPrivate::apply): 2591 (QWebSettings::QWebSettings): 2592 * Api/qwebsettings.h: 2593 25942009-03-03 Ariya Hidayat <ariya.hidayat@trolltech.com> 2595 2596 Rubber-stamped by Simon Hausmann. 2597 2598 [Qt] Create and update the action for SelectAll. 2599 2600 * Api/qwebpage.cpp: 2601 (QWebPagePrivate::updateAction): 2602 (QWebPagePrivate::updateEditorActions): 2603 (QWebPage::action): 2604 * tests/qwebpage/tst_qwebpage.cpp: 2605 (tst_QWebPage::textSelection): 2606 26072009-03-02 Adam Treat <adam.treat@torchmobile.com> 2608 2609 Reviewed by Eric Seidel. 2610 2611 Add three new drt helper functions that enable all of the tests in 2612 LayoutTests/animation/* and LayoutTests/transitions/* to now pass. 2613 2614 * Api/qwebframe.cpp: 2615 (qt_drt_pauseAnimation): 2616 (qt_drt_pauseTransitionOfProperty): 2617 (qt_drt_numberOfActiveAnimations): 2618 26192009-03-02 Benjamin C Meyer <benjamin.meyer@torchmobile.com> 2620 2621 Reviewed by George Staikos. 2622 2623 https://bugs.webkit.org/show_bug.cgi?id=21230 2624 On X11 match the behavior of Firefox and also copy the url to the 2625 clipboard selection when the action Copy Link Location is executed. 2626 2627 * Api/qwebpage.cpp: 2628 (QWebPage::triggerAction): 2629 26302009-02-25 Kavindra Palaraja <kavindra.palaraja@nokia.com> 2631 2632 Reviewed by Simon Hausmann. 2633 2634 Fix the documentation for the linkHovered signal. 2635 2636 * Api/qwebpage.cpp: 2637 26382009-02-23 Adam Treat <adam.treat@torchmobile.com> 2639 2640 Reviewed by Darin Adler. 2641 2642 https://bugs.webkit.org/show_bug.cgi?id=24094 2643 Make sure to empty the cache on exit to get rid of superfluous leak messages 2644 for CachedResource's in order to keep the leak messages accurate. This 2645 is analagous to what the Mac port is doing on application exit when all 2646 WebView's have been closed. 2647 2648 * Api/qwebpage.cpp: 2649 (QWebPagePrivate::_q_cleanupLeakMessages): 2650 (QWebPage::QWebPage): 2651 * Api/qwebpage.h: 2652 * Api/qwebpage_p.h: 2653 26542009-02-23 Thiago Macieira <thiago.macieira@nokia.com> 2655 2656 Reviewed by Simon Hausmann. 2657 2658 Fix the Copyright notices in a few files 2659 2660 * WebKit_pch.h: 2661 26622009-02-16 Simon Hausmann <simon.hausmann@nokia.com> 2663 2664 Reviewed by Tor Arne Vestbø. 2665 2666 Avoid loading plugins when they're disabled in the settings. 2667 2668 * WebCoreSupport/FrameLoaderClientQt.cpp: 2669 (WebCore::FrameLoaderClientQt::canShowMIMEType): Don't call into the 2670 PluginDatabase if plugins are disabled in the settings. 2671 26722009-02-13 Benjamin C Meyer <benjamin.meyer@torchmobile.com> 2673 2674 Reviewed by Nikolas Zimmermann. 2675 2676 https://bugs.webkit.org/show_bug.cgi?id=23738 2677 Expose the url elements target frame string. This is the sister function 2678 to the existing linkTargetFrame which returns the QWebFrame*. When the 2679 linkTargetFrame is 0 it is useful to know what the target was to be. 2680 2681 * Api/qwebframe.cpp: 2682 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 2683 (QWebHitTestResult::linkTarget): 2684 * Api/qwebframe.h: 2685 * Api/qwebframe_p.h: 2686 * tests/qwebframe/tst_qwebframe.cpp: 2687 26882009-02-13 David Boddie <dboddie@trolltech.com> 2689 2690 Reviewed by Simon Hausmann. 2691 2692 Removed documentation for internal functions. 2693 2694 * Api/qwebsettings.cpp: 2695 26962009-02-13 Martin Smith <msmith@trolltech.com> 2697 2698 Reviewed by Simon Hausmann. 2699 2700 Corrected some minor qdoc errors. 2701 2702 * Api/qwebsettings.cpp: 2703 27042009-02-11 Dimitri Dupuis-latour <dupuislatour@apple.com> 2705 2706 Stub out InspectorClientQt::hiddenPanels. 2707 2708 Reviewed by Timothy Hatcher. 2709 2710 * WebCoreSupport/InspectorClientQt.cpp: 2711 (WebCore::InspectorClientQt::hiddenPanels): 2712 * WebCoreSupport/InspectorClientQt.h: 2713 27142009-02-10 Karsten Heimrich <kheimric@trolltech.com> 2715 2716 Reviewed by Simon Hausmann. 2717 2718 Fixes missing navigation/url update while clicking on anchor inside 2719 webpage. 2720 2721 * WebCoreSupport/FrameLoaderClientQt.cpp: 2722 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage): 2723 update and emit in case we navigate inside a webpage 2724 27252009-02-10 Adam Treat <adam.treat@torchmobile.com> 2726 2727 Fix the Qt build as class Selection is now VisibleSelection. 2728 2729 * Api/qwebpage.cpp: 2730 (QWebPage::inputMethodQuery): 2731 27322009-02-06 Geoffrey Garen <ggaren@apple.com> 2733 2734 Build fix. 2735 2736 * WebCoreSupport/FrameLoaderClientQt.cpp: 2737 (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks): 2738 * WebCoreSupport/FrameLoaderClientQt.h: 2739 27402009-02-06 Kavindra Palaraja <kavindra.palaraja@nokia.com> 2741 2742 Reviewed by Simon Hausmann. 2743 2744 Doc - made 2 functions internal as they are not part of the API anymore (and this fixes 2 qdoc warnings) 2745 2746 * Api/qwebsettings.cpp: 2747 27482009-02-06 Simon Hausmann <simon.hausmann@nokia.com> 2749 2750 Reviewed by Tor Arne Vestbø. 2751 2752 Added an overload of QWebFrame::addToJavaScriptWindowObject that takes a QScriptEngine::ValueOwnership parameter. 2753 2754 * Api/qwebframe.cpp: 2755 (QWebFrame::addToJavaScriptWindowObject): New overload. 2756 * Api/qwebframe.h: 2757 * tests/qwebframe/tst_qwebframe.cpp: Added unit tests for ownership 2758 models. 2759 27602009-02-06 Aaron Boodman <aa@chromium.org> 2761 2762 Reviewed by Holger Freyther. 2763 2764 * WebCoreSupport/FrameLoaderClientQt.cpp: 2765 (WebCore::FrameLoaderClientQt::documentElementAvailable):) 2766 Fix compile error in Qt build introduced by the below change (r40694). 2767 27682009-02-05 Aaron Boodman <aa@chromium.org> 2769 2770 Reviewed by Dave Hyatt. 2771 2772 https://bugs.webkit.org/show_bug.cgi?id=23708 2773 Adds documentElementAvailable() callback to FrameLoaderClient. 2774 2775 * WebCoreSupport/FrameLoaderClientQt.cpp: 2776 (WebCore::FrameLoaderClient::documentElementAvailable): 2777 Stub out documentElementAvailable(). 2778 * WebCoreSupport/FrameLoaderClientQt.h: 2779 Ditto. 2780 27812009-02-04 David Boddie <dboddie@trolltech.com> 2782 2783 Reviewed by Simon Hausmann. 2784 2785 Doc: Documented the return value of the evaluateJavaScript() function. 2786 2787 * Api/qwebframe.cpp: 2788 27892009-02-03 Simon Hausmann <simon.hausmann@nokia.com> 2790 2791 Reviewed by Tor Arne Vestbø. 2792 2793 Added a unit test to verify the succesful conversion from QByteArray to 2794 JSByteArray and back to QByteArray. 2795 2796 * tests/qwebframe/tst_qwebframe.cpp: 2797 27982009-02-02 Geoffrey Garen <ggaren@apple.com> 2799 2800 Build fix. 2801 2802 * Api/qwebframe.cpp: 2803 (QWebFrame::QWebFrame): 2804 (QWebFrame::load): 2805 (QWebFrame::setHtml): 2806 (QWebFrame::setContent): 2807 28082009-02-02 Geoffrey Garen <ggaren@apple.com> 2809 2810 Build fix. 2811 2812 * WebCoreSupport/FrameLoaderClientQt.cpp: 2813 (WebCore::FrameLoaderClientQt::createFrame): 2814 28152009-02-02 Geoffrey Garen <ggaren@apple.com> 2816 2817 Reviewed by Sam Weinig. 2818 2819 Track redirects in global history. 2820 2821 Keep Qt building. 2822 2823 * WebCoreSupport/FrameLoaderClientQt.cpp: 2824 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForRedirectWithoutHistoryItem): 2825 (WebCore::FrameLoaderClientQt::createFrame): 2826 * WebCoreSupport/FrameLoaderClientQt.h: 2827 28282009-02-02 Anders Carlsson <andersca@apple.com> 2829 2830 Reviewed by Dan Bernstein. 2831 2832 Update for changes to WebCore. 2833 2834 * WebCoreSupport/FrameLoaderClientQt.cpp: 2835 (WebCore::FrameLoaderClientQt::createPlugin): 2836 (WebCore::FrameLoaderClientQt::createJavaAppletWidget): 2837 * WebCoreSupport/FrameLoaderClientQt.h: 2838 28392009-02-02 Adam Treat <adam.treat@torchmobile.com> 2840 2841 Reviewed by Nikolas Zimmermann. 2842 2843 https://bugs.webkit.org/show_bug.cgi?id=23587 2844 Refactor HitTestRequest to eliminate all the ugly boolean arguments and 2845 use an enum bitflag instead. Cleanup all the code that constructs the 2846 various HitTestRequests to make the code more readable. 2847 2848 * Api/qwebframe.cpp: 2849 (QWebFrame::hitTestContent): 2850 28512009-02-02 Adam Treat <adam.treat@torchmobile.com> 2852 2853 Fix the Qt build to call forceLayout on the view instead. 2854 2855 * Api/qwebpage.cpp: 2856 (QWebPage::setFixedLayoutSize): 2857 (QWebPage::setUseFixedLayout): 2858 28592009-02-02 Holger Hans Peter Freyther <zecke@selfish.org> 2860 2861 Reviewed by Darin Adler. 2862 2863 Move Frame::forceLayout, Frame::adjustPageHeight and Frame::forceLayoutWithPageWidthRange to FrameView 2864 2865 https://bugs.webkit.org/show_bug.cgi?id=23428 2866 2867 FrameView::forceLayout could be killed but the comment might 2868 contain a value over the the plain FrameView::layout... 2869 2870 Adjust the WebCore/WebKit consumers of these methods. 2871 2872 * Api/qwebpage.cpp: 2873 (QWebPage::setViewportSize): 2874 * WebCoreSupport/FrameLoaderClientQt.cpp: 2875 (WebCore::FrameLoaderClientQt::forceLayout): 2876 28772009-01-30 Geoffrey Garen <ggaren@apple.com> 2878 2879 Build fix. 2880 2881 * WebCoreSupport/FrameLoaderClientQt.cpp: 2882 (WebCore::FrameLoaderClientQt::createFrame): 2883 28842009-01-30 Holger Hans Peter Freyther <zecke@selfish.org> 2885 2886 Reviewed by Simon Hausmann. 2887 2888 https://bugs.webkit.org/show_bug.cgi?id=22056 2889 2890 Kill FrameLoaderClient.cpp, move the code over to Frame::createView 2891 2892 FrameLoaderClient is supposed to be an interface, move the 2893 to be shared code to Frame which is a controller and is 2894 allowed to create a FrameView. 2895 2896 * WebCoreSupport/FrameLoaderClientQt.cpp: 2897 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 2898 28992009-01-30 Geoffrey Garen <ggaren@apple.com> 2900 2901 Reviewed by Sam Weinig. 2902 2903 Split "lockHistory" into "lockHistory" and "lockBackForwardList" in 2904 preparation for setting them differently during a redirect. 2905 2906 * Api/qwebpage.cpp: 2907 (QWebPage::triggerAction): 2908 29092009-01-30 Brady Eidson <beidson@apple.com> 2910 2911 Reviewed by Sam Weinig 2912 2913 Remove FrameLoaderClient code that is now handled by FrameLoader itself 2914 2915 * WebCoreSupport/FrameLoaderClientQt.cpp: 2916 (WebCore::FrameLoaderClientQt::frameLoadCompleted): 2917 29182009-01-30 Simon Hausmann <simon.hausmann@nokia.com> 2919 2920 Reviewed by Tor Arne Vestbø. 2921 2922 Hide the Offline Web Application Cache path API from the public API 2923 for now. 2924 2925 * Api/qwebsettings.cpp: 2926 (qt_websettings_setOfflineWebApplicationCachePath): 2927 (qt_websettings_offlineWebApplicationCachePath): 2928 * Api/qwebsettings.h: 2929 29302009-01-28 Adam Treat <adam.treat@torchmobile.com> 2931 2932 Reviewed by Nikolas Zimmermann and George Staikos. 2933 2934 https://bugs.webkit.org/show_bug.cgi?id=23557 2935 Do not clip the QWebFrame::hitTestContent method to the visible viewport 2936 and add a regression test to make sure it works. 2937 2938 * Api/qwebframe.cpp: 2939 (QWebFrame::hitTestContent): 2940 * tests/qwebframe/tst_qwebframe.cpp: 2941 29422009-01-28 Ariya Hidayat <ariya.hidayat@trolltech.com> 2943 2944 Rubber-stamped by Simon Hausmann. 2945 2946 Provide default implementations of JavaScript dialog boxes like in 2947 most web browsers, i.e. indicate that is from JavaScript and show the 2948 frame URL. 2949 2950 * Api/qwebpage.cpp: 2951 (QWebPage::javaScriptAlert): 2952 (QWebPage::javaScriptConfirm): 2953 (QWebPage::javaScriptPrompt): 2954 29552009-01-27 Ariya Hidayat <ariya.hidayat@trolltech.com> 2956 2957 Reviewed by Simon Hausmann. 2958 2959 http://www.qtsoftware.com/developer/task-tracker/index_html?id=238391&method=entry 2960 2961 [Qt] If QPainter fails to start on a QPrinter instance, do not 2962 continue printing. 2963 2964 * Api/qwebframe.cpp: 2965 (QWebFrame::print): 2966 29672009-01-27 Brady Eidson <beidson@apple.com> 2968 2969 Reviewed by Dan Bernstein 2970 2971 Rework FrameLoaderClient to work on a CachedFrame basis instead of CachedPage 2972 2973 * WebCoreSupport/FrameLoaderClientQt.cpp: 2974 (WebCore::FrameLoaderClientQt::savePlatformDataToCachedFrame): 2975 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedFrame): 2976 * WebCoreSupport/FrameLoaderClientQt.h: 2977 29782009-01-26 Simon Fraser <simon.fraser@apple.com> 2979 2980 Reviewed by David Hyatt 2981 2982 Back out r40285, because it was checked in with no bug number, no 2983 testcase, is rendering change that did not get thorough review, 2984 and broke the Mac build. 2985 2986 * Api/qwebframe.cpp: 2987 (QWebFrame::hitTestContent): 2988 29892009-01-26 Adam Treat <adam.treat@torchmobile.com> 2990 2991 Reviewed by Nikolas Zimmermann. 2992 2993 Do not clip the QWebFrame::hitTestContent method to the visible viewport. 2994 2995 * Api/qwebframe.cpp: 2996 (QWebFrame::hitTestContent): 2997 29982009-01-26 David Boddie <dboddie@trolltech.com> 2999 3000 Reviewed by Simon Hausmann. 3001 3002 Doc: qdoc fix for a link to a property and added a basic description of the offline caching and storage features from HTML 5. 3003 3004 * Api/qwebpage.cpp: 3005 * Api/qwebsettings.cpp: 3006 30072009-01-25 Urs Wolfer <uwolfer@kde.org> 3008 3009 Reviewed by Simon Hausmann. 3010 3011 Add QWebPage::SelectAll to WebAction enum to select all content. 3012 3013 https://bugs.webkit.org/show_bug.cgi?id=22946 3014 3015 * Api/qwebpage.cpp: 3016 (QWebPagePrivate::editorActionForKeyEvent): 3017 * Api/qwebpage.h: 3018 30192009-01-25 David Boddie <dboddie@trolltech.com> 3020 3021 Reviewed by Simon Hausmann. 3022 3023 Doc: Fixed the terminology used. 3024 3025 * Api/qwebpage.cpp: 3026 30272009-01-25 Thiago Macieira <thiago.macieira@nokia.com> 3028 3029 Reviewed by Simon Hausmann. 3030 3031 Rename links from trolltech.com to qtsoftware.com 3032 3033 * Api/qwebpluginfactory.cpp: 3034 30352009-01-25 Tor Arne Vestbø <tavestbo@trolltech.com> 3036 3037 Reviewed by Simon Hausmann. 3038 3039 Make QWebPage auto-test more robust by cleaning up generated files 3040 3041 Sometimes the auto-test may segfault, leaving behind files because the 3042 call to cleanupTestCase() never happens, so we also clean up the files 3043 at initTestCase() just to make sure we're running in a clean environment. 3044 3045 * tests/qwebpage/tst_qwebpage.cpp: 3046 (tst_QWebPage::cleanupFiles): 3047 (tst_QWebPage::initTestCase): 3048 (tst_QWebPage::cleanupTestCase): 3049 30502008-12-20 Urs Wolfer <uwolfer@kde.org> 3051 3052 Reviewed by Simon Hausmann. 3053 3054 Fix: compile qwebhistory.h with pendantic comiler flag. 3055 3056 https://bugs.webkit.org/show_bug.cgi?id=22947 3057 3058 * Api/qwebhistory.h: 3059 30602009-01-24 Adam Treat <adam.treat@torchmobile.com> 3061 3062 Oops, fix the Qt build. 3063 3064 * Api/qwebframe.cpp: 3065 (QWebFrame::render): 3066 30672009-01-24 Adam Treat <adam.treat@torchmobile.com> 3068 3069 Reviewed by Nikolas Zimmermann. 3070 3071 Add QWebFrame::renderContents() method which allows arbitary rendering 3072 of any content region within the QWebFrame. It also does not draw any 3073 scrollbars. 3074 3075 * Api/qwebframe.cpp: 3076 (QWebFrame::renderContents): 3077 * Api/qwebframe.h: 3078 30792009-01-23 Ariya Hidayat <ariya.hidayat@trolltech.com> 3080 3081 Reviewed by Simon Hausmann. 3082 3083 Make the test more robust by taking into account the platform-specific 3084 cursor flashing time. 3085 3086 * tests/qwebframe/tst_qwebframe.cpp: 3087 30882009-01-20 Friedemann Kleint <Friedemann.Kleint@nokia.com> 3089 3090 Reviewed by Simon Hausmann. 3091 3092 Fix spelling error in QWebPage 3093 3094 * Api/qwebpage.cpp: 3095 (QWebPage::action): 3096 30972009-01-19 Simon Hausmann <simon.hausmann@nokia.com> 3098 3099 Reviewed by Tor Arne Vestbø. 3100 3101 Fix calling of onkeypress event handlers on input elements when pressing enter 3102 and other text insertion commands in the Qt port. 3103 3104 Similar to the win and mac ports don't execute text inserting editor 3105 commands on RawKeyDown but continue processing the event first in 3106 WebCore, i.e. also get a keypress event sent. If unhandled it will 3107 come back to EditorClientQt::handleKeyboardEvent later and we execute 3108 it then. 3109 3110 This also fixes search by pressing enter on www.trafikanten.no. 3111 3112 * Api/qwebpage.cpp: 3113 (QWebPagePrivate::editorCommandForWebActions): Make function 3114 accessible from other files. 3115 (QWebPage::triggerAction): Adjust to new function visibility. 3116 * Api/qwebpage_p.h: Ditto. 3117 * WebCoreSupport/EditorClientQt.cpp: 3118 (WebCore::EditorClientQt::handleKeyboardEvent): Don't execute 3119 text inserting commands on RawKeyPressDown. 3120 31212009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com> 3122 3123 Rubber-stamped by Simon Hausmann. 3124 3125 [Qt] Increase popup focus delay time to a sensible 500 ms. 3126 3127 * tests/qwebframe/tst_qwebframe.cpp: 3128 31292009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com> 3130 3131 Reviewed by Adam Roben. 3132 3133 [Qt] Prevent crash if plugin data is NULL. 3134 3135 * WebCoreSupport/FrameLoaderClientQt.cpp: NULL check. 3136 (WebCore::FrameLoaderClientQt::objectContentType): 3137 31382009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com> 3139 3140 Rubber-stamped by Simon Hausmann. 3141 3142 [Qt] Per-line cursor movement tests depend on platform-specific font 3143 metrics. Remove them to avoid test failures on different platforms. 3144 3145 * tests/qwebpage/tst_qwebpage.cpp: 3146 (tst_QWebPage::cursorMovements): 3147 31482009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com> 3149 3150 Rubber-stamped by Simon Hausmann. 3151 3152 http://www.qtsoftware.com/developer/task-tracker/index_html?id=219344&method=entry 3153 3154 [Qt] API documentation for QWebPage::WebAction enum. 3155 3156 * Api/qwebpage.cpp: 3157 31582009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com> 3159 3160 Another attempt at fixing the Qt build. 3161 3162 * Api/qwebframe.cpp: 3163 (QWebFrame::addToJavaScriptWindowObject): 3164 31652009-01-14 Ariya Hidayat <ariya.hidayat@trolltech.com> 3166 3167 Reviewed by Tor Arne Vestbø. 3168 3169 [Qt] Unit tests for text selection and editing actions of QWebPage. 3170 The following are tested: 3171 - the actions are not NULL 3172 - the actions are disabled when contentEditable is false 3173 - the actions are enabled when contentEditable is true 3174 3175 * tests/qwebpage/tst_qwebpage.cpp: 3176 (tst_QWebPage::textSelection): 3177 (tst_QWebPage::textEditing): 3178 31792009-01-14 Simon Hausmann <simon.hausmann@nokia.com> 3180 3181 Reviewed by Tor Arne Vestbø. 3182 3183 Fix failing assertion when pressing an extra mouse button on a 3184 QWebView. 3185 3186 Mice with more than three buttons - for example with a dedicated 3187 "back" button - can generate Qt::XButton1 or Button2. 3188 WebCore::MouseButton contains only Left, Middle and Right, so in 3189 Qt's PlatformMouseEvent we map to NoButton, resulting in a mouse 3190 press or release even with no button set. That triggers an assertion 3191 in EventTargetNode::dispatchMouseEvent requiring that either a button 3192 is set or it is just a mouse move event, which is correct. 3193 3194 In QWebPage decide not to dispatch such mouse events where we cannot 3195 map the mouse button to a WebCore::MouseButton. 3196 3197 * Api/qwebpage.cpp: 3198 (QWebPagePrivate::mousePressEvent): 3199 (QWebPagePrivate::mouseDoubleClickEvent): 3200 (QWebPagePrivate::mouseTripleClickEvent): 3201 (QWebPagePrivate::mouseReleaseEvent): 3202 32032009-01-14 Ariya Hidayat <ariya.hidayat@trolltech.com> 3204 3205 Reviewed by Simon Hausmann. 3206 3207 http://www.qtsoftware.com/developer/task-tracker/index_html?id=241144&method=entry 3208 3209 [Qt] Create actions for text selection and editing for QWebPage. 3210 Also properly disable and enable them when contentEditable is toggled. 3211 3212 * Api/qwebpage.cpp: 3213 (QWebPagePrivate::updateAction): 3214 (QWebPagePrivate::updateEditorActions): 3215 (QWebPage::action): 3216 32172009-01-14 Ariya Hidayat <ariya.hidayat@trolltech.com> 3218 3219 Reviewed by Simon Hausmann. 3220 3221 [Qt] Unit tests for cursor movements. The following are tested: 3222 - the actions are not NULL 3223 - the actions are disabled when contentEditable is false 3224 - the actions are enabled when contentEditable is true 3225 - the cursor moves properly when the actions are triggered 3226 3227 * tests/qwebpage/tst_qwebpage.cpp: 3228 (CursorTrackedPage::CursorTrackedPage): 3229 (CursorTrackedPage::selectedText): 3230 (CursorTrackedPage::selectionStartOffset): 3231 (CursorTrackedPage::selectionEndOffset): 3232 (CursorTrackedPage::isSelectionCollapsed): 3233 (tst_QWebPage::cursorMovements): 3234 32352009-01-08 Yongjun Zhang <yongjun.zhang@nokia.com> 3236 3237 Reviewed by Simon Hausmann. 3238 3239 https://bugs.webkit.org/show_bug.cgi?id=23187 3240 3241 Update webview with the intersected rect. 3242 3243 In ChromeClientQt::repaint, view should be updated with the 3244 intersected rect, not the whole windowRect; 3245 3246 This generally is not a problem for normal viewport setup where 3247 viewport size is the same as the qwebview widget size. However, if we 3248 set the viewport size smaller than qwebkit widget, we will see 3249 unwanted painting outside the viewport. 3250 3251 * WebCoreSupport/ChromeClientQt.cpp: 3252 (WebCore::ChromeClientQt::repaint): 3253 32542009-01-13 Ariya Hidayat <ariya.hidayat@trolltech.com> 3255 3256 Rubber-stamped by Tor Arne Vestbø. 3257 3258 [Qt] Missing piece from my previous commit: 3259 Disable and enable the cursor navigation actions when contentEditable 3260 is changed. 3261 3262 * Api/qwebpage.cpp: 3263 (QWebPagePrivate::updateEditorActions): 3264 32652009-01-13 Ariya Hidayat <ariya.hidayat@trolltech.com> 3266 3267 Reviewed by Tor Arne Vestbø. 3268 3269 [Qt] Create actions for cursor navigation for QWebPage. 3270 Also properly disable and enable them when contentEditable is toggled. 3271 3272 * Api/qwebpage.cpp: 3273 (QWebPagePrivate::updateAction): 3274 (QWebPage::action): 3275 32762009-01-13 Simon Hausmann <simon.hausmann@nokia.com> 3277 3278 Reviewed by Tor Arne Vestbø. 3279 3280 https://bugs.webkit.org/show_bug.cgi?id=23171 3281 3282 Based on patch by Yael Aharon <yael.aharon@nokia.com> 3283 3284 Make the QWebSettings functions for setting the path for the local 3285 storage database private QtWebkit API, including the ability to 3286 associated a QWebPage with a named page group. 3287 3288 * Api/qwebpage.cpp: 3289 (qt_webpage_setGroupName): Added. 3290 (qt_webpage_groupName): Added. 3291 * Api/qwebpage.h: 3292 (ExtensionOption::handle): Added internal helper function. 3293 * Api/qwebsettings.cpp: 3294 (qt_websettings_setLocalStorageDatabasePath): Made private API. 3295 (qt_websettings_localStorageDatabasePath): Made private API. 3296 * Api/qwebsettings.h: 3297 * tests/qwebpage/tst_qwebpage.cpp: 3298 (tst_QWebPage::database): Small cleanup. 3299 (tst_QWebPage::multiplePageGroupsAndLocalStorage): New test for the 3300 page group handling, written by Yael. 3301 33022009-01-12 Tor Arne Vestbø <tavestbo@trolltech.com> 3303 3304 Reviewed by Simon Hausmann. 3305 3306 [Qt] Ensure that we're always notified of navigation actions for local anchors 3307 3308 FrameLoader::checkNavigationPolicy() does not notify us if the request has 3309 been checked before (which happens for local anchors), but in the case of 3310 our clients not accepting the navigation request we do want to be notified 3311 again later on, so we clear the lastCheckedRequest flag. 3312 3313 * WebCoreSupport/FrameLoaderClientQt.cpp: 3314 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 3315 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 3316 33172009-01-12 Ariya Hidayat <ariya.hidayat@trolltech.com> 3318 3319 Rubber-stamped by Tor Arne Vestbø. 3320 3321 Build fix: use qobject_cast which does not rely on RTTI. This fixes the 3322 unit test when building it with a version of Qt (e.g. Qt/Embedded) 3323 configured without RTTI. 3324 3325 * tests/qwebframe/tst_qwebframe.cpp: 3326 33272009-01-12 Simon Hausmann <simon.hausmann@nokia.com> 3328 3329 Rubber-stamped by Tor Arne Vestbø. 3330 3331 When the QWebView is disabled context menus implemented in JavaScript should not pop up. 3332 3333 Just like in QWidget::event() we have to check for the disabled state and 3334 ignore context menu events. 3335 3336 * Api/qwebview.cpp: 3337 33382009-01-12 Simon Hausmann <simon.hausmann@nokia.com 3339 3340 Reviewed by Tor Arne Vestbø. 3341 3342 Fix QWebView appearance when showed uninitialized without page. 3343 3344 Only set WA_OpaquePaintEvent if we have a page set that will actually 3345 paint the entire contents, otherwise the optimization does not apply 3346 as we do not have a paintEvent() implementation and Qt has to fill the 3347 view with its default background instead. 3348 3349 * Api/qwebview.cpp: 3350 (QWebView::QWebView): 3351 (QWebView::setPage): 3352 33532009-01-11 Ariya Hidayat <ariya.hidayat@trolltech.com> 3354 3355 Rubber-stamped by Tor Arne Vestbø. 3356 3357 Do not create a QVariant from QObject* directly, use the 3358 template-specialized function. 3359 3360 * tests/qwebframe/tst_qwebframe.cpp: 3361 (MyQObject::myOverloadedSlot): 3362 33632009-01-09 Simon Hausmann <simon.hausmann@nokia.com> 3364 3365 Rubber-stamped by Tor Arne Vestbø. 3366 3367 Documentation fixes, remove duplicated docs, document missing 3368 parameters and return values. 3369 3370 * Api/qwebdatabase.cpp: 3371 * Api/qwebpage.cpp: 3372 33732009-01-09 Simon Hausmann <simon.hausmann@nokia.com> 3374 3375 Reviewed by Tor Arne Vestbø. 3376 3377 Fix linking against QtWebKit on Windows, by defining the EXPORT macros 3378 _exactly_ the same way as in qglobal.h, depending on QT_NODLL, 3379 QT_MAKEDLL and QT_SHARED. 3380 3381 * Api/qwebkitglobal.h: 3382 33832009-01-09 Simon Hausmann <simon.hausmann@nokia.com> 3384 3385 Reviewed by Tor Arne Vestbø. 3386 3387 Remove qwebnetworkinterface.h from WEBKIT_API_HEADERS as it's not 3388 public Qt 4.4/4.5 API. 3389 3390 * Api/headers.pri: 3391 33922009-01-09 Simon Hausmann <simon.hausmann@nokia.com> 3393 3394 Unreviewed Qt build fix, remove qcookiejar.h from the API headers and 3395 therefore HEADERS. It's not part of the API and it moc shouldn't be 3396 called on it. 3397 3398 * Api/headers.pri: 3399 34002009-01-09 Simon Hausmann <simon.hausmann@nokia.com> 3401 3402 Rubber-stamped by Tor Arne Vestbø. 3403 3404 Remove files not present anymore from the WEBKIT_API_HEADERS variable. 3405 3406 * Api/headers.pri: 3407 34082009-01-08 Adam Treat <adam.treat@torchmobile.com> 3409 3410 Reviewed by Simon Hausmann. 3411 3412 Don't set the minimumFontSize and minimumLogicalFontSize as these are 3413 just for accessibility and should be left up to the client application. 3414 3415 * Api/qwebsettings.cpp: 3416 (QWebSettings::QWebSettings): 3417 34182009-01-08 Kavindra Palaraja <kdpalara@trolltech.com> 3419 3420 Reviewed by Simon Hausmann. 3421 3422 Small fixes to the API documentation, missing 4.5 tags and 3423 undocumented parameters. 3424 3425 * Api/qwebhistory.cpp: 3426 * Api/qwebpage.cpp: 3427 * Api/qwebsettings.cpp: 3428 34292009-01-07 Adam Treat <adam.treat@torchmobile.com> 3430 3431 Reviewed by George Staikos. 3432 3433 Add Qt API to QWebHitTestResult::isScrollBar method 3434 3435 * Api/qwebframe.cpp: 3436 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 3437 (QWebHitTestResult::isScrollBar): 3438 * Api/qwebframe.h: 3439 * Api/qwebframe_p.h: 3440 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 3441 34422009-01-07 Adam Treat <adam.treat@torchmobile.com> 3443 3444 Reviewed by George Staikos. 3445 3446 Add Qt API for QWebFrame::scrollBarGeometry method 3447 3448 * Api/qwebframe.cpp: 3449 (QWebFrame::scrollBarGeometry): 3450 * Api/qwebframe.h: 3451 34522009-01-07 Adam Treat <adam.treat@torchmobile.com> 3453 3454 Reviewed by George Staikos. 3455 3456 Fix unused variable warnings 3457 3458 * tests/qwebpage/tst_qwebpage.cpp: 3459 (TestPage::createWindow): 3460 34612009-01-07 Ariya Hidayat <ariya.hidayat@trolltech.com> 3462 3463 Rubber-stamped by Simon Hausmann. 3464 3465 Qt build fix after r39670. 3466 3467 * Api/qwebframe.cpp: 3468 (QWebFrame::evaluateJavaScript): 3469 34702009-01-06 Ariya Hidayat <ariya.hidayat@trolltech.com> 3471 3472 Reviewed by Holger Freyther. 3473 3474 Allow building QtWebKit statically (within Qt). 3475 3476 http://trolltech.com/developer/task-tracker/index_html?id=211273&method=entry 3477 3478 * Api/qwebkitglobal.h: 3479 34802009-01-06 Adam Treat <adam.treat@torchmobile.com> 3481 3482 Reviewed by Simon Hausmann. 3483 3484 Update the documentation to reflect when these API changes will land in 3485 upstream Qt 3486 3487 * Api/qwebframe.cpp: 3488 * Api/qwebpage.cpp: 3489 34902009-01-05 Adam Treat <adam.treat@torchmobile.com> 3491 3492 Reviewed by George Staikos. 3493 3494 Add Qt API for QWebFrame::contentsSizeChanged signal 3495 3496 * Api/qwebframe.cpp: 3497 * Api/qwebframe.h: 3498 * WebCoreSupport/ChromeClientQt.cpp: 3499 (WebCore::ChromeClientQt::contentsSizeChanged): 3500 * WebCoreSupport/ChromeClientQt.h: 3501 35022009-01-05 Adam Treat <adam.treat@torchmobile.com> 3503 3504 Reviewed by George Staikos. 3505 3506 Fixes QWebFrame::setScrollBarPolicy(..) to actually work. Also happens 3507 to fix 192 layout tests that were previously failing for Qt. 3508 3509 * Api/qwebframe.cpp: 3510 (QWebFrame::setScrollBarPolicy): 3511 * WebCoreSupport/FrameLoaderClientQt.cpp: 3512 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 3513 35142009-01-04 Adam Treat <adam.treat@torchmobile.com> 3515 3516 Reviewed by George Staikos. 3517 3518 Add new API to QWebHitTestResult to return a rect for the smallest enclosing 3519 block element of the hit test 3520 3521 * Api/qwebframe.cpp: 3522 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 3523 (QWebHitTestResult::enclosingBlock): 3524 * Api/qwebframe.h: 3525 * Api/qwebframe_p.h: 3526 35272008-12-30 Adam Treat <adam.treat@torchmobile.com> 3528 3529 Reviewed by George Staikos. 3530 3531 Make the qt port build and work with the new fixedLayoutSize feature 3532 3533 * Api/qwebpage.cpp: 3534 (QWebPagePrivate::QWebPagePrivate): 3535 (QWebPage::fixedLayoutSize): 3536 (QWebPage::setFixedLayoutSize): 3537 (QWebPage::useFixedLayout): 3538 (QWebPage::setUseFixedLayout): 3539 * Api/qwebpage.h: 3540 * Api/qwebpage_p.h: 3541 * WebCoreSupport/FrameLoaderClientQt.cpp: 3542 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 3543 35442008-12-19 Jade Han <jade.han@nokia.com> 3545 3546 Reviewed by Tor Arne Vestbø. 3547 3548 [Qt] Allow conversion of JavaScript Number and Boolean types to Qt types 3549 3550 https://bugs.webkit.org/show_bug.cgi?id=22880 3551 3552 * tests/qwebframe/tst_qwebframe.cpp: 3553 (MyQObject::myInvokableWithBoolArg): 3554 35552008-12-18 Yael Aharon <yael.aharon@nokia.com> 3556 3557 Reviewed by Tor Arne Vestbø. 3558 3559 When Web Inspector is launched without an associated node, 3560 call show() instead of inspect(). 3561 3562 * Api/qwebpage.cpp: 3563 (QWebPage::triggerAction): 3564 35652008-12-18 Dan Bernstein <mitz@apple.com> 3566 3567 Reviewed by Sam Weinig. 3568 3569 - stub out FrameLoaderClient::shouldUseCredentialStorage(). 3570 3571 * WebCoreSupport/FrameLoaderClientQt.cpp: 3572 (WebCore::FrameLoaderClientQt::shouldUseCredentialStorage): 3573 * WebCoreSupport/FrameLoaderClientQt.h: 3574 35752008-12-18 Sam Weinig <sam@webkit.org> 3576 3577 Reviewed by John Sullivan. 3578 3579 Stub out FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout() 3580 3581 * WebCoreSupport/FrameLoaderClientQt.cpp: 3582 (WebCore::FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout): 3583 * WebCoreSupport/FrameLoaderClientQt.h: 3584 35852008-12-16 Simon Hausmann <hausmann@webkit.org> 3586 3587 Reviewed by Holger Freyther. 3588 3589 Added support for unload event counting to the Qt DRT. 3590 3591 * Api/qwebpage.cpp: 3592 (qt_drt_run): Moved function here. 3593 * Api/qwebpage_p.h: Moved drt run boolean here. 3594 * WebCoreSupport/EditorClientQt.cpp: Moved drt run boolean. 3595 (WebCore::EditorClientQt::shouldShowDeleteInterface): Use the new drt 3596 run variable. 3597 * WebCoreSupport/FrameLoaderClientQt.cpp: 3598 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): Add DRT 3599 output for unload event handler counting. 3600 36012008-12-15 Holger Hans Peter Freyther <zecke@selfish.org> 3602 3603 Reviewed by Simon Hausmann. 3604 3605 Change the order of sub frame initialisation to avoid crashes 3606 3607 Add the newly created frame to the FrameTree before calling 3608 WebCore::Frame::init to not segfault on 3609 LayoutTests/fast/loader/frame-creation-removal.html. 3610 3611 * Api/qwebframe.cpp: 3612 (QWebFramePrivate::init): 3613 * WebCoreSupport/FrameLoaderClientQt.cpp: 3614 (WebCore::FrameLoaderClientQt::createFrame): 3615 36162008-12-15 Simon Hausmann <hausmann@webkit.org> 3617 3618 Reviewed by Holger Freyther. 3619 3620 Implement setJavaScriptProfilingEnabled in the Qt DRT to pass fast/profiler. 3621 3622 * Api/qwebframe.cpp: 3623 (qt_drt_setJavaScriptProfilingEnabled): 3624 36252008-12-12 Simon Hausmann <hausmann@webkit.org> 3626 3627 Reviewed by Tor Arne Vestbø. 3628 3629 Fix pressing return/enter not triggering any action on web sites 3630 that define event handlers, such as the JS console in the web 3631 inspector. 3632 3633 Process the key events in the DOM first and if not handled map them 3634 to editor actions. 3635 3636 * Api/qwebpage.cpp: 3637 (QWebPagePrivate::editorActionForKeyEvent): Made a class method. 3638 (QWebPagePrivate::keyPressEvent): Pass the key event first to the DOM. 3639 * WebCoreSupport/EditorClientQt.cpp: 3640 (WebCore::EditorClientQt::handleKeyboardEvent): Map the key event to 3641 actions and trigger them. 3642 36432008-12-12 Ariya Hidayat <ariya.hidayat@trolltech.com> 3644 3645 Reviewed by Simon Hausmann. 3646 3647 Create the plugin widget even though the web page has no associated 3648 view. This prevents the plugin to be uselessly constructed more than once. 3649 3650 * WebCoreSupport/FrameLoaderClientQt.cpp: 3651 (WebCore::FrameLoaderClientQt::createPlugin): 3652 * tests/qwebpage/tst_qwebpage.cpp: 3653 (tst_QWebPage::createViewlessPlugin): 3654 36552008-12-11 Enrico Ros <enrico.ros@m31.com> 3656 3657 Reviewed by Simon Hausmann. 3658 3659 Fix the broken focus behavior that happened when QWebPage lost 3660 focus to a popup menu. 3661 3662 The previous code didn't notify the QWebPage at all when the 3663 focus was back in (breaking focus rects, caret blinking, ...). 3664 By the way when a popup is show, 2 FocusOut events are delivered 3665 to the QWebPage, but this doesn't seem to hurt. 3666 3667 Added a test to check popup opening, closing a lineedit blinks. 3668 3669 * Api/qwebpage.cpp: 3670 (QWebPagePrivate::focusInEvent): 3671 (QWebPagePrivate::focusOutEvent): 3672 * tests/qwebframe/tst_qwebframe.cpp: 3673 (tst_QWebFrame::): 3674 36752008-12-11 Ariya Hidayat <ariya.hidayat@trolltech.com> 3676 3677 Reviewed by Tor Arne Vestbø. 3678 3679 When the web page is navigated away, delete the instance 3680 of the native plugin. 3681 3682 http://trolltech.com/developer/task-tracker/index_html?id=214946&method=entry 3683 3684 * WebCoreSupport/FrameLoaderClientQt.cpp: 3685 (WebCore::): 3686 * tests/qwebpage/tst_qwebpage.cpp: 3687 (PluginTrackedPage::PluginTrackedPage): 3688 (PluginTrackedPage::createPlugin): 3689 (tst_QWebPage::destroyPlugin): 3690 36912008-12-11 Yael Aharon <yael.aharon@nokia.com> 3692 3693 Reviewed by Simon Hausmann. 3694 3695 Allow applications to save and restore their state between loads. 3696 3697 * Api/qwebframe.cpp: 3698 * Api/qwebframe.h: 3699 * WebCoreSupport/FrameLoaderClientQt.cpp: 3700 (WebCore::FrameLoaderClientQt::restoreViewState): 3701 (WebCore::FrameLoaderClientQt::saveViewStateToItem): 3702 * tests/qwebpage/tst_qwebpage.cpp: 3703 (tst_QWebPage::modified): 3704 37052008-12-08 Tor Arne Vestbø <tavestbo@trolltech.com> 3706 3707 Reviewed by Darin Adler and Holger Freyther. 3708 3709 Make Widget::frameRectsChanged() and overrides non-const 3710 3711 This will hopefully allow us to get rid of some of the mutables in 3712 the classes that react to the callback by changing their own state. 3713 3714 * WebCoreSupport/FrameLoaderClientQt.cpp: 3715 (WebCore::): 3716 37172008-12-10 Holger Hans Peter Freyther <zecke@selfish.org> 3718 3719 Reviewed by Simon Hausmann. 3720 3721 API changes discussed with Simon Hausmann, Tor Arne 3722 Vestbø, Ariya Hidayat... 3723 3724 * Api/qwebdatabase.cpp: 3725 (QWebDatabase::fileName): 3726 (QWebDatabase::removeDatabase): 3727 * Api/qwebdatabase.h: 3728 * Api/qwebframe.cpp: 3729 (QWebFrame::scroll): 3730 (QWebFrame::scrollPosition): 3731 (QWebFrame::setScrollPosition): 3732 * Api/qwebframe.h: 3733 * Api/qwebpage.cpp: 3734 (QWebPage::setContentEditable): 3735 (QWebPage::isContentEditable): 3736 (QWebPage::extension): 3737 * Api/qwebpage.h: 3738 * Api/qwebsecurityorigin.cpp: 3739 * Api/qwebsettings.cpp: 3740 (QWebSettingsPrivate::apply): 3741 (QWebSettings::QWebSettings): 3742 * Api/qwebsettings.h: 3743 * QtLauncher/main.cpp: 3744 (MainWindow::setEditable): 3745 * WebCoreSupport/ChromeClientQt.cpp: 3746 (WebCore::ChromeClientQt::exceededDatabaseQuota): 3747 (WebCore::ChromeClientQt::runOpenPanel): 3748 * WebCoreSupport/EditorClientQt.cpp: 3749 (WebCore::EditorClientQt::isEditable): 3750 * tests/qwebpage/tst_qwebpage.cpp: 3751 (tst_QWebPage::database): 3752 37532008-12-09 Balazs Kelemen <Kelemen.Balazs.3@stud.u-szeged.hu> 3754 3755 Reviewed by Simon Hausmann. 3756 3757 Extended QtLauncher so now it can load pages from an url list 3758 one by one. This can be useful for testing purposes (eq. leak hunting). 3759 The -r option activates this feature. 3760 3761 https://bugs.webkit.org/show_bug.cgi?id=20932 3762 3763 * QtLauncher/main.cpp: 3764 (MainWindow::webPage): 3765 Just a coding style repairing (* written with no space between the return type name) 3766 (MainWindow::webView): 3767 I need the webView to connect it with the URLLoader object. 3768 (URLLoader::URLLoader): 3769 (URLLoader::loadNext): 3770 (URLLoader::init): 3771 (URLLoader::getUrl): 3772 (main): 3773 37742008-12-10 Simon Hausmann <hausmann@webkit.org> 3775 3776 Fix the Qt build, added const to Node* parameter after change 3777 in signature. 3778 3779 * WebCoreSupport/ChromeClientQt.h: 3780 (WebCore::ChromeClientQt::formStateDidChange): 3781 37822008-12-09 Brett Wilson <brettw@chromium.org> 3783 3784 Reviewed by Dave Hyatt. 3785 3786 https://bugs.webkit.org/show_bug.cgi?id=22177 3787 3788 Add a callback on ChromeClient that the state of form elements on 3789 the page has changed. This is to allow clients implementing session 3790 saving to know when the current state is dirty. 3791 3792 * WebCoreSupport/ChromeClientQt.h: 3793 (WebCore::ChromeClientQt::formStateDidChange): 3794 37952008-12-09 Ariya Hidayat <ariya.hidayat@trolltech.com> 3796 3797 Reviewed by Simon Hausmann. 3798 3799 Fix the documentation of the localStorageDatabasePath setters/getters. 3800 3801 * Api/qwebsettings.cpp: 3802 38032008-12-08 Ariya Hidayat <ariya.hidayat@trolltech.com> 3804 3805 Reviewed by Simon Hausmann. 3806 3807 Multiple files support for the file chooser. 3808 3809 * Api/qwebpage.cpp: 3810 (QWebPage::chooseFiles): 3811 * Api/qwebpage.h: 3812 * WebCoreSupport/ChromeClientQt.cpp: 3813 (WebCore::ChromeClientQt::runOpenPanel): 3814 38152008-12-06 Simon Fraser <simon.fraser@apple.com> 3816 3817 Reviewed by Dave Hyatt 3818 3819 https://bugs.webkit.org/show_bug.cgi?id=15671 3820 3821 Renderer::caretRect() is now localCaretRect(), which needs 3822 converting to absolute coordinates (taking transforms into account). 3823 3824 * Api/qwebpage.cpp: 3825 (QWebPage::inputMethodQuery): 3826 38272008-12-03 Tor Arne Vestbø <tavestbo@trolltech.com> 3828 3829 Reviewed by Simon Hausmann. 3830 3831 Allow passing jsNull and jsUndefined to Qt plugins 3832 3833 Currently limited to functions with QString and QVariant arguments, 3834 and properties of these types. Both jsNull and jsUndefined ends up 3835 as default-constructed QStrings and QVariants, which means you can 3836 check for isEmpty() and isValid() in the native plugin code. 3837 3838 Based on patches by Jade Han <jade.han@nokia.com> 3839 3840 * tests/qwebframe/tst_qwebframe.cpp: 3841 38422008-12-02 Simon Hausmann <hausmann@webkit.org> 3843 3844 Rubber-stamped by Tor Arne Vestbø. 3845 3846 Initial API documentation for QWebDatabase, QWebSecurityOrigin and 3847 QWebFrame::securityOrigin(). 3848 3849 * Api/qwebdatabase.cpp: 3850 * Api/qwebframe.cpp: 3851 * Api/qwebsecurityorigin.cpp: 3852 38532008-11-27 Kent Hansen <khansen@trolltech.com> 3854 3855 Reviewed by Simon Hausmann. 3856 3857 Added auto tests for making JavaScript bindings for Qt plugin widgets 3858 work again. 3859 3860 * tests/qwebpage/tst_qwebpage.cpp: 3861 (PluginPage::PluginPage): 3862 (PluginPage::CallInfo::CallInfo): 3863 (PluginPage::createPlugin): 3864 (tst_QWebPage::createPlugin): 3865 38662008-11-25 Holger Hans Peter Freyther <zecke@selfish.org> 3867 3868 Build fix. Use WebCore::Frame::loader instead of QWebFrame 3869 3870 * WebCoreSupport/FrameLoaderClientQt.cpp: 3871 (WebCore::FrameLoaderClientQt::updateGlobalHistory): 3872 38732008-11-24 Darin Fisher <darin@chromium.org> 3874 3875 Fix bustage. 3876 3877 http://bugs.webkit.org/show_bug.cgi?id=15643 3878 3879 * WebCoreSupport/EditorClientQt.cpp: 3880 (WebCore::EditorClientQt::isSelectTrailingWhitespaceEnabled): 3881 * WebCoreSupport/EditorClientQt.h: 3882 38832008-11-24 Darin Adler <darin@apple.com> 3884 3885 Reviewed by Dan Bernstein. 3886 3887 - https://bugs.webkit.org/show_bug.cgi?id=22470 3888 remove unneeded URL argument from FrameLoaderClient::updateGlobalHistory 3889 3890 * WebCoreSupport/FrameLoaderClientQt.cpp: 3891 (WebCore::FrameLoaderClientQt::updateGlobalHistory): Get the URL from the 3892 DocumentLoader. 3893 * WebCoreSupport/FrameLoaderClientQt.h: Remove argument. 3894 38952008-11-24 Darin Fisher <darin@chromium.org> 3896 3897 Fix bustage. 3898 3899 https://bugs.webkit.org/show_bug.cgi?id=22448 3900 3901 * Api/qwebframe.cpp: 3902 (QWebFrame::evaluateJavaScript): 3903 39042008-11-20 Sam Weinig <sam@webkit.org> 3905 3906 Fix Qt build. 3907 3908 * Api/qwebframe.cpp: 3909 (QWebFrame::evaluateJavaScript): 3910 39112008-11-19 Darin Fisher <darin@chromium.org> 3912 3913 Fix bustage. 3914 3915 https://bugs.webkit.org/show_bug.cgi?id=22373 3916 Ports busted by addition of ScriptValue.{h,cpp} 3917 3918 * Api/qwebframe.cpp: 3919 (QWebFrame::evaluateJavaScript): 3920 39212008-11-19 Darin Fisher <darin@chromium.org> 3922 3923 Fix bustage. 3924 3925 https://bugs.webkit.org/show_bug.cgi?id=22373 3926 Ports busted by addition of ScriptValue.{h,cpp} 3927 3928 * Api/qwebframe.cpp: 3929 39302008-11-19 Simon Hausmann <hausmann@webkit.org> 3931 3932 Fix the Qt build, remove file referenced in the qrc file that does not 3933 exist and is not needed. 3934 3935 * tests/qwebframe/qwebframe.qrc: 3936 39372008-11-18 Ariya Hidayat <ariya.hidayat@trolltech.com> 3938 3939 Rubber-stamped by Tor Arne Vestbø. 3940 3941 Missing file in new unit test for QWebFrame (r38493). 3942 3943 * tests/qwebframe/qwebframe.pro: 3944 * tests/qwebframe/qwebframe.qrc: Added. 3945 39462008-11-18 Tor Arne Vestbø <tavestbo@trolltech.com> 3947 3948 Rubber-stamped by Simon Hausmann. 3949 3950 Make sure QWidget based plugins are invisible until placed into the layout 3951 3952 * WebCoreSupport/FrameLoaderClientQt.cpp: 3953 (WebCore::FrameLoaderClientQt::createPlugin): 3954 39552008-11-18 Tor Arne Vestbø <tavestbo@trolltech.com> 3956 3957 Reviewed by Simon Hausmann. 3958 3959 React properly to frame rect changes for QWidget based plugins 3960 3961 We now set the geometry of the QWidget in frameRectsChanged, 3962 intead of setFrameRect, which means we pick up the changes to 3963 the frame rect when scrolling. We also set a mask on the 3964 widget to keep it from painting over scrollbars and the like 3965 3966 * WebCoreSupport/FrameLoaderClientQt.cpp: 3967 (WebCore::): 3968 39692008-11-18 Ariya Hidayat <ariya.hidayat@trolltech.com> 3970 3971 Reviewed by Tor Arne Vestbø. 3972 3973 Fix crash when trying to pick a file using the file chooser. 3974 3975 * WebCoreSupport/ChromeClientQt.cpp: 3976 (WebCore::ChromeClientQt::runOpenPanel): 3977 39782008-11-18 Holger Hans Peter Freyther <zecke@selfish.org> 3979 3980 Reviewed by Simon Hausmann. 3981 3982 Attempt to share transitionToCommittedForNewPage of FrameLoaderClient with the different ports 3983 3984 After Hyatt's work on Widget and ScrollView there is little difference 3985 between the implementation of Qt, Gtk+ and Win. In fact any kind of 3986 difference is mostly a bug. Alp has fixed two of such errors for the Gtk+ 3987 port and the Qt port has at least one of them left. 3988 3989 The only difference between the implementations is in getting the the 3990 IntSize for the new FrameView, the background color to be applied and 3991 eventually some post processing. 3992 3993 Unify the implementations by providing a static helper function that 3994 takes a Frame, IntSize, color and transparency bit and calling it from 3995 the Gtk+, the Qt and the Windows port. 3996 3997 * Api/qwebframe.cpp: 3998 * Api/qwebframe_p.h: 3999 * Api/qwebpage.cpp: 4000 (QWebPage::setPalette): 4001 * WebCoreSupport/FrameLoaderClientQt.cpp: 4002 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 4003 40042008-11-17 Geoffrey Garen <ggaren@apple.com> 4005 4006 Not reviewed. 4007 4008 Try to fix qt build. 4009 4010 * Api/qwebframe.cpp: 4011 40122008-11-17 Ariya Hidayat <ariya.hidayat@trolltech.com> 4013 4014 Reviewed by Tor Arne Vestbø and Simon Hausmann. 4015 4016 Fix regression when loading resources from Qt resource system using qrc:/. 4017 4018 Added a unit test to catch future regression. 4019 4020 * Api/qwebpage.cpp: 4021 (QWebPagePrivate::QWebPagePrivate): 4022 * tests/qwebframe/image.png: Added. 4023 * tests/qwebframe/tst_qwebframe.cpp: 4024 40252008-11-16 Darin Adler <darin@apple.com> 4026 4027 - try to fix build 4028 4029 * Api/qwebhistory.cpp: Added include of "KURL.h". 4030 40312008-10-24 Yael Aharon <yael.aharon@nokia.com> 4032 4033 Reviewed by Simon Hausmann. 4034 4035 Added some basic unit tests for the public database API. 4036 4037 * tests/qwebpage/tst_qwebpage.cpp: 4038 (tst_QWebPage::initTestCase): 4039 (tst_QWebPage::cleanupTestCase): 4040 (tst_QWebPage::database): 4041 40422008-11-14 Simon Hausmann <hausmann@webkit.org> 4043 4044 Fix the Qt build, add missing export macros for the new classes. 4045 4046 * Api/qwebdatabase.h: 4047 * Api/qwebsecurityorigin.h: 4048 40492008-10-24 Yael Aharon <yael.aharon@nokia.com> 4050 4051 Reviewed by Simon Hausmann. 4052 4053 Adding public API to provide access to the security origin 4054 (QWebSecurityOrigin) and the databases used for the offline 4055 storage (QWebDatabase). 4056 4057 In addition QWebSettings gains configuration functions for 4058 enabling/disabling offline storage, web application cache 4059 and DOM local storage. 4060 4061 This commits lands the core feature(s), the unit tests and the 4062 documentation are going to follow in the comming days/weeks. 4063 4064 Note: The API is not frozen yet. 4065 4066 * Api/headers.pri: 4067 * Api/qwebdatabase.cpp: Added. 4068 (QWebDatabase::QWebDatabase): 4069 (QWebDatabase::operator=): 4070 (QWebDatabase::name): 4071 (QWebDatabase::displayName): 4072 (QWebDatabase::expectedSize): 4073 (QWebDatabase::size): 4074 (QWebDatabase::absoluteFilePath): 4075 (QWebDatabase::origin): 4076 (QWebDatabase::remove): 4077 (QWebDatabase::~QWebDatabase): 4078 * Api/qwebdatabase.h: Added. 4079 * Api/qwebdatabase_p.h: Added. 4080 * Api/qwebframe.cpp: 4081 (QWebFrame::securityOrigin): 4082 * Api/qwebframe.h: 4083 * Api/qwebpage.cpp: 4084 * Api/qwebpage.h: 4085 * Api/qwebsecurityorigin.cpp: Added. 4086 (QWebSecurityOrigin::QWebSecurityOrigin): 4087 (QWebSecurityOrigin::operator=): 4088 (QWebSecurityOrigin::scheme): 4089 (QWebSecurityOrigin::host): 4090 (QWebSecurityOrigin::port): 4091 (QWebSecurityOrigin::databaseUsage): 4092 (QWebSecurityOrigin::databaseQuota): 4093 (QWebSecurityOrigin::setDatabaseQuota): 4094 (QWebSecurityOrigin::~QWebSecurityOrigin): 4095 (QWebSecurityOrigin::allOrigins): 4096 (QWebSecurityOrigin::databases): 4097 * Api/qwebsecurityorigin.h: Added. 4098 * Api/qwebsecurityorigin_p.h: Added. 4099 (QWebSecurityOriginPrivate::QWebSecurityOriginPrivate): 4100 (QWebSecurityOriginPrivate::~QWebSecurityOriginPrivate): 4101 * Api/qwebsettings.cpp: 4102 (QWebSettingsPrivate::apply): 4103 (QWebSettings::QWebSettings): 4104 (QWebSettings::setOfflineStoragePath): 4105 (QWebSettings::offlineStoragePath): 4106 (QWebSettings::setOfflineStorageDefaultQuota): 4107 (QWebSettings::offlineStorageDefaultQuota): 4108 (QWebSettings::setOfflineWebApplicationCachePath): 4109 (QWebSettings::offlineWebApplicationCachePath): 4110 (QWebSettings::setLocalStorageDatabasePath): 4111 (QWebSettings::localStorageDatabasePath): 4112 * Api/qwebsettings.h: 4113 * WebCoreSupport/ChromeClientQt.cpp: 4114 (WebCore::ChromeClientQt::exceededDatabaseQuota): 4115 41162008-11-12 Ariya Hidayat <ariya.hidayat@trolltech.com> 4117 4118 Rubber-stamped by Tor Arne Vestbø. 4119 4120 Mention the color role change (r38331) in the API doc. 4121 4122 * Api/qwebpage.cpp: 4123 41242008-11-11 Ariya Hidayat <ariya.hidayat@trolltech.com> 4125 4126 Reviewed by Tor Arne Vestbø and Simon Hausmann. 4127 4128 Use QPalette::Base (instead of QPalette::Background) for the page 4129 background. 4130 4131 * Api/qwebframe.cpp: 4132 (QWebFramePrivate::updateBackground): 4133 * Api/qwebview.cpp: 4134 (QWebView::QWebView): 4135 41362008-11-11 Cameron Zwarich <zwarich@apple.com> 4137 4138 Reviewed by Geoff Garen. 4139 4140 Remove pointless dependencies on the now-deleted kjs directory. 4141 4142 * WebKit_pch.h: 4143 41442008-11-10 Ariya Hidayat <ariya.hidayat@trolltech.com> 4145 4146 Rubber-stamped by Simon Hausmann. 4147 4148 To fit Qt API, scroll offset is a QPoint instead of a QSize. 4149 4150 * Api/qwebframe.cpp: 4151 (QWebFrame::scrollOffset): 4152 (QWebFrame::setScrollOffset): 4153 * Api/qwebframe.h: 4154 41552008-11-10 David Boddie <dboddie@trolltech.com> 4156 4157 Reviewed by Simon Hausmann. 4158 4159 Doc: Fixed qdoc warnings by supplying function documentation. 4160 4161 * Api/qwebframe.cpp: 4162 * Api/qwebview.cpp: 4163 41642008-11-10 Tobias Koenig <tobias.koenig@trolltech.com> 4165 4166 Reviewed by Simon Hausmann. 4167 4168 Removed old and stale prf file that breaks the MingW build. 4169 4170 * Api/qtwebkit.prf: Removed. 4171 41722008-11-10 Kavindra Palaraja <kdpalara@trolltech.com> 4173 4174 Reviewed by Simon Hausmann. 4175 4176 Clarify QWebFrame/View::setHTML docs with regards to relative URLs 4177 4178 * Api/qwebframe.cpp: 4179 * Api/qwebview.cpp: 4180 41812008-11-10 Joerg Bornemann <joerg.bornemann@nokia.com> 4182 4183 Reviewed by Simon Hausmann 4184 4185 Don't define _CRT_RAND_S on Windows CE in the precompiled 4186 header, to fix the CE build. 4187 4188 * WebKit_pch.h: 4189 41902008-11-07 Ariya Hidayat <ariya.hidayat@trolltech.com> 4191 4192 Reviewed by Tor Arne Vestbø and Simon Hausmann. 4193 4194 Added an option to allow printing the background color and images. 4195 Mostly reworked from a patch by Holger. 4196 This setting is enabled by default. 4197 4198 * Api/qwebsettings.cpp: 4199 (QWebSettingsPrivate::apply): 4200 (QWebSettings::QWebSettings): 4201 * Api/qwebsettings.h: 4202 42032008-11-06 Simon Hausmann <hausmann@webkit.org> 4204 4205 Reviewed by Tor Arne Vestbø. 4206 4207 Added a unit tests for QWebFrame::metaData(). 4208 4209 * tests/qwebframe/tst_qwebframe.cpp: 4210 42112008-11-06 Simon Hausmann <hausmann@webkit.org> 4212 4213 Reviewed by Tor Arne Vestbø. 4214 4215 Improved documentation for QWebFrame::metaData(). 4216 4217 * Api/qwebframe.cpp: 4218 42192008-11-05 Sriram Yadavalli <sriram.yadavalli@nokia.com> 4220 4221 Reviewed by Simon Hausmann. 4222 4223 Added QWebFrame::metaData() to provide a way in the public API 4224 to retrieve the values of the <meta> tags. 4225 4226 See https://bugs.webkit.org/show_bug.cgi?id=22071 4227 4228 * Api/qwebframe.cpp: 4229 (QWebFrame::metaData): 4230 * Api/qwebframe.h: 4231 42322008-10-24 Yael Aharon <yael.aharon@nokia.com> 4233 4234 Reviewed by Simon Hausmann. 4235 4236 Add userData() and setUserData() to QWebHistoryItem. 4237 Add setMaximumItemCount() and maximumItemCount() to QWebHistory. 4238 Add currentItemIndex() to QWebHistory. 4239 4240 See also https://bugs.webkit.org/show_bug.cgi?id=21864 4241 4242 Small cleanup by Simon (docs and forward declaration of QWebHistoryItem in qwebframe.h) 4243 4244 * Api/qwebframe.h: 4245 * Api/qwebhistory.cpp: 4246 (QWebHistoryItem::userData): 4247 (QWebHistoryItem::setUserData): 4248 (QWebHistory::currentItemIndex): 4249 (QWebHistory::maximumItemCount): 4250 (QWebHistory::setMaximumItemCount): 4251 * Api/qwebhistory.h: 4252 * WebCoreSupport/FrameLoaderClientQt.cpp: 4253 (WebCore::FrameLoaderClientQt::saveViewStateToItem): 4254 * tests/qwebpage/tst_qwebpage.cpp: 4255 (tst_QWebPage::modified): 4256 42572008-11-03 Cameron Zwarich <zwarich@apple.com> 4258 4259 Rubber-stamped by Maciej Stachowiak. 4260 4261 Move more files into the runtime subdirectory of JavaScriptCore. 4262 4263 * Api/qwebpage.cpp: 4264 42652008-10-25 Jade Han <jade.han@nokia.com> 4266 4267 Reviewed by Anders. 4268 4269 Enable custom properties for Qt runtime objects in QtWebKit 4270 4271 https://bugs.webkit.org/show_bug.cgi?id=21813 4272 4273 * tests/qwebframe/tst_qwebframe.cpp: 4274 42752008-10-24 Sam Weinig <sam@webkit.org> 4276 4277 Another Qt build fix. 4278 4279 * WebCoreSupport/ChromeClientQt.cpp: 4280 42812008-10-24 Sam Weinig <sam@webkit.org> 4282 4283 Reviewed by Dan Bernstein. 4284 4285 Fix https://bugs.webkit.org/show_bug.cgi?id=21759 4286 Layering violation: FileChooser should not depend on Document/Frame/Page 4287 4288 * WebCoreSupport/ChromeClientQt.cpp: 4289 (WebCore::ChromeClientQt::runOpenPanel): 4290 * WebCoreSupport/ChromeClientQt.h: 4291 42922008-10-24 Timothy Hatcher <timothy@apple.com> 4293 4294 Stub out new InspectorClient methods. 4295 4296 https://bugs.webkit.org/show_bug.cgi?id=21856 4297 4298 Reviewed by Darin Adler. 4299 4300 * WebCoreSupport/InspectorClientQt.cpp: 4301 (WebCore::InspectorClientQt::populateSetting): Not implemented. 4302 (WebCore::InspectorClientQt::storeSetting): Ditto. 4303 (WebCore::InspectorClientQt::removeSetting): Ditto. 4304 * WebCoreSupport/InspectorClientQt.h: 4305 43062008-10-24 Darin Adler <darin@apple.com> 4307 4308 - finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732 4309 4310 * Api/qwebframe.cpp: 4311 (QWebFrame::evaluateJavaScript): Use JSValue* instead of JSValuePtr. 4312 43132008-10-23 Yael Aharon <yael.aharon@nokia.com> 4314 4315 Reviewed by Simon Hausmann. 4316 4317 Invalid history entries could cause a crash in QT Webkit 4318 4319 * Api/qwebhistory.cpp: 4320 (QWebHistoryItem::originalUrl): 4321 (QWebHistoryItem::url): 4322 (QWebHistoryItem::title): 4323 (QWebHistoryItem::lastVisited): 4324 (QWebHistoryItem::icon): 4325 (QWebHistoryItem::isValid): 4326 * Api/qwebhistory.h: 4327 * Api/qwebhistory_p.h: 4328 (QWebHistoryItemPrivate::QWebHistoryItemPrivate): 4329 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate): 4330 * tests/qwebpage/tst_qwebpage.cpp: 4331 (tst_QWebPage::modified): 4332 43332008-10-22 Yael Aharon <yael.aharon@nokia.com> 4334 4335 Reviewed by Simon Hausmann. 4336 4337 emit scrollRequested unconditionally when scrolling. 4338 4339 See https://bugs.webkit.org/show_bug.cgi?id=21790 4340 4341 * WebCoreSupport/ChromeClientQt.cpp: 4342 (WebCore::ChromeClientQt::scroll): 4343 43442008-10-23 Simon Hausmann <hausmann@webkit.org> 4345 4346 Reviewed by Tor Arne. 4347 4348 Fix handling of mouse events when embedding QWebView into the 4349 QGraphicsView. 4350 4351 QWebPage accepts or ignores events to indicate whether the web page 4352 handled the event. However for QWebView to behave like a good widget 4353 it should always accept the mouse events to indicate that it handled 4354 them and that they should not be subject to event propagation. 4355 4356 The graphics view relies on acceptance of the initial mouse click to 4357 make the embedded widget the focus item. 4358 4359 * Api/qwebview.cpp: 4360 (QWebView::mouseMoveEvent): 4361 (QWebView::mousePressEvent): 4362 (QWebView::mouseDoubleClickEvent): 4363 (QWebView::mouseReleaseEvent): 4364 (QWebView::contextMenuEvent): 4365 (QWebView::wheelEvent): 4366 43672008-10-22 Ariya Hidayat <ariya.hidayat@trolltech.com> 4368 4369 Reviewed by Simon Hausmann. 4370 4371 For public API, use the term boundingRect instead of boundingBox. 4372 4373 * Api/qwebframe.cpp: 4374 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 4375 (QWebHitTestResult::boundingRect): 4376 * Api/qwebframe.h: 4377 * Api/qwebframe_p.h: 4378 43792008-06-03 Siraj Razick <siraj.razick@collabora.co.uk> 4380 4381 Reviewed by Simon Hausmann. 4382 4383 https://bugs.webkit.org/show_bug.cgi?id=19374 4384 4385 Expose boundingBox value in QWebHitTestResult 4386 4387 Add API function QRect QWebHitResult::boundingBox() const 4388 4389 API docs by Ariya. 4390 4391 * Api/qwebframe.cpp: 4392 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 4393 (QWebHitTestResult::boundingBox): 4394 * Api/qwebframe.h: 4395 * Api/qwebframe_p.h: 4396 43972008-10-21 Yael Aharon <yael.aharon@nokia.com> 4398 4399 Reviewed by Simon Hausmann. 4400 4401 emit repaintRequested unconditionally when repaint is requested. 4402 4403 * WebCoreSupport/ChromeClientQt.cpp: 4404 (WebCore::ChromeClientQt::repaint): 4405 44062008-10-20 Sam Weinig <sam@webkit.org> 4407 4408 Reviewed by Anders Carlsson. 4409 4410 Remove FrameLoaderClient::detachedFromParent4. It is no longer used by any port. 4411 4412 * WebCoreSupport/FrameLoaderClientQt.cpp: 4413 * WebCoreSupport/FrameLoaderClientQt.h: 4414 44152008-10-19 Darin Adler <darin@apple.com> 4416 4417 Reviewed by Oliver Hunt. 4418 4419 - next step of https://bugs.webkit.org/show_bug.cgi?id=21732 4420 improve performance by eliminating JSValue as a base class for JSCell 4421 4422 Remove most uses of JSValue, which will be removed in a future patch. 4423 4424 * Api/qwebframe.cpp: 4425 (QWebFrame::evaluateJavaScript): Use JSValuePtr. 4426 44272008-10-14 Tor Arne Vestbø <tavestbo@trolltech.com> 4428 4429 Reviewed by Simon. 4430 4431 Clip painter to dirty rect before passing on to WebKit 4432 4433 This was previously done in ScrollViewQt, but after the 4434 refactoring of ScrollView we need to do it in QWebFrame 4435 instead, similar to Safari/Win. 4436 4437 * Api/qwebframe.cpp: 4438 (QWebFrame::render): 4439 44402008-10-08 Matthias Ettrich <ettrich@nokia.com> 4441 4442 Reviewed by Simon. 4443 4444 Make QWebView ignore focus changes with PopupFocusReason to avoid 4445 massive updates when menus open and close. 4446 4447 * Api/qwebview.cpp: 4448 (QWebView::focusInEvent): 4449 (QWebView::focusOutEvent): 4450 44512008-10-08 Kavindra Palaraja <kdpalara@trolltech.com> 4452 4453 Reviewed by Simon. 4454 4455 Fixed a qdoc warning and adjusted some spacing 4456 4457 * Api/qwebframe.cpp: 4458 44592008-10-08 Rhys Weatherley <rhys.weatherley@nokia.com> 4460 4461 Reviewed by Simon. 4462 4463 Compile for platforms without context menus. 4464 4465 * Api/qwebpage.cpp: 4466 (QWebPage::createStandardContextMenu): 4467 44682008-10-08 André Pönitz <apoenitz@trolltech.com> 4469 4470 Reviewed by Simon. 4471 4472 Fix compilation with Qt namespaces. 4473 4474 * WebCoreSupport/EditCommandQt.h: 4475 44762008-10-07 Tor Arne Vestbø <tavestbo@trolltech.com> 4477 4478 QtWebKit build fix after changes to FrameLoaderClient.h in r37371 4479 4480 * WebCoreSupport/FrameLoaderClientQt.h: 4481 44822008-10-07 Holger Hans Peter Freyther <zecke@selfish.org> 4483 4484 [qt] Build fix after Scrollbar.h and Widget.h changes. 4485 4486 * Api/qwebpage.cpp: 4487 (QWebPage::swallowContextMenuEvent): 4488 44892008-10-06 David Hyatt <hyatt@apple.com> 4490 4491 Enable viewless Mac WebKit to paint some basic pages. 4492 4493 Reviewed by Sam Weinig 4494 4495 * WebCoreSupport/FrameLoaderClientQt.cpp: 4496 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 4497 44982008-10-03 David Hyatt <hyatt@apple.com> 4499 4500 Fix scroll method on Qt. The delta was supposed to use .width()/.height() and not .x()/.y(). 4501 4502 Fix the QtPluginWidget to do an invalidate properly. 4503 4504 Reviewed by ggaren 4505 4506 * WebCoreSupport/ChromeClientQt.cpp: 4507 (WebCore::ChromeClientQt::scroll): 4508 * WebCoreSupport/FrameLoaderClientQt.cpp: 4509 (WebCore::): 4510 45112008-10-03 Ariya Hidayat <ariya.hidayat@trolltech.com> 4512 4513 Build fix. Remove addToDirtyRegion from the header file. 4514 4515 * WebCoreSupport/ChromeClientQt.h: 4516 45172008-10-03 Ariya Hidayat <ariya.hidayat@trolltech.com> 4518 4519 Build fix. 4520 4521 * WebCoreSupport/ChromeClientQt.cpp: 4522 (WebCore::ChromeClientQt::scroll): 4523 * WebCoreSupport/FrameLoaderClientQt.cpp: 4524 (WebCore::): 4525 (WebCore::FrameLoaderClientQt::createPlugin): 4526 45272008-10-03 David Hyatt <hyatt@apple.com> 4528 4529 Remove addToDirtyRegion. 4530 4531 Reviewed by Oliver Hunt 4532 4533 * WebCoreSupport/ChromeClientQt.cpp: 4534 45352008-10-02 David Hyatt <hyatt@apple.com> 4536 4537 https://bugs.webkit.org/show_bug.cgi?id=21314 4538 4539 Make scrollBackingStore cross-platform. 4540 4541 Reviewed by Sam Weinig 4542 4543 * WebCoreSupport/ChromeClientQt.cpp: 4544 (WebCore::ChromeClientQt::repaint): 4545 (WebCore::ChromeClientQt::scroll): 4546 * WebCoreSupport/ChromeClientQt.h: 4547 45482008-10-01 David Hyatt <hyatt@apple.com> 4549 4550 https://bugs.webkit.org/show_bug.cgi?id=21282 4551 4552 Make contentsToScreen/screenToContents cross-platform. Only implemented by Mac/Win right now. 4553 4554 Reviewed by Adam Roben 4555 4556 * WebCoreSupport/ChromeClientQt.cpp: 4557 (WebCore::ChromeClientQt::windowToScreen): 4558 (WebCore::ChromeClientQt::screenToWindow): 4559 * WebCoreSupport/ChromeClientQt.h: 4560 45612008-09-30 Dave Hyatt <hyatt@apple.com> 4562 4563 http://bugs.webkit.org/show_bug.cgi?id=21250 4564 4565 Rename updateContents to repaintContentRectangle and make it cross-platform by always sending 4566 repaints up through the ChromeClient. 4567 4568 Reviewed by Darin Adler 4569 4570 * WebCoreSupport/ChromeClientQt.cpp: 4571 (WebCore::ChromeClientQt::repaint): 4572 * WebCoreSupport/ChromeClientQt.h: 4573 45742008-09-29 Gunnar Sletta <gunnar@trolltech.com> 4575 4576 Reviewed by Simon 4577 4578 Compile on windows using MSVC 2005 4579 4580 For the PCH We need to define _WIN32_WINNT and include windows.h early on, 4581 otherwise we'll miss several functions. 4582 4583 * WebKit_pch.h: 4584 45852008-09-29 Thiago Macieira <thiago.macieira@nokia.com> 4586 4587 Reviewed by Simon. 4588 4589 Changed copyright from Trolltech ASA to Nokia. 4590 4591 Nokia acquired Trolltech ASA, assets were transferred on September 26th 2008. 4592 4593 4594 * Api/qwebframe.cpp: 4595 * Api/qwebframe.h: 4596 * Api/qwebframe_p.h: 4597 * Api/qwebhistory.cpp: 4598 * Api/qwebhistory.h: 4599 * Api/qwebhistory_p.h: 4600 * Api/qwebkitglobal.h: 4601 * Api/qwebnetworkinterface.cpp: 4602 * Api/qwebnetworkinterface.h: 4603 * Api/qwebnetworkinterface_p.h: 4604 * Api/qwebpage.cpp: 4605 * Api/qwebpage.h: 4606 * Api/qwebpage_p.h: 4607 * Api/qwebpluginfactory.cpp: 4608 * Api/qwebpluginfactory.h: 4609 * Api/qwebsettings.cpp: 4610 * Api/qwebsettings.h: 4611 * Api/qwebview.cpp: 4612 * Api/qwebview.h: 4613 * Plugins/ICOHandler.cpp: 4614 * QtLauncher/main.cpp: 4615 * WebCoreSupport/FrameLoaderClientQt.cpp: 4616 * WebCoreSupport/FrameLoaderClientQt.h: 4617 * WebCoreSupport/InspectorClientQt.cpp: 4618 * WebCoreSupport/InspectorClientQt.h: 4619 * tests/qwebframe/tst_qwebframe.cpp: 4620 * tests/qwebpage/tst_qwebpage.cpp: 4621 46222008-09-28 Simon Hausmann <hausmann@webkit.org> 4623 4624 Reviewed by David Hyatt. 4625 4626 Ensure the mainThreadIdentifier is set as well as other bits and pieces of 4627 the threading machinery, by calling JSC::initializeThreading(). 4628 4629 * Api/qwebpage.cpp: 4630 (QWebPagePrivate::QWebPagePrivate): 4631 46322008-09-27 David Hyatt <hyatt@apple.com> 4633 4634 Forgot to land renaming changes in WebKit. 4635 4636 * Api/qwebframe.cpp: 4637 (QWebFrame::render): 4638 (QWebFrame::pos): 4639 (QWebFrame::geometry): 4640 * Api/qwebpage.cpp: 4641 (QWebPage::viewportSize): 4642 (QWebPage::setViewportSize): 4643 46442008-09-27 Simon Hausmann <hausmann@webkit.org> 4645 4646 Qt build fix - use frameRect instead of frameGeometry, adapt 4647 to renamed scrollbar frameview methods. 4648 4649 * Api/qwebpage.cpp: 4650 (QWebPage::viewportSize): 4651 (QWebPage::setViewportSize): 4652 * WebCoreSupport/FrameLoaderClientQt.cpp: 4653 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 4654 46552008-09-27 Jan Michael Alonzo <jmalonzo@webkit.org> 4656 4657 Qt build fix - rename frameGeometry to frameRect per r36995. 4658 4659 * Api/qwebframe.cpp: 4660 (QWebFrame::render): 4661 (QWebFrame::pos): 4662 (QWebFrame::geometry): 4663 46642008-09-26 Ariya Hidayat <ahidayat@trolltech.com> 4665 4666 Reviewed by Simon. 4667 4668 Fixed potential crash when deleting QWebView instance. 4669 4670 When deleting the view, sets the page's view to NULL. 4671 The reason is that the page is smart and its destructor might lead to a call 4672 that operates on a view (which is in the process of being deleted). 4673 4674 * Api/qwebpage.h: 4675 * Api/qwebview.cpp: 4676 (QWebView::~QWebView): 4677 46782008-09-26 Ariya Hidayat <ahidayat@trolltech.com> 4679 4680 Reviewed by Simon. 4681 4682 Fixed using modifiers to type special symbols (e.g '@','$') does not work on Mac OS X. 4683 4684 * WebCoreSupport/EditorClientQt.cpp: 4685 (WebCore::EditorClientQt::handleKeyboardEvent): 4686 46872008-09-26 Håvard Wall <hwall@trolltech.com> 4688 4689 Reviewed by Simon. 4690 4691 Fix compilation with QT_NO_MESSAGEBOX 4692 4693 * Api/qwebpage.cpp: 4694 (QWebPage::javaScriptAlert): 4695 (QWebPage::javaScriptConfirm): 4696 46972008-09-23 Tor Arne Vestbø <tavestbo@trolltech.com> 4698 4699 Reviewed by Simon. 4700 4701 Remove deprecated JS Qt bindings object call/construct code and fix autotests 4702 4703 * tests/qwebframe/tst_qwebframe.cpp: 4704 47052008-09-16 Alp Toker <alp@nuanti.com> 4706 4707 Prospective Qt build fix. ScrollBar.h -> Scrollbar.h 4708 4709 * Api/qwebframe.cpp: 4710 * Api/qwebpage.cpp: 4711 47122008-09-15 Eli Fidler <eli@staikos.net> 4713 4714 Reviewed by Simon. 4715 4716 Yahoo assumes non-RFC compliant HTTP redirect behaviour. QtWebKit is (more) 4717 compliant, so broken. I think the Yahoo-assumed behaviour is real-world standard. 4718 4719 Basically, Yahoo's login procedure for flickr looks like this: 4720 1. load flickr.com, click "sign in" 4721 2. this is a Yahoo page with a form 4722 (https://login.yahoo.com/config/login?.src=flickr...) 4723 when you click the "Sign In" button, the form submits to a yahoo.com POST URL 4724 3. The POST returns with a 302 (redirect) to another yahoo.com URL 4725 4. If you POST the redirected Location:, it all breaks. Yahoo assumes you will 4726 convert the method to GET, which works fine but is definitely not 4727 RFC-compliant. It would be compliant for 303, and the RFC says that many 4728 implementations treat 302 and 303 the same way (for HTTP/1.0 compliance), but 4729 converting to GET is explicitly wrong for 302. 4730 4731 * Api/qwebnetworkinterface.cpp: 4732 (QWebNetworkManager::started): 4733 47342008-09-15 Tor Arne Vestbø <tavestbo@trolltech.com> 4735 4736 Reviewed by Simon. 4737 4738 Make QtInstance::create() private and fix caching 4739 4740 * Api/qwebframe.cpp: 4741 (QWebFrame::addToJavaScriptWindowObject): 4742 47432008-09-11 Tor Arne Vestbø <tavestbo@trolltech.com> 4744 4745 Rubber-stamped by Simon. 4746 4747 Prevent leaking pages and frames in QWebKit autotest 4748 4749 * tests/qwebpage/tst_qwebpage.cpp: 4750 47512008-09-11 Tor Arne Vestbø <tavestbo@trolltech.com> 4752 4753 Reviewed by Simon 4754 4755 Fix QtWebKit autotest 4756 4757 * tests/qwebpage/tst_qwebpage.cpp: 4758 (tst_QWebPage::userStyleSheet): 4759 47602008-09-09 Joerg Bornemann <joerg.bornemann@trolltech.com> 4761 4762 Reviewed by Simon. 4763 4764 Added missing WebCore prefix to ResourceRequest 4765 4766 This is needed for Windows/CE compilation where there is a conflict 4767 with a global ResourceRequest type. Elsewhere in this file ResourceRequest 4768 is also prefixed with WebCore:: 4769 4770 * Api/qwebframe.cpp: 4771 (QWebFrame::QWebFrame): 4772 47732008-09-07 Cameron Zwarich <cwzwarich@uwaterloo.ca> 4774 4775 Reviewed by Maciej Stachowiak. 4776 4777 Bug 20704: Replace the KJS namespace 4778 <https://bugs.webkit.org/show_bug.cgi?id=20704> 4779 4780 Rename the KJS namespace to JSC. 4781 4782 * Api/qwebframe.cpp: 4783 (QWebFrame::addToJavaScriptWindowObject): 4784 (QWebFrame::evaluateJavaScript): 4785 47862008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com> 4787 4788 Reviewed by Simon 4789 4790 Fix the QtWebKit build to match changes in r36016 4791 4792 * Api/qwebframe.cpp: 4793 (QWebFrame::addToJavaScriptWindowObject): 4794 47952008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com> 4796 4797 Reviewed by Simon. 4798 4799 Re-enable support for user stylesheets in QtWebKit 4800 4801 QtWebKit now follows the FRAME_LOADS_USER_STYLESHEET 4802 code path, which allows us to keep API support for 4803 loading user style sheets from remote URLs. 4804 4805 As part of the change UserStyleSheetLoader.cpp/h was 4806 moved from WebCore/loader/mac to WebCore/loader. 4807 4808 * tests/qwebpage/tst_qwebpage.cpp: 4809 (tst_QWebPage::userStyleSheet): 4810 48112008-08-29 Holger Hans Peter Freyther <zecke@selfish.org> 4812 4813 Reviewed by Eric Seidel. 4814 4815 [janitor/qt] Start replacing port specific getters with the generic native getter 4816 To get the native presentation of an image we currently have platform 4817 specific #ifdef's and a generic getter using NativeImagePtr. This patch 4818 extends this to the ImageBuffer and updates the Qt platform to get rid 4819 of the special #ifdefs. 4820 4821 https://bugs.webkit.org/attachment.cgi?id=22861 4822 4823 * Api/qwebframe.cpp: 4824 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 4825 * Api/qwebhistory.cpp: 4826 * Api/qwebsettings.cpp: 4827 (QWebSettings::iconForUrl): 4828 48292008-08-29 Holger Hans Peter Freyther <zecke@selfish.org> 4830 4831 Reviewed by Simon. 4832 4833 Catch up with the introduction of PageGroup in r30840. Enable tracking of 4834 visited links, enable this in QWebPage next to the other WebCore init call. 4835 Calling this more than once is no issue and a cheap operation, we also do not 4836 reset the state. When clearing the history of a page, clear the link state. 4837 4838 * Api/qwebhistory.cpp: 4839 (QWebHistory::clear): 4840 * Api/qwebhistoryinterface.cpp: 4841 (QWebHistoryInterface::setDefaultInterface): 4842 * Api/qwebpage.cpp: 4843 (QWebPagePrivate::QWebPagePrivate): 4844 48452008-08-29 Holger Hans Peter Freyther <zecke@selfish.org> 4846 4847 Reviewed by Simon. 4848 4849 Revert revision 34348 which removed the global historyContains() function. 4850 4851 This function was needed to implement the public API of QWebHistoryInterface 4852 and will be used again in the near future. 4853 4854 * Api/qwebhistoryinterface.cpp: 4855 (WebCore::historyContains): 4856 48572008-08-27 Erik Bunce <elbunce@thehive.com> 4858 4859 Reviewed by Eric Seidel. 4860 4861 https://bugs.webkit.org/show_bug.cgi?id=20223 4862 4863 Add QWebPage::contentsChanged() signal to notify of content changes. 4864 4865 * Api/qwebpage.cpp: 4866 * Api/qwebpage.h: 4867 * WebCoreSupport/EditorClientQt.cpp: 4868 (WebCore::EditorClientQt::respondToChangedContents): 4869 48702008-08-27 Brady Eidson <beidson@apple.com> 4871 4872 Reviewed by Anders 4873 4874 <rdar://problem/6134133> - Crash when loading large movie as a standalone document 4875 4876 * WebCoreSupport/FrameLoaderClientQt.cpp: 4877 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError): Stubbed for now 4878 * WebCoreSupport/FrameLoaderClientQt.h: 4879 48802008-08-25 Holger Hans Peter Freyther <zecke@selfish.org> 4881 4882 Reviewed by Simon. 4883 4884 [inspector] Emit signals from attachWindow and detachWindow in the Qt platform 4885 Allow the user of the API to honor the attachWindow and detachWindow 4886 requests and attach the QWebPage/QWebView wherever it is wanted. This needs 4887 some more API in QWebPage to be properly exposed. 4888 4889 * WebCoreSupport/InspectorClientQt.cpp: 4890 (WebCore::InspectorClientQt::createPage): 4891 (WebCore::InspectorClientQt::attachWindow): 4892 (WebCore::InspectorClientQt::detachWindow): 4893 * WebCoreSupport/InspectorClientQt.h: 4894 48952008-08-19 Alexey Proskuryakov <ap@webkit.org> 4896 4897 Reviewed by Geoff Garen. 4898 4899 Bring back shared JSGlobalData and implicit locking, because too many clients rely on it. 4900 4901 * Api/qwebframe.cpp: 4902 (QWebFrame::addToJavaScriptWindowObject): 4903 49042008-08-15 Håvard Wall <hwall@trolltech.com> 4905 4906 Reviewed by Simon. 4907 4908 Fixes: compile with QT_NO_UNDOCOMMAND/STACK 4909 4910 4911 * Api/qwebpage.cpp: 4912 (SetCursorEvent::SetCursorEvent): 4913 (QWebPagePrivate::createContextMenu): 4914 (QWebPage::action): 4915 * Api/qwebpage.h: 4916 * Api/qwebpage_p.h: 4917 * WebCoreSupport/EditCommandQt.cpp: 4918 (EditCommandQt::EditCommandQt): 4919 * WebCoreSupport/EditCommandQt.h: 4920 * WebCoreSupport/EditorClientQt.cpp: 4921 (dumpPath): 4922 (WebCore::EditorClientQt::shouldInsertText): 4923 (WebCore::EditorClientQt::shouldChangeSelectedRange): 4924 (WebCore::EditorClientQt::isEditable): 4925 (WebCore::EditorClientQt::registerCommandForUndo): 4926 (WebCore::EditorClientQt::clearUndoRedoOperations): 4927 (WebCore::EditorClientQt::canUndo): 4928 (WebCore::EditorClientQt::canRedo): 4929 (WebCore::EditorClientQt::undo): 4930 (WebCore::EditorClientQt::redo): 4931 (WebCore::EditorClientQt::shouldInsertNode): 4932 49332008-08-15 Håvard Wall <hwall@trolltech.com> 4934 4935 Reviewed by Simon. 4936 4937 Fixes: compile with QT_NO_STYLE_STYLESHEET 4938 4939 4940 * WebCoreSupport/FrameLoaderClientQt.cpp: 4941 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): 4942 (WebCore::FrameLoaderClientQt::createPlugin): 4943 49442008-08-15 Håvard Wall <hwall@trolltech.com> 4945 4946 Reviewed by Simon. 4947 4948 Fixes: compile with QT_NO_SHORTCUT 4949 4950 4951 * Api/qwebpage.cpp: 4952 (QWebPagePrivate::mouseMoveEvent): 4953 (QWebPagePrivate::mouseReleaseEvent): 4954 (QWebPagePrivate::dragMoveEvent): 4955 49562008-08-15 Håvard Wall <hwall@trolltech.com> 4957 4958 Reviewed by Simon. 4959 4960 Fixes: compile with QT_NO_CONTEXTMENU 4961 4962 4963 * Api/qwebpage.cpp: 4964 (editorCommandForWebActions): 4965 (QWebPagePrivate::QWebPagePrivate): 4966 (QWebPagePrivate::createMainFrame): 4967 (QWebPagePrivate::updateEditorActions): 4968 (QWebPage::setEditable): 4969 * Api/qwebpage.h: 4970 * Api/qwebpage_p.h: 4971 * Api/qwebview.cpp: 4972 * Api/qwebview.h: 4973 49742008-08-15 Håvard Wall <hwall@trolltech.com> 4975 4976 Reviewed by Simon. 4977 4978 Fixes: compile with QT_NO_WHEELEVENT 4979 4980 4981 * Api/qwebpage.cpp: 4982 (QWebPagePrivate::updateEditorActions): 4983 (QWebPage::event): 4984 * Api/qwebpage_p.h: 4985 * Api/qwebview.cpp: 4986 * Api/qwebview.h: 4987 49882008-08-15 Håvard Wall <hwall@trolltech.com> 4989 4990 Reviewed by Simon. 4991 4992 Fixes: compile with QT_NO_PRINTER 4993 4994 4995 * Api/qwebframe.cpp: 4996 (QWebFrame::print): 4997 * Api/qwebframe.h: 4998 49992008-08-15 David Boddie <dboddie@trolltech.com> 5000 5001 Reviewed by Simon. 5002 5003 Doc: Added documentation for default property values. 5004 5005 5006 * Api/qwebpage.cpp: 5007 (QWebPagePrivate::keyPressEvent): 5008 (QWebPage::triggerAction): 5009 (QWebPage::acceptNavigationRequest): 5010 (QWebPage::action): 5011 * Api/qwebview.cpp: 5012 50132008-08-15 David Boddie <dboddie@trolltech.com> 5014 5015 Reviewed by Simon. 5016 5017 Doc: Renamed snippets that appear in the code directory. 5018 5019 5020 * Api/qwebview.cpp: 5021 (QWebView::event): 5022 (QWebView::print): 5023 50242008-08-12 Timothy Hatcher <timothy@apple.com> 5025 5026 Add a stub for InspectorClient::setAttachedWindowHeight. 5027 5028 * WebCoreSupport/InspectorClientQt.cpp: 5029 (WebCore::InspectorClientQt::setAttachedWindowHeight): 5030 Call notImplemented(). 5031 * WebCoreSupport/InspectorClientQt.h: 5032 50332008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com> 5034 5035 Reviewed by Simon. 5036 5037 Use full-page zoom in QtLauncher. 5038 5039 * QtLauncher/main.cpp: 5040 (MainWindow::zoomIn): 5041 (MainWindow::zoomOut): 5042 (MainWindow::resetZoom): 5043 (MainWindow::setupUI): 5044 50452008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com> 5046 5047 Reviewed by Simon. 5048 5049 Fix linking with QtWebKit. 5050 5051 * Api/qwebframe.h: remove non-existing function/property. 5052 50532008-08-13 Simon Hausmann <hausmann@webkit.org> 5054 5055 Reviewed by Holger. 5056 5057 Based on patch by Siraj razick <siraj.razick@collabora.co.uk> 5058 5059 https://bugs.webkit.org/show_bug.cgi?id=19125 5060 5061 Added functions to get/set the zoom factor. 5062 5063 Added a QWebFrame/QWebView::zoomFactor as well as a boolean 5064 ZoomTextOnly attribute in QWebSettings. 5065 5066 * Api/qwebframe.cpp: 5067 (QWebFrame::setZoomFactor): 5068 (QWebFrame::zoomFactor): 5069 * Api/qwebframe.h: 5070 * Api/qwebsettings.cpp: 5071 (QWebSettingsPrivate::apply): 5072 (QWebSettings::QWebSettings): 5073 * Api/qwebsettings.h: 5074 * Api/qwebview.cpp: 5075 (QWebView::setZoomFactor): 5076 (QWebView::zoomFactor): 5077 * Api/qwebview.h: 5078 50792008-08-13 Simon Hausmann <hausmann@webkit.org> 5080 5081 Reviewed by Lars. 5082 5083 Fix QWebFrame::setHtml() not setting the new contents immediately. 5084 5085 Added a setter to the DocumentLoader to toggle the deferred loading of the main 5086 resource when it comes from substitute data. 5087 5088 Disable deferred loading of the main resource when we have valid substitute data, 5089 as used by QWebFrame::setHtml. 5090 5091 * WebCoreSupport/FrameLoaderClientQt.cpp: 5092 (WebCore::FrameLoaderClientQt::download): 5093 50942008-08-13 Simon Hausmann <hausmann@webkit.org> 5095 5096 Rubber-stamped by Holger. 5097 5098 Fix QWebPage::isModified(). 5099 5100 isModified() would return true after loading a new page or it would continue to 5101 return true after undoing modifications. Fix this by eliminating the 5102 QWebPagePrivate::modified variable and use the undoStack's canUndo() property 5103 instead. 5104 5105 https://bugs.webkit.org/show_bug.cgi?id=19252 5106 5107 * Api/qwebpage.cpp: 5108 (QWebPage::action): 5109 * Api/qwebpage_p.h: 5110 * WebCoreSupport/EditorClientQt.cpp: 5111 (WebCore::EditorClientQt::respondToChangedContents): 5112 51132008-08-13 David Boddie <dboddie@trolltech.com> 5114 5115 Reviewed by Simon. 5116 5117 Updated docs with the signal emission behavior of urlChanged() 5118 5119 * Api/qwebframe.cpp: 5120 51212008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com> 5122 5123 Reviewed by Simon. 5124 5125 Fix Ctrl+Y to work again when editing text in contextEditable mode. 5126 5127 This fixes regression in LayoutTests/editing/pasteboard/emacs-cntl-y-001.html 5128 5129 * WebCoreSupport/EditorClientQt.cpp: 5130 (WebCore::EditorClientQt::handleKeyboardEvent): 5131 51322008-08-13 Thiago Macieira <tjmaciei@trolltech.com> 5133 5134 Reviewed by Simon. 5135 5136 Fix encoding of [ and ] in the host part of the URL 5137 5138 Until QUrl is fixed (making QUrl's tolerant parser more tolerant), we have to 5139 add this workaround to the QUrl <> WebCore::KURL conversion operator so that it 5140 doesn't encode [ and ] when they are found in the host part. That is, the 5141 following URL: 5142 http://[::1]/ 5143 is valid and should not be reencoded to: 5144 http://%5b::1%5d/ 5145 5146 This change adds the automatic test for it. 5147 5148 * tests/qwebframe/tst_qwebframe.cpp: 5149 51502008-08-12 Urs Wolfer <uwolfer@kde.org> 5151 5152 Reviewed by Simon. 5153 5154 https://bugs.webkit.org/show_bug.cgi?id=20357 5155 5156 Fix crash in QWebPage in case contextMenuEvent has been overwritten 5157 because context menu has the view as parent and thus is deleted too early. 5158 5159 Add testcase for this crash. 5160 5161 * Api/qwebpage_p.h: 5162 * tests/qwebpage/tst_qwebpage.cpp: 5163 (tst_QWebPage::contextMenuCrash): 5164 51652008-08-07 Simon Hausmann <hausmann@webkit.org> 5166 5167 Rubber-stamped by Lars. 5168 5169 Added API tests for QWebPage/QWebFrame based on QTestLib. 5170 5171 * tests/qwebframe/qwebframe.pro: Added. 5172 * tests/qwebframe/tst_qwebframe.cpp: Added. 5173 * tests/qwebpage/qwebpage.pro: Added. 5174 * tests/qwebpage/tst_qwebpage.cpp: Added. 5175 * tests/tests.pro: Added. 5176 51772008-08-06 Benjamin C Meyer <ben@meyerhome.net> 5178 5179 Reviewed by Simon. 5180 5181 During the drag operation only accept the event if the action is not ignore action. 5182 5183 * Api/qwebpage.cpp: 5184 (QWebPagePrivate::dragEnterEvent): 5185 (QWebPagePrivate::dragMoveEvent): 5186 (QWebPagePrivate::dropEvent): 5187 51882008-08-06 Ariya Hidayat <ariya.hidayat@trolltech.com> 5189 5190 Fix the Qt build due to recent ScriptController refactoring. 5191 5192 * Api/qwebframe.cpp: 5193 (QWebFrame::addToJavaScriptWindowObject): 5194 51952008-08-05 Tor Arne Vestbø <tavestbo@trolltech.com> 5196 5197 Reviewed by Simon. 5198 5199 Move event handling of the return-key from EditorClientQt to QWebPage. 5200 5201 https://bugs.webkit.org/show_bug.cgi?id=20191 5202 5203 This is a first step in refactoring the big switch block 5204 in EditorClientQt::handleKeyboardEvent to using WebActions 5205 instead. 5206 5207 The new logic uses two new StandardKeys from QKeySequence: 5208 5209 - InsertParagraphSeparator 5210 - InsertLineSeparator 5211 5212 Which translate to the commands InsertNewline and InsertLineBreak 5213 respectivly. On Windows/X11 pressing the shift modifier will invoke 5214 the latter action. For Mac this is triggered by pressing the meta 5215 modifier (Ctrl). 5216 5217 Initial patch by: Erik Bunce 5218 5219 * Api/qwebpage.cpp: 5220 (editorActionForKeyEvent): 5221 * Api/qwebpage.h: 5222 * WebCoreSupport/EditorClientQt.cpp: 5223 (WebCore::EditorClientQt::handleKeyboardEvent): 5224 52252008-08-04 Erik Bunce <elbunce@thehive.com> 5226 5227 Reviewed by Simon. 5228 5229 https://bugs.webkit.org/show_bug.cgi?id=20221 5230 5231 Add updateAction() support to ToggleBold, ToggleItalic, and ToggleUnderline. 5232 Add lookup table for mapping web actions to editor commands. 5233 5234 * Api/qwebpage.cpp: 5235 (editorCommandForWebActions): 5236 (QWebPagePrivate::updateAction): 5237 (QWebPagePrivate::updateEditorActions): 5238 (QWebPage::triggerAction): 5239 (QWebPage::setEditable): 5240 52412008-08-03 Ariya Hidayat <ariya.hidayat@trolltech.com> 5242 5243 Reviewed by Simon. 5244 5245 A bunch of improvements to the QtLauncher. 5246 5247 Among others: 5248 - Unify and unclutter the toolbar, use menu for addition actions 5249 - Simplify URL edit, just use QLineEdit (no fancy close button etc) 5250 - Guess the URL from the command line so now we can run ./QtLauncher www.google.com 5251 - Shortcut keys for most actions 5252 - Simple autocomplete for the URL edit 5253 - Actions for zooming, New Window and Close Window 5254 - Show Format menu only when the content is set to editable 5255 5256 * QtLauncher/main.cpp: 5257 (MainWindow::MainWindow): 5258 (MainWindow::webPage): 5259 (MainWindow::changeLocation): 5260 (MainWindow::loadFinished): 5261 (MainWindow::showLinkHover): 5262 (MainWindow::newWindow): 5263 (MainWindow::zoomIn): 5264 (MainWindow::zoomOut): 5265 (MainWindow::resetZoom): 5266 (MainWindow::print): 5267 (MainWindow::setEditable): 5268 (MainWindow::dumpHtml): 5269 (MainWindow::setupUI): 5270 (main): 5271 52722008-08-04 Erik Bunce <elbunce@thehive.com> 5273 5274 Reviewed by Simon. 5275 5276 https://bugs.webkit.org/show_bug.cgi?id=20198 5277 5278 Allow Copy key sequence to work in non-editable areas. 5279 5280 * Api/qwebpage.cpp: 5281 (QWebPagePrivate::keyPressEvent): 5282 52832008-07-31 Erik Bunce <elbunce@thehive.com> 5284 5285 Reviewed by Simon. 5286 5287 Make sure edit actions get updated when the contents change. 5288 5289 * WebCoreSupport/EditorClientQt.cpp: 5290 (WebCore::EditorClientQt::respondToChangedContents): 5291 52922008-07-31 Erik Bunce <elbunce@thehive.com> 5293 5294 Reviewed by Simon. 5295 5296 Add simple edit test abilities to QtLauncher. 5297 5298 * QtLauncher/main.cpp: 5299 (MainWindow::MainWindow): 5300 (MainWindow::setEditable): 5301 (MainWindow::dumpHtml): 5302 53032008-07-31 Alexey Proskuryakov <ap@webkit.org> 5304 5305 Rubber-stamped by Maciej. 5306 5307 Eliminate JSLock (it was already disabled, removing the stub implementaion and all 5308 call sites now). 5309 5310 * Api/qwebframe.cpp: 5311 (QWebFrame::addToJavaScriptWindowObject): 5312 53132008-07-27 David Kilzer <ddkilzer@apple.com> 5314 5315 Fix Qt build failure. 5316 5317 * Api/qwebframe.h: 5318 (QWebFrame::setScrollOffset): Make argument const. 5319 53202008-07-26 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk> 5321 5322 Reviewed by Simon Hausmann. 5323 5324 https://bugs.webkit.org/show_bug.cgi?id=20010 5325 [Qt] Add API access to scrolling 5326 5327 * Api/qwebframe.cpp: Added access to a frame scroll offset. 5328 (QWebFrame::scroll): 5329 (QWebFrame::scrollOffset): 5330 (QWebFrame::setScrollOffset): 5331 * Api/qwebframe.h: 5332 53332008-07-26 Daniel Jalkut <jalkut@red-sweater.com> 5334 5335 Build fix. Adjust to updated WebCore FrameLoader method names & signatures. 5336 5337 * Api/qwebpage.cpp: 5338 (QWebPage::triggerAction): 5339 * WebCoreSupport/FrameLoaderClientQt.cpp: 5340 (WebCore::FrameLoaderClientQt::createFrame): 5341 53422008-07-25 Joerg Bornemann <joerg.bornemann@trolltech.com> 5343 5344 Reviewed by Simon. 5345 5346 Compile with QT_NO_PRINTER. 5347 5348 * QtLauncher/main.cpp: 5349 (MainWindow::MainWindow): 5350 53512008-07-24 Tor Arne Vestbø <tavestbo@trolltech.com> 5352 5353 Reviewed by Simon 5354 5355 Don't insert text on keyDown event in EditorClientQt. 5356 5357 * WebCoreSupport/EditorClientQt.cpp: 5358 (WebCore::EditorClientQt::handleKeyboardEvent): 5359 53602008-07-04 Benjamin C Meyer <ben@meyerhome.net> 5361 5362 Reviewed by Simon. 5363 5364 Update the webkit version in the QtWebKit useragent string to match trunk 5365 5366 * Api/qwebpage.cpp: 5367 53682008-07-02 Simon Hausmann <hausmann@webkit.org> 5369 5370 Build fix. 5371 5372 * Api/qwebpage.cpp: 5373 (QWebPage::triggerAction): The signature of setBaseWritingDirection 5374 changed to take an enum instead of a string. 5375 53762008-07-01 Alexey Proskuryakov <ap@webkit.org> 5377 5378 Reviewed by Darin Adler. 5379 5380 Disable JSLock for per-thread contexts. 5381 5382 * Api/qwebframe.cpp: 5383 (QWebFrame::addToJavaScriptWindowObject): 5384 Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking. 5385 Include JSLock.h, as it is no longer brought in implicitly. 5386 53872008-07-01 Tor Arne Vestbø <tavestbo@trolltech.com> 5388 5389 Reviewed by Simon. 5390 5391 Don't show the tooltip instantly in the QtLauncher. 5392 5393 Let the QWebView handle tooltips by itself, so we get 5394 the expected delay as everywhere else. 5395 5396 * QtLauncher/main.cpp: 5397 53982008-06-30 Simon Hausmann <hausmann@webkit.org> 5399 5400 Rubber-stamped by Niko. 5401 5402 Removed the obsolete and unmaintained WebKitPart. The integration of 5403 QtWebKit into KDE is now done in the webkitkde component inside KDE. 5404 5405 * WebKitPart/WebKitFactory.cpp: Removed. 5406 * WebKitPart/WebKitFactory.h: Removed. 5407 * WebKitPart/WebKitPart.cpp: Removed. 5408 * WebKitPart/WebKitPart.desktop: Removed. 5409 * WebKitPart/WebKitPart.h: Removed. 5410 * WebKitPart/WebKitPart.rc: Removed. 5411 * WebKitPart/WebKitPartBrowser.rc: Removed. 5412 * WebKitPart/WebKitPartBrowserExtension.cpp: Removed. 5413 * WebKitPart/WebKitPartBrowserExtension.h: Removed. 5414 * WebKitPart/WebKitPartClient.cpp: Removed. 5415 * WebKitPart/WebKitPartClient.h: Removed. 5416 * WebKitPart/WebKitPartInterface.cpp: Removed. 5417 * WebKitPart/WebKitPartInterface.h: Removed. 5418 * WebKitPart/org.kde.WebKitPart.xml: Removed. 5419 54202008-06-24 Simon Hausmann <hausmann@webkit.org> 5421 5422 Fix the Qt build, added missing include for RuntimeObjectImp. 5423 5424 * Api/qwebframe.cpp: 5425 54262008-06-23 Benjamin C Meyer <ben@meyerhome.net> 5427 5428 Reviewed by Simon. 5429 5430 Add function to retrieve the standard context menu 5431 54322008-06-20 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk> 5433 5434 Reviewed by Simon. 5435 5436 https://bugs.webkit.org/show_bug.cgi?id=19082 5437 [Qt] Full-page plugins not activated 5438 5439 * WebCoreSupport/FrameLoaderClientQt.cpp: 5440 (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a 5441 plugin present, as it can be created during the function. 5442 54432008-06-20 Marco Barisione <marco.barisione@collabora.co.uk> 5444 5445 Reviewed by Simon. 5446 5447 https://bugs.webkit.org/show_bug.cgi?id=19082 5448 [Qt] Full-page plugins not activated 5449 5450 * WebCoreSupport/FrameLoaderClientQt.cpp: 5451 (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the 5452 MIME type is supported by a plugin. 5453 54542008-06-18 Alexey Proskuryakov <ap@webkit.org> 5455 5456 Reviewed by Darin Adler. 5457 5458 Prepare JavaScript heap for being per-thread. 5459 5460 * Api/qwebframe.cpp: 5461 (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build. 5462 54632008-06-18 Julien Chaffraix <jchaffraix@webkit.org> 5464 5465 Qt Build fix after r34627. 5466 5467 * WebCoreSupport/FrameLoaderClientQt.cpp: 5468 (WebCore::FrameLoaderClientQt::createPlugin): 5469 54702008-06-15 Darin Adler <darin@apple.com> 5471 5472 - give Frame object functions shorter names: scriptProxy() -> script(), 5473 selectionController() -> selection(), animationController() -> animation() 5474 5475 * Api/qwebframe.cpp: 5476 (QWebFrame::evaluateJavaScript): 5477 * Api/qwebpage.cpp: 5478 (QWebPagePrivate::focusInEvent): 5479 (QWebPagePrivate::focusOutEvent): 5480 (QWebPage::inputMethodQuery): 5481 * WebCoreSupport/EditorClientQt.cpp: 5482 (WebCore::EditorClientQt::handleKeyboardEvent): 5483 54842008-06-15 Darin Adler <darin@apple.com> 5485 5486 - new names for more JavaScriptCore files 5487 5488 * WebKit_pch.h: 5489 54902008-06-15 Darin Adler <darin@apple.com> 5491 5492 - new names for a few key JavaScriptCore files 5493 5494 * Api/qwebframe.cpp: 5495 54962008-06-14 Darin Adler <darin@apple.com> 5497 5498 Rubber stamped by Sam. 5499 5500 - new names for kjs_binding.h and kjs_proxy.h 5501 5502 * Api/qwebframe.cpp: 5503 (QWebFrame::evaluateJavaScript): 5504 * WebKit_pch.h: 5505 55062008-06-14 Darin Adler <darin@apple.com> 5507 5508 - fix build 5509 5510 * Api/qwebframe.cpp: 5511 (QWebFramePrivate::init): Added a missing semicolon. 5512 55132008-06-14 Darin Adler <darin@apple.com> 5514 5515 Reviewed by Sam. 5516 5517 - more https://bugs.webkit.org/show_bug.cgi?id=17257 5518 start ref counts at 1 instead of 0 for speed 5519 5520 * Api/qwebframe.cpp: 5521 (QWebFramePrivate::init): Use create instead of new. 5522 * WebCoreSupport/FrameLoaderClientQt.cpp: 5523 (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto. 5524 55252008-06-13 Darin Adler <darin@apple.com> 5526 5527 - try to fix build 5528 5529 * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument. 5530 55312008-06-13 Darin Adler <darin@apple.com> 5532 5533 Reviewed by John Sullivan. 5534 5535 - updated for addition of FormState argument to action policy functions 5536 5537 * WebCoreSupport/FrameLoaderClientQt.cpp: 5538 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 5539 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 5540 55412008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com> 5542 5543 Reviewed by Simon. 5544 5545 Fix left-click and middle-click mouse event are not properly accepted. 5546 5547 When copying or pasting text using left or middle-click, the event must be 5548 accepted so that it will not be potentially processed further by the parent 5549 and/or sub-classed widget. 5550 5551 5552 * Api/qwebpage.cpp: 5553 (QWebPagePrivate::mouseReleaseEvent): 5554 55552008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com> 5556 5557 Reviewed by Simon. 5558 5559 Fix input element does not accept character typed in using AltGr. 5560 5561 EditorClient is modified to catch AltGr and Ctrl+Alt key combination. 5562 This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry 5563 5564 * WebCoreSupport/EditorClientQt.cpp: 5565 (WebCore::EditorClientQt::handleKeyboardEvent): 5566 55672008-05-26 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk> 5568 5569 Reviewed by Simon. 5570 5571 https://bugs.webkit.org/show_bug.cgi?id=19323 5572 5573 Implemented the QWebPage::editable property. 5574 5575 Small documentation fixes by Simon. 5576 5577 * Api/qwebpage.cpp: 5578 (QWebPagePrivate::QWebPagePrivate): 5579 (QWebPage::setEditable): 5580 (QWebPage::isEditable): 5581 * Api/qwebpage.h: 5582 * Api/qwebpage_p.h: implement the editable property and add API so that 5583 applications can switch edit mode on and off for a particular QWebPage 5584 * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the 5585 QWebPage instead of always returning false 5586 55872008-06-09 Tor Arne Vestbø <tavestbo@trolltech.com> 5588 5589 Reviewed by Simon 5590 5591 Make sure web action in context menus have the right enablement, 5592 while not messing up other web actions not included in the menu. 5593 5594 * Api/qwebpage.cpp: 5595 (QWebPagePrivate::createContextMenu): 5596 (QWebPage::updatePositionDependentActions): 5597 * Api/qwebpage_p.h: 5598 55992008-06-09 Benjamin C Meyer <ben@meyerhome.net> 5600 5601 Reviewed by Simon 5602 5603 Add Shift-Space shortcut to go up one screen, the opposite of Space 5604 which goes down one screen. 5605 5606 * Api/qwebpage.cpp: 5607 (QWebPagePrivate::handleScrolling): 5608 56092008-06-04 Tor Arne Vestbø <tavestbo@trolltech.com> 5610 5611 Reviewed by Simon. 5612 5613 Fix a failing assertion when calling QWebFrame::evaluateJavaScript. 5614 5615 The starting line number has to be 1 instead of 0. 5616 5617 * Api/qwebframe.cpp: 5618 (QWebFrame::evaluateJavaScript): 5619 56202008-06-03 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk> 5621 5622 Reviewed by Darin Adler. 5623 5624 * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains(). This 5625 function is not used anywhere internally and is only a convenience 5626 function that can still be accomplished using 5627 QWebHistoryInterface::historyContains(); 5628 56292008-05-29 Kavindra Devi Palaraja <kdpalara@trolltech.com> 5630 5631 Reviewed by Simon. 5632 5633 Doc: Mention the requirement of a QApplication with QtWebKit 5634 5635 5636 * Api/qwebview.cpp: 5637 56382008-05-29 David Boddie <dboddie@trolltech.com> 5639 5640 Reviewed by Simon. 5641 5642 Some clarifications for the documentation. 5643 5644 5645 * Api/qwebpage.cpp: 5646 * Api/qwebpluginfactory.cpp: 5647 56482008-05-27 Ariya Hidayat <ariya.hidayat@trolltech.com> 5649 5650 Reviewed by Simon. 5651 5652 Fix web inspector does not returns its state properly after its window is minimized. 5653 5654 As hinted by Holger, InspectorClientView::hideEvent is not needed. 5655 This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967 5656 5657 * WebCoreSupport/InspectorClientQt.cpp: 5658 56592008-05-21 Siraj Razick <siraj.razick@collabora.co.uk> 5660 5661 Reviewed by Simon. 5662 5663 Add <param name="classid"/> support for application/x-qt-object plugins 5664 5665 * WebCoreSupport/FrameLoaderClientQt.cpp: 5666 (WebCore::FrameLoaderClientQt::createPlugin): 5667 56682008-05-13 Andy Shaw <andy@trolltech.com> 5669 5670 Reviewed by Simon. 5671 5672 Fixes: QWebHistory::forward() should go forwards and not back 5673 5674 * Api/qwebhistory.cpp: 5675 56762008-05-12 Alexey Proskuryakov <ap@webkit.org> 5677 5678 Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify 5679 SquirrelFish merging. 5680 5681 * Api/qwebframe.cpp: 5682 (QWebFrame::addToJavaScriptWindowObject): 5683 56842008-05-09 Thiago Macieira <tjmaciei@trolltech.com> 5685 5686 Reviewed by Simon. 5687 5688 Fix bad includes in QtWebKit public headers. 5689 5690 Make sure to include qglobal.h using the QtCore prefix so that an explicit 5691 include/QtCore is not needed in the application's build system. Also make sure 5692 that qwebsettings.h includes the local qwebkitglobal.h. 5693 5694 5695 * Api/qwebkitglobal.h: 5696 * Api/qwebsettings.h: 5697 56982008-05-08 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk> 5699 5700 Reviewed by Simon. 5701 5702 https://bugs.webkit.org/show_bug.cgi?id=18935 5703 5704 Based on work by Sriram Neelakandan for the Gtk port. 5705 5706 * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize 5707 m_hasSentResponseToPlugin. 5708 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 5709 (WebCore::FrameLoaderClientQt::redirectDataToPlugin): 5710 57112008-05-08 Warwick Allison <warwick@trolltech.com> 5712 5713 Reviewed by Simon. 5714 5715 Fixes: WebKit expects initial input method state to be *disabled*. 5716 5717 At least QWS does not need the initial input method state to be forced to 5718 enabled, but other platforms (esp. X11) do. Until fixed/tested on those 5719 platforms, this is specific to QWS. 5720 5721 5722 * Api/qwebview.cpp: 5723 (QWebView::QWebView): 5724 57252008-05-06 Simon Hausmann <hausmann@webkit.org> 5726 5727 Reviewed by Holger. 5728 5729 Fix logic error in QWebHitTestResult::isNull(). 5730 5731 * Api/qwebframe.cpp: 5732 57332008-05-02 Benjamin Meyer <bmeyer@trolltech.com> 5734 5735 Reviewed by Simon. 5736 5737 Doc: Mention that you have to enable plugins in QWebSettings for them to work. 5738 5739 * Api/qwebpage.cpp: 5740 57412008-05-02 Simon Hausmann <hausmann@webkit.org> 5742 5743 Fix the Qt build, ExecState is required here. 5744 5745 * Api/qwebframe.cpp: 5746 (QWebFrame::addToJavaScriptWindowObject): 5747 57482008-05-01 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk> 5749 5750 Reviewed by Alp Toker. 5751 Qt parts OK'ed by Simon Hausmann. 5752 5753 https://bugs.webkit.org/show_bug.cgi?id=14750 5754 Added support for NPAPI plugins on Gtk and Qt-x11 ports. 5755 5756 * WebCoreSupport/FrameLoaderClientQt.cpp: 5757 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 5758 (WebCore::FrameLoaderClientQt::finishedLoading): 5759 (WebCore::FrameLoaderClientQt::setMainDocumentError): 5760 (WebCore::FrameLoaderClientQt::committedLoad): 5761 (WebCore::FrameLoaderClientQt::objectContentType): 5762 (WebCore::FrameLoaderClientQt::createPlugin): 5763 (WebCore::FrameLoaderClientQt::redirectDataToPlugin): 5764 * WebCoreSupport/FrameLoaderClientQt.h: 5765 57662008-04-30 Julien Chaffraix <jchaffraix@webkit.org> 5767 5768 Qt 4.3 build fix. 5769 5770 Fixes a brace error that made Qt 4.4 build but not Qt 4.3. 5771 5772 * Api/qwebview.cpp: 5773 (QWebView::event): 5774 57752008-04-30 Tor Arne Vestbø <tavestbo@trolltech.com> 5776 5777 Reviewed by Simon. 5778 5779 In focusIn and focusOut event always update the active state of the 5780 focus controller. Fixes ~400 failing layout tests due to missing 5781 editing callbacks that relied on the correct focus. 5782 5783 * Api/qwebpage.cpp: 5784 (QWebPagePrivate::focusInEvent): 5785 (QWebPagePrivate::focusOutEvent): 5786 57872008-04-29 Lincoln Ramsay <lincoln.ramsay@trolltech.com> 5788 5789 Reviewed by Simon. 5790 5791 Fix compilation with QT_NO_PRINTER 5792 5793 5794 * Api/qwebview.cpp: 5795 (QWebView::print): 5796 57972008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com> 5798 5799 Reviewed by Simon. 5800 5801 Ensure that relative URL is converted to absolute URL. 5802 5803 This is necessary because loading a relative URL is not really supported 5804 (the web page may load, but the subsequent URLs for images and links will 5805 not be resolved properly). 5806 This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484 5807 5808 5809 * Api/qwebframe.cpp: 5810 (ensureAbsoluteUrl): 5811 (QWebFrame::setUrl): 5812 (QWebFrame::load): 5813 58142008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com> 5815 5816 Reviewed by Simon. 5817 5818 Simplification of Qt Launcher (no animation and use standard progress bar widget) 5819 5820 Status bar shows the hovered link without any animation. Progress bar just uses the standard QProgressBar (no custom widget). The launcher is leaner and faster to use under the debugger and/or valgrind. 5821 5822 5823 * QtLauncher/main.cpp: 5824 (MainWindow::MainWindow): 5825 58262008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com> 5827 5828 Reviewed by Simon. 5829 5830 Update the cursor when the frame/page loading is finished. 5831 5832 This fixes https://bugs.webkit.org/show_bug.cgi?id=18712 5833 5834 5835 * WebCoreSupport/FrameLoaderClientQt.cpp: 5836 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): 5837 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady): 5838 58392008-04-29 Simon Hausmann <shausman@trolltech.com> 5840 5841 Reviewed by Holger. 5842 5843 Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links. 5844 5845 Call QWebPage::acceptNavigationRequest when the creation of a new window with 5846 URL is requested. The frame pointer is set to null in this case. 5847 5848 5849 * Api/qwebpage.cpp: 5850 (QWebPage::setViewportSize): 5851 * WebCoreSupport/FrameLoaderClientQt.cpp: 5852 (WebCore::FrameLoaderClientQt::startDownload): 5853 (WebCore::FrameLoaderClientQt::createFrame): 5854 58552008-04-29 Holger Hans Peter Freyther <zecke@selfish.org> 5856 5857 Reviewed by Simon. 5858 5859 Use the WebCore facility to do the scrolling. Move some code around. 5860 5861 * Api/qwebpage.cpp: 5862 (QWebPagePrivate::keyPressEvent): 5863 (QWebPagePrivate::shortcutOverrideEvent): 5864 (QWebPagePrivate::handleScrolling): 5865 * Api/qwebpage_p.h: 5866 58672008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com> 5868 5869 Reviewed by Simon. 5870 5871 fix potential crash when loading image(s) 5872 5873 Crash may occur. If compiled with 4.3, the variable is not initialized. 5874 5875 * Api/qwebpage.cpp: 5876 (QWebPagePrivate::QWebPagePrivate): 5877 58782008-04-29 Holger Hans Peter Freyther <zecke@selfish.org> 5879 5880 Reviewed by Simon. 5881 5882 Calling QWebView::setCursor will override the WebCore Cursor. 5883 Calling QWebView::setCursor will override the WebCore Cursor using 5884 QWidget::unsetCursor will revert to the WebCore Cursor. 5885 5886 For detecting the unset we have to compare the shape of the 5887 cursor to the default arrow. Qt::WA_SetCursor can not be used 5888 as it is set unconditionally but conditionally removed. 5889 5890 Calling QWidget::setCursor will immediately send the CursorChange 5891 event. We listen to this event to decide if we currently use a 5892 WebCore cursor, got a cursor from outside, or revert to the default. 5893 5894 This should be race free and work reliable, the manual test for this 5895 is WebCore/manual-tests/cursor.html 5896 5897 * Api/qwebpage.cpp: 5898 (SetCursorEvent::SetCursorEvent): 5899 * Api/qwebpage_p.h: 5900 * Api/qwebview.cpp: 5901 (QWebViewPrivate::QWebViewPrivate): 5902 (QWebViewPrivate::setCursor): 5903 (QWebView::QWebView): 5904 (QWebView::event): 5905 59062008-04-29 Kavindra Devi Palaraja <kdpalara@trolltech.com> 5907 5908 Reviewed by Simon. 5909 5910 Documentation fixes: 5911 5912 - Fixed a qdoc warning 5913 - Mention that fav icons can be of arbitrary size 5914 - Fix signature of QWebPage::acceptNavigationRequest show in the documentation 5915 5916 * Api/qwebframe.cpp: 5917 * Api/qwebpage.cpp: 5918 * Api/qwebpage.h: 5919 * Api/qwebsettings.cpp: 5920 * Api/qwebview.cpp: 5921 59222008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com> 5923 5924 Reviewed by Simon. 5925 5926 Fix QWebView::loadFinished isn't always emitted 5927 5928 Replaced loadDone() with loadFinished(bool) and moved the signals for progress 5929 tracking (start, progres, and finish) to the page instead of the frame. This 5930 ensures that we emit loadFinished even when a subframe started the actual load. 5931 5932 This causes a few regressions in the layout tests that we for now accept for 5933 the sake of the correct API. Layout tests we can fix any time though, including 5934 patch release, the API however we can't change anymore in patch releases. 5935 5936 * Api/qwebframe.cpp: 5937 * Api/qwebframe.h: 5938 * Api/qwebpage.cpp: 5939 (QWebPage::totalBytes): 5940 * Api/qwebpage.h: 5941 * Api/qwebview.cpp: 5942 (QWebView::setPage): 5943 * Api/qwebview.h: 5944 * QtLauncher/main.cpp: 5945 (MainWindow::MainWindow): 5946 * WebCoreSupport/FrameLoaderClientQt.cpp: 5947 (drtDescriptionSuitableForTestResult): 5948 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 5949 (WebCore::FrameLoaderClientQt::setFrame): 5950 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage): 5951 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 5952 (WebCore::FrameLoaderClientQt::willChangeTitle): 5953 (WebCore::FrameLoaderClientQt::createDocumentLoader): 5954 (WebCore::FrameLoaderClientQt::download): 5955 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 5956 * WebCoreSupport/FrameLoaderClientQt.h: 5957 59582008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com> 5959 5960 Reviewed by Simon. 5961 5962 Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame 5963 5964 * Api/qwebframe.cpp: 5965 * Api/qwebpluginfactory.cpp: 5966 * Api/qwebsettings.cpp: 5967 (QWebSettings::QWebSettings): 5968 (QWebSettings::setUserStyleSheetUrl): 5969 (QWebSettings::iconForUrl): 5970 (QWebSettings::webGraphic): 5971 (QWebSettings::maximumPagesInCache): 5972 (QWebSettings::setFontFamily): 5973 (QWebSettings::resetFontFamily): 5974 (QWebSettings::testAttribute): 5975 (QWebSettings::resetAttribute): 5976 59772008-04-28 Ariya Hidayat <ahidayat@trolltech.com> 5978 5979 Reviewed by Simon. 5980 5981 Fix document/frame title not reset when loading a new URI 5982 5983 We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle() 5984 will be called very soon with the correct title. 5985 This properly resets the title when we navigate to a URI without a title. 5986 5987 5988 * WebCoreSupport/FrameLoaderClientQt.cpp: 5989 59902008-04-28 David Boddie <dboddie@trolltech.com> 5991 5992 Reviewed by Simon. 5993 5994 Minor documentation changes. 5995 5996 * Api/qwebview.cpp: 5997 59982008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com> 5999 6000 Reviewed by Simon. 6001 6002 Prevent middle-click from triggering open URL from clipboard when the event has already been accepted. 6003 6004 6005 * Api/qwebpage.cpp: 6006 (QWebPagePrivate::mouseMoveEvent): 6007 (QWebPagePrivate::mousePressEvent): 6008 (QWebPagePrivate::mouseDoubleClickEvent): 6009 (QWebPagePrivate::mouseTripleClickEvent): 6010 (QWebPagePrivate::mouseReleaseEvent): 6011 60122008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com> 6013 6014 Reviewed by Simon. 6015 6016 Fix scrollbar behavior in QtWebKit to match QScrollBar. 6017 6018 Right click context menu is now supported, along with 6019 middle click to center slider thumb over mouse cursor. 6020 6021 6022 * Api/qwebpage.cpp: 6023 (QWebPage::linkDelegationPolicy): 6024 60252008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com> 6026 6027 Reviewed by Simon. 6028 6029 Implemented channel-based logging for QtWebKit. 6030 6031 Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable. 6032 Warnings for notImplemented() is still output by default, but can be disabled 6033 by setting DISABLE_NI_WARNINGS=1. 6034 6035 * Api/qwebpage.cpp: 6036 (QWebPagePrivate::QWebPagePrivate): 6037 60382008-04-28 Simon Hausmann <shausman@trolltech.com> 6039 6040 Rubber-stamped by Lars 6041 6042 Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API. 6043 6044 * Api/qwebframe.cpp: 6045 * Api/qwebframe.h: 6046 * Api/qwebview.cpp: 6047 * Api/qwebview.h: 6048 60492008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com> 6050 6051 Reviewed by Simon. 6052 6053 Doc - adding more documentation to QWebFrame, QWebPage and QWebView 6054 6055 6056 * Api/qwebframe.cpp: 6057 * Api/qwebpage.cpp: 6058 * Api/qwebview.cpp: 6059 (QWebView::stop): 6060 (QWebView::back): 6061 (QWebView::changeEvent): 6062 60632008-04-28 Simon Hausmann <shausman@trolltech.com> 6064 6065 Reviewed by Holger. 6066 6067 Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens 6068 6069 Give the popups the right parent widget and the right coordinates relative within the parent. 6070 6071 6072 * Api/qwebpage.cpp: 6073 60742008-04-28 Benjamin Meyer <bmeyer@trolltech.com> 6075 6076 Reviewed by Simon. 6077 6078 Doc: Add see also's (and a few minor whitespace/typo corrections) 6079 6080 6081 * Api/qwebframe.cpp: 6082 (QWebFrame::~QWebFrame): 6083 (QWebFrame::setHtml): 6084 (QWebFrame::setContent): 6085 (QWebFrame::parentFrame): 6086 (QWebFrame::childFrames): 6087 (QWebFrame::setScrollBarValue): 6088 (QWebFrame::scrollBarValue): 6089 (QWebFrame::scrollBarMaximum): 6090 (QWebFrame::scrollBarMinimum): 6091 (QWebFrame::render): 6092 (QWebFrame::pos): 6093 (QWebFrame::geometry): 6094 (QWebFrame::print): 6095 (QWebFrame::evaluateJavaScript): 6096 * Api/qwebpage.cpp: 6097 (QWebPagePrivate::mousePressEvent): 6098 (QWebPagePrivate::mouseDoubleClickEvent): 6099 (QWebPage::~QWebPage): 6100 (QWebPage::javaScriptPrompt): 6101 (openNewWindow): 6102 (QWebPage::setViewportSize): 6103 (QWebPage::acceptNavigationRequest): 6104 (QWebPage::action): 6105 (QWebPage::userAgentForUrl): 6106 (QWebPagePrivate::_q_onLoadProgressChanged): 6107 * Api/qwebview.cpp: 6108 (QWebView::event): 6109 61102008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com> 6111 6112 Reviewed by Simon. 6113 6114 Submitting more documentation for QWebPage 6115 6116 6117 * Api/qwebpage.cpp: 6118 61192008-04-28 Lincoln Ramsay <lincoln.ramsay@trolltech.com> 6120 6121 Reviewed by Simon. 6122 6123 Compile when QT_NO_CLIPBOARD is defined. 6124 6125 6126 * Api/qwebpage.cpp: 6127 (QWebPage::triggerAction): 6128 61292008-04-28 David Boddie <dboddie@trolltech.com> 6130 6131 Reviewed by Simon. 6132 6133 Minor documentation fix. 6134 6135 6136 * Api/qwebhistory.cpp: 6137 61382008-04-28 Holger Hans Peter Freyther <zecke@selfish.org> 6139 6140 Reviewed by Simon. 6141 6142 Implement QWebPage::createPlugin 6143 6144 The code is coming from the demo browser and needed here 6145 for some manual tests. 6146 6147 6148 * QtLauncher/QtLauncher.pro: 6149 * QtLauncher/main.cpp: 6150 (WebPage::createPlugin): 6151 61522008-04-28 Simon Hausmann <hausmann@webkit.org> 6153 6154 Qt/Win build fix. Include config.h to get the implicit MathExtras.h 6155 inclusion correct with regards to rand_s. 6156 6157 * Api/qwebhistory.cpp: 6158 61592008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com> 6160 6161 Reviewed by Simon. 6162 6163 https://bugs.webkit.org/show_bug.cgi?id=18713 6164 6165 Fix scrollbar painting issues in QtWebKit. 6166 6167 Hovering and click-draging outside of the scrollbar would 6168 produce unexpected and inconcistent results. We also didn't 6169 pass on leave-events to the underlying WebKit code, which 6170 was nessecary to implement the paint fix. 6171 6172 Note: The event handling of the Leave event should be moved 6173 out of QWebView::event() and into a proper override for 4.5. 6174 6175 * Api/qwebpage.cpp: 6176 (QWebPagePrivate::leaveEvent): 6177 * Api/qwebpage_p.h: 6178 * Api/qwebview.cpp: 6179 (QWebView::event): 6180 61812008-04-25 Benjamin Meyer <bmeyer@trolltech.com> 6182 6183 Reviewed by Simon, Holger. 6184 6185 Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus. 6186 6187 * Correctly de- and reactivate the focused frame in focusOut/focusInEvent 6188 without telling the focus controller. We don't want to change the focused frame 6189 - the controller has to remember it in fact - but instead just deactivate the 6190 frame for correct painting as RenderTheme::isFocused() uses the activation 6191 state of the frame. 6192 6193 * Api/qwebpage.cpp: 6194 (QWebPagePrivate::focusInEvent): 6195 (QWebPagePrivate::focusOutEvent): 6196 61972008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com> 6198 6199 Reviewed by Simon. 6200 6201 completed documentation for the Detailed Description section for QWebView 6202 6203 6204 * Api/qwebview.cpp: 6205 62062008-04-25 Denis Dzyubenko <denis.dzyubenko@trolltech.com> 6207 6208 Reviewed by Simon. 6209 6210 Fixed the way QWebHistory works - when you call back(), forward() or goToItem() functions it changes the current item in history *and* loads the corresponding page. 6211 6212 6213 * Api/qwebhistory.cpp: 6214 (QWebHistory::back): 6215 (QWebHistory::forward): 6216 (QWebHistory::goToItem): 6217 62182008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com> 6219 6220 Reviewed by Simon. 6221 6222 Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest(). 6223 6224 6225 * WebCoreSupport/FrameLoaderClientQt.cpp: 6226 (WebCore::FrameLoaderClientQt::createFrame): 6227 62282008-04-25 Simon Hausmann <hausmann@webkit.org> 6229 6230 Reviewed by Holger. 6231 6232 When pressing backspace in a line edit in a webpage we should not go back to the previous page. 6233 6234 The shortcut for back on Windows is backspace. Implemented shortcut override 6235 handling in QWebView/QWebPage to prevent this. 6236 6237 6238 * Api/qwebpage.cpp: 6239 (QWebPagePrivate::wheelEvent): 6240 (editorActionForKeyEvent): 6241 (QWebPagePrivate::keyPressEvent): 6242 (QWebPagePrivate::inputMethodEvent): 6243 (QWebPagePrivate::shortcutOverrideEvent): 6244 (QWebPage::event): 6245 * Api/qwebpage_p.h: 6246 * Api/qwebview.cpp: 6247 (QWebView::event): 6248 62492008-04-25 Ariya Hidayat <ariya.hidayat@trolltech.com> 6250 6251 Reviewed by Simon. 6252 6253 Fix triple-clicking does not work in a web page 6254 6255 6256 * Api/qwebpage.cpp: 6257 (QWebPagePrivate::updateEditorActions): 6258 (QWebPagePrivate::timerEvent): 6259 (QWebPagePrivate::mousePressEvent): 6260 (QWebPagePrivate::mouseDoubleClickEvent): 6261 (QWebPage::undoStack): 6262 * Api/qwebpage_p.h: 6263 62642008-04-25 Benjamin Meyer <bmeyer@trolltech.com> 6265 6266 Reviewed by Simon. 6267 6268 When pressing Ctrl-Up the keyboard modifiers could include other modifiers 6269 6270 6271 * Api/qwebpage.cpp: 6272 (QWebPagePrivate::keyPressEvent): 6273 62742008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com> 6275 6276 Reviewed by Simon. 6277 6278 Fix handling of Javascript's confirm() function in QtWebKit. 6279 6280 6281 * Api/qwebpage.cpp: 6282 62832008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com> 6284 6285 Reviewed by Simon. 6286 6287 Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity 6288 6289 6290 * Api/qwebview.cpp: 6291 62922008-04-25 Benjamin Meyer <bmeyer@trolltech.com> 6293 6294 Reviewed by Simon. 6295 6296 QWebPage: missing signal when window.print() is requested from javascript 6297 6298 6299 * Api/qwebpage.cpp: 6300 * Api/qwebpage.h: 6301 * WebCoreSupport/ChromeClientQt.cpp: 6302 63032008-04-25 Benjamin Meyer <bmeyer@trolltech.com> 6304 6305 Reviewed by Simon. 6306 6307 Fixes: "Save Image" action wasn't doing anything. 6308 6309 6310 * Api/qwebpage.cpp: 6311 (QWebPage::triggerAction): 6312 63132008-04-25 Benjamin Meyer <bmeyer@trolltech.com> 6314 6315 Reviewed by Simon. 6316 6317 Apply key event changes to the current frame, not the main frame. 6318 6319 Example: hitting space bar should scroll current frame, not the main frame 6320 which doesn't even have a scrollbar. 6321 6322 6323 * Api/qwebpage.cpp: 6324 (QWebPagePrivate::keyPressEvent): 6325 63262008-04-25 Benjamin Meyer <bmeyer@trolltech.com> 6327 6328 Reviewed by Simon. 6329 6330 Fixes: QWebFrame crash when fetching the icon 6331 6332 Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock. 6333 6334 * Api/qwebframe.cpp: 6335 63362008-04-25 Warwick Allison <warwick@trolltech.com> 6337 6338 Reviewed by Simon. 6339 6340 Fixes: Scrollbars did not report correct maximum. 6341 6342 * Api/qwebframe.cpp: 6343 63442008-04-25 David Boddie <dboddie@trolltech.com> 6345 6346 Reviewed by Simon. 6347 6348 Documentation updates for some of the QWeb classes 6349 6350 * Api/qwebframe.cpp: 6351 * Api/qwebhistory.cpp: 6352 * Api/qwebsettings.cpp: 6353 * Api/qwebview.cpp: 6354 63552008-04-25 Holger Hans Peter Freyther <zecke@selfish.org> 6356 6357 Reviewed by Simon. 6358 6359 Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html 6360 6361 Similar to Editing and Frameloading we do the dumping within WebCore 6362 6363 6364 * WebCoreSupport/FrameLoaderClientQt.cpp: 6365 (qt_dump_frame_loader): 6366 (qt_dump_resource_load_callbacks): 6367 (drtDescriptionSuitableForTestResult): 6368 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 6369 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache): 6370 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 6371 63722008-04-24 Anders Carlsson <andersca@apple.com> 6373 6374 Reviewed by Sam. 6375 6376 Change some String arguments to be const references instead. 6377 6378 * WebCoreSupport/EditorClientQt.cpp: 6379 (WebCore::EditorClientQt::shouldInsertText): 6380 * WebCoreSupport/EditorClientQt.h: 6381 63822008-04-24 Holger Hans Peter Freyther <zecke@selfish.org> 6383 6384 Reviewed by Simon. 6385 6386 Cosmetic changes to make the code more readable. 6387 -Early exit if we don't have a webview 6388 -handle the empty tooltip and non-empty tooltip case separately 6389 6390 6391 * WebCoreSupport/ChromeClientQt.cpp: 6392 (WebCore::ChromeClientQt::setToolTip): 6393 (WebCore::ChromeClientQt::print): 6394 63952008-04-24 Paul Olav Tvete <paul@trolltech.com> 6396 6397 Reviewed by Simon. 6398 6399 Automatically wrap tooltip text and hide a shown tooltip when it is empty. 6400 6401 QWidget::setTooltip("") will still show the old tooltip for up to 10 seconds. 6402 Workaround as discussed with Matthias. 6403 6404 * WebCoreSupport/ChromeClientQt.cpp: 6405 (WebCore::ChromeClientQt::setToolTip): 6406 64072008-04-24 Holger Hans Peter Freyther <zecke@selfish.org> 6408 6409 Reviewed by Simon. 6410 6411 Allow to disable caching completeley by calling setObjectCacheCapacities(0, 0, 0) 6412 6413 * Api/qwebsettings.cpp: 6414 (QWebSettings::setObjectCacheCapacities): 6415 64162008-04-24 Benjamin Meyer <bmeyer@trolltech.com> 6417 6418 Reviewed by Simon. 6419 6420 Improve keyboard scrolling 6421 6422 Match Down/Up keys scroll distance with Safari (i.e. faster) and add Home and End shortcuts to scroll to the top/botom. 6423 6424 6425 * Api/qwebpage.cpp: 6426 (QWebPagePrivate::keyPressEvent): 6427 64282008-04-24 Olivier Goffart <ogoffart@trolltech.com> 6429 6430 Reviewed by Simon. 6431 6432 Fix various compiler warnings in the Qt port. 6433 6434 * Api/qwebframe.cpp: 6435 (QWebFrame::print): 6436 * Api/qwebsettings.cpp: 6437 (graphics): 6438 * WebCoreSupport/FrameLoaderClientQt.cpp: 6439 (WebCore::FrameLoaderClientQt::createPlugin): 6440 64412008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com> 6442 6443 Reviewed by Simon. 6444 6445 Cleaned up copyright headers (removed misplaced class descriptions and 6446 fixed inconsistent whitespace and indentation). 6447 6448 * Api/qwebframe.cpp: 6449 * Api/qwebframe.h: 6450 * Api/qwebframe_p.h: 6451 * Api/qwebhistory.cpp: 6452 * Api/qwebhistory.h: 6453 * Api/qwebhistory_p.h: 6454 * Api/qwebhistoryinterface.cpp: 6455 * Api/qwebhistoryinterface.h: 6456 * Api/qwebkitglobal.h: 6457 * Api/qwebnetworkinterface.cpp: 6458 * Api/qwebnetworkinterface.h: 6459 * Api/qwebnetworkinterface_p.h: 6460 * Api/qwebpage.cpp: 6461 * Api/qwebpage.h: 6462 * Api/qwebpage_p.h: 6463 * Api/qwebpluginfactory.cpp: 6464 * Api/qwebpluginfactory.h: 6465 * Api/qwebsettings.cpp: 6466 * Api/qwebsettings.h: 6467 * Api/qwebview.h: 6468 * QtLauncher/main.cpp: 6469 64702008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com> 6471 6472 Reviewed by Simon. 6473 6474 Added basic URL guessing to QtLauncher (same as in the demo browser). 6475 6476 6477 * QtLauncher/main.cpp: 6478 (MainWindow::changeLocation): 6479 (MainWindow::guessUrlFromString): 6480 64812008-04-24 Benjamin Meyer <bmeyer@trolltech.com> 6482 6483 Reviewed by Simon Hausmann <hausmann@webkit.org>. 6484 6485 Prevent double deletions of the default web interface. 6486 6487 6488 * Api/qwebhistoryinterface.cpp: 6489 (gCleanupInterface): 6490 (QWebHistoryInterface::QWebHistoryInterface): 6491 64922008-04-23 Simon Hausmann <hausmann@webkit.org> 6493 6494 Fix compilation against Qt 4.3 6495 6496 * Api/qwebpage.cpp: 6497 (QWebPage::userAgentForUrl): 6498 * QtLauncher/main.cpp: 6499 (main): 6500 65012008-04-23 Holger Hans Peter Freyther <zecke@selfish.org> 6502 6503 Reviewed by Simon. 6504 6505 * Make sure the "Inspect Element" item gets added to the ContextMenu, a call 6506 to ContextMenu::populate() is not adding it, the ContextMenuController does 6507 add it after the call to populate(). Do that as well. 6508 6509 6510 * Api/qwebpage.cpp: 6511 (QWebPage::updatePositionDependentActions): 6512 65132008-04-23 Simon Hausmann <hausmann@webkit.org> 6514 6515 Reviewed by Holger. 6516 6517 Fix crashes on window.close(). 6518 6519 We should not delete the QWebPage object in the ChromeClient but leave it up to 6520 the application when and whether to delete a browser window. For this we now 6521 emit the windowCloseRequested() signal. 6522 6523 Done with Tor Arne. 6524 6525 * Api/qwebpage.cpp: 6526 * Api/qwebpage.h: 6527 * QtLauncher/main.cpp: 6528 (MainWindow::MainWindow): 6529 * WebCoreSupport/ChromeClientQt.cpp: 6530 65312008-04-23 Simon Hausmann <hausmann@webkit.org> 6532 6533 Reviewed by Holger. 6534 6535 Fix parsing of external scripts/stylesheets when using setHtml(const QString &html). 6536 6537 We used to pass the html string to the frameloader in utf-16, which also meant that the default 6538 encoding of external scripts/stylesheets became utf-16. That doesn't make sense, so assume utf-8 6539 by default. This is now also documented. 6540 6541 * Api/qwebframe.cpp: 6542 (QWebFrame::setHtml): 6543 * Api/qwebview.cpp: 6544 65452008-04-23 Benjamin Meyer <bmeyer@trolltech.com> 6546 6547 Reviewed by Simon. 6548 6549 Fixes background color propagation when using a custom QWebPage 6550 6551 Set the palette in setPage(), not during the creation on-demand. 6552 6553 6554 * Api/qwebview.cpp: 6555 (QWebView::page): 6556 (QWebView::setPage): 6557 65582008-04-23 Benjamin Meyer <bmeyer@trolltech.com> 6559 6560 Reviewed by Simon. 6561 6562 Fix the user agent on the mac to be BSD4 6563 6564 Put Q_OS_DARWIN before Q_OS_BSD4 sense they are both defined on the mac 6565 6566 6567 * Api/qwebpage.cpp: 6568 (QWebPage::userAgentForUrl): 6569 65702008-04-23 Simon Hausmann <shausman@trolltech.com> 6571 6572 Reviewed by Holger. 6573 6574 Added missing copyright notice. 6575 Small fixes to the documentation. 6576 6577 * Api/qwebpluginfactory.cpp: 6578 65792008-04-23 Zack Rusin <zack@tungstengraphics.com> 6580 6581 Reviewed by Simon. 6582 6583 Added a contentsSize() property. 6584 6585 * Api/qwebframe.cpp: 6586 (QWebFrame::contentsSize): 6587 (QWebFrame::hitTestContent): 6588 * Api/qwebframe.h: 6589 65902008-04-22 Benjamin Meyer <bmeyer@trolltech.com> 6591 6592 Reviewed by Simon. 6593 6594 Fixes: QWebPage's QNetworkManager's can be shared among webpages. 6595 6596 Don't force the deletion of the object, but let QObject take care of it. 6597 6598 * Api/qwebpage.cpp: 6599 66002008-04-22 Simon Hausmann <hausmann@webkit.org> 6601 6602 Reviewed by Holger. 6603 6604 Documentation for QWebPluginFactory and documentation updates for QWebPage. 6605 6606 * Api/qwebpage.cpp: 6607 (QWebPage::setLinkDelegationPolicy): 6608 (QWebPage::linkDelegationPolicy): 6609 (QWebPage::swallowContextMenuEvent): 6610 (QWebPage::updatePositionDependentActions): 6611 (QWebPage::extension): 6612 (QWebPage::networkAccessManager): 6613 * Api/qwebpluginfactory.cpp: 6614 (QWebPluginFactory::QWebPluginFactory): 6615 (QWebPluginFactory::~QWebPluginFactory): 6616 (QWebPluginFactory::refreshPlugins): 6617 66182008-04-22 Simon Hausmann <hausmann@webkit.org> 6619 6620 Reviewed by Holger. 6621 6622 Added QWebPage::swallowContextMenuEvent and QWebPage::updatePositionDependentActions. 6623 6624 6625 * Api/qwebpage.cpp: 6626 (QWebPagePrivate::QWebPagePrivate): 6627 (QWebPagePrivate::mouseReleaseEvent): 6628 (QWebPage::setLinkDelegationPolicy): 6629 (QWebPage::linkDelegationPolicy): 6630 (QWebPage::swallowContextMenuEvent): 6631 (QWebPage::updatePositionDependentActions): 6632 * Api/qwebpage.h: 6633 * Api/qwebpage_p.h: 6634 * Api/qwebview.cpp: 6635 (QWebView::event): 6636 66372008-04-22 Simon Hausmann <hausmann@webkit.org> 6638 6639 Reviewed by Holger. 6640 6641 Added Extension APIs for QWebPage. 6642 6643 * Api/qwebpage.cpp: 6644 (QWebPage::setLinkDelegationPolicy): 6645 (QWebPage::linkDelegationPolicy): 6646 (QWebPage::extension): 6647 * Api/qwebpage.h: 6648 * Api/qwebpluginfactory.cpp: 6649 (QWebPluginFactory::extension): 6650 66512008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com> 6652 6653 Reviewed by Simon. 6654 6655 Emit loadProgress() signal on loadStarted(). 6656 6657 6658 * WebCoreSupport/FrameLoaderClientQt.cpp: 6659 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification): 6660 66612008-04-22 Zack Rusin <zack@kde.org> 6662 6663 Reviewed by Simon. 6664 6665 Fix background propagation from the QWebView's palette. 6666 6667 The background brush of the palette needs to be propagated to the WebCore::FrameView. 6668 6669 * Api/qwebframe.cpp: 6670 (QWebFramePrivate::updateBackground): 6671 * Api/qwebframe_p.h: 6672 * Api/qwebpage.cpp: 6673 (QWebPagePrivate::dropEvent): 6674 (QWebPage::setPalette): 6675 * Api/qwebpage.h: 6676 * Api/qwebpage_p.h: 6677 * Api/qwebview.cpp: 6678 (QWebView::page): 6679 (QWebView::changeEvent): 6680 * Api/qwebview.h: 6681 * WebCoreSupport/FrameLoaderClientQt.cpp: 6682 66832008-04-22 Benjamin Meyer <bmeyer@trolltech.com> 6684 6685 Reviewed by Simon. 6686 6687 Fix maps.google.com 6688 6689 We have to include a version in the Safari tag in the user-agent. 6690 6691 * Api/qwebpage.cpp: 6692 (QWebPage::userAgentForUrl): 6693 66942008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com> 6695 6696 Reviewed by Simon. 6697 6698 Add visual focusing hint for clear button and 6699 change focus to web page after user enters new URL. 6700 6701 * QtLauncher/main.cpp: 6702 (ClearButton::paintEvent): 6703 (MainWindow::changeLocation): 6704 67052008-04-22 Simon Hausmann <hausmann@webkit.org> 6706 6707 Reviewed by Holger. 6708 6709 Added QWebFrame::hitTestContent() and QWebHitTestResult. 6710 6711 * Api/qwebframe.cpp: 6712 (QWebFrame::hitTestContent): 6713 (QWebFrame::event): 6714 (QWebHitTestResult::QWebHitTestResult): 6715 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 6716 (QWebHitTestResult::operator=): 6717 (QWebHitTestResult::~QWebHitTestResult): 6718 (QWebHitTestResult::isNull): 6719 (QWebHitTestResult::pos): 6720 (QWebHitTestResult::title): 6721 (QWebHitTestResult::linkText): 6722 (QWebHitTestResult::linkUrl): 6723 (QWebHitTestResult::linkTitle): 6724 (QWebHitTestResult::linkTargetFrame): 6725 (QWebHitTestResult::alternateText): 6726 (QWebHitTestResult::imageUrl): 6727 (QWebHitTestResult::pixmap): 6728 (QWebHitTestResult::isContentEditable): 6729 (QWebHitTestResult::isContentSelected): 6730 (QWebHitTestResult::frame): 6731 * Api/qwebframe.h: 6732 * Api/qwebframe_p.h: 6733 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 6734 * Api/qwebpage.cpp: 6735 (QWebPagePrivate::contextMenuEvent): 6736 (QWebPage::triggerAction): 6737 * Api/qwebpage.h: 6738 * Api/qwebpage_p.h: 6739 67402008-04-22 Simon Hausmann <hausmann@webkit.org> 6741 6742 Reviewed by Holger. 6743 6744 Don't crash if an input method query is done without a page. 6745 6746 6747 * Api/qwebview.cpp: 6748 (QWebView::inputMethodQuery): 6749 67502008-04-22 Simon Hausmann <hausmann@webkit.org> 6751 6752 Reviewed by Holger. 6753 6754 Added re-implementations of QObject::event for future safety. 6755 6756 This makes it easier to fix bugs with the event handling even in patch releases 6757 and is a general style we follow in Qt. 6758 6759 6760 * Api/qwebframe.cpp: 6761 * Api/qwebframe.h: 6762 * Api/qwebview.cpp: 6763 (QWebView::event): 6764 * Api/qwebview.h: 6765 67662008-04-22 Benjamin Meyer <bmeyer@trolltech.com> 6767 6768 Reviewed by Simon. 6769 6770 Fix construction of the user agent. 6771 6772 The user-agent is now composed of 6773 * the platform and subplatform 6774 * the Qt version or application name and version (if set) 6775 * the locale 6776 * the SSL settings 6777 6778 6779 * Api/qwebpage.cpp: 6780 (QWebPage::networkAccessManager): 6781 (QWebPage::setPluginFactory): 6782 (QWebPage::pluginFactory): 6783 (QWebPage::userAgentForUrl): 6784 * QtLauncher/main.cpp: 6785 67862008-04-22 Thiago Macieira <tjmaciei@trolltech.com> 6787 6788 Reviewed by Simon. 6789 6790 Fixes: Pedantic compilation fix 6791 6792 Don't put semi-colons after braces closing namespaces. 6793 6794 * Api/qwebsettings.h: 6795 67962008-04-21 Simon Hausmann <hausmann@webkit.org> 6797 6798 Reviewed by Lars. 6799 6800 Changed the return type of QWebFrame::evaluateJavaScript from a QString to a QVariant. 6801 6802 * Api/qwebframe.cpp: 6803 (QWebFrame::evaluateJavaScript): 6804 * Api/qwebframe.h: 6805 68062008-04-21 Simon Hausmann <hausmann@webkit.org> 6807 6808 Reviewed by Holger. 6809 6810 Fixes redundant "Fonts" submenu in default lineedits that has only disabled items. 6811 6812 Don't show sub-menus that have only actions that are disabled. 6813 6814 * Api/qwebpage.cpp: 6815 (QWebPagePrivate::createContextMenu): 6816 68172008-04-21 Kavindra Devi Palaraja <kdpalara@trolltech.com>. 6818 6819 Reviewed by Simon. 6820 6821 Lots of documentation fixes, fixed all qdoc warnings. 6822 6823 * Api/qwebframe.cpp: 6824 (QWebFrame::setTextSizeMultiplier): 6825 * Api/qwebhistoryinterface.cpp: 6826 (gCleanupInterface): 6827 (QWebHistoryInterface::QWebHistoryInterface): 6828 (QWebHistoryInterface::~QWebHistoryInterface): 6829 * Api/qwebpage.cpp: 6830 (QWebPage::inputMethodQuery): 6831 (QWebPage::view): 6832 (QWebPage::javaScriptConsoleMessage): 6833 (QWebPage::javaScriptAlert): 6834 (QWebPage::javaScriptConfirm): 6835 (QWebPage::javaScriptPrompt): 6836 (QWebPage::viewportSize): 6837 (QWebPage::acceptNavigationRequest): 6838 (QWebPage::action): 6839 (QWebPage::event): 6840 (QWebPage::focusNextPrevChild): 6841 (QWebPage::setForwardUnsupportedContent): 6842 (QWebPage::setLinkDelegationPolicy): 6843 (QWebPage::findText): 6844 (QWebPage::settings): 6845 (QWebPage::networkProxy): 6846 (QWebPage::setNetworkAccessManager): 6847 * Api/qwebpage.h: 6848 * Api/qwebsettings.cpp: 6849 (QWebSettings::QWebSettings): 6850 (QWebSettings::setIconDatabasePath): 6851 (QWebSettings::iconForUrl): 6852 (QWebSettings::fontFamily): 6853 * Api/qwebview.cpp: 6854 (QWebView::load): 6855 * Api/qwebview.h: 6856 68572008-04-21 Marius Bugge Monsen <mmonsen@trolltech.com> 6858 6859 Reviewed by Simon. 6860 6861 Fix compile failure on solaris-cc 6862 6863 * Api/qwebpage.h: Removed trailing semicolons and moved the private 6864 d-pointer to not confuse the compiler 6865 68662008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 6867 6868 Reviewed by Simon. 6869 6870 Build fix for Qt 4.3 6871 6872 * When building WebCore/internal make sure the QT_[BEGIN,END]_NAMESPACE is 6873 always defined. Do this by adding defines to the compiler line 6874 * For users of our API this is not feasible. Every public header file should 6875 include qwebkitglobal.h. Define the QT_BEGIN_NAMESPACE and QT_END_NAMESPACE 6876 when we are building everything < 4.4.0 and don't have them defined. 6877 6878 * Api/qwebkitglobal.h: 6879 68802008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 6881 6882 Reviewed by Simon. 6883 6884 * Initialize the WebGraphics with the one found in WebCore 6885 6886 6887 * Api/qwebsettings.cpp: 6888 (QWebSettingsPrivate::apply): 6889 68902008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 6891 6892 Reviewed by Simon. 6893 6894 * Allow TextAreas to be resized. 6895 * No QWebSettings for this is introduced. 6896 6897 6898 * Api/qwebsettings.cpp: 6899 (QWebSettingsPrivate::apply): 6900 69012008-04-21 Simon Hausmann <shausman@trolltech.com> 6902 6903 Reviewed by Holger. 6904 6905 Fixes: QWebView::url property behaviour strange in designer 6906 6907 Added QWebView/QWebFrame::setUrl, which unlike load() clears the view immediately, schedules a load of the url but also makes sure url() returns the set url. This setter is now also used for the url property. 6908 6909 * Api/qwebframe.cpp: 6910 (QWebFrame::setUrl): 6911 * Api/qwebframe.h: 6912 * Api/qwebview.cpp: 6913 (QWebView::setUrl): 6914 * Api/qwebview.h: 6915 69162008-04-21 Andre Poenitz <andre.poenitz@trolltech.com> 6917 6918 Reviewed by Simon Hausmann <hausmann@webkit.org>. 6919 6920 Fix compilation with Qt namespaces 6921 6922 * Api/qwebframe.cpp: 6923 (QWebFrame::print): 6924 * Api/qwebview.h: 6925 69262008-04-21 Simon Hausmann <hausmann@webkit.org> 6927 6928 Reviewed by Holger. 6929 6930 When printing on high resolution printers we need to scale the painter accordingly (for now). 6931 6932 * Api/qwebframe.cpp: 6933 (QWebFrame::print): 6934 69352008-04-21 Simon Hausmann <hausmann@webkit.org> 6936 6937 Reviewed by Holger. 6938 6939 Provide a print preview in the QtLauncher 6940 6941 * QtLauncher/main.cpp: 6942 (MainWindow::MainWindow): 6943 (MainWindow::showLinkHover): 6944 (MainWindow::print): 6945 69462008-04-20 Simon Hausmann <hausmann@webkit.org> 6947 6948 Reviewed by Alp Toker. 6949 6950 Share the printing code between the Gtk and the Qt port 6951 and added printing to the Qt WebKit API. 6952 6953 * Api/qwebframe.cpp: 6954 (QWebFrame::print): 6955 * Api/qwebframe.h: 6956 * Api/qwebview.cpp: 6957 (QWebView::print): 6958 * Api/qwebview.h: 6959 69602008-04-19 Julien Chaffraix <jchaffraix@webkit.org> 6961 6962 Qt build fix (renderer() -> contentRenderer()). 6963 6964 * Api/qwebframe.cpp: 6965 (QWebFrame::renderTreeDump): 6966 (QWebFrame::render): 6967 69682008-04-18 Simon Hausmann <hausmann@webkit.org> 6969 6970 Reviewed by Holger. 6971 6972 Many API changes and additions after a full review with Jasmin Blanchette <jasmin@trolltech.com> 6973 6974 The diff is too big to mention the changes individually, but most of the changes were of cosmetic 6975 nature where methods or enums have been renamed or prefixed/suffixed according to the consistency 6976 rules of the Qt API. 6977 6978 * Api/qwebframe.cpp: 6979 (QWebFrame::addToJavaScriptWindowObject): 6980 (QWebFrame::toHtml): 6981 (QWebFrame::toPlainText): 6982 (QWebFrame::icon): 6983 (QWebFrame::setContent): 6984 (QWebFrame::setScrollBarPolicy): 6985 (QWebFrame::render): 6986 (QWebFrame::setTextSizeMultiplier): 6987 (QWebFrame::textSizeMultiplier): 6988 (QWebFrame::pos): 6989 * Api/qwebframe.h: 6990 * Api/qwebhistory.cpp: 6991 * Api/qwebhistory.h: 6992 * Api/qwebpage.cpp: 6993 (QWebPagePrivate::QWebPagePrivate): 6994 (QWebPagePrivate::~QWebPagePrivate): 6995 (QWebPagePrivate::acceptNavigationRequest): 6996 (webActionForContextMenuAction): 6997 (QWebPagePrivate::updateAction): 6998 (QWebPagePrivate::keyPressEvent): 6999 (QWebPage::view): 7000 (QWebPage::javaScriptPrompt): 7001 (QWebPage::createWindow): 7002 (QWebPage::triggerAction): 7003 (QWebPage::setViewportSize): 7004 (QWebPage::acceptNavigationRequest): 7005 (QWebPage::action): 7006 (QWebPage::focusNextPrevChild): 7007 (QWebPage::setForwardUnsupportedContent): 7008 (QWebPage::forwardUnsupportedContent): 7009 (QWebPage::setLinkDelegationPolicy): 7010 (QWebPage::findText): 7011 (QWebPage::networkAccessManager): 7012 (QWebPageContext::imageUrl): 7013 (QWebPageContext::image): 7014 * Api/qwebpage.h: 7015 * Api/qwebpage_p.h: 7016 * Api/qwebsettings.cpp: 7017 (QWebSettingsPrivate::apply): 7018 (QWebSettings::QWebSettings): 7019 (QWebSettings::setIconDatabasePath): 7020 (QWebSettings::iconDatabasePath): 7021 (QWebSettings::clearIconDatabase): 7022 (QWebSettings::iconForUrl): 7023 (QWebSettings::setWebGraphic): 7024 (QWebSettings::fontFamily): 7025 (QWebSettings::setAttribute): 7026 (QWebSettings::testAttribute): 7027 (QWebSettings::resetAttribute): 7028 * Api/qwebsettings.h: 7029 * Api/qwebview.cpp: 7030 (QWebView::setPage): 7031 (QWebView::icon): 7032 (QWebView::setTextSizeMultiplier): 7033 (QWebView::textSizeMultiplier): 7034 (QWebView::findText): 7035 (QWebView::reload): 7036 (QWebView::mouseMoveEvent): 7037 * Api/qwebview.h: 7038 * QtLauncher/main.cpp: 7039 (MainWindow::MainWindow): 7040 (main): 7041 * WebCoreSupport/ChromeClientQt.cpp: 7042 (WebCore::ChromeClientQt::ChromeClientQt): 7043 (WebCore::ChromeClientQt::setWindowRect): 7044 (WebCore::ChromeClientQt::toolbarsVisible): 7045 (WebCore::ChromeClientQt::setStatusbarVisible): 7046 (WebCore::ChromeClientQt::statusbarVisible): 7047 (WebCore::ChromeClientQt::setScrollbarsVisible): 7048 (WebCore::ChromeClientQt::setResizable): 7049 (WebCore::ChromeClientQt::scrollBackingStore): 7050 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 7051 (WebCore::ChromeClientQt::setToolTip): 7052 * WebCoreSupport/ChromeClientQt.h: 7053 * WebCoreSupport/FrameLoaderClientQt.cpp: 7054 (WebCore::FrameLoaderClientQt::setFrame): 7055 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation): 7056 (WebCore::FrameLoaderClientQt::setMainDocumentError): 7057 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 7058 (WebCore::FrameLoaderClientQt::createFrame): 7059 (WebCore::FrameLoaderClientQt::objectContentType): 7060 * WebCoreSupport/FrameLoaderClientQt.h: 7061 * WebCoreSupport/InspectorClientQt.cpp: 7062 70632008-04-18 Simon Hausmann <hausmann@webkit.org> 7064 7065 Reviewed by Holger. 7066 7067 Added QWebView::find/QWebFrame::find. 7068 7069 * Api/qwebpage.cpp: 7070 (QWebPage::focusNextPrevChild): 7071 (QWebPage::find): 7072 * Api/qwebpage.h: 7073 * Api/qwebview.cpp: 7074 (QWebView::find): 7075 * Api/qwebview.h: 7076 70772008-04-15 Ariya Hidayat <ariya.hidayat@trolltech.com> 7078 7079 Reviewed by Simon. 7080 7081 fix potential crash when loading image(s) 7082 7083 Crash may occur. If compiled with 4.3, the variable is not initialized. 7084 This fix solves https://bugs.webkit.org/show_bug.cgi?id=17174 7085 7086 * Api/qwebpage.cpp: 7087 (QWebPagePrivate::QWebPagePrivate): 7088 70892008-04-15 Simon Hausmann <hausmann@webkit.org> 7090 7091 Reviewed by Holger. 7092 7093 Update the micro focus for input methods as soon as the composition mode changes 7094 or the caret/selection changes. 7095 7096 7097 * Api/qwebpage.cpp: 7098 * Api/qwebpage.h: 7099 * Api/qwebview.cpp: 7100 (QWebView::setPage): 7101 * WebCoreSupport/EditorClientQt.cpp: 7102 (WebCore::EditorClientQt::respondToChangedSelection): 7103 (WebCore::EditorClientQt::setInputMethodState): 7104 71052008-04-15 Simon Hausmann <hausmann@webkit.org> 7106 7107 Reviewed by Holger. 7108 7109 Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application, 7110 it yields undefined behaviour or wrong default codec initialization. 7111 7112 7113 * QtLauncher/main.cpp: 7114 (WebPage::createWindow): 7115 71162008-04-15 Olivier Goffart <ogoffart@trolltech.com> 7117 7118 Reviewed by Simon. 7119 7120 Fixes: copy to clipboard when selecting, and paste when clicking with the middle button 7121 7122 * Api/qwebpage.cpp: 7123 (QWebPagePrivate::mouseReleaseEvent): If the clipboard supports 7124 selections then we support copy & paste into the selection. 7125 71262008-04-15 Michael Brasser <michael.brasser@trolltech.com> 7127 7128 Reviewed by Simon. 7129 7130 Add basic input method support. 7131 7132 7133 * Api/qwebpage.cpp: 7134 (QWebPagePrivate::dropEvent): 7135 (QWebPagePrivate::inputMethodEvent): 7136 (QWebPage::inputMethodQuery): 7137 (QWebPage::event): 7138 * Api/qwebpage.h: 7139 * Api/qwebpage_p.h: 7140 * Api/qwebview.cpp: 7141 (QWebView::QWebView): 7142 (QWebView::inputMethodQuery): 7143 (QWebView::inputMethodEvent): 7144 * Api/qwebview.h: 7145 * WebCoreSupport/EditorClientQt.cpp: 7146 (WebCore::EditorClientQt::setInputMethodState): 7147 71482008-04-15 Simon Hausmann <hausmann@webkit.org> 7149 7150 Reviewed by Holger. 7151 7152 Added (QWebFrame|QWebView)::textZoomFactor. 7153 7154 7155 * Api/qwebframe.cpp: 7156 (QWebFrame::setTextZoomFactor): 7157 (QWebFrame::textZoomFactor): 7158 * Api/qwebframe.h: 7159 * Api/qwebview.cpp: 7160 (QWebView::setTextZoomFactor): 7161 (QWebView::textZoomFactor): 7162 * Api/qwebview.h: 7163 71642008-04-15 Michael Brasser <michael.brasser@trolltech.com> 7165 7166 Reviewed by Simon. 7167 7168 Added simple scrolling API to QWebFrame. 7169 7170 The intent is that it works similar to QAbstractScrollArea. 7171 7172 7173 * Api/qwebframe.cpp: 7174 (QWebFrame::setScrollBarValue): 7175 (QWebFrame::scrollBarValue): 7176 (QWebFrame::scrollBarMaximum): 7177 (QWebFrame::scrollBarMinimum): 7178 * Api/qwebframe.h: 7179 71802008-04-15 Olivier Goffart <ogoffart@trolltech.com> 7181 7182 Reviewed by Holger. 7183 7184 Fixes: implement the OpenFrameInNewWindow action. 7185 7186 7187 * Api/qwebpage.cpp: 7188 (QWebPage::triggerAction): 7189 71902008-04-15 Andre Poenitz <andre.poenitz@trolltech.com> 7191 7192 Reviewed by Simon. 7193 7194 Fix compilation with Qt namespaces 7195 7196 Qt can be configured to have all of its classes inside a specified namespaces. 7197 This is for example used in plugin/component environments like Eclipse. 7198 7199 This change makes it possible to let the Qt port compile against a namespaced 7200 Qt by the use of macros Qt provides to properly forward declare Qt classes in 7201 the namespace. 7202 7203 * Api/qwebframe.h: 7204 * Api/qwebpage.h: 7205 * Api/qwebpage_p.h: 7206 * Api/qwebpluginfactory.h: 7207 * Api/qwebsettings.h: 7208 * Api/qwebview.h: 7209 72102008-04-05 Olivier Goffart <ogoffart@trolltech.com> 7211 7212 Reviewed by Holger. 7213 7214 Fixes: Right clicking an image and choosing "copy image" doesnt put anything in the clipboard. 7215 7216 7217 * Api/qwebpage.cpp: 7218 (QWebPage::triggerAction): 7219 72202008-04-05 Olivier Goffart <ogoffart@trolltech.com> 7221 7222 Reviewed by Simon. 7223 7224 Fixes: Right click, and "Open image" open the link instead of the image. 7225 7226 7227 * Api/qwebpage.cpp: 7228 72292008-04-05 Benjamin Meyer <bmeyer@trolltech.com> 7230 7231 Reviewed by Simon. 7232 7233 Added doc stub for QWebSettings so class docs are generated 7234 7235 7236 * Api/qwebsettings.cpp: 7237 (QWebSettings::QWebSettings): 7238 72392008-04-05 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7240 7241 Reviewed by Simon. 7242 7243 * Propose the addition of updateRequest and scrollRequest to the QWebPage. 7244 7245 * The question is if these signals belong to QWebPage or QWebFrame. 7246 -It is more easy to have them in QWebPage because ScrollView is invoking 7247 the ChromeClient with the right coordinates 7248 -On the other hand someone wants to render frames separately. But this is partly 7249 doomed as you can have overlapping frames and what you paint would not relate to 7250 what you normally see on webpages. 7251 7252 7253 * Api/qwebpage.cpp: 7254 * Api/qwebpage.h: 7255 * WebCoreSupport/ChromeClientQt.cpp: 7256 (WebCore::ChromeClientQt::scrollBackingStore): 7257 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 7258 72592008-04-03 Simon Hausmann <hausmann@webkit.org> 7260 7261 Reviewed by Mark Rowe. 7262 7263 Roll out r31599 and r31605 again after discussion with Mark Rowe. 7264 7265 * Api/qwebframe.cpp: 7266 (QWebFrame::icon): 7267 * Api/qwebsettings.cpp: 7268 (QWebSettings::iconForUrl): 7269 72702008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7271 7272 Reviewed by Simon. 7273 7274 * Change IconDatabase::iconForPageURL to return more information. E.g. if 7275 an image has been found, or if the loading of an image has been scheduled. 7276 * Update FrameLoader to use another method to trigger reading from disk 7277 * Update the QWebFrame and QWebSettings 7278 7279 * Api/qwebframe.cpp: 7280 (QWebFrame::icon): 7281 * Api/qwebsettings.cpp: 7282 (QWebSettings::iconForUrl): 7283 72842008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7285 7286 Reviewed by Simon. 7287 7288 * Safari is using the IconDatabase the following way (assumption). Before they 7289 call iconDatabase()->open they "retain" all URLs they are interested in, these 7290 could come from the history. 7291 * When opening the iconDatabase() a thread will be started that is going to import 7292 the URLs, all none manually retained URLs are scheduled for removal. The removal 7293 is going to happen when the next icon gets stored in the database. 7294 * We do not have any IconDatabase code, we can not retain the URLs before opening the 7295 database. To disable the automatic pruning of the icons we will ask the IconDatabase 7296 to delay this operation. This means our IconDatabase, when used, will grow, so we should 7297 try to have a IconDatabase class in 4.4. 7298 * The only way to counter the growth is a call to QWebSettings::clearIconDatabase 7299 7300 7301 * Api/qwebsettings.cpp: 7302 (QWebSettings::clearIconDatabase): 7303 * Api/qwebsettings.h: 7304 73052008-04-03 Benjamin Meyer <bmeyer@trolltech.com> 7306 7307 Reviewed by Simon. 7308 7309 Add a way to get the site icon for a url 7310 static QPixmap iconForUrl(const QUrl &url); 7311 7312 7313 * Api/qwebsettings.cpp: 7314 (QWebSettings::iconForUrl): 7315 * Api/qwebsettings.h: 7316 73172008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7318 7319 Reviewed by Simon. 7320 7321 * Update the Copyright info in QWebSettings 7322 7323 7324 * Api/qwebsettings.cpp: 7325 * Api/qwebsettings.h: 7326 73272008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7328 7329 Reviewed by Simon. 7330 7331 * The isEmpty check is not needed anymore with the earlier backport 7332 7333 7334 * Api/qwebframe.cpp: 7335 (QWebFrame::icon): 7336 73372008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7338 7339 Reviewed by Simon. 7340 7341 * For the http tests we need the output of the FrameLoaderClient. The QtWebKit API 7342 is not exporting enough to create the output in DRT itself. Settle with the approach 7343 Lars has taken for the Editing support and add branches to our FrameLoaderClient code. 7344 * run-webkit-tests http/tests(/loading) can now be executed. 7345 * For tests in loading/ directories we are going to throw away the dirty 7346 QWebPage to start with something clean. 7347 7348 7349 * WebCoreSupport/FrameLoaderClientQt.cpp: 7350 (qt_dump_frame_loader): 7351 (drtDescriptionSuitableForTestResult): 7352 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad): 7353 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect): 7354 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect): 7355 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage): 7356 (WebCore::FrameLoaderClientQt::dispatchWillClose): 7357 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad): 7358 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle): 7359 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad): 7360 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): 7361 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 7362 (WebCore::FrameLoaderClientQt::registerForIconNotification): 7363 (WebCore::FrameLoaderClientQt::setMainDocumentError): 7364 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 7365 73662008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7367 7368 Reviewed by Simon. 7369 7370 * Export the PageCache and Cache capacity call one to one. This is only there 7371 to allow the QtLauncher to play with caching. 7372 * TODO: make API decisions and consider following the windows Api to set a WebCacheModel 7373 and determine certain values automatically. 7374 7375 7376 * Api/qwebsettings.cpp: 7377 (QWebSettings::setPageCacheCapacity): 7378 (QWebSettings::setObjectCacheCapacities): 7379 * Api/qwebsettings.h: 7380 * QtLauncher/main.cpp: 7381 73822008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7383 7384 Reviewed by Simon. 7385 7386 Prepapre everything for enabling the PageCache for the Qt Platform: 7387 * Claim that we can cache pages 7388 * Create the FrameView FrameLoaderClientQt::transitionToCommittedForNewPage using 7389 the initial size of the viewport and stop creating it in the QWebFramePrivate::init 7390 7391 Differences to the Windows port: 7392 * attachToWindow/detachFromWindow is not called and is not (yet) part 7393 of Widget/ScrollView of the Qt platform. We might need that for plugin 7394 support in the future. 7395 * We store the margin's and scrolling flag inside QWebFrame and use it when 7396 creating the FrameView. 7397 7398 What is missing: 7399 * API to call pageCache()->setCapacity(XYZ); 7400 7401 7402 * Api/qwebframe.cpp: 7403 (QWebFramePrivate::init): 7404 * Api/qwebframe_p.h: 7405 (QWebFramePrivate::QWebFramePrivate): 7406 * Api/qwebpage.cpp: 7407 (QWebPagePrivate::createMainFrame): 7408 * WebCoreSupport/FrameLoaderClientQt.cpp: 7409 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 7410 (WebCore::FrameLoaderClientQt::blockedError): 7411 74122008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7413 7414 Reviewed by Simon. 7415 7416 * For the PageCache support we do not want to create a FrameView in the constructor 7417 of QWebFrame. In QWegPage::viewportSize() we currently call mainFrame() and that will 7418 create a QWebFrame if no mainFrame is present and this gets called when we try to 7419 create a FrameView... 7420 * Keep a copy of the initial viewportSize around and use it if we do not have a Frame 7421 or FrameView. 7422 7423 7424 * Api/qwebpage.cpp: 7425 (QWebPagePrivate::QWebPagePrivate): 7426 (QWebPage::triggerAction): 7427 * Api/qwebpage_p.h: 7428 74292008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7430 7431 Reviewed by Simon. 7432 7433 * Always return true in FrameLoaderClientQt::shouldGoToHistoryItem, like the windows port 7434 7435 * WebCoreSupport/FrameLoaderClientQt.cpp: 7436 (WebCore::): 7437 74382008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7439 7440 Reviewed by Simon. 7441 7442 * Attempt to make the m_webFrame null pointer checking consistent. Always check for 7443 m_webFrame. It should get set by the QWebFrame with the FramerLoaderClientQt::setFrame 7444 call and should stay valid until the destruction of the QWebFrame. 7445 * Currently the same checking is not needed for m_frame as it will only set to 0 in 7446 FrameLoaderClientQt::frameLoaderDestroyed and should be not 0 because of the setFrame 7447 initialisation. 7448 7449 7450 * WebCoreSupport/FrameLoaderClientQt.cpp: 7451 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle): 7452 (WebCore::FrameLoaderClientQt::setMainDocumentError): 7453 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength): 7454 (WebCore::FrameLoaderClientQt::objectContentType): 7455 (WebCore::FrameLoaderClientQt::createPlugin): 7456 74572008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7458 7459 Reviewed by Simon. 7460 7461 * Get the RefCounting of WebCore::Frame right and make sure that both QWebFrame 7462 and WebCore::Frame get destroyed if we leave site with subframes and on the 7463 end of the application. 7464 * Use adoptRef in FrameLoaderClientQt::createFrame to get the refs right for subframes. We 7465 do not want to add an extra reference. Without this we are leaking subframes. 7466 * Assume that the lifetime of a Frame and FrameLoader are the same, when the Frame is gone 7467 we want to destroy the QWebFrame (e.g. on a page with subframes). Add delete m_webFrame 7468 in the frameLoaderDestroyed method to do that. 7469 * If we happen to delete the QWebFrame before the FrameLoaderClientQt we set m_webFrame to 7470 zero in the FrameLoaderClientQt to avoid bad things. 7471 7472 7473 * Api/qwebframe.cpp: 7474 (QWebFrame::~QWebFrame): 7475 * WebCoreSupport/FrameLoaderClientQt.cpp: 7476 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem): 7477 (WebCore::FrameLoaderClientQt::objectContentType): 7478 * WebCoreSupport/FrameLoaderClientQt.h: 7479 74802008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7481 7482 Reviewed by Simon. 7483 7484 * Do not save a RefPtr to the frame. The FrameLoaderClient, Frame and 7485 QWebFrame should have the same lifetime everything else is a leak 7486 or issue. 7487 7488 * Api/qwebframe.cpp: 7489 (QWebFramePrivate::init): 7490 * Api/qwebframe_p.h: 7491 * WebCoreSupport/FrameLoaderClientQt.cpp: 7492 74932008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7494 7495 Reviewed by Simon. 7496 7497 * Do not store the QWebFrame associated with a ScrollView/FrameView 7498 in the WebCore::Widget. 7499 * Instead of asking the Widget for the QWebFrame use the QWebFramePrivate::core 7500 and QWebFramePrivate::kit function to convert from and to QWebFrame. 7501 7502 7503 * Api/qwebframe.cpp: 7504 (QWebFramePrivate::init): 7505 * Api/qwebpage.cpp: 7506 (QWebPagePrivate::createMainFrame): 7507 75082008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7509 7510 Reviewed by Simon. 7511 7512 * Do not store the FrameView in the QWebFrame and cope with the situation when 7513 a WebCore::Frame has no WebCore::FrameView. 7514 7515 7516 * Api/qwebframe.cpp: 7517 (QWebFramePrivate::init): 7518 (QWebFramePrivate::horizontalScrollBar): 7519 (QWebFramePrivate::verticalScrollBar): 7520 (QWebFrame::innerText): 7521 (QWebFrame::renderTreeDump): 7522 (QWebFrame::setVerticalScrollBarPolicy): 7523 (QWebFrame::setHorizontalScrollBarPolicy): 7524 (QWebFrame::render): 7525 (QWebFrame::layout): 7526 (QWebFrame::pos): 7527 * Api/qwebframe_p.h: 7528 (QWebFramePrivate::QWebFramePrivate): 7529 * Api/qwebpage.cpp: 7530 (QWebPagePrivate::updateEditorActions): 7531 (QWebPagePrivate::mouseMoveEvent): 7532 (QWebPagePrivate::mousePressEvent): 7533 (QWebPagePrivate::mouseDoubleClickEvent): 7534 (QWebPagePrivate::contextMenuEvent): 7535 (QWebPagePrivate::wheelEvent): 7536 (QWebPage::triggerAction): 7537 * WebCoreSupport/FrameLoaderClientQt.cpp: 7538 75392008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7540 7541 Reviewed by Simon. 7542 7543 * Change the order of the methods to match with the FrameLoaderClient.h to ease 7544 removing methods in the future. 7545 7546 * WebCoreSupport/FrameLoaderClientQt.h: 7547 75482008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7549 7550 Reviewed by Simon. 7551 7552 * Remove virtuals in the FrameLoaderClientQt that don't exist in the base class. 7553 7554 * WebCoreSupport/FrameLoaderClientQt.cpp: 7555 (WebCore::FrameLoaderClientQt::detachedFromParent4): 7556 * WebCoreSupport/FrameLoaderClientQt.h: 7557 75582008-03-25 Brady Eidson <beidson@apple.com> 7559 7560 Reviewed by Darin 7561 7562 Remove newly obsolete FrameLoaderClient methods 7563 7564 * WebCoreSupport/FrameLoaderClientQt.cpp: 7565 * WebCoreSupport/FrameLoaderClientQt.h: 7566 75672008-03-22 Mark Rowe <mrowe@apple.com> 7568 7569 Qt build fix. 7570 7571 * WebCoreSupport/FrameLoaderClientQt.cpp: 7572 (WebCore::): 7573 75742008-03-18 Simon Hausmann <hausmann@webkit.org> 7575 7576 Reviewed by Holger. 7577 7578 Fix the Qt build. Don't return void in non-void functions. 7579 7580 * Api/qwebpluginfactory.cpp: 7581 (QWebPluginFactory::extension): 7582 75832008-03-16 Thiago Macieira <thiago.macieira@trolltech.com> 7584 7585 Reviewed by Simon. 7586 7587 Don't use RefPtr in classes you haven't seen the implementation of. 7588 7589 Forward-declaration and declaration of RefPtr<Foo> is ok. But you 7590 cannot *use* said objects until Foo is defined. This is true even for 7591 initialisation with a 0. 7592 7593 Seems the HP aCC compiler is more strict here than gcc. 7594 7595 * Api/qwebframe_p.h: 7596 75972008-03-14 Simon Hausmann <hausmann@webkit.org> 7598 7599 Fix the Qt build. 7600 7601 * Api/qwebframe.cpp: 7602 (QWebFrame::setHtml): 7603 (QWebFrame::setContent): 7604 76052008-03-13 Simon Hausmann <hausmann@webkit.org> 7606 7607 Fix the Qt build. 7608 7609 * Api/qwebframe.cpp: 7610 (QWebFrame::addToJSWindowObject): 7611 76122008-03-12 Simon Hausmann <hausmann@webkit.org> 7613 7614 Fix compilation against Qt 4.3 7615 7616 * Api/qwebpage.cpp: 7617 * Api/qwebpage.h: 7618 * Api/qwebpage_p.h: 7619 76202008-03-11 Rodney Dawes <dobey@wayofthemonkey.com> 7621 7622 Fix the Qt build. 7623 7624 * WebCoreSupport/FrameLoaderClientQt.cpp: 7625 (FrameLoaderClientQt::CreatePlugin): 7626 76272008-03-11 Simon Hausmann <hausmann@webkit.org> 7628 7629 Fix the Qt build (silly typo). 7630 7631 * QtLauncher/main.cpp: 7632 (MainWindow::MainWindow): 7633 76342008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com> 7635 7636 Reviewed by Simon. 7637 7638 Moved obscuring progress bar to the lower right corner. 7639 7640 * QtLauncher/main.cpp: 7641 (MainWindow::MainWindow): 7642 (MainWindow::resizeEvent): 7643 76442008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com> 7645 7646 Reviewed by Simon. 7647 7648 Added reload action and grouped stop and reload actions together. 7649 7650 * QtLauncher/main.cpp: 7651 (MainWindow::MainWindow): 7652 76532008-03-11 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7654 7655 Reviewed by Simon. 7656 7657 * Set a Icon on the QAction if we have one. 7658 7659 * Api/qwebpage.cpp: 7660 (QWebPage::action): 7661 76622008-03-11 Simon Hausmann <hausmann@webkit.org> 7663 7664 Fix the Qt build. 7665 7666 * Api/qwebframe.cpp: 7667 (QWebFrame::addToJSWindowObject): 7668 76692008-03-07 Simon Hausmann <hausmann@webkit.org> 7670 7671 Reviewed by Darin Adler. 7672 7673 Done with Lars. 7674 7675 Replaced the QWebObjectPlugin interfaces with QWebPluginFactory. 7676 7677 * Api/qwebnetworkinterface.cpp: 7678 (QWebNetworkManager::add): 7679 (QWebNetworkManager::cancel): 7680 (QWebNetworkManager::started): 7681 (QWebNetworkManager::data): 7682 (QWebNetworkManager::finished): 7683 * Api/qwebnetworkinterface_p.h: 7684 (QWebNetworkJobPrivate::QWebNetworkJobPrivate): 7685 * Api/qwebobjectplugin.cpp: Removed. 7686 * Api/qwebobjectplugin.h: Removed. 7687 * Api/qwebobjectplugin_p.h: Removed. 7688 * Api/qwebobjectpluginconnector.cpp: Removed. 7689 * Api/qwebobjectpluginconnector.h: Removed. 7690 * Api/qwebpage.cpp: 7691 (QWebPagePrivate::QWebPagePrivate): 7692 (QWebPage::setPluginFactory): 7693 (QWebPage::pluginFactory): 7694 * Api/qwebpage.h: 7695 * Api/qwebpage_p.h: 7696 * Api/qwebpluginfactory.cpp: Added. 7697 (QWebPluginFactory::QWebPluginFactory): 7698 (QWebPluginFactory::~QWebPluginFactory): 7699 (QWebPluginFactory::refreshPlugins): 7700 (QWebPluginFactory::extension): 7701 * Api/qwebpluginfactory.h: Added. 7702 (MimeType::): 7703 * WebCoreSupport/FrameLoaderClientQt.cpp: 7704 (WebCore::FrameLoaderClientQt::objectContentType): 7705 (WebCore::FrameLoaderClientQt::createPlugin): 7706 77072008-03-07 Simon Hausmann <hausmann@webkit.org> 7708 7709 Fix the Qt build. 7710 7711 * Api/qwebframe.cpp: 7712 77132008-03-04 Sam Weinig <sam@webkit.org> 7714 7715 Reviewed by Mark Rowe. 7716 7717 - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including 7718 JSDOMWindow.h 7719 7720 * Api/qwebframe.cpp: 7721 (QWebFrame::addToJSWindowObject): 7722 77232008-03-04 Mark Rowe <mrowe@apple.com> 7724 7725 Another go at fixing the Qt build. 7726 7727 * Api/qwebframe.cpp: 7728 (QWebFrame::addToJSWindowObject): 7729 77302008-02-24 Darin Adler <darin@apple.com> 7731 7732 Reviewed by Sam. 7733 7734 - remove separate client calls for "standard" and "reload' history 7735 7736 * WebCoreSupport/FrameLoaderClientQt.cpp: 7737 (WebCore::FrameLoaderClientQt::updateGlobalHistory): 7738 * WebCoreSupport/FrameLoaderClientQt.h: 7739 77402008-02-24 Darin Adler <darin@apple.com> 7741 7742 - another try at fixing the build 7743 7744 * Api/qwebframe.cpp: 7745 (QWebFrame::load): Replace new FormData with FormData::create. 7746 77472008-02-22 Sam Weinig <sam@webkit.org> 7748 7749 Fix Qt build. 7750 7751 * Api/qwebhistoryinterface.cpp: 7752 77532008-02-22 Sam Weinig <sam@webkit.org> 7754 7755 Rubber-stamped by Adam Roben. 7756 7757 Rid the project of the Devil known as DeprecatedString! 7758 7759 * Api/qwebhistory.cpp: 7760 * Api/qwebhistoryinterface.cpp: 7761 77622008-02-18 Darin Adler <darin@apple.com> 7763 7764 Reviewed by Sam. 7765 7766 * Api/qwebnetworkinterface.cpp: 7767 (QWebNetworkRequestPrivate::init): Removed use of DeprecatedString. 7768 77692008-01-24 David Boddie <dboddie@trolltech.com> 7770 7771 Reviewed by Simon. 7772 7773 Documentation tidying. 7774 7775 7776 * Api/qwebframe.cpp: 7777 * Api/qwebhistoryinterface.cpp: 7778 * Api/qwebview.cpp: 7779 77802008-01-24 Jarek Kobus <jkobus@trolltech.com> 7781 7782 Reviewed by Simon. 7783 7784 Text for translations were used wrongly as comments 7785 7786 7787 * WebCoreSupport/FrameLoaderClientQt.cpp: 7788 (WebCore::): 7789 (WebCore::FrameLoaderClientQt::cannotShowURLError): 7790 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 7791 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError): 7792 (WebCore::FrameLoaderClientQt::fileDoesNotExistError): 7793 (WebCore::FrameLoaderClientQt::shouldFallBack): 7794 77952008-01-24 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7796 7797 Reviewed by Simon. 7798 7799 * We have a KURL->QUrl conversion on KURL itself, make use of it. 7800 * This conversion is supposed to be loss-free 7801 7802 7803 * Api/qwebframe.cpp: 7804 78052008-01-23 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7806 7807 * Rubber stamped by Simon 7808 7809 * Fix leaking of sub frames (WebCore::Frame). We keep one reference too many. 7810 This was found while working on the page-cache, other ports are not affected. 7811 7812 * WebCoreSupport/FrameLoaderClientQt.cpp: 7813 (WebCore::FrameLoaderClientQt::createFrame): 7814 78152008-01-23 Rohan McGovern <rohan.mcgovern@trolltech.com> 7816 7817 Reviewed by Simon Hausmann <hausmann@webkit.org>. 7818 7819 Fix Qtopia compilation with QT_NO_TOOLTIP 7820 7821 7822 * WebCoreSupport/ChromeClientQt.cpp: 7823 (WebCore::ChromeClientQt::print): 7824 78252008-01-23 Geir Vattekar <gvatteka@trolltech.com> 7826 7827 Reviewed by Simon. 7828 7829 Doc: Replaced \code with snippets in the docs 7830 7831 7832 * Api/qwebview.cpp: 7833 78342008-01-23 Benjamin Meyer <bmeyer@trolltech.com> 7835 7836 Reviewed by Simon. 7837 7838 Tweak key presses even to match commonly expected behavior 7839 - space key == page down 7840 - page down moved down not a page, but slightly less then a page so you don't loose your spot when reading. 7841 - Use font height rather then a hard coded "10" for left, right, up, down 7842 - Ctrl-Up moves to the top of the page 7843 - Ctrl-Down move to the bottom of the page 7844 - Backspace == GoBack 7845 - Shift-Backspace == GoForward 7846 7847 7848 * Api/qwebpage.cpp: 7849 (dropActionToDragOp): 7850 (dragOpToDropAction): 7851 (QWebPagePrivate::keyPressEvent): 7852 78532008-01-23 Simon Hausmann <hausmann@webkit.org> 7854 7855 Reviewed by Lars. 7856 7857 Implemented FrameLoaderClient::startDownload() and FrameLoaderClient::download(). 7858 7859 Added two signals to QWebPage to handle downloading of links and handling of 7860 unsupported content. 7861 7862 7863 * Api/qwebpage.cpp: 7864 (QWebPage::triggerAction): 7865 * Api/qwebpage.h: 7866 * WebCoreSupport/FrameLoaderClientQt.cpp: 7867 (WebCore::FrameLoaderClientQt::download): 7868 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest): 7869 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 7870 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 7871 (WebCore::FrameLoaderClientQt::willUseArchive): 7872 78732008-01-22 Lars Knoll <lars@trolltech.com> 7874 7875 Reviewed by Simon. 7876 7877 setup a family for cursive and fantasy fonts as well. 7878 7879 7880 * Api/qwebsettings.cpp: 7881 (QWebSettings::QWebSettings): 7882 78832008-01-22 Benjamin Meyer <bmeyer@trolltech.com> 7884 7885 Reviewed by Simon. 7886 7887 Implement ChromeClientQt::setToolTip 7888 Implement ChromeClientQt::mouseDidMoveOverElement 7889 7890 7891 * Api/qwebpage.cpp: 7892 * Api/qwebpage_p.h: 7893 * WebCoreSupport/ChromeClientQt.cpp: 7894 (WebCore::ChromeClientQt::ChromeClientQt): 7895 (WebCore::ChromeClientQt::focus): 7896 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 7897 (WebCore::ChromeClientQt::setToolTip): 7898 (WebCore::ChromeClientQt::print): 7899 * WebCoreSupport/ChromeClientQt.h: 7900 79012008-01-21 Darin Adler <darin@apple.com> 7902 7903 Reviewed by John Sullivan. 7904 7905 - updated for changes to ChromeClient database functions 7906 7907 * WebCoreSupport/ChromeClientQt.cpp: 7908 (WebCore::ChromeClientQt::exceededDatabaseQuota): 7909 * WebCoreSupport/ChromeClientQt.h: 7910 79112008-01-21 Benjamin Meyer <bmeyer@trolltech.com> 7912 7913 Reviewed by Simon. 7914 7915 Change QWebHistoryInterface::addHistoryEntry() from const to non-const 7916 7917 7918 * Api/qwebhistoryinterface.h: 7919 79202008-01-21 Adam Treat <adam.treat@torchmobile.com> 7921 7922 Reviewed by Simon. 7923 7924 * Don't leak the d-pointer in QWebSettings. 7925 7926 7927 * Api/qwebsettings.cpp: 7928 (QWebSettings::~QWebSettings): 7929 79302008-01-21 Simon Hausmann <hausmann@webkit.org> 7931 7932 Reviewed by Holger. 7933 7934 Update the WebKit version number from WebKit/win/WebKit.vcproj/VERSION. 7935 7936 This has the fortunate side-effect that gmail sends us sensible HTML/JS again :) 7937 7938 7939 * Api/qwebpage.cpp: 7940 79412008-01-21 Simon Hausmann <hausmann@webkit.org> 7942 7943 Reviewed by Holger. 7944 7945 Fix focus chain handling and cycling through focusable objects (links) using tab/backtab. 7946 7947 * Fix GraphicsContext::drawFocusRing to also draw single focus rects. 7948 * Implemented QWebPage::focusNextPrevChild by sending fake tab/shift-tab events 7949 and make the return value depend on whether we successfully determined a focusable 7950 node or not. 7951 * Changed QWebView::focusNextPrevChild() to call the base QWidget implementation correctly 7952 if we could not handle the focus chain ourselves. 7953 * Changed the focus policy of QWebView to correctly use WheelFocus instead of ClickFocus. 7954 * Made ChromeClientQt::canTakeFocus() and takeFocus() dummy method since they are only 7955 used to control the situation of stepping out of the focus chain inside the page. 7956 * Made inclusion of links in the focus chain configurable through QWebSettings::LinksIncludedInFocusChain. 7957 The layout tests expect this to be disabled but for the user it seems sensible to have it 7958 on by default, hence the default in qwebsettings.cpp 7959 7960 7961 * Api/qwebpage.cpp: 7962 (QWebPage::focusNextPrevChild): 7963 * Api/qwebsettings.cpp: 7964 (QWebSettings::QWebSettings): 7965 * Api/qwebsettings.h: 7966 * Api/qwebview.cpp: 7967 (QWebView::QWebView): 7968 (QWebView::focusNextPrevChild): 7969 * WebCoreSupport/ChromeClientQt.cpp: 7970 (WebCore::ChromeClientQt::canTakeFocus): 7971 (WebCore::ChromeClientQt::takeFocus): 7972 79732008-01-18 Simon Hausmann <hausmann@webkit.org> 7974 7975 Reviewed by Holger. 7976 7977 Coding style fixes and added a comment about the include order. 7978 7979 * WebKit_pch.h: 7980 79812008-01-18 Marius Storm-Olsen <marius@trolltech.com> 7982 7983 Reviewed by Simon Hausmann <hausmann@webkit.org>. 7984 7985 Add use of precompiled header, when building inside Qt. 7986 7987 Compiling WebKit was taking forever; 17 minutes on my machine for _one_ build! Adding the PCH at least brings it down to 12 minutes for one build, for me. 7988 7989 7990 * WebKit_pch.h: Added. 7991 79922008-01-18 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 7993 7994 Reviewed by Simon. 7995 7996 * Ask the WebCore::IconDatabase only if our URL is not empty. Otherwise 7997 we will see a crash in a HashSet. 7998 * It is crashing there because the StringImpl of an empty String is 0. 7999 * We avoid this crash by checking for isEmpty() in WebKit as there is no 8000 use to ask the iconDatabase for an empty string. We will fallback to the 8001 defaultIcon. 8002 8003 8004 * Api/qwebframe.cpp: 8005 (QWebFrame::icon): 8006 80072008-01-17 Simon Hausmann <hausmann@webkit.org> 8008 8009 Reviewed by Holger. 8010 8011 Minor documentation fixes 8012 8013 8014 * Api/qwebframe.cpp: 8015 * Api/qwebview.cpp: 8016 80172008-01-17 Simon Hausmann <shausman@trolltech.com> 8018 8019 Reviewed by Lars. 8020 8021 Fix form elements not focusing correctly after the qt widget lost its focus. 8022 8023 When receiving a focus out event notify the focus controller. Otherwise its 8024 m_focusedFrame variable remains unchanged and setFocusedFrame on a focusIn 8025 event shortcuts and doesn't call setActive(true). 8026 8027 8028 * Api/qwebpage.cpp: 8029 80302008-01-17 Simon Hausmann <shausman@trolltech.com> 8031 8032 Reviewed by Holger. 8033 8034 Lots of updates to the documentation. 8035 8036 8037 * Api/qwebframe.cpp: 8038 * Api/qwebhistory.cpp: 8039 * Api/qwebpage.cpp: 8040 (QWebPagePrivate::dropEvent): 8041 (QWebPage::history): 8042 (openNewWindow): 8043 (QWebPage::triggerAction): 8044 (QWebPage::viewportSize): 8045 (QWebPage::navigationRequested): 8046 (QWebPage::action): 8047 (QWebPage::event): 8048 (QWebPageContext::targetFrame): 8049 * Api/qwebpage.h: 8050 * Api/qwebview.cpp: 8051 80522008-01-17 Simon Hausmann <shausman@trolltech.com> 8053 8054 Reviewed by Lars. 8055 8056 Added a urlChanged signals to QWebFrame and QWebView. 8057 8058 8059 * Api/qwebframe.cpp: 8060 * Api/qwebframe.h: 8061 * Api/qwebview.cpp: 8062 (QWebView::setPage): 8063 * Api/qwebview.h: 8064 * WebCoreSupport/FrameLoaderClientQt.cpp: 8065 80662008-01-17 Simon Hausmann <shausman@trolltech.com> 8067 8068 Reviewed by Lars. 8069 8070 Fixed docs and sanity checks in QWebSettings::setIconDatabaseEnabled 8071 8072 8073 * Api/qwebsettings.cpp: 8074 (QWebSettings::setIconDatabaseEnabled): 8075 80762008-01-17 Simon Hausmann <shausman@trolltech.com> 8077 8078 Reviewed by Lars. 8079 8080 Added QWebView::createWindow() which is forwarded from QWebPage::createWindow() for convenience. 8081 8082 8083 * Api/qwebpage.cpp: 8084 (QWebPage::createWindow): 8085 * Api/qwebview.cpp: 8086 (QWebView::createWindow): 8087 * Api/qwebview.h: 8088 80892008-01-17 Lars Knoll <lars@trolltech.com> 8090 8091 Reviewed by Lars. 8092 8093 add a 0 pointer check. 8094 8095 Fixes a crash in the demo web browser. 8096 8097 * WebCoreSupport/FrameLoaderClientQt.cpp: 8098 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 8099 81002008-01-17 Simon Hausmann <hausmann@webkit.org> 8101 8102 Reviewed by Holger. 8103 8104 Fix QWebFrame::title(). 8105 8106 For the titleChanged() signal we use the documentloader's title. For the property we have to use the same 8107 instead of Document::title() as the latter is not trimmed and not suited for a window caption. 8108 8109 8110 * Api/qwebframe.cpp: 8111 (QWebFrame::title): 8112 81132008-01-17 Simon Hausmann <hausmann@webkit.org> 8114 8115 Reviewed by Maciej, Lars, Holger. 8116 8117 http://bugs.webkit.org/show_bug.cgi?id=16589 8118 8119 Add a document parameter to WebCore::cookies, setCookies and cookiesEnabled. 8120 8121 * Api/qwebnetworkinterface.cpp: 8122 (QWebNetworkRequestPrivate::init): 8123 (QWebNetworkManager::started): 8124 81252008-01-17 Warwick Allison <warwick@trolltech.com> 8126 8127 Reviewed by Simon Hausmann <hausmann@webkit.org>. 8128 8129 Follow QWidget::keyPressEvent advice and call parents. 8130 8131 Without this, Back does not work in Qtopia, for example. 8132 8133 8134 * Api/qwebview.cpp: 8135 (QWebView::keyPressEvent): 8136 (QWebView::keyReleaseEvent): 8137 81382008-01-17 Simon Hausmann <hausmann@webkit.org> 8139 8140 Reviewed by Lars. 8141 8142 Fix compilation against Qt 4.3 after the recent KURL <> QUrl conversion fixes. 8143 8144 * Api/qwebnetworkinterface.cpp: 8145 (QWebNetworkManager::started): 8146 81472008-01-17 Simon Hausmann <shausman@trolltech.com> 8148 8149 Reviewed by Holger. 8150 8151 Fix compilation against Qt 4.4 without files that are specific for the Qt 4.3 build. 8152 8153 8154 * Api/qwebframe.cpp: 8155 * Api/qwebpage.cpp: 8156 * WebCoreSupport/FrameLoaderClientQt.cpp: 8157 81582008-01-17 Lincoln Ramsay <lincoln.ramsay@trolltech.com> 8159 8160 Reviewed by Simon Hausmann <hausmann@webkit.org>. 8161 8162 Fixes compilation with QT_NO_DRAGANDDROP 8163 8164 8165 * Api/qwebpage.cpp: 8166 (QWebPage::event): 8167 * Api/qwebview.cpp: 8168 (QWebView::dragEnterEvent): 8169 (QWebView::dragLeaveEvent): 8170 (QWebView::dragMoveEvent): 8171 (QWebView::dropEvent): 8172 81732008-01-17 Simon Hausmann <hausmann@webkit.org> 8174 8175 Reviewed by Lars. 8176 8177 Fix compilation, removed obsolete privateBrowsingEnabled() method. 8178 8179 * WebCoreSupport/FrameLoaderClientQt.cpp: 8180 81812008-01-16 Lars Knoll <lars@trolltech.com> 8182 8183 Reviewed by Simon Hausmann <simon.hausmann@trolltech.com>. 8184 8185 Removed a whole bunch of notImplemented() warnings. 8186 8187 I don't want to hide the real warnings in lots of things that 8188 I am by now pretty certain we won't need. 8189 8190 8191 * WebCoreSupport/FrameLoaderClientQt.cpp: 8192 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): 8193 (WebCore::FrameLoaderClientQt::canShowMIMEType): 8194 81952008-01-16 Simon Hausmann <hausmann@webkit.org> 8196 8197 Reviewed by Holger. 8198 8199 Fix crash when bringing up the context menu on maps.google.com. 8200 8201 If the website provides its own context menu then we don't have a ContextMenu pointer. 8202 8203 8204 * Api/qwebpage.cpp: 8205 (QWebPagePrivate::contextMenuEvent): 8206 82072008-01-16 Simon Hausmann <hausmann@webkit.org> 8208 8209 Reviewed by Holger. 8210 8211 Don't crash when receiving all sorts of events on a default constructed QWebView without a page. 8212 8213 * Api/qwebview.cpp: 8214 (QWebView::mouseMoveEvent): 8215 (QWebView::mousePressEvent): 8216 (QWebView::mouseDoubleClickEvent): 8217 (QWebView::mouseReleaseEvent): 8218 (QWebView::contextMenuEvent): 8219 (QWebView::wheelEvent): 8220 (QWebView::keyPressEvent): 8221 (QWebView::keyReleaseEvent): 8222 (QWebView::focusInEvent): 8223 (QWebView::focusOutEvent): 8224 (QWebView::dragEnterEvent): 8225 (QWebView::dragLeaveEvent): 8226 (QWebView::dragMoveEvent): 8227 (QWebView::dropEvent): 8228 (QWebView::focusNextPrevChild): 8229 82302008-01-16 Simon Hausmann <hausmann@webkit.org> 8231 8232 Reviewed by Lars. 8233 8234 Made the url property read-write. 8235 8236 * Api/qwebview.h: 8237 82382008-01-16 Simon Hausmann <hausmann@webkit.org> 8239 8240 Reviewed by Lars. 8241 8242 Don't crash when showing a default initialized QWebView that has no page/frame yet. 8243 8244 * Api/qwebview.cpp: 8245 (QWebView::paintEvent): 8246 82472008-01-16 Holger Freyther <holger.freyther@trolltech.com> 8248 8249 Reviewed by Simon. 8250 8251 Change hoveringOverLink implementation to have less issues. 8252 8253 * Currently we only compare a pointer. In the worst case we 8254 could delete the Element we have pointed to and a new one 8255 gets the same address. But even if that doesn't happen the 8256 WebCore::Element is mutable and JavaScript could change the 8257 URL, Title or Content. So we have to compare all these three 8258 attributes. 8259 * This does not seem to be a performance impact. 8260 8261 8262 * Api/qwebpage.cpp: 8263 (QWebPagePrivate::mouseMoveEvent): 8264 * Api/qwebpage_p.h: 8265 82662008-01-16 Holger Freyther <holger.freyther@trolltech.com> 8267 8268 Reviewed by Simon. 8269 8270 * Move the hoverElement from QWebFrame to QWebPage. As it is 8271 only used there. 8272 8273 8274 * Api/qwebframe_p.h: 8275 (QWebFramePrivate::QWebFramePrivate): 8276 * Api/qwebpage.cpp: 8277 (QWebPagePrivate::mouseMoveEvent): 8278 * Api/qwebpage_p.h: 8279 82802008-01-16 Holger Freyther <holger.freyther@trolltech.com> 8281 8282 Reviewed by Simon. 8283 8284 EventHandler changes/fixes in QWebPage: 8285 -mouse{Press,Move,Release}Event: 8286 Send the event always to the mainFrame of the QWebPage. 8287 8288 -contextMenuEvent, key{Press,Release}Event: 8289 Send the event to the focused frame. 8290 8291 This is following the Windows port and fixes a issue with the 8292 Web Inspector where we were sending the events to a wrong frame. 8293 8294 It is guaranteed that the mainFrame will always have an eventHandler 8295 and frameView set. There is no need to check for this in QWebPage. 8296 8297 8298 * Api/qwebframe.cpp: 8299 (QWebFramePrivate::init): 8300 * Api/qwebframe_p.h: 8301 (QWebFramePrivate::QWebFramePrivate): 8302 * Api/qwebpage.cpp: 8303 (QWebPagePrivate::updateEditorActions): 8304 (QWebPagePrivate::mouseMoveEvent): 8305 (QWebPagePrivate::mousePressEvent): 8306 (QWebPagePrivate::mouseDoubleClickEvent): 8307 (QWebPagePrivate::mouseReleaseEvent): 8308 (QWebPagePrivate::contextMenuEvent): 8309 (QWebPagePrivate::wheelEvent): 8310 (QWebPagePrivate::keyPressEvent): 8311 (QWebPagePrivate::keyReleaseEvent): 8312 (QWebPagePrivate::focusInEvent): 8313 * Api/qwebpage_p.h: 8314 83152008-01-16 Holger Freyther <holger.freyther@trolltech.com> 8316 8317 Reviewed by Simon. 8318 8319 * Add core and kit functions to QWebFramePrivate to convert from 8320 QWebFrame to WebCore::Frame and vice versa. 8321 8322 8323 * Api/qwebframe.cpp: 8324 (QWebFramePrivate::core): 8325 (QWebFramePrivate::kit): 8326 * Api/qwebframe.h: 8327 * Api/qwebframe_p.h: 8328 83292008-01-16 Lars Knoll <lars@trolltech.com> 8330 8331 Reviewed by Simon. 8332 8333 add conversion methods from and to QUrl to KURL. 8334 8335 Use them in the places I found at the moment. Fixes a bug 8336 where form data was encoded twice. 8337 Also fix QWebSettings to take a QUrl for the user style sheet 8338 location. 8339 8340 8341 * Api/qwebframe.cpp: 8342 (QWebFrame::load): 8343 * Api/qwebpage.cpp: 8344 (QWebPage::createPlugin): 8345 (frameLoadRequest): 8346 (QWebPage::triggerAction): 8347 * Api/qwebsettings.cpp: 8348 (QWebSettingsPrivate::apply): 8349 * Api/qwebsettings.h: 8350 * WebCoreSupport/ChromeClientQt.cpp: 8351 (WebCore::ChromeClientQt::createWindow): 8352 (WebCore::ChromeClientQt::show): 8353 83542008-01-16 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 8355 8356 Reviewed by Lars. 8357 8358 * Make the InspectorClientView inherit from QWebView instead of QWidget. This 8359 way paintEvent, mouse{Press,Release}Event and other events get forwarded to 8360 the QWebPage/WebInspector automatically. 8361 8362 8363 * WebCoreSupport/InspectorClientQt.cpp: 8364 (WebCore::InspectorClientWebPage::createWindow): 8365 (WebCore::InspectorClientView::InspectorClientView): 8366 83672008-01-10 Maciej Stachowiak <mjs@apple.com> 8368 8369 Reviewed by Sam. 8370 8371 - remove SecurityOriginData and fold its functionality into SecurityOrigin 8372 8373 * WebCoreSupport/ChromeClientQt.cpp: 8374 (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase): 8375 (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation): 8376 * WebCoreSupport/ChromeClientQt.h: 8377 83782008-01-10 Lars Knoll <lars@trolltech.com> 8379 8380 Reviewed by Simon. 8381 8382 document QWebHistory 8383 8384 8385 * Api/qwebhistory.cpp: 8386 (QWebHistoryItem::QWebHistoryItem): 8387 (QWebHistoryItem::operator=): 8388 (QWebHistoryItem::~QWebHistoryItem): 8389 (QWebHistoryItem::originalUrl): 8390 (QWebHistoryItem::currentUrl): 8391 (QWebHistoryItem::title): 8392 (QWebHistoryItem::icon): 8393 (QWebHistory::canGoBack): 8394 (QWebHistory::canGoForward): 8395 (QWebHistory::goBack): 8396 (QWebHistory::goForward): 8397 (QWebHistory::goToItem): 8398 * Api/qwebhistory.h: 8399 84002008-01-10 Simon Hausmann <hausmann@webkit.org> 8401 8402 Reviewed by Lars. 8403 8404 Make the reset() functions not do anything on the default QWebSettings object. 8405 8406 8407 * Api/qwebsettings.cpp: 8408 (QWebSettings::resetFontSize): 8409 (QWebSettings::resetFontFamily): 8410 (QWebSettings::clearAttribute): 8411 84122008-01-10 Lars Knoll <lars@trolltech.com> 8413 8414 Reviewed by Simon. 8415 8416 rename QWebPageHistory to QWebHistory. 8417 8418 8419 * Api/qwebhistory.cpp: Added. 8420 (QWebHistoryItem::QWebHistoryItem): 8421 (QWebHistoryItem::operator=): 8422 (QWebHistoryItem::~QWebHistoryItem): 8423 (QWebHistoryItem::originalUrl): 8424 (QWebHistoryItem::currentUrl): 8425 (QWebHistoryItem::title): 8426 (QWebHistoryItem::lastVisited): 8427 (QWebHistoryItem::icon): 8428 (QWebHistory::QWebHistory): 8429 (QWebHistory::~QWebHistory): 8430 (QWebHistory::clear): 8431 (QWebHistory::items): 8432 (QWebHistory::backItems): 8433 (QWebHistory::forwardItems): 8434 (QWebHistory::canGoBack): 8435 (QWebHistory::canGoForward): 8436 (QWebHistory::goBack): 8437 (QWebHistory::goForward): 8438 (QWebHistory::goToItem): 8439 (QWebHistory::backItem): 8440 (QWebHistory::currentItem): 8441 (QWebHistory::forwardItem): 8442 (QWebHistory::itemAtIndex): 8443 * Api/qwebhistory.h: Added. 8444 * Api/qwebhistory_p.h: Added. 8445 (QWebHistoryItemPrivate::QWebHistoryItemPrivate): 8446 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate): 8447 (QWebHistoryPrivate::QWebHistoryPrivate): 8448 (QWebHistoryPrivate::~QWebHistoryPrivate): 8449 * Api/qwebpage.cpp: 8450 (QWebPagePrivate::QWebPagePrivate): 8451 * Api/qwebpage.h: 8452 * Api/qwebpage_p.h: 8453 * Api/qwebpagehistory.cpp: Removed. 8454 * Api/qwebpagehistory.h: Removed. 8455 * Api/qwebpagehistory_p.h: Removed. 8456 * Api/qwebview.cpp: 8457 * Api/qwebview.h: 8458 84592008-01-10 Simon Hausmann <hausmann@webkit.org> 8460 8461 Reviewed by Lars. 8462 8463 Documentation for QWebSettings 8464 8465 8466 * Api/qwebsettings.cpp: 8467 (QWebSettings::~QWebSettings): 8468 (QWebSettings::setFontSize): 8469 (QWebSettings::resetFontSize): 8470 (QWebSettings::setUserStyleSheetLocation): 8471 (QWebSettings::userStyleSheetLocation): 8472 (QWebSettings::iconDatabaseEnabled): 8473 (QWebSettings::webGraphic): 8474 (QWebSettings::setFontFamily): 8475 (QWebSettings::resetFontFamily): 8476 (QWebSettings::setAttribute): 8477 84782008-01-10 Lars Knoll <lars@trolltech.com> 8479 8480 Reviewed by Simon. 8481 8482 Document QWebHistoryInterface. 8483 8484 8485 * Api/qwebhistoryinterface.cpp: 8486 (QWebHistoryInterface::defaultInterface): 8487 (QWebHistoryInterface::~QWebHistoryInterface): 8488 84892008-01-10 Lars Knoll <lars@trolltech.com> 8490 8491 Reviewed by Simon. 8492 8493 Documentation for QWebFrame. 8494 8495 8496 * Api/qwebframe.cpp: 8497 (QWebFrame::url): 8498 (QWebFrame::name): 8499 (QWebFrame::page): 8500 (QWebFrame::setHtml): 8501 (QWebFrame::parentFrame): 8502 (QWebFrame::render): 8503 (QWebFrame::pos): 8504 (QWebFrame::geometry): 8505 * Api/qwebframe.h: 8506 * Api/qwebframe_p.h: 8507 85082008-01-10 Lars Knoll <lars@trolltech.com> 8509 8510 Reviewed by Simon. 8511 8512 fix the drawing errors that where introduced due to refactoring. 8513 8514 Correctly clip to the rectangle we want to draw in ScrollView::paint(). 8515 8516 8517 * Api/qwebframe.cpp: 8518 (QWebFrame::render): 8519 * Api/qwebframe.h: 8520 * Api/qwebview.cpp: 8521 (QWebView::paintEvent): 8522 * WebCoreSupport/ChromeClientQt.cpp: 8523 (WebCore::ChromeClientQt::scrollBackingStore): 8524 85252008-01-10 Simon Hausmann <hausmann@webkit.org> 8526 8527 Reviewed by Lars. 8528 8529 Added a whole bunch of docs for QWebPage and fixed some minor doc glitches in QWebView. 8530 8531 8532 * Api/qwebpage.cpp: 8533 (QWebPagePrivate::dropEvent): 8534 (QWebPage::QWebPage): 8535 (QWebPage::~QWebPage): 8536 (QWebPage::mainFrame): 8537 (QWebPage::currentFrame): 8538 (QWebPage::history): 8539 (QWebPage::setView): 8540 (QWebPage::view): 8541 (QWebPage::javaScriptConsoleMessage): 8542 (QWebPage::javaScriptAlert): 8543 (QWebPage::javaScriptConfirm): 8544 (QWebPage::javaScriptPrompt): 8545 (QWebPage::createWindow): 8546 (QWebPage::createModalDialog): 8547 (openNewWindow): 8548 (QWebPage::triggerAction): 8549 (QWebPage::viewportSize): 8550 (QWebPage::navigationRequested): 8551 (QWebPage::selectedText): 8552 (QWebPage::isModified): 8553 (QWebPage::focusNextPrevChild): 8554 (QWebPage::settings): 8555 (QWebPage::networkProxy): 8556 (QWebPage::setNetworkAccessManager): 8557 (QWebPage::networkAccessManager): 8558 (QWebPagePrivate::_q_onLoadProgressChanged): 8559 * Api/qwebview.cpp: 8560 85612008-01-07 Holger Freyther <zecke@selfish.org> 8562 8563 Reviewed by Alp Toker. 8564 8565 * Qt and Gtk must know if a ContextMenuItem is checkable. Add a new ContextMenuItemType for checkable 8566 actions. 8567 * Use this information in the Gtk platform to create a GtkCheckMenuItem when needed. 8568 * Update the ContextMenuController to accept CheckableActionTypes as well. 8569 * Change ContextMenu.cpp to use the CheckableActionType. The information if a item is checkable 8570 was extracted from ContextMenu::checkOrEnableIfNeeded. 8571 * Update the Qt and Windows port. 8572 8573 * Api/qwebpage.cpp: 8574 (QWebPagePrivate::createContextMenu): 8575 85762008-01-07 Simon Hausmann <hausmann@webkit.org> 8577 8578 Build fix for the Windows build. MSVC wants to see the full 8579 declaration of arguments even when just passing them through. 8580 8581 * Api/qwebpage.cpp: 8582 85832008-01-07 Simon Hausmann <hausmann@webkit.org> 8584 8585 Reviewed by Lars. 8586 8587 Added the missing parameters to make it possible to do POST operations from the public API. 8588 8589 This is ugly though as it also requires including qnetworkaccessmanager.h. It would be nicer if the 8590 two extra arguments were in QNetworkRequest :-/ 8591 8592 8593 * Api/qwebframe.cpp: 8594 (QWebFrame::load): 8595 * Api/qwebframe.h: 8596 * Api/qwebview.cpp: 8597 (QWebView::load): 8598 * Api/qwebview.h: 8599 86002008-01-07 Simon Hausmann <hausmann@webkit.org> 8601 8602 Reviewed by Lars. 8603 8604 Ported of the network backend of the Qt platform to Qt 4.4's new networking API. 8605 8606 8607 * Api/qwebframe.cpp: 8608 (QWebFrame::load): 8609 * Api/qwebframe.h: 8610 * Api/qwebnetworkinterface.cpp: 8611 * Api/qwebnetworkinterface.h: 8612 * Api/qwebnetworkinterface_p.h: 8613 * Api/qwebobjectplugin.cpp: 8614 * Api/qwebobjectplugin.h: 8615 * Api/qwebobjectplugin_p.h: 8616 * Api/qwebobjectpluginconnector.cpp: 8617 * Api/qwebobjectpluginconnector.h: 8618 * Api/qwebpage.cpp: 8619 (QWebPagePrivate::QWebPagePrivate): 8620 (QWebPagePrivate::~QWebPagePrivate): 8621 (QWebPagePrivate::navigationRequested): 8622 (QWebPage::setNetworkInterface): 8623 (QWebPage::networkInterface): 8624 (QWebPage::setNetworkAccessManager): 8625 (QWebPage::networkAccessManager): 8626 * Api/qwebpage.h: 8627 * Api/qwebpage_p.h: 8628 * Api/qwebview.cpp: 8629 * Api/qwebview.h: 8630 * WebCoreSupport/FrameLoaderClientQt.cpp: 8631 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 8632 (WebCore::FrameLoaderClientQt::objectContentType): 8633 (WebCore::FrameLoaderClientQt::createPlugin): 8634 86352008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 8636 8637 Reviewed by Simon. 8638 8639 * Move the QWebPagePrivate methods up to the other private ones 8640 8641 * Api/qwebpage.cpp: 8642 (dropActionToDragOp): 8643 (dragOpToDropAction): 8644 (QWebPagePrivate::mouseMoveEvent): 8645 (QWebPagePrivate::mousePressEvent): 8646 (QWebPagePrivate::mouseDoubleClickEvent): 8647 (QWebPagePrivate::mouseReleaseEvent): 8648 (QWebPagePrivate::contextMenuEvent): 8649 (QWebPagePrivate::wheelEvent): 8650 (QWebPagePrivate::keyPressEvent): 8651 (QWebPagePrivate::keyReleaseEvent): 8652 (QWebPagePrivate::focusInEvent): 8653 (QWebPagePrivate::focusOutEvent): 8654 (QWebPagePrivate::dragEnterEvent): 8655 (QWebPagePrivate::dragLeaveEvent): 8656 (QWebPagePrivate::dragMoveEvent): 8657 (QWebPagePrivate::dropEvent): 8658 (QWebPage::focusNextPrevChild): 8659 86602008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 8661 8662 Reviewed by Simon. 8663 8664 * Add reimplemented comments for the methods reimplemented in QWebView and QWebPage. 8665 8666 8667 * Api/qwebpage.cpp: 8668 (dragOpToDropAction): 8669 * Api/qwebview.cpp: 8670 (QWebView::mouseMoveEvent): 8671 (QWebView::mousePressEvent): 8672 (QWebView::mouseDoubleClickEvent): 8673 (QWebView::mouseReleaseEvent): 8674 (QWebView::contextMenuEvent): 8675 (QWebView::keyPressEvent): 8676 (QWebView::keyReleaseEvent): 8677 (QWebView::focusInEvent): 8678 (QWebView::focusOutEvent): 8679 (QWebView::dragEnterEvent): 8680 (QWebView::dragLeaveEvent): 8681 (QWebView::dragMoveEvent): 8682 (QWebView::dropEvent): 8683 86842008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 8685 8686 Reviewed by Lars. 8687 8688 * This layout is not needed anymore as Widget::invalidateRect will not 8689 draw anymore. 8690 8691 8692 * Api/qwebview.cpp: 8693 (QWebView::paintEvent): 8694 86952008-01-04 Lars Knoll <lars@trolltech.com> 8696 8697 Reviewed by Simon. 8698 8699 Remove most dependencies of Widget/ScrollView onto native QWidgets. 8700 8701 This also brings the code closer in line with the Windows code. Seems 8702 to work nicely on first try :) 8703 8704 8705 * WebCoreSupport/ChromeClientQt.cpp: 8706 (WebCore::ChromeClientQt::updateBackingStore): 8707 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 8708 (WebCore::ChromeClientQt::setToolTip): 8709 * WebCoreSupport/FrameLoaderClientQt.cpp: 8710 (WebCore::FrameLoaderClientQt::createPlugin): 8711 87122008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 8713 8714 Reviewed by Simon. 8715 8716 * Remove the todo from QWebPage and move the code to QWebView. 8717 8718 8719 * Api/qwebpage.cpp: 8720 (QWebPagePrivate::wheelEvent): 8721 (QWebPagePrivate::focusInEvent): 8722 * Api/qwebview.cpp: 8723 (QWebView::wheelEvent): 8724 (QWebView::focusInEvent): 8725 87262008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 8727 8728 Reviewed by Simon. 8729 8730 * Move the various event methods to QWebPagePrivate. This is similar to 8731 QTextControl as well. 8732 8733 8734 * Api/qwebpage.cpp: 8735 (QWebPage::event): 8736 (QWebPagePrivate::mouseMoveEvent): 8737 (QWebPagePrivate::mousePressEvent): 8738 (QWebPagePrivate::mouseDoubleClickEvent): 8739 (QWebPagePrivate::mouseReleaseEvent): 8740 (QWebPagePrivate::contextMenuEvent): 8741 (QWebPagePrivate::wheelEvent): 8742 (QWebPagePrivate::keyPressEvent): 8743 (QWebPagePrivate::keyReleaseEvent): 8744 (QWebPagePrivate::focusInEvent): 8745 (QWebPagePrivate::focusOutEvent): 8746 (QWebPage::focusNextPrevChild): 8747 (QWebPagePrivate::dragEnterEvent): 8748 (QWebPagePrivate::dragLeaveEvent): 8749 (QWebPagePrivate::dragMoveEvent): 8750 (QWebPagePrivate::dropEvent): 8751 * Api/qwebpage.h: 8752 * Api/qwebpage_p.h: 8753 87542008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 8755 8756 Reviewed by Simon. 8757 8758 * Forward the event from QWebView to QWebPage through QObject::event. This 8759 is similar to the way QTextControl is working. 8760 8761 8762 * Api/qwebpage.cpp: 8763 (dragOpToDropAction): 8764 (QWebPage::event): 8765 * Api/qwebpage.h: 8766 * Api/qwebview.cpp: 8767 (QWebView::mouseMoveEvent): 8768 (QWebView::mousePressEvent): 8769 (QWebView::mouseDoubleClickEvent): 8770 (QWebView::mouseReleaseEvent): 8771 (QWebView::contextMenuEvent): 8772 (QWebView::wheelEvent): 8773 (QWebView::keyPressEvent): 8774 (QWebView::keyReleaseEvent): 8775 (QWebView::focusInEvent): 8776 (QWebView::focusOutEvent): 8777 (QWebView::dragEnterEvent): 8778 (QWebView::dragLeaveEvent): 8779 (QWebView::dragMoveEvent): 8780 (QWebView::dropEvent): 8781 * Api/qwebview.h: 8782 87832008-01-04 Lars Knoll <lars@trolltech.com> 8784 8785 Reviewed by Simon. 8786 8787 make QWebPage a QObject and get things to compile. 8788 8789 Nothing works currently though. 8790 8791 8792 * Api/qwebobjectpluginconnector.cpp: 8793 * Api/qwebpage.cpp: 8794 (QWebPagePrivate::QWebPagePrivate): 8795 (QWebPagePrivate::createMainFrame): 8796 (QWebPage::QWebPage): 8797 (QWebPage::setView): 8798 (QWebPage::view): 8799 (QWebPage::javaScriptAlert): 8800 (QWebPage::javaScriptPrompt): 8801 (dragOpToDropAction): 8802 (QWebPage::mousePressEvent): 8803 (QWebPage::mouseDoubleClickEvent): 8804 (QWebPage::mouseReleaseEvent): 8805 (QWebPage::wheelEvent): 8806 (QWebPage::keyPressEvent): 8807 (QWebPage::focusInEvent): 8808 * Api/qwebpage.h: 8809 * Api/qwebpage_p.h: 8810 * Api/qwebview.cpp: 8811 (QWebView::QWebView): 8812 (QWebView::setPage): 8813 (QWebView::resizeEvent): 8814 (QWebView::paintEvent): 8815 * Api/qwebview.h: 8816 * WebCoreSupport/ChromeClientQt.cpp: 8817 (WebCore::ChromeClientQt::windowRect): 8818 (WebCore::ChromeClientQt::pageRect): 8819 (WebCore::ChromeClientQt::focus): 8820 (WebCore::ChromeClientQt::unfocus): 8821 (WebCore::ChromeClientQt::canTakeFocus): 8822 (WebCore::ChromeClientQt::takeFocus): 8823 (WebCore::ChromeClientQt::canRunModal): 8824 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 8825 * WebCoreSupport/DragClientQt.cpp: 8826 (WebCore::DragClientQt::startDrag): 8827 * WebCoreSupport/FrameLoaderClientQt.cpp: 8828 (WebCore::FrameLoaderClientQt::createPlugin): 8829 * WebCoreSupport/InspectorClientQt.cpp: 8830 (WebCore::InspectorClientWebPage::createWindow): 8831 (WebCore::InspectorClientView::InspectorClientView): 8832 (WebCore::InspectorClientView::page): 8833 (WebCore::InspectorClientView::hideEvent): 8834 (WebCore::InspectorClientView::closeEvent): 8835 (WebCore::InspectorClientQt::createPage): 8836 (WebCore::InspectorClientQt::closeWindow): 8837 88382008-01-04 Simon Hausmann <hausmann@webkit.org> 8839 8840 Reviewed by Lars. 8841 8842 Added some preliminary class documentation for QWebView, fixed a missing const() and some missing Q_PROPERTYs 8843 8844 8845 * Api/qwebview.cpp: 8846 (QWebView::setHtml): 8847 (QWebView::setContent): 8848 (QWebView::history): 8849 (QWebView::settings): 8850 (QWebView::action): 8851 (QWebView::triggerAction): 8852 (QWebView::stop): 8853 (QWebView::backward): 8854 (QWebView::forward): 8855 (QWebView::reload): 8856 * Api/qwebview.h: 8857 88582008-01-04 Lars Knoll <lars@trolltech.com> 8859 8860 Reviewed by Simon. 8861 8862 add a viewportSize to QWebPage. 8863 8864 This is required to eventually make it a QObject only. 8865 8866 8867 * Api/qwebpage.cpp: 8868 (QWebPage::triggerAction): 8869 (QWebPage::viewportSize): 8870 (QWebPage::setViewportSize): 8871 * Api/qwebpage.h: 8872 88732008-01-04 Lars Knoll <lars@trolltech.com> 8874 8875 Reviewed by Simon. 8876 8877 take a QString as identifier in QWebFrame::addToJSWindowObject. 8878 8879 * Api/qwebframe.cpp: 8880 (QWebFrame::addToJSWindowObject): 8881 * Api/qwebframe.h: 8882 88832008-01-04 Simon Hausmann <hausmann@webkit.org> 8884 8885 Reviewed by Lars. 8886 8887 Call the frame arguments for the javascript callbacks "originatingFrame" 8888 8889 8890 * Api/qwebpage.h: 8891 88922008-01-04 Simon Hausmann <hausmann@webkit.org> 8893 8894 Reviewed by Lars. 8895 8896 Moved the QWebPage::addToHistory signal into QWebHistoryInterface 8897 8898 8899 * Api/qwebhistoryinterface.h: 8900 * Api/qwebpage.h: 8901 * WebCoreSupport/FrameLoaderClientQt.cpp: 8902 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad): 8903 89042008-01-04 Lars Knoll <lars@trolltech.com> 8905 8906 Reviewed by Simon. 8907 8908 moved title(), url(), icon() and initialLayoutComplete() from QWebPage to QWebFrame 8909 8910 * Api/qwebframe.cpp: 8911 (QWebFrame::url): 8912 (QWebFrame::icon): 8913 (QWebFrame::setVerticalScrollBarPolicy): 8914 * Api/qwebframe.h: 8915 * Api/qwebpage.cpp: 8916 (QWebPage::javaScriptAlert): 8917 (QWebPage::javaScriptPrompt): 8918 (QWebPage::networkInterface): 8919 * Api/qwebpage.h: 8920 * Api/qwebview.cpp: 8921 (QWebView::title): 8922 (QWebView::url): 8923 (QWebView::icon): 8924 * WebCoreSupport/FrameLoaderClientQt.cpp: 8925 89262008-01-03 Simon Hausmann <hausmann@webkit.org> 8927 8928 Reviewed by Lars. 8929 8930 Moved QWebPage::open to QWebFrame::load and added setHtml. 8931 8932 8933 * Api/qwebframe.cpp: 8934 (QWebFrame::load): 8935 (QWebFrame::setHtml): 8936 (QWebFrame::setContent): 8937 * Api/qwebframe.h: 8938 * Api/qwebpage.cpp: 8939 * Api/qwebpage.h: 8940 * Api/qwebview.cpp: 8941 (QWebView::load): 8942 (QWebView::setHtml): 8943 * Api/qwebview.h: 8944 * WebCoreSupport/ChromeClientQt.cpp: 8945 (WebCore::ChromeClientQt::createWindow): 8946 * WebCoreSupport/InspectorClientQt.cpp: 8947 (WebCore::InspectorClientQt::createPage): 8948 89492008-01-03 Simon Hausmann <hausmann@webkit.org> 8950 8951 Reviewed by Lars. 8952 8953 Added the first revision of QWebView and started moving functionality from QWebPave over to QWebView and QWebFrame. 8954 8955 8956 * Api/headers.pri: 8957 * Api/qwebframe.h: 8958 * Api/qwebpage.cpp: 8959 (QWebPagePrivate::createMainFrame): 8960 * Api/qwebpage.h: 8961 * Api/qwebpagehistory.h: 8962 * Api/qwebview.cpp: Added. 8963 (QWebView::QWebView): 8964 (QWebView::~QWebView): 8965 (QWebView::page): 8966 (QWebView::setPage): 8967 (QWebView::load): 8968 (QWebView::setHtml): 8969 (QWebView::history): 8970 (QWebView::settings): 8971 (QWebView::title): 8972 (QWebView::url): 8973 (QWebView::icon): 8974 (QWebView::selectedText): 8975 (QWebView::action): 8976 (QWebView::triggerAction): 8977 (QWebView::isModified): 8978 (QWebView::textInteractionFlags): 8979 (QWebView::setTextInteractionFlags): 8980 (QWebView::sizeHint): 8981 (QWebView::stop): 8982 (QWebView::backward): 8983 (QWebView::forward): 8984 (QWebView::reload): 8985 * Api/qwebview.h: Added. 8986 * QtLauncher/main.cpp: 8987 (MainWindow::MainWindow): 8988 (MainWindow::webPage): 8989 (MainWindow::changeLocation): 8990 * WebCoreSupport/FrameLoaderClientQt.cpp: 8991 (WebCore::FrameLoaderClientQt::setFrame): 8992 * WebCoreSupport/FrameLoaderClientQt.h: 8993 89942007-12-14 Darin Adler <darin@apple.com> 8995 8996 Reviewed by Alexey. 8997 8998 * Api/qwebpage.cpp: 8999 (QWebPage::triggerAction): Removed some use of Editor member functions we plan 9000 to eventually eliminate. Switch from Editor::execCommand to Editor::command. 9001 * WebCoreSupport/EditorClientQt.cpp: 9002 (WebCore::EditorClientQt::handleKeyboardEvent): Ditto. Also updated name from 9003 MoveUpByPageAndModifyCaret to MovePageUp and from MoveDownByPageAndModifyCaret 9004 to MovePageDown. 9005 90062007-12-12 Brady Eidson <beidson@apple.com> 9007 9008 Reviewed by Sam Weinig 9009 9010 As part of doing some CachedPage and client cleanup, keep Qt building 9011 9012 * WebCoreSupport/FrameLoaderClientQt.cpp: 9013 (WebCore::FrameLoaderClientQt::savePlatformDataToCachedPage): 9014 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage): 9015 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 9016 * WebCoreSupport/FrameLoaderClientQt.h: 9017 90182007-12-12 Sam Weinig <sam@webkit.org> 9019 9020 Build fix. 9021 9022 * WebCoreSupport/FrameLoaderClientQt.cpp: 9023 (WebCore::FrameLoaderClientQt::userAgent): 9024 90252007-12-12 Sam Weinig <sam@webkit.org> 9026 9027 Build fix. 9028 9029 * Api/qwebnetworkinterface.cpp: 9030 (QWebNetworkRequestPrivate::init): 9031 * Api/qwebpage.cpp: 9032 (QWebPage::url): 9033 (QWebPageContext::QWebPageContext): 9034 * Api/qwebpagehistory.cpp: 9035 (QWebHistoryItem::originalUrl): 9036 (QWebHistoryItem::currentUrl): 9037 * WebCoreSupport/FrameLoaderClientQt.cpp: 9038 (WebCore::FrameLoaderClientQt::cannotShowURLError): 9039 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 9040 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError): 9041 (WebCore::FrameLoaderClientQt::fileDoesNotExistError): 9042 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 9043 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): 9044 (WebCore::FrameLoaderClientQt::createPlugin): 9045 90462007-12-07 Alexey Proskuryakov <ap@webkit.org> 9047 9048 Reviewed by Darin Adler. 9049 9050 <rdar://problem/5535636> 9051 Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard. 9052 9053 http://bugs.webkit.org/show_bug.cgi?id=13916 9054 JavaScript detects Tab as a character input on a textfield validation 9055 9056 * WebCoreSupport/EditorClientQt.cpp: 9057 (WebCore::EditorClientQt::handleKeyboardEvent): 9058 (WebCore::EditorClientQt::handleInputMethodKeydown): 9059 * WebCoreSupport/EditorClientQt.h: 9060 Updated for cross-platform changes as much as it was possible without a Qt build environment. 9061 90622007-12-07 Darin Adler <darin@apple.com> 9063 9064 - try to fix build 9065 9066 * Api/qwebhistoryinterface.cpp: 9067 (WebCore::historyContains): There's a WebCore function here in WebKit! Needs to 9068 be updated, since WebCore changed, but this should not be here. 9069 90702007-12-04 Darin Adler <darin@apple.com> 9071 9072 Reviewed by Kevin Decker. 9073 9074 * WebCoreSupport/FrameLoaderClientQt.cpp: Removed obsolete privateBrowsingEnabled. 9075 * WebCoreSupport/FrameLoaderClientQt.h: Ditto. 9076 90772007-12-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 9078 9079 Reviewed by Simon. 9080 9081 * Implement the InspectorClient for the Qt port 9082 * It does not support highlighting of nodes yet 9083 * Use QRC to open the internal page. The important thing is the 9084 '/' in the URL to make WebCore::Document::completeURL behave the 9085 way we want. 9086 * To make the InspectorClient work we will have to mark qrc as secure. 9087 9088 * Api/qwebpage.cpp: 9089 (QWebPagePrivate::QWebPagePrivate): 9090 * Api/qwebpage.h: 9091 * WebCoreSupport/InspectorClientQt.cpp: 9092 (WebCore::InspectorClientWebPage::hideEvent): 9093 (WebCore::InspectorClientQt::InspectorClientQt): 9094 (WebCore::InspectorClientQt::inspectorDestroyed): 9095 (WebCore::InspectorClientQt::createPage): 9096 (WebCore::InspectorClientQt::localizedStringsURL): 9097 (WebCore::InspectorClientQt::showWindow): 9098 (WebCore::InspectorClientQt::closeWindow): 9099 (WebCore::InspectorClientQt::attachWindow): 9100 (WebCore::InspectorClientQt::detachWindow): 9101 * WebCoreSupport/InspectorClientQt.h: 9102 91032007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 9104 9105 Rubber stamped by Mark. 9106 9107 Always include config.h at the beginning of the file. 9108 9109 * Api/qwebsettings.cpp: 9110 91112007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 9112 9113 Reviewed by Simon. 9114 9115 * Avoid crashes by making sure everything is layouted before 9116 we start painting. This avoids a crash in Widget::invalidateRect 9117 because QPainter::begin would fail 9118 * The QWebFrame::layout() methods and calls are left untouched because 9119 this would be an API decision. 9120 9121 9122 * Api/qwebframe.cpp: 9123 (QWebFrame::layout): 9124 * Api/qwebpage.cpp: 9125 (QWebPage::paintEvent): 9126 91272007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 9128 9129 Reviewed by Simon. 9130 9131 * SubClass QWebPage to handle hide and close events. 9132 * Forward these events to the InspectorController 9133 * The other options would have been using an eventFilter 9134 on the webpage and making InspectorClient a QObject or 9135 creating a QObject Observer. 9136 * Provide a simple QWebPage* createWindow implementation. This is needed 9137 to make FrameLoaderClientQt::dispatchCreatePage stop crashing in the case 9138 of the inspector client. 9139 9140 9141 * WebCoreSupport/InspectorClientQt.cpp: 9142 (WebCore::InspectorClientWebPage::InspectorClientWebPage): 9143 (WebCore::InspectorClientWebPage::createWindow): 9144 (WebCore::InspectorClientWebPage::hideEvent): 9145 (WebCore::InspectorClientWebPage::closeEvent): 9146 (WebCore::InspectorClientQt::createPage): 9147 91482007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 9149 9150 Reviewed by Simon. 9151 9152 * Allow adding the Inspect ContextMenuItem to our Menu 9153 * Open the Inspector when Inspect was activated. This requires 9154 that we keep the innerNonSharedNode from the HitTest around. This 9155 forces us to include <wtf/RefPtr.h> in the private header. It is 9156 the first non Qt header but should be okay. 9157 9158 9159 * Api/qwebpage.cpp: 9160 (webActionForContextMenuAction): 9161 (QWebPage::triggerAction): 9162 (QWebPage::action): 9163 (QWebPageContext::QWebPageContext): 9164 * Api/qwebpage.h: 9165 * Api/qwebpage_p.h: 9166 91672007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 9168 9169 Reviewed by Simon. 9170 9171 * Add the Developer Extras to the WebAttribute and propagate it 9172 to WebCore::Settings. This will enable the Inspect Element menu item 9173 * CodingStyle fixes in QWebSettings 9174 * Enable the Developer Extras in the QtLauncher 9175 9176 9177 * Api/qwebsettings.cpp: 9178 (QWebSettingsPrivate::apply): 9179 * Api/qwebsettings.h: 9180 * QtLauncher/main.cpp: 9181 (main): 9182 91832007-12-03 Geoffrey Garen <ggaren@apple.com> 9184 9185 Removed unnecessary and possibly incorrect #include from my last 9186 check-in. 9187 9188 * Api/qwebframe.cpp: 9189 91902007-12-03 Geoffrey Garen <ggaren@apple.com> 9191 9192 Qt build fix: Get globalExec() from the right place. 9193 91942007-11-30 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 9195 9196 Reviewed by Simon. 9197 9198 * Self destruct the clients like the ohter ports do 9199 9200 9201 * WebCoreSupport/ChromeClientQt.cpp: 9202 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel): 9203 * WebCoreSupport/ContextMenuClientQt.cpp: 9204 * WebCoreSupport/DragClientQt.cpp: 9205 * WebCoreSupport/EditorClientQt.cpp: 9206 * WebCoreSupport/InspectorClientQt.cpp: 9207 92082007-11-29 Brady Eidson <beidson@apple.com> 9209 9210 Keep it building with new client method 9211 9212 * WebCoreSupport/ChromeClientQt.cpp: 9213 (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase): 9214 (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation): 9215 * WebCoreSupport/ChromeClientQt.h: 9216 92172007-11-22 Simon Hausmann <hausmann@webkit.org> 9218 9219 Reviewed by Adam Treat. 9220 9221 Fix compilation (don't define notImplemented twice) 9222 9223 * Api/qwebnetworkinterface.cpp: 9224 92252007-11-22 Simon Hausmann <hausmann@kde.org> 9226 9227 Reviewed by George. 9228 9229 Use Q_SIGNALS/Q_SLOTS in the public API 9230 9231 * Api/qwebframe.h: 9232 * Api/qwebpage.h: 9233 92342007-11-22 Simon Hausmann <hausmann@kde.org> 9235 9236 Reviewed by George. 9237 9238 Fixed the signature of the QWebPage constructor to follow Qt guidelines. 9239 9240 * Api/qwebpage.h: 9241 92422007-11-22 Simon Hausmann <hausmann@kde.org> 9243 9244 Reviewed by George. 9245 9246 Use <QtModule/headerfile.h> instead of <Classname> in public HEADER files, to not require the include paths for the other modules to be present 9247 9248 * Api/qcookiejar.h: 9249 * Api/qwebframe.h: 9250 * Api/qwebhistoryinterface.h: 9251 * Api/qwebnetworkinterface.h: 9252 * Api/qwebobjectplugin.h: 9253 * Api/qwebobjectplugin_p.h: 9254 * Api/qwebobjectpluginconnector.h: 9255 * Api/qwebpage.h: 9256 * Api/qwebpagehistory.h: 9257 * Api/qwebsettings.h: 9258 92592007-11-22 Simon Hausmann <hausmann@kde.org> 9260 9261 Reviewed by George. 9262 9263 Removed inline copy of QExplicitlySharedDataPointer. This is not needed anymore since we require Qt >= 4.3.0. 9264 9265 * Api/qwebpagehistory.h: 9266 92672007-11-22 George Staikos <staikos@kde.org> 9268 9269 Reviewed by Simon Hausmann <hausmann@kde.org>. 9270 9271 Fix license headers 9272 9273 9274 * Api/qwebobjectplugin.cpp: 9275 * Api/qwebobjectplugin.h: 9276 * Api/qwebobjectpluginconnector.cpp: 9277 * Api/qwebobjectpluginconnector.h: 9278 92792007-11-22 Simon Hausmann <hausmann@kde.org> 9280 9281 Reviewed by George Staikos <staikos@kde.org>. 9282 9283 Fix shadowing of "page" variable that is passed as argument as well as a member variable. 9284 9285 This also fixes compilation with gcc 4.3. 9286 9287 9288 * Api/qwebframe.cpp: 9289 (QWebFramePrivate::init): 9290 92912007-11-21 Adam Treat <adam.treat@torchmobile.com> 9292 9293 Reviewed by Simon. 9294 9295 * Connect up the signal for all subframes too. 9296 9297 * Api/qwebframe.cpp: 9298 (QWebFramePrivate::init): 9299 * Api/qwebpage.cpp: 9300 (QWebPagePrivate::createMainFrame): 9301 93022007-11-20 Simon Hausmann <hausmann@kde.org> 9303 9304 Reviewed by Adam Treat <adam.treat@torchmobile.com>. 9305 9306 Remove static linkage of QtWebKit against the ICO image format plugin. 9307 9308 Instead build the support for the ICO image format as a proper standalone qt image format plugin and install it. 9309 9310 9311 * Plugins/Plugins.pro: 9312 93132007-11-20 Simon Hausmann <hausmann@kde.org> 9314 9315 Reviewed by George Staikos <staikos@kde.org>. 9316 9317 Added a default argument to textContent for the hoveringOverLink signal to keep existing two-argument connections working 9318 9319 9320 * Api/qwebpage.h: 9321 93222007-11-20 George Staikos <staikos@kde.org> 9323 9324 Reviewed by Simon Hausmann <hausmann@kde.org>. 9325 9326 Add an argument to pass the link text in the hovering signal 9327 9328 9329 * Api/qwebframe.h: 9330 * Api/qwebpage.cpp: 9331 (QWebPagePrivate::createMainFrame): 9332 (QWebPage::mouseMoveEvent): 9333 * Api/qwebpage.h: 9334 93352007-11-20 Adam Treat <adam.treat@torchmobile.com> 9336 9337 Reviewed by Simon and George. 9338 9339 * Be quiet and allow suppression of NotImplemented calls at runtime. 9340 9341 * WebCoreSupport/FrameLoaderClientQt.cpp: 9342 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme): 9343 93442007-11-19 Adam Treat <adam.treat@torchmobile.com> 9345 9346 Reviewed by Simon. 9347 9348 * Don't segfault when event pos is outside of the widget. 9349 9350 * Api/qwebpage.cpp: 9351 (QWebPage::mouseMoveEvent): 9352 (QWebPage::mousePressEvent): 9353 (QWebPage::mouseDoubleClickEvent): 9354 (QWebPage::mouseReleaseEvent): 9355 (QWebPage::contextMenuEvent): 9356 93572007-11-17 Timothy Hatcher <timothy@apple.com> 9358 9359 Reviewed by Mark Rowe. 9360 9361 Bug 13470: i18n: The Web Inspector is not localizable 9362 http://bugs.webkit.org/show_bug.cgi?id=13470 9363 9364 * WebCoreSupport/InspectorClientQt.cpp: 9365 (WebCore::InspectorClientQt::localizedStringsURL): Empty stub. 9366 * WebCoreSupport/InspectorClientQt.h: Added localizedStringsURL. 9367 93682007-11-13 Geoffrey Garen <ggaren@apple.com> 9369 9370 Build fix: changed Shared to RefCounted. 9371 9372 * WebCoreSupport/ChromeClientQt.h: 9373 * WebCoreSupport/ContextMenuClientQt.cpp: 9374 * WebCoreSupport/ContextMenuClientQt.h: 9375 * WebCoreSupport/EditorClientQt.h: 9376 * WebCoreSupport/FrameLoaderClientQt.h: 9377 93782007-11-10 Simon Hausmann <hausmann@kde.org> 9379 9380 Reviewed by Nikolas. 9381 9382 When populating the context menu with sub-menus don't add sub-menus if they're empty. 9383 9384 9385 * Api/qwebpage.cpp: 9386 (QWebPagePrivate::createContextMenu): 9387 93882007-11-10 Simon Hausmann <hausmann@kde.org> 9389 9390 Reviewed by Nikolas. 9391 9392 Added support for the Bold/Italic/Underline toggle actions. 9393 9394 9395 * Api/qwebpage.cpp: 9396 (webActionForContextMenuAction): 9397 (QWebPage::triggerAction): 9398 (QWebPage::action): 9399 * Api/qwebpage.h: 9400 94012007-11-10 Simon Hausmann <hausmann@kde.org> 9402 9403 Reviewed by Nikolas. 9404 9405 Before adding an action to the context menu call checkOrEnableIfNeeded for each action 9406 to update the enable/checked state correctly. 9407 9408 9409 * Api/qwebpage.cpp: 9410 (QWebPagePrivate::createContextMenu): 9411 (QWebPage::contextMenuEvent): 9412 * Api/qwebpage_p.h: 9413 94142007-11-10 Simon Hausmann <hausmann@kde.org> 9415 9416 Reviewed by Nikolas. 9417 9418 Mark the text direction actions as checkable actions. 9419 9420 9421 * Api/qwebpage.cpp: 9422 (QWebPage::action): 9423 94242007-11-09 Simon Hausmann <hausmann@kde.org> 9425 9426 Reviewed by Holger. 9427 9428 Implemented the webcore actions for changing the text direction. 9429 9430 9431 * Api/qwebpage.cpp: 9432 (webActionForContextMenuAction): 9433 (QWebPage::triggerAction): 9434 (QWebPage::action): 9435 * Api/qwebpage.h: 9436 94372007-11-09 Simon Hausmann <hausmann@kde.org> 9438 9439 Reviewed by Holger. 9440 9441 Fix ContextMenu allocation in the Qt port. 9442 9443 Store all items and submenus value based in ContextMenu and ContextMenuItem. 9444 That fixes the crashes when the context menu was populated with sub-menus because 9445 of the use of temporary ContextMenu objects like this: 9446 9447 ContextMenu subMenu(...); 9448 subMenu.appendItem(...); 9449 subMenu.appendItem(...); 9450 9451 subMenuItem.setSubMenu(&subMenu); // temporary pointer, need to _copy_ contents 9452 9453 9454 * Api/qwebpage.cpp: 9455 (QWebPage::contextMenuEvent): 9456 * Api/qwebpage_p.h: 9457 94582007-11-09 Simon Hausmann <hausmann@kde.org> 9459 9460 Reviewed by Holger. 9461 9462 Renamed QWebPage::NumWebActions to QWebPage::WebActionCount (for consistency) and fixed its value. 9463 9464 9465 * Api/qwebpage.h: 9466 * Api/qwebpage_p.h: 9467 94682007-11-08 Kevin McCullough <kmccullough@apple.com> 9469 9470 Reviewed by Sam. 9471 9472 - windowObjectCleared() is no longer const. It needs to setup the 9473 script debugger and cannot be const to do so. 9474 9475 * WebCoreSupport/FrameLoaderClientQt.cpp: 9476 (WebCore::FrameLoaderClientQt::windowObjectCleared): 9477 * WebCoreSupport/FrameLoaderClientQt.h: 9478 94792007-11-08 Simon Hausmann <hausmann@kde.org> 9480 9481 Reviewed by nobody (well, Holger knows about it), build fix for Qt 4.3. 9482 9483 The buildbots use Qt 4.4 which has the function in question, but Qt 9484 4.3 doesn't have it. Use removeAll() as replacement instead, it 9485 shouldn't make a difference in performance. 9486 9487 * Api/qwebsettings.cpp: 9488 (QWebSettings::~QWebSettings): 9489 94902007-11-08 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 9491 9492 Reviewed by Lars Knoll <lars@trolltech.com>. 9493 9494 Cleanup checking for the request method. 9495 9496 * Check the request method only in QWebNetworkManager::add. 9497 * Currently HEAD, GET, POST are allowed and for everything else 9498 QWebNetworkManager::add returns false. 9499 * Returning false is compatible with ResourceHandle::start and it 9500 can be used in ResourceHandle::loadResourceSynchronously to generate 9501 a ResourceError 9502 9503 9504 * Api/qwebnetworkinterface.cpp: 9505 (QWebNetworkManager::add): 9506 95072007-11-08 Holger Hans Peter Freyther <holger.freyther@trolltech.com> 9508 9509 Reviewed by Lars Knoll <lars@trolltech.com>. 9510 9511 Fix bug in the implementation of synchronous network jobs. 9512 9513 * George (pmax) reviewed the networking patches and found the following bug (thanks for reviewing) 9514 - if (jobMode == AsynchronousJob) { 9515 + if (jobMode == SynchronousJob) { 9516 add job to synchronous list/hash 9517 9518 * Just applying the above change will lead to crashes because we can finish 9519 jobs before we started them. 9520 9521 * Avoid these issues by saving all work (starting a job, sending data and 9522 finishing it) inside one list. JobWork will contain any 9523 of the above three work types and doWork will just work on this list 9524 (m_pendingWork). As foreach takes a copy of the list calling started, data 9525 and finished will not add new work and we gurantee that if we have JobStarted 9526 it will be in the list before JobData and JobFinished. 9527 9528 * Observation: We might just kill the code to handle sync jobs. 9529 9530 9531 * Api/qwebnetworkinterface.cpp: 9532 (QWebNetworkManager::add): 9533 (QWebNetworkManager::queueStart): 9534 (QWebNetworkManager::queueData): 9535 (QWebNetworkManager::queueFinished): 9536 (QWebNetworkManager::doWork): 9537 * Api/qwebnetworkinterface_p.h: 9538 (QWebNetworkManager::JobWork::): 9539 (QWebNetworkManager::JobWork::JobWork): 9540 95412007-11-07 Simon Hausmann <hausmann@kde.org> 9542 9543 Fix the Qt build by setting up WindowFeatures before calling 9544 createWindow on the Chrome. This is similar to openNewWindow in 9545 page/ContextMenuController.cpp 9546 9547 * Api/qwebpage.cpp: 9548 (openNewWindow): 9549 95502007-11-07 Simon Hausmann <hausmann@kde.org> 9551 9552 Reviewed by Lars. 9553 9554 Make the setting of letting Javascript access the clipboard configurable through QWebSettings, turn it off by default and turn it on in DumpRenderTree. 9555 9556 * Api/qwebpage.cpp: 9557 (QWebPagePrivate::QWebPagePrivate): 9558 * Api/qwebsettings.cpp: 9559 (QWebSettingsPrivate::apply): 9560 * Api/qwebsettings.h: 9561 95622007-11-07 Simon Hausmann <hausmann@kde.org> 9563 9564 Reviewed by Lars. 9565 9566 Changed QWebPageHistory::goToItem to take a value instead of a pointer. 9567 9568 * Api/qwebpagehistory.cpp: 9569 * Api/qwebpagehistory.h: 9570 95712007-11-07 Simon Hausmann <hausmann@kde.org> 9572 9573 Reviewed by Lars. 9574 9575 Removed unimplemented QWebHistoryItem::children() function 9576 9577 * Api/qwebpagehistory.h: 9578 95792007-11-07 Simon Hausmann <hausmann@kde.org> 9580 9581 Reviewed by Lars. 9582 9583 Changed the getter functions in QWebSettings to transparently resolve against the default settings. 9584 9585 * Api/qwebsettings.cpp: 9586 (QWebSettings::fontSize): 9587 (QWebSettings::fontFamily): 9588 (QWebSettings::testAttribute): 9589 95902007-11-07 Simon Hausmann <hausmann@kde.org> 9591 9592 Reviewed by Lars. 9593 9594 Added explicit functions for resetting the font sizes and font families. 9595 9596 * Api/qwebsettings.cpp: 9597 (QWebSettings::resetFontSize): 9598 (QWebSettings::resetFontFamily): 9599 * Api/qwebsettings.h: 9600 96012007-11-07 Simon Hausmann <hausmann@kde.org> 9602 9603 Reviewed by Lars. 9604 9605 Combined the font sizes accessors/setters under one setter/getter with an enum. 9606 9607 * Api/qwebsettings.cpp: 9608 (QWebSettingsPrivate::QWebSettingsPrivate): 9609 (QWebSettingsPrivate::apply): 9610 (QWebSettings::QWebSettings): 9611 (QWebSettings::setFontSize): 9612 * Api/qwebsettings.h: 9613 96142007-11-07 Simon Hausmann <hausmann@kde.org> 9615 9616 Reviewed by Lars. 9617 9618 Renamed QWebPage::userAgentStringForUrl(url) to QWebPage::userAgentFor(url); 9619 9620 * Api/qwebpage.cpp: 9621 * Api/qwebpage.h: 9622 * WebCoreSupport/FrameLoaderClientQt.cpp: 9623 (WebCore::FrameLoaderClientQt::userAgent): 9624 96252007-11-07 Simon Hausmann <hausmann@kde.org> 9626 9627 Reviewed by Lars. 9628 9629 Renamed QWebPage::webActionTriggered to QWebPage::triggerAction 9630 9631 * Api/qwebpage.cpp: 9632 (QWebPagePrivate::_q_webActionTriggered): 9633 (QWebPage::keyPressEvent): 9634 * Api/qwebpage.h: 9635 96362007-11-07 Simon Hausmann <hausmann@kde.org> 9637 9638 Reviewed by Lars. 9639 9640 Changed the virtual QWebPage::setWindowGeometry to be a geometryChangeRequest signal instead. 9641 9642 * Api/qwebpage.cpp: 9643 * Api/qwebpage.h: 9644 * WebCoreSupport/ChromeClientQt.cpp: 9645 (WebCore::ChromeClientQt::setWindowRect): 9646 96472007-11-07 Simon Hausmann <hausmann@kde.org> 9648 9649 Reviewed by Lars. 9650 9651 Renamed QWebPage::webAction() to QWebPage::action() 9652 9653 * Api/qwebpage.cpp: 9654 (QWebPagePrivate::createContextMenu): 9655 * Api/qwebpage.h: 9656 * QtLauncher/main.cpp: 9657 (MainWindow::MainWindow): 9658 96592007-11-07 Simon Hausmann <hausmann@kde.org> 9660 9661 Reviewed by Lars. 9662 9663 Removed a bunch of slots/functions that are now available through the new actions API. 9664 9665 * Api/qwebpage.cpp: 9666 * Api/qwebpage.h: 9667 96682007-11-07 Simon Hausmann <hausmann@kde.org> 9669 9670 Reviewed by Lars. 9671 9672 Added some more comments to the API after another round of API review with Lars. 9673 9674 * Api/qwebpage.h: 9675 96762007-11-07 Simon Hausmann <hausmann@kde.org> 9677 9678 Reviewed by Lars. 9679 9680 Moved QWebFrame::selectedText() to QWebPage::selectedText(). 9681 9682 The currently selected text is a property of the page as a whole. 9683 9684 * Api/qwebframe.cpp: 9685 * Api/qwebframe.h: 9686 * Api/qwebpage.cpp: 9687 (QWebPage::selectedText): 9688 * Api/qwebpage.h: 9689 96902007-11-07 Simon Hausmann <hausmann@kde.org> 9691 9692 Reviewed by Lars. 9693 9694 Implemented support for settings propagation. 9695 9696 If an individual setting is not set in a page's QWebSettings then it is inherited from the default settings. 9697 9698 * Api/qwebsettings.cpp: 9699 (QWebSettingsPrivate::QWebSettingsPrivate): 9700 (QWebSettingsPrivate::apply): 9701 (QWebSettings::QWebSettings): 9702 (QWebSettings::~QWebSettings): 9703 (QWebSettings::setFontFamily): 9704 * Api/qwebsettings.h: 9705 97062007-11-07 Simon Hausmann <hausmann@kde.org> 9707 9708 Reviewed by Lars. 9709 9710 Reworked the QWebSettings API. 9711 QWebPage now returns a pointer to its mutable QWebSettings object and the settings of newly created QWebPageObjects are initialized from QWebSettings::defaultSettings(). 9712 9713 * Api/qwebpage.cpp: 9714 (QWebPagePrivate::QWebPagePrivate): 9715 (QWebPagePrivate::~QWebPagePrivate): 9716 (QWebPage::QWebPage): 9717 * Api/qwebpage.h: 9718 * Api/qwebpage_p.h: 9719 * Api/qwebsettings.cpp: 9720 (QWebSettingsPrivate::QWebSettingsPrivate): 9721 (QWebSettingsPrivate::apply): 9722 (QWebSettings::defaultSettings): 9723 (QWebSettings::QWebSettings): 9724 (QWebSettings::setMinimumFontSize): 9725 (QWebSettings::setMinimumLogicalFontSize): 9726 (QWebSettings::setDefaultFontSize): 9727 (QWebSettings::setDefaultFixedFontSize): 9728 (QWebSettings::setUserStyleSheetLocation): 9729 (QWebSettings::setFontFamily): 9730 (QWebSettings::fontFamily): 9731 (QWebSettings::setAttribute): 9732 * Api/qwebsettings.h: 9733 * QtLauncher/main.cpp: 9734 (main): 9735 97362007-11-07 Simon Hausmann <hausmann@kde.org> 9737 9738 Reviewed by Lars. 9739 9740 Made the QWebSettings::webGraphic functions static. The implementation was using QWebSettings::global() anyway. 9741 9742 * Api/qwebsettings.cpp: 9743 (QWebSettings::setWebGraphic): 9744 * Api/qwebsettings.h: 9745 97462007-11-07 Simon Hausmann <hausmann@kde.org> 9747 9748 Reviewed by Lars. 9749 9750 Moved the WebCore::Image specific function loadResourcePixmap from qwebsettings.cpp to ImageQt.cpp and made it static. 9751 9752 * Api/qwebsettings.cpp: 9753 97542007-11-07 Simon Hausmann <hausmann@kde.org> 9755 9756 Reviewed by Lars. 9757 9758 Changed the icondatabase accessor to be a static function because it doesn't change the QWebSettings object. 9759 9760 * Api/qwebsettings.cpp: 9761 * Api/qwebsettings.h: 9762 97632007-11-07 Simon Hausmann <hausmann@kde.org> 9764 9765 Reviewed by Lars. 9766 9767 Changed the webAction() accessor to not be a slot but just a public function. 9768 9769 * Api/qwebpage.h: 9770 97712007-11-07 Simon Hausmann <hausmann@kde.org> 9772 9773 Reviewed by Lars. 9774 9775 Implemented createWindow() in QtLauncher. 9776 9777 * QtLauncher/main.cpp: 9778 (WebPage::WebPage): 9779 (MainWindow::MainWindow): 9780 (WebPage::createWindow): 9781 97822007-11-07 Simon Hausmann <hausmann@kde.org> 9783 9784 Reviewed by Lars. 9785 9786 Implemented opening links in new windows 9787 9788 * Api/qwebpage.cpp: 9789 (frameLoadRequest): 9790 (openNewWindow): 9791 (QWebPage::webActionTriggered): 9792 97932007-11-07 Simon Hausmann <hausmann@kde.org> 9794 9795 Reviewed by Lars. 9796 9797 Added and implemented the "OpenLink" action. 9798 9799 * Api/qwebpage.cpp: 9800 (webActionForContextMenuAction): 9801 (QWebPage::webActionTriggered): 9802 (QWebPage::webAction): 9803 * Api/qwebpage.h: 9804 98052007-11-07 Simon Hausmann <hausmann@kde.org> 9806 9807 Reviewed by Lars. 9808 9809 Adjust the state of the reload action correctly. 9810 9811 * Api/qwebpage.cpp: 9812 (QWebPagePrivate::updateAction): 9813 (QWebPagePrivate::updateNavigationActions): 9814 98152007-11-07 Simon Hausmann <hausmann@kde.org> 9816 9817 Reviewed by Lars. 9818 9819 Initialize the undo/redo actions from QUndoStack. That automatically takes care of enabling/disabling them as well as the activation/trigger. 9820 9821 * Api/qwebpage.cpp: 9822 (QWebPagePrivate::updateAction): 9823 (QWebPage::webAction): 9824 (QWebPage::undoStack): 9825 * Api/qwebpage.h: 9826 98272007-11-07 Simon Hausmann <hausmann@kde.org> 9828 9829 Reviewed by Lars. 9830 9831 Added undo/redo toolbar buttons, moved the location line edit into a separate toolbar. 9832 9833 * QtLauncher/main.cpp: 9834 (MainWindow::MainWindow): 9835 98362007-11-07 Simon Hausmann <hausmann@kde.org> 9837 9838 Reviewed by Lars. 9839 9840 Update the editor actions when the selection changes. 9841 9842 * Api/qwebpage.cpp: 9843 (QWebPagePrivate::updateAction): 9844 (QWebPagePrivate::updateEditorActions): 9845 * Api/qwebpage_p.h: 9846 * WebCoreSupport/EditorClientQt.cpp: 9847 (WebCore::EditorClientQt::respondToChangedSelection): 9848 98492007-11-07 Simon Hausmann <hausmann@kde.org> 9850 9851 Reviewed by Lars. 9852 9853 Added cut/copy/paste actions to the toolbar of QtLauncher 9854 9855 * QtLauncher/main.cpp: 9856 (MainWindow::MainWindow): 9857 98582007-11-07 Simon Hausmann <hausmann@kde.org> 9859 9860 Reviewed by Lars. 9861 9862 Started working on keeping the state of the navigation actions up-to-date. 9863 9864 * Api/qwebpage.cpp: 9865 (QWebPagePrivate::updateAction): 9866 (QWebPagePrivate::updateNavigationActions): 9867 (QWebPage::webAction): 9868 * Api/qwebpage_p.h: 9869 * WebCoreSupport/FrameLoaderClientQt.cpp: 9870 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad): 9871 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): 9872 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 9873 (WebCore::FrameLoaderClientQt::postProgressStartedNotification): 9874 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation): 9875 98762007-11-07 Simon Hausmann <hausmann@kde.org> 9877 9878 Reviewed by Lars. 9879 9880 Use the navigational web actions in the toolbar 9881 9882 * QtLauncher/main.cpp: 9883 (MainWindow::MainWindow): 9884 98852007-11-07 Simon Hausmann <hausmann@kde.org> 9886 9887 Reviewed by Lars. 9888 9889 Store a bunch of QActions in QWebPagePrivate, corresponding to QWebPage::WebAction. 9890 Added QWebPageContext to hold context sensitive information (for example used by the context menu). 9891 9892 * Api/qwebpage.cpp: 9893 (QWebPagePrivate::QWebPagePrivate): 9894 (webActionForContextMenuAction): 9895 (QWebPagePrivate::createContextMenu): 9896 (QWebPagePrivate::_q_webActionTriggered): 9897 (QWebPage::webActionTriggered): 9898 (QWebPage::webAction): 9899 (QWebPage::contextMenuEvent): 9900 (QWebPageContext::QWebPageContext): 9901 (QWebPageContext::operator=): 9902 (QWebPageContext::~QWebPageContext): 9903 (QWebPageContext::pos): 9904 (QWebPageContext::text): 9905 (QWebPageContext::linkUrl): 9906 (QWebPageContext::imageUrl): 9907 (QWebPageContext::image): 9908 (QWebPageContext::targetFrame): 9909 * Api/qwebpage.h: 9910 * Api/qwebpage_p.h: 9911 99122007-11-07 Simon Hausmann <hausmann@kde.org> 9913 9914 Reviewed by Lars. 9915 9916 Moved the editing actions implemented in keyPressEvent into webActionTriggered. 9917 9918 * Api/qwebpage.cpp: 9919 (QWebPage::webActionTriggered): 9920 (QWebPage::keyPressEvent): 9921 * Api/qwebpage.h: 9922 99232007-11-07 Simon Hausmann <hausmann@kde.org> 9924 9925 Reviewed by Lars. 9926 9927 Introduced a central virtual void webActionTriggered(WebAction action) method that is called from various 9928 convenience methods such as cut()/copy()/paste(). 9929 9930 * Api/qwebpage.cpp: 9931 (QWebPage::goBack): 9932 (QWebPage::webActionTriggered): 9933 (QWebPage::cut): 9934 (QWebPage::copy): 9935 * Api/qwebpage.h: 9936 99372007-11-07 Simon Hausmann <hausmann@kde.org> 9938 9939 Reviewed by Lars. 9940 9941 Restructure the context menu classes for the Qt port. ContextMenu and ContextMenuItem don't store 9942 QActions/QMenus anymore but just store the action type, tag, title and optionally submenu as created 9943 in ContextMenu::populate(). 9944 For the actual Qt context menu we traverse this structure after sendContextMenuEvent and create a QMenu 9945 out of it. That menu is currently not functional anymore though. 9946 9947 * Api/qwebpage.cpp: 9948 (QWebPagePrivate::createContextMenu): 9949 (QWebPage::contextMenuEvent): 9950 * Api/qwebpage_p.h: 9951 99522007-11-07 Simon Hausmann <hausmann@kde.org> 9953 9954 Reviewed by Lars. 9955 9956 Changed ContextMenu::setPlatformDescription for the Qt port to not show the qmenu right away 9957 but instead just behave as a normal setter that takes ownership of the platform menu description (the qmenu). 9958 Instead now QWebPage::contextMenuEvent() retrieves the QMenu after calling sendContextMenuEvent and calls exec() 9959 on it. 9960 9961 * Api/qwebpage.cpp: 9962 (QWebPage::contextMenuEvent): 9963 * WebCoreSupport/ContextMenuClientQt.cpp: 9964 (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems): 9965 99662007-11-07 Simon Hausmann <hausmann@kde.org> 9967 9968 Reviewed by Lars. 9969 9970 Changed to PlatformMouseEvent constructor to allow construction from a QContextMenuEvent. 9971 Call sendContextMenuEvent on the event handler from a QWidget::contextMenuEvent re-implementation instead of in mousePressEvent. 9972 9973 * Api/qwebpage.cpp: 9974 (QWebPage::mousePressEvent): 9975 (QWebPage::contextMenuEvent): 9976 * Api/qwebpage.h: 9977 99782007-11-07 Simon Hausmann <hausmann@kde.org> 9979 9980 Reviewed by Lars. 9981 9982 Turned onLoadProgressChanged into a real private slot. 9983 9984 * Api/qwebpage.cpp: 9985 (QWebPage::QWebPage): 9986 * Api/qwebpage.h: 9987 * Api/qwebpage_p.h: 9988 99892007-11-07 Simon Hausmann <hausmann@kde.org> 9990 9991 Reviewed by Lars. 9992 9993 Make QWebHistory an explicitly shared object, returned as a pointer by QWebPage::history(). 9994 9995 * Api/qwebpage.cpp: 9996 (QWebPagePrivate::QWebPagePrivate): 9997 * Api/qwebpage.h: 9998 * Api/qwebpage_p.h: 9999 * Api/qwebpagehistory.cpp: 10000 (QWebPageHistory::QWebPageHistory): 10001 * Api/qwebpagehistory.h: 10002 100032007-11-07 Lars Knoll <lars@trolltech.com> 10004 10005 Reviewed by Simon. 10006 10007 comments on API changes that we'd like to do. 10008 10009 * Api/qwebpage.h: 10010 100112007-11-07 Simon Hausmann <hausmann@kde.org> 10012 10013 Reviewed by Lars Knoll <lars@trolltech.com>. 10014 10015 Add a QWebPage::frameCreated() signal and fix DRT 10016 10017 The removal of createFrame in QWebPage broke the re-implementation 10018 in DumpRenderTree. Instead emit a frameCreated() signal and 10019 connect to it in DumpRenderTree. 10020 10021 10022 * Api/qwebpage.cpp: 10023 (QWebPagePrivate::createMainFrame): 10024 * Api/qwebpage.h: 10025 * WebCoreSupport/FrameLoaderClientQt.cpp: 10026 (WebCore::FrameLoaderClientQt::createFrame): 10027 100282007-11-07 Lars Knoll <lars@trolltech.com> 10029 10030 Reviewed by Simon. 10031 10032 Remove QWebPage::createFrame() 10033 10034 now that QWebFrame doesn't have virtual methods anymore, there 10035 is no need for a createFrame() factory method in QWebpage. 10036 10037 * Api/qwebpage.cpp: 10038 (QWebPagePrivate::createMainFrame): 10039 * Api/qwebpage.h: 10040 * WebCoreSupport/FrameLoaderClientQt.cpp: 10041 (WebCore::FrameLoaderClientQt::createFrame): 10042 100432007-11-07 Simon Hausmann <hausmann@kde.org> 10044 10045 Reviewed by Lars Knoll <lars@trolltech.com>. 10046 10047 Moved all the event handlers from QWebFrame into QWebPage. 10048 10049 This cleans up the public API and allows us to remove the 10050 HackWebFrame hack in DumpRenderTree. 10051 10052 10053 * Api/qwebframe.cpp: 10054 (QWebFrame::pos): 10055 * Api/qwebframe.h: 10056 * Api/qwebframe_p.h: 10057 * Api/qwebpage.cpp: 10058 (QWebPagePrivate::frameAt): 10059 (QWebPage::mouseMoveEvent): 10060 (QWebPage::mousePressEvent): 10061 (QWebPage::mouseDoubleClickEvent): 10062 (QWebPage::mouseReleaseEvent): 10063 (QWebPage::wheelEvent): 10064 * Api/qwebpage_p.h: 10065 100662007-11-07 Holger Freyther <holger.freyther@trolltech.com> 10067 10068 Reviewed by Lars Knoll <lars@trolltech.com>. 10069 10070 Use correct UserAgent string. 10071 10072 * Only have one User Agent String and this place is QWebPage 10073 * QWebPage::open -> QWebNetworkRequest -> QWebPage::open -> 10074 ResourceRequest -> FrameLoader::load -> QWebNetworkRequest 10075 * ResourceRequest is != 0 when getting called from WebCore, we 10076 will only do requests when coming from WebCore and then we can 10077 use the User-Agent set with the help of the FrameLoaderClient 10078 * We might want to change QWebNetworkRequest a bit 10079 10080 10081 * Api/qwebnetworkinterface.cpp: 10082 (QWebNetworkRequestPrivate::init): 10083 100842007-11-07 Lars Knoll <lars@trolltech.com> 10085 10086 Reviewed by Simon. 10087 10088 remove two notImplemented() warnings, as I believe we don't 10089 have to implement these methods. Add some (commented out) 10090 debug code in one place. 10091 10092 * WebCoreSupport/EditorClientQt.cpp: 10093 (WebCore::EditorClientQt::respondToChangedSelection): 10094 (WebCore::EditorClientQt::didWriteSelectionToPasteboard): 10095 100962007-11-05 Tristan O'Tierney <tristan@apple.com> 10097 10098 Reviewed by Darin Adler. 10099 10100 * WebCoreSupport/ChromeClientQt.cpp: 10101 (WebCore::ChromeClientQt::createWindow): 10102 * WebCoreSupport/ChromeClientQt.h: 10103 Revised to use new WebCore ChromeClient createWindow API. 10104 101052007-10-31 Lars Knoll <lars@trolltech.com> 10106 10107 Reviewed by Simon. 10108 10109 fix most of the issues I found with Clipboard and DnD. 10110 10111 * Api/qwebpage.cpp: 10112 (QWebPage::dragLeaveEvent): 10113 101142007-10-31 Lars Knoll <lars@trolltech.com> 10115 10116 Reviewed by Simon. 10117 10118 QDrag objects need to be created on the heap. 10119 10120 * WebCoreSupport/DragClientQt.cpp: 10121 (WebCore::DragClientQt::startDrag): 10122 101232007-10-31 Lars Knoll <lars@trolltech.com> 10124 10125 Reviewed by Simon. 10126 10127 a dragLeave event is not the same as cancelling a drag. 10128 10129 * Api/qwebpage.cpp: 10130 101312007-10-26 Mark Rowe <mrowe@apple.com> 10132 10133 Build fix. Add missing #include of Platform.h. 10134 10135 * Api/qwebhistoryinterface.cpp: 10136 101372007-10-25 Holger Freyther <zecke@selfish.org> 10138 10139 Reviewed by Simon Hausmann <hausmann@kde.org>. 10140 10141 * We need to set a != 0 status code for the fast/loader/xmlhttprequest-missing-file-exception.html 10142 * libxml2 has the semantic that when writing an empty string and finishing it will report an error. For QXmlStreamReader this is valid. 10143 * This is causing some regressions... 10144 10145 10146 * Api/qwebnetworkinterface.cpp: 10147 (QWebNetworkManager::started): 10148 (QWebNetworkInterface::addJob): 10149 101502007-10-25 Holger Freyther <zecke@selfish.org> 10151 10152 Reviewed by Simon Hausmann <hausmann@kde.org>. 10153 10154 * Make fast/loader/xmlhttprequest-bad-mimetype.html pass. We use QHttp to download local files but we may not set the HTTP result code on the ResourceResponse. 10155 * We can use the cross-platform result now. QWebNetworkInterface/Manager behaves the same as mac for local files. 10156 10157 10158 * Api/qwebnetworkinterface.cpp: 10159 (QWebNetworkManager::started): 10160 101612007-10-25 Holger Freyther <zecke@selfish.org> 10162 10163 Reviewed by Simon Hausmann <hausmann@kde.org>. 10164 10165 * fast/dom/onerror-img.html regressed due checking the JobStates because in case of error (e.g. not being able to connect) the job will no be started. 10166 * Use the error message from Qt. It might or might not be translated. 10167 10168 10169 * Api/qwebnetworkinterface.cpp: 10170 (QWebNetworkJob::errorString): 10171 (QWebNetworkJob::setErrorString): 10172 (QWebNetworkManager::finished): 10173 (QWebNetworkManager::doWork): 10174 (WebCoreHttp::onRequestFinished): 10175 * Api/qwebnetworkinterface.h: 10176 * Api/qwebnetworkinterface_p.h: 10177 101782007-10-25 Holger Freyther <zecke@selfish.org> 10179 10180 Reviewed by Simon Hausmann <hausmann@kde.org>. 10181 10182 * Use the JobStatus to make sure to not deliver finished/data before the job has started. This is the case with the fast/dom/onerror-img.html test case. 10183 * We have no idea if any data will come so we can still finish and then get pending data. This luckily can't happen for the local file case. 10184 10185 10186 * Api/qwebnetworkinterface.cpp: 10187 (QWebNetworkManager::doWork): 10188 101892007-10-25 Holger Freyther <zecke@selfish.org> 10190 10191 Reviewed by Simon Hausmann <hausmann@kde.org>. 10192 10193 * No need to initialize values in the QWebNetworkJob c'tor 10194 * Add a JobStatus to QWebNetworkJob and verify that the jobs are handled in the way we expect them to be handled. This means no data after the job has finished, not finishing a job before it has been started. 10195 10196 10197 * Api/qwebnetworkinterface.cpp: 10198 (QWebNetworkJob::status): 10199 (QWebNetworkJob::setStatus): 10200 (QWebNetworkManager::started): 10201 (QWebNetworkManager::data): 10202 (QWebNetworkManager::finished): 10203 * Api/qwebnetworkinterface.h: 10204 * Api/qwebnetworkinterface_p.h: 10205 (QWebNetworkJobPrivate::QWebNetworkJobPrivate): 10206 102072007-10-25 Holger Freyther <zecke@selfish.org> 10208 10209 Reviewed by Simon Hausmann <hausmann@kde.org>. 10210 10211 * Consistency: Always name the jobs job. 10212 10213 10214 * Api/qwebnetworkinterface.cpp: 10215 (WebCoreHttp::onReadyRead): 10216 (WebCoreHttp::onRequestFinished): 10217 (WebCoreHttp::onSslErrors): 10218 (WebCoreHttp::onAuthenticationRequired): 10219 (WebCoreHttp::onProxyAuthenticationRequired): 10220 102212007-10-25 Holger Freyther <zecke@selfish.org> 10222 10223 Reviewed by Simon Hausmann <hausmann@kde.org>. 10224 10225 * Implement our own queuing of network jobs to allow special handling of synchronous jobs. This makes us pass the fast/dom/xmlhttprequest-html-response-encoding.html test without a crash. Sync jobs will get a special treatment over the normals ones and in theory more than one sync job is supported. 10226 * This should be thread-safe besides QWebNetworkJob::{ref,deref} 10227 10228 10229 * Api/qwebnetworkinterface.cpp: 10230 (QWebNetworkJob::~QWebNetworkJob): 10231 (QWebNetworkManager::QWebNetworkManager): 10232 (QWebNetworkManager::self): 10233 (QWebNetworkManager::add): 10234 (QWebNetworkManager::started): 10235 (QWebNetworkManager::finished): 10236 (QWebNetworkInterfacePrivate::sendFileData): 10237 (QWebNetworkInterfacePrivate::parseDataUrl): 10238 (QWebNetworkManager::queueStart): 10239 (QWebNetworkManager::queueData): 10240 (QWebNetworkManager::queueFinished): 10241 (QWebNetworkManager::doScheduleWork): 10242 (QWebNetworkManager::doWork): 10243 (gCleanupInterface): 10244 (QWebNetworkInterface::setDefaultInterface): 10245 (QWebNetworkInterface::defaultInterface): 10246 (QWebNetworkInterface::QWebNetworkInterface): 10247 (QWebNetworkInterface::started): 10248 (QWebNetworkInterface::data): 10249 (QWebNetworkInterface::finished): 10250 (WebCoreHttp::scheduleNextRequest): 10251 (WebCoreHttp::onResponseHeaderReceived): 10252 (WebCoreHttp::onReadyRead): 10253 (WebCoreHttp::onRequestFinished): 10254 (WebCoreHttp::cancel): 10255 * Api/qwebnetworkinterface.h: 10256 * Api/qwebnetworkinterface_p.h: 10257 (QWebNetworkManager::): 10258 (QWebNetworkManager::JobData::JobData): 10259 (QWebNetworkManager::JobFinished::JobFinished): 10260 102612007-10-25 Holger Freyther <zecke@selfish.org> 10262 10263 Reviewed by Simon Hausmann <hausmann@kde.org>. 10264 10265 * Do the percent replacement only when we are not base64. With base64 we should not have any % in it anyway. 10266 * Have a custom decodePercentEncoding method that works without doing any charset conversion. With converting back to latin1() we lost some information. 10267 * We pass the char-decoding.html test now 10268 10269 10270 * Api/qwebnetworkinterface.cpp: 10271 (decodePercentEncoding): 10272 (QWebNetworkInterfacePrivate::parseDataUrl): 10273 102742007-10-24 Holger Hans Peter Freyther <zecke@selfish.org> 10275 10276 Reviewed by Lars Knoll <lars@trolltech.com>. 10277 10278 * Stop crashing on fast/events/frame-tab-focus.html the keyEvent can be 0. 10279 10280 10281 * WebCoreSupport/EditorClientQt.cpp: 10282 (WebCore::EditorClientQt::handleKeypress): 10283 102842007-10-24 Lars Knoll <lars@trolltech.com> 10285 10286 Reviewed by Simon. 10287 10288 remove some notImplemented() warnings. 10289 10290 * WebCoreSupport/EditorClientQt.cpp: 10291 (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled): 10292 (WebCore::EditorClientQt::isGrammarCheckingEnabled): 10293 (WebCore::EditorClientQt::respondToChangedSelection): 10294 102952007-10-24 Lars Knoll <lars@trolltech.com> 10296 10297 Reviewed by Simon. 10298 10299 allow paste from DOM so we pass more test cases. 10300 10301 * Api/qwebpage.cpp: 10302 (QWebPage::setSettings): 10303 103042007-10-24 Lars Knoll <lars@trolltech.com> 10305 10306 Reviewed by Simon. 10307 10308 Simplify the PlatformKeyEvent constructor. No need to have an extra boolean for isKeyUp in there, as the QKeyEvent has the information. 10309 10310 * Api/qwebpage.cpp: 10311 (QWebPage::keyPressEvent): 10312 (QWebPage::keyReleaseEvent): 10313 103142007-10-24 Lars Knoll <lars@trolltech.com> 10315 10316 Reviewed by Simon. 10317 10318 some smaller fixes to the editing support in DRT. Makes another few tests pass. 10319 10320 * WebCoreSupport/EditorClientQt.cpp: 10321 (qt_dump_editing_callbacks): 10322 (qt_drt_run): 10323 103242007-10-24 Lars Knoll <lars@trolltech.com> 10325 10326 Reviewed by Simon. 10327 10328 implemented support for most editing shortcuts to make contentEditable usable. 10329 10330 * Api/qwebpage.cpp: 10331 (QWebPage::keyPressEvent): 10332 103332007-10-24 Lars Knoll <lars@trolltech.com> 10334 10335 Reviewed by Simon. 10336 10337 no need to call setIsActive ourselves on the frame, as the focus controller does it for us. 10338 10339 * Api/qwebpage.cpp: 10340 (QWebPage::focusInEvent): 10341 103422007-10-24 Lars Knoll <lars@trolltech.com> 10343 10344 Reviewed by Simon. 10345 10346 Implement support for testing editing. 10347 10348 * WebCoreSupport/EditorClientQt.cpp: 10349 (qt_dump_editing_callbacks): 10350 (qt_dump_set_accepts_editing): 10351 (dumpPath): 10352 (dumpRange): 10353 (WebCore::EditorClientQt::shouldDeleteRange): 10354 (WebCore::EditorClientQt::shouldShowDeleteInterface): 10355 (WebCore::EditorClientQt::shouldBeginEditing): 10356 (WebCore::EditorClientQt::shouldEndEditing): 10357 (WebCore::EditorClientQt::shouldInsertText): 10358 (WebCore::EditorClientQt::shouldChangeSelectedRange): 10359 (WebCore::EditorClientQt::shouldApplyStyle): 10360 (WebCore::EditorClientQt::didBeginEditing): 10361 (WebCore::EditorClientQt::respondToChangedContents): 10362 (WebCore::EditorClientQt::respondToChangedSelection): 10363 (WebCore::EditorClientQt::didEndEditing): 10364 (WebCore::EditorClientQt::shouldInsertNode): 10365 103662007-10-19 Alp Toker <alp@atoker.com> 10367 10368 Reviewed by Oliver. 10369 10370 GTK+ build fix enabling the new local database storage feature. 10371 There is also a prospective Qt build fix. 10372 10373 * WebCoreSupport/ChromeClientQt.cpp: 10374 (WebCore::ChromeClientQt::runDatabaseSizeLimitPrompt): 10375 * WebCoreSupport/ChromeClientQt.h: 10376 103772007-10-19 Simon Hausmann <hausmann@kde.org> 10378 10379 Fix the Qt/Windows build: Include the moc file from the .cpp file so 10380 that config.h is included before wtf/MathExtras. The former defines 10381 the MSVC defines for rand_s. 10382 10383 * WebCoreSupport/FrameLoaderClientQt.cpp: 10384 103852007-10-19 Simon Hausmann <shausman@trolltech.com> 10386 10387 Reviewed by Lars. 10388 10389 Fix the windows/qt build by including config.h first to fix wtf/MathExtras.h inclusion. 10390 10391 * Api/qwebframe.cpp: 10392 * Api/qwebpage.cpp: 10393 103942007-10-10 Alice Liu <alice.liu@apple.com> 10395 10396 Reviewed by Geoff Garen. 10397 10398 changes to keep the build from breaking 10399 10400 * WebCoreSupport/FrameLoaderClientQt.cpp: 10401 (WebCore::FrameLoaderClientQt::createFrame): 10402 * WebCoreSupport/FrameLoaderClientQt.h: 10403 104042007-10-09 Lars Knoll <lars@trolltech.com> 10405 10406 Reviewed by Simon. 10407 10408 set a default encoding for documents. Makes fast/dom/Document/document-charset.html pass. 10409 10410 * Api/qwebpage.cpp: 10411 (QWebPage::setSettings): 10412 104132007-10-09 Lars Knoll <lars@trolltech.com> 10414 10415 Reviewed by Simon. 10416 10417 Don't return a 404 status code for empty data: urls. Fixes fast/dom/HTMLHeadElement/head-check.html 10418 10419 * Api/qwebnetworkinterface.cpp: 10420 (QWebNetworkManager::add): 10421 (QWebNetworkManager::cancel): 10422 (QWebNetworkManager::started): 10423 (QWebNetworkManager::data): 10424 (QWebNetworkInterfacePrivate::parseDataUrl): 10425 104262007-10-09 Lars Knoll <lars@trolltech.com> 10427 10428 Reviewed by Simon. 10429 10430 Don't set up connections inside QWebPage::createFrame, as users might be reimplementing that method. Make sure we get only one titleChanged() signal per title change, and implement the support for testing this in DRT. 10431 10432 * Api/qwebpage.cpp: 10433 (QWebPagePrivate::createMainFrame): 10434 (QWebPage::createFrame): 10435 * WebCoreSupport/FrameLoaderClientQt.cpp: 10436 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle): 10437 * WebCoreSupport/FrameLoaderClientQt.h: 10438 104392007-10-09 Lars Knoll <lars@trolltech.com> 10440 10441 Reviewed by Simon. 10442 10443 add a clear() method to QWebPageHistory. 10444 10445 * Api/qwebpagehistory.cpp: 10446 (QWebPageHistory::clear): 10447 (QWebPageHistory::itemAtIndex): 10448 * Api/qwebpagehistory.h: 10449 104502007-10-05 Lars Knoll <lars@trolltech.com> 10451 10452 add proper error messages to the FrameLoaderClient. 10453 Implement ChromeClientQt::closeWindowSoon and 10454 FrameLoaderClientQt::dispatchCreatePage (which should go away IMO). 10455 Some fixes in DRT to make it work correctly with multiple windows. 10456 10457 Reviewed by Maciej. 10458 10459 * Api/qwebframe.h: 10460 * Api/qwebnetworkinterface.cpp: 10461 (QWebNetworkManager::cancel): 10462 (QWebNetworkInterface::addJob): 10463 * WebCoreSupport/ChromeClientQt.cpp: 10464 (WebCore::ChromeClientQt::closeWindowSoon): 10465 * WebCoreSupport/FrameLoaderClientQt.cpp: 10466 (WebCore::FrameLoaderClientQt::cancelledError): 10467 (WebCore::): 10468 (WebCore::FrameLoaderClientQt::blockedError): 10469 (WebCore::FrameLoaderClientQt::cannotShowURLError): 10470 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 10471 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError): 10472 (WebCore::FrameLoaderClientQt::dispatchCreatePage): 10473 104742007-10-03 Lars Knoll <lars@trolltech.com> 10475 10476 Signed off by Olliej. 10477 10478 move WebKitQt to WebKit/qt for consistency with the other ports. 10479 10480 * Api/headers.pri: Renamed from WebKitQt/Api/headers.pri. 10481 * Api/qcookiejar.cpp: Renamed from WebKitQt/Api/qcookiejar.cpp. 10482 (QCookieJarPrivate::QCookieJarPrivate): 10483 (qHash): 10484 (QCookieJar::QCookieJar): 10485 (QCookieJar::~QCookieJar): 10486 (QCookieJar::setCookies): 10487 (QCookieJar::cookies): 10488 (QCookieJar::isEnabled): 10489 (QCookieJar::setEnabled): 10490 (gCleanupJar): 10491 (QCookieJar::setCookieJar): 10492 (QCookieJar::cookieJar): 10493 * Api/qcookiejar.h: Renamed from WebKitQt/Api/qcookiejar.h. 10494 * Api/qtwebkit.prf: Renamed from WebKitQt/Api/qtwebkit.prf. 10495 * Api/qwebframe.cpp: Renamed from WebKitQt/Api/qwebframe.cpp. 10496 (QWebFramePrivate::init): 10497 (QWebFramePrivate::parentFrame): 10498 (QWebFramePrivate::horizontalScrollBar): 10499 (QWebFramePrivate::verticalScrollBar): 10500 (QWebFrame::QWebFrame): 10501 (QWebFrame::~QWebFrame): 10502 (QWebFrame::addToJSWindowObject): 10503 (QWebFrame::markup): 10504 (QWebFrame::innerText): 10505 (QWebFrame::renderTreeDump): 10506 (QWebFrame::title): 10507 (QWebFrame::name): 10508 (QWebFrame::page): 10509 (QWebFrame::selectedText): 10510 (QWebFrame::childFrames): 10511 (QWebFrame::verticalScrollBarPolicy): 10512 (QWebFrame::setVerticalScrollBarPolicy): 10513 (QWebFrame::horizontalScrollBarPolicy): 10514 (QWebFrame::setHorizontalScrollBarPolicy): 10515 (QWebFrame::render): 10516 (QWebFrame::layout): 10517 (QWebFrame::pos): 10518 (QWebFrame::geometry): 10519 (QWebFrame::evaluateJavaScript): 10520 (QWebFrame::mouseMoveEvent): 10521 (QWebFrame::mousePressEvent): 10522 (QWebFrame::mouseDoubleClickEvent): 10523 (QWebFrame::mouseReleaseEvent): 10524 (QWebFrame::wheelEvent): 10525 * Api/qwebframe.h: Renamed from WebKitQt/Api/qwebframe.h. 10526 * Api/qwebframe_p.h: Renamed from WebKitQt/Api/qwebframe_p.h. 10527 (QWebFramePrivate::QWebFramePrivate): 10528 * Api/qwebhistoryinterface.cpp: Renamed from WebKitQt/Api/qwebhistoryinterface.cpp. 10529 (WebCore::historyContains): 10530 (gCleanupInterface): 10531 (QWebHistoryInterface::setDefaultInterface): 10532 (QWebHistoryInterface::defaultInterface): 10533 (QWebHistoryInterface::QWebHistoryInterface): 10534 * Api/qwebhistoryinterface.h: Renamed from WebKitQt/Api/qwebhistoryinterface.h. 10535 * Api/qwebkitglobal.h: Renamed from WebKitQt/Api/qwebkitglobal.h. 10536 * Api/qwebnetworkinterface.cpp: Renamed from WebKitQt/Api/qwebnetworkinterface.cpp. 10537 (qHash): 10538 (operator==): 10539 (QWebNetworkRequestPrivate::init): 10540 (QWebNetworkRequestPrivate::setURL): 10541 (QWebNetworkRequest::QWebNetworkRequest): 10542 (QWebNetworkRequest::operator=): 10543 (QWebNetworkRequest::~QWebNetworkRequest): 10544 (QWebNetworkRequest::url): 10545 (QWebNetworkRequest::setUrl): 10546 (QWebNetworkRequest::httpHeader): 10547 (QWebNetworkRequest::setHttpHeader): 10548 (QWebNetworkRequest::httpHeaderField): 10549 (QWebNetworkRequest::setHttpHeaderField): 10550 (QWebNetworkRequest::postData): 10551 (QWebNetworkRequest::setPostData): 10552 (QWebNetworkJob::QWebNetworkJob): 10553 (QWebNetworkJob::~QWebNetworkJob): 10554 (QWebNetworkJob::url): 10555 (QWebNetworkJob::postData): 10556 (QWebNetworkJob::httpHeader): 10557 (QWebNetworkJob::request): 10558 (QWebNetworkJob::response): 10559 (QWebNetworkJob::setResponse): 10560 (QWebNetworkJob::cancelled): 10561 (QWebNetworkJob::ref): 10562 (QWebNetworkJob::deref): 10563 (QWebNetworkJob::networkInterface): 10564 (QWebNetworkJob::frame): 10565 (QWebNetworkManager::QWebNetworkManager): 10566 (QWebNetworkManager::self): 10567 (QWebNetworkManager::add): 10568 (QWebNetworkManager::cancel): 10569 (QWebNetworkManager::started): 10570 (QWebNetworkManager::data): 10571 (QWebNetworkManager::finished): 10572 (QWebNetworkManager::addHttpJob): 10573 (QWebNetworkManager::cancelHttpJob): 10574 (QWebNetworkManager::httpConnectionClosed): 10575 (QWebNetworkInterfacePrivate::sendFileData): 10576 (QWebNetworkInterfacePrivate::parseDataUrl): 10577 (gCleanupInterface): 10578 (QWebNetworkInterface::setDefaultInterface): 10579 (QWebNetworkInterface::defaultInterface): 10580 (QWebNetworkInterface::QWebNetworkInterface): 10581 (QWebNetworkInterface::~QWebNetworkInterface): 10582 (QWebNetworkInterface::addJob): 10583 (QWebNetworkInterface::cancelJob): 10584 (WebCoreHttp::WebCoreHttp): 10585 (WebCoreHttp::~WebCoreHttp): 10586 (WebCoreHttp::request): 10587 (WebCoreHttp::scheduleNextRequest): 10588 (WebCoreHttp::getConnection): 10589 (WebCoreHttp::onResponseHeaderReceived): 10590 (WebCoreHttp::onReadyRead): 10591 (WebCoreHttp::onRequestFinished): 10592 (WebCoreHttp::onDone): 10593 (WebCoreHttp::onStateChanged): 10594 (WebCoreHttp::cancel): 10595 (WebCoreHttp::onSslErrors): 10596 (WebCoreHttp::onAuthenticationRequired): 10597 (WebCoreHttp::onProxyAuthenticationRequired): 10598 (HostInfo::HostInfo): 10599 * Api/qwebnetworkinterface.h: Renamed from WebKitQt/Api/qwebnetworkinterface.h. 10600 * Api/qwebnetworkinterface_p.h: Renamed from WebKitQt/Api/qwebnetworkinterface_p.h. 10601 (QWebNetworkJobPrivate::QWebNetworkJobPrivate): 10602 (WebCore::HostInfo::HostInfo): 10603 (WebCore::WebCoreHttp::HttpConnection::HttpConnection): 10604 * Api/qwebobjectplugin.cpp: Renamed from WebKitQt/Api/qwebobjectplugin.cpp. 10605 (QWebFactoryLoader::QWebFactoryLoader): 10606 (QWebFactoryLoader::self): 10607 (QWebFactoryLoader::descriptionForName): 10608 (QWebFactoryLoader::mimetypesForName): 10609 (QWebFactoryLoader::mimeTypeForExtension): 10610 (QWebFactoryLoader::extensions): 10611 (QWebFactoryLoader::nameForMimetype): 10612 (QWebFactoryLoader::create): 10613 (QWebObjectPlugin::QWebObjectPlugin): 10614 (QWebObjectPlugin::~QWebObjectPlugin): 10615 (QWebObjectPlugin::descriptionForKey): 10616 (QWebObjectPlugin::mimetypesForKey): 10617 (QWebObjectPlugin::extensionsForMimetype): 10618 * Api/qwebobjectplugin.h: Renamed from WebKitQt/Api/qwebobjectplugin.h. 10619 * Api/qwebobjectplugin_p.h: Renamed from WebKitQt/Api/qwebobjectplugin_p.h. 10620 (QWebFactoryLoader::names): 10621 (QWebFactoryLoader::supportsMimeType): 10622 * Api/qwebobjectpluginconnector.cpp: Renamed from WebKitQt/Api/qwebobjectpluginconnector.cpp. 10623 (QWebObjectPluginConnector::QWebObjectPluginConnector): 10624 (QWebObjectPluginConnector::frame): 10625 (QWebObjectPluginConnector::pluginParentWidget): 10626 (QWebObjectPluginConnector::requestUrl): 10627 * Api/qwebobjectpluginconnector.h: Renamed from WebKitQt/Api/qwebobjectpluginconnector.h. 10628 * Api/qwebpage.cpp: Renamed from WebKitQt/Api/qwebpage.cpp. 10629 (QWebPagePrivate::QWebPagePrivate): 10630 (QWebPagePrivate::~QWebPagePrivate): 10631 (QWebPagePrivate::navigationRequested): 10632 (QWebPagePrivate::createMainFrame): 10633 (QWebPage::QWebPage): 10634 (QWebPage::~QWebPage): 10635 (QWebPage::createFrame): 10636 (QWebPage::open): 10637 (QWebPage::url): 10638 (QWebPage::title): 10639 (QWebPage::mainFrame): 10640 (QWebPage::sizeHint): 10641 (QWebPage::stop): 10642 (QWebPage::history): 10643 (QWebPage::goBack): 10644 (QWebPage::goForward): 10645 (QWebPage::goToHistoryItem): 10646 (QWebPage::javaScriptConsoleMessage): 10647 (QWebPage::javaScriptAlert): 10648 (QWebPage::javaScriptConfirm): 10649 (QWebPage::javaScriptPrompt): 10650 (QWebPage::createWindow): 10651 (QWebPage::createModalDialog): 10652 (QWebPage::createPlugin): 10653 (QWebPage::navigationRequested): 10654 (QWebPage::setWindowGeometry): 10655 (QWebPage::canCut): 10656 (QWebPage::canCopy): 10657 (QWebPage::canPaste): 10658 (QWebPage::cut): 10659 (QWebPage::copy): 10660 (QWebPage::paste): 10661 (QWebPage::isModified): 10662 (QWebPage::undoStack): 10663 (dropActionToDragOp): 10664 (dragOpToDropAction): 10665 (QWebPage::resizeEvent): 10666 (QWebPage::paintEvent): 10667 (QWebPage::mouseMoveEvent): 10668 (QWebPage::mousePressEvent): 10669 (QWebPage::mouseDoubleClickEvent): 10670 (QWebPage::mouseReleaseEvent): 10671 (QWebPage::wheelEvent): 10672 (QWebPage::keyPressEvent): 10673 (QWebPage::keyReleaseEvent): 10674 (QWebPage::focusInEvent): 10675 (QWebPage::focusOutEvent): 10676 (QWebPage::focusNextPrevChild): 10677 (QWebPage::dragEnterEvent): 10678 (QWebPage::dragLeaveEvent): 10679 (QWebPage::dragMoveEvent): 10680 (QWebPage::dropEvent): 10681 (QWebPage::setNetworkInterface): 10682 (QWebPage::networkInterface): 10683 (QWebPage::icon): 10684 (QWebPage::setSettings): 10685 (QWebPage::settings): 10686 (QWebPage::chooseFile): 10687 (QWebPage::setNetworkProxy): 10688 (QWebPage::networkProxy): 10689 (QWebPage::userAgentStringForUrl): 10690 (QWebPage::onLoadProgressChanged): 10691 (QWebPage::totalBytes): 10692 * Api/qwebpage.h: Renamed from WebKitQt/Api/qwebpage.h. 10693 * Api/qwebpage_p.h: Renamed from WebKitQt/Api/qwebpage_p.h. 10694 * Api/qwebpagehistory.cpp: Renamed from WebKitQt/Api/qwebpagehistory.cpp. 10695 (QWebHistoryItem::QWebHistoryItem): 10696 (QWebHistoryItem::operator=): 10697 (QWebHistoryItem::~QWebHistoryItem): 10698 (QWebHistoryItem::originalUrl): 10699 (QWebHistoryItem::currentUrl): 10700 (QWebHistoryItem::title): 10701 (QWebHistoryItem::lastVisited): 10702 (QWebHistoryItem::icon): 10703 (QWebPageHistory::QWebPageHistory): 10704 (QWebPageHistory::itemAtIndex): 10705 (QWebPageHistory::operator=): 10706 (QWebPageHistory::~QWebPageHistory): 10707 (QWebPageHistory::items): 10708 (QWebPageHistory::backItems): 10709 (QWebPageHistory::forwardItems): 10710 (QWebPageHistory::canGoBack): 10711 (QWebPageHistory::canGoForward): 10712 (QWebPageHistory::goBack): 10713 (QWebPageHistory::goForward): 10714 (QWebPageHistory::goToItem): 10715 (QWebPageHistory::backItem): 10716 (QWebPageHistory::currentItem): 10717 (QWebPageHistory::forwardItem): 10718 * Api/qwebpagehistory.h: Renamed from WebKitQt/Api/qwebpagehistory.h. 10719 (QExplicitlySharedDataPointer::operator*): 10720 (QExplicitlySharedDataPointer::operator->): 10721 (QExplicitlySharedDataPointer::operator T *): 10722 (QExplicitlySharedDataPointer::operator const T *): 10723 (QExplicitlySharedDataPointer::data): 10724 (QExplicitlySharedDataPointer::constData): 10725 (QExplicitlySharedDataPointer::operator==): 10726 (QExplicitlySharedDataPointer::operator!=): 10727 (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer): 10728 (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer): 10729 (QExplicitlySharedDataPointer::operator=): 10730 (QExplicitlySharedDataPointer::operator!): 10731 (::QExplicitlySharedDataPointer): 10732 * Api/qwebpagehistory_p.h: Renamed from WebKitQt/Api/qwebpagehistory_p.h. 10733 (QWebHistoryItemPrivate::QWebHistoryItemPrivate): 10734 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate): 10735 (QWebPageHistoryPrivate::QWebPageHistoryPrivate): 10736 (QWebPageHistoryPrivate::~QWebPageHistoryPrivate): 10737 * Api/qwebsettings.cpp: Renamed from WebKitQt/Api/qwebsettings.cpp. 10738 (QWebSettingsPrivate::QWebSettingsPrivate): 10739 (QWebSettings::QWebSettings): 10740 (QWebSettings::~QWebSettings): 10741 (QWebSettings::setMinimumFontSize): 10742 (QWebSettings::minimumFontSize): 10743 (QWebSettings::setMinimumLogicalFontSize): 10744 (QWebSettings::minimumLogicalFontSize): 10745 (QWebSettings::setDefaultFontSize): 10746 (QWebSettings::defaultFontSize): 10747 (QWebSettings::setDefaultFixedFontSize): 10748 (QWebSettings::defaultFixedFontSize): 10749 (QWebSettings::setUserStyleSheetLocation): 10750 (QWebSettings::userStyleSheetLocation): 10751 (QWebSettings::setIconDatabaseEnabled): 10752 (QWebSettings::iconDatabaseEnabled): 10753 (QWebSettings::setWebGraphic): 10754 (QWebSettings::webGraphic): 10755 (QWebSettings::operator=): 10756 (QWebSettings::setGlobal): 10757 (QWebSettings::global): 10758 (QWebSettings::setFontFamily): 10759 (QWebSettings::fontFamily): 10760 (QWebSettings::setAttribute): 10761 (QWebSettings::testAttribute): 10762 (loadResourcePixmap): 10763 * Api/qwebsettings.h: Renamed from WebKitQt/Api/qwebsettings.h. 10764 * ChangeLog: Renamed from WebKitQt/ChangeLog. 10765 * Plugins/ICOHandler.cpp: Renamed from WebKitQt/Plugins/ICOHandler.cpp. 10766 (IcoHeader::operator >>): 10767 (IcoHeader::BMP_INFOHDR::): 10768 (IcoHeader::operator<<): 10769 (IcoHeader::LessDifference::LessDifference): 10770 (IcoHeader::LessDifference::operator ()): 10771 (IcoHeader::loadFromDIB): 10772 (ICOHandler::ICOHandler): 10773 (ICOHandler::canRead): 10774 (ICOHandler::read): 10775 (ICOHandler::write): 10776 (ICOHandler::name): 10777 (ICOPlugin::keys): 10778 (ICOPlugin::capabilities): 10779 (ICOPlugin::create): 10780 * Plugins/ICOHandler.h: Renamed from WebKitQt/Plugins/ICOHandler.h. 10781 * Plugins/Plugins.pro: Renamed from WebKitQt/Plugins/Plugins.pro. 10782 * QtLauncher/QtLauncher.pro: Renamed from WebKitQt/QtLauncher/QtLauncher.pro. 10783 * QtLauncher/main.cpp: Renamed from WebKitQt/QtLauncher/main.cpp. 10784 (HoverLabel::HoverLabel): 10785 (HoverLabel::setHoverLink): 10786 (HoverLabel::sizeForFont): 10787 (HoverLabel::sizeHint): 10788 (HoverLabel::updateSize): 10789 (HoverLabel::resetAnimation): 10790 (HoverLabel::paintEvent): 10791 (HoverLabel::interpolate): 10792 (ClearButton::ClearButton): 10793 (ClearButton::paintEvent): 10794 (SearchEdit::SearchEdit): 10795 (SearchEdit::~SearchEdit): 10796 (SearchEdit::paintEvent): 10797 (SearchEdit::resizeEvent): 10798 (SearchEdit::moveEvent): 10799 (MainWindow::MainWindow): 10800 (MainWindow::changeLocation): 10801 (MainWindow::loadFinished): 10802 (MainWindow::showLinkHover): 10803 (MainWindow::resizeEvent): 10804 (main): 10805 * WebCoreSupport/ChromeClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.cpp. 10806 (WebCore::ChromeClientQt::ChromeClientQt): 10807 (WebCore::ChromeClientQt::~ChromeClientQt): 10808 (WebCore::ChromeClientQt::setWindowRect): 10809 (WebCore::ChromeClientQt::windowRect): 10810 (WebCore::ChromeClientQt::pageRect): 10811 (WebCore::ChromeClientQt::scaleFactor): 10812 (WebCore::ChromeClientQt::focus): 10813 (WebCore::ChromeClientQt::unfocus): 10814 (WebCore::ChromeClientQt::canTakeFocus): 10815 (WebCore::ChromeClientQt::takeFocus): 10816 (WebCore::ChromeClientQt::createWindow): 10817 (WebCore::ChromeClientQt::createModalDialog): 10818 (WebCore::ChromeClientQt::show): 10819 (WebCore::ChromeClientQt::canRunModal): 10820 (WebCore::ChromeClientQt::runModal): 10821 (WebCore::ChromeClientQt::setToolbarsVisible): 10822 (WebCore::ChromeClientQt::toolbarsVisible): 10823 (WebCore::ChromeClientQt::setStatusbarVisible): 10824 (WebCore::ChromeClientQt::statusbarVisible): 10825 (WebCore::ChromeClientQt::setScrollbarsVisible): 10826 (WebCore::ChromeClientQt::scrollbarsVisible): 10827 (WebCore::ChromeClientQt::setMenubarVisible): 10828 (WebCore::ChromeClientQt::menubarVisible): 10829 (WebCore::ChromeClientQt::setResizable): 10830 (WebCore::ChromeClientQt::addMessageToConsole): 10831 (WebCore::ChromeClientQt::chromeDestroyed): 10832 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel): 10833 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel): 10834 (WebCore::ChromeClientQt::closeWindowSoon): 10835 (WebCore::ChromeClientQt::runJavaScriptAlert): 10836 (WebCore::ChromeClientQt::runJavaScriptConfirm): 10837 (WebCore::ChromeClientQt::runJavaScriptPrompt): 10838 (WebCore::ChromeClientQt::setStatusbarText): 10839 (WebCore::ChromeClientQt::shouldInterruptJavaScript): 10840 (WebCore::ChromeClientQt::tabsToLinks): 10841 (WebCore::ChromeClientQt::windowResizerRect): 10842 (WebCore::ChromeClientQt::addToDirtyRegion): 10843 (WebCore::ChromeClientQt::scrollBackingStore): 10844 (WebCore::ChromeClientQt::updateBackingStore): 10845 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 10846 (WebCore::ChromeClientQt::setToolTip): 10847 (WebCore::ChromeClientQt::print): 10848 * WebCoreSupport/ChromeClientQt.h: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.h. 10849 * WebCoreSupport/ContextMenuClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.cpp. 10850 (WebCore::ContextMenuClientQt::contextMenuDestroyed): 10851 (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems): 10852 (WebCore::ContextMenuClientQt::contextMenuItemSelected): 10853 (WebCore::ContextMenuClientQt::downloadURL): 10854 (WebCore::ContextMenuClientQt::lookUpInDictionary): 10855 (WebCore::ContextMenuClientQt::speak): 10856 (WebCore::ContextMenuClientQt::stopSpeaking): 10857 (WebCore::ContextMenuClientQt::searchWithGoogle): 10858 * WebCoreSupport/ContextMenuClientQt.h: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.h. 10859 * WebCoreSupport/DragClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/DragClientQt.cpp. 10860 (WebCore::DragClientQt::actionMaskForDrag): 10861 (WebCore::DragClientQt::willPerformDragDestinationAction): 10862 (WebCore::DragClientQt::dragControllerDestroyed): 10863 (WebCore::DragClientQt::dragSourceActionMaskForPoint): 10864 (WebCore::DragClientQt::willPerformDragSourceAction): 10865 (WebCore::DragClientQt::startDrag): 10866 * WebCoreSupport/DragClientQt.h: Renamed from WebKitQt/WebCoreSupport/DragClientQt.h. 10867 (WebCore::DragClientQt::DragClientQt): 10868 * WebCoreSupport/EditCommandQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.cpp. 10869 (EditCommandQt::EditCommandQt): 10870 (EditCommandQt::~EditCommandQt): 10871 (EditCommandQt::redo): 10872 (EditCommandQt::undo): 10873 * WebCoreSupport/EditCommandQt.h: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.h. 10874 * WebCoreSupport/EditorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.cpp. 10875 (WebCore::EditorClientQt::shouldDeleteRange): 10876 (WebCore::EditorClientQt::shouldShowDeleteInterface): 10877 (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled): 10878 (WebCore::EditorClientQt::isGrammarCheckingEnabled): 10879 (WebCore::EditorClientQt::spellCheckerDocumentTag): 10880 (WebCore::EditorClientQt::shouldBeginEditing): 10881 (WebCore::EditorClientQt::shouldEndEditing): 10882 (WebCore::EditorClientQt::shouldInsertText): 10883 (WebCore::EditorClientQt::shouldChangeSelectedRange): 10884 (WebCore::EditorClientQt::shouldApplyStyle): 10885 (WebCore::EditorClientQt::shouldMoveRangeAfterDelete): 10886 (WebCore::EditorClientQt::didBeginEditing): 10887 (WebCore::EditorClientQt::respondToChangedContents): 10888 (WebCore::EditorClientQt::respondToChangedSelection): 10889 (WebCore::EditorClientQt::didEndEditing): 10890 (WebCore::EditorClientQt::didWriteSelectionToPasteboard): 10891 (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard): 10892 (WebCore::EditorClientQt::selectWordBeforeMenuEvent): 10893 (WebCore::EditorClientQt::isEditable): 10894 (WebCore::EditorClientQt::registerCommandForUndo): 10895 (WebCore::EditorClientQt::registerCommandForRedo): 10896 (WebCore::EditorClientQt::clearUndoRedoOperations): 10897 (WebCore::EditorClientQt::canUndo): 10898 (WebCore::EditorClientQt::canRedo): 10899 (WebCore::EditorClientQt::undo): 10900 (WebCore::EditorClientQt::redo): 10901 (WebCore::EditorClientQt::shouldInsertNode): 10902 (WebCore::EditorClientQt::pageDestroyed): 10903 (WebCore::EditorClientQt::smartInsertDeleteEnabled): 10904 (WebCore::EditorClientQt::toggleContinuousSpellChecking): 10905 (WebCore::EditorClientQt::toggleGrammarChecking): 10906 (WebCore::EditorClientQt::handleKeypress): 10907 (WebCore::EditorClientQt::handleInputMethodKeypress): 10908 (WebCore::EditorClientQt::EditorClientQt): 10909 (WebCore::EditorClientQt::textFieldDidBeginEditing): 10910 (WebCore::EditorClientQt::textFieldDidEndEditing): 10911 (WebCore::EditorClientQt::textDidChangeInTextField): 10912 (WebCore::EditorClientQt::doTextFieldCommandFromEvent): 10913 (WebCore::EditorClientQt::textWillBeDeletedInTextField): 10914 (WebCore::EditorClientQt::textDidChangeInTextArea): 10915 (WebCore::EditorClientQt::ignoreWordInSpellDocument): 10916 (WebCore::EditorClientQt::learnWord): 10917 (WebCore::EditorClientQt::checkSpellingOfString): 10918 (WebCore::EditorClientQt::checkGrammarOfString): 10919 (WebCore::EditorClientQt::updateSpellingUIWithGrammarString): 10920 (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord): 10921 (WebCore::EditorClientQt::showSpellingUI): 10922 (WebCore::EditorClientQt::spellingUIIsShowing): 10923 (WebCore::EditorClientQt::getGuessesForWord): 10924 (WebCore::EditorClientQt::isEditing): 10925 (WebCore::EditorClientQt::setInputMethodState): 10926 * WebCoreSupport/EditorClientQt.h: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.h. 10927 * WebCoreSupport/FrameLoaderClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp. 10928 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 10929 (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt): 10930 (WebCore::FrameLoaderClientQt::setFrame): 10931 (WebCore::FrameLoaderClientQt::webFrame): 10932 (WebCore::FrameLoaderClientQt::callPolicyFunction): 10933 (WebCore::FrameLoaderClientQt::slotCallPolicyFunction): 10934 (WebCore::FrameLoaderClientQt::hasWebView): 10935 (WebCore::FrameLoaderClientQt::hasFrameView): 10936 (WebCore::FrameLoaderClientQt::hasBackForwardList): 10937 (WebCore::FrameLoaderClientQt::resetBackForwardList): 10938 (WebCore::FrameLoaderClientQt::provisionalItemIsTarget): 10939 (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache): 10940 (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache): 10941 (WebCore::FrameLoaderClientQt::privateBrowsingEnabled): 10942 (WebCore::FrameLoaderClientQt::makeDocumentView): 10943 (WebCore::FrameLoaderClientQt::makeRepresentation): 10944 (WebCore::FrameLoaderClientQt::forceLayout): 10945 (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML): 10946 (WebCore::FrameLoaderClientQt::setCopiesOnScroll): 10947 (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset): 10948 (WebCore::FrameLoaderClientQt::resetAfterLoadError): 10949 (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError): 10950 (WebCore::FrameLoaderClientQt::willCloseDocument): 10951 (WebCore::FrameLoaderClientQt::detachedFromParent2): 10952 (WebCore::FrameLoaderClientQt::detachedFromParent3): 10953 (WebCore::FrameLoaderClientQt::detachedFromParent4): 10954 (WebCore::FrameLoaderClientQt::loadedFromCachedPage): 10955 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 10956 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad): 10957 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect): 10958 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect): 10959 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage): 10960 (WebCore::FrameLoaderClientQt::dispatchWillClose): 10961 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad): 10962 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle): 10963 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad): 10964 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): 10965 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 10966 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout): 10967 (WebCore::FrameLoaderClientQt::dispatchShow): 10968 (WebCore::FrameLoaderClientQt::cancelPolicyCheck): 10969 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): 10970 (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource): 10971 (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache): 10972 (WebCore::FrameLoaderClientQt::isLoadingFromPageCache): 10973 (WebCore::FrameLoaderClientQt::revertToProvisionalState): 10974 (WebCore::FrameLoaderClientQt::clearUnarchivingState): 10975 (WebCore::FrameLoaderClientQt::postProgressStartedNotification): 10976 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification): 10977 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): 10978 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady): 10979 (WebCore::FrameLoaderClientQt::willChangeTitle): 10980 (WebCore::FrameLoaderClientQt::didChangeTitle): 10981 (WebCore::FrameLoaderClientQt::finishedLoading): 10982 (WebCore::FrameLoaderClientQt::finalSetupForReplace): 10983 (WebCore::FrameLoaderClientQt::setDefersLoading): 10984 (WebCore::FrameLoaderClientQt::isArchiveLoadPending): 10985 (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad): 10986 (WebCore::FrameLoaderClientQt::clearArchivedResources): 10987 (WebCore::FrameLoaderClientQt::canShowMIMEType): 10988 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme): 10989 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme): 10990 (WebCore::FrameLoaderClientQt::frameLoadCompleted): 10991 (WebCore::FrameLoaderClientQt::restoreViewState): 10992 (WebCore::FrameLoaderClientQt::provisionalLoadStarted): 10993 (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent): 10994 (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll): 10995 (WebCore::FrameLoaderClientQt::didFinishLoad): 10996 (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement): 10997 (WebCore::FrameLoaderClientQt::setTitle): 10998 (WebCore::FrameLoaderClientQt::userAgent): 10999 (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon): 11000 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed): 11001 (WebCore::FrameLoaderClientQt::canHandleRequest): 11002 (WebCore::FrameLoaderClientQt::windowObjectCleared): 11003 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation): 11004 (WebCore::FrameLoaderClientQt::registerForIconNotification): 11005 (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage): 11006 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad): 11007 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload): 11008 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem): 11009 (WebCore::FrameLoaderClientQt::saveViewStateToItem): 11010 (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage): 11011 (WebCore::FrameLoaderClientQt::canCachePage): 11012 (WebCore::FrameLoaderClientQt::setMainDocumentError): 11013 (WebCore::FrameLoaderClientQt::committedLoad): 11014 (WebCore::FrameLoaderClientQt::cancelledError): 11015 (WebCore::FrameLoaderClientQt::blockedError): 11016 (WebCore::FrameLoaderClientQt::cannotShowURLError): 11017 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 11018 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError): 11019 (WebCore::FrameLoaderClientQt::fileDoesNotExistError): 11020 (WebCore::FrameLoaderClientQt::shouldFallBack): 11021 (WebCore::FrameLoaderClientQt::createDocumentLoader): 11022 (WebCore::FrameLoaderClientQt::download): 11023 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest): 11024 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 11025 (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge): 11026 (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge): 11027 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): 11028 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength): 11029 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading): 11030 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 11031 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache): 11032 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): 11033 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad): 11034 (WebCore::FrameLoaderClientQt::dispatchCreatePage): 11035 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 11036 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 11037 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 11038 (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy): 11039 (WebCore::FrameLoaderClientQt::startDownload): 11040 (WebCore::FrameLoaderClientQt::willUseArchive): 11041 (WebCore::FrameLoaderClientQt::createFrame): 11042 (WebCore::FrameLoaderClientQt::objectContentType): 11043 (WebCore::): 11044 (WebCore::FrameLoaderClientQt::createPlugin): 11045 (WebCore::FrameLoaderClientQt::redirectDataToPlugin): 11046 (WebCore::FrameLoaderClientQt::createJavaAppletWidget): 11047 (WebCore::FrameLoaderClientQt::overrideMediaType): 11048 * WebCoreSupport/FrameLoaderClientQt.h: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.h. 11049 * WebCoreSupport/InspectorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.cpp. 11050 (WebCore::InspectorClientQt::inspectorDestroyed): 11051 (WebCore::InspectorClientQt::createPage): 11052 (WebCore::InspectorClientQt::showWindow): 11053 (WebCore::InspectorClientQt::closeWindow): 11054 (WebCore::InspectorClientQt::attachWindow): 11055 (WebCore::InspectorClientQt::detachWindow): 11056 (WebCore::InspectorClientQt::highlight): 11057 (WebCore::InspectorClientQt::hideHighlight): 11058 * WebCoreSupport/InspectorClientQt.h: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.h. 11059 * WebKitPart/WebKitFactory.cpp: Renamed from WebKitQt/WebKitPart/WebKitFactory.cpp. 11060 (WebKitFactory::WebKitFactory): 11061 (WebKitFactory::~WebKitFactory): 11062 (WebKitFactory::createPartObject): 11063 (WebKitFactory::instance): 11064 (WebKitFactory::ref): 11065 (WebKitFactory::deref): 11066 * WebKitPart/WebKitFactory.h: Renamed from WebKitQt/WebKitPart/WebKitFactory.h. 11067 * WebKitPart/WebKitPart.cpp: Renamed from WebKitQt/WebKitPart/WebKitPart.cpp. 11068 (WebKitPart::WebKitPart): 11069 (WebKitPart::~WebKitPart): 11070 (WebKitPart::openFile): 11071 (WebKitPart::openUrl): 11072 (WebKitPart::closeUrl): 11073 (WebKitPart::parentPart): 11074 (WebKitPart::frame): 11075 (WebKitPart::initView): 11076 * WebKitPart/WebKitPart.desktop: Renamed from WebKitQt/WebKitPart/WebKitPart.desktop. 11077 * WebKitPart/WebKitPart.h: Renamed from WebKitQt/WebKitPart/WebKitPart.h. 11078 (WebKitPart::): 11079 * WebKitPart/WebKitPart.rc: Renamed from WebKitQt/WebKitPart/WebKitPart.rc. 11080 * WebKitPart/WebKitPartBrowser.rc: Renamed from WebKitQt/WebKitPart/WebKitPartBrowser.rc. 11081 * WebKitPart/WebKitPartBrowserExtension.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.cpp. 11082 (WebKitPartBrowserExtension::WebKitPartBrowserExtension): 11083 * WebKitPart/WebKitPartBrowserExtension.h: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.h. 11084 * WebKitPart/WebKitPartClient.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartClient.cpp. 11085 (WebKitPartClient::WebKitPartClient): 11086 (WebKitPartClient::~WebKitPartClient): 11087 * WebKitPart/WebKitPartClient.h: Renamed from WebKitQt/WebKitPart/WebKitPartClient.h. 11088 * WebKitPart/WebKitPartInterface.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.cpp. 11089 (WebKitPartInterface::WebKitPartInterface): 11090 (WebKitPartInterface::~WebKitPartInterface): 11091 (WebKitPartInterface::url): 11092 * WebKitPart/WebKitPartInterface.h: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.h. 11093 * WebKitPart/org.kde.WebKitPart.xml: Renamed from WebKitQt/WebKitPart/org.kde.WebKitPart.xml. 11094 110952007-10-02 Adam Treat <adam.treat@torchmobile.com> 11096 11097 Reviewed by Eric Seidel. 11098 11099 Open the requested url on the newly created window. 11100 Implement createModalDialog and provide new API for this. 11101 Patch by M. Mehdi Salem Naraghi (momesana) with additions by me. 11102 11103 * Api/qwebpage.cpp: 11104 (QWebPage::createModalDialog): 11105 * Api/qwebpage.h: 11106 * WebCoreSupport/ChromeClientQt.cpp: 11107 (WebCore::ChromeClientQt::createWindow): 11108 (WebCore::ChromeClientQt::createModalDialog): 11109 111102007-10-02 Lars Knoll <lars@trolltech.com> 11111 11112 Reviewed by bdash. 11113 11114 Add API to retrieve the frame name from QWebFrame. 11115 Implement support for DRT::dumpChildrenAsText. 11116 11117 * Api/qwebframe.cpp: 11118 (QWebFrame::name): 11119 * Api/qwebframe.h: 11120 111212007-10-02 Lars Knoll <lars@trolltech.com> 11122 11123 Reviewed by bdash. 11124 11125 Fix the handling of the response header for data urls. Make sure we always pass absolute URLs to WebKit from both DRT and QtLauncher. 11126 11127 * Api/qwebnetworkinterface.cpp: 11128 (QWebNetworkManager::started): 11129 (QWebNetworkManager::data): 11130 (QWebNetworkManager::finished): 11131 (QWebNetworkInterfacePrivate::sendFileData): 11132 (QWebNetworkInterfacePrivate::parseDataUrl): 11133 (WebCoreHttp::scheduleNextRequest): 11134 (WebCoreHttp::onSslErrors): 11135 * QtLauncher/main.cpp: 11136 (main): 11137 111382007-10-01 Lars Knoll <lars@trolltech.com> 11139 11140 Reviewed by Eric. 11141 11142 Fix a wrong extension mapping in the MIMETypeRegistry and identify about: url's as frames in the FrameLoaderClient. 11143 11144 * WebCoreSupport/FrameLoaderClientQt.cpp: 11145 (WebCore::FrameLoaderClientQt::makeDocumentView): 11146 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 11147 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): 11148 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad): 11149 (WebCore::FrameLoaderClientQt::objectContentType): 11150 (WebCore::FrameLoaderClientQt::createPlugin): 11151 111522007-09-30 George Staikos <staikos@kde.org> 11153 11154 Qt build fix (OS X specific). 11155 11156 * QtLauncher/QtLauncher.pro: 11157 111582007-09-26 Mark Rowe <mrowe@apple.com> 11159 11160 Qt build fix. 11161 11162 * WebCoreSupport/FrameLoaderClientQt.cpp: 11163 (WebCore::FrameLoaderClientQt::objectContentType): Check for empty URL instead of invalid URL. 11164 111652007-09-25 David Kilzer <ddkilzer@webkit.org> 11166 11167 Reviewed by Adam. 11168 11169 - Fix http://bugs.webkit.org/show_bug.cgi?id=14885 11170 LGPL'ed files contain incorrect FSF address 11171 11172 * Api/qcookiejar.cpp: 11173 * Api/qcookiejar.h: 11174 * Api/qwebframe.cpp: 11175 * Api/qwebframe.h: 11176 * Api/qwebframe_p.h: 11177 * Api/qwebhistoryinterface.cpp: 11178 * Api/qwebhistoryinterface.h: 11179 * Api/qwebkitglobal.h: 11180 * Api/qwebnetworkinterface.cpp: 11181 * Api/qwebnetworkinterface.h: 11182 * Api/qwebnetworkinterface_p.h: 11183 * Api/qwebobjectplugin.cpp: 11184 * Api/qwebobjectplugin.h: 11185 * Api/qwebobjectpluginconnector.cpp: 11186 * Api/qwebobjectpluginconnector.h: 11187 * Api/qwebpage.cpp: 11188 * Api/qwebpage.h: 11189 * Api/qwebpage_p.h: 11190 * Api/qwebpagehistory.cpp: 11191 * Api/qwebpagehistory.h: 11192 * Api/qwebsettings.cpp: 11193 * Api/qwebsettings.h: 11194 * WebCoreSupport/EditCommandQt.cpp: 11195 * WebCoreSupport/EditCommandQt.h: 11196 111972007-09-25 Adam Treat <adam.treat@torchmobile.com> 11198 11199 Reviewed by Simon and Lars. 11200 11201 Modifies the addToJSWindowObject to bind js objects using the built-in 11202 kjs_window class. Make sure to protect the created runtime object from 11203 garbage collection. 11204 11205 Adds a signal to QWebFrame to notify clients of the beginning of a 11206 provisional load. DRT needs this. 11207 11208 * Api/qwebframe.cpp: 11209 (QWebFrame::addToJSWindowObject): 11210 * Api/qwebframe.h: 11211 * WebCoreSupport/FrameLoaderClientQt.cpp: 11212 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad): 11213 112142007-09-10 Qing Zhao <qing@staikos.net> 11215 11216 Reviewed by George Staikos. 11217 11218 Don't re-encode urls, resulting in double encoding. Fixes login to 11219 GMail. 11220 11221 * Api/qwebnetworkinterface.cpp: 11222 (QWebNetworkRequestPrivate::init): 11223 (QWebNetworkManager::started): 11224 112252007-09-08 Mark Rowe <mrowe@apple.com> 11226 11227 Qt build fix. Move stub method implementations to the right class. 11228 11229 * WebCoreSupport/FrameLoaderClientQt.cpp: 11230 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation): 11231 112322007-09-08 Brady Eidson <beidson@apple.com> 11233 11234 YABF (Yet Another Build Fix) 11235 11236 * Api/qwebsettings.cpp: 11237 (QWebSettings::iconDatabaseEnabled): 11238 112392007-09-08 Brady Eidson <beidson@apple.com> 11240 11241 Better build fix 11242 11243 * WebCoreSupport/FrameLoaderClientQt.cpp: 11244 (WebCore::FrameLoaderClient::registerForIconNotification): 11245 * WebCoreSupport/FrameLoaderClientQt.h: 11246 112472007-09-08 Brady Eidson <beidson@apple.com> 11248 11249 Build fix 11250 11251 * WebCoreSupport/FrameLoaderClientQt.cpp: 11252 (WebCore::FrameLoaderClient::registerForIconNotification): 11253 * WebCoreSupport/FrameLoaderClientQt.h: 11254 112552007-09-05 Geoffrey Garen <ggaren@apple.com> 11256 11257 Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher. 11258 11259 Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no 11260 memory cache, or a very tiny one 11261 11262 Keep the Qt build working with an empty stub. 11263 11264 * WebCoreSupport/FrameLoaderClientQt.cpp: 11265 (WebCore::FrameLoaderClient::didPerformFirstNavigation): 11266 * WebCoreSupport/FrameLoaderClientQt.h: 11267 112682007-09-07 George Staikos <staikos@kde.org> 11269 11270 Fix typo. 11271 11272 * Api/qwebpage.cpp: 11273 (QWebPage::onLoadProgressChanged): 11274 112752007-09-07 Qing Zhao <qing@staikos.net> 11276 11277 Reviewed by Anders and George. 11278 11279 Export page size and load progress in bytes. 11280 11281 * Api/qwebpage.cpp: 11282 (QWebPage::QWebPage): 11283 (QWebPage::onLoadProgressChanged): 11284 (QWebPage::totalBytes): 11285 (QWebPage::bytesReceived): 11286 * Api/qwebpage.h: 11287 * Api/qwebpage_p.h: 11288 112892007-09-06 George Staikos <staikos@kde.org> 11290 11291 Reviewed by Anders. 11292 11293 Make popup windows work again. 11294 11295 * WebCoreSupport/FrameLoaderClientQt.cpp: 11296 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 11297 112982007-09-01 Oliver Hunt <oliver@apple.com> 11299 11300 Reviewed by Sam. 11301 11302 <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions 11303 11304 EditorClient::setInputMethodState stub 11305 11306 * WebCoreSupport/EditorClientQt.cpp: 11307 (WebCore::EditorClientQt::setInputMethodState): 11308 * WebCoreSupport/EditorClientQt.h: 11309 113102007-08-30 Simon Hausmann <hausmann@kde.org> 11311 11312 Reviewed by Zack. 11313 11314 Use QKeySequence::StandardKey for the page wise scrolling shortcuts. 11315 11316 * Api/qwebpage.cpp: 11317 (QWebPage::keyPressEvent): 11318 113192007-08-30 Simon Hausmann <hausmann@kde.org> 11320 11321 Reviewed by Zack. 11322 11323 When scrolling with the keyboard don't call update() on the entire widget. 11324 The scrollbar/scrollview implementation is already smart enough to scroll with bitblt 11325 on a value change. 11326 11327 * Api/qwebpage.cpp: 11328 (QWebPage::keyPressEvent): 11329 113302007-08-30 Simon Hausmann <hausmann@kde.org> 11331 11332 Reviewed by Zack. 11333 11334 Fix scrolling with the keyboard if only one of the two scrollbars is visible. 11335 11336 * Api/qwebpage.cpp: 11337 (QWebPage::keyPressEvent): 11338 113392007-08-29 Simon Hausmann <hausmann@kde.org> 11340 11341 Reviewed by Zack. 11342 11343 Fix compilation. 11344 11345 * WebCoreSupport/FrameLoaderClientQt.cpp: 11346 (WebCore::FrameLoaderClientQt::objectContentType): 11347 113482007-08-19 Mike Hommey <mh+webkit@glandium.org> 11349 11350 Reviewed by George Staikos. 11351 11352 Don't export ICO symbols. 11353 11354 * Plugins/Plugins.pro: 11355 113562007-08-19 George Staikos <staikos@kde.org> 11357 11358 Fix compilation. 11359 11360 * WebCoreSupport/FrameLoaderClientQt.cpp: 11361 (WebCore::FrameLoaderClientQt::createPlugin): 11362 * WebCoreSupport/FrameLoaderClientQt.h: 11363 113642007-08-10 Lars Knoll <lars@trolltech.com> 11365 11366 Reviewed and landed by Simon. 11367 11368 Limit the set of properties from the computed style to apply to Qt 11369 plugin widgets, as only a few of them make sense. 11370 11371 * WebCoreSupport/FrameLoaderClientQt.cpp: 11372 (WebCore::): 11373 113742007-08-10 Lars Knoll <lars@trolltech.com> 11375 11376 Reviewed by Simon. 11377 11378 Use <object>'s classid attribute for creation of plugins through QWebPage::createPlugin. 11379 11380 * Api/qwebpage.cpp: 11381 (QWebPage::createPlugin): 11382 * Api/qwebpage.h: 11383 * WebCoreSupport/FrameLoaderClientQt.cpp: 11384 (WebCore::FrameLoaderClientQt::objectContentType): 11385 (WebCore::FrameLoaderClientQt::createPlugin): 11386 113872007-08-10 Simon Hausmann <hausmann@kde.org> 11388 11389 Reviewed by Lars. 11390 11391 Added support for network jobs from Qt resources using the qrc protocol. 11392 11393 * Api/qwebnetworkinterface.cpp: 11394 (QWebNetworkInterface::addJob): 11395 113962007-08-10 Simon Hausmann <hausmann@kde.org> 11397 11398 Reviewed by Lars. 11399 11400 Added support for "application/x-qt-styled-widget" that is treated like "application/x-qt-plugin" but also 11401 gets a Qt widget stylesheet set from the CSS computed style and the element style attribute. 11402 11403 * WebCoreSupport/FrameLoaderClientQt.cpp: 11404 (WebCore::FrameLoaderClientQt::objectContentType): 11405 (WebCore::): 11406 (WebCore::FrameLoaderClientQt::createPlugin): 11407 114082007-08-10 Simon Hausmann <hausmann@kde.org> 11409 11410 Reviewed by Lars. 11411 11412 Added virtual QWebPage::createPlugin that is called for embedded objects with the mime type "application/x-qt-plugin" 11413 and fixed widget embedding by setting the right QWidget parent. 11414 11415 * Api/qwebpage.cpp: 11416 (QWebPage::createPlugin): 11417 * Api/qwebpage.h: 11418 * WebCoreSupport/FrameLoaderClientQt.cpp: 11419 (WebCore::FrameLoaderClientQt::objectContentType): 11420 (WebCore::FrameLoaderClientQt::createPlugin): 11421 114222007-08-02 George Staikos <staikos@kde.org> 11423 11424 Reviewed by Simon. 11425 11426 Add an interface for the useragent string. 11427 11428 * Api/qwebpage.cpp: 11429 (QWebPage::userAgentStringForUrl): 11430 * Api/qwebpage.h: 11431 * WebCoreSupport/FrameLoaderClientQt.cpp: 11432 (WebCore::FrameLoaderClientQt::userAgent): 11433 114342007-08-01 Adam Treat <adam.treat@torchmobile.com> 11435 11436 Reviewed by George Staikos. 11437 11438 Add an interface to manage global history for clients 11439 11440 * Api/headers.pri: 11441 * Api/qwebhistoryinterface.cpp: Added. 11442 (WebCore::historyContains): 11443 (gCleanupInterface): 11444 (QWebHistoryInterface::setDefaultInterface): 11445 (QWebHistoryInterface::defaultInterface): 11446 (QWebHistoryInterface::QWebHistoryInterface): 11447 * Api/qwebhistoryinterface.h: Added. 11448 114492007-07-30 Adam Treat <adam.treat@torchmobile.com> 11450 11451 Fix build. 11452 11453 * WebCoreSupport/EditorClientQt.cpp: 11454 (WebCore::EditorClientQt::shouldMoveRangeAfterDelete): 11455 * WebCoreSupport/EditorClientQt.h: 11456 114572007-07-30 Simon Hausmann <hausmann@kde.org> 11458 11459 Reviewed by Lars. 11460 11461 Link QtLauncher into $$OUTPUT_DIR/bin 11462 11463 * QtLauncher/QtLauncher.pro: 11464 114652007-07-29 Adam Treat <adam.treat@torchmobile.com> 11466 11467 Reviewed by George Staikos. 11468 11469 Change QWebPage::paintEvent to draw using the individual rects provided 11470 via the QRegion and set the widget to use opaque paint events. 11471 11472 These changes greatly reduce the cpu load as we are no longer painting the 11473 entire page for each 1px scroll :P 11474 11475 * Api/qwebframe.cpp: 11476 (QWebFrame::render): 11477 * Api/qwebpage.cpp: 11478 (QWebPage::QWebPage): 11479 (QWebPage::paintEvent): 11480 * WebCoreSupport/ChromeClientQt.cpp: 11481 (WebCore::ChromeClientQt::addToDirtyRegion): 11482 114832007-07-29 Adam Treat <adam.treat@torchmobile.com> 11484 11485 Reviewed by Alexey Proskuryakov. 11486 11487 Respect the margins when creating frames. 11488 Set the scroll mode to always off like we did before the rendered 11489 frames patch and the other ports do now. 11490 11491 * Api/qwebframe.cpp: 11492 (QWebFramePrivate::init): 11493 114942007-07-27 Holger Hans Peter Freyther <zecke@selfish.org> 11495 11496 Reviewed by Mark. 11497 11498 Don't create an app bundle on OSX to keep WebKitTools/Scripts/run-launcher working. 11499 11500 * QtLauncher/QtLauncher.pro: 11501 115022007-07-27 Simon Hausmann <hausmann@kde.org> 11503 11504 Reviewed by Lars. 11505 11506 Fix compilation with MSVC. 11507 11508 * Api/qwebpagehistory.cpp: 11509 (QWebPageHistory::operator=): 11510 * Api/qwebpagehistory.h: 11511 * Api/qwebsettings.cpp: 11512 (QWebSettings::operator=): 11513 * Api/qwebsettings.h: 11514 115152007-07-26 Qing Zhao <qing@staikos.net> 11516 11517 Reviewed by George Staikos. 11518 11519 Add a signal for history notification. 11520 11521 * Api/qwebpage.h: 11522 * WebCoreSupport/FrameLoaderClientQt.cpp: 11523 115242007-07-24 Adam Treat <adam.treat@torchmobile.com> 11525 11526 Reviewed by Niko and Lars. 11527 11528 These are no longer necessary or used. 11529 11530 * WebCoreSupport/FrameLoaderClientQt.cpp: 11531 * WebCoreSupport/FrameLoaderClientQt.h: 11532 115332007-07-20 Adam Treat <adam@staikos.net> 11534 11535 Reviewed by George Staikos. 11536 11537 Add a signal for first layout and add the action type for the policy 11538 function. 11539 11540 * Api/qwebpage.cpp: 11541 (QWebPagePrivate::navigationRequested): 11542 (QWebPage::navigationRequested): 11543 * Api/qwebpage.h: 11544 * Api/qwebpage_p.h: 11545 * WebCoreSupport/FrameLoaderClientQt.cpp: 11546 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout): 11547 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 11548 115492007-07-19 Adam Treat <adam.treat@torchmobile.com> 11550 11551 Reviewed by George. 11552 11553 Do a recursive layout on the frame's children. This fixes a 11554 segfault found when rendering some framesets. 11555 11556 * Api/qwebframe.cpp: 11557 (QWebFrame::render): 11558 (QWebFrame::layout): 11559 * Api/qwebframe.h: 11560 115612007-07-18 Timothy Hatcher <timothy@apple.com> 11562 11563 Reviewed by Adam. 11564 11565 Make the Page with the now required InspectorClient. 11566 11567 * Api/qwebpage.cpp: 11568 (QWebPagePrivate::QWebPagePrivate): 11569 * WebKitPart/WebKitPart.cpp: 11570 (WebKitPart::initView): 11571 115722007-07-18 Sam Weinig <sam@webkit.org> 11573 11574 Build fix. 11575 11576 * Api/qwebnetworkinterface.cpp: 11577 (QWebNetworkManager::started): 11578 * WebCoreSupport/FrameLoaderClientQt.cpp: 11579 (WebCore::FrameLoaderClientQt::canShowMIMEType): 11580 (WebCore::FrameLoaderClientQt::objectContentType): 11581 115822007-07-18 Lars Knoll <lars@trolltech.com> 11583 11584 Reviewed by Zack & Simon 11585 11586 Reallow setting of scrollbar policies on QWebFrame. 11587 11588 * Api/qwebframe.cpp: 11589 (QWebFrame::verticalScrollBarPolicy): 11590 (QWebFrame::setVerticalScrollBarPolicy): 11591 (QWebFrame::horizontalScrollBarPolicy): 11592 * Api/qwebframe.h: 11593 115942007-07-17 Adam Treat <adam.treat@torchmobile.com> 11595 11596 Build fix. 11597 11598 * WebCoreSupport/FrameLoaderClientQt.cpp: 11599 (WebCore::FrameLoaderClientQt::createFrame): 11600 116012007-07-17 Holger Hans Peter Freyther <zecke@selfish.org> 11602 11603 Blind build fix for Qt after r24366 by adding the additional 11604 WebCore::ResourceRequest& parameter to the download method. 11605 11606 * WebCoreSupport/FrameLoaderClientQt.cpp: 11607 (WebCore::FrameLoaderClientQt::download): 11608 * WebCoreSupport/FrameLoaderClientQt.h: 11609 116102007-07-17 Adam Roben <aroben@apple.com> 11611 11612 Remove ContextMenuClientQt::shouldIncludeInspectElementItem 11613 11614 Reviewed by Tim. 11615 11616 * WebCoreSupport/ContextMenuClientQt.cpp: 11617 * WebCoreSupport/ContextMenuClientQt.h: 11618 116192007-07-16 Adam Roben <aroben@apple.com> 11620 11621 Updated ChromeClientQt for ChromeClient changes. 11622 11623 Reviewed by Darin Adler. 11624 11625 * WebCoreSupport/ChromeClientQt.cpp: 11626 (WebCore::ChromeClientQt::print): Added a Frame* parameter. 11627 * WebCoreSupport/ChromeClientQt.h: Ditto. 11628 116292007-07-13 Mark Rowe <mrowe@apple.com> 11630 11631 Reviewed by Mitz. 11632 11633 Build fix. Stub out ChromeClientQt::print. 11634 11635 * WebCoreSupport/ChromeClientQt.cpp: 11636 (WebCore::ChromeClientQt::print): 11637 * WebCoreSupport/ChromeClientQt.h: 11638 116392007-07-12 George Staikos <staikos@kde.org> 11640 11641 Qt build fix for assertions. 11642 11643 * Api/qwebnetworkinterface.cpp: 11644 (QWebNetworkManager::add): 11645 116462007-07-12 George Staikos <staikos@kde.org> 11647 11648 Qt build fix. 11649 11650 * Api/qwebnetworkinterface.cpp: 11651 (QWebNetworkManager::add): 11652 116532007-07-10 Mark Rowe <mrowe@apple.com> 11654 11655 Qt build fix after r24126. 11656 11657 * Api/qwebframe.cpp: 11658 (QWebFrame::evaluateJavaScript): 11659 116602007-07-10 Eli Fidler <eli@staikos.net> 11661 11662 Reviewed by George Staikos. 11663 11664 Properly url-decode data urls. 11665 11666 * Api/qwebnetworkinterface.cpp: 11667 (QWebNetworkInterfacePrivate::parseDataUrl): 11668 116692007-07-09 Adam Treat <adam@staikos.net> 11670 11671 Reviewed by George Staikos. 11672 11673 Convert QWebFrame from a QFrame to a pure QObject to eliminate all 11674 traces of widgets. 11675 11676 * Api/qwebframe.cpp: 11677 (QWebFramePrivate::init): 11678 (QWebFramePrivate::parentFrame): 11679 (QWebFrame::QWebFrame): 11680 (QWebFrame::render): 11681 (QWebFrame::pos): 11682 (QWebFrame::geometry): 11683 (QWebFrame::evaluateJavaScript): 11684 (QWebFrame::mouseMoveEvent): 11685 (QWebFrame::mousePressEvent): 11686 (QWebFrame::mouseDoubleClickEvent): 11687 (QWebFrame::mouseReleaseEvent): 11688 (QWebFrame::wheelEvent): 11689 * Api/qwebframe.h: 11690 * Api/qwebobjectpluginconnector.cpp: 11691 (QWebObjectPluginConnector::pluginParentWidget): 11692 * Api/qwebpage.cpp: 11693 (QWebPagePrivate::QWebPagePrivate): 11694 (QWebPagePrivate::createMainFrame): 11695 (QWebPage::QWebPage): 11696 (QWebPage::javaScriptAlert): 11697 (QWebPage::javaScriptConfirm): 11698 (QWebPage::javaScriptPrompt): 11699 (QWebPage::resizeEvent): 11700 (QWebPage::paintEvent): 11701 (QWebPage::mouseMoveEvent): 11702 (QWebPage::mousePressEvent): 11703 (QWebPage::mouseDoubleClickEvent): 11704 (QWebPage::mouseReleaseEvent): 11705 (QWebPage::wheelEvent): 11706 (QWebPage::keyPressEvent): 11707 (QWebPage::keyReleaseEvent): 11708 (QWebPage::focusInEvent): 11709 (QWebPage::focusOutEvent): 11710 (QWebPage::focusNextPrevChild): 11711 (QWebPage::chooseFile): 11712 * Api/qwebpage.h: 11713 * Api/qwebpage_p.h: 11714 * WebCoreSupport/ChromeClientQt.cpp: 11715 (WebCore::ChromeClientQt::addToDirtyRegion): 11716 117172007-07-09 George Staikos <staikos@kde.org> 11718 11719 Fix a minor memory leak in the loader. 11720 11721 * Api/qwebnetworkinterface.cpp: 11722 (gCleanupInterface): 11723 (QWebNetworkInterface::setDefaultInterface): 11724 (QWebNetworkInterface::defaultInterface): 11725 117262007-07-09 George Staikos <staikos@kde.org> 11727 11728 Fix a massive memory leak in the loader. 11729 11730 * Api/qwebnetworkinterface.cpp: 11731 (QWebNetworkManager::httpConnectionClosed): 11732 (WebCoreHttp::~WebCoreHttp): 11733 117342007-07-09 George Staikos <staikos@kde.org> 11735 11736 Reviewed by Simon. 11737 11738 Rework much of the HTTP stuff to make it more stable, and add SSL and 11739 proxy support. Major memory leak also discovered but it needs more 11740 research as the obvious fix causes crashes. 11741 11742 * Api/qwebnetworkinterface.cpp: 11743 (QWebNetworkManager::add): 11744 (QWebNetworkManager::started): 11745 (QWebNetworkManager::data): 11746 (WebCoreHttp::WebCoreHttp): 11747 (WebCoreHttp::~WebCoreHttp): 11748 (WebCoreHttp::request): 11749 (WebCoreHttp::scheduleNextRequest): 11750 (WebCoreHttp::getConnection): 11751 (WebCoreHttp::onResponseHeaderReceived): 11752 (WebCoreHttp::onReadyRead): 11753 (WebCoreHttp::onRequestFinished): 11754 (WebCoreHttp::onDone): 11755 (WebCoreHttp::onStateChanged): 11756 (WebCoreHttp::onSslErrors): 11757 (WebCoreHttp::onAuthenticationRequired): 11758 (WebCoreHttp::onProxyAuthenticationRequired): 11759 * Api/qwebnetworkinterface.h: 11760 * Api/qwebnetworkinterface_p.h: 11761 (WebCore::WebCoreHttp::HttpConnection::HttpConnection): 11762 117632007-07-06 Adam Treat <adam@staikos.net> 11764 11765 Reviewed by George Staikos. 11766 11767 Convert QWebFrame to a QFrame from a scroll area. 11768 11769 * Api/qwebframe.cpp: 11770 (QWebFramePrivate::init): 11771 (QWebFramePrivate::parentFrame): 11772 (QWebFramePrivate::horizontalScrollBar): 11773 (QWebFramePrivate::verticalScrollBar): 11774 (QWebFrame::QWebFrame): 11775 (QWebFrame::resizeEvent): 11776 (QWebFrame::suppressScrollbars): 11777 (QWebFrame::paintEvent): 11778 (QWebFrame::mouseMoveEvent): 11779 (QWebFrame::mousePressEvent): 11780 (QWebFrame::mouseDoubleClickEvent): 11781 (QWebFrame::mouseReleaseEvent): 11782 (QWebFrame::wheelEvent): 11783 (QWebFrame::keyPressEvent): 11784 (QWebFrame::focusInEvent): 11785 (QWebFrame::focusOutEvent): 11786 (QWebFrame::evaluateJavaScript): 11787 * Api/qwebframe.h: 11788 * Api/qwebframe_p.h: 11789 * Api/qwebobjectpluginconnector.cpp: 11790 (QWebObjectPluginConnector::pluginParentWidget): 11791 117922007-07-04 Adam Roben <aroben@apple.com> 11793 11794 Added a stub for ChromeClientQt::setToolTip 11795 11796 Reviewed by Sam. 11797 11798 * WebCoreSupport/ChromeClientQt.cpp: 11799 (WebCore::ChromeClientQt::setToolTip): 11800 * WebCoreSupport/ChromeClientQt.h: 11801 118022007-07-04 Adam Roben <aroben@apple.com> 11803 11804 Added a stub for ChromeClientQt::mouseDidMoveOverElement 11805 11806 Reviewed by Sam. 11807 11808 * WebCoreSupport/ChromeClientQt.cpp: 11809 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 11810 * WebCoreSupport/ChromeClientQt.h: 11811 118122007-06-28 Simon Hausmann <hausmann@kde.org> 11813 11814 Reviewed by Zack. 11815 11816 Propagate mouse double click events from Qt to WebCore. 11817 11818 * Api/qwebframe.cpp: 11819 (QWebFrame::mouseDoubleClickEvent): 11820 * Api/qwebframe.h: 11821 118222007-06-28 Simon Hausmann <hausmann@kde.org> 11823 11824 Reviewed by Zack. 11825 11826 Implemented clipboard functions in QWebPage, in particular can(Cut|Copy|Paste), cut/copy/paste as slot as well as a selectionChanged() signal. 11827 11828 * Api/qwebpage.cpp: 11829 (QWebPage::canCut): 11830 (QWebPage::canCopy): 11831 (QWebPage::canPaste): 11832 (QWebPage::cut): 11833 (QWebPage::copy): 11834 (QWebPage::paste): 11835 * Api/qwebpage.h: 11836 * WebCoreSupport/EditorClientQt.cpp: 11837 118382007-06-27 George Staikos <staikos@kde.org> 11839 11840 Compile with various Qt configurations. 11841 11842 * Api/qwebnetworkinterface.cpp: 11843 (WebCoreHttp::scheduleNextRequest): 11844 * Api/qwebpage.cpp: 11845 (QWebPage::javaScriptPrompt): 11846 (QWebPage::dragEnterEvent): 11847 (QWebPage::dragLeaveEvent): 11848 (QWebPage::dragMoveEvent): 11849 (QWebPage::dropEvent): 11850 (QWebPage::chooseFile): 11851 * Api/qwebpage.h: 11852 * Api/qwebpage_p.h: 11853 * WebCoreSupport/DragClientQt.cpp: 11854 (WebCore::DragClientQt::startDrag): 11855 118562007-06-27 Eli Fidler <eli@staikos.net> 11857 11858 Reviewed by George Staikos. 11859 11860 Check for QT_NO_IMAGE_TEXT and compile either way. 11861 11862 * Plugins/ICOHandler.cpp: 11863 (ICOHandler::read): 11864 118652007-06-27 Eli Fidler <eli@staikos.net> 11866 11867 Reviewed by George Staikos. 11868 11869 Remove QT3_SUPPORT dependency in the ICO plugin. 11870 11871 * Plugins/ICOHandler.cpp: 11872 (IcoHeader::loadFromDIB): 11873 118742007-06-25 George Staikos <staikos@kde.org> 11875 11876 Reviewed by Zack. 11877 11878 Start to add proxy and SSL support to WebKit Qt. Proxy works 11879 unauthenticated. Added hooks to be able to add authentication. 11880 Also fixes some network errors. 11881 11882 * Api/qwebnetworkinterface.cpp: 11883 (QWebNetworkRequestPrivate::setURL): 11884 (QWebNetworkJob::frame): 11885 (WebCoreHttp::WebCoreHttp): 11886 (WebCoreHttp::scheduleNextRequest): 11887 (WebCoreHttp::onRequestFinished): 11888 (WebCoreHttp::onDone): 11889 (WebCoreHttp::onSslErrors): 11890 (WebCoreHttp::onAuthenticationRequired): 11891 (WebCoreHttp::onProxyAuthenticationRequired): 11892 * Api/qwebnetworkinterface.h: 11893 * Api/qwebnetworkinterface_p.h: 11894 * Api/qwebpage.cpp: 11895 (QWebPage::setNetworkProxy): 11896 (QWebPage::networkProxy): 11897 * Api/qwebpage.h: 11898 * Api/qwebpage_p.h: 11899 119002007-06-21 Adam Treat <adam@staikos.net> 11901 11902 Reviewed by George Staikos. 11903 11904 Implement the default resources on Qt. 11905 11906 * Api/qwebpage.cpp: 11907 (QWebPage::icon): 11908 * Api/qwebsettings.cpp: 11909 (QWebSettings::setWebGraphic): 11910 (QWebSettings::webGraphic): 11911 (loadResourcePixmap): 11912 * Api/qwebsettings.h: 11913 119142007-06-15 Adam Treat <adam@staikos.net> 11915 11916 Reviewed by George Staikos. 11917 11918 Add ICO support to the Qt build. 11919 11920 * Api/qwebpage.cpp: 11921 (QWebPage::icon): 11922 * Api/qwebpage.h: 11923 * Api/qwebsettings.cpp: 11924 (QWebSettings::setIconDatabaseEnabled): 11925 (QWebSettings::iconDatabaseEnabled): 11926 * Api/qwebsettings.h: 11927 * Plugins: Added. 11928 * Plugins/ICOHandler.cpp: Added. 11929 (IcoHeader::operator >>): 11930 (IcoHeader::BMP_INFOHDR::): 11931 (IcoHeader::operator<<): 11932 (IcoHeader::LessDifference::LessDifference): 11933 (IcoHeader::LessDifference::operator ()): 11934 (IcoHeader::loadFromDIB): 11935 (ICOHandler::ICOHandler): 11936 (ICOHandler::canRead): 11937 (ICOHandler::read): 11938 (ICOHandler::write): 11939 (ICOHandler::name): 11940 (ICOPlugin::keys): 11941 (ICOPlugin::capabilities): 11942 (ICOPlugin::create): 11943 * Plugins/ICOHandler.h: Added. 11944 * Plugins/Plugins.pro: Added. 11945 * WebCoreSupport/FrameLoaderClientQt.cpp: 11946 (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon): 11947 119482007-06-15 George Staikos <staikos@kde.org> 11949 11950 Fixing the Qt build. 11951 11952 * WebCoreSupport/ContextMenuClientQt.cpp: 11953 (WebCore::ContextMenuClientQt::shouldIncludeInspectElementItem): 11954 * WebCoreSupport/ContextMenuClientQt.h: 11955 119562007-06-20 Adam Roben <aroben@apple.com> 11957 11958 More speculative Qt build fixes. 11959 11960 Add a stub implementation of InspectorClientQt. 11961 11962 * WebCoreSupport/InspectorClientQt.cpp: Added. 11963 (WebCore::InspectorClientQt::inspectorDestroyed): 11964 (WebCore::InspectorClientQt::createPage): 11965 (WebCore::InspectorClientQt::showWindow): 11966 (WebCore::InspectorClientQt::closeWindow): 11967 (WebCore::InspectorClientQt::attachWindow): 11968 (WebCore::InspectorClientQt::detachWindow): 11969 (WebCore::InspectorClientQt::highlight): 11970 (WebCore::InspectorClientQt::hideHighlight): 11971 * WebCoreSupport/InspectorClientQt.h: Added. 11972 119732007-06-19 George Staikos <staikos@kde.org> 11974 11975 Reviewed by Tim Hatcher. 11976 11977 Add https support. 11978 11979 * Api/qwebnetworkinterface.cpp: 11980 (QWebNetworkInterface::addJob): 11981 (QWebNetworkInterface::cancelJob): 11982 (WebCoreHttp::WebCoreHttp): 11983 119842007-06-14 George Staikos <staikos@kde.org> 11985 11986 Reviewed by Lars. 11987 11988 Add evaluateJavaScript() method. 11989 11990 * Api/qwebframe.cpp: 11991 (QWebFrame::evaluateJavaScript): 11992 * Api/qwebframe.h: 11993 119942007-06-14 George Staikos <staikos@kde.org> 11995 11996 Reviewed by Lars. 11997 11998 Implement most of the editing commands, better focus handling, fix some 11999 keyboard and mouse handling, and add keyboard navigation. May be 12000 refactored later as the key switches are ugly. 12001 12002 * Api/qwebframe.cpp: 12003 (QWebFramePrivate::init): 12004 (QWebFrame::mousePressEvent): 12005 (QWebFrame::mouseReleaseEvent): 12006 (QWebFrame::wheelEvent): 12007 (QWebFrame::keyPressEvent): 12008 (QWebFrame::keyReleaseEvent): 12009 (QWebFrame::focusInEvent): 12010 (QWebFrame::focusOutEvent): 12011 (QWebFrame::focusNextPrevChild): 12012 * Api/qwebframe.h: 12013 * Api/qwebframe_p.h: 12014 * WebCoreSupport/EditorClientQt.cpp: 12015 (WebCore::EditorClientQt::handleKeypress): 12016 120172007-06-14 George Staikos <staikos@kde.org> 12018 12019 Reviewed by Lars. 12020 12021 Implement all of the Javascript dialogs and file chooser. 12022 Also makes the statusbar virtual into a signal and shuffles some 12023 virtuals around a bit. The helper in FrameLoaderClientQt may go away 12024 shortly. 12025 12026 * Api/qwebpage.cpp: 12027 (QWebPagePrivate::QWebPagePrivate): 12028 (QWebPage::javaScriptAlert): 12029 (QWebPage::javaScriptConfirm): 12030 (QWebPage::javaScriptPrompt): 12031 (QWebPage::chooseFile): 12032 * Api/qwebpage.h: 12033 * WebCoreSupport/ChromeClientQt.cpp: 12034 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel): 12035 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel): 12036 (WebCore::ChromeClientQt::runJavaScriptAlert): 12037 (WebCore::ChromeClientQt::runJavaScriptConfirm): 12038 (WebCore::ChromeClientQt::runJavaScriptPrompt): 12039 (WebCore::ChromeClientQt::setStatusbarText): 12040 * WebCoreSupport/FrameLoaderClientQt.cpp: 12041 (WebCore::FrameLoaderClientQt::chooseFile): 12042 * WebCoreSupport/FrameLoaderClientQt.h: 12043 120442007-06-14 Simon Hausmann <hausmann@kde.org> 12045 12046 Reviewed by Zack. 12047 12048 Removed QWebHistoryItem::parent() as it is not implemented and WebCore's 12049 12050 HistoryItem itself doesn't seem to have a parent pointer either. 12051 12052 * Api/qwebpagehistory.h: 12053 120542007-06-14 Simon Hausmann <hausmann@kde.org> 12055 12056 Reviewed by Zack. 12057 12058 Make it possible to copy QWebHistoryItem objects. 12059 12060 * Api/qwebpagehistory.cpp: 12061 * Api/qwebpagehistory.h: 12062 120632007-06-14 Lars Knoll <lars@trolltech.com> 12064 12065 Reviewed by George 12066 12067 Fix a crash when a request from the plugin resulted 12068 in a HTTP redirect. 12069 12070 * Api/qwebnetworkinterface.cpp: 12071 (QWebNetworkManager::started): 12072 120732007-06-14 Lars Knoll <lars@trolltech.com> 12074 12075 Reviewed by George. 12076 12077 Work around a bug in Qt's QHttp implementation and 12078 get web pages to load again. 12079 12080 * Api/qwebpage.cpp: 12081 (QWebPage::open): 12082 120832007-06-13 Simon Hausmann <hausmann@kde.org> 12084 12085 Reviewed by Lars. 12086 12087 Added a make install target that installs the Qt port and renamed 12088 WebKitQt to QtWebKit 12089 12090 * Api/headers.pri: Added. 12091 * Api/qtwebkit.prf: Added. 12092 120932007-06-13 Simon Hausmann <hausmann@kde.org> 12094 12095 Reviewed by Lars. 12096 12097 Added httpHeaderField setter/getter to QWebNetworkRequest for convenience. 12098 12099 * Api/qwebnetworkinterface.cpp: 12100 * Api/qwebnetworkinterface.h: 12101 121022007-06-13 Simon Hausmann <hausmann@kde.org> 12103 12104 Reviewed by Lars. 12105 12106 Changed QWebObjectPluginConnector::requestUrl to take a QWebNetworkRequest as argument. 12107 12108 * Api/qwebnetworkinterface.h: 12109 * Api/qwebobjectpluginconnector.cpp: 12110 (QWebObjectPluginConnector::requestUrl): 12111 * Api/qwebobjectpluginconnector.h: 12112 121132007-06-13 Simon Hausmann <hausmann@kde.org> 12114 12115 Reviewed by Lars. 12116 12117 Added a QWebNetworkRequest convenience constructor. 12118 12119 * Api/qwebnetworkinterface.cpp: 12120 * Api/qwebnetworkinterface.h: 12121 * Api/qwebpage.cpp: 12122 (QWebPage::open): 12123 121242007-06-13 Simon Hausmann <hausmann@kde.org> 12125 12126 Reviewed by Lars. 12127 12128 Changed the QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData) 12129 overload to take a QWebNetworkRequest instead. 12130 12131 * Api/qwebpage.cpp: 12132 (QWebPage::open): 12133 * Api/qwebpage.h: 12134 121352007-06-13 Simon Hausmann <hausmann@kde.org> 12136 12137 Reviewed by Lars. 12138 12139 In QWebPage::open(const QUrl &, const QHttpRequestHeader &, ...) don't make the population 12140 of the WebCore::ResourceRequest depend on the validity of the QHttpRequestHeader but just 12141 pick the individual fields if we can use them. 12142 12143 * Api/qwebpage.cpp: 12144 (QWebPage::open): 12145 121462007-06-13 Simon Hausmann <hausmann@kde.org> 12147 12148 Reviewed by Lars. 12149 12150 Minor QWebNetworkRequet API fixlet 12151 12152 * Api/qwebnetworkinterface.cpp: 12153 * Api/qwebnetworkinterface.h: 12154 121552007-06-13 Simon Hausmann <hausmann@kde.org> 12156 12157 Reviewed by Lars. 12158 12159 Use QWebNetworkRequest for QWebPage::navigationRequested. 12160 12161 * Api/qwebnetworkinterface.cpp: 12162 * Api/qwebnetworkinterface.h: 12163 * Api/qwebpage.cpp: 12164 (QWebPagePrivate::navigationRequested): 12165 (QWebPage::navigationRequested): 12166 * Api/qwebpage.h: 12167 * Api/qwebpage_p.h: 12168 * WebCoreSupport/FrameLoaderClientQt.cpp: 12169 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 12170 121712007-06-13 Simon Hausmann <hausmann@kde.org> 12172 12173 Reviewed by Lars. 12174 12175 Some docs for QWebNetworkRequest 12176 12177 * Api/qwebnetworkinterface.cpp: 12178 (QWebNetworkRequest::QWebNetworkRequest): 12179 (QWebNetworkRequest::~QWebNetworkRequest): 12180 121812007-06-13 Simon Hausmann <hausmann@kde.org> 12182 12183 Reviewed by Lars. 12184 12185 Moved QWebNetworkJob::Method enum into QWebNetworkRequest. 12186 12187 * Api/qwebnetworkinterface.h: 12188 * Api/qwebobjectpluginconnector.cpp: 12189 (QWebObjectPluginConnector::requestUrl): 12190 * Api/qwebobjectpluginconnector.h: 12191 121922007-06-13 Simon Hausmann <hausmann@kde.org> 12193 12194 Reviewed by Lars. 12195 12196 Rename QWebNetworkJob::request() into QWebNetworkJob::httpHeader() and added 12197 12198 * Api/qwebnetworkinterface.cpp: 12199 (QWebNetworkJob::postData): 12200 (WebCoreHttp::WebCoreHttp): 12201 (WebCoreHttp::scheduleNextRequest): 12202 * Api/qwebnetworkinterface.h: 12203 122042007-06-13 Simon Hausmann <hausmann@kde.org> 12205 12206 Reviewed by Lars. 12207 12208 Introduce QWebNetworkRequest in the public API. 12209 12210 * Api/qwebnetworkinterface.cpp: 12211 (QWebNetworkRequestPrivate::init): 12212 * Api/qwebnetworkinterface.h: 12213 * Api/qwebnetworkinterface_p.h: 12214 * WebCoreSupport/FrameLoaderClientQt.cpp: 12215 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 12216 122172007-06-13 Simon Hausmann <hausmann@kde.org> 12218 12219 Reviewed by Lars. 12220 12221 Changed QWebNetworkJobPrivate to aggregate a QWebNetworkRequest instead of inheriting from it. 12222 12223 * Api/qwebnetworkinterface.cpp: 12224 (QWebNetworkManager::add): 12225 (QWebNetworkManager::started): 12226 (QWebNetworkManager::data): 12227 (QWebNetworkManager::finished): 12228 * Api/qwebnetworkinterface_p.h: 12229 * Api/qwebobjectpluginconnector.cpp: 12230 (QWebObjectPluginConnector::requestUrl): 12231 122322007-06-13 Simon Hausmann <hausmann@kde.org> 12233 12234 Reviewed by Lars. 12235 12236 Rename QWebNetworkRequest::request into QWebNetworkRequest::httpHeader. 12237 12238 * Api/qwebnetworkinterface.cpp: 12239 (QWebNetworkRequest::init): 12240 (QWebNetworkRequest::setURL): 12241 (QWebNetworkManager::add): 12242 (QWebNetworkManager::started): 12243 * Api/qwebnetworkinterface_p.h: 12244 * WebCoreSupport/FrameLoaderClientQt.cpp: 12245 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 12246 122472007-06-12 Lars Knoll <lars@trolltech.com> 12248 12249 Reviewed by George Staikos. 12250 12251 Remove duplicate symbols. 12252 12253 * Api/qwebobjectplugin_p.h: 12254 122552007-06-13 Lars Knoll <lars@trolltech.com> 12256 12257 Reviewed by Niko. 12258 12259 Fix compilation, and remove dependency on Qt 12260 private header. 12261 12262 * Api/qwebobjectplugin_p.h: 12263 (QWebFactoryLoader::supportsMimeType): 12264 122652007-06-13 Lars Knoll <lars@trolltech.com> 12266 12267 Reviewed by Niko. 12268 12269 Parts of the patch done by Zack. 12270 Fix up some parts in the implementation of QWebNetworkInterface 12271 so it can be used by plugins. 12272 Change the plugin API so we can actually get all the information 12273 required by the JS bridge from them as well. 12274 12275 * Api/qwebnetworkinterface.cpp: 12276 (QWebNetworkJob::cancelled): 12277 (QWebNetworkManager::cancel): 12278 (QWebNetworkManager::started): 12279 (QWebNetworkManager::finished): 12280 * Api/qwebobjectplugin.cpp: 12281 (QWebFactoryLoader::QWebFactoryLoader): 12282 (QWebFactoryLoader::descriptionForName): 12283 (QWebFactoryLoader::mimetypesForName): 12284 (QWebFactoryLoader::mimeTypeForExtension): 12285 (QWebFactoryLoader::extensions): 12286 (QWebFactoryLoader::nameForMimetype): 12287 (QWebFactoryLoader::create): 12288 (QWebObjectPlugin::descriptionForKey): 12289 (QWebObjectPlugin::mimetypesForKey): 12290 * Api/qwebobjectplugin.h: 12291 * Api/qwebobjectplugin_p.h: 12292 (QWebFactoryLoader::names): 12293 * Api/qwebobjectpluginconnector.cpp: 12294 (QWebObjectPluginConnector::requestUrl): 12295 * Api/qwebpage.cpp: 12296 (QWebPage::networkInterface): 12297 122982007-06-11 Simon Hausmann <hausmann@kde.org> 12299 12300 Reviewed by Lars. 12301 12302 Added a QWebPage::open overload to allow specifying the http header and post data. 12303 (it's an overload instead of a merged openUrl to avoid including qhttp.h in qwebpage.h, 12304 which would imply that one has to have QT += network in the .pro file for using WebKitQt) 12305 12306 * Api/qwebpage.cpp: 12307 * Api/qwebpage.h: 12308 123092007-06-11 Simon Hausmann <hausmann@kde.org> 12310 12311 Reviewed by Lars. 12312 12313 Added the possibility to intercept url requests through QWebPage::navigationRequested. 12314 12315 * Api/qwebpage.cpp: 12316 (QWebPagePrivate::QWebPagePrivate): 12317 (QWebPage::createFrame): 12318 * Api/qwebpage.h: 12319 * Api/qwebpage_p.h: 12320 * WebCoreSupport/FrameLoaderClientQt.cpp: 12321 123222007-06-11 Simon Hausmann <hausmann@kde.org> 12323 12324 Reviewed by Lars. 12325 12326 Added a QWebNetworkRequest::init overload that takes a WebCore::ResourceRequest, 12327 to be called from FrameLoaderClientQt in the near future. 12328 12329 * Api/qwebnetworkinterface.cpp: 12330 (QWebNetworkManager::add): 12331 * Api/qwebnetworkinterface_p.h: 12332 123332007-06-11 Simon Hausmann <hausmann@kde.org> 12334 12335 Reviewed by Lars. 12336 12337 Moved the postData setup into QWebNetworkRequest::init. 12338 12339 * Api/qwebnetworkinterface.cpp: 12340 (QWebNetworkRequest::init): 12341 (QWebNetworkManager::add): 12342 123432007-06-11 Simon Hausmann <hausmann@kde.org> 12344 12345 Reviewed by Lars. 12346 12347 Moved HTTP header field propagation to QWebNetworkRequest::init. 12348 12349 * Api/qwebnetworkinterface.cpp: 12350 (QWebNetworkRequest::init): 12351 (QWebNetworkManager::add): 12352 123532007-06-11 Simon Hausmann <hausmann@kde.org> 12354 12355 Reviewed by Lars. 12356 12357 Started moving the code to separate a WebCore::ResourceRequest into a QUrl, postData 12358 and QHttpRequestHeader into a separate little QWebNetworkRequest struct. 12359 12360 * Api/qwebnetworkinterface.cpp: 12361 (QWebNetworkRequest::init): 12362 (QWebNetworkManager::add): 12363 * Api/qwebnetworkinterface_p.h: 12364 * Api/qwebobjectpluginconnector.cpp: 12365 (QWebObjectPluginConnector::requestUrl): 12366 123672007-06-11 Zack Rusin <zrusin@trolltech.com> 12368 12369 Reviewed by Lars 12370 12371 Forgot to export the plugin connector. 12372 12373 * Api/qwebobjectpluginconnector.h 12374 123752007-06-08 Lars Knoll <lars@trolltech.com> 12376 12377 Reviewed by Zack. 12378 12379 Add a QWebObjectPluginConnector class. The class will 12380 facility communication between the plugin and WebKit. 12381 Currently it's used to make the plugin network capable. 12382 12383 * Api/qwebnetworkinterface.cpp: 12384 (QWebNetworkJobPrivate::setDefaults): 12385 (QWebNetworkManager::add): 12386 (QWebNetworkManager::started): 12387 (QWebNetworkManager::data): 12388 (QWebNetworkManager::finished): 12389 * Api/qwebnetworkinterface.h: 12390 * Api/qwebnetworkinterface_p.h: 12391 (QWebNetworkJobPrivate::QWebNetworkJobPrivate): 12392 * Api/qwebobjectplugin.cpp: 12393 (QWebFactoryLoader::create): 12394 * Api/qwebobjectplugin.h: 12395 * Api/qwebobjectplugin_p.h: 12396 * Api/qwebobjectpluginconnector.cpp: Added. 12397 (QWebObjectPluginConnector::QWebObjectPluginConnector): 12398 (QWebObjectPluginConnector::frame): 12399 (QWebObjectPluginConnector::pluginParentWidget): 12400 (QWebObjectPluginConnector::requestUrl): 12401 * Api/qwebobjectpluginconnector.h: Added. 12402 (QWebObjectPluginConnector::): 12403 * WebCoreSupport/FrameLoaderClientQt.cpp: 12404 (WebCore::FrameLoaderClientQt::createPlugin): 12405 124062007-06-06 Lars Knoll <lars@trolltech.com> 12407 12408 Reviewed by Zack 12409 12410 Add an API to create and load plugins. 12411 Don't include moc files by hand anymore, rather let 12412 qmake handle them. 12413 12414 * Api/qcookiejar.cpp: 12415 (QCookieJar::cookieJar): 12416 * Api/qwebframe.cpp: 12417 (QWebFrame::scrollContentsBy): 12418 * Api/qwebnetworkinterface.cpp: 12419 * Api/qwebobjectplugin.cpp: Added. 12420 (QWebFactoryLoader::QWebFactoryLoader): 12421 (QWebFactoryLoader::self): 12422 (QWebFactoryLoader::mimeTypeForExtension): 12423 (QWebFactoryLoader::create): 12424 (QWebObjectPlugin::QWebObjectPlugin): 12425 (QWebObjectPlugin::~QWebObjectPlugin): 12426 (QWebObjectPlugin::extensionsForMimetype): 12427 * Api/qwebobjectplugin.h: Added. 12428 * Api/qwebobjectplugin_p.h: Added. 12429 (QWebFactoryLoader::mimeTypes): 12430 (QWebFactoryLoader::extensions): 12431 (QWebFactoryLoader::supportsMimeType): 12432 * Api/qwebpage.cpp: 12433 (QWebPage::settings): 12434 * WebCoreSupport/FrameLoaderClientQt.cpp: 12435 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 12436 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification): 12437 (WebCore::FrameLoaderClientQt::objectContentType): 12438 (WebCore::FrameLoaderClientQt::createPlugin): 12439 124402007-05-28 Zack Rusin <zrusin@trolltech.com> 12441 12442 Reviewed by andersca and simon 12443 12444 Adding public settings Api to the Qt port. 12445 QWebSetting's is a value based settings 12446 object settable on the QWebPage. 12447 12448 * Api/qwebpage.cpp: 12449 (QWebPagePrivate::QWebPagePrivate): 12450 (QWebPage::QWebPage): 12451 (QWebPage::setSettings): 12452 (QWebPage::settings): 12453 * Api/qwebpage.h: 12454 * Api/qwebsettings.cpp: Added. 12455 (QWebSettingsPrivate::QWebSettingsPrivate): 12456 (QWebSettings::QWebSettings): 12457 (QWebSettings::~QWebSettings): 12458 (QWebSettings::setMinimumFontSize): 12459 (QWebSettings::minimumFontSize): 12460 (QWebSettings::setMinimumLogicalFontSize): 12461 (QWebSettings::minimumLogicalFontSize): 12462 (QWebSettings::setDefaultFontSize): 12463 (QWebSettings::defaultFontSize): 12464 (QWebSettings::setDefaultFixedFontSize): 12465 (QWebSettings::defaultFixedFontSize): 12466 (QWebSettings::setUserStyleSheetLocation): 12467 (QWebSettings::userStyleSheetLocation): 12468 (QWebSettings::setGlobal): 12469 (QWebSettings::global): 12470 (QWebSettings::setFontFamily): 12471 (QWebSettings::fontFamily): 12472 (QWebSettings::setAttribute): 12473 (QWebSettings::testAttribute): 12474 * Api/qwebsettings.h: Added. 12475 * QtLauncher/main.cpp: 12476 (main): 124772007-05-27 Kevin Ollivier <kevino@theolliviers.com> 12478 12479 Reviewed by Sam Weinig. 12480 12481 Consolidate all notImplemented() macro definitions into 12482 one header file for all platforms. 12483 12484 * WebCoreSupport/ChromeClientQt.cpp: 12485 * WebCoreSupport/ContextMenuClientQt.cpp: 12486 * WebCoreSupport/EditorClientQt.cpp: 12487 * WebCoreSupport/FrameLoaderClientQt.cpp: 12488 124892007-05-25 George Staikos <staikos@kde.org> 12490 12491 Reviewed by Simon. 12492 12493 The http loader should only ask for .... http cookies! 12494 12495 * Api/qwebnetworkinterface.cpp: 12496 (QWebNetworkManager::add): 12497 124982007-05-24 Simon Hausmann <hausmann@kde.org> 12499 12500 Reviewed by Zack. 12501 12502 Fix multipart/form-data HTTP POSTs. The content-type wasn't set 12503 correctly. Fortunately WebCore does it already, so there's no need 12504 for us to do it since we already transfer all HTTP header fields :) 12505 12506 * Api/qwebnetworkinterface.cpp: 12507 (QWebNetworkManager::add): 12508 125092007-05-23 Simon Hausmann <hausmann@kde.org> 12510 12511 Reviewed by Zack, idea from Lars. 12512 12513 Share WebCoreHttp and therefore HTTP connections among multiple 12514 QWebNetworkInterface instances by moving the code into 12515 QWebNetworkManager. 12516 12517 * Api/qwebnetworkinterface.cpp: 12518 (QWebNetworkManager::addHttpJob): 12519 (QWebNetworkManager::cancelHttpJob): 12520 (QWebNetworkManager::httpConnectionClosed): 12521 (QWebNetworkInterface::addJob): 12522 (QWebNetworkInterface::cancelJob): 12523 (WebCoreHttp::scheduleNextRequest): 12524 (WebCoreHttp::onResponseHeaderReceived): 12525 (WebCoreHttp::onReadyRead): 12526 (WebCoreHttp::onRequestFinished): 12527 (WebCoreHttp::cancel): 12528 * Api/qwebnetworkinterface.h: 12529 * Api/qwebnetworkinterface_p.h: 12530 125312007-05-23 Simon Hausmann <hausmann@kde.org> 12532 12533 Reviewed by Zack, discussed also with Lars. 12534 12535 Make it possible to specify a per-QWebPage network interface (needed 12536 for the KDE KIO integration). 12537 12538 Merged the file and the network loader into 12539 QWebNetworkInterface(Private), which simplifies the loading code. 12540 12541 When receiving a redirection don't emit the data of the redirected job 12542 to the document. (otherwise the kind of "This page has moved" text 12543 appears right on top of the real page content) 12544 12545 * Api/qwebnetworkinterface.cpp: 12546 (qHash): 12547 (operator==): 12548 (QWebNetworkJob::QWebNetworkJob): 12549 (QWebNetworkJob::networkInterface): 12550 (QWebNetworkManager::add): 12551 (QWebNetworkManager::cancel): 12552 (QWebNetworkManager::data): 12553 (QWebNetworkManager::finished): 12554 (QWebNetworkInterfacePrivate::sendFileData): 12555 (QWebNetworkInterfacePrivate::parseDataUrl): 12556 (QWebNetworkInterfacePrivate::addHttpJob): 12557 (QWebNetworkInterfacePrivate::httpConnectionClosed): 12558 (QWebNetworkInterface::setDefaultInterface): 12559 (QWebNetworkInterface::QWebNetworkInterface): 12560 (QWebNetworkInterface::addJob): 12561 (QWebNetworkInterface::cancelJob): 12562 (WebCoreHttp::scheduleNextRequest): 12563 (WebCoreHttp::onResponseHeaderReceived): 12564 (WebCoreHttp::onReadyRead): 12565 (WebCoreHttp::onRequestFinished): 12566 (WebCoreHttp::cancel): 12567 * Api/qwebnetworkinterface.h: 12568 * Api/qwebnetworkinterface_p.h: 12569 * Api/qwebpage.cpp: 12570 (QWebPagePrivate::QWebPagePrivate): 12571 (QWebPage::setNetworkInterface): 12572 * Api/qwebpage.h: 12573 * Api/qwebpage_p.h: 12574 125752007-05-23 Lars Knoll <lars@trolltech.com> 12576 12577 Reviewed by Zack 12578 12579 Don't do HTTP downloads in a second thread. Simplifies 12580 the code significantly and fixes crashes on some 12581 Web pages. 12582 12583 * Api/qwebnetworkinterface.cpp: 12584 (QWebNetworkManager::add): 12585 (QWebNetworkInterface::QWebNetworkInterface): 12586 (QWebNetworkInterface::addJob): 12587 (QWebNetworkInterface::cancelJob): 12588 (LoaderThread::LoaderThread): 12589 (LoaderThread::run): 12590 (WebCoreHttp::cancel): 12591 (NetworkLoader::NetworkLoader): 12592 (NetworkLoader::request): 12593 (NetworkLoader::cancel): 12594 * Api/qwebnetworkinterface_p.h: 12595 * WebCoreSupport/FrameLoaderClientQt.cpp: 12596 (WebCore::FrameLoaderClientQt::committedLoad): 12597 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength): 12598 125992007-05-23 Lars Knoll <lars@trolltech.com> 12600 12601 Reviewed by Simon. 12602 12603 * Api/qwebnetworkinterface.cpp: 12604 (QWebNetworkJobPrivate::setURL): 12605 (QWebNetworkManager::started): 12606 Fix Host: line in HTTP headers and resolving of relative URLs 12607 when redirecting. 12608 * Api/qwebnetworkinterface_p.h: 12609 Clean up qHash forward declaration a bit. 12610 126112007-05-23 Simon Hausmann <hausmann@kde.org> 12612 12613 Reviewed by Zack. 12614 12615 * QtLauncher/main.cpp: 12616 (MainWindow::MainWindow): Fix loading progress signal/slot connection. 12617 126182007-05-22 Simon Hausmann <hausmann@kde.org> 12619 12620 Reviewed by Lars. 12621 12622 * Api/qwebnetworkinterface.cpp: 12623 (QWebNetworkManager::add): Fix http headers for POST. 12624 126252007-05-21 Lars Knoll <lars@trolltech.com> 12626 12627 Reviewed by Simon 12628 12629 Remove the userHandle methods from QWebnetworkJob again. 12630 They don't really give us anything and just clutter the API. 12631 12632 * Api/qwebnetworkinterface.cpp: 12633 * Api/qwebnetworkinterface.h: 12634 * Api/qwebnetworkinterface_p.h: 12635 126362007-05-21 Simon Hausmann <hausmann@kde.org> 12637 12638 Reviewed by Zack. 12639 12640 * Api/qwebnetworkinterface.h: Export the net API. 12641 126422007-05-21 Lars Knoll <lars@trolltech.com> 12643 12644 Reviewed by Zack. 12645 12646 Add an API layer for network downloads. Basically QWebnetworkInterface 12647 is an interface class for downloading resources. QWebnetworkJob describes 12648 the actual object to download. 12649 12650 QWebNetworkInterface has a default implementation that replaces the 12651 old ResourceHandleManager class in the Qt port. 12652 12653 * Api/qwebnetworkinterface.cpp: Added. 12654 (QWebNetworkJobPrivate::setURL): 12655 (QWebNetworkJob::QWebNetworkJob): 12656 (QWebNetworkJob::~QWebNetworkJob): 12657 (QWebNetworkJob::url): 12658 (QWebNetworkJob::postData): 12659 (QWebNetworkJob::request): 12660 (QWebNetworkJob::response): 12661 (QWebNetworkJob::setResponse): 12662 (QWebNetworkJob::cancelled): 12663 (QWebNetworkJob::ref): 12664 (QWebNetworkJob::deref): 12665 (QWebNetworkJob::setUserHandle): 12666 (QWebNetworkJob::userHandle): 12667 (QWebNetworkManager::QWebNetworkManager): 12668 (QWebNetworkManager::self): 12669 (QWebNetworkManager::add): 12670 (QWebNetworkManager::cancel): 12671 (QWebNetworkManager::started): 12672 (QWebNetworkManager::data): 12673 (QWebNetworkManager::finished): 12674 (QWebNetworkInterface::setDefaultInterface): 12675 (QWebNetworkInterface::defaultInterface): 12676 (QWebNetworkInterface::QWebNetworkInterface): 12677 (QWebNetworkInterface::~QWebNetworkInterface): 12678 (QWebNetworkInterface::addJob): 12679 (QWebNetworkInterface::cancelJob): 12680 (LoaderThread::LoaderThread): 12681 (LoaderThread::run): 12682 (FileLoader::FileLoader): 12683 (FileLoader::request): 12684 (FileLoader::sendData): 12685 (FileLoader::parseDataUrl): 12686 (WebCoreHttp::WebCoreHttp): 12687 (WebCoreHttp::~WebCoreHttp): 12688 (WebCoreHttp::request): 12689 (WebCoreHttp::scheduleNextRequest): 12690 (WebCoreHttp::getConnection): 12691 (WebCoreHttp::onResponseHeaderReceived): 12692 (WebCoreHttp::onReadyRead): 12693 (WebCoreHttp::onRequestFinished): 12694 (WebCoreHttp::onStateChanged): 12695 (WebCoreHttp::cancel): 12696 (HostInfo::HostInfo): 12697 (qHash): 12698 (operator==): 12699 (NetworkLoader::NetworkLoader): 12700 (NetworkLoader::~NetworkLoader): 12701 (NetworkLoader::request): 12702 (NetworkLoader::connectionClosed): 12703 (NetworkLoader::cancel): 12704 * Api/qwebnetworkinterface.h: Added. 12705 (QWebNetworkJob::setHandle): 12706 (QWebNetworkJob::handle): 12707 * Api/qwebnetworkinterface_p.h: Added. 12708 (WebCore::LoaderThread::): 12709 (WebCore::LoaderThread::waitForSetup): 12710 (WebCore::HostInfo::HostInfo): 12711 127122007-05-18 Simon Hausmann <hausmann@kde.org> 12713 12714 Reviewed by Nikolas. 12715 12716 * Api/qwebpage.h: Changed the loadProgressChanged API to use an 12717 percent integer instead of a double precision floating pointer number. 12718 * WebCoreSupport/FrameLoaderClientQt.cpp: 12719 (WebCore::FrameLoaderClientQt::setFrame): 12720 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification): 12721 * WebCoreSupport/FrameLoaderClientQt.h: 12722 127232007-05-18 Marius Bugge Monsen <mbm@trolltech.com> 12724 12725 Reviewed by Zack Rusin. 12726 12727 The default constructed KeyboardEvent has 12728 no PlatformKeyboardEvent. 12729 12730 * WebCoreSupport/EditorClientQt.cpp: 12731 (WebCore::EditorClientQt::handleKeypress): 12732 127332007-05-17 Adam Treat <adam@staikos.net> 12734 12735 Reviewed by George Staikos. 12736 12737 - Implement frameLoadCompleted 12738 - Fix build (by George) 12739 12740 * WebCoreSupport/FrameLoaderClientQt.cpp: 12741 (WebCore::FrameLoaderClientQt::frameLoadCompleted): 12742 (WebCore::FrameLoaderClientQt::createFrame): 12743 127442007-05-17 Adam Treat <adam@staikos.net> 12745 12746 Reviewed by George Staikos. 12747 12748 Implement canShowMIMEType 12749 12750 * WebCoreSupport/FrameLoaderClientQt.cpp: 12751 (WebCore::FrameLoaderClientQt::canShowMIMEType): 12752 127532007-05-16 Lars Knoll <lars@trolltech.com> 12754 12755 Reviewed by Zack 12756 12757 pass the mouse events to the event handler, not the frameview. 12758 12759 * Api/qwebframe.cpp: 12760 (QWebFrame::mouseMoveEvent): 12761 (QWebFrame::mouseReleaseEvent): 12762 127632007-05-14 Lars Knoll <lars@trolltech.com> 12764 12765 Reviewed by Zack 12766 12767 Updates after Maciej's frame change. 12768 12769 * Api/qwebpage.cpp: 12770 (QWebPage::stop): 12771 Call stopForUserCancel() instead of stopAllLoaders() 12772 * WebCoreSupport/FrameLoaderClientQt.cpp: 12773 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 12774 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 12775 (WebCore::FrameLoaderClientQt::didFinishLoad): 12776 (WebCore::FrameLoaderClientQt::setMainDocumentError): 12777 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 12778 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): 12779 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): 12780 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad): 12781 Call QWebFrame::loadDone() from the places it's supposed to be 12782 called from. 12783 127842007-05-12 Maciej Stachowiak <mjs@apple.com> 12785 12786 Reviewed by Rob Buis. 12787 12788 - call Frame::init as needed - this prevents crashes but pages don't appear. 12789 12790 * Api/qwebframe.cpp: 12791 (QWebFramePrivate::init): 12792 * WebKitPart/WebKitPart.cpp: 12793 (WebKitPart::initView): 12794 127952007-05-08 Steve Falkenburg <sfalken@apple.com> 12796 12797 Reviewed by Ada. 12798 12799 Slight modification to last editor method fix. 12800 12801 * WebCoreSupport/EditorClientQt.cpp: 12802 (WebCore::EditorClientQt::updateSpellingUIWithGrammarString): 12803 * WebCoreSupport/EditorClientQt.h: 12804 128052007-05-03 Steve Falkenburg <sfalken@apple.com> 12806 12807 Reviewed by Oliver. 12808 12809 Add missing user description parameter to spelling-related editor client method. 12810 12811 * WebCoreSupport/EditorClientQt.cpp: 12812 (WebCore::EditorClientQt::updateSpellingUIWithGrammarString): 12813 * WebCoreSupport/EditorClientQt.h: 12814 128152007-04-29 Oliver Hunt <oliver@apple.com> 12816 12817 Reviewed by Zack. 12818 12819 Tie QT drag events to the DragController logic 12820 to allow drag and drop events to be handled by 12821 webkit. 12822 12823 * Api/qwebframe.cpp: 12824 * Api/qwebframe.h: 12825 * Api/qwebpage.cpp: 12826 (QWebPagePrivate::QWebPagePrivate): 12827 (QWebPage::QWebPage): 12828 (dropActionToDragOp): 12829 (dragOpToDropAction): 12830 (QWebPage::dragEnterEvent): 12831 (QWebPage::dragLeaveEvent): 12832 (QWebPage::dragMoveEvent): 12833 (QWebPage::dropEvent): 12834 * Api/qwebpage.h: 12835 * WebCoreSupport/DragClientQt.cpp: 12836 (WebCore::DragClientQt::startDrag): 12837 * WebCoreSupport/DragClientQt.h: 12838 (WebCore::DragClientQt::DragClientQt): 12839 128402007-04-27 Holger Freyther <freyther@kde.org> 12841 12842 Reviewed by Maciej. 12843 12844 Remove unmaintained CMake build system. 12845 12846 * QtLauncher/CMakeLists.txt: Removed. 12847 * WebKitPart/CMakeLists.txt: Removed. 12848 128492007-04-25 Steve Falkenburg <sfalken@apple.com> 12850 12851 Reviewed by Adam. 12852 12853 Fix spelling error in spelling method name. 12854 12855 * WebCoreSupport/EditorClientQt.cpp: 12856 (WebCore::EditorClientQt::updateSpellingUIWithGrammarString): 12857 * WebCoreSupport/EditorClientQt.h: 12858 128592007-04-24 Steve Falkenburg <sfalken@apple.com> 12860 12861 Reviewed by Oliver. 12862 12863 Spelling and grammar stubs 12864 12865 * WebCoreSupport/EditorClientQt.cpp: 12866 (WebCore::EditorClientQt::ignoreWordInSpellDocument): 12867 (WebCore::EditorClientQt::learnWord): 12868 (WebCore::EditorClientQt::checkSpellingOfString): 12869 (WebCore::EditorClientQt::checkGrammarOfString): 12870 (WebCore::EditorClientQt::udpateSpellingUIWithGrammarString): 12871 (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord): 12872 (WebCore::EditorClientQt::showSpellingUI): 12873 (WebCore::EditorClientQt::spellingUIIsShowing): 12874 (WebCore::EditorClientQt::getGuessesForWord): 12875 * WebCoreSupport/EditorClientQt.h: 12876 128772007-04-11 MorganL <morganl.webkit@yahoo.com> 12878 12879 Reviewed by Maciej. 12880 12881 Add a Frame pointer to ChromeClient methods: 12882 http://bugs.webkit.org/show_bug.cgi?id=13127 12883 12884 * WebCoreSupport/ChromeClientQt.cpp: 12885 (WebCore::ChromeClientQt::createWindow): 12886 (WebCore::ChromeClientQt::createModalDialog): 12887 * WebCoreSupport/ChromeClientQt.h: 12888 128892007-04-12 Mark Rowe <mrowe@apple.com> 12890 12891 Second part of Qt build fix. 12892 12893 * WebCoreSupport/FrameLoaderClientQt.cpp: 12894 (WebCore::FrameLoaderClientQt::loadedFromCachedPage): 12895 (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage): 12896 (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage): 12897 * WebCoreSupport/FrameLoaderClientQt.h: 12898 128992007-03-27 Zack Rusin <zrusin@trolltech.com> 12900 12901 Fix the rendering crashes due triggered 12902 asserts. Improve a bit the layout 12903 scheduling. 12904 12905 * Api/qwebframe.cpp: 12906 (QWebFrame::resizeEvent): 12907 (QWebFrame::paintEvent): 12908 * WebCoreSupport/FrameLoaderClientQt.cpp: 12909 (WebCore::FrameLoaderClientQt::forceLayout): 12910 129112007-03-16 Lars Knoll <lars@trolltech.com> 12912 12913 Fix the Qt build once again. 12914 12915 * WebCoreSupport/EditorClientQt.cpp: 12916 (WebCore::EditorClientQt::handleKeypress): 12917 * WebCoreSupport/FrameLoaderClientQt.cpp: 12918 (WebCore::FrameLoaderClientQt::blockedError): 12919 * WebCoreSupport/FrameLoaderClientQt.h: 12920 129212007-03-13 Lars Knoll <lars@trolltech.com> 12922 12923 Reviewed by George. 12924 12925 Don't try to load <object> tags with an invalid url. 12926 Fixes LayoutTests/fast/dom/object-plugin-hides-properties.html 12927 which hit an assertion in the frameloader. 12928 12929 * WebCoreSupport/FrameLoaderClientQt.cpp: 12930 (WebCore::FrameLoaderClientQt::objectContentType): 12931 129322007-03-13 Lars Knoll <lars@trolltech.com> 12933 12934 Reviewed by Anders. 12935 12936 Fix some crashes in the Qt build. 12937 12938 * Api/qwebframe.cpp: 12939 (QWebFrame::markup): 12940 Check for null pointer 12941 * WebCoreSupport/FrameLoaderClientQt.cpp: 12942 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 12943 Don't use an async callback into the FrameLoader. 12944 (WebCore::FrameLoaderClientQt::createFrame): 12945 129462007-03-11 Oliver Hunt <oliver@apple.com> 12947 12948 Reviewed by Adele. 12949 12950 Stub for EditorClientQt::respondToChangedSelection 12951 12952 * WebCoreSupport/EditorClientQt.cpp: 12953 (WebCore::EditorClientQt::respondToChangedSelection): 12954 * WebCoreSupport/EditorClientQt.h: 12955 129562007-03-07 Adele Peterson <adele@apple.com> 12957 12958 Reviewed by Darin Adler. 12959 12960 WebKitQT part of fix for: 12961 http://bugs.webkit.org/show_bug.cgi?id=10871 12962 http://bugs.webkit.org/show_bug.cgi?id=12677 12963 <rdar://problem/4823129> REGRESSION: IME key events different in nightly 12964 <rdar://problem/4759563> REGRESSION: Return key is always sent when you confirm a clause in kotoeri 12965 12966 * WebCoreSupport/EditorClientQt.cpp: 12967 (WebCore::EditorClientQt::handleKeypress): Changed handleKeyPress to handleKeypress. 12968 (WebCore::EditorClientQt::handleInputMethodKeypress): Added. 12969 * WebCoreSupport/EditorClientQt.h: 12970 129712007-03-07 Darin Adler <darin@apple.com> 12972 12973 * WebCoreSupport/FrameLoaderClientQt.h: Oops, forgot the header. 12974 129752007-03-07 Darin Adler <darin@apple.com> 12976 12977 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::userAgent): 12978 Try to fix the build by correcting the parameter here. 12979 129802007-03-02 Sam Weinig <sam@webkit.org> 12981 12982 Reviewed by Anders. 12983 12984 Try to fix the Qt build 12985 12986 * WebCoreSupport/DragClientQt.cpp: 12987 (WebCore::DragClientQt::willPerformDragDestinationAction): 12988 (WebCore::DragClientQt::dragControllerDestroyed): 12989 (WebCore::DragClientQt::createDragImageForLink): 12990 129912007-02-26 Maciej Stachowiak <mjs@apple.com> 12992 12993 Reviewed by Kevin McCullough. 12994 12995 - fix Qt build for earlier SVG changes. 12996 12997 * WebCoreSupport/EditCommandQt.cpp: 12998 129992007-02-24 Zack Rusin <zrusin@trolltech.com> 13000 13001 Adjust the animation a little bit to make it more natural. 13002 13003 * QtLauncher/main.cpp: 13004 (HoverLabel::paintEvent): 13005 130062007-02-23 Zack Rusin <zrusin@trolltech.com> 13007 13008 Adding a little bit of eye-candy to the last 13009 commit (animations on hover events) 13010 13011 * QtLauncher/main.cpp: 13012 (HoverLabel::HoverLabel): 13013 (HoverLabel::setHoverLink): 13014 (HoverLabel::sizeForFont): 13015 (HoverLabel::sizeHint): 13016 (HoverLabel::resetAnimation): 13017 (HoverLabel::paintEvent): 13018 (HoverLabel::interpolate): 13019 (SearchEdit::resizeEvent): 13020 130212007-02-23 Zack Rusin <zrusin@trolltech.com> 13022 13023 Reviewed by Lars 13024 13025 Adding API and code for notification of when the 13026 mouse is hovering over a link and adding code to 13027 the sample app to showcase it. 13028 13029 * Api/qwebframe.cpp: 13030 (QWebFrame::mouseMoveEvent): 13031 * Api/qwebframe.h: 13032 * Api/qwebframe_p.h: 13033 (QWebFramePrivate::QWebFramePrivate): 13034 * Api/qwebpage.cpp: 13035 (QWebPage::createFrame): 13036 * Api/qwebpage.h: 13037 * QtLauncher/main.cpp: 13038 (HoverLabel::HoverLabel): 13039 (HoverLabel::setHoverLink): 13040 (HoverLabel::sizeHint): 13041 (HoverLabel::updateSize): 13042 (HoverLabel::paintEvent): 13043 (ClearButton::ClearButton): 13044 (ClearButton::paintEvent): 13045 (SearchEdit::SearchEdit): 13046 (SearchEdit::resizeEvent): 13047 (SearchEdit::moveEvent): 13048 (MainWindow::MainWindow): 13049 (MainWindow::showLinkHover): 13050 (MainWindow::resizeEvent): 13051 130522007-02-22 Zack Rusin <zrusin@trolltech.com> 13053 13054 Reviewed by Lars 13055 13056 Fixing the default scroll offset, cleaning 13057 up private methods and making the default 13058 look not use any frames. 13059 13060 * Api/qwebframe.cpp: 13061 (QWebFramePrivate::init): 13062 (QWebFramePrivate::_q_handleKeyEvent): 13063 (QWebFrame::QWebFrame): 13064 (QWebFrame::wheelEvent): 13065 (QWebFrame::keyPressEvent): 13066 (QWebFrame::keyReleaseEvent): 13067 * Api/qwebframe.h: 13068 * Api/qwebframe_p.h: 13069 130702007-02-22 Zack Rusin <zrusin@trolltech.com> 13071 13072 Reviewed by Lars 13073 13074 Make the qwebframe act as a proper canvas. 13075 Implement it on top of QAbstractScrollArea. 13076 13077 * Api/qwebframe.cpp: 13078 (QWebFramePrivate::init): 13079 (QWebFramePrivate::_q_adjustScrollbars): 13080 (QWebFrame::init): 13081 (QWebFrame::QWebFrame): 13082 (QWebFrame::resizeEvent): 13083 (QWebFrame::childFrames): 13084 (QWebFrame::paintEvent): 13085 (QWebFrame::mouseMoveEvent): 13086 (QWebFrame::mousePressEvent): 13087 (QWebFrame::mouseReleaseEvent): 13088 (QWebFrame::wheelEvent): 13089 (QWebFrame::keyPressEvent): 13090 (QWebFrame::keyReleaseEvent): 13091 (QWebFrame::dragEnterEvent): 13092 (QWebFrame::dragLeaveEvent): 13093 (QWebFrame::dragMoveEvent): 13094 (QWebFrame::handleKeyEvent): 13095 (QWebFrame::scrollContentsBy): 13096 * Api/qwebframe.h: 13097 * Api/qwebframe_p.h: 13098 (QWebFramePrivate::QWebFramePrivate): 13099 131002007-02-21 George Staikos <staikos@kde.org> 13101 13102 Reviewed by Zack. 13103 13104 Add more editing support, and undo/redo. Requires some nasty evil 13105 hacks that have to be sorted out in WebCore/editor. 13106 13107 * Api/qwebpage.cpp: 13108 (QWebPagePrivate::QWebPagePrivate): 13109 (QWebPagePrivate::~QWebPagePrivate): 13110 (QWebPage::undoStack): 13111 * Api/qwebpage.h: 13112 * Api/qwebpage_p.h: 13113 * WebCoreSupport/EditorClientQt.cpp: 13114 (WebCore::EditorClientQt::didBeginEditing): 13115 (WebCore::EditorClientQt::didEndEditing): 13116 (WebCore::EditorClientQt::isEditable): 13117 (WebCore::EditorClientQt::registerCommandForUndo): 13118 (WebCore::EditorClientQt::registerCommandForRedo): 13119 (WebCore::EditorClientQt::clearUndoRedoOperations): 13120 (WebCore::EditorClientQt::canUndo): 13121 (WebCore::EditorClientQt::canRedo): 13122 (WebCore::EditorClientQt::undo): 13123 (WebCore::EditorClientQt::redo): 13124 (WebCore::EditorClientQt::handleKeyPress): 13125 (WebCore::EditorClientQt::EditorClientQt): 13126 (WebCore::EditorClientQt::textFieldDidBeginEditing): 13127 (WebCore::EditorClientQt::textFieldDidEndEditing): 13128 (WebCore::EditorClientQt::isEditing): 13129 * WebCoreSupport/EditorClientQt.h: 13130 131312007-02-21 Zack Rusin <zrusin@trolltech.com> 13132 13133 Fix compilation. 13134 13135 * WebCoreSupport/ContextMenuClientQt.cpp: 13136 * WebCoreSupport/ContextMenuClientQt.h: 13137 131382007-02-21 George Staikos <staikos@kde.org> 13139 13140 Fix compile. 13141 13142 * Api/qwebpage.cpp: 13143 (QWebPage::stop): 13144 131452007-02-20 Zack Rusin <zrusin@trolltech.com> 13146 13147 Reviewed by Lars 13148 13149 Make editing of forms work plus make sure that non-void methods 13150 always return something. 13151 13152 * WebCoreSupport/ChromeClientQt.cpp: 13153 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel): 13154 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel): 13155 (WebCore::ChromeClientQt::runJavaScriptConfirm): 13156 (WebCore::ChromeClientQt::runJavaScriptPrompt): 13157 (WebCore::ChromeClientQt::shouldInterruptJavaScript): 13158 * WebCoreSupport/EditorClientQt.cpp: 13159 (WebCore::EditorClientQt::shouldDeleteRange): 13160 (WebCore::EditorClientQt::shouldBeginEditing): 13161 (WebCore::EditorClientQt::shouldEndEditing): 13162 (WebCore::EditorClientQt::shouldInsertText): 13163 (WebCore::EditorClientQt::shouldChangeSelectedRange): 13164 (WebCore::EditorClientQt::shouldApplyStyle): 13165 (WebCore::EditorClientQt::shouldInsertNode): 13166 * WebCoreSupport/FrameLoaderClientQt.cpp: 13167 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache): 13168 (WebCore::FrameLoaderClientQt::dispatchCreatePage): 13169 131702007-02-17 Lars Knoll <lars@trolltech.com> 13171 13172 Reviewed by Maciej. 13173 13174 Additional coding by Maciej, additional review by Oliver. 13175 13176 Add stubs for the new methods in ChormeClient and EditorClient, 13177 remove all references to FrameQt. 13178 13179 * Api/qwebframe.cpp: 13180 (QWebFrame::QWebFrame): 13181 * Api/qwebframe_p.h: 13182 * Api/qwebpage.cpp: 13183 * WebCoreSupport/ChromeClientQt.cpp: 13184 (WebCore::ChromeClientQt::shouldInterruptJavaScript): 13185 * WebCoreSupport/ChromeClientQt.h: 13186 * WebCoreSupport/EditorClientQt.cpp: 13187 (WebCore::EditorClientQt::shouldChangeSelectedRange): 13188 (WebCore::EditorClientQt::isEditable): 13189 * WebCoreSupport/EditorClientQt.h: 13190 * WebCoreSupport/FrameLoaderClientQt.cpp: 13191 (WebCore::FrameLoaderClientQt::setFrame): 13192 (WebCore::FrameLoaderClientQt::webFrame): 13193 * WebCoreSupport/FrameLoaderClientQt.h: 13194 131952007-02-18 Oliver Hunt <oliver@apple.com> 13196 13197 Build fix -- adding DragClientQt method stubs 13198 13199 * WebCoreSupport/DragClientQt.cpp: 13200 (WebCore::DragClientQt::willPerformDragSourceAction): 13201 (WebCore::DragClientQt::startDrag): 13202 (WebCore::DragClientQt::createDragImageForLink): 13203 * WebCoreSupport/DragClientQt.h: 13204 132052007-02-15 Brady Eidson <beidson@apple.com> 13206 13207 Reviewed by Adam 13208 13209 Moved scroll state down into the cross platform FrameLoader - 13210 Blind attempt at keeping Qt building 13211 13212 * WebCoreSupport/FrameLoaderClientQt.cpp: 13213 (WebCore::FrameLoaderClientQt::restoreViewState): 13214 (WebCore::FrameLoaderClientQt::saveViewStateToItem): 13215 * WebCoreSupport/FrameLoaderClientQt.h: 13216 132172007-02-07 Anders Carlsson <acarlsson@apple.com> 13218 13219 Try fixing the Qt build. 13220 13221 * WebCoreSupport/ChromeClientQt.cpp: 13222 (WebCore::ChromeClientQt::shouldInterruptJavaScript): 13223 * WebCoreSupport/ChromeClientQt.h: 13224 132252007-02-02 Zack Rusin <zrusin@trolltech.com> 13226 13227 Compilation fix: forward declare d-ptr. 13228 13229 * Api/qcookiejar.h: 13230 132312007-02-02 Zack Rusin <zrusin@trolltech.com> 13232 13233 Reviewed by Lars 13234 13235 Make the frames white by default and get the 13236 files that WebCore can handle render inside 13237 the frames. 13238 13239 * Api/qwebframe.cpp: 13240 (QWebFrame::QWebFrame): 13241 * WebCoreSupport/FrameLoaderClientQt.cpp: 13242 (WebCore::FrameLoaderClientQt::createFrame): 13243 (WebCore::FrameLoaderClientQt::objectContentType): 13244 132452007-02-01 George Staikos <staikos@kde.org> 13246 13247 Reviewed by Zack and Lars. 13248 13249 Add a cookie interface for the Qt build. 13250 13251 * Api/qcookiejar.cpp: Added. 13252 (QCookieJarPrivate::QCookieJarPrivate): 13253 (qHash): 13254 (QCookieJar::QCookieJar): 13255 (QCookieJar::~QCookieJar): 13256 (QCookieJar::setCookies): 13257 (QCookieJar::cookies): 13258 (QCookieJar::isEnabled): 13259 (QCookieJar::setEnabled): 13260 (gCleanupJar): 13261 (QCookieJar::setCookieJar): 13262 (QCookieJar::cookieJar): 13263 * Api/qcookiejar.h: Added. 13264 132652007-02-01 Lars Knoll <lars@trolltech.com> 13266 13267 Reviewed by Adam. 13268 13269 Fix form loading for the Qt build. 13270 13271 * WebCoreSupport/FrameLoaderClientQt.cpp: 13272 (WebCore::FrameLoaderClientQt::callPolicyFunction): 13273 (WebCore::FrameLoaderClientQt::slotCallPolicyFunction): 13274 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): 13275 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 13276 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 13277 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 13278 132792007-01-31 Zack Rusin <zrusin@trolltech.com> 13280 13281 Expose the fact that the form has been edited 13282 in the public api. 13283 13284 * Api/qwebpage.cpp: 13285 (QWebPagePrivate::QWebPagePrivate): 13286 (QWebPage::isModified): 13287 * Api/qwebpage.h: 13288 * Api/qwebpage_p.h: 13289 * WebCoreSupport/EditorClientQt.cpp: 13290 (WebCore::EditorClientQt::respondToChangedContents): 13291 (WebCore::EditorClientQt::isEditable): 13292 132932007-01-31 Zack Rusin <zrusin@trolltech.com> 13294 13295 Reviewed by Lars 13296 13297 Properly propagate key events. 13298 13299 * Api/qwebframe.cpp: 13300 (QWebFrame::addToJSWindowObject): 13301 (QWebFrame::innerText): 13302 (QWebFrame::renderTreeDump): 13303 * Api/qwebpage.cpp: 13304 (QWebPagePrivate::QWebPagePrivate): 13305 * Api/qwebpage.h: 13306 * WebCoreSupport/EditorClientQt.cpp: 13307 (WebCore::EditorClientQt::pageDestroyed): 13308 (WebCore::EditorClientQt::handleKeyPress): 13309 (WebCore::EditorClientQt::EditorClientQt): 13310 * WebCoreSupport/EditorClientQt.h: 13311 133122007-01-31 George Staikos <staikos@kde.org> 13313 13314 Remove focusFrame() - misguided - and add childFrames(). Fix a crash 13315 on exit. 13316 13317 Reviewed by Zack. 13318 13319 * Api/qwebframe.cpp: 13320 (QWebFrame::resizeEvent): 13321 (QWebFrame::childFrames): 13322 * Api/qwebframe.h: 13323 * Api/qwebpage.cpp: 13324 * Api/qwebpage.h: 13325 * WebCoreSupport/FrameLoaderClientQt.cpp: 13326 (WebCore::FrameLoaderClientQt::webFrame): 13327 * WebCoreSupport/FrameLoaderClientQt.h: 13328 133292007-01-30 Zack Rusin <zrusin@trolltech.com> 13330 13331 Improve QtLauncher to make it more useful as a testing tool. 13332 13333 * QtLauncher/main.cpp: 13334 (ClearButton::ClearButton): 13335 (ClearButton::paintEvent): 13336 (SearchEdit::SearchEdit): 13337 (SearchEdit::~SearchEdit): 13338 (SearchEdit::paintEvent): 13339 (SearchEdit::resizeEvent): 13340 (SearchEdit::moveEvent): 13341 (MainWindow::MainWindow): 13342 (MainWindow::changeLocation): 13343 (MainWindow::loadFinished): 13344 133452007-01-30 Simon Hausmann <hausmann@kde.org> 13346 13347 Reviewed by Zack. 13348 13349 Added import/export macros needed for build with ELF visibility and 13350 for a build on Windows (in the future). 13351 13352 * Api/qwebframe.h: 13353 * Api/qwebkitglobal.h: Added. 13354 * Api/qwebpage.h: 13355 * Api/qwebpagehistory.h: 13356 133572007-01-30 Zack Rusin <zack@kde.org> 13358 13359 Change the signature of handleKeyPress 13360 (make it compile) 13361 13362 * WebCoreSupport/EditorClientQt.cpp: 13363 (WebCore::EditorClientQt::handleKeyPress): 13364 * WebCoreSupport/EditorClientQt.h: 13365 133662007-01-29 Zack Rusin <zack@kde.org> 13367 13368 Reviewed by Lars 13369 13370 Set the allows-scrolling property on the view. 13371 13372 * Api/qwebframe.cpp: 13373 (QWebFrame::QWebFrame): 13374 133752007-01-29 Oliver Hunt <oliver@apple.com> 13376 13377 Reviewed by Adam. 13378 13379 Stub for new DragClient method 13380 13381 * WebCoreSupport/DragClientQt.cpp: 13382 (WebCore::DragClientQt::dragSourceActionMaskForPoint): 13383 * WebCoreSupport/DragClientQt.h: 13384 133852007-01-29 Maciej Stachowiak <mjs@apple.com> 13386 13387 Reviewed by Mark. 13388 13389 - updated for cross-platform data loading support 13390 13391 * WebCoreSupport/FrameLoaderClientQt.cpp: 13392 (WebCore::FrameLoaderClientQt::createDocumentLoader): 13393 * WebCoreSupport/FrameLoaderClientQt.h: 13394 133952007-01-29 George Staikos <staikos@kde.org> 13396 13397 Make window resizing work. 13398 13399 * Api/qwebpage.cpp: 13400 (QWebPage::setWindowGeometry): 13401 * Api/qwebpage.h: 13402 * WebCoreSupport/ChromeClientQt.cpp: 13403 (WebCore::ChromeClientQt::setWindowRect): 13404 134052007-01-29 George Staikos <staikos@kde.org> 13406 13407 Make popup windows work. 13408 13409 * Api/qwebpage.cpp: 13410 (QWebPage::createWindow): 13411 * Api/qwebpage.h: 13412 * WebCoreSupport/ChromeClientQt.cpp: 13413 (WebCore::ChromeClientQt::createWindow): 13414 134152007-01-29 Lars Knoll <lars@trolltech.com> 13416 13417 Reviewed by Zack 13418 13419 Fix the way we handle native widgets (QWidget) inside 13420 WebCore. Now WebCore::Widget owns the QWidget in all 13421 cases. This is the only way to get well defined semantics 13422 for all teh native widgets we have (currently ScrollView 13423 and ScrollBar, but plugins will follow). 13424 13425 This has the side effect that one cannot rely on a defined 13426 lifetime of a QWebFrame when using the API. 13427 13428 * Api/qwebframe.cpp: 13429 (QWebFrame::~QWebFrame): 13430 * Api/qwebpage.cpp: 13431 (QWebPage::~QWebPage): 13432 * Api/qwebpage_p.h: 13433 * WebCoreSupport/FrameLoaderClientQt.cpp: 13434 (WebCore::FrameLoaderClientQt::detachedFromParent3): 13435 (WebCore::FrameLoaderClientQt::detachedFromParent4): 13436 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed): 13437 * WebCoreSupport/FrameLoaderClientQt.h: 13438 134392007-01-29 George Staikos <staikos@kde.org> 13440 13441 Reviewed by Zack. 13442 13443 Implement more functions 13444 13445 * Api/qwebpage.cpp: 13446 (QWebPage::javaScriptConsoleMessage): 13447 (QWebPage::statusTextChanged): 13448 (QWebPage::runJavaScriptAlert): 13449 * Api/qwebpage.h: 13450 * Api/qwebpagehistory.cpp: 13451 (QWebPageHistory::canGoBack): 13452 (QWebPageHistory::canGoForward): 13453 * Api/qwebpagehistory.h: 13454 * WebCoreSupport/ChromeClientQt.cpp: 13455 (WebCore::ChromeClientQt::addMessageToConsole): 13456 (WebCore::ChromeClientQt::runJavaScriptAlert): 13457 * WebCoreSupport/FrameLoaderClientQt.cpp: 13458 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem): 13459 134602007-01-26 George Staikos <staikos@kde.org> 13461 13462 Reviewed by Zack. 13463 13464 Qt implementation. 13465 13466 * Api/qwebframe.cpp: 13467 (QWebFrame::QWebFrame): 13468 (QWebFrame::title): 13469 (QWebFrame::selectedText): 13470 * Api/qwebframe.h: 13471 * Api/qwebframe_p.h: 13472 * Api/qwebpage.cpp: 13473 (QWebPage::createFrame): 13474 (QWebPage::open): 13475 (QWebPage::url): 13476 (QWebPage::title): 13477 (QWebPage::focusFrame): 13478 (QWebPage::stop): 13479 * Api/qwebpage.h: 13480 * WebCoreSupport/FrameLoaderClientQt.cpp: 13481 (WebCore::FrameLoaderClientQt::setFrame): 13482 (WebCore::FrameLoaderClientQt::detachFrameLoader): 13483 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle): 13484 (WebCore::FrameLoaderClientQt::didChangeTitle): 13485 (WebCore::FrameLoaderClientQt::setTitle): 13486 * WebCoreSupport/FrameLoaderClientQt.h: 13487 134882007-01-26 Lars Knoll <lars@trolltech.com> 13489 13490 Make it compile again with Qt 4.2 and add the copyright 13491 headers where forgotten in the last submit. 13492 13493 * Api/qwebpagehistory.cpp: 13494 * Api/qwebpagehistory.h: 13495 (QExplicitlySharedDataPointer::operator*): 13496 (QExplicitlySharedDataPointer::operator->): 13497 (QExplicitlySharedDataPointer::operator T *): 13498 (QExplicitlySharedDataPointer::operator const T *): 13499 (QExplicitlySharedDataPointer::data): 13500 (QExplicitlySharedDataPointer::constData): 13501 (QExplicitlySharedDataPointer::operator==): 13502 (QExplicitlySharedDataPointer::operator!=): 13503 (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer): 13504 (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer): 13505 (QExplicitlySharedDataPointer::operator=): 13506 (QExplicitlySharedDataPointer::operator!): 13507 (::QExplicitlySharedDataPointer): 13508 135092007-01-26 Zack Rusin <zrusin@trolltech.com> 13510 13511 Reviewed by Lars 13512 13513 Implement history support on platform Qt. 13514 13515 * Api/qwebpage.cpp: 13516 (QWebPage::history): 13517 (QWebPage::goBack): 13518 (QWebPage::goForward): 13519 (QWebPage::goToHistoryItem): 13520 * Api/qwebpage.h: 13521 * Api/qwebpagehistory.cpp: Added. 13522 (QWebHistoryItem::~QWebHistoryItem): 13523 (QWebHistoryItem::originalUrl): 13524 (QWebHistoryItem::currentUrl): 13525 (QWebHistoryItem::title): 13526 (QWebHistoryItem::lastVisited): 13527 (QWebHistoryItem::icon): 13528 (QWebHistoryItem::QWebHistoryItem): 13529 (QWebPageHistory::QWebPageHistory): 13530 (QWebPageHistory::itemAtIndex): 13531 (QWebPageHistory::~QWebPageHistory): 13532 (QWebPageHistory::items): 13533 (QWebPageHistory::backItems): 13534 (QWebPageHistory::forwardItems): 13535 (QWebPageHistory::goBack): 13536 (QWebPageHistory::goForward): 13537 (QWebPageHistory::goToItem): 13538 (QWebPageHistory::backItem): 13539 (QWebPageHistory::currentItem): 13540 (QWebPageHistory::forwardItem): 13541 * Api/qwebpagehistory.h: Added. 13542 * Api/qwebpagehistory_p.h: Added. 13543 (QWebHistoryItemPrivate::QWebHistoryItemPrivate): 13544 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate): 13545 (QWebPageHistoryPrivate::QWebPageHistoryPrivate): 13546 (QWebPageHistoryPrivate::~QWebPageHistoryPrivate): 13547 135482007-01-26 Lars Knoll <lars@trolltech.com> 13549 13550 Get rid of FrameQtClient. It's unused since we moved over 13551 to the loader. 13552 13553 * Api/qwebframe.cpp: 13554 (QWebFrame::QWebFrame): 13555 135562007-01-26 Zack Rusin <zack@kde.org> 13557 13558 Reviewed by Lars 13559 13560 Correctly position child frames within the 13561 toplevel frame. We were placed it on the widget 13562 itself instead of the vieweport. 13563 13564 * Api/qwebframe.cpp: 13565 (QWebFrame::QWebFrame): 13566 135672007-01-26 Lars Knoll <lars@trolltech.com> 13568 13569 Reviewed by Zack 13570 13571 Make sure we resize the HTML when resizing a 13572 QWebFrame. Also ensure that the render tree 13573 is up to date before dumping it. 13574 13575 * Api/qwebframe.cpp: 13576 (QWebFrame::innerText): 13577 (QWebFrame::renderTreeDump): 13578 (QWebFrame::resizeEvent): 13579 * Api/qwebframe.h: 13580 * Api/qwebpage.cpp: 13581 (QWebPagePrivate::createMainFrame): 13582 135832007-01-26 Zack Rusin <zack@kde.org> 13584 13585 Reviewed by Lars 13586 13587 Display pages inside a mainwindow instead 13588 of a custom qwidget. 13589 13590 * QtLauncher/main.cpp: 13591 (MainWindow::MainWindow): 13592 (main): 13593 135942007-01-25 Lars Knoll <lars@trolltech.com> 13595 13596 Reviewed by Zack 13597 13598 Emit the loadDone() signal from teh onload event callback 13599 again. This hangs on one or two test cases, but removes 13600 hundreds of failures elsewhere. 13601 13602 * WebCoreSupport/FrameLoaderClientQt.cpp: 13603 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 13604 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 13605 136062007-01-24 Lars Knoll <lars@trolltech.com> 13607 13608 Reviewed by Zack 13609 13610 Implement some bits and pieces required by the loader. 13611 Fixes quite a few crashes and hangs in the lyout tests 13612 13613 * Api/qwebframe.h: 13614 * WebCoreSupport/FrameLoaderClientQt.cpp: 13615 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 13616 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 13617 (WebCore::FrameLoaderClientQt::finishedLoading): 13618 (WebCore::FrameLoaderClientQt::setMainDocumentError): 13619 (WebCore::FrameLoaderClientQt::committedLoad): 13620 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading): 13621 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 13622 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 13623 (WebCore::FrameLoaderClientQt::createFrame): 13624 136252007-01-24 Lars Knoll <lars@trolltech.com> 13626 13627 Fix compilation again. 13628 13629 * WebCoreSupport/EditorClientQt.cpp: 13630 (WebCore::EditorClientQt::handleKeyPress): 13631 * WebCoreSupport/EditorClientQt.h: 13632 136332007-01-23 Lars Knoll <lars@trolltech.com> 13634 13635 Reviewed by Zack 13636 13637 Fix refcounting of FrameViews (they get created with a 13638 refcount of 1) and add a few safety checks to the 13639 FrameLoaderClientQt. 13640 13641 * Api/qwebframe.cpp: 13642 (QWebFrame::QWebFrame): 13643 (QWebFrame::~QWebFrame): 13644 * WebCoreSupport/FrameLoaderClientQt.cpp: 13645 (WebCore::FrameLoaderClientQt::detachedFromParent3): 13646 (WebCore::FrameLoaderClientQt::detachedFromParent4): 13647 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 13648 (WebCore::FrameLoaderClientQt::postProgressStartedNotification): 13649 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification): 13650 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): 13651 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed): 13652 (WebCore::FrameLoaderClientQt::windowObjectCleared): 13653 136542007-01-23 Zack Rusin <zack@kde.org> 13655 13656 Adjust the DragClientQt to latest changes. 13657 13658 * Api/qwebpage.cpp: 13659 (QWebPagePrivate::QWebPagePrivate): 13660 * WebCoreSupport/DragClientQt.cpp: 13661 (WebCore::DragClientQt::dragControllerDestroyed): 13662 * WebCoreSupport/DragClientQt.h: 13663 136642007-01-23 Zack Rusin <zack@kde.org> 13665 13666 Fix the Qt build 13667 13668 * WebCoreSupport/DragClientQt.cpp: 13669 (WebCore::DragClientQt::willPerformDragDestinationAction): 13670 * WebCoreSupport/DragClientQt.h: 13671 136722007-01-23 Lars Knoll <lars@trolltech.com> 13673 13674 Reviewed by Maciej 13675 13676 Add support for Frames to the Qt build and fix some issues 13677 in the API classes. 13678 13679 * Api/qwebframe.cpp: 13680 (QWebFrame::QWebFrame): 13681 (QWebFrame::~QWebFrame): 13682 * Api/qwebframe.h: 13683 * Api/qwebframe_p.h: 13684 * Api/qwebpage.cpp: 13685 (QWebPagePrivate::QWebPagePrivate): 13686 (QWebPagePrivate::createMainFrame): 13687 (QWebPage::createFrame): 13688 * Api/qwebpage.h: 13689 * WebCoreSupport/FrameLoaderClientQt.cpp: 13690 (WebCore::FrameLoaderClientQt::detachedFromParent3): 13691 (WebCore::FrameLoaderClientQt::detachedFromParent4): 13692 (WebCore::FrameLoaderClientQt::cancelPolicyCheck): 13693 (WebCore::FrameLoaderClientQt::windowObjectCleared): 13694 (WebCore::FrameLoaderClientQt::createFrame): 13695 (WebCore::FrameLoaderClientQt::objectContentType): 13696 (WebCore::FrameLoaderClientQt::createPlugin): 13697 (WebCore::FrameLoaderClientQt::redirectDataToPlugin): 13698 (WebCore::FrameLoaderClientQt::createJavaAppletWidget): 13699 (WebCore::FrameLoaderClientQt::overrideMediaType): 13700 * WebCoreSupport/FrameLoaderClientQt.h: 13701 137022007-01-23 Oliver Hunt <oliver@apple.com> 13703 13704 Reviewed by Adam. 13705 13706 Qt build stubs for Drop logic 13707 13708 * WebCoreSupport/DragClientQt.cpp: Added. 13709 (WebCore::DragClientQt::actionMaskForDrag): 13710 (WebCore::DragClientQt::willPerformDragDestinationAction): 13711 * WebCoreSupport/DragClientQt.h: Added. 13712 * WebKitPart/WebKitPart.cpp: 13713 (WebKitPart::initView): 13714 137152007-01-19 John Sullivan <sullivan@apple.com> 13716 13717 Added stubs for new callbacks, to try to avoid breaking the Qt port. 13718 13719 * WebCoreSupport/FrameLoaderClientQt.cpp: 13720 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): 13721 * WebCoreSupport/FrameLoaderClientQt.h: 13722 137232007-01-19 Anders Carlsson <acarlsson@apple.com> 13724 13725 Try fixing the QT build. 13726 13727 * WebCoreSupport/ChromeClientQt.cpp: 13728 (WebCore::ChromeClientQt::runJavaScriptAlert): 13729 (WebCore::ChromeClientQt::runJavaScriptConfirm): 13730 (WebCore::ChromeClientQt::runJavaScriptPrompt): 13731 (WebCore::ChromeClientQt::setStatusbarText): 13732 * WebCoreSupport/ChromeClientQt.h: 13733 137342007-01-18 Zack Rusin <zack@kde.org> 13735 13736 Reviewed by Lars. 13737 13738 Implementing a little bit of load progress tracking in the Qt port. 13739 13740 * Api/qwebframe.cpp: 13741 (QWebFrame::QWebFrame): 13742 (QWebFrame::page): 13743 * Api/qwebframe.h: 13744 * Api/qwebframe_p.h: 13745 (QWebFramePrivate::QWebFramePrivate): 13746 * Api/qwebpage.h: 13747 * QtLauncher/main.cpp: 13748 (main): 13749 * WebCoreSupport/FrameLoaderClientQt.cpp: 13750 (WebCore::FrameLoaderClientQt::setFrame): 13751 (WebCore::FrameLoaderClientQt::detachFrameLoader): 13752 (WebCore::FrameLoaderClientQt::postProgressStartedNotification): 13753 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification): 13754 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): 13755 * WebCoreSupport/FrameLoaderClientQt.h: 13756 137572007-01-17 Alice Liu <alice.liu@apple.com> 13758 13759 Added these stubs to keep the Qt build from failing. 13760 13761 * WebCoreSupport/EditorClientQt.cpp: 13762 (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard): 13763 * WebCoreSupport/EditorClientQt.h: 13764 137652007-01-17 Lars Knoll <lars@trolltech.com> 13766 13767 Reviewed by Zack 13768 13769 Remove the inheritance from Shared<XxxClient> in the 13770 client classes. 13771 13772 Answer asynchronously to most of the Policy checking methods 13773 in FrameLoaderClientQt to avoid some crashes in the loader. 13774 13775 * WebCoreSupport/ChromeClientQt.cpp: 13776 * WebCoreSupport/ChromeClientQt.h: 13777 * WebCoreSupport/ContextMenuClientQt.cpp: 13778 * WebCoreSupport/ContextMenuClientQt.h: 13779 * WebCoreSupport/EditorClientQt.cpp: 13780 * WebCoreSupport/EditorClientQt.h: 13781 * WebCoreSupport/FrameLoaderClientQt.cpp: 13782 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 13783 (WebCore::FrameLoaderClientQt::callPolicyFunction): 13784 (WebCore::FrameLoaderClientQt::slotCallPolicyFunction): 13785 (WebCore::FrameLoaderClientQt::cancelPolicyCheck): 13786 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): 13787 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 13788 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 13789 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 13790 * WebCoreSupport/FrameLoaderClientQt.h: 13791 137922007-01-17 Lars Knoll <lars@trolltech.com> 13793 13794 Reviewed by Zack 13795 13796 change all notImplemented() macros to use qDebug 13797 instead of fprintf(stder, ...) 13798 13799 * WebCoreSupport/ChromeClientQt.cpp: 13800 * WebCoreSupport/ContextMenuClientQt.cpp: 13801 * WebCoreSupport/EditorClientQt.cpp: 13802 * WebCoreSupport/FrameLoaderClientQt.cpp: 13803 138042007-01-16 Alice Liu <alice.liu@apple.com> 13805 13806 Added these stubs to keep the Qt build from failing. 13807 13808 * WebCoreSupport/EditorClientQt.cpp: 13809 (WebCore::EditorClientQt::didWriteSelectionToPasteboard): 13810 * WebCoreSupport/EditorClientQt.h: 13811 138122007-01-16 Lars Knoll <lars@trolltech.com> 13813 13814 Reviewed by Zack 13815 13816 Added the start of a public API to the Qt build 13817 of WebKit. Currently we have QWebPage and QWebFrame 13818 with a few small methods. 13819 13820 Converted the QtLauncher to use the new public API. 13821 13822 * Api/qwebframe.cpp: Added. 13823 (QWebFrame::QWebFrame): 13824 (QWebFrame::~QWebFrame): 13825 (QWebFrame::addToJSWindowObject): 13826 (QWebFrame::markup): 13827 (QWebFrame::innerText): 13828 (QWebFrame::renderTreeDump): 13829 * Api/qwebframe.h: Added. 13830 * Api/qwebframe_p.h: Added. 13831 (QWebFramePrivate::QWebFramePrivate): 13832 * Api/qwebpage.cpp: Added. 13833 (QWebPagePrivate::QWebPagePrivate): 13834 (QWebPagePrivate::~QWebPagePrivate): 13835 (QWebPagePrivate::createMainFrame): 13836 (QWebPage::QWebPage): 13837 (QWebPage::~QWebPage): 13838 (QWebPage::createFrame): 13839 (QWebPage::open): 13840 (QWebPage::mainFrame): 13841 (QWebPage::sizeHint): 13842 * Api/qwebpage.h: Added. 13843 * Api/qwebpage_p.h: Added. 13844 * QtLauncher/main.cpp: 13845 (main): 13846 * WebCoreSupport/ChromeClientQt.cpp: 13847 (WebCore::ChromeClientQt::ChromeClientQt): 13848 (WebCore::ChromeClientQt::setWindowRect): 13849 (WebCore::ChromeClientQt::windowRect): 13850 (WebCore::ChromeClientQt::pageRect): 13851 (WebCore::ChromeClientQt::focus): 13852 (WebCore::ChromeClientQt::unfocus): 13853 (WebCore::ChromeClientQt::canTakeFocus): 13854 (WebCore::ChromeClientQt::takeFocus): 13855 (WebCore::ChromeClientQt::createWindow): 13856 (WebCore::ChromeClientQt::createModalDialog): 13857 (WebCore::ChromeClientQt::show): 13858 (WebCore::ChromeClientQt::addMessageToConsole): 13859 (WebCore::ChromeClientQt::chromeDestroyed): 13860 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel): 13861 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel): 13862 (WebCore::ChromeClientQt::closeWindowSoon): 13863 * WebCoreSupport/ChromeClientQt.h: 13864 * WebCoreSupport/FrameLoaderClientQt.cpp: 13865 (WebCore::FrameLoaderClientQt::setFrame): 13866 (WebCore::FrameLoaderClientQt::detachFrameLoader): 13867 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 13868 (WebCore::FrameLoaderClientQt::partClearedInBegin): 13869 * WebCoreSupport/FrameLoaderClientQt.h: 13870 138712007-01-15 Anders Carlsson <acarlsson@apple.com> 13872 13873 Fix build. 13874 13875 * WebCoreSupport/FrameLoaderClientQt.cpp: 13876 (WebCore::FrameLoaderClientQt::postProgressStartedNotification): 13877 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification): 13878 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): 13879 * WebCoreSupport/FrameLoaderClientQt.h: 13880 138812007-01-13 Lars Knoll <lars@trolltech.com> 13882 13883 Compile again after yesterdays changes. 13884 13885 * WebCoreSupport/FrameLoaderClientQt.cpp: 13886 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest): 13887 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 13888 (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge): 13889 (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge): 13890 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): 13891 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength): 13892 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading): 13893 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 13894 (WebCore::FrameLoaderClientQt::incrementProgress): 13895 (WebCore::FrameLoaderClientQt::completeProgress): 13896 * WebCoreSupport/FrameLoaderClientQt.h: 13897 138982007-01-11 Brady Eidson <beidson@apple.com> 13899 13900 Keep the fancy new FrameLoaderClientQt building with a small api change in WebCore 13901 Yay for the loader on QT! 13902 13903 * WebCoreSupport/FrameLoaderClientQt.cpp: 13904 (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge): 13905 (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge): 13906 * WebCoreSupport/FrameLoaderClientQt.h: 13907 139082007-01-11 Lars Knoll <lars@trolltech.com> 13909 13910 Reviewed by Darin 13911 13912 Start using the loader in the Qt port. 13913 13914 * QtLauncher/main.cpp: 13915 (main): 13916 * WebCoreSupport/FrameLoaderClientQt.cpp: 13917 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 13918 (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt): 13919 (WebCore::FrameLoaderClientQt::setFrame): 13920 (WebCore::FrameLoaderClientQt::detachFrameLoader): 13921 (WebCore::FrameLoaderClientQt::makeDocumentView): 13922 (WebCore::FrameLoaderClientQt::makeRepresentation): 13923 (WebCore::FrameLoaderClientQt::setCopiesOnScroll): 13924 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad): 13925 (WebCore::FrameLoaderClientQt::cancelPolicyCheck): 13926 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): 13927 (WebCore::FrameLoaderClientQt::progressStarted): 13928 (WebCore::FrameLoaderClientQt::progressCompleted): 13929 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady): 13930 (WebCore::FrameLoaderClientQt::clearArchivedResources): 13931 (WebCore::FrameLoaderClientQt::canShowMIMEType): 13932 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme): 13933 (WebCore::FrameLoaderClientQt::provisionalLoadStarted): 13934 (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement): 13935 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed): 13936 (WebCore::FrameLoaderClientQt::canHandleRequest): 13937 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem): 13938 (WebCore::FrameLoaderClientQt::canCachePage): 13939 (WebCore::FrameLoaderClientQt::committedLoad): 13940 (WebCore::FrameLoaderClientQt::cancelledError): 13941 (WebCore::FrameLoaderClientQt::cannotShowURLError): 13942 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 13943 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError): 13944 (WebCore::FrameLoaderClientQt::fileDoesNotExistError): 13945 (WebCore::FrameLoaderClientQt::shouldFallBack): 13946 (WebCore::FrameLoaderClientQt::createDocumentLoader): 13947 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 13948 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): 13949 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 13950 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 13951 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 13952 (WebCore::FrameLoaderClientQt::willUseArchive): 13953 * WebCoreSupport/FrameLoaderClientQt.h: 13954 139552007-01-11 George Staikos <staikos@kde.org> 13956 13957 Fix Qt Build. 13958 13959 * WebCoreSupport/ContextMenuClientQt.cpp: 13960 (WebCore::ContextMenuClientQt::searchWithGoogle): 13961 * WebCoreSupport/ContextMenuClientQt.h: 13962 139632007-01-06 George Staikos <staikos@kde.org> 13964 13965 Reviewed by Brady. 13966 13967 Make it link. 13968 13969 * WebCoreSupport/FrameLoaderClientQt.cpp: 13970 (WebCore::FrameLoaderClientQt::setMainDocumentError): 13971 (WebCore::FrameLoaderClientQt::committedLoad): 13972 (WebCore::FrameLoaderClientQt::cancelledError): 13973 (WebCore::FrameLoaderClientQt::cannotShowURLError): 13974 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 13975 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError): 13976 (WebCore::FrameLoaderClientQt::fileDoesNotExistError): 13977 (WebCore::FrameLoaderClientQt::shouldFallBack): 13978 (WebCore::FrameLoaderClientQt::createDocumentLoader): 13979 (WebCore::FrameLoaderClientQt::download): 13980 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 13981 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): 13982 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength): 13983 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading): 13984 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 13985 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache): 13986 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): 13987 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad): 13988 (WebCore::FrameLoaderClientQt::dispatchCreatePage): 13989 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 13990 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 13991 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 13992 (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy): 13993 (WebCore::FrameLoaderClientQt::incrementProgress): 13994 (WebCore::FrameLoaderClientQt::completeProgress): 13995 (WebCore::FrameLoaderClientQt::startDownload): 13996 (WebCore::FrameLoaderClientQt::willUseArchive): 13997 * WebCoreSupport/FrameLoaderClientQt.h: 13998 139992007-01-05 Lars Knoll <lars@trolltech.com> 14000 14001 Make the Qt build compile again 14002 14003 * WebCoreSupport/ChromeClientQt.cpp: 14004 (WebCore::ChromeClientQt::canTakeFocus): 14005 (WebCore::ChromeClientQt::takeFocus): 14006 * WebCoreSupport/ChromeClientQt.h: 14007 * WebCoreSupport/ContextMenuClientQt.cpp: 14008 (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems): 14009 * WebCoreSupport/ContextMenuClientQt.h: 14010 140112007-01-03 Lars Knoll <lars@trolltech.com> 14012 14013 Fix the Qt build 14014 14015 * WebCoreSupport/FrameLoaderClientQt.cpp: 14016 (WebCore::FrameLoaderClientQt::setDocumentViewFromPageCache): 14017 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad): 14018 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload): 14019 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem): 14020 (WebCore::FrameLoaderClientQt::saveScrollPositionAndViewStateToItem): 14021 (WebCore::FrameLoaderClientQt::saveDocumentViewToPageCache): 14022 (WebCore::FrameLoaderClientQt::canCachePage): 14023 * WebCoreSupport/FrameLoaderClientQt.h: 14024 140252006-12-29 George Staikos <staikos@kde.org> 14026 14027 Add missing notimplemented. 14028 14029 * WebCoreSupport/FrameLoaderClientQt.cpp: 14030 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed): 14031 (WebCore::FrameLoaderClientQt::canHandleRequest): 14032 (WebCore::FrameLoaderClientQt::partClearedInBegin): 14033 140342006-12-21 Lars Knoll <lars@trolltech.com> 14035 14036 Reviewed by Zack 14037 14038 * WebCoreSupport/FrameLoaderClientQt.cpp: 14039 (WebCore::FrameLoaderClientQt::hasWebView): 14040 (WebCore::FrameLoaderClientQt::hasFrameView): 14041 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 14042 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout): 14043 (WebCore::FrameLoaderClientQt::setTitle): 14044 (WebCore::FrameLoaderClientQt::partClearedInBegin): 14045 * WebCoreSupport/FrameLoaderClientQt.h: 14046 Remove some runtimw warnings 14047 Add partClearedInBegin forwarding call, so 14048 I can catch this in the layout tests. 14049 140502006-12-19 Lars Knoll <lars@trolltech.com> 14051 14052 Reviewed by Rob. 14053 14054 * WebCoreSupport/ChromeClientQt.cpp: 14055 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel): 14056 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel): 14057 (WebCore::ChromeClientQt::closeWindowSoon): 14058 * WebCoreSupport/ChromeClientQt.h: 14059 Make it compile. 14060 140612006-12-16 Zack Rusin <zack@kde.org> 14062 14063 Adjust the client to the most recent interface. 14064 14065 * WebCoreSupport/ContextMenuClientQt.cpp: 14066 (WebCore::ContextMenuClientQt::contextMenuDestroyed): 14067 (WebCore::ContextMenuClientQt::addCustomContextMenuItems): 14068 (WebCore::ContextMenuClientQt::contextMenuItemSelected): 14069 (WebCore::ContextMenuClientQt::downloadURL): 14070 (WebCore::ContextMenuClientQt::copyImageToClipboard): 14071 (WebCore::ContextMenuClientQt::lookUpInDictionary): 14072 * WebCoreSupport/ContextMenuClientQt.h: 14073 140742006-12-14 Simon Hausmann <hausmann@kde.org> 14075 14076 Reviewed by Zack. 14077 14078 * QtLauncher/QtLauncher.pro: Link this little test program 14079 with rpath, for convenience. (This is never going to get installed 14080 anyway) 14081 140822006-12-12 George Staikos <staikos@kde.org> 14083 14084 Reviewed by Alexey. 14085 14086 Fix the Qt build again. 14087 14088 * WebCoreSupport/ContextMenuClientQt.cpp: 14089 (WebCore::ContextMenuClientQt::speak): 14090 (WebCore::ContextMenuClientQt::stopSpeaking): 14091 * WebCoreSupport/ContextMenuClientQt.h: 14092 * WebCoreSupport/EditorClientQt.cpp: 14093 (WebCore::EditorClientQt::toggleContinuousSpellChecking): 14094 (WebCore::EditorClientQt::toggleGrammarChecking): 14095 * WebCoreSupport/EditorClientQt.h: 14096 140972006-12-10 George Staikos <staikos@kde.org> 14098 14099 Reviewed by Zack. 14100 14101 Add a default user agent for now. 14102 14103 * WebCoreSupport/FrameLoaderClientQt.cpp: 14104 (WebCore::FrameLoaderClientQt::userAgent): 14105 141062006-12-10 Lars Knoll <lars@trolltech.com> 14107 14108 Reviewed by Zack 14109 14110 Comment out a notImplemented() warning 14111 14112 * WebCoreSupport/EditorClientQt.cpp: 14113 (WebCore::EditorClientQt::clearUndoRedoOperations): 14114 141152006-12-10 Zack Rusin <zack@kde.org> 14116 14117 Print out the method name if it's unimplemented. 14118 14119 * WebCoreSupport/FrameLoaderClientQt.cpp: 14120 141212006-12-10 Zack Rusin <zack@kde.org> 14122 14123 Moving the clients from platform to their final location. 14124 14125 * WebCoreSupport/FrameLoaderClientQt.cpp: Added. 14126 * WebCoreSupport/FrameLoaderClientQt.h: Added. 14127 * WebCoreSupport/ChromeClientQt.cpp: Added. 14128 * WebCoreSupport/ChromeClientQt.h: Added. 14129 * WebCoreSupport/ContextMenuClientQt.cpp: Added. 14130 * WebCoreSupport/ContextMenuClientQt.h: Added. 14131 * WebCoreSupport/EditorClientQt.cpp: Added. 14132 * WebCoreSupport/EditorClientQt.h: Added. 14133 141342006-12-10 Zack Rusin <zack@kde.org> 14135 14136 Adjusting to the changes in platform/qt. 14137 14138 * QtLauncher/main.cpp: 14139 (main): 14140 141412006-12-09 Lars Knoll <lars@trolltech.com> 14142 14143 Reviewed by Zack 14144 14145 Make it possible to build WebKit with qmake. 14146 14147 * QtLauncher/QtLauncher.pro: Added. 14148 * QtLauncher/main.cpp: 14149 141502006-12-08 Zack Rusin <zack@kde.org> 14151 14152 Reviewed by Maciej. 14153 14154 Fix the build after the recent changes. 14155 14156 * QtLauncher/main.cpp: 14157 (main): 14158 * WebKitPart/WebKitPart.cpp: 14159 (WebKitPart::initView): 14160 141612006-11-19 Simon Hausmann <hausmann@kde.org> 14162 14163 Reviewed by Zack. 14164 14165 http://bugs.webkit.org/show_bug.cgi?id=11649 14166 Fix Qt-only build 14167 14168 * QtLauncher/CMakeLists.txt: 14169 141702006-11-17 Zack Rusin <zack@kde.org> 14171 14172 Reviewed by Mitz. Landed by Niko. 14173 14174 Adjusting to the new api. 14175 14176 * QtLauncher/main.cpp: 14177 (main): 14178 * WebKitPart/WebKitPart.cpp: 14179 (WebKitPart::initView): 14180 141812006-11-10 Zack Rusin <zack@kde.org> 14182 14183 Reviewed and landed by Anders. 14184 14185 Adjusting to the recent loader changes, making it compile 14186 and work. 14187 14188 * QtLauncher/main.cpp: 14189 (main): 14190 * WebKitPart/WebKitPart.cpp: 14191 (WebKitPart::closeUrl): 14192 (WebKitPart::initView): 14193 141942006-11-03 Zack Rusin <zack@kde.org> 14195 14196 Reviewed by Maciej. 14197 14198 Fixing compile on both Qt and KDE platforms. 14199 14200 * QtLauncher/main.cpp: 14201 (main): url has already been defined 14202 * WebKitPart/WebKitPartBrowserExtension.cpp: removing 14203 duplicate implementation of this class 14204 142052006-10-31 Simon Hausmann <hausmann@kde.org> 14206 14207 Reviewed by Maciej, landed by Anders. 14208 14209 * QtLauncher/CMakeLists.txt: Make linkage against kde libraries 14210 optional 14211 * QtLauncher/main.cpp: Make it compile without KDE. 14212 (main): 14213 142142006-11-02 Simon Hausmann <hausmann@kde.org> 14215 14216 Reviewed by Maciej, landed by Anders. 14217 14218 * QtLauncher/main.cpp: 14219 (main): Declare our frame as main frame to the Page object. 14220 Fixes crashes on various web sites 14221 142222006-10-31 Zack Rusin <zack@kde.org> 14223 14224 Reviewed by Mitz. 14225 14226 Fix the Qt build after last nights changes. 14227 14228 * QtLauncher/CMakeLists.txt: 14229 * WebKitPart/CMakeLists.txt: 14230 142312006-10-26 Nikolas Zimmermann <zimmermann@kde.org> 14232 14233 Reviewed by Darin Adler. 14234 14235 Fix Qt/Linux build. 14236 14237 * QtLauncher/main.cpp: 14238 (main): 14239 * WebKitPart/WebKitPart.cpp: 14240 (WebKitPart::openUrl): 14241 142422006-10-24 Nikolas Zimmermann <zimmermann@kde.org> 14243 14244 Reviewed by Maciej. 14245 14246 Fix Qt/Linux build. 14247 14248 - Remove BrowserExtensionQt, move it's methods to Page/FrameQt. 14249 - Fix CMakeLists.txt to include platform/network. 14250 14251 * QtLauncher/CMakeLists.txt: 14252 * WebKitPart/CMakeLists.txt: 14253 142542006-10-24 Simon Hausmann <hausmann@kde.org> 14255 14256 Reviewed by Darin Adler. 14257 14258 * QtLauncher/CMakeLists.txt, WebKitPart/CMakeLists.txt: Added project name to 14259 kde4_automoc macro, as required by the latest KDE4 cmake module. 14260 142612006-10-20 Nikolas Zimmermann <zimmermann@kde.org> 14262 14263 Reviewed and landed by Anders. 14264 14265 Adapt to FrameQtClient changes, and provide some kind of status 14266 information to the KPart wheter we're loading or not (started/completed signaling). 14267 14268 * WebKitPart/CMakeLists.txt: 14269 * WebKitPart/WebKitPart.cpp: 14270 (WebKitPart::WebKitPart): 14271 (WebKitPart::~WebKitPart): 14272 (WebKitPart::openUrl): 14273 (WebKitPart::initView): 14274 * WebKitPart/WebKitPart.h: 14275 * WebKitPart/WebKitPartBrowserExtension.cpp: Added. 14276 (WebKitPartBrowserExtension::WebKitPartBrowserExtension): 14277 (WebKitPartBrowserExtension::~WebKitPartBrowserExtension): 14278 * WebKitPart/WebKitPartBrowserExtension.h: Added. 14279 * WebKitPart/WebKitPartClient.cpp: 14280 (WebKitPartClient::WebKitPartClient): 14281 (WebKitPartClient::loadFinished): 14282 * WebKitPart/WebKitPartClient.h: 14283 * WebKitPart/WebKitPartInterface.h: 14284 142852006-10-02 Nikolas Zimmermann <zimmermann@kde.org> 14286 14287 Reviewed by eseidel. Landed by eseidel. 14288 14289 Fix last remaining issue Qt/Linux build with gcc3. 14290 14291 * WebKitPart/WebKitPart.h: Remove Q_PROPERTY usage, which is not needed and made problems. 14292 142932006-09-10 Nikolas Zimmermann <zimmermann@kde.org> 14294 14295 Reviewed and landed by ap. 14296 14297 Fix QtLauncher - it is supposed to create a FrameView on its own nowadays. 14298 14299 * QtLauncher/main.cpp: 14300 (main): 14301 143022006-09-04 Nikolas Zimmermann <zimmermann@kde.org> 14303 14304 Reviewed by Tim H. 14305 14306 Fixes last part of: http://bugs.webkit.org/show_bug.cgi?id=10644 14307 Move QtLauncher down to WebKitQt. 14308 14309 * QtLauncher/CMakeLists.txt: Added. 14310 * QtLauncher/main.cpp: Added. 14311 (main): 14312 143132006-09-04 Nikolas Zimmermann <zimmermann@kde.org> 14314 14315 Reviewed by Darin Adler. Final polish by Sam. 14316 14317 Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10644 14318 Add WebKitPart, an embeddable KPart for the KDE platform. 14319 14320 * WebKitPart/CMakeLists.txt: Added. 14321 * WebKitPart/WebKitFactory.cpp: Added. 14322 (WebKitFactory::WebKitFactory): 14323 (WebKitFactory::~WebKitFactory): 14324 (WebKitFactory::createPartObject): 14325 (WebKitFactory::instance): 14326 (WebKitFactory::ref): 14327 (WebKitFactory::deref): 14328 (init_libWebKitPart): 14329 * WebKitPart/WebKitFactory.h: Added. 14330 * WebKitPart/WebKitPart.cpp: Added. 14331 (WebKitPart::WebKitPart): 14332 (WebKitPart::~WebKitPart): 14333 (WebKitPart::openFile): 14334 (WebKitPart::openUrl): 14335 (WebKitPart::closeUrl): 14336 (WebKitPart::parentPart): 14337 (WebKitPart::frame): 14338 (WebKitPart::initView): 14339 * WebKitPart/WebKitPart.desktop: Added. 14340 * WebKitPart/WebKitPart.h: Added. 14341 (WebKitPart::): 14342 * WebKitPart/WebKitPart.rc: Added. 14343 * WebKitPart/WebKitPartBrowser.rc: Added. 14344 * WebKitPart/WebKitPartClient.cpp: Added. 14345 (WebKitPartClient::WebKitPartClient): 14346 (WebKitPartClient::~WebKitPartClient): 14347 * WebKitPart/WebKitPartClient.h: Added. 14348 * WebKitPart/WebKitPartInterface.cpp: Added. 14349 (WebKitPartInterface::WebKitPartInterface): 14350 (WebKitPartInterface::~WebKitPartInterface): 14351 (WebKitPartInterface::url): 14352 (WebKitPartInterface::closeURL): 14353 * WebKitPart/WebKitPartInterface.h: Added. 14354 * WebKitPart/org.kde.WebKitPart.xml: Added. 14355 14356