1 2010-02-12 Diego Gonzalez <diego.gonzalez (a] openbossa.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 Qt DRT now dump the frame loader callbacks when LayoutTestController() 6 method is called. 7 8 LayoutTests: 9 http/tests/security/mixedContent/data-url-script-in-iframe.html 10 http/tests/security/mixedContent/empty-url-plugin-in-frame.html 11 http/tests/security/mixedContent/insecure-css-in-iframe.html 12 http/tests/security/mixedContent/insecure-iframe-in-iframe.html 13 http/tests/security/mixedContent/insecure-image-in-iframe.html 14 http/tests/security/mixedContent/insecure-plugin-in-iframe.html 15 http/tests/security/mixedContent/insecure-script-in-iframe.html 16 http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe.html 17 http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe.html 18 19 [Qt] Make possible Qt DRT dump frame load callbacks 20 https://bugs.webkit.org/show_bug.cgi?id=34702 21 22 * WebCoreSupport/FrameLoaderClientQt.cpp: 23 (WebCore::FrameLoaderClientQt::didDisplayInsecureContent): 24 (WebCore::FrameLoaderClientQt::didRunInsecureContent): 25 26 2010-02-10 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 27 28 Reviewed by Tor Arne Vestb. 29 30 [Qt] Make qtlauncher and qgvlauncher use the generated headers 31 path to make sure they are correctly generated. 32 33 * tests/tests.pri: 34 35 2010-02-10 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 36 37 Reviewed by Tor Arne Vestb. 38 39 [Qt] Ensure relative paths in generated .pri files to ensure that 40 a source package with pre-generated derived sources can be compiled. 41 42 - Re-add a separate headers.pri file for WEBKIT_API_HEADERS 43 - Rename the generated headers.pri to classheaders.pri to avoid 44 confusion with the one generated by synqt since they don't have the 45 same content. 46 - Remove private headers list variable from classheaders.pri 47 - Use $$PWD in classheaders.pri 48 - Remove classheaders.pri from the installed files 49 50 * Api/DerivedSources.pro: 51 52 2010-02-10 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 53 54 Reviewed by Tor Arne Vestb. 55 56 [Qt] Minor fixes on QtWebKit headers generation. 57 58 - Adds QtWebKit to the generated headers destination path 59 - Improve compatibility with MinGW 60 61 * Api/DerivedSources.pro: 62 63 2010-02-09 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 64 65 Reviewed by nobody, build fix. 66 67 [Qt] Fix standalone build with MinGW. 68 69 * tests/qwebelement/tst_qwebelement.cpp: 70 * tests/tests.pri: 71 72 2010-02-10 Diego Gonzalez <diego.gonzalez (a] openbossa.org> 73 74 Reviewed by Kenneth Rohde Christiansen. 75 76 Implement pageNumberForElementById() method in Qt DRT LayoutTestController, 77 to make Qt DRT able to get page number. 78 79 LayoutTests: 80 printing/page-break-always.html 81 printing/pageNumerForElementById.html 82 printing/css2.1/page-break-before-000.html 83 printing/css2.1/page-break-after-000.html 84 printing/css2.1/page-break-after-004.html 85 printing/css2.1/page-break-before-001.html 86 printing/css2.1/page-break-after-001.html 87 printing/css2.1/page-break-after-002.html 88 printing/css2.1/page-break-before-002.html 89 printing/css2.1/page-break-inside-000.html 90 91 [Qt] Make possible Qt DRT get a page number for element by ID 92 https://bugs.webkit.org/show_bug.cgi?id=34777 93 94 * Api/qwebframe.cpp: 95 (qt_drt_pageNumberForElementById): 96 97 2010-02-09 Yael Aharon <yael.aharon (a] nokia.com> 98 99 Reviewed by Adam Barth. 100 101 [Qt] Unit test for window.runModalDialog 102 https://bugs.webkit.org/show_bug.cgi?id=34755 103 104 * tests/qwebpage/tst_qwebpage.cpp: 105 (TestModalPage::TestModalPage): 106 (TestModalPage::createWindow): 107 (tst_QWebPage::showModalDialog): 108 109 2010-02-09 Andreas Kling <andreas.kling (a] nokia.com> 110 111 Reviewed by Kenneth Rohde Christiansen. 112 113 [Qt] Sync with API changes in Maemo 5 kinetic scrolling 114 115 https://bugs.webkit.org/show_bug.cgi?id=34747 116 117 This is a forward-port of http://qt.gitorious.org/+qt-developers/qt/x11-maemo/commit/08497561 118 119 * Api/qwebview.cpp: 120 (qt_sendSpontaneousEvent): 121 (QWebViewKineticScroller::QWebViewKineticScroller): 122 (QWebViewKineticScroller::setWidget): 123 (QWebViewKineticScroller::eventFilter): 124 (QWebViewKineticScroller::cancelLeftMouseButtonPress): 125 (QWebViewKineticScroller::currentFrame): 126 (QWebViewKineticScroller::scrollingFrameAt): 127 (QWebViewKineticScroller::maximumScrollPosition): 128 (QWebViewKineticScroller::scrollPosition): 129 (QWebViewKineticScroller::viewportSize): 130 (QWebViewKineticScroller::setScrollPosition): 131 (QWebViewKineticScroller::sendEvent): 132 (QWebView::QWebView): 133 134 2010-02-09 Yael Aharon <yael.aharon (a] nokia.com> 135 136 Reviewed by Kenneth Rohde Christiansen. 137 138 [Qt] Webkit in Qt does not have window.showModalDialog 139 https://bugs.webkit.org/show_bug.cgi?id=25585 140 141 Create a new eventloop when runModal() is called. 142 Added comemnt in QWebPage::createWindow that the application is responsible 143 for setting the modality of the appropriate window. 144 145 * Api/qwebpage.cpp: 146 * WebCoreSupport/ChromeClientQt.cpp: 147 (WebCore::ChromeClientQt::ChromeClientQt): 148 (WebCore::ChromeClientQt::~ChromeClientQt): 149 (WebCore::ChromeClientQt::canRunModal): 150 (WebCore::ChromeClientQt::runModal): 151 * WebCoreSupport/ChromeClientQt.h: 152 153 2010-01-19 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 154 155 Reviewed by Dave Hyatt. 156 157 Implement flattening of framesets 158 https://bugs.webkit.org/show_bug.cgi?id=32717 159 160 Privately export the setFrameSetFlatteningEnabled setting for 161 use with the Qt DRT. 162 163 * Api/qwebpage.cpp: 164 (qt_drt_setFrameSetFlatteningEnabled): 165 (QWebPagePrivate::core): 166 * Api/qwebpage_p.h: 167 168 2010-02-05 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 169 170 [Qt] Fix build on Windows 171 172 Reviewed by Kenneth Rohde Christiansen. 173 174 DerivedSources for our API headers failed on Windows, 175 due to Windows not accepting ; as a command separator, 176 not needing quotes for echo, and needing < and > escaped. 177 178 We now detect Windows and set these quote markers and 179 escape markers accordingly, as well as use && for separating 180 individual commands. 181 182 * Api/DerivedSources.pro: 183 184 2010-02-05 Yury Semikhatsky <yurys (a] chromium.org> 185 186 Reviewed by Pavel Feldman. 187 188 Remove unused inmport of ScriptFunctionCall.h 189 190 https://bugs.webkit.org/show_bug.cgi?id=33592 191 192 * Api/qwebelement.cpp: 193 194 2010-02-05 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 195 196 Reviewed by Simon Hausmann. 197 198 [Qt] Generate convenience headers (QWebView, etc) using qmake 199 200 In Qt this is done using syncqt, but we use a pro-file instead 201 that generates makefile-rules for each of the extra headers. 202 203 These extra headers are installed alongside the normal headers. 204 205 * Api/DerivedSources.pro: Added. List of headers + pro file magic 206 * Api/headers.pri: Removed, list of headers is now in the above file 207 208 2010-02-04 No'am Rosenthal <noam.rosenthal (a] nokia.com> 209 210 Reviewed by Ariya Hidayat. 211 212 [Qt] Tuning and optimizations to GraphicsLayerQt. Mainly reduced usage 213 of QTimer::singleShot, and moved syncLayers() from paint() to update() 214 https://bugs.webkit.org/show_bug.cgi?id=34062 215 216 * Api/qgraphicswebview.cpp: 217 (QGraphicsWebViewPrivate::update): Moved the sync operation to update 218 (QGraphicsWebView::paint): Moved the sync operation to update 219 220 2010-02-03 Andras Becsi <abecsi (a] webkit.org> 221 222 Unreviewed build fix. 223 224 [Qt] Roll-out r54281 because it broke the build on the Qt Release bot. 225 226 * Api/qgraphicswebview.cpp: 227 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate): 228 (QGraphicsWebViewPrivate::markForSync): 229 (QGraphicsWebViewPrivate::update): 230 (QGraphicsWebView::paint): 231 232 2010-02-02 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 233 234 Reviewed by Ariya Hidayat. 235 236 Do not use a proxy widget for the QComboBox on Maemo 5, as it 237 is not working properly and it is not needed at all, as the 238 comboboxes comes up in their full width on the screen and 239 do not depend on view. 240 241 * WebCoreSupport/QtFallbackWebPopup.cpp: 242 (WebCore::QtFallbackWebPopup::show): 243 244 2010-02-02 Jessie Berlin <jberlin (a] webkit.org> 245 246 Rubber Stamped by Holger Freyther. 247 248 [Qt] Fix style issue identified in bug: 249 https://bugs.webkit.org/show_bug.cgi?id=34329 250 251 * WebCoreSupport/InspectorClientQt.cpp: 252 (WebCore::InspectorClientWebPage::InspectorClientWebPage): 253 Fix indentation. 254 255 2010-02-01 Jessie Berlin <jberlin (a] webkit.org> 256 257 Reviewed by Holger Freyther. 258 259 [Qt] Enable inspecting the Web Inspector in QtLauncher 260 261 https://bugs.webkit.org/show_bug.cgi?id=34329 262 263 * WebCoreSupport/InspectorClientQt.cpp: 264 (WebCore::InspectorClientWebPage::InspectorClientWebPage): 265 Allow the DeveloperExtrasEnabled setting to default to true for the page containing the Web Inspector. 266 267 2010-02-02 Andreas Kling <andreas.kling (a] nokia.com> 268 269 Reviewed by Kenneth Rohde Christiansen. 270 271 [Qt] Display HTML tags verbatim in JS alert/confirm/prompt boxes 272 273 https://bugs.webkit.org/show_bug.cgi?id=34429 274 275 * Api/qwebpage.cpp: 276 (QWebPage::javaScriptAlert): 277 (QWebPage::javaScriptConfirm): 278 (QWebPage::javaScriptPrompt): 279 280 2010-02-02 Noam Rosenthal <noam.rosenthal (a] nokia.com> 281 282 Reviewed by Kenneth Rohde Christiansen. 283 284 [Qt] Enable a way to measure FPS in QGVLauncher 285 run QGVLauncher with --show-fps to see ongoing fps measurements 286 This is not meant as accurate FPS, but rather as a way to find 287 improvements/regressions 288 https://bugs.webkit.org/show_bug.cgi?id=34450 289 290 * QGVLauncher/main.cpp: 291 (MainView::MainView): initialize FPS values 292 (MainView::paintEvent): count a painted frame here 293 (MainView::printFps): we print the fps with qDebug every 5 seconds. 294 295 2010-01-29 Ben Murdoch <benm (a] google.com> 296 297 Reviewed by Dimitri Glazkov. 298 299 [Android] Android needs functionality in the ChromeClient to be informed when touch events are and are not needed by the webpage. 300 https://bugs.webkit.org/show_bug.cgi?id=34215 301 302 Add needTouchEvents() to the ChromeClient which is called when the page decides it needs or no longer needs to be informed of touch events. 303 304 * WebCoreSupport/ChromeClientQt.h: 305 (WebCore::ChromeClientQt::needTouchEvents): Add an empty implementation. 306 307 2010-01-29 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 308 309 Reviewed by Simon Hausmann 310 311 Disable auto-uppercase and predictive text on Maemo5, just like the 312 build-in MicroB Browser. 313 314 * WebCoreSupport/EditorClientQt.cpp: 315 (WebCore::EditorClientQt::setInputMethodState): 316 317 2010-01-28 Andreas Kling <andreas.kling (a] nokia.com> 318 319 Reviewed by Kenneth Rohde Christiansen. 320 321 [Qt] Support kinetic scrolling on Maemo 5 322 323 https://bugs.webkit.org/show_bug.cgi?id=34267 324 325 Patch by Ralf Engels <ralf.engels (a] nokia.com> and 326 Robert Griebl <rgriebl (a] trolltech.com> 327 328 * Api/qwebview.cpp: 329 (QWebViewKineticScroller::QWebViewKineticScroller): 330 (QWebViewKineticScroller::eventFilter): 331 (QWebViewKineticScroller::currentFrame): 332 (QWebViewKineticScroller::scrollingFrameAt): 333 (QWebViewKineticScroller::attachToWidget): 334 (QWebViewKineticScroller::removeFromWidget): 335 (QWebViewKineticScroller::positionRange): 336 (QWebViewKineticScroller::position): 337 (QWebViewKineticScroller::viewportSize): 338 (QWebViewKineticScroller::setPosition): 339 (QWebView::QWebView): 340 341 2010-01-28 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 342 343 Reviewed by Simon Hausmann. 344 345 Do not set the combobox font on Maemo5 and S60; use the 346 default instead. 347 348 * WebCoreSupport/QtFallbackWebPopup.cpp: 349 (WebCore::QtFallbackWebPopup::populate): 350 351 2010-01-28 Trond Kjernsen <trond (a] trolltech.com> 352 353 Reviewed by Simon Hausmann. 354 355 [Qt] Fix for endless print loop when printing web pages 356 357 * Api/qwebframe.cpp: 358 (QWebFrame::print): 359 360 2010-01-27 Diego Gonzalez <diego.gonzalez (a] openbossa.org> 361 362 Reviewed by Kenneth Rohde Christiansen. 363 364 [Qt] DRT Provide worker thread ability to track counters 365 https://bugs.webkit.org/show_bug.cgi?id=34221 366 367 Implement workerThreadCount() in LayoutTestController of Qt DRT 368 369 Tests: 370 fast/workers/dedicated-worker-lifecycle.html 371 fast/workers/shared-worker-frame-lifecycle.html 372 fast/workers/shared-worker-lifecycle.html 373 fast/workers/worker-lifecycle.html 374 375 * Api/qwebpage.cpp: 376 (qt_drt_workerThreadCount): 377 378 2010-01-27 Simon Hausmann <simon.hausmann (a] nokia.com> 379 380 Reviewed by Laszlo Gombos. 381 382 [Qt] Update the .def files with exported symbols 383 384 * symbian/eabi/QtWebKitu.def: Add two mangled missing new symbols for arm eabi. 385 386 2010-01-27 Kent Hansen <kent.hansen (a] nokia.com> 387 388 Reviewed by Simon Hausmann. 389 390 [Qt] Meta-methods can't be introspected using ES5 API 391 https://bugs.webkit.org/show_bug.cgi?id=34087 392 393 Test that Object.getOwnPropertyDescriptor and 394 Object.getOwnPropertyNames work with meta-methods. 395 396 * tests/qwebframe/tst_qwebframe.cpp: 397 398 2010-01-26 Simon Hausmann <simon.hausmann (a] nokia.com> 399 400 Reviewed by Kenneth Rohde Christiansen. 401 402 [Qt] Show comboboxes on Maemo 5 403 https://bugs.webkit.org/show_bug.cgi?id=34088 404 405 Don't try to show the combobox by simulating a mouse event from QCursor::pos() to 406 get the combobox position right. The position on Maemo 5 is independent from the mouse 407 and there's no QCursor::pos(). 408 409 * WebCoreSupport/QtFallbackWebPopup.cpp: 410 (WebCore::QtFallbackWebPopup::show): 411 412 2010-01-26 Jedrzej Nowacki <jedrzej.nowacki (a] nokia.com> 413 414 Reviewed by Simon Hausmann. 415 416 First steps of the QtScript API. 417 418 Two new classes were created; QScriptEngine and QScriptValue. 419 The first should encapsulate a javascript context and the second a script 420 value. 421 422 This API is still in development, so it isn't compiled by default. 423 To trigger compilation, pass --qmakearg="CONFIG+=build-qtscript" to 424 build-webkit. 425 426 https://bugs.webkit.org/show_bug.cgi?id=32565 427 428 * docs/qtwebkit.qdocconf: 429 430 2010-01-26 Holger Hans Peter Freyther <zecke (a] selfish.org> 431 432 Reviewed by Simon Hausmann. 433 434 [Qt] JavaScript prompt is currently broken 435 https://bugs.webkit.org/show_bug.cgi?id=30914 436 437 In r52152 a patch was landed to convert a null QString 438 to an empty WebCore::String in case the prompt was accepted 439 but the default implementation returned the null QString. 440 441 The patch tried to avoid assign to result twice and 442 was not checking the QString if it is null but the default 443 value. This lead to always returning an empty string on 444 successful prompts. Fix it by checking the variable 'x' 445 for isNull. 446 447 The manual test case used didn't cover the case of non 448 empty input, replace it with an automatic test case that 449 should cover all cases. 450 451 * WebCoreSupport/ChromeClientQt.cpp: 452 (WebCore::ChromeClientQt::runJavaScriptPrompt): Fix the bug. 453 * tests/qwebpage/tst_qwebpage.cpp: Add automatic test case 454 (JSPromptPage::JSPromptPage): 455 (JSPromptPage::javaScriptPrompt): 456 (tst_QWebPage::testJSPrompt): 457 458 2010-01-25 Simon Hausmann <hausmann (a] webkit.org> 459 460 Reviewed by Kenneth Rohde Christiansen. 461 462 [Qt] In RenderThemeQt determine the QStyle from the page client instead of the page's view 463 https://bugs.webkit.org/show_bug.cgi?id=34053 464 465 * Api/qgraphicswebview.cpp: 466 (QGraphicsWebViewPrivate::style): Implement QWebPageClient::style() and return the graphics 467 widget's style. 468 * Api/qwebpage.cpp: 469 (QWebPageWidgetClient::style): Implement QWebPageClient::style() and return the widget's style. 470 471 2010-01-25 Janne Koskinen <janne.p.koskinen (a] digia.com> 472 473 Reviewed by Simon Hausmann. 474 475 [Qt] Phone backup support for QtWebkit for Symbian devices. 476 https://bugs.webkit.org/show_bug.cgi?id=34077 477 478 * symbian/backup_registration.xml: Added. 479 480 2010-01-23 Girish Ramakrishnan <girish (a] forwardbias.in> 481 482 Reviewed by Kenneth Rohde Christiansen. 483 484 [Qt] Fix positioning of ComboBox popup in QGraphicsWebView. 485 486 Wrap the popup in a QGraphicsProxyWidget, so that the popup 487 transforms with the item. 488 489 https://bugs.webkit.org/show_bug.cgi?id=33887 490 491 * WebCoreSupport/QtFallbackWebPopup.cpp: 492 (WebCore::QtFallbackWebPopupCombo::hidePopup): 493 (WebCore::QtFallbackWebPopup::QtFallbackWebPopup): 494 (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup): 495 (WebCore::QtFallbackWebPopup::show): 496 * WebCoreSupport/QtFallbackWebPopup.h: 497 498 2010-01-22 Peter Kasting <pkasting (a] google.com> 499 500 Not reviewed, backout. 501 502 Back out r52673, which caused several regressions. 503 https://bugs.webkit.org/show_bug.cgi?id=32533 504 505 * WebCoreSupport/QtFallbackWebPopup.cpp: 506 (WebCore::QtFallbackWebPopupCombo::hidePopup): 507 508 2010-01-22 Girish Ramakrishnan <girish (a] forwardbias.in> 509 510 Reviewed by Simon Hausmann. 511 512 [Qt] Save the QWebPageClient instead of the ownerWidget in QtAbstractWebPopup 513 514 The QWebPageClient is required for the QtFallbackWebPopup. QtFallbackWebPopup will 515 need it to create a QGraphicsProxyWidget (in a future commit) for the 516 QGraphicsWebView's web popup. 517 518 * WebCoreSupport/QtFallbackWebPopup.cpp: 519 (WebCore::QtFallbackWebPopup::show): 520 521 2010-01-22 Girish Ramakrishnan <girish (a] forwardbias.in> 522 523 Reviewed by Kenneth Rohde Christiansen. 524 525 QState::polished() was renamed to QState::propertiesAssigned() when 526 Qt 4.6.0 was released. 527 528 * QGVLauncher/main.cpp: 529 (MainWindow::init): 530 531 2010-01-21 Diego Gonzalez <diego.gonzalez (a] openbossa.org> 532 533 Reviewed by Kenneth Rohde Christiansen. 534 535 [Qt] add setDomainRelaxationForbiddenForURLScheme in Qt DRT 536 https://bugs.webkit.org/show_bug.cgi?id=33945 537 538 * Api/qwebsecurityorigin.cpp: 539 (qt_drt_setDomainRelaxationForbiddenForURLScheme): 540 541 2010-01-21 No'am Rosenthal <noam.rosenthal (a] nokia.com> 542 543 Reviewed by Antti Koivisto. 544 545 [Qt] Implement GraphicsLayer for accelerated layer compositing 546 https://bugs.webkit.org/show_bug.cgi?id=33514 547 548 Here we have the QGraphicsWebView support for accelerated compositing 549 550 * Api/qgraphicswebview.cpp: 551 (QGraphicsWebViewOverlay::q): access to container object 552 (QGraphicsWebViewOverlay::boundingRect): overlay has same rect as the 553 webview 554 (QGraphicsWebViewOverlay::paint): paint everything but the contents 555 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate): some vars needed 556 for accelerated compositing 557 (QGraphicsWebViewPrivate::): 558 (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): 559 (QGraphicsWebViewPrivate::setRootGraphicsLayer): make sure we have a 560 scrollbar overlay, and that the new graphics layer is parented by the 561 web-view 562 (QGraphicsWebViewPrivate::markForSync): flush changes at earliest 563 convenience or during the next draw 564 565 (QGraphicsWebViewPrivate::updateCompositingScrollPosition): sync the 566 position of the compositing layer with the scroll position 567 (QGraphicsWebViewPrivate::syncLayers): flush changes now 568 (QGraphicsWebViewPrivate::scroll): make sure we also move the 569 compositing layer 570 (QGraphicsWebViewPrivate::update): also update the overlay if needed 571 (QGraphicsWebView::QGraphicsWebView): initialize overlay with 0 572 (QGraphicsWebView::paint): paint only contents if we have an overlay, 573 sync the compositing layers now if needed 574 (QGraphicsWebView::setPage): also clean up the compositing 575 (QGraphicsWebView::updateGeometry): also update overlay geo 576 (QGraphicsWebView::setGeometry): also update overlay geo 577 * Api/qgraphicswebview.h: reimp compositing stuff from QWebPageClient 578 * Api/qwebsettings.cpp: init new settings flag for compositing as 579 false 580 (QWebSettingsPrivate::apply): apply new settings flag for compositing 581 (QWebSettings::QWebSettings): 582 * Api/qwebsettings.h: new settings flag for compositing 583 * Api/qwebview.cpp: 584 (QWebView::setPage): qwebview doesn't support compositing: always false 585 * QGVLauncher/main.cpp: 586 (WebView::WebView): some more cmdline arguments + compositing 587 (MainWindow::init): some more cmdline arguments 588 (main): ditto 589 * WebCoreSupport/ChromeClientQt.cpp: 590 (WebCore::ChromeClientQt::attachRootGraphicsLayer): reimp for 591 accel-compositing 592 (WebCore::ChromeClientQt::setNeedsOneShotDrawingSynchronization): 593 reimp for accel compositing 594 (WebCore::ChromeClientQt::scheduleCompositingLayerSync): reimp for 595 accel compositing 596 * WebCoreSupport/ChromeClientQt.h: reimps for accel compositing 597 598 2010-01-21 Benjamin Poulain <benjamin.poulain (a] nokia.com> 599 600 Reviewed by Simon Hausmann. 601 602 [Qt] Improve the autotests of QtWebkit 603 https://bugs.webkit.org/show_bug.cgi?id=32216 604 605 Remove qWait() of the test when possible. 606 607 * tests/qwebpage/tst_qwebpage.cpp: 608 (tst_QWebPage::loadFinished): 609 (tst_QWebPage::database): 610 (tst_QWebPage::testEnablePersistentStorage): 611 (tst_QWebPage::errorPageExtension): 612 (tst_QWebPage::screenshot): 613 614 2010-01-21 Simon Hausmann <simon.hausmann (a] nokia.com> 615 616 Prospective build fix for the Qt build. 617 618 Fix compilation against Qt without WebKit support by not including QtWebKit/QWebView 619 but widget.h instead and instantiating QWebView through a typedef, to ensure we're using 620 our locally built WebKit. 621 622 * tests/hybridPixmap/widget.h: 623 * tests/hybridPixmap/widget.ui: 624 625 2010-01-21 No'am Rosenthal <noam.rosenthal (a] nokia.com> 626 627 Reviewed by Simon Hausmann. 628 629 [Qt] Adding QPixmap/QImage support for the Qt hybrid layer 630 https://bugs.webkit.org/show_bug.cgi?id=32461 631 632 * tests/hybridPixmap: Added. 633 * tests/hybridPixmap/hybridPixmap.pro: Added. 634 * tests/hybridPixmap/resources.qrc: Added. 635 * tests/hybridPixmap/test.html: Added. 636 * tests/hybridPixmap/tst_hybridPixmap.cpp: Added. 637 (tst_hybridPixmap::tst_hybridPixmap): tests most of the use cases for 638 hybrid pixmap/image manipulation 639 (tst_hybridPixmap::init): QTestLib initialization 640 (tst_hybridPixmap::cleanup): QTestLib cleanup 641 (tst_hybridPixmap::hybridPixmap): run the html file 642 * tests/hybridPixmap/widget.cpp: Added. 643 (Widget::Widget): 644 (Widget::refreshJS): 645 (Widget::start): 646 (Widget::completeTest): 647 (Widget::setPixmap): 648 (Widget::pixmap): 649 (Widget::setImage): 650 (Widget::image): 651 (Widget::~Widget): 652 (Widget::changeEvent): 653 (Widget::compare): 654 (Widget::imageSlot): 655 (Widget::pixmapSlot): 656 (Widget::randomSlot): 657 * tests/hybridPixmap/widget.h: Added. 658 * tests/hybridPixmap/widget.ui: Added. 659 * tests/tests.pro: 660 661 2010-01-21 Luiz Agostini <luiz.agostini (a] openbossa.org> 662 663 Reviewed by Kenneth Rohde Christiansen. 664 665 [Qt] Custom select popups. 666 https://bugs.webkit.org/show_bug.cgi?id=33418 667 668 Adjusting QtFallbackWebPopupCombo to the changes in WebCore layer. 669 670 * WebCoreSupport/ChromeClientQt.cpp: 671 (WebCore::ChromeClientQt::createSelectPopup): 672 * WebCoreSupport/ChromeClientQt.h: 673 * WebCoreSupport/QtFallbackWebPopup.cpp: 674 (WebCore::QtFallbackWebPopupCombo::QtFallbackWebPopupCombo): 675 (WebCore::QtFallbackWebPopupCombo::showPopup): 676 (WebCore::QtFallbackWebPopupCombo::hidePopup): 677 (WebCore::QtFallbackWebPopup::QtFallbackWebPopup): 678 (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup): 679 (WebCore::QtFallbackWebPopup::show): 680 (WebCore::QtFallbackWebPopup::hide): 681 (WebCore::QtFallbackWebPopup::populate): 682 * WebCoreSupport/QtFallbackWebPopup.h: 683 684 2010-01-19 Steve Block <steveblock (a] google.com> 685 686 Reviewed by Adam Barth. 687 688 Renames WebCore/bridge/runtime.[cpp|h] to WebCore/bridge/Bridge.[cpp|h] 689 https://bugs.webkit.org/show_bug.cgi?id=33801 690 691 * Api/qwebframe.cpp: 692 693 2010-01-14 Brian Weinstein <bweinstein (a] apple.com> 694 695 Reviewed by Adam Roben. 696 697 Drag and Drop source/destination code needs cleanup. 698 <https://bugs.webkit.org/show_bug.cgi?id=33691>. 699 700 Update to new way of calling sourceOperation. 701 702 * WebCoreSupport/DragClientQt.cpp: 703 (WebCore::DragClientQt::startDrag): 704 705 2010-01-14 Simon Hausmann <simon.hausmann (a] nokia.com> 706 707 Reviewed by Tor Arne Vestb. 708 709 [Qt] Symbian build fixes. 710 711 * tests/qwebpage/tst_qwebpage.cpp: Include util.h 712 * tests/tests.pri: Don't define TESTS_SOURCE_DIR, it doesn't work. 713 * tests/util.h: Define TESTS_SOURCE_DIR here, just like it's done in Qt. 714 715 2010-01-14 Simon Hausmann <simon.hausmann (a] nokia.com> 716 717 Reviewed by Kenneth Rohde Christiansen. 718 719 [Qt] Update Symbian .def symbol export files after private API additions. 720 721 * symbian/bwins/QtWebKitu.def: 722 * symbian/eabi/QtWebKitu.def: 723 724 2010-01-13 Darin Adler <darin (a] apple.com> 725 726 Reviewed by Dan Bernstein. 727 728 Move more of the selection and caret painting code from Frame to SelectionController. 729 https://bugs.webkit.org/show_bug.cgi?id=33619 730 731 * Api/qwebpage.cpp: 732 (QWebPagePrivate::inputMethodEvent): Seems possibly wrong to be directly invoking this 733 setCaretVisible here, but I updated it to call it in its new location. 734 735 2010-01-11 Simon Hausmann <simon.hausmann (a] nokia.com> 736 737 Reviewed by Holger Freyther. 738 739 [Qt] Add private API for QWebFrame scrolling, to maintain binary compatibility with Qt 4.6. 740 741 This is just a temporary addition until we have introduced #ifdefs to allow 742 safely removing the private API again. 743 744 * Api/qwebframe.cpp: 745 (qtwebkit_webframe_scrollRecursively): 746 747 2010-01-10 Robert Hogan <robert (a] roberthogan.net> 748 749 Reviewed by Adam Barth. 750 751 [Qt] Add enableXSSAuditor support to QWebSettings and DRT. 752 753 https://bugs.webkit.org/show_bug.cgi?id=33419 754 755 * Api/qwebsettings.cpp: 756 (QWebSettingsPrivate::apply): 757 * Api/qwebsettings.h: 758 759 2010-01-09 Daniel Bates <dbates (a] webkit.org> 760 761 No review, rolling out r53044. 762 http://trac.webkit.org/changeset/53044 763 https://bugs.webkit.org/show_bug.cgi?id=33419 764 765 We need to look into this some more because the Qt 766 bot is failing the XSSAuditor tests. See bug #33419 767 for more details. 768 769 * Api/qwebsettings.cpp: 770 * Api/qwebsettings.h: 771 772 2010-01-09 Daniel Bates <dbates (a] webkit.org> 773 774 Reviewed by Adam Barth. 775 776 https://bugs.webkit.org/show_bug.cgi?id=33419 777 778 Adds support for the XSSAuditor to the Qt DRT. 779 780 * Api/qwebsettings.cpp: Updated comment to reflect added key XSSAuditorEnabled. 781 * Api/qwebsettings.h: Adds settings key XSSAuditorEnabled. 782 783 2010-01-08 Luiz Agostini <luiz.agostini (a] openbossa.org> 784 785 Reviewed by Kenneth Rohde Christiansen. 786 787 [Qt] Delegation client 788 https://bugs.webkit.org/show_bug.cgi?id=32826 789 790 Added method createPopup to ChromeClientQt used to create popups. 791 QtFallbackWebPopup moved from WebCore/platform/qt to 792 WebKit/qt/WebCoreSupport. 793 794 * WebCoreSupport/ChromeClientQt.cpp: 795 (WebCore::ChromeClientQt::createPopup): 796 * WebCoreSupport/ChromeClientQt.h: 797 * WebCoreSupport/QtFallbackWebPopup.cpp: Added. 798 (WebCore::QtFallbackWebPopup::QtFallbackWebPopup): 799 (WebCore::QtFallbackWebPopup::show): 800 (WebCore::QtFallbackWebPopup::populate): 801 (WebCore::QtFallbackWebPopup::showPopup): 802 (WebCore::QtFallbackWebPopup::hidePopup): 803 (WebCore::QtFallbackWebPopup::activeChanged): 804 (WebCore::QtFallbackWebPopup::setParent): 805 * WebCoreSupport/QtFallbackWebPopup.h: Added. 806 (WebCore::QtFallbackWebPopup::hide): 807 808 2010-01-07 Yael Aharon <yael.aharon (a] nokia.com> 809 810 Reviewed by Kenneth Rohde Christiansen. 811 812 [Qt] Allow the application to override online/offline network status 813 https://bugs.webkit.org/show_bug.cgi?id=32684 814 815 Add a setting so that applications can overide the network status. 816 Applications that use this setting still need to block network access 817 through QNAM. 818 819 * Api/qwebsettings.cpp: 820 (qt_networkAccessAllowed): 821 822 2010-01-07 Yongjun Zhang <yongjun.zhang (a] nokia.com>, Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 823 824 Reviewed by Simon Hausmann. 825 826 [Qt] need an API to suspend and resume active Javascript DOM objects. 827 https://bugs.webkit.org/show_bug.cgi?id=31673 828 829 Add suspend and resume DOM objects private API to QWebFrame. 830 831 * Api/qwebframe.cpp: 832 (qt_suspendActiveDOMObjects): 833 (qt_resumeActiveDOMObjects): 834 835 2010-01-06 Andreas Kling <andreas.kling (a] nokia.com> 836 837 Reviewed by Simon Hausmann. 838 839 [Qt] Return an invalid Qt::ImMicroFocus if queried while the view needs to layout. 840 841 https://bugs.webkit.org/show_bug.cgi?id=33204 842 843 * Api/qwebpage.cpp: 844 (QWebPage::inputMethodQuery): 845 846 2010-01-05 Yael Aharon <yael.aharon (a] nokia.com> 847 848 Reviewed by Kenneth Rohde Christiansen. 849 850 Drag & drop layout tests fail even when run manually 851 https://bugs.webkit.org/show_bug.cgi?id=33055 852 853 No new tests. Fix 3 layout tests when run manually. 854 fast/events/drag-and-drop.html 855 fast/events/drag-and-drop-dataTransfer-types-nocrash.html 856 fast/events/drag-and-drop-fire-drag-dragover.html 857 Running these tests in DRT will be fixed in 31332. 858 859 * Api/qwebpage.cpp: 860 (dropActionToDragOp): 861 (dragOpToDropAction): 862 (QWebPagePrivate::dragEnterEvent): 863 (QWebPagePrivate::dragMoveEvent): 864 (QWebPagePrivate::dropEvent): 865 Accept drag events even if they are not over a drop target. 866 This is to ensure that drag events will continue to be delivered. 867 868 * Api/qwebpage_p.h: 869 * WebCoreSupport/DragClientQt.cpp: 870 (WebCore::dragOperationToDropActions): 871 (WebCore::dropActionToDragOperation): 872 (WebCore::DragClientQt::startDrag): 873 Send dragEnd event. 874 875 2010-01-04 Daniel Bates <dbates (a] webkit.org> 876 877 Reviewed by Eric Seidel. 878 879 https://bugs.webkit.org/show_bug.cgi?id=33097 880 881 Cleans up the File menu to better conform to the File menu in Safari 882 both in terms of options and keyboard shortcuts. Adds a "Quit" menu 883 options to close all open windows. 884 885 * QGVLauncher/main.cpp: 886 (MainWindow::buildUI): 887 888 2009-12-31 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 889 890 Reviewed by Kenneth Rohde Christiansen. 891 892 [Qt] Enable all HTML5 persistent features for QGVLauncher 893 https://bugs.webkit.org/show_bug.cgi?id=33086 894 895 * QGVLauncher/main.cpp: Call enablePersistentStorage() 896 (main): 897 898 2009-12-30 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 899 900 Reviewed by Simon Hausmann. 901 902 [Qt] It should be possible to disable inspector 903 https://bugs.webkit.org/show_bug.cgi?id=32724 904 905 This change fixes the build break. Some QtWebKit interfaces 906 will not be fully functional (most notable QWebInspector) if 907 INSPECTOR is disabled. 908 909 * Api/qwebinspector.cpp: 910 (QWebInspector::showEvent): 911 (QWebInspector::closeEvent): 912 * Api/qwebpage.cpp: 913 (webActionForContextMenuAction): 914 (QWebPagePrivate::getOrCreateInspector): 915 (QWebPagePrivate::inspectorController): 916 (QWebPage::triggerAction): 917 (QWebPage::updatePositionDependentActions): 918 * WebCoreSupport/InspectorClientQt.cpp: 919 (WebCore::InspectorClientQt::showWindow): 920 (WebCore::InspectorClientQt::closeWindow): 921 922 2009-12-30 Janne Koskinen <janne.p.koskinen (a] digia.com> 923 924 Reviewed by Simon Hausmann. 925 926 Upstream Symbian def files from Qt 4.6. 927 928 These files define the ABI of QtWebKit on Symbian. 929 930 * symbian/bwins/QtWebKitu.def: Added. 931 * symbian/eabi/QtWebKitu.def: Added. 932 933 2009-12-29 Daniel Bates <dbates (a] webkit.org> 934 935 Reviewed by Ariya Hidayat. 936 937 https://bugs.webkit.org/show_bug.cgi?id=32925 938 939 Adds an Open File dialog to make it convenient to open a file 940 to view in the browser. 941 942 * QGVLauncher/main.cpp: 943 (MainWindow::load): Modified to call loadURL. 944 (MainWindow::openFile): Added. 945 (MainWindow::loadURL): Added. 946 (MainWindow::buildUI): Added menu item Open File. 947 948 2009-12-29 Robert Hogan <robert (a] roberthogan.net> 949 950 Reviewed by Eric Seidel. 951 952 [Qt] Fix crash on LayoutTests/fast/loader/empty-embed-src-attribute.html 953 954 Related to https://bugs.webkit.org/show_bug.cgi?id=23806 955 956 If an embedded document is loaded within a page and it has an empty 957 URL, use a blank URL for the load request. 958 959 https://bugs.webkit.org/show_bug.cgi?id=33017 960 961 * WebCoreSupport/FrameLoaderClientQt.cpp: 962 (WebCore::FrameLoaderClientQt::createFrame): 963 964 2009-12-29 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 965 966 Rubber-stamped by Simon Hausmann and Holger Freyther. 967 968 [Qt] Remove WebKit/qt/WebKitPart empty directory 969 970 The content of the directory has been removed by r34888. 971 972 * WebKitPart: Removed. 973 974 2009-12-29 Jakub Wieczorek <faw217 (a] gmail.com> 975 976 Reviewed by Eric Seidel. 977 978 [Qt] DRT: Frame loader callbacks differ from the Mac port 979 https://bugs.webkit.org/show_bug.cgi?id=32989 980 981 Remove messages from the callbacks that should not dump them to match 982 the expected results for the http/loading tests. 983 984 Unskip some http/loading tests which succeed now. 985 986 * WebCoreSupport/FrameLoaderClientQt.cpp: 987 (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage): 988 (WebCore::FrameLoaderClientQt::dispatchWillClose): 989 (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon): 990 (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld): 991 992 2009-12-29 Robert Hogan <robert (a] roberthogan.net> 993 994 Reviewed by Eric Seidel. 995 996 [Qt] fix fast/dom/Window/window-onFocus.html 997 998 Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where 999 window.onblur was getting dispatched twice from QtWebKit. 1000 1001 https://bugs.webkit.org/show_bug.cgi?id=32990 1002 1003 * Api/qwebpage.cpp: 1004 (QWebPagePrivate::focusOutEvent): 1005 1006 2009-12-24 Girish Ramakrishnan <girish (a] forwardbias.in> 1007 1008 Reviewed by Gustavo Noronha. 1009 1010 Doc : QGraphicsWebView::zoomFactor was introduced in 4.6. 1011 1012 * Api/qgraphicswebview.cpp: 1013 1014 2009-12-22 Simon Hausmann <simon.hausmann (a] nokia.com> 1015 1016 Rubber-stamped by Holger Freyther. 1017 1018 Moved QtLauncher to WebKitTools/ 1019 1020 * QtLauncher: Removed. 1021 * QtLauncher/QtLauncher.pro: Removed. 1022 * QtLauncher/main.cpp: Removed. 1023 1024 2009-12-21 David Boddie <dboddie (a] trolltech.com> 1025 1026 Reviewed by Simon Hausmann. 1027 1028 Doc: Minor fixes to language. 1029 1030 * Api/qwebpage.cpp: 1031 1032 2009-12-21 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 1033 1034 Reviewed by Simon Hausmann. 1035 1036 [Qt] Clean up the WebKit layer unit-tests 1037 1038 - Use tests.pri for common options 1039 - Standardize file naming 1040 - Move all resources to 'resources' subdir 1041 - Standardize how TESTS_SOURCE_DIR is used 1042 - Get rid of UID3 for symbian (autogenerated) 1043 - Don't build app bundles on Mac OS X 1044 1045 * tests/benchmarks/loading/loading.pro: Added. 1046 * tests/benchmarks/loading/tst_loading.pro: Removed. 1047 * tests/benchmarks/painting/painting.pro: Added. 1048 * tests/benchmarks/painting/tst_painting.pro: Removed. 1049 * tests/qgraphicswebview/qgraphicswebview.pro: 1050 * tests/qwebelement/qwebelement.pro: 1051 * tests/qwebelement/qwebelement.qrc: Removed. 1052 * tests/qwebelement/resources/image.png: Renamed from WebKit/qt/tests/qwebelement/image.png. 1053 * tests/qwebelement/resources/style.css: Renamed from WebKit/qt/tests/qwebelement/style.css. 1054 * tests/qwebelement/resources/style2.css: Renamed from WebKit/qt/tests/qwebelement/style2.css. 1055 * tests/qwebelement/tst_qwebelement.qrc: Added. 1056 * tests/qwebframe/qwebframe.pro: 1057 * tests/qwebframe/qwebframe.qrc: Removed. 1058 * tests/qwebframe/resources/image.png: Renamed from WebKit/qt/tests/qwebframe/image.png. 1059 * tests/qwebframe/resources/style.css: Renamed from WebKit/qt/tests/qwebframe/style.css. 1060 * tests/qwebframe/resources/test1.html: Renamed from WebKit/qt/tests/qwebframe/test1.html. 1061 * tests/qwebframe/resources/test2.html: Renamed from WebKit/qt/tests/qwebframe/test2.html. 1062 * tests/qwebframe/resources/testiframe.html: Renamed from WebKit/qt/tests/qwebframe/testiframe.html. 1063 * tests/qwebframe/resources/testiframe2.html: Renamed from WebKit/qt/tests/qwebframe/testiframe2.html. 1064 * tests/qwebframe/tst_qwebframe.cpp: 1065 * tests/qwebframe/tst_qwebframe.qrc: Added. 1066 * tests/qwebhistory/qwebhistory.pro: 1067 * tests/qwebhistory/resources/page1.html: Renamed from WebKit/qt/tests/qwebhistory/data/page1.html. 1068 * tests/qwebhistory/resources/page2.html: Renamed from WebKit/qt/tests/qwebhistory/data/page2.html. 1069 * tests/qwebhistory/resources/page3.html: Renamed from WebKit/qt/tests/qwebhistory/data/page3.html. 1070 * tests/qwebhistory/resources/page4.html: Renamed from WebKit/qt/tests/qwebhistory/data/page4.html. 1071 * tests/qwebhistory/resources/page5.html: Renamed from WebKit/qt/tests/qwebhistory/data/page5.html. 1072 * tests/qwebhistory/resources/page6.html: Renamed from WebKit/qt/tests/qwebhistory/data/page6.html. 1073 * tests/qwebhistory/tst_qwebhistory.cpp: 1074 (tst_QWebHistory::): 1075 * tests/qwebhistory/tst_qwebhistory.qrc: 1076 * tests/qwebhistoryinterface/qwebhistoryinterface.pro: 1077 * tests/qwebinspector/qwebinspector.pro: 1078 * tests/qwebpage/qwebpage.pro: 1079 * tests/qwebpage/resources/frame_a.html: Renamed from WebKit/qt/tests/qwebpage/frametest/frame_a.html. 1080 * tests/qwebpage/resources/iframe.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe.html. 1081 * tests/qwebpage/resources/iframe2.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe2.html. 1082 * tests/qwebpage/resources/iframe3.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe3.html. 1083 * tests/qwebpage/resources/index.html: Renamed from WebKit/qt/tests/qwebpage/frametest/index.html. 1084 * tests/qwebpage/tst_qwebpage.cpp: 1085 (tst_QWebPage::backActionUpdate): 1086 (tst_QWebPage::frameAt): 1087 (tst_QWebPage::errorPageExtensionInFrameset): 1088 (tst_QWebPage::screenshot): 1089 * tests/qwebpage/tst_qwebpage.qrc: 1090 * tests/qwebplugindatabase/qwebplugindatabase.pro: 1091 * tests/qwebview/qwebview.pro: 1092 * tests/qwebview/resources/frame_a.html: Renamed from WebKit/qt/tests/qwebview/data/frame_a.html. 1093 * tests/qwebview/resources/index.html: Renamed from WebKit/qt/tests/qwebview/data/index.html. 1094 * tests/qwebview/tst_qwebview.cpp: 1095 (tst_QWebView::reusePage): 1096 (tst_QWebView::crashTests): 1097 * tests/qwebview/tst_qwebview.qrc: 1098 * tests/resources/image2.png: Renamed from WebKit/qt/tests/qwebframe/resources/image2.png. 1099 * tests/tests.pri: Added. 1100 * tests/tests.pro: 1101 1102 2009-12-18 Ariya Hidayat <ariya.hidayat (a] gmail.com> 1103 1104 Build fix, not reviewed. 1105 1106 * QtLauncher/main.cpp: 1107 (MainWindow::setTouchMocking): Leave setTouchMocking as an empty 1108 function for Qt < 4.6 so that moc still creates a slot for that. 1109 Otherwise, it would have generated a linker error. 1110 1111 2009-12-18 Adam Roben <aroben (a] apple.com> 1112 1113 Qt build fix 1114 1115 * Api/qwebpage.cpp: Added #include. 1116 1117 2009-12-18 Adam Roben <aroben (a] apple.com> 1118 1119 Qt build fix 1120 1121 * Api/qwebpage.cpp: 1122 Added #includes. 1123 1124 2009-12-18 Joe Ligman <joseph.ligman (a] nokia.com> 1125 1126 Reviewed by Kenneth Rohde Christiansen. 1127 1128 [Qt] Add new API to QWebFrame to scrollRecursively starting with any css overflow 1129 then checking current frame and then ancestors 1130 https://bugs.webkit.org/show_bug.cgi?id=32668 1131 1132 * Api/qwebframe.cpp: 1133 (QWebFramePrivate::scrollOverflow): 1134 (QWebFrame::scrollRecursively): 1135 * Api/qwebframe.h: 1136 * Api/qwebframe_p.h: 1137 * tests/qwebframe/qwebframe.qrc: 1138 * tests/qwebframe/testiframe.html: Added. 1139 * tests/qwebframe/testiframe2.html: Added. 1140 * tests/qwebframe/tst_qwebframe.cpp: 1141 1142 2009-12-18 Simon Hausmann <simon.hausmann (a] nokia.com> 1143 1144 Reviewed by Tor Arne Vestb. 1145 1146 [Qt] Fix infinite recursion in touch mocking. 1147 1148 Don't send the fake touch events to the view, as that'll trigger the 1149 event filter again. 1150 1151 * QtLauncher/main.cpp: 1152 (MainWindow::sendTouchEvent): 1153 1154 2009-12-17 Benjamin Poulain <benjamin.poulain (a] nokia.com> 1155 1156 Reviewed by Simon Hausmann. 1157 1158 [Qt] Add support for mocking touch events with Q(GV)Launcher 1159 https://bugs.webkit.org/show_bug.cgi?id=32434 1160 1161 The event delivery should go through QCoreApplication::sendEvent() 1162 1163 * QtLauncher/main.cpp: 1164 (MainWindow::sendTouchEvent): 1165 1166 2009-12-17 Kim Grnholm <kim.gronholm (a] nomovok.com> 1167 1168 Reviewed by Simon Hausmann. 1169 1170 [Qt] Add support for touch events in QWebView and QGraphicsWebView 1171 https://bugs.webkit.org/show_bug.cgi?id=32432 1172 1173 * Api/qgraphicswebview.cpp: 1174 (QGraphicsWebView::QGraphicsWebView): 1175 (QGraphicsWebView::sceneEvent): 1176 * Api/qwebview.cpp: 1177 (QWebView::QWebView): 1178 (QWebView::event): 1179 1180 2009-12-17 Kim Grnholm <kim.gronholm (a] nomovok.com> 1181 1182 Reviewed by Simon Hausmann. 1183 1184 [Qt] Add support for mocking touch events with QtLauncher 1185 https://bugs.webkit.org/show_bug.cgi?id=32434 1186 1187 * QtLauncher/main.cpp: 1188 (MainWindow::MainWindow): 1189 (MainWindow::sendTouchEvent): 1190 (MainWindow::eventFilter): 1191 (MainWindow::setTouchMocking): 1192 (MainWindow::setupUI): 1193 1194 2009-12-14 Holger Hans Peter Freyther <zecke (a] selfish.org> 1195 1196 Reviewed by Kenneth Rohde Christiansen. 1197 1198 [Qt] Fix JavaScript prompt behavior for empty/null strings. 1199 https://bugs.webkit.org/show_bug.cgi?id=30914 1200 1201 The patch is based on the work done by Gupta Manish. 1202 1203 In the default implementation of the JavaScript prompt 1204 we are using a QInputDialog to get the text and this has 1205 one quirk with regard to not entering any text. 1206 1207 In other WebKit ports and in Firefox an empty string is 1208 returned but in the Qt case it is a null string. 1209 1210 Change the API documentation in QWebPage to mention we want to 1211 have a non null string but do the fixup in the ChromeClientQt 1212 to support existing code. 1213 1214 * Api/qwebpage.cpp: 1215 (QWebPage::javaScriptPrompt): Change API documentation 1216 * WebCoreSupport/ChromeClientQt.cpp: 1217 (WebCore::ChromeClientQt::runJavaScriptPrompt): Fixup null QString 1218 1219 2009-11-24 Holger Hans Peter Freyther <zecke (a] selfish.org> 1220 1221 Reviewed by Simon Hausmann. 1222 1223 [Qt] Do not disable the inspector on show and hide 1224 https://bugs.webkit.org/show_bug.cgi?id=31851 1225 1226 On Qt/X11 with some window managers the window will be 1227 hidden when switching windows. In this case all the results 1228 are gone when coming back to the window. 1229 1230 Attempt to use the CloseEvent to figure out if the window 1231 was closed and withdrawn as this is more friendly to the 1232 user of the inspector client. 1233 1234 * Api/qwebinspector.cpp: 1235 (QWebInspector::hideEvent): 1236 (QWebInspector::closeEvent): 1237 * Api/qwebinspector.h: 1238 1239 2009-12-14 Benjamin Poulain <benjamin.poulain (a] nokia.com> 1240 1241 Reviewed by Kenneth Rohde Christiansen. 1242 1243 [Qt] Improve the autotests of QtWebkit 1244 https://bugs.webkit.org/show_bug.cgi?id=32216 1245 1246 Refactor tst_qwebelement to remove the qWait() 1247 1248 * tests/qwebelement/tst_qwebelement.cpp: 1249 (tst_QWebElement::style): 1250 1251 2009-12-14 Andreas Kling <andreas.kling (a] nokia.com> 1252 1253 Reviewed by Simon Hausmann. 1254 1255 Fix the QWebPage inputMethods() autotest after r51758 1256 to compare the Qt::ImFont property's family against an explicitly 1257 previously configured family. 1258 1259 https://bugs.webkit.org/show_bug.cgi?id=32491 1260 1261 * tests/qwebpage/tst_qwebpage.cpp: 1262 (tst_QWebPage::inputMethods): 1263 1264 2009-12-13 Sam Weinig <sam (a] webkit.org> 1265 1266 Reviewed by Dan Bernstein. 1267 1268 Fix for https://bugs.webkit.org/show_bug.cgi?id=32499 1269 Add client based Geolocation provider 1270 1271 Add first cut of a client based Geolocation provider. This is guarded by 1272 ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a 1273 GeolocationControllerClient interface that no-one currently implements, 1274 but will in a subsequent patch. 1275 1276 * Api/qwebpage.cpp: 1277 (QWebPagePrivate::QWebPagePrivate): 1278 1279 2009-12-13 Benjamin Poulain <benjamin.poulain (a] nokia.com> 1280 1281 Reviewed by Simon Hausmann. 1282 1283 Add a test in Qt for https://bugs.webkit.org/show_bug.cgi?id=29005 1284 https://bugs.webkit.org/show_bug.cgi?id=29008 1285 1286 * tests/qwebframe/tst_qwebframe.cpp: 1287 1288 2009-12-13 Simon Hausmann <hausmann (a] webkit.org> 1289 1290 Reviewed by Holger Freyther. 1291 1292 [Qt] Re-enable QWebView::renderHints property for Qt for Symbian 1293 1294 https://bugs.webkit.org/show_bug.cgi?id=28273 1295 1296 The bug in Qt's moc that triggered a linking error when declaring this 1297 property has been fixed and we can remove the workaround. 1298 1299 * Api/qwebview.h: 1300 1301 2009-12-11 Yael Aharon <yael.aharon (a] nokia.com> 1302 1303 Unreviewed build fix for Qt versions < 4.6. 1304 1305 * tests/qwebframe/tst_qwebframe.cpp: 1306 * tests/qwebview/tst_qwebview.cpp: 1307 (tst_QWebView::reusePage): 1308 1309 2009-12-11 Girish Ramakrishnan <girish (a] forwardbias.in> 1310 1311 Reviewed by Tor Arne Vestb. 1312 1313 [Qt] Updated QWebElement documentation 1314 1315 findAll() returns a QWebElementCollection, not QList<QWebElement>. 1316 1317 * docs/webkitsnippets/webelement/main.cpp: 1318 (findAll): 1319 1320 2009-12-11 Simon Hausmann <hausmann (a] webkit.org>, Kim Grnholm <kim.gronholm (a] nomovok.com> 1321 1322 Reviewed by Antti Koivisto. 1323 1324 Forward Qt touch events to the event handler as platform touch events. 1325 1326 https://bugs.webkit.org/show_bug.cgi?id=32114 1327 1328 * Api/qwebpage.cpp: 1329 (QWebPagePrivate::touchEvent): 1330 (QWebPage::event): 1331 * Api/qwebpage_p.h: 1332 1333 2009-12-07 Benjamin Poulain <benjamin.poulain (a] nokia.com> 1334 1335 Reviewed by Kenneth Rohde Christiansen. 1336 1337 [Qt] Improve the autotests of QtWebkit 1338 https://bugs.webkit.org/show_bug.cgi?id=32216 1339 1340 Remove the calls to qWait() of the autotest of QWebView 1341 1342 * tests/qwebview/tst_qwebview.cpp: 1343 (tst_QWebView::reusePage): 1344 1345 2009-12-07 Benjamin Poulain <benjamin.poulain (a] nokia.com> 1346 1347 Reviewed by Kenneth Rohde Christiansen. 1348 1349 [Qt] Improve the autotests of QtWebkit 1350 https://bugs.webkit.org/show_bug.cgi?id=32216 1351 1352 Refactor tst_qwebframe to remove qWait() and use 1353 the function waitForSignal() from util.h 1354 1355 * tests/qwebframe/tst_qwebframe.cpp: 1356 1357 2009-12-07 Benjamin Poulain <benjamin.poulain (a] nokia.com> 1358 1359 Reviewed by Kenneth Rohde Christiansen. 1360 1361 [Qt] Improve the autotests of QtWebkit 1362 https://bugs.webkit.org/show_bug.cgi?id=32216 1363 1364 Refactor the test of QGraphicsWebView: 1365 -make waitForSignal() available to all the tests. 1366 -remove QTest::qWait() 1367 1368 * tests/qgraphicswebview/tst_qgraphicswebview.cpp: 1369 (tst_QGraphicsWebView::crashOnViewlessWebPages): 1370 * tests/util.h: 1371 (waitForSignal): 1372 1373 2009-12-07 Girish Ramakrishnan <girish (a] forwardbias.in> 1374 1375 Reviewed by Simon Hausmann. 1376 1377 [Qt] Plugins: Force windowless mode when there is no native window handle 1378 1379 Inject wmode=opaque while instantiating the plugin for the case when the 1380 webpage is not backed by a native window handle. 1381 1382 https://bugs.webkit.org/show_bug.cgi?id=32059 1383 1384 * WebCoreSupport/FrameLoaderClientQt.cpp: 1385 (WebCore::FrameLoaderClientQt::createPlugin): 1386 1387 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 1388 1389 Reviewed by Kenneth Rohde Christiansen. 1390 1391 [Qt] Corrects QtLauncher style 1392 1393 * QtLauncher/main.cpp: 1394 (WebPage::acceptNavigationRequest): 1395 (MainWindow::MainWindow): 1396 (MainWindow::webPage): 1397 (MainWindow::webView): 1398 (MainWindow::changeLocation): 1399 (MainWindow::loadFinished): 1400 (MainWindow::showLinkHover): 1401 (MainWindow::zoomIn): 1402 (MainWindow::zoomOut): 1403 (MainWindow::print): 1404 (MainWindow::setEditable): 1405 (MainWindow::dumpHtml): 1406 (MainWindow::selectElements): 1407 (MainWindow::newWindow): 1408 (MainWindow::setupUI): 1409 (WebPage::createWindow): 1410 (WebPage::createPlugin): 1411 (main): 1412 1413 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 1414 1415 Reviewed by Kenneth Rohde Christiansen. 1416 1417 [Qt] QtLauncher: add a menu to show or hide the web inspector. 1418 https://bugs.webkit.org/show_bug.cgi?id=32149 1419 1420 * QtLauncher/main.cpp: 1421 (WebInspector::WebInspector): 1422 (WebInspector::showEvent): 1423 (WebInspector::hideEvent): 1424 (MainWindow::MainWindow): 1425 (MainWindow::setupUI): 1426 1427 2009-12-04 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 1428 1429 Reviewed by Antti Koivisto. 1430 1431 Split out the renderPrivate in two methods, one for working on 1432 relative coordinates (relative to the viewport) and one for 1433 working on absolute coordinates. The latter is more effecient 1434 for implementing tiling, as you don't need translate the coords, 1435 and because it avoid clipping to the viewport. 1436 1437 No behaviour changes, so no new tests. 1438 1439 * Api/qwebframe.cpp: 1440 (QWebFramePrivate::renderContentsLayerAbsoluteCoords): 1441 (QWebFramePrivate::renderRelativeCoords): 1442 (QWebFrame::render): 1443 * Api/qwebframe_p.h: 1444 1445 2009-12-04 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 1446 1447 Reviewed by Simon Hausmann. 1448 1449 [Qt] Allow removing 'qrc' as a local security origin scheme 1450 1451 * tests/qwebpage/tst_qwebpage.cpp: 1452 1453 2009-12-04 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 1454 1455 Reviewed by Simon Hausmann. 1456 1457 [Qt] Clean up argument parsing in the QtLauncher 1458 1459 * QtLauncher/main.cpp: 1460 1461 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 1462 1463 Reviewed by Kenneth Rohde Christiansen. 1464 1465 [Qt] Prevent the inspector from closing its wrapping widget. 1466 This is not necessary anymore since we now hide the embedded 1467 close button. 1468 https://bugs.webkit.org/show_bug.cgi?id=32149 1469 1470 * WebCoreSupport/InspectorClientQt.cpp: 1471 (WebCore::InspectorClientQt::showWindow): 1472 (WebCore::InspectorClientQt::closeWindow): 1473 1474 2009-12-03 smail Dnmez <ismail (a] namtrac.org> 1475 1476 Reviewed by Eric Seidel. 1477 1478 Fix compilation when SVG is disabled. 1479 1480 * Api/qwebframe.cpp: 1481 (qt_drt_pauseSVGAnimation): 1482 1483 2009-12-03 Brady Eidson <beidson (a] apple.com> 1484 1485 Reviewed by Sam Weinig. 1486 1487 <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API 1488 1489 * WebCoreSupport/FrameLoaderClientQt.cpp: 1490 (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage): 1491 (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage): 1492 (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage): 1493 * WebCoreSupport/FrameLoaderClientQt.h: 1494 1495 2009-12-03 Pavel Feldman <pfeldman (a] dhcp-172-28-174-220.spb.corp.google.com> 1496 1497 Reviewed by Timothy Hatcher. 1498 1499 Web Inspector: Simplify the settings support in inspector controller. 1500 1501 https://bugs.webkit.org/show_bug.cgi?id=32076 1502 1503 * WebCoreSupport/InspectorClientQt.cpp: 1504 (WebCore::InspectorClientQt::populateSetting): 1505 (WebCore::InspectorClientQt::storeSetting): 1506 (WebCore::variantToSetting): 1507 (WebCore::settingToVariant): 1508 * WebCoreSupport/InspectorClientQt.h: 1509 1510 2009-12-03 Ben Murdoch <benm (a] google.com> 1511 1512 Reviewed by Brady Eidson. 1513 1514 [Android] The FrameLoaderClient is unaware of BackForwardList changes. 1515 https://bugs.webkit.org/show_bug.cgi?id=31914 1516 1517 * WebCoreSupport/FrameLoaderClientQt.cpp: 1518 (WebCore::FrameLoaderClientQt::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug). 1519 (WebCore::FrameLoaderClientQt::dispatchDidRemoveBackForwardItem): ditto. 1520 (WebCore::FrameLoaderClientQt::dispatchDidChangeBackForwardIndex): ditto. 1521 * WebCoreSupport/FrameLoaderClientQt.h: 1522 1523 2009-12-01 Nikolas Zimmermann <nzimmermann (a] rim.com> 1524 1525 Not reviewed. Try to fix Qt build. 1526 1527 * Api/qwebframe.cpp: 1528 (qt_drt_pauseSVGAnimation): 1529 1530 2009-12-01 Nikolas Zimmermann <nzimmermann (a] rim.com> 1531 1532 Reviewed by Simon Fraser. 1533 1534 Add SVG animation test framework with 'snapshot' functionality 1535 https://bugs.webkit.org/show_bug.cgi?id=31897 1536 1537 Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method, 1538 forwarding the call to SVGDocumentExtensions, if SVG is enabled. 1539 1540 Implemented just like the existing pauseAnimation* methods for CSS animations. 1541 1542 * Api/qwebframe.cpp: 1543 (qt_drt_pauseSVGAnimation): 1544 1545 2009-12-01 Daniel Bates <dbates (a] webkit.org> 1546 1547 Reviewed by Kenneth Rohde Christiansen. 1548 1549 https://bugs.webkit.org/show_bug.cgi?id=31898 1550 1551 Makes QtLauncher default to the http scheme for URLs. 1552 1553 * QtLauncher/main.cpp: 1554 (MainWindow::MainWindow): 1555 (MainWindow::changeLocation): 1556 (main): 1557 1558 2009-11-30 Abhinav Mithal <abhinav.mithal (a] nokia.com> 1559 1560 Reviewed by Simon Hausmann. 1561 1562 [Qt][Symbian] Report SymbianOS in user agent string for Symbian 1563 https://bugs.webkit.org/show_bug.cgi?id=31961 1564 1565 * Api/qwebpage.cpp: 1566 (QWebPage::userAgentForUrl): 1567 1568 2009-11-30 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 1569 1570 Reviewed by Kenneth Rohde Christiansen. 1571 1572 [Qt] Fix minor waning in QtWebKit 1573 https://bugs.webkit.org/show_bug.cgi?id=31963 1574 1575 * tests/qwebpage/tst_qwebpage.cpp: 1576 (ErrorPage::extension): Remove info wariable as it is 1577 not used. 1578 1579 2009-11-28 Simon Hausmann <simon.hausmann (a] nokia.com> 1580 1581 Reviewed by Kenneth Rohde Christiansen. 1582 1583 [Qt] SoftwareInputPanelRequest event sent when clicking in newly loaded page 1584 1585 https://bugs.webkit.org/show_bug.cgi?id=31401 1586 1587 Don't set the event unless there is a focused node we can use 1588 for editing afterwards. 1589 1590 * Api/qwebpage.cpp: 1591 (QWebPagePrivate::handleSoftwareInputPanel): 1592 * tests/qwebpage/tst_qwebpage.cpp: 1593 (tst_QWebPage::inputMethods): 1594 1595 2009-11-26 Simon Hausmann <simon.hausmann (a] nokia.com> 1596 1597 Rubber-stamped by Holger Freyther. 1598 1599 Removed unused ICO image plugin handler. 1600 1601 * Plugins/ICOHandler.cpp: Removed. 1602 * Plugins/ICOHandler.h: Removed. 1603 * Plugins/Plugins.pro: Removed. 1604 1605 2009-11-12 Holger Hans Peter Freyther <zecke (a] selfish.org> 1606 1607 Reviewed by Kenneth Rohde Christiansen. 1608 1609 [Qt] Do not show the QWidget when the WebCore::Widget is hidden 1610 https://bugs.webkit.org/show_bug.cgi?id=31203 1611 1612 The clipping code was making a QWidget visible even if the 1613 WebCore::Widget was hidden. Fix the bug by calling setVisible 1614 only if the WebCore::Widget Widget::isSelfVisible. 1615 1616 * WebCoreSupport/FrameLoaderClientQt.cpp: 1617 (WebCore::QtPluginWidget::show): Override WebCore::Widget::show to call handleVisibility 1618 (WebCore::QtPluginWidget::handleVisibility): New method to call setVisible when we are visible 1619 (FrameLoaderClientQt::createPlugin): Hide the QWidget by default 1620 1621 2009-11-23 David Boddie <dboddie (a] trolltech.com> 1622 1623 Reviewed by Simon Hausmann. 1624 1625 Updated the QWebElement documentation with links to examples and 1626 external resources. 1627 Fixed the project file for the webelement snippet and tidied up the 1628 markers used for quoting the code. 1629 1630 * Api/qwebelement.cpp: 1631 * docs/webkitsnippets/webelement/main.cpp: 1632 (findAll): 1633 * docs/webkitsnippets/webelement/webelement.pro: 1634 1635 2009-11-23 Simon Hausmann <simon.hausmann (a] nokia.com> 1636 1637 Reviewed by Kenneth Rohde Christiansen. 1638 1639 [Qt] Wrong runtime instance objects of wrapped QObjects may be used if 1640 the wrapped object died before the gc removed the instance. 1641 1642 https://bugs.webkit.org/show_bug.cgi?id=31681 1643 1644 Added a unit-test to verify that wrapping a QObject with the 1645 same identity as a previously but now dead object works. 1646 1647 * tests/qwebframe/tst_qwebframe.cpp: 1648 1649 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 1650 1651 Reviewed by Kenneth Rohde Christiansen. 1652 1653 [Qt] Add instantiation tests for QWebInspector. 1654 1655 * tests/qwebinspector/qwebinspector.pro: Added. 1656 * tests/qwebinspector/tst_qwebinspector.cpp: Added. 1657 (tst_QWebInspector::attachAndDestroy): 1658 * tests/tests.pro: 1659 1660 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 1661 1662 Reviewed by Kenneth Rohde Christiansen. 1663 1664 [Qt] Fix QWebInspector destruction problem. 1665 https://bugs.webkit.org/show_bug.cgi?id=31664 1666 1667 * Api/qwebpage.cpp: 1668 (QWebPage::~QWebPage): 1669 1670 2009-11-19 Olivier Goffart <ogoffart (a] trolltech.com> 1671 1672 Reviewed by Simon Hausmann. 1673 1674 [Qt] Normalize signal and slot signatures. 1675 1676 * Api/qgraphicswebview.cpp: 1677 (QGraphicsWebView::setPage): 1678 * Api/qwebview.cpp: 1679 (QWebView::setPage): 1680 * WebCoreSupport/FrameLoaderClientQt.cpp: 1681 (WebCore::FrameLoaderClientQt::setFrame): 1682 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp: 1683 (wrapInFunction): 1684 * tests/qwebframe/tst_qwebframe.cpp: 1685 * tests/qwebpage/tst_qwebpage.cpp: 1686 (tst_QWebPage::modified): 1687 (tst_QWebPage::database): 1688 1689 2009-11-18 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 1690 1691 Reviewed by Kenneth Rohde Christiansen. 1692 1693 [Qt] Remove support for Qt v4.3 or older versions 1694 https://bugs.webkit.org/show_bug.cgi?id=29469 1695 1696 * Api/qcookiejar.cpp: Removed. 1697 * Api/qcookiejar.h: Removed. 1698 * Api/qgraphicswebview.cpp: 1699 (QGraphicsWebView::event): 1700 * Api/qwebframe.cpp: 1701 (QWebFrame::load): 1702 * Api/qwebframe.h: 1703 * Api/qwebkitglobal.h: 1704 * Api/qwebnetworkinterface.cpp: Removed. 1705 * Api/qwebnetworkinterface.h: Removed. 1706 * Api/qwebnetworkinterface_p.h: Removed. 1707 * Api/qwebpage.cpp: 1708 (QWebPagePrivate::QWebPagePrivate): 1709 (QWebPagePrivate::acceptNavigationRequest): 1710 (QWebPage::acceptNavigationRequest): 1711 (QWebPage::action): 1712 (QWebPage::userAgentForUrl): 1713 * Api/qwebpage.h: 1714 * Api/qwebpage_p.h: 1715 * Api/qwebview.cpp: 1716 (QWebView::load): 1717 (QWebView::event): 1718 * Api/qwebview.h: 1719 * QtLauncher/main.cpp: 1720 (MainWindow::print): 1721 (MainWindow::setupUI): 1722 (main): 1723 * WebCoreSupport/FrameLoaderClientQt.cpp: 1724 (WebCore::FrameLoaderClientQt::download): 1725 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 1726 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 1727 (WebCore::FrameLoaderClientQt::startDownload): 1728 (WebCore::FrameLoaderClientQt::createPlugin): 1729 1730 2009-11-18 Shu Chang <Chang.Shu (a] nokia.com> 1731 1732 Reviewed by Eric Seidel. 1733 1734 [Qt] Add support for displaying deleteButton. 1735 https://bugs.webkit.org/show_bug.cgi?id=31560 1736 1737 Test: LayoutTests/editing/deleting/5408255.html 1738 1739 * Api/qwebsettings.cpp: 1740 (graphics): 1741 * Api/qwebsettings.h: 1742 1743 2009-11-18 Paul Olav Tvete <paul.tvete (a] nokia.com> 1744 1745 Reviewed by Simon Hausmann. 1746 1747 [Qt] Make the QWebElement::render() test pass when pixmaps aren't 32 bit. 1748 1749 * tests/qwebelement/tst_qwebelement.cpp: 1750 (tst_QWebElement::render): 1751 1752 2009-11-18 Simon Hausmann <simon.hausmann (a] nokia.com> 1753 1754 Reviewed by Tor Arne Vestb. 1755 1756 Clarify and simplify the legal section in the overview documentation, 1757 after review with our legal team. 1758 1759 * docs/qtwebkit.qdoc: 1760 1761 2009-11-18 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 1762 1763 Reviewed by Simon Hausmann. 1764 1765 [Qt] Add QtLauncher support for opening links in the default browser 1766 1767 This can be triggered by either the context menu or by clicking a link 1768 while holding down the Alt key. Opening a link in a new windows is 1769 triggered by holding down Shift. 1770 1771 * QtLauncher/main.cpp: 1772 1773 2009-11-17 Yael Aharon <yael.aharon (a] nokia.com> 1774 1775 Reviewed by Kenneth Rohde Christiansen. 1776 1777 [Qt] QGLLauncher does not support drag&drop of local files 1778 https://bugs.webkit.org/show_bug.cgi?id=31057 1779 1780 Enable accepting files in QGraphicsWebView. 1781 1782 * Api/qgraphicswebview.cpp: 1783 (QGraphicsWebView::QGraphicsWebView): 1784 (QGraphicsWebView::dragEnterEvent): 1785 1786 2009-11-17 Antonio Gomes <tonikitoo (a] webkit.org> 1787 1788 Reviewed by Kenneth Christiansen. 1789 1790 [Qt] better test coverage for ErrorPageExtension 1791 https://bugs.webkit.org/show_bug.cgi?id=31583 1792 1793 Improved the coverage of current ErrorPageExtension tests by 1794 adding autotests involving frameset and iframes. 1795 1796 * tests/qwebpage/tst_qwebpage.cpp: 1797 (ErrorPage::extension): Make the ErrorPageExtension 1798 to work for all frames, not only the main frame. 1799 (tst_QWebPage::errorPageExtension): Stop using 1800 the 'frameset.html' resouce in this method since 1801 an autotest specific for frameset's is being added. 1802 (tst_QWebPage::errorPageExtensionInIFrames): Added. 1803 (tst_QWebPage::errorPageExtensionInFrameset): Added. 1804 1805 2009-11-16 Simon Hausmann <simon.hausmann (a] nokia.com> 1806 1807 Reviewed by Kenneth Rohde Christiansen. 1808 1809 API documentation fixes. 1810 1811 * Api/qgraphicswebview.cpp: Removed duplicate docs. 1812 * Api/qwebelement.cpp: Added missing docs. 1813 * Api/qwebsettings.cpp: Ditto. 1814 1815 2009-11-14 Antonio Gomes <tonikitoo (a] webkit.org> 1816 1817 Reviewed by Antti Koivisto. 1818 1819 [Qt] Broken back/forward after using ErrorPageExtension to set error page 1820 https://bugs.webkit.org/show_bug.cgi?id=30573 1821 1822 Implemented autotests for covering the back/forward 1823 reset problem involving error pages. 1824 1825 * tests/qwebpage/tst_qwebpage.cpp: 1826 (tst_QWebPage::errorPageExtension): 1827 1828 2009-11-13 Adam Roben <aroben (a] apple.com> 1829 1830 Update for changes to FrameLoaderClient 1831 1832 Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when 1833 window objects in isolated worlds are cleared 1834 1835 Reviewed by Dave Hyatt. 1836 1837 * WebCoreSupport/FrameLoaderClientQt.cpp: 1838 (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld): 1839 * WebCoreSupport/FrameLoaderClientQt.h: 1840 Replaced windowObjectCleared with this function. Does nothing if the 1841 passed-in world is not the mainThreadNormalWorld(). 1842 1843 2009-11-13 Andras Becsi <becsi.andras (a] stud.u-szeged.hu> 1844 1845 Reviewed by Kenneth Rohde Christiansen. 1846 1847 [Qt] Enable Page Cache if setMaximumPagesInCache needs it. 1848 This fixes https://bugs.webkit.org/show_bug.cgi?id=31266. 1849 1850 * Api/qwebsettings.cpp: 1851 (QWebSettingsPrivate::apply): 1852 (QWebSettings::setMaximumPagesInCache): 1853 1854 2009-11-13 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 1855 1856 Reviewed by Kenneth Rohde Christiansen. 1857 1858 [Qt] Fix initial QWebView focus behavior. 1859 1860 focusController->setFocused(true) was not always called. 1861 https://bugs.webkit.org/show_bug.cgi?id=31466 1862 1863 * Api/qwebpage.cpp: 1864 (QWebPagePrivate::focusInEvent): 1865 1866 2009-11-13 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 1867 1868 Reviewed by Simon Hausmann. 1869 1870 Update documentation for the Qt API 1871 1872 * Api/qgraphicswebview.cpp: 1873 * Api/qwebelement.cpp: 1874 * Api/qwebframe.cpp: 1875 * Api/qwebsettings.cpp: 1876 * Api/qwebview.cpp: 1877 1878 2009-11-13 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 1879 1880 Reviewed by Simon Hausmann. 1881 1882 Use correct install-path when running qdoc3 1883 1884 * docs/docs.pri: 1885 1886 2009-11-12 Shinichiro Hamaji <hamaji (a] chromium.org> 1887 1888 Reviewed by Darin Adler. 1889 1890 externalRepresentation should take Frame as the argument 1891 https://bugs.webkit.org/show_bug.cgi?id=31393 1892 1893 No new tests as this is just a refactoring. 1894 1895 * Api/qwebframe.cpp: 1896 (QWebFrame::renderTreeDump): 1897 1898 2009-11-12 Antonio Gomes <tonikitoo (a] webkit.org> 1899 1900 Reviewed by Jan Alonzo. 1901 1902 [Qt] Various doc fixes 1903 https://bugs.webkit.org/show_bug.cgi?id=31358 1904 1905 QWebPage's constructor docs are mentioning "QWebView": 1906 "Constructs an empty QWebView with parent". 1907 1908 * Api/qwebpage.cpp: 1909 1910 2009-11-12 Benjamin Poulain <benjamin.poulain (a] nokia.com> 1911 1912 Reviewed by Kenneth Rohde Christiansen. 1913 1914 Custom printing shrink factors 1915 https://bugs.webkit.org/show_bug.cgi?id=29042 1916 1917 This reverts commit r49769. The public API for this needs to be reviewed 1918 before its inclusion in Qt. 1919 1920 * Api/qwebsettings.cpp: 1921 (QWebSettingsPrivate::apply): 1922 (QWebSettings::QWebSettings): 1923 * Api/qwebsettings.h: 1924 1925 2009-11-11 Antonio Gomes <tonikitoo (a] webkit.org> 1926 1927 Reviewed by Kenneth Christiansen. 1928 1929 [Qt] Various doc fixes 1930 https://bugs.webkit.org/show_bug.cgi?id=31358 1931 1932 Fixed wrong documentation: item's dimensions do fit to Web page 1933 content by default. 1934 1935 Kenneth agreed to land this as a followup patch to the 1936 just landed documentation patch. 1937 1938 * Api/qgraphicswebview.cpp: 1939 1940 2009-11-11 David Boddie <dboddie (a] trolltech.com> 1941 1942 Reviewed by Kenneth Christiansen. 1943 1944 [Qt] Various doc fixes 1945 https://bugs.webkit.org/show_bug.cgi?id=31323 1946 1947 Fixed and synchronized QWebView related documentation. 1948 1949 * Api/qgraphicswebview.cpp: 1950 * Api/qwebview.cpp: 1951 1952 2009-11-11 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 1953 1954 Unreviewed buildbot fix. 1955 1956 Export a method to the DRT to know if the document has a 1957 document element. 1958 1959 * Api/qwebframe.cpp: 1960 (qt_drt_hasDocumentElement): 1961 1962 2009-11-11 Liang QI <liang.qi (a] nokia.com> 1963 1964 [Qt] Fix tst_qwebpage and tst_qwebframe compilation on Symbian. 1965 1966 * tests/qwebframe/qwebframe.pro: 1967 * tests/qwebframe/tst_qwebframe.cpp: 1968 * tests/qwebpage/qwebpage.pro: 1969 * tests/qwebpage/tst_qwebpage.cpp: 1970 1971 2009-11-11 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 1972 1973 Reviewed by Simon Hausmann. 1974 1975 Fix a crash in the layout test plugins/document-open.html 1976 1977 * Api/qwebframe.cpp: 1978 (QWebFrame::toPlainText): 1979 1980 2009-11-11 Warwick Allison <warwick.allison (a] nokia.com>, Simon Hausmann <simon.hausmann (a] nokia.com> 1981 1982 Reviewed by Tor Arne Vestb. 1983 1984 [Qt] Regression: Preserve the parent of plugin objects when using 1985 QtWebKit with only a QWebPage. 1986 1987 * WebCoreSupport/FrameLoaderClientQt.cpp: 1988 (WebCore::FrameLoaderClientQt::createPlugin): Don't reparent 1989 plugins to 0. 1990 * tests/qwebpage/tst_qwebpage.cpp: 1991 (PluginCounterPage::PluginCounterPage): Initialize m_pluginParent to 0. 1992 (PluginCounterPage::~PluginCounterPage): Delete the plugin parent later 1993 (after the page) 1994 (PluginTracerPage::createPlugin): Assign a dummy parent to the plugin. 1995 (PluginTracerPage::PluginTracerPage): Set up the plugin parent. 1996 (tst_QWebPage::createViewlessPlugin): Verify that for viewless pages the 1997 plugin parent remains unchanged. 1998 1999 2009-11-11 David Boddie <dboddie (a] trolltech.com> 2000 2001 [Qt] Doc: Added internal or hidden placeholder documentation. 2002 2003 * Api/qwebpage.cpp: 2004 2005 2009-11-11 Martin Smith <msmith (a] trolltech.com> 2006 2007 [Qt] doc: Changed Trolltech to Nokia 2008 2009 * Api/qwebview.cpp: 2010 2011 2009-11-11 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 2012 2013 Reviewed by Kenneth Rohde Christiansen. 2014 2015 https://bugs.webkit.org/show_bug.cgi?id=31323 2016 Fix a few compiler warnings 2017 2018 * tests/qwebframe/tst_qwebframe.cpp: Add extra brackets 2019 to make it explicit where the else case belongs 2020 2021 2009-11-11 Simon Hausmann <simon.hausmann (a] nokia.com> 2022 2023 Reviewed by Tor Arne Vestb. 2024 2025 Fix enabling of software input panel when activating editable elements 2026 in QGraphicsWebView. 2027 2028 * Api/qgraphicswebview.cpp: 2029 (QGraphicsWebViewPrivate::inputMethodEnabled): Implement method to 2030 query for input method support. 2031 * Api/qwebpage.cpp: 2032 (QWebPageWidgetClient::inputMethodEnabled): Ditto for QWidget. 2033 (QWebPagePrivate::handleSoftwareInputPanel): Don't use view() to 2034 test for input method support. Instead query using QWebPageClient 2035 and send the SIPR event to the ownerWidget() instead of the view(). 2036 The latter is null for QGraphicsWebView. 2037 * tests/qwebpage/tst_qwebpage.cpp: 2038 (EventSpy::EventSpy): 2039 (EventSpy::eventFilter): 2040 (tst_QWebPage::inputMethods): Modify the test to verify that SIPR 2041 events are dispatched when activating focusable content. 2042 2043 2009-11-10 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2044 2045 Unreviewed documentation fixes. 2046 2047 Added a few improvements from Jocelyn Turcotte to the 2048 createWindow docs. 2049 2050 * Api/qwebview.cpp: 2051 2052 2009-11-10 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2053 2054 Unreviewed documentation fix. 2055 2056 [Qt] Make qwebpage's createWindow not qwebview dependent. 2057 https://bugs.webkit.org/show_bug.cgi?id=30771 2058 2059 Update documentation to make it clear that a reimplementation 2060 of the createWindow method of the associated QWebPage can 2061 result in the QWebView::createWindow method to never be called. 2062 2063 * Api/qwebview.cpp: 2064 2065 2009-11-09 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 2066 2067 Reviewed by Kenneth Rohde Christiansen. 2068 2069 [Qt] Few classes have virtual functions but non-virtual destructor 2070 https://bugs.webkit.org/show_bug.cgi?id=31269 2071 2072 * Api/qgraphicswebview.cpp: 2073 (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): Add virtual 2074 destructor. 2075 2076 2009-11-09 Benjamin Poulain <benjamin.poulain (a] nokia.com> 2077 2078 Reviewed by Kenneth Rohde Christiansen. 2079 2080 https://bugs.webkit.org/show_bug.cgi?id=30628 2081 Add an API to get all the attributes from a QWebElement. 2082 2083 * Api/qwebelement.cpp: 2084 (QWebElement::attributesName): 2085 * Api/qwebelement.h: 2086 * tests/qwebelement/tst_qwebelement.cpp: 2087 (tst_QWebElement::listAttributes): 2088 2089 2009-11-09 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 2090 2091 Reviewed by Kenneth Rohde Christiansen. 2092 2093 Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings 2094 https://bugs.webkit.org/show_bug.cgi?id=31040 2095 2096 * Api/qwebpage.cpp: 2097 (QWebPagePrivate::handleScrolling): 2098 2099 2009-11-09 Mark Mentovai <mark (a] chromium.org> 2100 2101 Reviewed by Dan Bernstein. 2102 2103 Track "can have scrollbar" state within FrameView independently of the 2104 individual scrollbar states in ScrollView. 2105 2106 rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167 2107 REGRESSION (r48064): mint.com loses scrollbars after coming out of 2108 edit mode. 2109 2110 rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517 2111 REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store. 2112 2113 Test: fast/overflow/scrollbar-restored.html 2114 2115 * Api/qwebframe.cpp: 2116 (QWebFrame::setScrollBarPolicy): 2117 2118 2009-11-09 Benjamin Poulain <benjamin.poulain (a] nokia.com> 2119 2120 Reviewed by Kenneth Rohde Christiansen. 2121 2122 https://bugs.webkit.org/show_bug.cgi?id=30772 2123 Add a non-const iterator to QWebElementCollection. 2124 Move the two attributes of the iterator to private. 2125 2126 * Api/qwebelement.h: 2127 (const_iterator::begin): 2128 (const_iterator::end): 2129 (const_iterator::constBegin): 2130 (const_iterator::constEnd): 2131 (const_iterator::iterator::iterator): 2132 (const_iterator::iterator::operator*): 2133 (const_iterator::iterator::operator==): 2134 (const_iterator::iterator::operator!=): 2135 (const_iterator::iterator::operator<): 2136 (const_iterator::iterator::operator<=): 2137 (const_iterator::iterator::operator>): 2138 (const_iterator::iterator::operator>=): 2139 (const_iterator::iterator::operator++): 2140 (const_iterator::iterator::operator--): 2141 (const_iterator::iterator::operator+=): 2142 (const_iterator::iterator::operator-=): 2143 (const_iterator::iterator::operator+): 2144 (const_iterator::iterator::operator-): 2145 * tests/qwebelement/tst_qwebelement.cpp: 2146 (tst_QWebElement::nonConstIterator): 2147 (tst_QWebElement::constIterator): 2148 2149 2009-11-09 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 2150 2151 Reviewed by Kenneth Christiansen. 2152 2153 [Qt] Remove the sessionStorage setting (per Page) 2154 https://bugs.webkit.org/show_bug.cgi?id=31249 2155 2156 This setting allows to run sessionStorage on/off on a per page 2157 basis. Remove this prematurely exposed API. 2158 2159 * Api/qwebsettings.cpp: 2160 (QWebSettingsPrivate::apply): 2161 (QWebSettings::QWebSettings): 2162 * tests/qwebpage/tst_qwebpage.cpp: 2163 (tst_QWebPage::database): 2164 (tst_QWebPage::testOptionalJSObjects): 2165 2166 2009-11-09 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 2167 2168 Reviewed by Simon Hausmann. 2169 2170 [Qt] Remove the QWebPage:webInspectorTriggered signal. 2171 User customization of the communication between QWebPage 2172 and QWebInspector will be properly designed in the next version. 2173 https://bugs.webkit.org/show_bug.cgi?id=30773 2174 2175 * Api/qwebinspector.cpp: 2176 * Api/qwebpage.cpp: 2177 (QWebPagePrivate::getOrCreateInspector): 2178 (QWebPage::triggerAction): 2179 * Api/qwebpage.h: 2180 * QtLauncher/main.cpp: 2181 (MainWindow::MainWindow): 2182 2183 2009-11-05 Simon Hausmann <hausmann (a] webkit.org> 2184 2185 Reviewed by Tor Arne Vestb. 2186 2187 Added a missing re-implementation of QGraphicsItem::inputMethodQuery(). 2188 2189 * Api/qgraphicswebview.cpp: 2190 (QGraphicsWebView::inputMethodQuery): 2191 * Api/qgraphicswebview.h: 2192 2193 2009-11-04 Simon Hausmann <hausmann (a] webkit.org> 2194 2195 Reviewed by Tor Arne Vestb. 2196 2197 Provide a dummy re-implementation of QGraphicsLayoutItem::sizeHint(), 2198 similar to QWebView. 2199 2200 * Api/qgraphicswebview.cpp: 2201 (QGraphicsWebView::sizeHint): 2202 * Api/qgraphicswebview.h: 2203 2204 2009-11-04 Simon Hausmann <hausmann (a] webkit.org> 2205 2206 Reviewed by Tor Arne Vestb. 2207 2208 Removed zoomFactoryChanged() signal and added 2209 linkClicked() to QGraphicsWebView, for consistency with 2210 QWebView. 2211 2212 * Api/qgraphicswebview.cpp: 2213 (QGraphicsWebView::setPage): 2214 (QGraphicsWebView::setZoomFactor): 2215 * Api/qgraphicswebview.h: 2216 2217 2009-11-04 Simon Hausmann <hausmann (a] webkit.org> 2218 2219 Reviewed by Tor Arne Vestb. 2220 2221 Added QGraphicsWebView::findText() for convenience and consistency 2222 with QWebView. 2223 2224 * Api/qgraphicswebview.cpp: 2225 (QGraphicsWebView::findText): 2226 * Api/qgraphicswebview.h: 2227 2228 2009-11-04 Simon Hausmann <hausmann (a] webkit.org> 2229 2230 Reviewed by Tor Arne Vestb. 2231 2232 Added QGraphicsWebView::pageAction() and triggerPageAction(), for 2233 consistency with QWebView. 2234 2235 * Api/qgraphicswebview.cpp: 2236 (QGraphicsWebView::pageAction): 2237 (QGraphicsWebView::triggerPageAction): 2238 * Api/qgraphicswebview.h: 2239 2240 2009-11-04 Simon Hausmann <hausmann (a] webkit.org> 2241 2242 Reviewed by Tor Arne Vestb. 2243 2244 Removed QGraphicsWebView::toHtml() after API review. 2245 2246 That's consistent with QWebView and also based on the assumption that 2247 toHtml() is called less frequently than setHtml(). 2248 2249 * Api/qgraphicswebview.cpp: 2250 * Api/qgraphicswebview.h: 2251 * tests/qgraphicswebview/tst_qgraphicswebview.cpp: 2252 (tst_QGraphicsWebView::qgraphicswebview): 2253 2254 2009-11-04 Simon Hausmann <hausmann (a] webkit.org> 2255 2256 Reviewed by Tor Arne Vestb. 2257 2258 Removed the interactive property of QGraphicsWebView. 2259 2260 There are clearly use-cases for this feature, but it will require 2261 more work to make this fully work with an enum to have fine-grained 2262 control over the interactivity levels. For now it is easy to achieve 2263 in user-code what the boolean property did. 2264 2265 * Api/qgraphicswebview.cpp: 2266 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate): 2267 (QGraphicsWebView::hoverMoveEvent): 2268 (QGraphicsWebView::mouseMoveEvent): 2269 (QGraphicsWebView::mousePressEvent): 2270 (QGraphicsWebView::mouseReleaseEvent): 2271 (QGraphicsWebView::mouseDoubleClickEvent): 2272 (QGraphicsWebView::keyPressEvent): 2273 (QGraphicsWebView::keyReleaseEvent): 2274 (QGraphicsWebView::dragLeaveEvent): 2275 (QGraphicsWebView::dragMoveEvent): 2276 (QGraphicsWebView::dropEvent): 2277 (QGraphicsWebView::wheelEvent): 2278 (QGraphicsWebView::inputMethodEvent): 2279 * Api/qgraphicswebview.h: 2280 * tests/qgraphicswebview/tst_qgraphicswebview.cpp: 2281 (tst_QGraphicsWebView::qgraphicswebview): 2282 2283 2009-11-04 Simon Hausmann <hausmann (a] webkit.org> 2284 2285 Reviewed by Tor Arne Vestb. 2286 2287 Make the QGraphicsWebView constructor explicit. 2288 2289 * Api/qgraphicswebview.h: 2290 2291 2009-11-05 Shu Chang <Chang.Shu (a] nokia.com> 2292 2293 Reviewed by Tor Arne Vestb. 2294 2295 Add support for Shift-PageUp and Shift-PageDown key events. 2296 https://bugs.webkit.org/show_bug.cgi?id=31166 2297 2298 Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html 2299 2300 * WebCoreSupport/EditorClientQt.cpp: 2301 (WebCore::EditorClientQt::handleKeyboardEvent): 2302 2303 2009-11-05 Simon Hausmann <hausmann (a] webkit.org> 2304 2305 Last Qt 4.5 build fix (*sigh*) 2306 2307 * tests/qwebpage/tst_qwebpage.cpp: 2308 (inputMethodHints): inputMethodHints() is only used for 2309 Qt 4.6, so guard the whole function. 2310 2311 2009-11-05 Simon Hausmann <hausmann (a] webkit.org> 2312 2313 Another prospective build fix against Qt 4.5 (build bot) 2314 2315 Don't compile & run the QGraphicsWebView portion of the 2316 input methods auto test with Qt 4.5. 2317 2318 * tests/qwebpage/tst_qwebpage.cpp: 2319 (tst_QWebPage::inputMethods_data): 2320 (inputMethodHints): 2321 (inputMethodEnabled): 2322 (tst_QWebPage::inputMethods): 2323 2324 2009-11-05 Simon Hausmann <hausmann (a] webkit.org> 2325 2326 Prospective build fix against Qt 4.5 (build bot) 2327 2328 * Api/qgraphicswebview.cpp: 2329 (QGraphicsWebViewPrivate::setInputMethodEnabled): Guard the 2330 use of Qt 4.6 specific API with #ifdefs. 2331 2332 2009-11-01 Simon Hausmann <hausmann (a] webkit.org> 2333 2334 Reviewed by Kenneth Christiansen. 2335 2336 [Qt] Fix enabling of input method support on QGraphicsWebView. 2337 https://bugs.webkit.org/show_bug.cgi?id=30605 2338 2339 Instead of setting the unsupported widget attribute on the 2340 QGraphicsWidget in setInputMethodEnabled() set the 2341 ItemAcceptsInputMethod GraphicsItem flag directly. 2342 2343 Changed the existing input method auto test to run once 2344 on a QWebView and once on a QGraphicsWebView. 2345 2346 * Api/qgraphicswebview.cpp: 2347 (QGraphicsWebViewPrivate::setInputMethodEnabled): 2348 * tests/qwebpage/tst_qwebpage.cpp: 2349 (tst_QWebPage::inputMethods_data): 2350 (inputMethodHints): 2351 (inputMethodEnabled): 2352 (tst_QWebPage::inputMethods): 2353 2354 2009-11-04 Simon Hausmann <hausmann (a] webkit.org> 2355 2356 Reviewed by Kenneth Christiansen. 2357 2358 Added QGraphicsWebView::modified property, for consistency 2359 with QWebView. 2360 2361 * Api/qgraphicswebview.cpp: 2362 (QGraphicsWebView::isModified): 2363 * Api/qgraphicswebview.h: 2364 * tests/qgraphicswebview/tst_qgraphicswebview.cpp: 2365 (tst_QGraphicsWebView::qgraphicswebview): 2366 2367 2009-11-04 Simon Hausmann <hausmann (a] webkit.org> 2368 2369 Reviewed by Kenneth Christiansen. 2370 2371 Removed status and progress properties of QGraphicsWebView. 2372 Added loadProgress and statusBarMessage signals instead, 2373 after API review. 2374 2375 * Api/qgraphicswebview.cpp: 2376 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate): 2377 (QGraphicsWebView::setPage): 2378 * Api/qgraphicswebview.h: 2379 * tests/qgraphicswebview/tst_qgraphicswebview.cpp: 2380 (tst_QGraphicsWebView::qgraphicswebview): 2381 2382 2009-11-04 Yael Aharon <yael.aharon (a] nokia.com> 2383 2384 Reviewed by Simon Hausmann. 2385 2386 [Qt] REGRESSION: Allow applications to use their own QWidget bypassing QWebView. 2387 https://bugs.webkit.org/show_bug.cgi?id=30979 2388 2389 Decouple QWebViewPrivate from QWebPageClient, and automatically create 2390 QWebPageWidgetClient whenever the view is QWidget based. 2391 2392 * Api/qwebpage.cpp: 2393 (QWebPageWidgetClient::QWebPageWidgetClient): 2394 (QWebPageWidgetClient::scroll): 2395 (QWebPageWidgetClient::update): 2396 (QWebPageWidgetClient::setInputMethodEnabled): 2397 (QWebPageWidgetClient::setInputMethodHint): 2398 (QWebPageWidgetClient::cursor): 2399 (QWebPageWidgetClient::updateCursor): 2400 (QWebPageWidgetClient::palette): 2401 (QWebPageWidgetClient::screenNumber): 2402 (QWebPageWidgetClient::ownerWidget): 2403 (QWebPageWidgetClient::pluginParent): 2404 (QWebPage::setView): 2405 * Api/qwebview.cpp: 2406 (QWebView::~QWebView): 2407 (QWebView::setPage): 2408 (QWebView::event): 2409 2410 2009-11-03 Andras Becsi <becsi.andras (a] stud.u-szeged.hu> 2411 2412 Reviewed by Simon Hausmann. 2413 2414 [Qt] Fix build of unit-test after r50454. 2415 2416 * tests/qwebpage/tst_qwebpage.cpp: 2417 2418 2009-11-03 Simon Hausmann <hausmann (a] webkit.org> 2419 2420 Reviewed by Tor Arne Vestb. 2421 2422 Make QWebPluginDatabase private API for now. 2423 2424 https://bugs.webkit.org/show_bug.cgi?id=30775 2425 2426 * Api/headers.pri: 2427 * Api/qwebplugindatabase.cpp: 2428 * Api/qwebplugindatabase_p.h: Renamed from WebKit/qt/Api/qwebplugindatabase.h. 2429 * Api/qwebsettings.cpp: 2430 * Api/qwebsettings.h: 2431 * QtLauncher/main.cpp: 2432 (MainWindow::setupUI): 2433 * tests/tests.pro: 2434 2435 2009-11-03 Simon Hausmann <hausmann (a] webkit.org> 2436 2437 Rubber-stamped by Tor Arne Vestb. 2438 2439 Oops, also remove the API docs of the removed networkRequestStarted() signal. 2440 2441 * Api/qwebpage.cpp: 2442 2443 2009-11-03 Simon Hausmann <hausmann (a] webkit.org> 2444 2445 Reviewed by Tor Arne Vestb. 2446 2447 Replace the QWebPage::networkRequestStarted() signal with the originatingObject 2448 property set to the QWebFrame that belongs to the request. 2449 2450 https://bugs.webkit.org/show_bug.cgi?id=29975 2451 2452 * Api/qwebpage.h: 2453 * WebCoreSupport/FrameLoaderClientQt.cpp: 2454 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 2455 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 2456 (WebCore::FrameLoaderClientQt::startDownload): 2457 * tests/qwebpage/tst_qwebpage.cpp: 2458 (tst_QWebPage::loadFinished): 2459 (TestNetworkManager::createRequest): 2460 (tst_QWebPage::originatingObjectInNetworkRequests): 2461 2462 2009-11-02 Jedrzej Nowacki <jedrzej.nowacki (a] nokia.com> 2463 2464 Reviewed by Adam Barth. 2465 2466 QWebView crash fix. 2467 2468 The QWebView should not crash if the stop() method is called from 2469 a function triggered by the loadProgress signal. 2470 2471 A null pointer protection was added in the ProgressTracker::incrementProgress. 2472 2473 New autotest was created. 2474 2475 https://bugs.webkit.org/show_bug.cgi?id=29425 2476 2477 * tests/qwebview/tst_qwebview.cpp: 2478 (WebViewCrashTest::WebViewCrashTest): 2479 (WebViewCrashTest::loading): 2480 (tst_QWebView::crashTests): 2481 2482 2009-11-01 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 2483 2484 Reviewed by Eric Seidel. 2485 2486 Turn on warnings for QtWebKit for gcc 2487 https://bugs.webkit.org/show_bug.cgi?id=30958 2488 2489 * Api/qwebpage.cpp: 2490 (QWebPagePrivate::QWebPagePrivate): Reorder initialization list 2491 to fix compiler warnings. 2492 * WebCoreSupport/FrameLoaderClientQt.cpp: 2493 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto. 2494 2495 2009-10-30 Evan Stade <estade (a] chromium.org> 2496 2497 Reviewed by David Levin. 2498 2499 Notify the chrome when the focused node has changed. 2500 https://bugs.webkit.org/show_bug.cgi?id=30832 2501 2502 Added stub implementation for new ChromeClient function. 2503 2504 * WebCoreSupport/ChromeClientQt.cpp: 2505 (WebCore::ChromeClientQt::focusedNodeChanged): 2506 * WebCoreSupport/ChromeClientQt.h: 2507 2508 2009-10-30 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 2509 2510 Reviewed by Tor Arne Vestb. 2511 2512 [Qt] Remove the QWebInspector::windowTitleChanged signal, 2513 QEvent::WindowTitleChange can be used to achieve the same. 2514 https://bugs.webkit.org/show_bug.cgi?id=30927 2515 2516 * Api/qwebinspector.cpp: 2517 * Api/qwebinspector.h: 2518 * WebCoreSupport/InspectorClientQt.cpp: 2519 (WebCore::InspectorClientQt::updateWindowTitle): 2520 2521 2009-10-29 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 2522 2523 Reviewed by Tor Arne Vestb. 2524 2525 [Qt] Implement DELETE HTTP method for XmlHttpRequest 2526 https://bugs.webkit.org/show_bug.cgi?id=30894 2527 2528 No new tests as this functionality is already tested by the 2529 xmlhttprequest LayoutTests. As this patch depends on an unreleased 2530 version of the dependent QtNetwork library and the tests will be 2531 enabled later once the dependent library is released (and the 2532 buildbot is updated). 2533 2534 * Api/qwebframe.cpp: 2535 (QWebFrame::load): 2536 2537 2009-10-29 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2538 2539 Reviewed by Tor Arne Vestb. 2540 2541 Remove QWebView::guessUrlFromString() and replace its use 2542 with the new QUrl::fromUserInput() if using Qt 4.6 or newer. 2543 2544 * Api/qwebview.cpp: 2545 * Api/qwebview.h: 2546 * QGVLauncher/main.cpp: 2547 (urlFromUserInput): 2548 (WebPage::applyProxy): 2549 (MainWindow::load): 2550 * QtLauncher/main.cpp: 2551 (urlFromUserInput): 2552 (MainWindow::MainWindow): 2553 (MainWindow::changeLocation): 2554 * tests/qwebview/tst_qwebview.cpp: 2555 2556 2009-10-28 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2557 2558 Reviewed by Tor Arne Vestb. 2559 2560 Serialize directly to the stream, and not first to an QByteArray, 2561 that is later serialized. That is slower and also uses more bytes. 2562 2563 * Api/qwebhistory.cpp: 2564 (operator<<): 2565 (operator>>): 2566 2567 2009-10-28 Shinichiro Hamaji <hamaji (a] chromium.org> 2568 2569 Reviewed by Eric Seidel. 2570 2571 [Qt] WebFrame::counterValueForElementById must not be exposed 2572 https://bugs.webkit.org/show_bug.cgi?id=30882 2573 2574 * Api/qwebframe.cpp: 2575 (qt_drt_counterValueForElementById): 2576 * Api/qwebframe.h: 2577 2578 2009-10-27 Shinichiro Hamaji <hamaji (a] chromium.org> 2579 2580 Reviewed by Darin Adler. 2581 2582 Provide a way to get counter values with layoutTestContoller 2583 https://bugs.webkit.org/show_bug.cgi?id=30555 2584 2585 * Api/qwebframe.cpp: 2586 (QWebFrame::counterValueForElementById): 2587 (QWebHitTestResult::frame): 2588 * Api/qwebframe.h: 2589 2590 2009-10-28 Antonio Gomes <tonikitoo (a] webkit.org> 2591 2592 Pushing missing WebKit/qt/tests/qwebframe/resources/ dir from bug 29248. 2593 2594 [Qt] [API] Make it possible to have 'invisible' loads 2595 https://bugs.webkit.org/show_bug.cgi?id=29248 2596 2597 * tests/qwebframe/resources/image2.png: Copied from WebKit/qt/tests/qwebelement/image.png. 2598 2599 2009-10-28 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2600 2601 Reviewed by Tor Arne Vestb. 2602 2603 [Qt] QWebHistory::saveState() is inconsistent with the Qt API 2604 https://bugs.webkit.org/show_bug.cgi?id=30710 2605 2606 Make the versioning internal and enforce it in the WebCore 2607 part. Adjust the comments, as well as remove now dead code. 2608 2609 * Api/qwebhistory.cpp: 2610 (operator<<): 2611 (operator>>): 2612 * Api/qwebhistory.h: 2613 2614 2009-10-28 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2615 2616 Reviewed by Holger Freyther. 2617 2618 [Qt] QWebHistory::saveState() is inconsistent with the Qt API 2619 https://bugs.webkit.org/show_bug.cgi?id=30710 2620 2621 Remove the QWebHistory::saveState() and ::restoreState() as 2622 they are inconsistent with the Qt API. 2623 2624 Update unittests to reflect the change. 2625 2626 * Api/qwebhistory.cpp: 2627 (operator<<): 2628 (operator>>): 2629 * Api/qwebhistory.h: 2630 * tests/qwebhistory/tst_qwebhistory.cpp: 2631 (saveHistory): 2632 (restoreHistory): 2633 (tst_QWebHistory::saveAndRestore_crash_1): 2634 (tst_QWebHistory::saveAndRestore_crash_2): 2635 (tst_QWebHistory::saveAndRestore_crash_3): 2636 (tst_QWebHistory::clear): 2637 2638 2009-10-27 Antonio Gomes <tonikitoo (a] webkit.org> 2639 2640 Reviewed by Holger Freyther. 2641 2642 Complementary fix to bug 30779. 2643 2644 By mistake I used QWeakPointer's toStrongRef() method which docs 2645 explicitly say to not be used in this situation (when the tracked 2646 pointer is devired from QObject). Instead QWeakPointer's data() 2647 is recommended. 2648 2649 * Api/qwebpage.cpp: 2650 (QWebPage::view): 2651 2652 2009-10-27 Holger Hans Peter Freyther <zecke (a] selfish.org> 2653 2654 Reviewed by Simon Fraser. 2655 2656 Change HitTestResult methods to use (3d) transformation aware methods 2657 https://bugs.webkit.org/show_bug.cgi?id=27347 2658 2659 The HitTestResult::boundingBox method was removed. The 2660 RenderObject must be used directly. In contrast to the 2661 old HitTestResult::boundingBox method this code must use 2662 a (3d) transformation aware method to not run into an 2663 assert in SVGRenderBase::mapLocalToContainer. 2664 2665 * Api/qwebframe.cpp: 2666 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 2667 2668 2009-10-27 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2669 2670 Rubberstamped by Oliver Hunt. 2671 2672 Change two methods to be internal for DRT use only. 2673 2674 Part of [Qt] Review all new API in Qt 4.6 2675 https://bugs.webkit.org/show_bug.cgi?id=29843#c11 2676 2677 * Api/qwebsecurityorigin.cpp: 2678 (qt_drt_whiteListAccessFromOrigin): 2679 (qt_drt_resetOriginAccessWhiteLists): 2680 (QWebSecurityOrigin::localSchemes): 2681 * Api/qwebsecurityorigin.h: 2682 2683 2009-10-27 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2684 2685 Reviewed by Tor Arne Vestb. 2686 2687 Make sure that initiating a rotation while rotating won't make 2688 it end up at rotation positions that are not a multiply of 2689 180 degrees. 2690 2691 * QGVLauncher/main.cpp: 2692 (MainView::animatedFlip): 2693 2694 2009-10-27 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2695 2696 Unreviewed Qt build fix. 2697 2698 Update the tests as well to the new API change. 2699 2700 * tests/qwebelement/tst_qwebelement.cpp: 2701 (tst_QWebElement::clear): 2702 2703 2009-10-27 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2704 2705 Rubberstamped by Tor Arne Vestb. 2706 2707 [Qt] QWebElement::removeChildren() should be 2708 QWebElement::removeAllChildren() 2709 https://bugs.webkit.org/show_bug.cgi?id=30630 2710 2711 * Api/qwebelement.cpp: 2712 (QWebElement::removeAllChildren): 2713 * Api/qwebelement.h: 2714 2715 2009-10-27 Antonio Gomes <tonikitoo (a] webkit.org> 2716 2717 Reviewed by Antti Koivisto and Holger Freyther. 2718 2719 Make QWebPagePrivate's (QWidget) view to be a QWeakPointer. 2720 https://bugs.webkit.org/show_bug.cgi?id=30779 2721 2722 The fact that it was been set from external objects of qwebpage 2723 and not being deleted internally can lead to dangling references. 2724 2725 * Api/qgraphicswebview.cpp: 2726 (QGraphicsWebView::~QGraphicsWebView): 2727 * Api/qwebpage.cpp: 2728 (QWebPagePrivate::QWebPagePrivate): 2729 (QWebPagePrivate::createContextMenu): 2730 (QWebPagePrivate::handleSoftwareInputPanel): 2731 (QWebPagePrivate::keyPressEvent): 2732 (QWebPage::setView): 2733 (QWebPage::view): 2734 (QWebPage::javaScriptAlert): 2735 (QWebPage::javaScriptConfirm): 2736 (QWebPage::javaScriptPrompt): 2737 (QWebPage::shouldInterruptJavaScript): 2738 (QWebPage::createWindow): 2739 (QWebPage::extension): 2740 (QWebPage::chooseFile): 2741 (QWebPage::userAgentForUrl): 2742 * Api/qwebpage_p.h: 2743 * Api/qwebview.cpp: 2744 (QWebView::~QWebView): 2745 2746 2009-10-26 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2747 2748 Unreviewed documentation fix from David Boddie (Qt Doc Team) 2749 2750 Removes the check around the RenderHints property documentation 2751 that was clearly added to synchronize the source and header files 2752 when the #if !defined(Q_OS_SYMBIAN) guards was added to the 2753 property. 2754 2755 The documentation has also been updated to ensure that Symbian 2756 users know that there is no actual RenderHints property on their 2757 platform. 2758 2759 * Api/qwebview.cpp: 2760 2761 2009-10-26 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2762 2763 Unreviewed documentation fix from David Boddie (Qt Doc Team) 2764 2765 Ensure that qdoc will always see the RenderHints property. 2766 2767 The property was only defined in the header file if the Q_OS_SYMBIAN 2768 symbol was not defined, resulting in the property not showing up 2769 in the Qt documentation just because one platform doesn't support it. 2770 2771 A follow up commit will improve the documentation for the property 2772 and note that it is not supported on the Symbiam platform. 2773 2774 * Api/qwebview.h: 2775 2776 2009-10-26 Benjamin Poulain <benjamin.poulain (a] nokia.com> 2777 2778 Reviewed by Tor Arne Vestb. 2779 2780 [Qt] Reintroduce QWebElementCollection 2781 2782 Revert the patch that has replaced QWebElementCollection 2783 with QList<QWebElement>. Update the tests accordingly. 2784 2785 Remove the constness of the return type of QWebElement operator[]. 2786 2787 https://bugs.webkit.org/show_bug.cgi?id=30767 2788 2789 * Api/qwebelement.cpp: 2790 (QWebElement::findAll): 2791 (QWebElementCollectionPrivate::QWebElementCollectionPrivate): 2792 (QWebElementCollectionPrivate::create): 2793 (QWebElementCollection::QWebElementCollection): 2794 (QWebElementCollection::operator=): 2795 (QWebElementCollection::~QWebElementCollection): 2796 (QWebElementCollection::operator+): 2797 (QWebElementCollection::append): 2798 (QWebElementCollection::count): 2799 (QWebElementCollection::at): 2800 (QWebElementCollection::toList): 2801 * Api/qwebelement.h: 2802 (const_iterator::begin): 2803 (const_iterator::end): 2804 (const_iterator::operator[]): 2805 * Api/qwebframe.cpp: 2806 (QWebFrame::findAllElements): 2807 * Api/qwebframe.h: 2808 * QtLauncher/main.cpp: 2809 (MainWindow::selectElements): 2810 * tests/qwebelement/tst_qwebelement.cpp: 2811 (tst_QWebElement::simpleCollection): 2812 (tst_QWebElement::iteration): 2813 (tst_QWebElement::emptyCollection): 2814 (tst_QWebElement::appendCollection): 2815 (tst_QWebElement::nullSelect): 2816 (tst_QWebElement::hasSetFocus): 2817 (tst_QWebElement::render): 2818 * tests/qwebpage/tst_qwebpage.cpp: 2819 (tst_QWebPage::inputMethods): 2820 2821 2009-10-24 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 2822 2823 Reviewed by Holger Freyther. 2824 2825 [Qt] [Symbian] Set the capability and memory required to run QtWebKit for Symbian 2826 https://bugs.webkit.org/show_bug.cgi?id=30476 2827 2828 Assign ReadUserData WriteUserData NetworkServices Symbian capabilities 2829 to all QtWebkit executables. 2830 2831 * QGVLauncher/QGVLauncher.pro: 2832 * QtLauncher/QtLauncher.pro: 2833 * tests/benchmarks/loading/tst_loading.pro: 2834 * tests/benchmarks/painting/tst_painting.pro: 2835 * tests/qgraphicswebview/qgraphicswebview.pro: 2836 * tests/qwebelement/qwebelement.pro: 2837 * tests/qwebframe/qwebframe.pro: 2838 * tests/qwebhistory/qwebhistory.pro: 2839 * tests/qwebhistoryinterface/qwebhistoryinterface.pro: 2840 * tests/qwebpage/qwebpage.pro: 2841 * tests/qwebplugindatabase/qwebplugindatabase.pro: 2842 * tests/qwebview/qwebview.pro: 2843 2844 2009-10-22 Gavin Barraclough <barraclough (a] apple.com> 2845 2846 Reviewed by NOBODY (speculative build fix - qt is currently already broken!) 2847 Build fix following bug #30696. 2848 2849 * Api/qwebelement.cpp: 2850 (setupScriptContext): 2851 * Api/qwebframe.cpp: 2852 (QWebFrame::evaluateJavaScript): 2853 2854 2009-10-22 Shu Chang <Chang.Shu (a] nokia.com> 2855 2856 Reviewed by Eric Seidel. 2857 2858 [Qt] Enable track visited links in QWebPage 2859 https://bugs.webkit.org/show_bug.cgi?id=30574 2860 2861 Test: fast/history/clicked-link-is-visited.html 2862 2863 * Api/qwebpage.cpp: 2864 (QWebPagePrivate::QWebPagePrivate): 2865 2866 2009-10-22 Girish Ramakrishnan <girish (a] forwardbias.in> 2867 2868 Reviewed by Eric Seidel. 2869 2870 [Qt] Add Print Shortcut to QtLauncher 2871 2872 https://bugs.webkit.org/show_bug.cgi?id=30682 2873 2874 * QtLauncher/main.cpp: 2875 (MainWindow::setupUI): 2876 2877 2009-10-22 Antonio Gomes <tonikitoo (a] webkit.org> 2878 2879 Rubberstamped by Tor Arne Vestb. 2880 2881 Code standarlization for QGVLauncher. 2882 2883 1) Made member initilization lists in constructors 2884 to be per line. 2885 2) Made applyProxy method inline as all other methods in 2886 WebPage class. 2887 2888 * QGVLauncher/main.cpp: 2889 (WebPage::WebPage): 2890 (WebPage::applyProxy): 2891 (MainView::MainView): 2892 (MainWindow::MainWindow): 2893 (MainWindow::init): 2894 2895 2009-10-22 Antonio Gomes <tonikitoo (a] webkit.org> 2896 2897 Reviewed by Tor Arne Vestb. 2898 2899 Add a Y-Axis rotation to QGVLauncher. 2900 2901 It uses the QStateMachine API from Qt 4.6. 2902 2903 * QGVLauncher/main.cpp: 2904 (WebView::WebView): 2905 (WebView::setYRotation): 2906 (WebView::yRotation): 2907 (MainView::flip): 2908 (MainView::animatedYFlip): 2909 (SharedScene::SharedScene): 2910 (SharedScene::webView): 2911 (MainWindow::init): 2912 (MainWindow::animatedYFlip): 2913 (MainWindow::buildUI): 2914 2915 2009-10-20 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2916 2917 Reviewed By Adam Barth. 2918 2919 Add some actions to the menu for cursor debugging. 2920 2921 GraphicsView based launcher only. 2922 2923 * QGVLauncher/main.cpp: 2924 (MainView::setWaitCursor): 2925 (MainView::resetCursor): 2926 (MainView::flip): 2927 (MainWindow::setWaitCursor): 2928 (MainWindow::resetCursor): 2929 (MainWindow::buildUI): 2930 2931 2009-10-20 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2932 2933 Rubberstamped by Adam Barth. 2934 2935 Remove clipRenderToViewport as agreed upon in 2936 https://bugs.webkit.org/show_bug.cgi?id=29843 2937 2938 * Api/qwebframe.cpp: 2939 * Api/qwebframe.h: 2940 * Api/qwebframe_p.h: 2941 (QWebFramePrivate::QWebFramePrivate): 2942 2943 2009-10-20 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2944 2945 Reviewed by Adam Barth. 2946 2947 Update the tests to test the new render functionality, and take 2948 into consideration that render() clips to the frame itself as well 2949 as the viewport. 2950 2951 QWebFrame::render() now always clips, so the old tests were bogus. 2952 2953 Rendering pure contents (no scrollbars etc) without clipping can now 2954 be accomplished using QWebFrame::documentElement()->render(...) 2955 2956 * Api/qwebframe.cpp: 2957 * Api/qwebframe.h: 2958 * Api/qwebframe_p.h: 2959 (QWebFramePrivate::QWebFramePrivate): 2960 * tests/qwebframe/tst_qwebframe.cpp: 2961 2962 2009-10-20 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2963 2964 Rubberstamped by Adam Barth. 2965 2966 As we do not support rendering a QWebFrame without it being clipped 2967 the the frame as well as the viewport, we now set the viewport size 2968 to the size of the contents. 2969 2970 Rendering pure contents (no scrollbars etc) without clipping can be 2971 acomplished using QWebFrame::documentElement()->render(...) 2972 2973 * tests/qwebelement/tst_qwebelement.cpp: 2974 (tst_QWebElement::render): 2975 2976 2009-10-20 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2977 2978 Reviewed by Tor Arne Vestb. 2979 2980 Add menu item to dump the plugin list to the console, 2981 which can be handy for debugging. 2982 2983 * QtLauncher/main.cpp: 2984 (MainWindow::dumpPlugins): 2985 (MainWindow::setupUI): 2986 2987 2009-10-19 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 2988 2989 Reviewed by Tor Arne Vestb. 2990 2991 Introduce new render method on QWebFrame, which supports specifying 2992 which layers to render (scrollbars, contents, pan-icon). 2993 2994 * Api/qwebframe.cpp: 2995 (QWebFramePrivate::renderPrivate): 2996 (QWebFrame::render): 2997 * Api/qwebframe.h: 2998 * Api/qwebframe_p.h: 2999 3000 2009-10-19 Antonio Gomes <tonikitoo (a] webkit.org> 3001 3002 Reviewed by Ariya Hidayat. 3003 3004 [Qt] Infinite loop (leading to crash) when setting cursor in QGraphicsWebView 3005 https://bugs.webkit.org/show_bug.cgi?id=30549 3006 3007 Patch reimplements QGraphicsItem's itemChange method, and make 3008 CursorChange event to be emitted after cursor has already been 3009 set. 3010 3011 QWidget::setCursor send the event just after it sets the cursor, 3012 then patch makes both behaviors compatible. 3013 3014 * Api/qgraphicswebview.cpp: 3015 (QGraphicsWebView::itemChange): 3016 * Api/qgraphicswebview.h: 3017 3018 2009-10-19 Nate Chapin <japhet (a] chromium.org> 3019 3020 Unreviewed, build fix. 3021 3022 Update call to FrameLoader::loadFrameRequest(). 3023 3024 * Api/qwebpage.cpp: 3025 (QWebPage::triggerAction): 3026 3027 2009-10-19 Viatcheslav Ostapenko <ostapenko.viatcheslav (a] nokia.com> 3028 3029 Reviewed by Ariya Hidayat. 3030 3031 Add QWebElement::render API which allows rendering of single 3032 element. 3033 3034 * Api/qwebelement.cpp: 3035 (QWebElement::render): 3036 * Api/qwebelement.h: 3037 * tests/qwebelement/tst_qwebelement.cpp: 3038 (tst_QWebElement::render): 3039 * tests/qwebelement/qwebelement.qrc: 3040 * tests/qwebelement/image.png: Added. 3041 3042 2009-10-19 Markus Goetz <Markus.Goetz (a] nokia.com> 3043 3044 Reviewed by Ariya Hidayat. 3045 3046 QWebPage: Doc: setNetworkAccessManager should only be called once. 3047 3048 * Api/qwebpage.cpp: 3049 3050 2009-10-19 Antonio Gomes <tonikitoo (a] webkit.org> 3051 3052 Reviewed by Tor Arne. 3053 3054 Wrong ifdef combination in QGraphicsWebView's event method. 3055 3056 * Api/qgraphicswebview.cpp: 3057 (QGraphicsWebView::event): 3058 3059 2009-10-19 Girish Ramakrishnan <girish (a] forwardbias.in> 3060 3061 Reviewed by Holger Freyther. 3062 3063 [Qt] Windowed Plugins: Don't crash when client is 0. 3064 3065 Client is 0 when we use QWebPage without a QWebView or QGraphicsWebView. 3066 In addition, setFrameRect()/updatePluginWidget() is called even if the 3067 plugin was not succesfully loaded. updatePluginWidget() updates the 3068 window rect which is, in theory, useful to draw something that indicates 3069 that we didn't load successfully. 3070 3071 So, a status check is added to setNPWindowIfNeeded. 3072 3073 https://bugs.webkit.org/show_bug.cgi?id=30380 3074 3075 * tests/qwebpage/qwebpage.pro: 3076 * tests/qwebpage/tst_qwebpage.cpp: 3077 (takeScreenshot): 3078 (tst_QWebPage::screenshot_data): 3079 (tst_QWebPage::screenshot): 3080 * tests/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf. 3081 3082 2009-10-19 Girish Ramakrishnan <girish (a] forwardbias.in> 3083 3084 Reviewed by Holger Freyther. 3085 3086 [Qt] Windowed Plugins: Fix crash when QWebPage is deleted after QWebView. 3087 3088 Fixes various sources of crashes: 3089 1. The PluginContainer is a child of QWebView. When the view gets deleted, 3090 the PluginView is not notified about the deletion of PluginContainer. 3091 2. QWebView destructor does not set client to 0. 3092 3. Sometimes pending paint events are sent after the plugin has died, so add 3093 a check in PluginView::setNPWindowIfNeeded. 3094 3095 https://bugs.webkit.org/show_bug.cgi?id=30354 3096 3097 * Api/qwebview.cpp: 3098 (QWebView::~QWebView): 3099 * tests/qwebview/qwebview.pro: 3100 * tests/qwebview/tst_qwebview.cpp: 3101 (tst_QWebView::reusePage_data): 3102 (tst_QWebView::reusePage): 3103 3104 2009-10-19 Jakob Truelsen <antialize (a] gmail.com> 3105 3106 Reviewed by Adam Barth. 3107 3108 https://bugs.webkit.org/show_bug.cgi?id=29042 3109 3110 Allow one to costumize the minimal and maximal shrink factors, 3111 Added methods setPrintingMinimumShrinkFactor, printingMinimumShrinkFactor, 3112 setPrintingMaximumShrinkFactor, printingMaximumShrinkFactor to QWebSettings. 3113 3114 3115 * Api/qwebsettings.cpp: 3116 (QWebSettingsPrivate::apply): 3117 (QWebSettings::QWebSettings): 3118 (QWebSettings::setPrintingMinimumShrinkFactor): 3119 (QWebSettings::printingMinimumShrinkFactor): 3120 (QWebSettings::setPrintingMaximumShrinkFactor): 3121 (QWebSettings::printingMaximumShrinkFactor): 3122 * Api/qwebsettings.h: 3123 3124 2009-10-18 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 3125 3126 Reviewed by Simon Hausmann. 3127 3128 Rename fixedContentsSize property to preferredContentsSize as 3129 agreed upon with Simon Hausmann and Matthias Ettrich. 3130 3131 * Api/qwebpage.cpp: 3132 (QWebPage::preferredContentsSize): 3133 (QWebPage::setPreferredContentsSize): 3134 * Api/qwebpage.h: 3135 * WebCoreSupport/FrameLoaderClientQt.cpp: 3136 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 3137 3138 2009-10-16 Antonio Gomes <tonikitoo (a] webkit.org> 3139 3140 Reviewed by Simon Hausmann. 3141 3142 [Qt] QGLauncher leaks WebPage object 3143 https://bugs.webkit.org/show_bug.cgi?id=30465 3144 3145 Make 'SharedScene' to own 'WebPage' reference and delete it at its destructor. 3146 3147 * Api/qwebpage.cpp: 3148 (QWebPage::view): 3149 * Api/qwebpage_p.h: 3150 * QGVLauncher/main.cpp: 3151 (SharedScene::SharedScene): 3152 (SharedScene::~SharedScene): 3153 3154 2009-10-16 Antonio Gomes <tonikitoo (a] webkit.org> 3155 3156 Reviewed by Simon Hausmann. 3157 3158 [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash 3159 https://bugs.webkit.org/show_bug.cgi?id=30459 3160 3161 Remove all setView(ev->widget()) calls in QWebPage and QGWV event handling methods, 3162 since QWebPageClient would do the trick. 3163 3164 * Api/qgraphicswebview.cpp: 3165 (QGraphicsWebView::hoverMoveEvent): 3166 * Api/qwebpage.cpp: 3167 (QWebPagePrivate::mouseMoveEvent): 3168 (QWebPagePrivate::mousePressEvent): 3169 (QWebPagePrivate::mouseDoubleClickEvent): 3170 (QWebPagePrivate::mouseReleaseEvent): 3171 (QWebPagePrivate::wheelEvent): 3172 (QWebPagePrivate::dragEnterEvent): 3173 (QWebPagePrivate::dragLeaveEvent): 3174 (QWebPagePrivate::dragMoveEvent): 3175 3176 2009-10-16 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 3177 3178 Pull out r49676 as it caused build breakges on Symbian 3179 3180 * Api/qwebpage.cpp: 3181 3182 2009-10-16 Yael Aharon <yael.aharon (a] nokia.com> 3183 3184 Reviewed by Tor Arne Vestb. 3185 3186 [Qt] Need a way to inform the application when a Netscape plugin is created or deleted 3187 https://bugs.webkit.org/show_bug.cgi?id=30179 3188 3189 Added "c" style static methods for the application to hook up for 3190 receiving notifications when a plugin is created or destroyed. 3191 3192 * Api/qwebpage.cpp: 3193 3194 2009-10-15 Antonio Gomes <tonikitoo (a] webkit.org> 3195 3196 Rubberstamped by Tor Arne. 3197 3198 Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*). 3199 3200 * QGVLauncher/main.cpp: 3201 (WebPage::WebPage): 3202 3203 2009-10-15 Antonio Gomes <tonikitoo (a] webkit.org> 3204 3205 Reviewed by Tor Arne. 3206 3207 [Qt] QGLauncher crashes while closing a window 3208 https://bugs.webkit.org/show_bug.cgi?id=30385 3209 3210 Set page's pageClient reference to '0' at QGWV deletion. 3211 3212 * Api/qgraphicswebview.cpp: 3213 (QGraphicsWebView::~QGraphicsWebView): 3214 * tests/qgraphicswebview/tst_qgraphicswebview.cpp: 3215 (WebPage::WebPage): 3216 (WebPage::aborting): 3217 (tst_QGraphicsWebView::crashOnViewlessWebPages): 3218 3219 2009-10-13 Antonio Gomes <tonikitoo (a] webkit.org> 3220 3221 Reviewed by Simon Hausmann. 3222 3223 [Qt] Make context menu to work in QGraphicsWebView 3224 https://bugs.webkit.org/show_bug.cgi?id=30336 3225 3226 * Api/qgraphicswebview.cpp: 3227 (QGraphicsWebView::event): 3228 3229 2009-10-13 Girish Ramakrishnan <girish (a] forwardbias.in> 3230 3231 Reviewed by Simon Hausmann. 3232 3233 [Qt] Plugins : Remove all traces of winId. Use ownerWidget() instead. 3234 3235 This is a bug for two reasons: 3236 1. Everytime we use winId(), we end up creating a native widget. This causes an 3237 unnecessary copy of contents from the backing store to the native widget. 3238 2. Neither windowed nor windowless plugins require the winId of the QWebView or 3239 QGraphicsView. 3240 3241 Introduce ownerWidget() which returns a QWidget * without creating a native widget 3242 (as opposed to QWidget::find(winId)). 3243 3244 https://bugs.webkit.org/show_bug.cgi?id=30170 3245 3246 * Api/qgraphicswebview.cpp: 3247 (QGraphicsWebViewPrivate::ownerWidget): 3248 * Api/qwebview.cpp: 3249 (QWebViewPrivate::ownerWidget): 3250 3251 2009-10-13 Antonio Gomes <tonikitoo (a] webkit.org> 3252 3253 Reviewed by Simon Hausmann. 3254 3255 [Qt] Add some initial autotests for QWebPage's ErrorPageExtention 3256 https://bugs.webkit.org/show_bug.cgi?id=30296 3257 3258 * tests/qwebpage/tst_qwebpage.cpp: 3259 (ErrorPage::ErrorPage): 3260 (ErrorPage::supportsExtension): 3261 (ErrorPage::extension): 3262 (tst_QWebPage::errorPageExtension): 3263 3264 2009-10-13 Antonio Gomes <tonikitoo (a] webkit.org> 3265 3266 Reviewed by Simon Hausmann. 3267 3268 [Qt] better handle possible edge cases on qwebframe::requestedUrl use 3269 https://bugs.webkit.org/show_bug.cgi?id=30216 3270 3271 QWebFrame::requestedUrl can be called at any time during the load 3272 process, including: 3273 3274 * An error handling (whereas an alternate error page for unsuccessful 3275 load is being set); 3276 * A ssl error exception call; 3277 * During navigation notifications/callbacks (titleChanged, urlChanged, 3278 progresses, addHistoryEntry, etc); 3279 * Among others. 3280 3281 This patch makes requestedUrl calls to fallback to FrameLoaderClient 3282 m_loadError's failingURL when an error has occurred, unless it is 3283 null/empty. 3284 3285 Also, m_loadError is now being reset at each the main frame starts a 3286 load, in order to avoid previous load errors footprints. 3287 3288 * Api/qwebframe.cpp: 3289 (QWebFrame::requestedUrl): 3290 * WebCoreSupport/FrameLoaderClientQt.cpp: 3291 (WebCore::FrameLoaderClientQt::postProgressStartedNotification): 3292 3293 2009-10-12 Jakub Wieczorek <faw217 (a] gmail.com> 3294 3295 Reviewed by Simon Hausmann. 3296 3297 [Qt] Missing default value for the default text encoding. 3298 https://bugs.webkit.org/show_bug.cgi?id=30311 3299 3300 QtWebKit has provided a default, hardcoded value for default charset but since 3301 the addition of the defaultTextEncoding setting in QWebSettings, that hardcoded 3302 value has had no effect. 3303 3304 Added a regression test and unskipped fast/dom/Document/document-charset.html, 3305 which is passing now. 3306 3307 * Api/qwebpage.cpp: 3308 (QWebPagePrivate::QWebPagePrivate): 3309 * Api/qwebsettings.cpp: 3310 (QWebSettings::QWebSettings): 3311 * tests/qwebpage/tst_qwebpage.cpp: 3312 (tst_QWebPage::defaultTextEncoding): 3313 3314 2009-10-12 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 3315 3316 Reviewed by Simon Hausmann. 3317 3318 Implement the new palette() methods on the page clients 3319 3320 * Api/qgraphicswebview.cpp: 3321 (QGraphicsWebViewPrivate::palette): 3322 * Api/qwebview.cpp: 3323 (QWebViewPrivate::palette): 3324 3325 2009-10-12 Jedrzej Nowacki <jedrzej.nowacki (a] nokia.com> 3326 3327 Reviewed by Simon Hausmann. 3328 3329 QWebPage's createViewlessPlugin autotest crash fix. 3330 3331 It is possible that plugins that are QWidgets or QGraphicsWidgets 3332 are created before a view has been assigned to a QWebPage. The 3333 plug-ins won't be fully functional, as by design, they should 3334 visualise something, but they won't crash and will stay in memory. 3335 3336 An autotest that covers this use-case, is included. 3337 3338 https://bugs.webkit.org/show_bug.cgi?id=30118 3339 3340 * WebCoreSupport/FrameLoaderClientQt.cpp: 3341 (WebCore::FrameLoaderClientQt::createPlugin): 3342 * tests/qwebpage/tst_qwebpage.cpp: 3343 (PluginTrackedPageWidget::PluginTrackedPageWidget): 3344 (PluginTrackedPageGraphicsWidget::PluginTrackedPageGraphicsWidget): 3345 (PluginTrackedPageGraphicsWidget::createPlugin): 3346 (tst_QWebPage::destroyPlugin): 3347 (tst_QWebPage::createViewlessPlugin): 3348 3349 2009-10-09 Joe Ligman <joseph.ligman (a] nokia.com> 3350 3351 Reviewed by Simon Hausmann. 3352 3353 Sets Qt::WA_InputMethodEnabled and Qt::ImhHiddenText for password fields in EditorClientQt 3354 setInputMethodState. This change is needed so widgets such as the s60 software 3355 input panel can receive input method events for password fields. 3356 It's up to the Qt platform to determine which widget will receive input method 3357 events when these flags are set. 3358 Also added implementation for setInputMethodEnabled and setInputMethodHint 3359 to QGraphicsWebViewPrivate and QWebViewPrivate. This change removes the direct 3360 dependency on QWebView and uses QWebPageClient. 3361 Added autotest to tst_qwebpage.cpp 3362 https://bugs.webkit.org/show_bug.cgi?id=30023 3363 3364 * Api/qgraphicswebview.cpp: 3365 (QGraphicsWebViewPrivate::setInputMethodEnabled): 3366 (QGraphicsWebViewPrivate::setInputMethodHint): 3367 * Api/qwebview.cpp: 3368 (QWebViewPrivate::setInputMethodEnabled): 3369 (QWebViewPrivate::setInputMethodHint): 3370 * WebCoreSupport/EditorClientQt.cpp: 3371 (WebCore::EditorClientQt::setInputMethodState): 3372 * tests/qwebpage/tst_qwebpage.cpp: 3373 (tst_QWebPage::inputMethods): 3374 3375 2009-10-08 Adam Barth <abarth (a] webkit.org> 3376 3377 Reviewed by Eric Seidel. 3378 3379 Move executeScript from FrameLoader to ScriptController 3380 https://bugs.webkit.org/show_bug.cgi?id=30200 3381 3382 Update API call. 3383 3384 * Api/qwebframe.cpp: 3385 (QWebFrame::evaluateJavaScript): 3386 3387 2009-10-08 Jedrzej Nowacki <jedrzej.nowacki (a] nokia.com> 3388 3389 Reviewed by Simon Hausmann. 3390 3391 Part of testOptionalJSObjects autotest was marked as "expect to fail". 3392 3393 Two places in tst_QWebPage::testOptionalJSObjects were marked as 3394 expected to fail. The problem concern checking if a feature is enabled 3395 or disabled. According to discussion on webkit dev mailing list 3396 a disabled feature should be invisible from java script level, but 3397 there are exceptions from the rule. So we decided to disable the test 3398 for now. 3399 3400 https://bugs.webkit.org/show_bug.cgi?id=29867 3401 3402 * tests/qwebpage/tst_qwebpage.cpp: 3403 (tst_QWebPage::testOptionalJSObjects): 3404 3405 2009-10-07 Adam Barth <abarth (a] webkit.org> 3406 3407 Reviewed by Darin Adler. 3408 3409 Factor PolicyChecker out of FrameLoader 3410 https://bugs.webkit.org/show_bug.cgi?id=30155 3411 3412 Move the policy callback to the policy object. 3413 3414 * WebCoreSupport/FrameLoaderClientQt.cpp: 3415 (WebCore::FrameLoaderClientQt::callPolicyFunction): 3416 3417 2009-10-07 Antonio Gomes <tonikitoo (a] webkit.org> 3418 3419 Reviewed by Simon Hausmann. 3420 3421 [Qt] Get rid of useless loadFailed signal in QGraphicsWebView 3422 https://bugs.webkit.org/show_bug.cgi?id=30166 3423 3424 * Api/qgraphicswebview.cpp: 3425 (QGraphicsWebViewPrivate::_q_doLoadFinished): 3426 * Api/qgraphicswebview.h: 3427 * QGVLauncher/main.cpp: 3428 (MainWindow::init): 3429 (MainWindow::loadFinished): 3430 3431 2009-10-07 Girish Ramakrishnan <girish (a] forwardbias.in> 3432 3433 Reviewed by Simon Hausmann. 3434 3435 Add a simple rotation effect to QGVLauncher 3436 3437 https://bugs.webkit.org/show_bug.cgi?id=30162 3438 3439 * QGVLauncher/main.cpp: 3440 (MainView::animatedFlip): 3441 (MainWindow::animatedFlip): 3442 (MainWindow::buildUI): 3443 3444 2009-10-07 Volker Hilsheimer <volker.hilsheimer (a] nokia.com> 3445 3446 Reviewed by Simon Hausmann. 3447 3448 Doc: Document HTML and status as properties. 3449 3450 * Api/qgraphicswebview.cpp: 3451 3452 2009-10-07 Martin Smith <msmith (a] trolltech.com> 3453 3454 Reviewed by Simon Hausmann. 3455 3456 Fix qdoc warning about disabled renderHints property 3457 on Symbian. 3458 3459 * Api/qwebview.cpp: 3460 * Api/qwebview.h: 3461 3462 2009-10-06 Adam Barth <abarth (a] webkit.org> 3463 3464 Reviewed by Eric Seidel. 3465 3466 Move setLocalLoadPolicy and friends to SecurityOrigin 3467 https://bugs.webkit.org/show_bug.cgi?id=30110 3468 3469 Call the new API. 3470 3471 * Api/qwebpage.cpp: 3472 (QWebPagePrivate::QWebPagePrivate): 3473 3474 2009-10-06 Benjamin C Meyer <bmeyer (a] rim.com> 3475 3476 Reviewed by Ariya Hidayat. 3477 3478 When the drag data contains an image set it on the QDrag so it will be visible to the user. 3479 3480 * WebCoreSupport/DragClientQt.cpp: 3481 (WebCore::DragClientQt::startDrag): 3482 3483 2009-10-06 Pavel Feldman <pfeldman (a] chromium.org> 3484 3485 Reviewed by Timothy Hatcher. 3486 3487 Web Inspector: close inspector client view on 3488 InspectorController::close API call. 3489 3490 In order to run batch web inspector layout tests (and not affect 3491 subsequent tests) we should close inspector client's view upon 3492 InspectorController::close API call. 3493 3494 https://bugs.webkit.org/show_bug.cgi?id=30009 3495 3496 * WebCoreSupport/InspectorClientQt.cpp: 3497 (WebCore::InspectorClientQt::createPage): 3498 3499 2009-10-06 Janne Koskinen <janne.p.koskinen (a] digia.com> 3500 3501 Reviewed by Simon Hausmann. 3502 3503 [Qt] don't enable input methods on Symbian by default. 3504 https://bugs.webkit.org/show_bug.cgi?id=30117 3505 3506 If input methods are enabled Symbian FEP will be launched on every 3507 pointer event making webpage navigation impossible with QWebView. 3508 3509 * Api/qwebview.cpp: 3510 (QWebView::QWebView): 3511 3512 2009-10-05 Holger Hans Peter Freyther <zecke (a] selfish.org> 3513 3514 Reviewed by Simon Hausmann. 3515 3516 QtLauncher: print the number of loaded urls 3517 3518 When using the -r mode print the number of URLs loaded so far. This 3519 is extremly useful when opening the same URL over and over again and 3520 one wants to see the progress. 3521 3522 * QtLauncher/main.cpp: 3523 (URLLoader::URLLoader): 3524 (URLLoader::loadNext): 3525 3526 2009-10-05 Girish Ramakrishnan <girish (a] forwardbias.in> 3527 3528 Reviewed by Simon Hausmann. 3529 3530 Add screenshot option to menubar 3531 3532 https://bugs.webkit.org/show_bug.cgi?id=30067 3533 3534 * QtLauncher/main.cpp: 3535 (MainWindow::screenshot): 3536 (MainWindow::setupUI): 3537 3538 2009-10-05 Girish Ramakrishnan <girish (a] forwardbias.in> 3539 3540 Reviewed by Simon Hausmann. 3541 3542 Setting the env QTLAUNCHER_USE_ARGB_VISUALS makes Qt use WA_TranslucentWindow. 3543 3544 https://bugs.webkit.org/show_bug.cgi?id=30068 3545 3546 * QtLauncher/main.cpp: 3547 (MainWindow::MainWindow): 3548 3549 2009-10-05 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 3550 3551 Rubberstamped by Simon Hausmann. 3552 3553 Add documentation to the ErrorPageExtension. 3554 3555 * Api/qwebpage.cpp: 3556 3557 2009-10-02 Yael Aharon <yael.aharon (a] nokia.com> 3558 3559 Reviewed by Simon Hausmann. 3560 3561 [Qt] Inform the application when a new request is created 3562 https://bugs.webkit.org/show_bug.cgi?id=29975 3563 3564 Add a signal to QWebPage, to inform the application when a request is created. 3565 3566 * Api/qwebpage.cpp: 3567 * Api/qwebpage.h: 3568 * tests/qwebpage/tst_qwebpage.cpp: 3569 (tst_QWebPage::loadFinished): 3570 3571 2009-10-05 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 3572 3573 Reviewed by Simon Hausmann. 3574 3575 ErrorPageExtension: Add a pointer to the QWebFrame that had 3576 an error. 3577 3578 * Api/qwebpage.h: 3579 * WebCoreSupport/FrameLoaderClientQt.cpp: 3580 (WebCore::FrameLoaderClientQt::callErrorPageExtension): 3581 3582 2009-10-05 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 3583 3584 Reviewed by Tor Arne Vestb. 3585 3586 Do not empty the offline web appcache when clearing 3587 memory caches. That one is not in memory, but stored 3588 in sqlite. 3589 3590 * Api/qwebsettings.cpp: 3591 (QWebSettings::clearMemoryCaches): 3592 3593 2009-10-05 J-P Nurmi <jpnurmi (a] gmail.com> 3594 3595 Reviewed by Simon Hausmann. 3596 3597 Added QGraphicsWidget-plugins support to FrameLoaderClientQt. 3598 3599 https://bugs.webkit.org/show_bug.cgi?id=29710 3600 3601 * Api/qgraphicswebview.cpp: 3602 (QGraphicsWebViewPrivate::pluginParent): 3603 * Api/qwebview.cpp: 3604 (QWebViewPrivate::pluginParent): 3605 * WebCoreSupport/FrameLoaderClientQt.cpp: 3606 (WebCore::): 3607 (WebCore::FrameLoaderClientQt::createPlugin): 3608 3609 2009-10-03 Adam Barth <abarth (a] webkit.org> 3610 3611 Unreview build fix. I wish I had a try server... 3612 3613 * Api/qwebpage.cpp: 3614 (QWebPagePrivate::updateAction): 3615 3616 2009-10-02 Norbert Leser <norbert.leser (a] nokia.com> 3617 3618 Reviewed by Simon Hausmann. 3619 3620 Conditionally guard cursor code (cursor and updateCursor functions) with !QT_NO_CURSOR. 3621 Otherwise, it is inconsistent with class declaration of QCursor. 3622 3623 * Api/qgraphicswebview.cpp: 3624 * Api/qwebview.cpp: 3625 3626 2009-10-02 Prasanth Ullattil <prasanth.ullattil (a] nokia.com> 3627 3628 Reviewed by Simon Hausmann. 3629 3630 Fix compiler warnings about unused function arguments. 3631 3632 * Api/qwebframe.cpp: 3633 (QWebFrame::scrollBarMinimum): 3634 * Api/qwebpage.cpp: 3635 (QWebPagePrivate::focusInEvent): 3636 (QWebPagePrivate::focusOutEvent): 3637 (QWebPagePrivate::leaveEvent): 3638 (QWebPage::javaScriptAlert): 3639 (QWebPage::javaScriptConfirm): 3640 (QWebPage::javaScriptPrompt): 3641 (QWebPage::triggerAction): 3642 (QWebPage::acceptNavigationRequest): 3643 (QWebPage::chooseFile): 3644 * WebCoreSupport/ChromeClientQt.cpp: 3645 (WebCore::ChromeClientQt::repaint): 3646 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 3647 (WebCore::ChromeClientQt::reachedMaxAppCacheSize): 3648 * WebCoreSupport/ContextMenuClientQt.cpp: 3649 (WebCore::ContextMenuClientQt::downloadURL): 3650 * WebCoreSupport/FrameLoaderClientQt.cpp: 3651 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect): 3652 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady): 3653 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme): 3654 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme): 3655 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem): 3656 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError): 3657 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest): 3658 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading): 3659 (WebCore::FrameLoaderClientQt::createJavaAppletWidget): 3660 * WebCoreSupport/InspectorClientQt.cpp: 3661 (WebCore::InspectorClientQt::setAttachedWindowHeight): 3662 (WebCore::InspectorClientQt::highlight): 3663 (WebCore::InspectorClientQt::removeSetting): 3664 3665 2009-10-01 Simon Hausmann <simon.hausmann (a] nokia.com> 3666 3667 Reviewed by Tor Arne Vestb. 3668 3669 Make Software Input Panel requests work with QGraphicsWebView 3670 _and_ QWebView by sharing the event code in handleSoftwareInputPanel(). 3671 3672 * Api/qwebpage.cpp: 3673 (QWebPagePrivate::mouseReleaseEvent): 3674 (QWebPagePrivate::handleSoftwareInputPanel): 3675 * Api/qwebpage_p.h: 3676 3677 2009-10-01 Alexis Menard <alexis.menard (a] nokia.com> 3678 3679 Reviewed by Tor Arne Vestb. 3680 3681 Rename QWebGraphicsItem to QGraphicsWebView 3682 3683 * Api/headers.pri: 3684 * Api/qwebpage.h: 3685 * Api/qwebgraphicsitem.cpp: Renamed. 3686 * Api/qwebgraphicsitem.h: Renamed. 3687 * WebKit/qt/QGVLauncher/main.cpp: 3688 * tests/tests.pro: 3689 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Renamed. 3690 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Renamed. 3691 3692 2009-10-01 Antonio Gomes <tonikitoo (a] webkit.org> 3693 3694 Reviewed by Simon Hausmann. 3695 3696 https://bugs.webkit.org/show_bug.cgi?id=29248 3697 [Qt] [API] Make it possible to have 'invisible' loads 3698 3699 Make QWebFrame's setHtml and setContent methods to not change 3700 session and global history at all. 3701 3702 * Api/qwebframe.cpp: 3703 (QWebFrame::setHtml): 3704 (QWebFrame::setContent): 3705 * tests/qwebframe/qwebframe.pro: 3706 * tests/qwebframe/tst_qwebframe.cpp: 3707 3708 2009-10-01 Kristian Amlie <kristian.amlie (a] nokia.com> 3709 3710 Reviewed by Simon Hausmann. 3711 3712 Fixed software input panel support on web input elements. 3713 3714 Send the RequestSoftwareInputPanel event if the element supports focus 3715 and the element is clicked. 3716 3717 * Api/qwebpage.cpp: 3718 (QWebPagePrivate::QWebPagePrivate): 3719 (QWebPagePrivate::mousePressEvent): 3720 (QWebPagePrivate::mouseReleaseEvent): 3721 * Api/qwebpage_p.h: 3722 3723 2009-10-01 Joe Ligman <joseph.ligman (a] nokia.com> 3724 3725 Reviewed by Simon Hausmann. 3726 3727 Implementation for QWebPage::inputMethodQuery and QWebPagePrivate::inputMethodEvent 3728 3729 https://bugs.webkit.org/show_bug.cgi?id=29681 3730 3731 Some additional changes from Kristian Amlie <kristian.amlie (a] nokia.com>: 3732 3733 * Fixed surrounding text to exclude preedit string 3734 * Avoid emission of microFocusChanged during setComposition() 3735 3736 * Api/qwebpage.cpp: 3737 (QWebPagePrivate::inputMethodEvent): 3738 (QWebPage::inputMethodQuery): 3739 * WebCoreSupport/EditorClientQt.cpp: 3740 (WebCore::EditorClientQt::respondToChangedSelection): 3741 * tests/qwebpage/tst_qwebpage.cpp: 3742 (tst_QWebPage::inputMethods): 3743 3744 2009-09-30 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 3745 3746 Reviewed by David Hyatt. 3747 3748 Add the failed URL to the ErrorPageExtension, as it is quite 3749 useful for creating error pages. 3750 3751 * Api/qwebpage.h: 3752 * WebCoreSupport/FrameLoaderClientQt.cpp: 3753 (WebCore::FrameLoaderClientQt::callErrorPageExtension): 3754 3755 2009-09-29 Andras Becsi <becsi.andras (a] stud.u-szeged.hu> 3756 3757 Reviewed by Tor Arne Vestb. 3758 3759 [Qt] Default font size reconciliation to 16px/13px to match other platform's de-facto standard. 3760 This fixes https://bugs.webkit.org/show_bug.cgi?id=19674. 3761 3762 * Api/qwebsettings.cpp: 3763 (QWebSettings::QWebSettings): 3764 3765 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki (a] nokia.com> 3766 3767 Reviewed by Simon Hausmann. 3768 3769 https://bugs.webkit.org/show_bug.cgi?id=29844 3770 3771 QWebPage dependency autotest fix. 3772 3773 Fix for database() autotest. All opened databases should be removed at 3774 end of test. 3775 3776 * tests/qwebpage/tst_qwebpage.cpp: 3777 (tst_QWebPage::database): 3778 3779 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki (a] nokia.com> 3780 3781 Reviewed by Simon Hausmann. 3782 3783 Some QWebHistory and QWebPage autotest crash fixes. 3784 3785 Some checking for m_mainFrame were added. MainFrame should be created 3786 at some point of QWebPage live cicle. 3787 3788 https://bugs.webkit.org/show_bug.cgi?id=29803 3789 3790 * Api/qwebpage.cpp: 3791 (QWebPage::~QWebPage): 3792 (QWebPage::currentFrame): 3793 (QWebPage::history): 3794 (QWebPage::selectedText): 3795 (QWebPage::updatePositionDependentActions): 3796 * tests/qwebpage/tst_qwebpage.cpp: 3797 (tst_QWebPage::crashTests_LazyInitializationOfMainFrame): 3798 3799 2009-09-29 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 3800 3801 Reviewed by Simon Hausmann and Tor Arne Vestb. 3802 3803 Implement QWebPage Extension for error pages, incl. 3804 an example on how to use it in QtLauncher. 3805 3806 Correct our use of ResourceError. 3807 3808 * Api/qwebpage.h: 3809 (ExtensionOption::): 3810 (ExtensionOption::ErrorPageExtensionReturn::ErrorPageExtensionReturn): 3811 * QtLauncher/main.cpp: 3812 (WebPage::supportsExtension): 3813 (MainWindow::MainWindow): 3814 (MainWindow::selectElements): 3815 (WebPage::extension): 3816 * WebCoreSupport/FrameLoaderClientQt.cpp: 3817 (WebCore::FrameLoaderClientQt::cancelledError): 3818 (WebCore::FrameLoaderClientQt::blockedError): 3819 (WebCore::FrameLoaderClientQt::cannotShowURLError): 3820 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 3821 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError): 3822 (WebCore::FrameLoaderClientQt::fileDoesNotExistError): 3823 (WebCore::FrameLoaderClientQt::callErrorPageExtension): 3824 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): 3825 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad): 3826 * WebCoreSupport/FrameLoaderClientQt.h: 3827 3828 2009-09-28 Andre Poenitz <andre.poenitz (a] trolltech.com> 3829 3830 Reviewed by Simon Hausmann. 3831 3832 Compile fix with namespaced Qt. 3833 3834 * Api/qwebinspector_p.h: 3835 3836 2009-09-27 Joe Ligman <joseph.ligman (a] mindspring.com> 3837 3838 Reviewed by Simon Hausmann. 3839 3840 [Qt] Adding API setFocus and hasFocus to QWebElement. This API is needed for 3841 clients that want to check/set the focus node of the document. 3842 https://bugs.webkit.org/show_bug.cgi?id=29682 3843 3844 * Api/qwebelement.cpp: 3845 (QWebElement::hasFocus): 3846 (QWebElement::setFocus): 3847 * Api/qwebelement.h: 3848 * tests/qwebelement/tst_qwebelement.cpp: 3849 (tst_QWebElement::hasSetFocus): 3850 3851 2009-09-25 Csaba Osztrogonac <oszi (a] inf.u-szeged.hu> 3852 3853 Reviewed by Simon Hausmann. 3854 3855 [Qt] Make tst_qwebframe work if Qt built without SSL support 3856 https://bugs.webkit.org/show_bug.cgi?id=29735 3857 3858 * tests/qwebframe/tst_qwebframe.cpp: Missing #ifndef blocks added. 3859 3860 2009-09-24 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 3861 3862 Reviewed by Simon Hausmann. 3863 3864 [Qt] Update QWebElement API to remove script related methods. 3865 QWebElement::evaluateScript is the only one kept, these are 3866 removed to postpone most of the QtWebKit<->JavaScript API design 3867 after 4.6. 3868 https://bugs.webkit.org/show_bug.cgi?id=29708 3869 3870 * Api/qwebelement.cpp: 3871 * Api/qwebelement.h: 3872 Methods removed: 3873 - QWebElement::callFunction 3874 - QWebElement::functions 3875 - QWebElement::scriptableProperty 3876 - QWebElement::setScriptableProperty 3877 - QWebElement::scriptableProperties 3878 * tests/qwebelement/tst_qwebelement.cpp: 3879 (tst_QWebElement::evaluateScript): 3880 3881 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 3882 3883 Reviewed by Simon Hausmann. 3884 3885 [Qt] Rename QWebElement::evaluateScript 3886 to QWebElement::evaluateJavaScript. 3887 https://bugs.webkit.org/show_bug.cgi?id=29709 3888 3889 * Api/qwebelement.cpp: 3890 (QWebElement::evaluateJavaScript): 3891 * Api/qwebelement.h: 3892 * tests/qwebelement/tst_qwebelement.cpp: 3893 (tst_QWebElement::evaluateJavaScript): 3894 3895 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 3896 3897 Reviewed by Simon Hausmann. 3898 3899 [Qt] Update the stypeProperty API of QWebElement. 3900 https://bugs.webkit.org/show_bug.cgi?id=29711 3901 3902 * Api/qwebelement.cpp: 3903 (QWebElement::styleProperty): 3904 - Merge the stypeProperty and the computedStyleProperty methods 3905 - Remove the default value for the style resolving enum 3906 - Rename ResolveRule to StyleResolveStrategy 3907 (QWebElement::setStyleProperty): 3908 - Remove the priority argument since it is possible to control the 3909 behaviour by adding !important or removing in the value. 3910 * Api/qwebelement.h: 3911 * tests/qwebelement/tst_qwebelement.cpp: 3912 (tst_QWebElement::style): 3913 (tst_QWebElement::computedStyle): 3914 * tests/qwebframe/tst_qwebframe.cpp: 3915 3916 2009-09-24 Jon Honeycutt <jhoneycutt (a] apple.com> 3917 3918 Reviewed by Alice Liu. 3919 3920 * Api/qwebpage.cpp: 3921 (QWebPagePrivate::QWebPagePrivate): 3922 Pass 0 for new Page constructor argument. 3923 3924 2009-09-24 Martin Smith <msmith (a] trolltech.com> 3925 3926 Reviewed by Simon Hausmann. 3927 3928 qdoc: Added \brief texts to all the since 4.6 functions. 3929 3930 * Api/qwebhistory.cpp: 3931 3932 2009-09-23 J-P Nurmi <jpnurmi (a] gmail.com> 3933 3934 Reviewed by Simon Hausmann. 3935 3936 Prevent QWebPage::setView() from changing the viewport size on the fly 3937 in case the view doesn't actually change. QWebPage::setView() is 3938 called upon every QWebGraphicsItem::hoverMoveEvent(), which forced 3939 the viewport size to be equal to the size of the whole graphics view. 3940 3941 https://bugs.webkit.org/show_bug.cgi?id=29676 3942 3943 * Api/qwebpage.cpp: 3944 (QWebPage::setView): 3945 3946 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki (a] nokia.com> 3947 3948 Reviewed by Simon Hausmann. 3949 3950 [Qt] Crash fix in QWebHistory back and forward methods. 3951 3952 QWebHistory::back() and QWebHistory::forward() were crashing on 3953 ASSERT in WebCore::BackForwardList. The methods should check 3954 canGoBack() and canGoForward() at the beginning. 3955 3956 https://bugs.webkit.org/show_bug.cgi?id=29675 3957 3958 * Api/qwebhistory.cpp: 3959 (QWebHistory::back): 3960 (QWebHistory::forward): 3961 3962 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki (a] nokia.com> 3963 3964 Reviewed by Simon Hausmann. 3965 3966 [Qt] Bug fix. QWebHistory should call QWebPage::updateNavigationActions 3967 3968 In QWebHistory's methods that change item count or current item call 3969 to QWebPage::updateNavigationActions should be executed. 3970 QWebHistory::clear() and QWebHistory::restorState() were changed. 3971 New helper method, QWebPagePrivate accesor, were created in 3972 QWebHistoryPrivate class. 3973 Two autotest were developed. 3974 3975 https://bugs.webkit.org/show_bug.cgi?id=29246 3976 3977 * Api/qwebhistory.cpp: 3978 (QWebHistory::clear): 3979 (QWebHistory::restoreState): 3980 (QWebHistoryPrivate::page): 3981 * Api/qwebhistory_p.h: 3982 * tests/qwebhistory/tst_qwebhistory.cpp: 3983 (tst_QWebHistory::saveAndRestore_1): 3984 (tst_QWebHistory::clear): 3985 3986 2009-09-23 Norbert Leser <norbert.leser (a] nokia.com> 3987 3988 Reviewed by Tor Arne Vestb. 3989 3990 Need to guard QX11Info include with Q_WS_X11. 3991 That class may not be available (in QT 4.5 for Symbian, for instance). 3992 Completes fixes in r48627 and r48604. 3993 3994 * Api/qwebgraphicsitem.cpp: 3995 * Api/qwebview.cpp: 3996 3997 2009-09-22 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 3998 3999 Reviewed by Simon Hausmann. 4000 4001 [Qt] Add default timeout while waiting for signals in QWebPage auto 4002 tests. 4003 https://bugs.webkit.org/show_bug.cgi?id=29637 4004 4005 * tests/qwebpage/tst_qwebpage.cpp: 4006 (waitForSignal): 4007 4008 2009-09-22 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 4009 4010 Reivewed by Simon Hausmann. 4011 4012 Fix the Qt/Mac build after r48604 (Implement new QWebPageClient class) 4013 4014 There's no QWidget::x11Info() on Mac, and setPlatformPluginWidget() 4015 takes a QWidget*, not a QWebPageClient* 4016 4017 * Api/qwebgraphicsitem.cpp: 4018 (QWebGraphicsItemPrivate::screenNumber): 4019 * Api/qwebview.cpp: 4020 (QWebViewPrivate::screenNumber): 4021 4022 2009-09-21 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 4023 4024 Reviewed by Simon Hausmann. 4025 4026 For Qt, platformPageClient() will now return a class derived from 4027 the QWebPageClient, so the patch adapts our Qt hooks to go though 4028 this class and not depend on the QWebView. 4029 4030 * Api/qwebgraphicsitem.cpp: 4031 (QWebGraphicsItemPrivate::scroll): 4032 (QWebGraphicsItemPrivate::update): 4033 (QWebGraphicsItemPrivate::cursor): 4034 (QWebGraphicsItemPrivate::updateCursor): 4035 (QWebGraphicsItemPrivate::screenNumber): 4036 (QWebGraphicsItemPrivate::winId): 4037 (QWebGraphicsItem::event): 4038 (QWebGraphicsItem::setPage): 4039 * Api/qwebgraphicsitem.h: 4040 * Api/qwebpage.cpp: 4041 (QWebPagePrivate::QWebPagePrivate): 4042 * Api/qwebpage_p.h: 4043 * Api/qwebview.cpp: 4044 (QWebViewPrivate::scroll): 4045 (QWebViewPrivate::update): 4046 (QWebViewPrivate::cursor): 4047 (QWebViewPrivate::updateCursor): 4048 (QWebViewPrivate::screenNumber): 4049 (QWebViewPrivate::winId): 4050 (QWebView::setPage): 4051 (QWebView::event): 4052 * WebCoreSupport/ChromeClientQt.cpp: 4053 (WebCore::ChromeClientQt::repaint): 4054 (WebCore::ChromeClientQt::scroll): 4055 (WebCore::ChromeClientQt::platformPageClient): 4056 4057 2009-09-21 Yael Aharon <yael.aharon (a] nokia.com> 4058 4059 Reviewed by Simon Hausmann. 4060 4061 https://bugs.webkit.org/show_bug.cgi?id=29609 4062 Build fix for windows when using Qt 4.5.0. 4063 4064 * Api/qwebpage.cpp: 4065 (QWebPage::userAgentForUrl): 4066 4067 2009-09-19 Benjamin Poulain <benjamin.poulain (a] nokia.com> 4068 4069 Reviewed by Simon Hausmann. 4070 4071 https://bugs.webkit.org/show_bug.cgi?id=29345 4072 The tests of QWebFrame did not use QTRY_VERIFY for 4073 tests involving the event loop. 4074 4075 * tests/qwebframe/tst_qwebframe.cpp: 4076 * tests/util.h: Added. Copy of tests/shared/util.h of Qt 4077 4078 2009-09-19 Jakub Wieczorek <faw217 (a] gmail.com> 4079 4080 Reviewed by Simon Hausmann. 4081 4082 [Qt] Add an autotest stub for QWebGraphicsItem. 4083 4084 It just calls all the functions and makes sure they don't crash. 4085 4086 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Added. 4087 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Added. 4088 (tst_QWebGraphicsItem::qwebgraphicsitem): 4089 * tests/tests.pro: 4090 4091 2009-09-18 Norbert Leser <norbert.leser (a] nokia.com> 4092 4093 Reviewed by Eric Seidel. 4094 4095 Corrected the Symbian specific UID3 values to be assigned 4096 from the "unprotected" pool that permits self-signing of 4097 those test and demo executables. (Added new UID3 values 4098 where they were missing for new components.) 4099 4100 * QGVLauncher/QGVLauncher.pro: 4101 * QtLauncher/QtLauncher.pro: 4102 * tests/benchmarks/loading/tst_loading.pro: 4103 * tests/benchmarks/painting/tst_painting.pro: 4104 * tests/qwebelement/qwebelement.pro: 4105 * tests/qwebframe/qwebframe.pro: 4106 * tests/qwebhistory/qwebhistory.pro: 4107 * tests/qwebhistoryinterface/qwebhistoryinterface.pro: 4108 * tests/qwebpage/qwebpage.pro: 4109 * tests/qwebplugindatabase/qwebplugindatabase.pro: 4110 * tests/qwebview/qwebview.pro: 4111 4112 2009-09-17 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 4113 4114 Reviewed by Simon Hausmann. 4115 4116 Make PlatformWindow return something else than PlatformWidget 4117 https://bugs.webkit.org/show_bug.cgi?id=29085 4118 4119 Reflect the rename of platformWindow and it's return type. 4120 4121 * WebCoreSupport/ChromeClientQt.cpp: 4122 (WebCore::ChromeClientQt::platformPageClient): 4123 * WebCoreSupport/ChromeClientQt.h: 4124 4125 2009-09-18 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 4126 4127 Reviewed by Simon Hausmann. 4128 4129 [Qt] Add persistence support for configuration options in the 4130 inspector. 4131 4132 * Api/qwebinspector.cpp: 4133 * QtLauncher/main.cpp: 4134 (main): 4135 * WebCoreSupport/InspectorClientQt.cpp: 4136 (WebCore::InspectorClientQt::populateSetting): 4137 (WebCore::InspectorClientQt::storeSetting): 4138 (WebCore::variantToSetting): 4139 (WebCore::settingToVariant): 4140 4141 2009-09-18 Simon Hausmann <simon.hausmann (a] nokia.com> 4142 4143 Reviewed by Ariya Hidayat. 4144 4145 Fixed a bunch of documentation warnings. 4146 4147 * Api/qwebgraphicsitem.cpp: 4148 * Api/qwebplugindatabase.cpp: 4149 * Api/qwebpluginfactory.cpp: 4150 * Api/qwebsecurityorigin.cpp: 4151 4152 2009-09-18 Warwick Allison <warwick.allison (a] nokia.com> 4153 4154 Reviewed by Simon Hausmann. 4155 4156 Added a test that console output works. 4157 4158 * tests/qwebpage/tst_qwebpage.cpp: 4159 (ConsolePage::ConsolePage): 4160 (ConsolePage::javaScriptConsoleMessage): 4161 (tst_QWebPage::consoleOutput): 4162 4163 2009-09-17 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 4164 4165 Reviewed by Simon Hausmann. 4166 4167 Improve documentation for Page Cache. 4168 4169 * Api/qwebsettings.cpp: 4170 4171 2009-09-17 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 4172 4173 Reviewed by Simon Hausmann. 4174 4175 [Qt] Update QWebSettings::setUserStyleSheetUrl() docs and test 4176 4177 https://bugs.webkit.org/show_bug.cgi?id=29081 4178 4179 The documentation now specifies that the URL has to be a local file 4180 or a a data-URL (with utf-8 and base64-encoded data), as these are the 4181 only two schemes that the current code path accepts. 4182 4183 The auto-test has been updated to reflect this limitation. 4184 4185 At a later point we should concider adding API for the new way of 4186 doing both user defined stylesheets and scripts. 4187 4188 * Api/qwebsettings.cpp: 4189 * tests/qwebpage/tst_qwebpage.cpp: 4190 4191 2009-09-17 Janne Koskinen <janne.p.koskinen (a] digia.com> 4192 4193 Reviewed by Simon Hausmann. 4194 4195 Symbian build fix. 4196 4197 Moved the #ifdefs around _q_cleanupLeakMessages() into the function 4198 definition. 4199 4200 QMake is not being able to distinguish between release and debug builds 4201 in Symbian build. This is a Symbian toolchain issue. 4202 4203 * Api/qwebpage.cpp: 4204 (QWebPagePrivate::_q_cleanupLeakMessages): 4205 * Api/qwebpage.h: 4206 * Api/qwebpage_p.h: 4207 4208 2009-09-17 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 4209 4210 Reviewed by Simon Hausmann. 4211 4212 Small cosmetic documentation fixlet in the QWebInspector. 4213 4214 * Api/qwebinspector.cpp: 4215 4216 2009-09-16 Benjamin C Meyer <benjamin.meyer (a] torchmobile.com> 4217 4218 Reviewed by Eric Seidel. 4219 4220 Detect and add Windows7 properly to the user agent. 4221 4222 * Api/qwebpage.cpp: 4223 (QWebPage::userAgentForUrl): 4224 4225 2009-09-16 Andras Becsi <andrewbecsi (a] yahoo.co.uk> 4226 4227 Rubberstamped by Kenneth Christiansen. 4228 4229 [Qt] Build fix for previous changes. 4230 4231 * QGVLauncher/main.cpp: 4232 (MainView::flip): 4233 4234 2009-09-16 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 4235 4236 Unreviewed potential Qt < 4.6 build fix. 4237 4238 * QGVLauncher/main.cpp: 4239 (MainView::flip): 4240 4241 2009-09-16 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 4242 4243 Reviewed by Simon Hausmann. 4244 4245 Add a "Flip effect" to our GraphicsView based launcher. 4246 4247 * QGVLauncher/main.cpp: 4248 (MainView::resizeEvent): 4249 (MainView::flip): 4250 (MainWindow::flip): 4251 (MainWindow::buildUI): 4252 4253 2009-09-16 Zoltan Herczeg <zherczeg (a] inf.u-szeged.hu> 4254 4255 Rubber-stamped by Simon Hausmann. 4256 4257 [Qt] Typo fix. Pass the window object to the Format 4258 menu. In this way Qt can free its internal graphical 4259 objects during exit. 4260 4261 * QtLauncher/main.cpp: 4262 (MainWindow::setupUI): 4263 4264 2009-09-16 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 4265 4266 Reviewed by Tor Arne Vestb. 4267 4268 [Qt] Build break fix on gcc ARM. 4269 4270 * Api/qwebgraphicsitem.cpp: 4271 (QWebGraphicsItemPrivate::_q_doLoadProgress): 4272 4273 2009-09-16 Warwick Allison <warwick.allison (a] nokia.com> 4274 4275 Reviewed by Simon Hausmann. 4276 4277 Fix a crash in QWebFrame::hasFocus() with a simple null pointer check 4278 when the focused frame is null. We do the same check in other places 4279 where we call kit(). 4280 4281 * Api/qwebframe.cpp: 4282 (QWebFrame::hasFocus): 4283 4284 2009-09-16 Jure Repinc <jlp (a] holodeck1.com> 4285 4286 Reviewed by Simon Hausmann. 4287 4288 Fixed a typo found during translation. 4289 4290 * WebCoreSupport/FrameLoaderClientQt.cpp: 4291 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 4292 4293 2009-09-14 Jakub Wieczorek <faw217 (a] gmail.com> 4294 4295 Reviewed by Simon Hausmann. 4296 4297 [Qt] QWebGraphicsItem should check for null QWebPage. 4298 https://bugs.webkit.org/show_bug.cgi?id=29185 4299 4300 Don't crash in QWebGraphicsItem when the page is still null, by 4301 either checking if it's the case or constructing the default one. 4302 4303 * Api/qwebgraphicsitem.cpp: 4304 (QWebGraphicsItem::icon): 4305 (QWebGraphicsItem::setZoomFactor): 4306 (QWebGraphicsItem::zoomFactor): 4307 (QWebGraphicsItem::setGeometry): 4308 (QWebGraphicsItem::load): 4309 (QWebGraphicsItem::setHtml): 4310 (QWebGraphicsItem::toHtml): 4311 (QWebGraphicsItem::setContent): 4312 (QWebGraphicsItem::history): 4313 (QWebGraphicsItem::settings): 4314 4315 2009-09-11 David Boddie <dboddie (a] trolltech.com> 4316 4317 Reviewed by Simon Hausmann. 4318 4319 Doc: Note that Netscape plugins are only available on desktop platforms. 4320 4321 * docs/qtwebkit.qdoc: 4322 4323 2009-09-11 Martin Smith <msmith (a] trolltech.com> 4324 4325 Reviewed by Simon Hausmann. 4326 4327 Adjust the name of the contentspage for the documentation 4328 to the new name used in Qt 4.6. 4329 4330 * docs/qtwebkit.qdoc: 4331 4332 2009-09-11 Ariya Hidayat <ariya.hidayat (a] nokia.com> 4333 4334 Reviewed by Simon Hausmann. 4335 4336 Changed URLs from qtsoftware.com to qt.nokia.com, as part of a general 4337 renaming. 4338 4339 * Api/qwebpluginfactory.cpp: 4340 * docs/webkitsnippets/simple/main.cpp: 4341 (main): 4342 * docs/webkitsnippets/webpage/main.cpp: 4343 (main): 4344 4345 2009-09-11 Volker Hilsheimer <volker.hilsheimer (a] nokia.com> 4346 4347 Reviewed by Simon Hausmann. 4348 4349 Restructure the documentation, both on a file and on a content level. 4350 4351 * Api/qwebdatabase.cpp: 4352 * Api/qwebelement.cpp: 4353 * Api/qwebframe.cpp: 4354 * Api/qwebhistory.cpp: 4355 * Api/qwebhistoryinterface.cpp: 4356 * Api/qwebpage.cpp: 4357 * Api/qwebpluginfactory.cpp: 4358 * Api/qwebsecurityorigin.cpp: 4359 * Api/qwebsettings.cpp: 4360 * Api/qwebview.cpp: 4361 * docs/qtwebkit.qdoc: 4362 4363 2009-09-11 Yongjun Zhang <yongjun.zhang (a] nokia.com> 4364 4365 Reviewed by Simon Hausmann. 4366 4367 https://bugs.webkit.org/show_bug.cgi?id=29136 4368 [Qt] emit microFocusChanged() signal when no QWidget-based view is present. 4369 4370 emit microFocusChange() signal regardless of view. 4371 4372 * WebCoreSupport/EditorClientQt.cpp: 4373 (WebCore::EditorClientQt::setInputMethodState): 4374 4375 2009-09-11 Jocelyn Turcotte <jocelyn.turcotte (a] nokia.com> 4376 4377 Reviewed by Simon Hausmann. 4378 4379 https://bugs.webkit.org/show_bug.cgi?id=28806 4380 4381 [Qt] Make the WebInspector available as a QWidget. 4382 4383 * Api/headers.pri: 4384 * Api/qwebelement.cpp: 4385 (QWebElement::enclosingElement): 4386 * Api/qwebelement.h: 4387 * Api/qwebinspector.cpp: Added. 4388 * Api/qwebinspector.h: Added. 4389 * Api/qwebinspector_p.h: Added. 4390 * Api/qwebpage.cpp: 4391 (QWebPagePrivate::QWebPagePrivate): 4392 (QWebPagePrivate::setInspector): 4393 (QWebPagePrivate::getOrCreateInspector): 4394 (QWebPagePrivate::inspectorController): 4395 (QWebPage::~QWebPage): 4396 (QWebPage::triggerAction): 4397 * Api/qwebpage.h: 4398 * Api/qwebpage_p.h: 4399 * Api/qwebsettings.cpp: 4400 * QtLauncher/main.cpp: 4401 (MainWindow::MainWindow): 4402 * WebCoreSupport/InspectorClientQt.cpp: 4403 (WebCore::InspectorClientWebPage::InspectorClientWebPage): 4404 (WebCore::InspectorClientWebPage::createWindow): 4405 (WebCore::InspectorClientQt::createPage): 4406 (WebCore::InspectorClientQt::showWindow): 4407 (WebCore::InspectorClientQt::closeWindow): 4408 (WebCore::InspectorClientQt::attachWindow): 4409 (WebCore::InspectorClientQt::detachWindow): 4410 (WebCore::InspectorClientQt::updateWindowTitle): 4411 * WebCoreSupport/InspectorClientQt.h: 4412 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp: Added. 4413 4414 2009-09-10 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 4415 4416 Reviewed by Eric Seidel. 4417 4418 [Qt] Fix comparison between signed and unsigned integer warnings 4419 https://bugs.webkit.org/show_bug.cgi?id=29162 4420 4421 No functional change. 4422 4423 * Api/qwebelement.cpp: 4424 (QWebElement::findAll): 4425 * Api/qwebhistory.cpp: 4426 (QWebHistory::items): 4427 (QWebHistory::backItems): 4428 (QWebHistory::forwardItems): 4429 (QWebHistory::saveState): 4430 * Api/qwebplugindatabase.cpp: 4431 (QWebPluginDatabase::setSearchPaths): 4432 * WebCoreSupport/ChromeClientQt.cpp: 4433 (WebCore::ChromeClientQt::runOpenPanel): 4434 * WebCoreSupport/FrameLoaderClientQt.cpp: 4435 (WebCore::FrameLoaderClientQt::createPlugin): 4436 4437 2009-09-10 Simon Hausmann <hausmann (a] webkit.org> 4438 4439 Rubber-stamped by Ariya Hidayat. 4440 4441 Fix a bunch of qdoc warnings: Invalid references, non-standard 4442 wording, etc. 4443 4444 * Api/qwebelement.cpp: 4445 * Api/qwebgraphicsitem.cpp: 4446 * Api/qwebsecurityorigin.cpp: 4447 4448 2009-09-10 Simon Hausmann <hausmann (a] webkit.org> 4449 4450 Reviewed by Ariya Hidayat. 4451 4452 Fix context menu event delivery with QWebGraphicsItem. 4453 4454 Re-implement the correct context menu virtual function using 4455 a QGraphicsSceneContextMenuEvent and forward & handle it in 4456 QWebPage. 4457 4458 * Api/qwebgraphicsitem.cpp: 4459 (QWebGraphicsItem::contextMenuEvent): 4460 * Api/qwebgraphicsitem.h: 4461 * Api/qwebpage.cpp: 4462 (QWebPagePrivate::contextMenuEvent): 4463 (QWebPage::event): 4464 * Api/qwebpage_p.h: 4465 4466 2009-09-10 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 4467 4468 Unreviewed. 4469 4470 Build fix for QtWebKit for Mac after r48219. 4471 4472 qevent and qstyleoption are QtGui interfaces. 4473 4474 * Api/qwebgraphicsitem.cpp: 4475 * Api/qwebgraphicsitem.h: 4476 4477 2009-09-09 Simon Hausmann <hausmann (a] webkit.org> 4478 4479 Reviewed by Tor Arne Vestb. 4480 4481 Call the right base class function QGraphicsWidget::event() instead 4482 of skipping it and using QObject::event() instead. 4483 4484 * Api/qwebgraphicsitem.cpp: 4485 (QWebGraphicsItem::event): 4486 4487 2009-09-09 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 4488 4489 Unreviewed. 4490 4491 Fix comment at Tor Arne Vestb's request. 4492 4493 * Api/qwebgraphicsitem.cpp: 4494 (QWebGraphicsItem::sceneEvent): 4495 (QWebGraphicsItem::event): 4496 4497 2009-09-09 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 4498 4499 Reviewed by Tor Arne Vestb. 4500 4501 Implement some virtual event methods so that we can fix 4502 event-related bugs in Qt patch releases. 4503 4504 * Api/qwebgraphicsitem.cpp: 4505 (QWebGraphicsItem::sceneEvent): 4506 (QWebGraphicsItem::event): 4507 * Api/qwebgraphicsitem.h: 4508 4509 2009-09-09 Kenneth Rohde Christiansen <kenneth (a] webkit.org>, Antonio Gomes <antonio.gomes (a] openbossa.org> 4510 4511 Reviewed by Simon Hausmann. 4512 4513 Add a new QGraphicsWidget based version of the "QWebView" 4514 under the name "QWebGraphicsItem". 4515 4516 https://bugs.webkit.org/show_bug.cgi?id=28862 4517 4518 Includes an alternative Qt launcher using the QGraphicsView. 4519 4520 * Api/headers.pri: 4521 * Api/qwebgraphicsitem.cpp: Added. 4522 * Api/qwebgraphicsitem.h: Added. 4523 * Api/qwebpage.h: 4524 * QGVLauncher/QGVLauncher.pro: Copied from WebKit/qt/QtLauncher/QtLauncher.pro. 4525 * QGVLauncher/main.cpp: Added. 4526 * WebCoreSupport/ChromeClientQt.cpp: 4527 (WebCore::ChromeClientQt::repaint): 4528 (WebCore::ChromeClientQt::scroll): 4529 4530 2009-09-08 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 4531 4532 Unreviewed build fix. 4533 4534 Potential build fix for Qt 4.5 4535 4536 * Api/qwebpage.cpp: 4537 (QWebPagePrivate::mousePressEvent): 4538 4539 2009-09-08 Benjamin Poulain <benjamin.poulain (a] nokia.com> 4540 4541 Reviewed by Simon Hausmann. 4542 4543 https://bugs.webkit.org/show_bug.cgi?id=29007 4544 Add a test for the signal QWebFrame::javaScriptWindowObjectCleared() 4545 4546 * tests/qwebframe/tst_qwebframe.cpp: 4547 4548 2009-09-08 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 4549 4550 Reviewed by Simon Hausmann. 4551 4552 [Qt] Fix unused variable warnings 4553 https://bugs.webkit.org/show_bug.cgi?id=29018 4554 4555 * Api/qwebpage.cpp: 4556 (QWebPagePrivate::keyPressEvent): 4557 * WebCoreSupport/FrameLoaderClientQt.cpp: 4558 (WebCore::FrameLoaderClientQt::startDownload): 4559 (WebCore::FrameLoaderClientQt::createFrame): 4560 4561 2009-09-08 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 4562 4563 Reviewed by Ariya Hidayat. 4564 4565 [Qt] Use the declaration order in initializer lists 4566 https://bugs.webkit.org/show_bug.cgi?id=29017 4567 4568 * Api/qwebframe_p.h: 4569 4570 2009-09-08 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 4571 4572 Reviewed by Simon Hausmann. 4573 4574 Add support for handling QGraphicsScene events. 4575 4576 * Api/qwebpage.cpp: 4577 (QWebPagePrivate::mouseMoveEvent): 4578 (QWebPagePrivate::mousePressEvent): 4579 (QWebPagePrivate::mouseDoubleClickEvent): 4580 (QWebPagePrivate::mouseTripleClickEvent): 4581 (QWebPagePrivate::handleClipboard): 4582 (QWebPagePrivate::mouseReleaseEvent): 4583 (QWebPagePrivate::wheelEvent): 4584 (QWebPagePrivate::dragEnterEvent): 4585 (QWebPagePrivate::dragLeaveEvent): 4586 (QWebPagePrivate::dragMoveEvent): 4587 (QWebPagePrivate::dropEvent): 4588 (QWebPage::event): 4589 * Api/qwebpage_p.h: 4590 4591 2009-09-08 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 4592 4593 Reviewed by Simon Hausmann. 4594 4595 [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack. 4596 https://bugs.webkit.org/show_bug.cgi?id=28865 4597 4598 Clean up the unserCursor hack to use the QCursor set 4599 as a property of the QWidget by WebCore::WidgetQt. 4600 4601 Remove all code that are no longer necessary for getting 4602 cursor change events. 4603 4604 Patch by Kenneth Rohde Christiansen <kenneth (a] webkit.org> and 4605 Antonio Gomes <antonio.gomes (a] openbossa.org> on 2009-09-07 4606 4607 * Api/qwebpage.cpp: 4608 * Api/qwebpage_p.h: 4609 * Api/qwebview.cpp: 4610 (QWebViewPrivate::QWebViewPrivate): 4611 (QWebView::event): 4612 4613 2009-09-08 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 4614 4615 Reviewed by Simon Hausmann. 4616 4617 [Qt] QtWebKit single API to enable persistency 4618 https://bugs.webkit.org/show_bug.cgi?id=28682 4619 4620 Disable LocalStorage, ApplicationCache, HTML5 offline storage by 4621 default. 4622 4623 If persistency is enabled the default directory for LocalStorage and 4624 ApplicationCache is now based on QDesktopServices::DataLocation and not 4625 QDesktopServices::CacheLocation (as it is expected to keep this data 4626 around after a reboot). 4627 4628 If persistency is enabled initialize HTML5 offline storage as well - this 4629 fixed offline Storage for QtLauncher. 4630 4631 * Api/qwebpage.cpp: 4632 (QWebPagePrivate::QWebPagePrivate): 4633 * Api/qwebsettings.cpp: 4634 (QWebSettings::QWebSettings): 4635 (QWebSettings::enablePersistentStorage): 4636 * Api/qwebsettings.h: Add a new API called enablePersistentStorage 4637 * QtLauncher/main.cpp: Use the new enablePersistentStorage API 4638 (main): 4639 4640 2009-09-07 Jakub Wieczorek <faw217 (a] gmail.com> 4641 4642 Reviewed by Simon Hausmann. 4643 4644 Speed up the QWebPluginInfo::supportsMimeType() function. 4645 https://bugs.webkit.org/show_bug.cgi?id=27651 4646 4647 Instead of going through the MIME types list constructed with 4648 mimeTypes() function, look up the internal mimeToDescriptions map. 4649 4650 * Api/qwebplugindatabase.cpp: 4651 (QWebPluginInfo::supportsMimeType): 4652 4653 2009-09-07 Jakub Wieczorek <faw217 (a] gmail.com> 4654 4655 Reviewed by Simon Hausmann. 4656 4657 Speed up the QWebPluginInfo::mimeTypes() function. 4658 https://bugs.webkit.org/show_bug.cgi?id=27651 4659 4660 Instead of constructing a list of MIME types every time it is called, 4661 do this only once. 4662 4663 * Api/qwebplugindatabase.cpp: 4664 (QWebPluginInfo::mimeTypes): 4665 (QWebPluginInfo::operator=): 4666 * Api/qwebplugindatabase.h: 4667 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp: 4668 (tst_QWebPluginDatabase::operatorassign_data): 4669 (tst_QWebPluginDatabase::operatorassign): 4670 4671 2009-09-07 Jakub Wieczorek <faw217 (a] gmail.com> 4672 4673 Reviewed by Simon Hausmann. 4674 4675 Remove the private classes from QWebPluginDatabase. 4676 https://bugs.webkit.org/show_bug.cgi?id=27651 4677 4678 Instead, hold the PluginDatabase and PluginPackage objects as class 4679 members and take care of refcounting on our own instead of using RefPtr. 4680 4681 This way we not only made the code cleaner but also got rid of 4682 redundant allocations when constructing null QWebPluginInfo objects. 4683 4684 The private classes have been forward-declared and the d-pointers left 4685 to be on the safe side. 4686 4687 * Api/qwebplugindatabase.cpp: 4688 (QWebPluginInfo::QWebPluginInfo): 4689 (QWebPluginInfo::~QWebPluginInfo): 4690 (QWebPluginInfo::name): 4691 (QWebPluginInfo::description): 4692 (QWebPluginInfo::mimeTypes): 4693 (QWebPluginInfo::path): 4694 (QWebPluginInfo::isNull): 4695 (QWebPluginInfo::setEnabled): 4696 (QWebPluginInfo::isEnabled): 4697 (QWebPluginInfo::operator==): 4698 (QWebPluginInfo::operator!=): 4699 (QWebPluginInfo::operator=): 4700 (QWebPluginDatabase::QWebPluginDatabase): 4701 (QWebPluginDatabase::~QWebPluginDatabase): 4702 (QWebPluginDatabase::plugins): 4703 (QWebPluginDatabase::searchPaths): 4704 (QWebPluginDatabase::setSearchPaths): 4705 (QWebPluginDatabase::addSearchPath): 4706 (QWebPluginDatabase::refresh): 4707 (QWebPluginDatabase::pluginForMimeType): 4708 (QWebPluginDatabase::setPreferredPluginForMimeType): 4709 * Api/qwebplugindatabase.h: 4710 * Api/qwebplugindatabase_p.h: Removed. 4711 4712 2009-09-05 Jakub Wieczorek <faw217 (a] gmail.com> 4713 4714 Reviewed by Eric Seidel. 4715 4716 [Qt] r47424 broke binary compatibility 4717 https://bugs.webkit.org/show_bug.cgi?id=28996 4718 4719 Append the new DnsPrefetchEnabled attribute at the end of the enum. 4720 4721 * Api/qwebsettings.h: 4722 4723 2009-09-04 Mark Mentovai <mark (a] chromium.org> 4724 4725 Reviewed by Dave Hyatt. 4726 4727 https://bugs.webkit.org/show_bug.cgi?id=28614 4728 4729 Account for scrollbar state changes that occur during layout. 4730 4731 * Api/qwebframe.cpp: 4732 (QWebFrame::setScrollBarPolicy): 4733 4734 Eliminate duplicated (and incorrect) scrollbar mode tracking between 4735 FrameView and ScrollView. 4736 4737 2009-09-04 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 4738 4739 Reviewed by Eric Seidel. 4740 4741 [Qt] Fix tst_QWebPage::database autotest failure 4742 https://bugs.webkit.org/show_bug.cgi?id=28961 4743 4744 Make sure that the test case enables the feature before 4745 the feature gets tested 4746 4747 * tests/qwebpage/tst_qwebpage.cpp: 4748 (tst_QWebPage::database): 4749 4750 2009-09-04 Benjamin C Meyer <benjamin.meyer (a] torchmobile.com> 4751 4752 Reviewed by Eric Seidel. 4753 4754 Any QtWebKit application crashes on exit if the inspector is 4755 used during the session rather then exiting. 4756 4757 If a QWebView has a QWebPage that is destroyed the QWebView 4758 does not update its pointer and will crash the next time 4759 it access the page pointers (such as in its destructor). 4760 4761 InspectorClientView should not call deleteLater when the page 4762 is destroyed because it does not have a parent and is a top 4763 level widget. close() needs to be called so that QApplication 4764 can exit the application if quitOnLastWindowClosed is set 4765 and a InspectorClientView is the last window, otherwise 4766 the application will never exit. 4767 4768 * Api/qwebview.cpp: 4769 (QWebViewPrivate::_q_pageDestroyed): 4770 (QWebView::setPage): 4771 * Api/qwebview.h: 4772 * WebCoreSupport/InspectorClientQt.cpp: 4773 (WebCore::InspectorClientView::InspectorClientView): 4774 4775 2009-09-03 Adam Barth <abarth (a] webkit.org> 4776 4777 Reviewed by eric (a] webkit.org. 4778 4779 https://bugs.webkit.org/show_bug.cgi?id=24696 4780 4781 Stub implementations of mixed content methods of FrameLoaderClient. 4782 4783 * WebCoreSupport/FrameLoaderClientQt.cpp: 4784 (WebCore::FrameLoaderClientQt::didDisplayInsecureContent): 4785 (WebCore::FrameLoaderClientQt::didRunInsecureContent): 4786 * WebCoreSupport/FrameLoaderClientQt.h: 4787 4788 2009-09-03 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 4789 4790 Reviewed by Eric Seidel. 4791 4792 [Qt] Add a setting to turn SessionStorage on/off 4793 https://bugs.webkit.org/show_bug.cgi?id=28836 4794 4795 * Api/qwebsettings.cpp: 4796 (QWebSettingsPrivate::apply): 4797 (QWebSettings::QWebSettings): 4798 * Api/qwebsettings.h: 4799 * tests/qwebpage/tst_qwebpage.cpp: 4800 (testFlag): 4801 (tst_QWebPage::testOptionalJSObjects): 4802 4803 2009-09-02 Richard Moore <rich (a] kde.org> 4804 4805 Reviewed by Tor Arne Vestb. 4806 4807 [Qt] Make sure we relayout the page after evaluating JS 4808 4809 https://bugs.webkit.org/show_bug.cgi?id=28235 4810 4811 QtWebKit does not always seem to reflow the page when evaluating 4812 javascript. This patch changes the way evaluateJavaScript works to 4813 use the frameloader which ensures that this is done properly. 4814 4815 * Api/qwebframe.cpp: 4816 (QWebFrame::evaluateJavaScript): 4817 * tests/qwebframe/tst_qwebframe.cpp: 4818 4819 2009-08-28 Gustavo Noronha Silva <gustavo.noronha (a] collabora.co.uk> 4820 4821 Reviewed by Holger Freyther. 4822 4823 https://bugs.webkit.org/show_bug.cgi?id=25889 4824 [GTK] scrollbar policy for main frame is not implementable 4825 4826 Add empty implementation for new ChromeClient method. 4827 4828 * WebCoreSupport/ChromeClientQt.h: 4829 (WebCore::ChromeClientQt::scrollbarsModeDidChange): 4830 4831 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki (a] nokia.com> 4832 4833 Reviewed by Ariya Hidayat. 4834 4835 QWebHistory::clear() modifications. 4836 4837 Clear() method was changed. If QWebHistory is empty (there is no 4838 elements even current) clear() do nothing. If there at least one 4839 element clear() will delete everything apart of current. 4840 4841 New autotests in QWebHistory 4842 4843 New autotests were added to QWebHistory. They should check some crashes 4844 in save and restore state process and clear() method and general 4845 behavior on where QWebHistory::count() == 0 or QWebHistory::count() == 1 4846 4847 Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=28711 4848 4849 * Api/qwebhistory.cpp: 4850 (QWebHistory::clear): 4851 * tests/qwebhistory/tst_qwebhistory.cpp: 4852 (tst_QWebHistory::back): 4853 (tst_QWebHistory::forward): 4854 (tst_QWebHistory::saveAndRestore_crash_1): 4855 (tst_QWebHistory::saveAndRestore_crash_2): 4856 (tst_QWebHistory::saveAndRestore_crash_3): 4857 (tst_QWebHistory::clear): 4858 4859 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki (a] nokia.com> 4860 4861 Reviewed by Ariya Hidayat. 4862 4863 [Qt] Cleanup, old and commented part of source code was removed. 4864 Fix some formatting problems. 4865 4866 https://bugs.webkit.org/show_bug.cgi?id=28712 4867 4868 * Api/qwebhistory_p.h: 4869 (QWebHistoryPrivate::QWebHistoryPrivate): 4870 4871 2009-08-26 Adam Barth <abarth (a] webkit.org> 4872 4873 Reviewed by Oliver Hunt. 4874 4875 Don't let local files access web URLs 4876 https://bugs.webkit.org/show_bug.cgi?id=28480 4877 4878 * Api/qwebsettings.cpp: 4879 (QWebSettings::QWebSettings): 4880 4881 2009-08-25 Antonio Gomes <antonio.gomes (a] openbossa.org> 4882 4883 Reviewed by Ariya Hidayat. 4884 4885 Bug 28708 - Make possible to better use ResourceError in FrameLoaderClientQt class. 4886 4887 * Api/qwebframe.cpp: 4888 (QWebFrame::requestedUrl): 4889 * WebCoreSupport/FrameLoaderClientQt.cpp: 4890 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 4891 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 4892 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): 4893 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): 4894 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad): 4895 * WebCoreSupport/FrameLoaderClientQt.h: 4896 4897 2009-08-22 Adam Barth <abarth (a] webkit.org> 4898 4899 Revert 47684. We're going to do this later once clients have had a 4900 chance to opt into the setting they like. 4901 4902 * Api/qwebsettings.cpp: 4903 (QWebSettings::QWebSettings): 4904 4905 2009-08-22 Adam Barth <abarth (a] webkit.org> 4906 4907 Reviewed by Eric Seidel. 4908 4909 Don't let local files access web URLs 4910 https://bugs.webkit.org/show_bug.cgi?id=28480 4911 4912 * Api/qwebsettings.cpp: 4913 (QWebSettings::QWebSettings): 4914 4915 2009-08-19 Aaron Boodman <aa (a] chromium.org> 4916 4917 Speculative build break fix for qt. 4918 4919 * Api/qwebsecurityorigin.cpp: 4920 (QWebSecurityOrigin::whiteListAccessFromOrigin): 4921 * Api/qwebsecurityorigin.h: 4922 4923 2009-08-19 Aaron Boodman <aa (a] chromium.org> 4924 4925 Reviewed by David Levin. 4926 4927 https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to 4928 specify a more granular policy for cross-origin XHR access. 4929 4930 * Api/qwebsecurityorigin.cpp: Add API to manipulate origin access whitelists. 4931 (QWebSecurityOrigin::whiteListAccessFromOrigin): Ditto. 4932 (QWebSecurityOrigin::resetOriginAccessWhiteLists): Ditto. 4933 * Api/qwebsecurityorigin.h: Ditto. 4934 4935 2009-08-18 Markus Goetz <Markus.Goetz (a] nokia.com> 4936 4937 Reviwed by Ariya Hidayat. 4938 4939 [Qt] For prefecthDNS, the pre-fetching has to be enabled in the 4940 WebSettings. 4941 4942 * Api/qwebsettings.cpp: 4943 (QWebSettings::QWebSettings): 4944 * Api/qwebsettings.h: 4945 4946 2009-08-17 Darin Adler <darin (a] apple.com> 4947 4948 Try to fix Qt build again. 4949 4950 * WebCoreSupport/EditorClientQt.cpp: Move "using namespace". 4951 4952 2009-08-17 Darin Adler <darin (a] apple.com> 4953 4954 Try to fix Qt build. 4955 4956 * WebCoreSupport/EditorClientQt.cpp: 4957 (WebCore::EditorClientQt::shouldShowDeleteInterface): 4958 Use getAttribute(classAttr) instead of className() function. 4959 4960 2009-08-14 Yongjun Zhang <yongjun.zhang (a] nokia.com> 4961 4962 Reviewed by Simon Hausmann. 4963 4964 RVCT elftran fails to resolve QPainter::staticMetaObject coming with 4965 QWebView::RenderHints property. 4966 4967 This is a temporary fix and will be revereted when the right symbols 4968 exported from Qt lib in S60. 4969 4970 https://bugs.webkit.org/show_bug.cgi?id=28181 4971 4972 * Api/qwebview.h: 4973 4974 2009-08-14 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 4975 4976 Reviewed by Simon Hausmann. 4977 4978 [Qt] Public API to configure the storage path for HTML5 localStorage 4979 https://bugs.webkit.org/show_bug.cgi?id=28036 4980 4981 Disables LocalStorage for QtWebKit by default by setting 4982 QWebSettings::LocalStorageEnabled to false. 4983 4984 Sets up a default for the LocalStorage path so that clients would only 4985 need to enable the LocalStorageEnabled setting to turn on LocalStoragre 4986 support. 4987 4988 Turn on LocalStorage support for QtLauncher and the relevant test 4989 since LocalStorage is now disabled by default for QtWebkit. 4990 4991 * Api/qwebpage.cpp: 4992 (defaultCachePath): 4993 (initializeApplicationCachePathIfNecessary): 4994 (QWebPagePrivate::QWebPagePrivate): 4995 * Api/qwebsettings.cpp: 4996 (QWebSettingsPrivate::apply): 4997 (QWebSettings::QWebSettings): 4998 (QWebSettings::setLocalStoragePath): 4999 (QWebSettings::localStoragePath): 5000 * Api/qwebsettings.h: 5001 * QtLauncher/main.cpp: 5002 (main): 5003 * tests/qwebpage/tst_qwebpage.cpp: 5004 (tst_QWebPage::multiplePageGroupsAndLocalStorage): 5005 5006 2009-08-14 Yael Aharon <yael.aharon (a] nokia.com> 5007 5008 Reviewed by Simon Hausmann. 5009 5010 [Qt] Allow applications to register their own local URL scheme. 5011 https://bugs.webkit.org/show_bug.cgi?id=28240 5012 5013 * Api/qwebsecurityorigin.cpp: 5014 (QWebSecurityOrigin::addLocalScheme): 5015 (QWebSecurityOrigin::removeLocalScheme): 5016 (QWebSecurityOrigin::localSchemes): 5017 * Api/qwebsecurityorigin.h: 5018 * tests/qwebpage/tst_qwebpage.cpp: 5019 (tst_QWebPage::localURLSchemes): 5020 5021 2009-08-13 Mark Rowe <mrowe (a] apple.com> 5022 5023 Try and fix the Qt build. 5024 5025 * Api/qwebelement.cpp: 5026 5027 2009-08-13 Kavindra Devi Palaraja <kavindra.palaraja (a] nokia.com> 5028 5029 Reviewed by Simon Hausmann. 5030 5031 Doc - Some cleanup on the documentation of QWebElement 5032 5033 * Api/qwebelement.cpp: 5034 5035 2009-08-13 Norbert Leser <norbert.leser (a] nokia.com> 5036 5037 Reviewed by Simon Hausmann. 5038 5039 Symbian target components (library and executable files) 5040 require Unique Identifiers (i.e., UID3). 5041 These identifiers are defined in the respective project 5042 files, conditionally for "symbian" platform. 5043 5044 * QtLauncher/QtLauncher.pro: 5045 * tests/qwebelement/qwebelement.pro: 5046 * tests/qwebframe/qwebframe.pro: 5047 * tests/qwebhistory/qwebhistory.pro: 5048 * tests/qwebhistoryinterface/qwebhistoryinterface.pro: 5049 * tests/qwebpage/qwebpage.pro: 5050 * tests/qwebview/qwebview.pro: 5051 5052 2009-08-12 George Wright <george.wright (a] torchmobile.com> 5053 5054 Reviewed by Adam Treat. 5055 5056 Initialise zoom levels independent of whether a URL is valid or not to 5057 fix https://bugs.webkit.org/show_bug.cgi?id=28162 5058 5059 * QtLauncher/main.cpp: 5060 (MainWindow::MainWindow): 5061 5062 2009-08-12 Joerg Bornemann <joerg.bornemann (a] trolltech.com> 5063 5064 Reviewed by Simon Hausmann. 5065 5066 QtWebKit compile fix for Windows CE 5067 5068 There's no getenv on Windows CE, use qgetenv instead. 5069 5070 * Api/qwebpage.cpp: 5071 (qt_drt_overwritePluginDirectories): 5072 5073 2009-08-10 Kavindra Palaraja <kavindra.palaraja (a] nokia.com> 5074 5075 Reviewed by Simon Hausmann. 5076 5077 Various fixes and improvements to the QWebPluginInfo, QWebPluginDatabase and QWebSettings documentation. 5078 5079 * Api/qwebplugindatabase.cpp: 5080 * Api/qwebsettings.cpp: 5081 5082 2009-08-08 Volker Hilsheimer <volker.hilsheimer (a] nokia.com> 5083 5084 Reviewed by Simon Hausmann. 5085 5086 Doc: there is no group of explicitly shared classes, only one class uses this. 5087 5088 Explain the implications in the QWebHistoryItem documentation, and get rid 5089 of the "group". 5090 5091 * Api/qwebhistory.cpp: 5092 5093 2009-08-05 Csaba Osztrogonac <oszi (a] inf.u-szeged.hu> 5094 5095 Reviewed by Simon Hausmann. 5096 5097 [Qt] Fix build error caused by http://trac.webkit.org/changeset/46763 5098 5099 * Api/qwebpluginfactory.h: Export macro added. 5100 5101 2009-08-04 Antonio Gomes <antonio.gomes (a] openbossa.org> 5102 5103 Reviewed by Simon Hausmann. 5104 5105 [Qt] QWebFrame::requestedUrl method can mis-behave in case of unhandled sslErrors. 5106 https://bugs.webkit.org/show_bug.cgi?id=27804 5107 5108 * Api/qwebframe.cpp: 5109 (QWebFrame::requestedUrl): 5110 * tests/qwebframe/tst_qwebframe.cpp: 5111 5112 2009-08-04 Simon Hausmann <simon.hausmann (a] nokia.com> 5113 5114 Reviewed by Tor Arne Vestb. 5115 5116 Rename QWebPlugin to QWebPluginInfo, as discussed on IRC. 5117 5118 * Api/qwebplugindatabase.cpp: 5119 (QWebPluginInfoPrivate::QWebPluginInfoPrivate): 5120 (QWebPluginInfo::QWebPluginInfo): 5121 (QWebPluginInfo::~QWebPluginInfo): 5122 (QWebPluginInfo::name): 5123 (QWebPluginInfo::description): 5124 (QWebPluginInfo::mimeTypes): 5125 (QWebPluginInfo::supportsMimeType): 5126 (QWebPluginInfo::path): 5127 (QWebPluginInfo::isNull): 5128 (QWebPluginInfo::setEnabled): 5129 (QWebPluginInfo::isEnabled): 5130 (QWebPluginInfo::operator==): 5131 (QWebPluginInfo::operator!=): 5132 (QWebPluginInfo::operator=): 5133 (QWebPluginDatabase::plugins): 5134 (QWebPluginDatabase::pluginForMimeType): 5135 (QWebPluginDatabase::setPreferredPluginForMimeType): 5136 * Api/qwebplugindatabase.h: 5137 * Api/qwebplugindatabase_p.h: 5138 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp: 5139 (tst_QWebPluginDatabase::installedPlugins): 5140 (tst_QWebPluginDatabase::searchPaths): 5141 (tst_QWebPluginDatabase::null_data): 5142 (tst_QWebPluginDatabase::null): 5143 (tst_QWebPluginDatabase::pluginForMimeType): 5144 (tst_QWebPluginDatabase::enabled): 5145 (tst_QWebPluginDatabase::operatorequal_data): 5146 (tst_QWebPluginDatabase::operatorequal): 5147 (tst_QWebPluginDatabase::preferredPlugin): 5148 5149 2009-08-04 Simon Hausmann <simon.hausmann (a] nokia.com> 5150 5151 Reviewed by Adam Treat. 5152 5153 Replace QWebPlugin::MimeType with a typedef to 5154 QWebPluginFactory::MimeType. 5155 5156 * Api/qwebplugindatabase.cpp: 5157 * Api/qwebplugindatabase.h: 5158 * Api/qwebpluginfactory.cpp: 5159 (QWebPluginFactory::MimeType::operator==): 5160 * Api/qwebpluginfactory.h: 5161 5162 2009-08-04 Jakub Wieczorek <faw217 (a] gmail.com> 5163 5164 Reviewed by Simon Hausmann. 5165 5166 Add QWebPluginDatabase API to the Qt API. 5167 5168 https://bugs.webkit.org/show_bug.cgi?id=27651 5169 5170 * Api/headers.pri: 5171 * Api/qwebplugindatabase.cpp: Added. 5172 (QWebPluginPrivate::QWebPluginPrivate): 5173 (QWebPluginDatabasePrivate::QWebPluginDatabasePrivate): 5174 (QWebPlugin::MimeType::operator==): 5175 (QWebPlugin::QWebPlugin): 5176 (QWebPlugin::~QWebPlugin): 5177 (QWebPlugin::name): 5178 (QWebPlugin::description): 5179 (QWebPlugin::mimeTypes): 5180 (QWebPlugin::supportsMimeType): 5181 (QWebPlugin::path): 5182 (QWebPlugin::isNull): 5183 (QWebPlugin::setEnabled): 5184 (QWebPlugin::isEnabled): 5185 (QWebPlugin::operator==): 5186 (QWebPlugin::operator!=): 5187 (QWebPlugin::operator=): 5188 (QWebPluginDatabase::QWebPluginDatabase): 5189 (QWebPluginDatabase::~QWebPluginDatabase): 5190 (QWebPluginDatabase::plugins): 5191 (QWebPluginDatabase::defaultSearchPaths): 5192 (QWebPluginDatabase::searchPaths): 5193 (QWebPluginDatabase::setSearchPaths): 5194 (QWebPluginDatabase::addSearchPath): 5195 (QWebPluginDatabase::refresh): 5196 (QWebPluginDatabase::pluginForMimeType): 5197 (QWebPluginDatabase::setPreferredPluginForMimeType): 5198 * Api/qwebplugindatabase.h: Added. 5199 * Api/qwebplugindatabase_p.h: Added. 5200 * Api/qwebsettings.cpp: 5201 (QWebSettings::pluginDatabase): 5202 * Api/qwebsettings.h: 5203 * tests/qwebplugindatabase/qwebplugindatabase.pro: Added. 5204 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp: Added. 5205 (tst_QWebPluginDatabase::installedPlugins): 5206 (tst_QWebPluginDatabase::searchPaths): 5207 (tst_QWebPluginDatabase::null_data): 5208 (tst_QWebPluginDatabase::null): 5209 (tst_QWebPluginDatabase::pluginForMimeType): 5210 (tst_QWebPluginDatabase::enabled): 5211 (tst_QWebPluginDatabase::operatorequal_data): 5212 (tst_QWebPluginDatabase::operatorequal): 5213 (tst_QWebPluginDatabase::preferredPlugin): 5214 * tests/tests.pro: 5215 5216 2009-08-03 Balazs Kelemen <kelemen.balazs.3 (a] stud.u-szeged.hu> 5217 5218 Reviewed by Simon Hausmann. 5219 5220 Do memory cleanup when running robotized QtLauncher in debug as well. 5221 5222 * QtLauncher/main.cpp: 5223 (launcherMain): 5224 (main): 5225 5226 2009-07-30 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 5227 5228 Reviewed by Tor Arne Vestb. 5229 5230 [Qt] Initialize HTML5 Application Cache for QtWebKit to a sensible default 5231 https://bugs.webkit.org/show_bug.cgi?id=27866 5232 5233 * Api/qwebpage.cpp: 5234 (initializeApplicationCachePathIfNecessary): 5235 (QWebPagePrivate::QWebPagePrivate): 5236 5237 2009-07-31 Jakob Petsovits <jakob.petsovits (a] torchmobile.com> 5238 5239 Reviewed by Adam Treat. 5240 5241 Build QtWebKit without benchmark tests for Qt < 4.5. 5242 https://bugs.webkit.org/show_bug.cgi?id=27886 5243 5244 The QBENCHMARK macro is only available from 4.5 on, 5245 so builds for Qt < 4.5 shouldn't try to build those. 5246 5247 * tests/tests.pro: 5248 5249 2009-07-31 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 5250 5251 Reviewed by Adam Treat. 5252 5253 Fix warning by migrating use of QString.sprintf(...) to 5254 QString.arg().arg()... 5255 5256 * WebCoreSupport/EditorClientQt.cpp: 5257 (dumpRange): 5258 5259 2009-07-31 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 5260 5261 Reviewed by Tor Arne Vestb. 5262 5263 Expose the Offline Web Application Cache in the Qt API. 5264 5265 * Api/qwebsettings.cpp: 5266 (QWebSettings::QWebSettings): 5267 (QWebSettings::setOfflineWebApplicationCachePath): 5268 (QWebSettings::offlineWebApplicationCachePath): 5269 (QWebSettings::setOfflineWebApplicationCacheQuota): 5270 (QWebSettings::offlineWebApplicationCacheQuota): 5271 * Api/qwebsettings.h: 5272 5273 2009-07-30 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 5274 5275 Reviewed by Adam Treat. 5276 5277 Add missing Q_OBJECT to class inheriting from QObject. 5278 5279 * tests/qwebframe/tst_qwebframe.cpp: 5280 5281 2009-07-30 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 5282 5283 Reviewed by Adam Treat. 5284 5285 Fix indentation. 5286 5287 * tests/qwebframe/tst_qwebframe.cpp: 5288 5289 2009-07-30 Volker Hilsheimer <volker.hilsheimer (a] nokia.com> 5290 5291 Reviewed by Simon Hausmann. 5292 5293 Fix documentation links to examples. 5294 5295 * Api/qwebview.cpp: 5296 5297 2009-07-30 Balazs Kelemen <kelemen.balazs.3 (a] stud.u-szeged.hu> 5298 5299 Reviewed by Simon Hausmann. 5300 5301 Allocate MainWindow on heap in robotized QtLauncher as well. 5302 5303 * QtLauncher/main.cpp: 5304 (main): 5305 5306 2009-07-29 Kevin McCullough <kmccullough (a] apple.com> 5307 5308 Reviewed by Darin Adler. 5309 5310 Added foundation work to allow a testing infrastructure for the Web 5311 Inspector. 5312 5313 * WebCoreSupport/InspectorClientQt.cpp: 5314 (WebCore::InspectorClientQt::inspectorWindowObjectCleared): 5315 * WebCoreSupport/InspectorClientQt.h: 5316 5317 2009-07-29 Zoltan Herczeg <zherczeg (a] inf.u-szeged.hu> 5318 5319 Reviewed by Simon Hausmann. 5320 5321 [Qt] In debug mode, this fix frees cached resources 5322 and other unreferenced objects (by calling the 5323 garbage collector) to remove the LEAK messages. 5324 https://bugs.webkit.org/show_bug.cgi?id=27767 5325 5326 * Api/qwebframe.cpp: 5327 (qt_drt_cache_clear): 5328 * QtLauncher/main.cpp: 5329 (main): 5330 5331 2009-07-28 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 5332 5333 Fix the Qt build by adapting to the changes of ScriptObject. 5334 5335 * Api/qwebelement.cpp: 5336 (setupScriptObject): 5337 5338 2009-07-28 Robert Hogan <robert (a] roberthogan.net> 5339 5340 Reviewed by Simon Hausmann. 5341 5342 Add WebKit version API to Qt. 5343 5344 Get the current version of WebKit from WebKit/mac/Configurations/Version.xcconfig 5345 at compile time and make it available to Qt applications through 5346 qWebKitVersion(). 5347 5348 Also amend the User Agent string to place the Safari clause outside 5349 the final bracket and to the end of the UA string. 5350 5351 https://bugs.webkit.org/show_bug.cgi?id=27158 5352 5353 Minor build tweak by Simon Hausmann (adding export macros to new functions). 5354 5355 * Api/headers.pri: 5356 * Api/qwebkitversion.cpp: Added. 5357 (webKitVersion): 5358 (webKitMajorVersion): 5359 (webKitMinorVersion): 5360 * Api/qwebkitversion.h: Added. 5361 * Api/qwebpage.cpp: 5362 (QWebPage::userAgentForUrl): 5363 * tests/qwebview/tst_qwebview.cpp: 5364 (tst_QWebView::getWebKitVersion): 5365 5366 2009-07-28 Simon Hausmann <simon.hausmann (a] nokia.com> 5367 5368 Rubber-stamped by Ariya Hidayat. 5369 5370 Fix compilation with the precompiled header. 5371 5372 * WebKit_pch.h: Don't include JSDOMBinding.h and MathObject.h, 5373 as they include AtomicString.h. AtomicString.cpp needs to enable 5374 a #define before including AtomicString.h, which breaks if the PCH 5375 forces the inclusion beforehand. 5376 5377 2009-07-28 Ariya Hidayat <ariya.hidayat (a] nokia.com> 5378 5379 Reviewed by Simon Hausmann. 5380 5381 Added tests to ensure that scroll position can be changed 5382 programmatically, even when the scroll bar policy is set to off. 5383 5384 * tests/qwebframe/tst_qwebframe.cpp: 5385 5386 2009-07-28 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 5387 5388 Reviewed by Simon Hausmann. 5389 5390 Fix a few compilation warnings in the QWebFrame tests. 5391 5392 * tests/qwebframe/tst_qwebframe.cpp: 5393 5394 2009-07-28 Andre Pedralho <andre.pedralho (a] openbossa.org> 5395 5396 Reviewed by Simon Hausmann. 5397 5398 Fixed tst_QWebFrame::hasSetFocus test which was using 5399 an undefined resource. 5400 https://bugs.webkit.org/show_bug.cgi?id=27512 5401 5402 * tests/qwebframe/tst_qwebframe.cpp: 5403 5404 2009-07-28 Simon Hausmann <simon.hausmann (a] nokia.com> 5405 5406 Reviewed by Ariya Hidayat. 5407 5408 Make it possible to pass relative file names to QtLauncher. 5409 5410 * QtLauncher/main.cpp: 5411 (MainWindow::MainWindow): 5412 5413 2009-07-27 Alexey Proskuryakov <ap (a] webkit.org> 5414 5415 Reviewed by Darin Adler. 5416 5417 https://bugs.webkit.org/show_bug.cgi?id=27735 5418 Give a helpful name to JSLock constructor argument 5419 5420 * Api/qwebframe.cpp: 5421 (QWebFrame::addToJavaScriptWindowObject): 5422 5423 2009-07-27 Volker Hilsheimer <volker.hilsheimer (a] nokia.com> 5424 5425 Reviewed by Simon Hausmann. 5426 5427 QWebView's "enabled" parameter should default to true, as with QGraphicsView and 5428 QPainter. 5429 5430 * Api/qwebview.cpp: Add reference to QPainter::renderHints(). 5431 * Api/qwebview.h: Add default for enabled argument. 5432 5433 2009-07-26 Kavindra Palaraja <kavindra.palaraja (a] nokia.com> 5434 5435 Reviewed by Simon Hausmann. 5436 5437 More documentation cleanups in the QWebElement class overview. 5438 5439 * Api/qwebelement.cpp: 5440 5441 2009-07-26 Kavindra Palaraja <kavindra.palaraja (a] nokia.com> 5442 5443 Reviewed by Simon Hausmann. 5444 5445 Clean up documentation of QWebElement's findFirst and findAll functions, 5446 as well as their QWebFrame counterparts. 5447 5448 * Api/qwebelement.cpp: 5449 * Api/qwebframe.cpp: 5450 5451 2009-07-26 Kavindra Palaraja <kavindra.palaraja (a] nokia.com> 5452 5453 Reviewed by Simon Hausmann. 5454 5455 Various documentation cleanups 5456 5457 * Fixed qdoc warnings 5458 * Hide QWebNetworkInterface from the class overview 5459 * Mention QWebElement in the module overview 5460 * More cleanups 5461 5462 * Api/qwebframe.cpp: 5463 * Api/qwebnetworkinterface.cpp: 5464 * Api/qwebview.cpp: 5465 * docs/qtwebkit.qdoc: 5466 5467 2009-07-26 Kavindra Palaraja <kavindra.palaraja (a] nokia.com> 5468 5469 Reviewed by Simon Hausmann. 5470 5471 Added missing class diagram referenced from the docs, taken from the Qt 5472 documentation. 5473 5474 * docs/qtwebkit.qdocconf: Register the image directory with 5475 qdoc. 5476 * docs/qwebview-diagram.png: Added. 5477 5478 2009-07-24 Antonio Gomes <antonio.gomes (a] openbossa.org> 5479 5480 Reviewed by Adam Treat. 5481 5482 As per discussion on IRC, changed originalUrl by requestedUrl. 5483 5484 * Api/qwebframe.cpp: 5485 (QWebFrame::requestedUrl): 5486 * Api/qwebframe.h: 5487 * tests/qwebframe/tst_qwebframe.cpp: 5488 5489 2009-07-24 Andre Pedralho <andre.pedralho (a] openbossa.org> 5490 5491 Reviewed by Adam Treat. 5492 5493 Removed void QWebFrame::renderContents(...) and added the Q_PROPERTY 5494 clipRenderToViewport to control whether QWebFrame::render would call 5495 FrameView::paintContents rather than FrameView::paint and do not clip 5496 the frame content to viewport. 5497 5498 5499 * Api/qwebframe.cpp: 5500 (QWebFramePrivate::renderPrivate): 5501 (QWebFrame::clipRenderToViewport): 5502 (QWebFrame::setClipRenderToViewport): 5503 * Api/qwebframe.h: 5504 * Api/qwebframe_p.h: 5505 (QWebFramePrivate::QWebFramePrivate): 5506 * tests/qwebframe/tst_qwebframe.cpp: 5507 5508 2009-07-24 Antonio Gomes <antonio.gomes (a] openbossa.org> 5509 5510 Reviewed by Simon Hausmann. 5511 5512 [QT] Implement originalUrl getter method to the API 5513 https://bugs.webkit.org/show_bug.cgi?id=25867 5514 5515 * Api/qwebframe.cpp: 5516 (QWebFrame::originalUrl): 5517 * Api/qwebframe.h: 5518 * tests/qwebframe/qwebframe.qrc: 5519 * tests/qwebframe/test1.html: Added. 5520 * tests/qwebframe/test2.html: Added. 5521 * tests/qwebframe/tst_qwebframe.cpp: 5522 5523 2009-07-24 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 5524 5525 Build fix for Qt. 5526 5527 Fix build issue introduced in 46344 5528 ([Bug 22700] ApplicationCache should have size limit) 5529 5530 Remove method only added to the Qt ChromeClient. 5531 5532 * WebCoreSupport/ChromeClientQt.h: 5533 5534 2009-07-24 Andrei Popescu <andreip (a] google.com> 5535 5536 Reviewed by Anders Carlsson. 5537 5538 ApplicationCache should have size limit 5539 https://bugs.webkit.org/show_bug.cgi?id=22700 5540 5541 * WebCoreSupport/ChromeClientQt.cpp: 5542 (WebCore::ChromeClientQt::reachedMaxAppCacheSize): 5543 Adds empty implementation of the reachedMaxAppCacheSize callback. 5544 * WebCoreSupport/ChromeClientQt.h: 5545 5546 2009-07-23 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 5547 5548 Reviewed by Simon Hausmann. 5549 5550 [Qt] Add simple proxy support for QtLauncher 5551 https://bugs.webkit.org/show_bug.cgi?id=27495 5552 5553 Picks up proxy settings from the http_proxy environment 5554 variable. 5555 5556 * QtLauncher/QtLauncher.pro: Add QtNetwork dependency for all 5557 platforms. 5558 * QtLauncher/main.cpp: 5559 (MainWindow::MainWindow): 5560 5561 2009-07-23 Simon Hausmann <simon.hausmann (a] nokia.com> 5562 5563 Reviewed by Holger Freyther. 5564 5565 Added a testcase to verify that cached methods in the QOBject bindings 5566 remain alife even after garbage collection. 5567 5568 * tests/qwebpage/tst_qwebpage.cpp: 5569 (tst_QWebPage::protectBindingsRuntimeObjectsFromCollector): 5570 5571 2009-07-23 Zoltan Herczeg <zherczeg (a] inf.u-szeged.hu> 5572 5573 Reviewed by Simon Hausmann. 5574 5575 Fixing two issues related to QtLauncher 5576 - MainWindow objects are not always freed after close 5577 - JavaScript window.close() sometimes crashes 5578 https://bugs.webkit.org/show_bug.cgi?id=27601 5579 5580 * QtLauncher/main.cpp: 5581 (MainWindow::MainWindow): 5582 (main): 5583 5584 2009-07-21 Volker Hilsheimer <volker.hilsheimer (a] nokia.com> 5585 5586 Reviewed by Simon Hausmann. 5587 5588 Various improvements to the API documentation. 5589 5590 * Updated link to W3c Database spec 5591 * Formatting fixes, cleanups 5592 * Add missing \since 4.6 tags to QWebPage::frameAt 5593 * Extend QWebDatabase and QWebSecurityOrigin docs. 5594 5595 * Api/qwebdatabase.cpp: 5596 * Api/qwebpage.cpp: 5597 * Api/qwebsecurityorigin.cpp: 5598 * Api/qwebview.cpp: 5599 5600 2009-07-21 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 5601 5602 Rubber-stamped by Simon Hausmann. 5603 5604 Remove preliminary-tag from QWebElement 5605 5606 * Api/qwebelement.cpp: 5607 5608 2009-07-20 Kenneth Rohde Christiansen <kenneth (a] webkit.org> 5609 5610 Reviewed by Eric Seidel. 5611 5612 Fix Qt code to follow the WebKit Coding Style. 5613 5614 * Api/qcookiejar.cpp: 5615 (QCookieJar::setCookieJar): 5616 (QCookieJar::cookieJar): 5617 * Api/qcookiejar.h: 5618 * Api/qwebdatabase.cpp: 5619 (QWebDatabase::QWebDatabase): 5620 (QWebDatabase::removeDatabase): 5621 * Api/qwebdatabase.h: 5622 * Api/qwebdatabase_p.h: 5623 * Api/qwebelement.h: 5624 * Api/qwebframe.cpp: 5625 (QWebFrame::title): 5626 (QWebFrame::print): 5627 * Api/qwebframe.h: 5628 * Api/qwebframe_p.h: 5629 * Api/qwebhistory.cpp: 5630 (QWebHistory::clear): 5631 * Api/qwebhistory.h: 5632 * Api/qwebhistory_p.h: 5633 * Api/qwebhistoryinterface.cpp: 5634 (gCleanupInterface): 5635 (QWebHistoryInterface::setDefaultInterface): 5636 (QWebHistoryInterface::defaultInterface): 5637 (QWebHistoryInterface::QWebHistoryInterface): 5638 * Api/qwebhistoryinterface.h: 5639 * Api/qwebnetworkinterface.cpp: 5640 (QWebNetworkManager::started): 5641 (QWebNetworkManager::finished): 5642 (QWebNetworkInterfacePrivate::parseDataUrl): 5643 (QWebNetworkInterface::addJob): 5644 (WebCoreHttp::onResponseHeaderReceived): 5645 (WebCoreHttp::onReadyRead): 5646 * Api/qwebnetworkinterface.h: 5647 * Api/qwebnetworkinterface_p.h: 5648 * Api/qwebpage.cpp: 5649 (QWebPagePrivate::editorCommandForWebActions): 5650 (QWebPagePrivate::createContextMenu): 5651 (QWebPagePrivate::focusInEvent): 5652 (QWebPage::fixedContentsSize): 5653 (QWebPage::setContentEditable): 5654 (QWebPage::swallowContextMenuEvent): 5655 (QWebPage::findText): 5656 * Api/qwebpage.h: 5657 * Api/qwebpage_p.h: 5658 * Api/qwebpluginfactory.h: 5659 * Api/qwebsecurityorigin.h: 5660 * Api/qwebsecurityorigin_p.h: 5661 * Api/qwebsettings.cpp: 5662 (QWebSettingsPrivate::QWebSettingsPrivate): 5663 (QWebSettingsPrivate::apply): 5664 (QWebSettings::globalSettings): 5665 (QWebSettings::QWebSettings): 5666 (QWebSettings::fontSize): 5667 (QWebSettings::setUserStyleSheetUrl): 5668 (QWebSettings::setDefaultTextEncoding): 5669 (QWebSettings::setIconDatabasePath): 5670 (QWebSettings::iconDatabasePath): 5671 (QWebSettings::iconForUrl): 5672 (QWebSettings::setWebGraphic): 5673 (QWebSettings::setFontFamily): 5674 (QWebSettings::fontFamily): 5675 (QWebSettings::testAttribute): 5676 (qt_websettings_setLocalStorageDatabasePath): 5677 * Api/qwebsettings.h: 5678 * Api/qwebview.cpp: 5679 (QWebView::setPage): 5680 (QWebView::event): 5681 * Api/qwebview.h: 5682 5683 2009-07-20 Holger Hans Peter Freyther <zecke (a] selfish.org> 5684 5685 Reviewed by Simon Hausmann. 5686 5687 [Qt] Add test for loading webpages... 5688 5689 Performance test for loading webpages. Wait for the loadFinished 5690 signal to be fired. This should include a non empty layout. 5691 5692 * tests/benchmarks/loading/tst_loading.cpp: Added. 5693 (waitForSignal): 5694 (tst_Loading::init): 5695 (tst_Loading::cleanup): 5696 (tst_Loading::load_data): 5697 (tst_Loading::load): 5698 * tests/benchmarks/loading/tst_loading.pro: Added. 5699 * tests/tests.pro: 5700 5701 2009-07-20 Holger Hans Peter Freyther <zecke (a] selfish.org> 5702 5703 Reviewed by Simon Hausmann. 5704 5705 [Qt] Add a test case for drawing a simple viewrect to a QPixmap 5706 5707 * tests/benchmarks/painting/tst_painting.cpp: Added. 5708 (waitForSignal): 5709 (tst_Painting::init): 5710 (tst_Painting::cleanup): 5711 (tst_Painting::paint_data): 5712 (tst_Painting::paint): 5713 * tests/benchmarks/painting/tst_painting.pro: Added. 5714 * tests/tests.pro: 5715 5716 2009-07-20 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 5717 5718 Reviewed by Holger Freyther. 5719 5720 [Qt] Add an option for QtLauncher to build without QtUiTools dependency 5721 https://bugs.webkit.org/show_bug.cgi?id=27438 5722 5723 Based on Norbert Leser's work. 5724 5725 * QtLauncher/main.cpp: 5726 (WebPage::createPlugin): 5727 5728 2009-07-17 Kenneth Rohde Christiansen <kenneth.christiansen (a] openbossa.org> 5729 5730 Reviewed by Adam Treat. 5731 5732 Coding style fixes. 5733 5734 * Api/qcookiejar.cpp: 5735 (QCookieJarPrivate::QCookieJarPrivate): 5736 (qHash): 5737 (QCookieJar::cookieJar): 5738 * Api/qwebelement.cpp: 5739 (QWebElement::functions): 5740 (QWebElement::scriptableProperties): 5741 * Api/qwebframe.cpp: 5742 (QWebFrame::metaData): 5743 (QWebFrame::scrollBarValue): 5744 (QWebFrame::scroll): 5745 (QWebFrame::scrollPosition): 5746 (QWebFrame::print): 5747 * Api/qwebnetworkinterface.cpp: 5748 (decodePercentEncoding): 5749 (QWebNetworkRequestPrivate::init): 5750 (QWebNetworkRequestPrivate::setURL): 5751 (QWebNetworkRequest::QWebNetworkRequest): 5752 (QWebNetworkRequest::operator=): 5753 (QWebNetworkRequest::setUrl): 5754 (QWebNetworkRequest::setHttpHeader): 5755 (QWebNetworkRequest::httpHeaderField): 5756 (QWebNetworkRequest::setHttpHeaderField): 5757 (QWebNetworkRequest::setPostData): 5758 (QWebNetworkJob::setResponse): 5759 (QWebNetworkJob::frame): 5760 (QWebNetworkManager::add): 5761 (QWebNetworkManager::cancel): 5762 (QWebNetworkManager::started): 5763 (QWebNetworkManager::data): 5764 (QWebNetworkManager::finished): 5765 (QWebNetworkManager::addHttpJob): 5766 (QWebNetworkManager::cancelHttpJob): 5767 (QWebNetworkManager::httpConnectionClosed): 5768 (QWebNetworkInterfacePrivate::sendFileData): 5769 (QWebNetworkInterfacePrivate::parseDataUrl): 5770 (QWebNetworkManager::doWork): 5771 (QWebNetworkInterface::setDefaultInterface): 5772 (QWebNetworkInterface::defaultInterface): 5773 (QWebNetworkInterface::QWebNetworkInterface): 5774 (QWebNetworkInterface::addJob): 5775 (QWebNetworkInterface::cancelJob): 5776 (WebCoreHttp::WebCoreHttp): 5777 (WebCoreHttp::request): 5778 (WebCoreHttp::scheduleNextRequest): 5779 (WebCoreHttp::getConnection): 5780 (WebCoreHttp::onResponseHeaderReceived): 5781 (WebCoreHttp::onReadyRead): 5782 (WebCoreHttp::onRequestFinished): 5783 (WebCoreHttp::onAuthenticationRequired): 5784 (WebCoreHttp::onProxyAuthenticationRequired): 5785 * Api/qwebpage.cpp: 5786 (QWebPagePrivate::QWebPagePrivate): 5787 (QWebPagePrivate::mouseReleaseEvent): 5788 (QWebPagePrivate::inputMethodEvent): 5789 (QWebPagePrivate::shortcutOverrideEvent): 5790 (QWebPage::inputMethodQuery): 5791 (QWebPage::javaScriptPrompt): 5792 (QWebPage::updatePositionDependentActions): 5793 (QWebPage::userAgentForUrl): 5794 (QWebPagePrivate::_q_onLoadProgressChanged): 5795 (QWebPage::totalBytes): 5796 (QWebPage::bytesReceived): 5797 * Api/qwebsettings.cpp: 5798 (QWebSettings::iconForUrl): 5799 (QWebSettings::setObjectCacheCapacities): 5800 * Api/qwebview.cpp: 5801 (QWebView::paintEvent): 5802 (QWebView::changeEvent): 5803 5804 2009-07-17 Kenneth Rohde Christiansen <kenneth.christiansen (a] openbossa.org> 5805 5806 Reviewed by Simon Hausmann. 5807 5808 Overwrite the plugin directories for the DRT. 5809 Part of https://bugs.webkit.org/show_bug.cgi?id=27215 5810 5811 * Api/qwebpage.cpp: 5812 (qt_drt_overwritePluginDirectories): Only set the plugin directories 5813 to the ones in the QTWEBKIT_PLUGIN_PATH environment variable. 5814 5815 2009-07-16 Xiaomei Ji <xji (a] chromium.org> 5816 5817 Reviewed by Dan Bernstein. 5818 5819 This is the 2nd part of fixing "RTL: tooltip does not get its directionlity from its element's." 5820 https://bugs.webkit.org/show_bug.cgi?id=24187 5821 5822 Add one extra parameter to the callee of HitTestResult::title() due to the signature change. 5823 5824 * Api/qwebframe.cpp: 5825 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): Add direction as a parameter to the callee of HitTestResult::title(). 5826 * WebCoreSupport/ChromeClientQt.cpp: 5827 (WebCore::ChromeClientQt::mouseDidMoveOverElement): Add direction as a parameter to the callee of HitTestResult::title(). 5828 5829 2009-07-16 Benjamin C Meyer <benjamin.meyer (a] torchmobile.com> 5830 5831 Reviewed by Adam Treat. 5832 5833 Add new action to qwebpage to reload without cache. 5834 5835 * Api/qwebpage.cpp: 5836 (QWebPagePrivate::updateAction): 5837 (QWebPagePrivate::updateNavigationActions): 5838 (QWebPage::triggerAction): 5839 * Api/qwebpage.h: 5840 5841 2009-07-16 Xiaomei Ji <xji (a] chromium.org> 5842 5843 Reviewed by Darin Adler. 5844 5845 Fix tooltip does not get its directionality from its element's directionality. 5846 https://bugs.webkit.org/show_bug.cgi?id=24187 5847 5848 Per mitz's suggestion in comment #6, while getting the plain-text 5849 title, we also get the directionality of the title. How to handle 5850 the directionality is up to clients. Clients could ignore it, 5851 or use attribute or unicode control characters to display the title 5852 as what they want. 5853 5854 5855 * WebCoreSupport/ChromeClientQt.cpp: 5856 (WebCore::ChromeClientQt::setToolTip): Add directionality as 2nd parameter to setToopTip() (without handling it yet). 5857 * WebCoreSupport/ChromeClientQt.h: Add directionality as 2nd parameter to setToolTip(). 5858 5859 2009-07-15 Yael Aharon <yael.aharon (a] nokia.com> 5860 5861 Reviewed by Simon Hausmann. 5862 5863 https://bugs.webkit.org/show_bug.cgi?id=27285 5864 5865 When the user clicks a link with a target attribute, the newly created window should be visible. 5866 Make new windows created in Qtlauncher visible. 5867 5868 * QtLauncher/main.cpp: 5869 (WebPage::createWindow): 5870 5871 2009-07-14 Adam Treat <adam.treat (a] torchmobile.com> 5872 5873 Reviewed by Zack Rusin. 5874 5875 https://bugs.webkit.org/show_bug.cgi?id=26983 5876 5877 The default constructed values for QSize and WebCore::IntSize are different. The former 5878 produces an invalid size whereas the latter produces a size of zero. This was causing 5879 a layout to be triggered when constructing a view and an assert to be hit. This patch fixes 5880 the crash by taking care not to cause an unnecessary layout triggered by ScrollView::setFixedLayoutSize. 5881 5882 * WebCoreSupport/FrameLoaderClientQt.cpp: 5883 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 5884 5885 2009-07-13 Simon Hausmann <simon.hausmann (a] nokia.com> 5886 5887 Reviewed by Ariya Hidayat. 5888 5889 Fix qdoc warnings for QWebPage::shouldInterruptJavaScript() and mention 5890 how to re-implement it. 5891 5892 * Api/qwebpage.cpp: 5893 5894 2009-07-13 Simon Hausmann <hausmann (a] webkit.org> 5895 5896 Reviewed by Ariya Hidayat. 5897 5898 Fix crash with plugins when the plugin stream is cancelled. 5899 5900 Similar to r26667 handle the case where didReceiveResponse on the 5901 plugin view results in failure to set up the stream and 5902 setMainDocumentError being called instead. This will set the 5903 m_pluginView back to 0 and we need check for it before calling 5904 didReceiveData. 5905 5906 This was triggered by consecutive execution of 5907 LayoutTests/plugins/return-error-from-new-stream-callback-in-full-frame-plugin.html 5908 followed by LayoutTests/scrollbars/scrollbar-crash-on-refresh.html 5909 5910 * WebCoreSupport/FrameLoaderClientQt.cpp: 5911 (WebCore::FrameLoaderClientQt::committedLoad): 5912 5913 2009-07-13 Simon Hausmann <hausmann (a] webkit.org> 5914 5915 Reviewed by Ariya Hidayat. 5916 5917 Added QWebDatabase::removeAllDatabases, as a way to delete all 5918 databases from the offline storage path. 5919 5920 Used by the Qt DRT. 5921 5922 * Api/qwebdatabase.cpp: 5923 (QWebDatabase::removeAllDatabases): 5924 * Api/qwebdatabase.h: 5925 5926 2009-07-13 Simon Hausmann <hausmann (a] webkit.org> 5927 5928 Reviewed by Ariya Hidayat. 5929 5930 Added loadStarted() and loadFinished() signals to QWebFrame, 5931 to allow load tracking of individual frames, as opposed to 5932 QWebPage's loadStarted/loadFinished signals that are emitted 5933 whenever _any_ child frame loads/finishes. 5934 5935 * Api/qwebframe.cpp: Document new signals. 5936 * Api/qwebframe.h: Add new signals. 5937 * WebCoreSupport/FrameLoaderClientQt.cpp: 5938 (WebCore::FrameLoaderClientQt::setFrame): Connect new signals. 5939 5940 2009-07-13 Simon Hausmann <hausmann (a] webkit.org> 5941 5942 Reviewed by Ariya Hidayat. 5943 5944 Add hooks for the GCController JavaScript interface needed by the 5945 Qt DRT. 5946 5947 Fixed sort order of includes in qwebframe.cpp. 5948 5949 * Api/qwebframe.cpp: 5950 (qt_drt_javaScriptObjectsCount): 5951 (qt_drt_garbageCollector_collect): 5952 (qt_drt_garbageCollector_collectOnAlternateThread): 5953 5954 2009-07-13 Simon Hausmann <hausmann (a] webkit.org> 5955 5956 Reviewed by Ariya Hidayat. 5957 5958 Add hooks for the GCController JavaScript interface needed by the 5959 Qt DRT. 5960 5961 Fixed sort order of includes in qwebframe.cpp. 5962 5963 * Api/qwebframe.cpp: 5964 (qt_drt_javaScriptObjectsCount): 5965 (qt_drt_garbageCollector_collect): 5966 (qt_drt_garbageCollector_collectOnAlternateThread): 5967 5968 2009-07-12 Brent Fulgham <bfulgham (a] gmail.com> 5969 5970 Speculative build fix after http://trac.webkit.org/changeset/45786. 5971 5972 * WebCoreSupport/ChromeClientQt.cpp: 5973 (WebCore::ChromeClientQt::addMessageToConsole): 5974 * WebCoreSupport/ChromeClientQt.h: 5975 5976 2009-07-10 Yael Aharon <yael.aharon (a] nokia.com> 5977 5978 Reviewed by Holger Freyther. 5979 5980 https://bugs.webkit.org/show_bug.cgi?id=27136 5981 5982 Fix a bug where webkit hangs when executing infinite JavaScript loop. 5983 5984 * Api/qwebpage.cpp: 5985 (QWebPage::shouldInterruptJavaScript): 5986 * Api/qwebpage.h: 5987 * WebCoreSupport/ChromeClientQt.cpp: 5988 (WebCore::ChromeClientQt::shouldInterruptJavaScript): 5989 * tests/qwebpage/tst_qwebpage.cpp: 5990 (JSTestPage::JSTestPage): 5991 (JSTestPage::shouldInterruptJavaScript): 5992 (tst_QWebPage::infiniteLoopJS): 5993 5994 2009-07-10 Simon Hausmann <simon.hausmann (a] nokia.com> 5995 5996 Reviewed by Holger Freyther. 5997 5998 https://bugs.webkit.org/show_bug.cgi?id=27108 5999 6000 Fix crash when in frame tree of a new frame before the new frame 6001 has been installed in the frame tree, similar to r35088. 6002 6003 After calling Frame::init() the frame it may have been removed from the 6004 frame tree again through JavaScript. Detect this by checking the page() 6005 afterwards. 6006 6007 To make this check safe the Frame::init() code was moved into 6008 QWebFrameData's constructor, where a RefPtr holds a reference to the frame. 6009 After the check back in FrameLoaderClientQt we would hold the single 6010 reference left and after release() the frame, its frame loader, its 6011 client as well as the QWebFrame should have disappeared then. 6012 6013 * Api/qwebframe.cpp: 6014 (QWebFramePrivate::init): Only call Frame::init here, the rest is 6015 done in QWebFrameData's constructor. 6016 (QWebFrame::QWebFrame): 6017 * Api/qwebframe_p.h: Adjust declaration. 6018 (QWebFrameData::QWebFrameData): Create the Frame here. 6019 * Api/qwebpage.cpp: 6020 (QWebPagePrivate::createMainFrame): Adjust and simplify 6021 to new QWebFrame constructor. 6022 * WebCoreSupport/FrameLoaderClientQt.cpp: 6023 (WebCore::FrameLoaderClientQt::createFrame): Adjust to 6024 new QWebFrame construction using QWebFrameData and add the 6025 check like in r35088. 6026 6027 2009-07-09 Beth Dakin <bdakin (a] apple.com> 6028 6029 Reviewed by Dave Hyatt. 6030 6031 Make Widget RefCounted to fix: 6032 6033 <rdar://problem/7038831> REGRESSION (TOT): In Mail, a crash occurs 6034 at WebCore::Widget::afterMouseDown() after clicking To Do's close 6035 box 6036 <rdar://problem/6978804> WER #16: Repro Access Violation in 6037 WebCore::PluginView::bindingInstance (1310178023) 6038 -and- 6039 <rdar://problem/6991251> WER #13: Crash in WebKit! 6040 WebCore::PluginView::performRequest+203 (1311461169) 6041 6042 * WebCoreSupport/FrameLoaderClientQt.cpp: 6043 (WebCore::FrameLoaderClientQt::createPlugin): 6044 (WebCore::FrameLoaderClientQt::createJavaAppletWidget): 6045 * WebCoreSupport/FrameLoaderClientQt.h: 6046 6047 2009-07-08 Pradeepto Bhattacharya <pradeepto (a] kde.org> 6048 6049 Reviewed by Ariya Hidayat. 6050 6051 Build fix. 6052 6053 * WebCoreSupport/FrameLoaderClientQt.h: Removed the slot slotCallPolicyFunction(). 6054 6055 2009-07-08 Simon Hausmann <hausmann (a] webkit.org> 6056 6057 Reviewed by Tor Arne Vestb. 6058 6059 https://bugs.webkit.org/show_bug.cgi?id=27080 6060 6061 Fix DRT instability issues with fast/loader/submit-form-while-parsing-2.html 6062 6063 When the form is submitted we call the policy function in the frame 6064 loader delayed with a queued connection. That queued connection 6065 sometimes interferes with the javascript timeout set in the testcase. 6066 6067 Eliminate the entire delayed policy function mechanism and instead always 6068 call back directly, like in the other ports. In most other places we called 6069 the slot directly anyway. 6070 6071 * WebCoreSupport/FrameLoaderClientQt.cpp: 6072 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Remove m_policyFunction. 6073 (WebCore::FrameLoaderClientQt::callPolicyFunction): Call the policy function directly instead 6074 of emitting the queued signal. 6075 (WebCore::FrameLoaderClientQt::cancelPolicyCheck): Call callPolicyFunction directly. 6076 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): Ditto. 6077 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): Ditto. 6078 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): Ditto. 6079 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): Ditto. 6080 * WebCoreSupport/FrameLoaderClientQt.h: Remove m_policyFunction as well as the associated 6081 signal. 6082 6083 2009-07-07 Simon Hausmann <hausmann (a] webkit.org> 6084 6085 Reviewed by Holger Freyther. 6086 6087 Add Qt DRT hook for clearing the frame name. 6088 6089 * Api/qwebframe.cpp: 6090 (qt_drt_clearFrameName): 6091 6092 2009-07-05 Simon Hausmann <hausmann (a] webkit.org> 6093 6094 Reviewed by Holger Freyther. 6095 6096 Fix two qdoc warnings. 6097 6098 Added missing \property for QWebFrame::hasFocus and added \a 6099 tag for pos of QWebPage::frameAt. 6100 6101 * Api/qwebframe.cpp: 6102 * Api/qwebpage.cpp: 6103 6104 2009-07-04 Holger Hans Peter Freyther <zecke (a] selfish.org> 6105 6106 Reviewed by Simon Hausmann. 6107 6108 Use the recently introduced FocusController::setFocused 6109 6110 Use the recently introduced FocusController::setFocused 6111 in the Qt platform. The SelectionController will be updated 6112 from within the FocusController now. 6113 6114 * Api/qwebpage.cpp: 6115 (QWebPagePrivate::focusInEvent): 6116 (QWebPagePrivate::focusOutEvent): 6117 6118 2009-07-02 Simon Hausmann <simon.hausmann (a] nokia.com> 6119 6120 Reviewed by Ariya Hidayat. 6121 6122 Improve documentation of QWebFrame::setFocus and hasFocus() 6123 Added missing Q_PROPERTY for QWebFrame::hasFocus. 6124 6125 * Api/qwebframe.cpp: Clarify the docs. 6126 * Api/qwebframe.h: add Q_PROPERTY(focus). 6127 6128 2009-07-02 Joe Ligman <joseph.ligman (a] nokia.com> 6129 6130 Reviewed by Simon Hausmann. 6131 6132 Bug 26855: [Qt] New methods for QWebFrame to check and set focus. 6133 6134 Added new public methods QWebFrame::hasFocus() and QWebFrame::setFocus() 6135 Added auto test. 6136 6137 * Api/qwebframe.cpp: 6138 (QWebFrame::hasFocus): 6139 (QWebFrame::setFocus): 6140 * Api/qwebframe.h: 6141 * tests/qwebframe/tst_qwebframe.cpp: 6142 6143 2009-07-01 Robert Hogan <robert (a] roberthogan.net> 6144 6145 Reviewed by NOBODY. 6146 6147 Fix Qt segfault when javascript disabled. 6148 If clients call addToJavaScriptWindowObject even though JavascriptEnabled is false 6149 webkit will segfault on the assert: 6150 ASSERTION FAILED: _rootObject 6151 (../../../WebCore/bridge/runtime.cpp:52 6152 JSC::Bindings::Instance::Instance(WTF::PassRefPtr<JSC::Bindings::RootObject>)) 6153 Fix is to ensure JavaScript is enabled when client calls addToJavaScriptWindowObject. 6154 6155 https://bugs.webkit.org/show_bug.cgi?id=26906 6156 6157 * Api/qwebframe.cpp: 6158 (QWebFrame::addToJavaScriptWindowObject): 6159 6160 2009-07-01 Jakub Wieczorek <faw217 (a] gmail.com> 6161 6162 Reviewed by Simon Hausmann. 6163 6164 [Qt] Move some API headers from WebCore.pro to headers.pri so that they 6165 get installed when running make install from the build directory. 6166 6167 * Api/headers.pri: 6168 6169 2009-07-01 Balazs Kelemen <kelemen.balazs.3 (a] stud.u-szeged.hu> 6170 6171 Reviewed by Simon Hausmann. 6172 6173 Fixed robotized QtLauncher to work when there is no index.html in the user's home. 6174 6175 * QtLauncher/main.cpp: 6176 (main): 6177 6178 2009-06-30 Brian Weinstein <bweinstein (a] apple.com> 6179 6180 Reviewed by Adam Roben. 6181 6182 Renamed scrollbarUnderPoint to scrollbarAtPoint to follow conventions. 6183 6184 * Api/qwebpage.cpp: 6185 (QWebPage::swallowContextMenuEvent): 6186 6187 2009-06-30 Joe Ligman <joseph.ligman (a] nokia.com> 6188 6189 Reviewed by Adam Treat. 6190 6191 Bug 26422: [Qt] QWebPagePrivate::frameAt calculates wrong frame 6192 6193 Added a public method QWebPage::frameAt 6194 Removed QWebPagePrivate::frameAt, which calcuated the wrong frame 6195 Modified QWebPage::swallowContextMenuEvent to use the new frameAt method 6196 New test case for frameAt added to tst_qwebpage.cpp 6197 6198 * Api/qwebpage.cpp: 6199 (QWebPage::frameAt): 6200 (QWebPage::swallowContextMenuEvent): 6201 * Api/qwebpage.h: 6202 * Api/qwebpage_p.h: 6203 * tests/qwebpage/frametest/iframe.html: Added. 6204 * tests/qwebpage/frametest/iframe2.html: Added. 6205 * tests/qwebpage/frametest/iframe3.html: Added. 6206 * tests/qwebpage/tst_qwebpage.cpp: 6207 (frameAtHelper): 6208 (tst_QWebPage::frameAt): 6209 * tests/qwebpage/tst_qwebpage.qrc: 6210 6211 2009-06-30 Jakub Wieczorek <faw217 (a] gmail.com> 6212 6213 Reviewed by Simon Hausmann. 6214 6215 Add QWebFrame::baseUrl() function that exposes the base URL of a frame. 6216 Autotests included. 6217 6218 * Api/qwebframe.cpp: 6219 (QWebFrame::baseUrl): 6220 * Api/qwebframe.h: 6221 * tests/qwebframe/tst_qwebframe.cpp: 6222 6223 2009-06-29 Simon Hausmann <simon.hausmann (a] nokia.com> 6224 6225 Fix the Qt build, add missing isSpeaking() implementation to 6226 ContextMenuClient. 6227 6228 * WebCoreSupport/ContextMenuClientQt.cpp: 6229 (WebCore::ContextMenuClientQt::isSpeaking): 6230 * WebCoreSupport/ContextMenuClientQt.h: 6231 6232 2009-06-28 Sriram Yadavalli <sriram.yadavalli (a] nokia.com> 6233 6234 Reviewed by Eric Seidel. 6235 6236 [Qt] Fix build break for Qt 6237 https://bugs.webkit.org/show_bug.cgi?id=26779 6238 6239 * Api/qwebpage.cpp: 6240 (QWebPage::swallowContextMenuEvent): 6241 6242 2009-06-27 Simon Hausmann <simon.hausmann (a] nokia.com> 6243 6244 Build fix for Qt under Windows. 6245 6246 * Api/qwebhistory.h: Use consistent export linkage for the datastream operators. 6247 6248 2009-06-26 Brian Weinstein <bweinstein (a] apple.com> 6249 6250 Reviewed by Simon Fraser. 6251 6252 Changed call of scrollbarUnderMouse to scrollbarUnderPoint to match new API. 6253 6254 * Api/qwebpage.cpp: 6255 (QWebPage::swallowContextMenuEvent): 6256 6257 2009-06-26 Jedrzej Nowacki <jedrzej.nowacki (a] nokia.com> 6258 6259 Reviewed by Simon Hausmann. 6260 6261 Add support for saving and loading of QWebHistory to and from a QByteArray. 6262 6263 This includes streaming operators for QWebHistory. for convenience. 6264 6265 New autotests that test QWebHistory and QWebHistoryItem serialization. 6266 6267 * Api/qwebhistory.cpp: 6268 (QWebHistory::restoreState): 6269 (QWebHistory::saveState): 6270 (operator<<): 6271 (operator>>): 6272 * Api/qwebhistory.h: 6273 * Api/qwebhistory_p.h: 6274 * tests/qwebhistory/tst_qwebhistory.cpp: 6275 (tst_QWebHistory::): 6276 (tst_QWebHistory::init): 6277 (tst_QWebHistory::title): 6278 (tst_QWebHistory::count): 6279 (tst_QWebHistory::back): 6280 (tst_QWebHistory::forward): 6281 (tst_QWebHistory::itemAt): 6282 (tst_QWebHistory::goToItem): 6283 (tst_QWebHistory::items): 6284 (tst_QWebHistory::serialize_1): 6285 (tst_QWebHistory::serialize_2): 6286 (tst_QWebHistory::serialize_3): 6287 (tst_QWebHistory::saveAndRestore_1): 6288 (tst_QWebHistory::saveAndRestore_2): 6289 (tst_QWebHistory::saveAndRestore_3): 6290 6291 2009-06-26 Jedrzej Nowacki <jedrzej.nowacki (a] nokia.com> 6292 6293 Reviewed by Simon Hausmann. 6294 6295 Fix the behaviour of QWebHistory::itemAt to interpret the specified index as absolute index. 6296 6297 Returns an invalid QWebHistoryItem if the index is out of range. 6298 6299 * Api/qwebhistory.cpp: 6300 (QWebHistory::itemAt): 6301 * tests/qwebhistory/tst_qwebhistory.cpp: 6302 (tst_QWebHistory::itemAt): 6303 6304 2009-06-26 Jedrzej Nowacki <jedrzej.nowacki (a] nokia.com> 6305 6306 Reviewed by Simon Hausmann. 6307 6308 Added a few autotest to QWebHistory. 6309 6310 * tests/qwebhistory/data/page1.html: Added. 6311 * tests/qwebhistory/data/page2.html: Added. 6312 * tests/qwebhistory/data/page3.html: Added. 6313 * tests/qwebhistory/data/page4.html: Added. 6314 * tests/qwebhistory/data/page5.html: Added. 6315 * tests/qwebhistory/data/page6.html: Added. 6316 * tests/qwebhistory/qwebhistory.pro: Added. 6317 * tests/qwebhistory/tst_qwebhistory.cpp: Added. 6318 (tst_QWebHistory::): 6319 (tst_QWebHistory::tst_QWebHistory): 6320 (tst_QWebHistory::~tst_QWebHistory): 6321 (tst_QWebHistory::init): 6322 (tst_QWebHistory::cleanup): 6323 (tst_QWebHistory::title): 6324 (tst_QWebHistory::count): 6325 (tst_QWebHistory::back): 6326 (tst_QWebHistory::forward): 6327 (tst_QWebHistory::goToItem): 6328 (tst_QWebHistory::items): 6329 * tests/qwebhistory/tst_qwebhistory.qrc: Added. 6330 * tests/tests.pro: 6331 6332 2009-06-26 Jedrzej Nowacki <jedrzej.nowacki (a] nokia.com> 6333 6334 Reviewed by Simon Hausmann. 6335 6336 Fix support for documenting functions prefixed with QWEBKIT_EXPORT 6337 6338 Add QWEBKIT_EXPORT to the list of macros to ignore by qdoc. 6339 6340 * docs/qtwebkit.qdocconf: 6341 6342 2009-06-26 Yongjun Zhang <yongjun.zhang (a] nokia.com> 6343 6344 Reviewed by Eric Seidel. 6345 6346 Bug 20303: [Qt] Key events are not working in frames. 6347 6348 Send scrolling events to current focused frame, bubble the event 6349 up to parent frame if it is not handled. Use EventHandler's new 6350 shared scrolling code. 6351 6352 * Api/qwebpage.cpp: 6353 (QWebPagePrivate::keyPressEvent): 6354 (QWebPagePrivate::handleScrolling): 6355 * Api/qwebpage_p.h: 6356 6357 2009-06-25 Jakub Wieczorek <faw217 (a] gmail.com> 6358 6359 Reviewed by Adam Treat. 6360 6361 Add highlight functionality to the QWebPage::findText() method. Introduced is 6362 new HighlightAllOccurrences flag which passed to the function will make it mark 6363 all existing occurrences of specified string in the page. 6364 6365 * Api/qwebpage.cpp: 6366 (QWebPage::findText): 6367 * Api/qwebpage.h: 6368 * Api/qwebview.cpp: 6369 6370 2009-06-19 Daniel Teske <qt-info (a] nokia.com> 6371 6372 Reviewed by Simon Hausmann. 6373 6374 Remove warnings for QString() constructions from const char * 6375 6376 By explicitly wrapping it with QLatin1String() / QLatin1Char() 6377 6378 * Api/qwebelement.cpp: 6379 (QWebElement::classes): Use QLatin1String. 6380 (QWebElement::addClass): Ditto. 6381 (QWebElement::removeClass): Ditto. 6382 (QWebElement::toggleClass): Ditto. 6383 6384 2009-06-18 Friedemann Kleint <Friedemann.Kleint (a] nokia.com> 6385 6386 Reviewed by Simon Hausmann. 6387 6388 Fixed MinGW compilation. 6389 6390 * Api/qwebelement.cpp: 6391 (QWebElement::evaluateScript): 6392 6393 2009-06-18 Markus Goetz <Markus.Goetz (a] nokia.com> 6394 6395 Reviewed by Simon Hausman. 6396 6397 Clarify in docs how to compile with debug information. 6398 6399 * docs/qtwebkit.qdoc: 6400 6401 2009-06-17 Markus Goetz <Markus.Goetz (a] nokia.com> 6402 6403 Reviewed by Simon Hausmann. 6404 6405 QWebPage: Don't call supportsSsl() 6406 6407 This stops QWebPage from loading the OpenSSL libs, 6408 certificates etc. when they are not needed for the non-HTTPS case. 6409 6410 Loading the SSL libraries can be a very slow operation. 6411 6412 * Api/qwebpage.cpp: 6413 (QWebPage::userAgentForUrl): 6414 6415 2009-06-16 David Boddie <dboddie (a] trolltech.com> 6416 6417 Reviewed by Simon Hausmann. 6418 6419 Doc: Fixed QWebPage::forwardUnsupportedContent documentation and added 6420 more information about Web plugins. 6421 6422 * Api/qwebpage.cpp: 6423 * Api/qwebsettings.cpp: 6424 * docs/qtwebkit.qdoc: 6425 6426 2009-06-16 Morten Engvoldsen <morten.engvoldsen (a] nokia.com> 6427 6428 Reviewed by Ariya Hidayat. 6429 6430 Clearifying QWebFrame docs 6431 6432 Adding docs to toHtml() and toPlainText() 6433 6434 * Api/qwebframe.cpp: 6435 6436 2009-06-15 Benjamin C Meyer <benjamin.meyer (a] torchmobile.com> 6437 6438 Reviewed by Adam Treat. 6439 6440 Support the back/forward/stop/refresh multimedia keys and accept the 6441 event when handling backspace and shift backspace as we should. 6442 6443 * Api/qwebpage.cpp: 6444 (QWebPagePrivate::keyPressEvent): 6445 6446 2009-06-15 Andre Pedralho <andre.pedralho (a] openbossa.org> 6447 6448 Reviewed by Adam Treat. 6449 6450 https://bugs.webkit.org/show_bug.cgi?id=26351 6451 Remove bool QWebHitTestResult::isScrollBar() const and make sure a null QWebHitTestResult is returned instead. 6452 6453 * Api/qwebframe.cpp: 6454 (QWebFrame::hitTestContent): 6455 * Api/qwebframe.h: 6456 * Api/qwebpage.cpp: 6457 (QWebPage::updatePositionDependentActions): 6458 6459 2009-06-15 Simon Hausmann <simon.hausmann (a] nokia.com> 6460 6461 Reviewed by Adam Treat. 6462 6463 Fix the logic for disabling the fixed layout feature, when an invalid 6464 QSize is set. 6465 6466 * Api/qwebpage.cpp: 6467 (QWebPage::setFixedContentsSize): 6468 6469 2009-06-13 Adam Barth <abarth (a] webkit.org> 6470 6471 Reviewed by Darin Fisher. 6472 6473 https://bugs.webkit.org/show_bug.cgi?id=24492 6474 6475 Move registerURLSchemeAsLocal from FrameLoader to SecurityOrigin. 6476 6477 * Api/qwebpage.cpp: 6478 (QWebPage::acceptNavigationRequest): 6479 6480 2009-06-10 Antonio Gomes <antonio.gomes (a] openbossa.org> 6481 6482 Reviewed by Ariya Hidayat. 6483 6484 Documented ResolveRule and StylePriority enum values as well as their use in 6485 QWebElement::styleProperty and QWebElement::setStyleProperty methods. 6486 6487 Based on the work of Simon Hausmann. 6488 6489 * Api/qwebelement.cpp: 6490 (QWebElement::styleProperty): 6491 (QWebElement::setStyleProperty): 6492 * Api/qwebelement.h: 6493 6494 2009-06-09 Ariya Hidayat <ariya.hidayat (a] nokia.com> 6495 6496 Rubber-stamped by Simon Hausmann. 6497 6498 Fix qdoc warning, function parameter string must be referred. 6499 6500 * Api/qwebview.cpp: 6501 6502 2009-06-09 Simon Hausmann <simon.hausmann (a] nokia.com> 6503 6504 Reviewed by Ariya Hidayat. 6505 6506 Renamed QWebSettings::AllowUniversalAccessFromFileUrls to 6507 LocalContentCanAccessRemoteUrls, as discussed in the API review. 6508 6509 * Api/qwebsettings.cpp: 6510 (QWebSettingsPrivate::apply): 6511 (QWebSettings::QWebSettings): 6512 * Api/qwebsettings.h: 6513 6514 2009-06-09 Simon Hausmann <simon.hausmann (a] nokia.com> 6515 6516 Reviewed by Ariya Hidayat. 6517 6518 Merged useFixedLayout property with fixedLayoutSize and 6519 renamed the latter to fixedContentsSize. 6520 6521 * Api/qwebpage.cpp: 6522 (QWebPage::fixedContentsSize): 6523 (QWebPage::setFixedContentsSize): 6524 * Api/qwebpage.h: 6525 * WebCoreSupport/FrameLoaderClientQt.cpp: 6526 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 6527 6528 2009-06-09 Simon Hausmann <simon.hausmann (a] nokia.com> 6529 6530 Reviewed by Ariya Hidayat. 6531 6532 Renamed QWebHitTestResult::linkTarget to linkElement() and made it return 6533 a QWebElement. The link target itself is always the target DOM attribute. 6534 6535 * Api/qwebframe.cpp: 6536 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 6537 (QWebHitTestResult::linkElement): 6538 * Api/qwebframe.h: 6539 * Api/qwebframe_p.h: 6540 * tests/qwebframe/tst_qwebframe.cpp: 6541 6542 2009-06-08 Simon Hausmann <simon.hausmann (a] nokia.com> 6543 6544 Reviewed by Holger Freyther. 6545 6546 Renamed QWebElement::enclosingBlock to enclosingBlockElement 6547 and changed the return type to QWebElement, as discussed in 6548 the API review. This API is more generic and through 6549 QWebElement's geometry() it is possible to retrieve the 6550 same information. 6551 6552 * Api/qwebelement.cpp: 6553 (QWebElement::QWebElement): 6554 * Api/qwebelement.h: 6555 * Api/qwebframe.cpp: 6556 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 6557 (QWebHitTestResult::enclosingBlockElement): 6558 * Api/qwebframe.h: 6559 * Api/qwebframe_p.h: 6560 6561 2009-06-05 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 6562 6563 Reviewed by Simon Hausmann. 6564 6565 [Qt] Add missing includes of config.h 6566 6567 * Api/qcookiejar.cpp: 6568 * Api/qwebnetworkinterface.cpp: 6569 * Plugins/ICOHandler.cpp: 6570 * WebCoreSupport/DragClientQt.cpp: 6571 * WebCoreSupport/EditCommandQt.cpp: 6572 6573 2009-06-03 Kenneth Rohde Christiansen <kenneth.christiansen (a] openbossa.org> 6574 6575 Reviewed by Simon Hausmann. 6576 6577 Add API to make it possible to clear all memory caches used by 6578 QtWebKit. 6579 6580 * Api/qwebsettings.cpp: 6581 (QWebSettings::clearMemoryCaches): 6582 * Api/qwebsettings.h: 6583 6584 2009-06-01 Benjamin C Meyer <benjamin.meyer (a] torchmobile.com> 6585 6586 Rubber-stamped by Gustavo Noronha. 6587 6588 Before guessing the url trim the string to remove whitespace added to the start/end by the user. 6589 6590 * Api/qwebview.cpp: 6591 (QWebView::guessUrlFromString): 6592 * tests/qwebview/tst_qwebview.cpp: 6593 (tst_QWebView::guessUrlFromString_data): 6594 6595 2009-06-01 Benjamin C Meyer <benjamin.meyer (a] torchmobile.com> 6596 6597 Rubber-stamped by Gustavo Noronha. 6598 6599 Use QLatin1Char() to compile when QT_NO_CAST_FROM_ASCII and QT_NO_CAST_TO_ASCII is defined 6600 6601 * Api/qwebview.cpp: 6602 (QWebView::guessUrlFromString): 6603 6604 2009-06-01 Benjamin C Meyer <benjamin.meyer (a] torchmobile.com> 6605 6606 Rubber-stamped by Gustavo Noronha. 6607 6608 Cleanup autotest file 6609 - use proper includes 6610 - remove useless constructor and destructor 6611 - add missing newline at the end of the file 6612 6613 * tests/qwebview/tst_qwebview.cpp: 6614 6615 2009-06-01 Benjamin C Meyer <benjamin.meyer (a] torchmobile.com> 6616 6617 Rubber-stamped by Gustavo Noronha. 6618 6619 Add a missing space between two words in the documentation. 6620 6621 * Api/qwebview.cpp: 6622 6623 2009-05-26 Benjamin C Meyer <benjamin.meyer (a] torchmobile.com> 6624 6625 Reviewed by Holger Freyther. 6626 6627 https://bugs.webkit.org/show_bug.cgi?id=25823 6628 6629 Add an API to generate a QUrl out of a string correcting for errors and missing information. 6630 See the API documentation for more details about the function. 6631 6632 Autotests: included 6633 6634 * Api/qwebview.cpp: 6635 (QWebView::guessUrlFromString): 6636 * Api/qwebview.h: 6637 * QtLauncher/main.cpp: 6638 (MainWindow::MainWindow): 6639 (MainWindow::changeLocation): 6640 * tests/qwebview/.gitignore: Added. 6641 * tests/qwebview/qwebview.pro: 6642 (tst_QWebView::initTestCase): 6643 (tst_QWebView::cleanupTestCase): 6644 (tst_QWebView::init): 6645 (tst_QWebView::cleanup): 6646 (tst_QWebView::guessUrlFromString_data): 6647 (tst_QWebView::guessUrlFromString): 6648 6649 2009-05-23 David Kilzer <ddkilzer (a] apple.com> 6650 6651 Part 2 of 2: Bug 25495: Implement PassOwnPtr and replace uses of std::auto_ptr 6652 6653 <https://bugs.webkit.org/show_bug.cgi?id=25495> 6654 6655 Reviewed by Oliver Hunt. 6656 6657 * WebCoreSupport/ChromeClientQt.h: 6658 (WebCore::ChromeClientQt::createHTMLParserQuirks): Return a 6659 PassOwnPtr<> instead of a raw HTMLParserQuirks pointer. 6660 6661 2009-05-23 Jakob Truelsen <antialize (a] gmail.com> 6662 6663 Reviewed by Holger Freyther. 6664 6665 https://bugs.webkit.org/show_bug.cgi?id=25863 6666 6667 Expose the default text encoding property to Qt. 6668 6669 * Api/qwebsettings.cpp: 6670 (QWebSettingsPrivate::apply): 6671 (QWebSettings::setDefaultTextEncoding): 6672 (QWebSettings::defaultTextEncoding): 6673 * Api/qwebsettings.h: 6674 6675 2009-05-21 Antonio Gomes <antonio.gomes (a] openbossa.org> 6676 6677 Reviewed by Simon Hausmann. 6678 6679 [Qt] Additional test for resource load (CSS file) for QWebFrame. 6680 6681 * tests/qwebframe/qwebframe.qrc: 6682 * tests/qwebframe/style.css: Added. 6683 * tests/qwebframe/tst_qwebframe.cpp: 6684 6685 2009-05-22 Simon Hausmann <simon.hausmann (a] nokia.com> 6686 6687 Unreviewed Qt build fix. 6688 6689 Provide dummy implementation of pure virtual EditorClient method. 6690 6691 * WebCoreSupport/EditorClientQt.cpp: 6692 (WebCore::EditorClientQt::getAutoCorrectSuggestionForMisspelledWord): 6693 * WebCoreSupport/EditorClientQt.h: 6694 6695 2009-05-20 Ariya Hidayat <ariya.hidayat (a] nokia.com> 6696 6697 Reviewed by Simon Hausmann and Holger Freyther. 6698 6699 [Qt] Add renderHints property to QWebView. 6700 6701 * Api/qwebview.cpp: 6702 (QWebViewPrivate::QWebViewPrivate): 6703 (QWebView::renderHints): 6704 (QWebView::setRenderHints): 6705 (QWebView::setRenderHint): 6706 (QWebView::paintEvent): 6707 * Api/qwebview.h: 6708 * tests/qwebview/qwebview.pro: Added. 6709 * tests/qwebview/tst_qwebview.cpp: Added. 6710 (tst_QWebView::tst_QWebView): 6711 (tst_QWebView::~tst_QWebView): 6712 (tst_QWebView::init): 6713 (tst_QWebView::cleanup): 6714 (tst_QWebView::renderHints): 6715 * tests/tests.pro: 6716 6717 2009-05-20 Holger Hans Peter Freyther <zecke (a] selfish.org> 6718 6719 Reviewed by Darin Adler. 6720 6721 https://bugs.webkit.org/show_bug.cgi?id=25834 6722 6723 Make ChromeClient a interface again 6724 6725 With recent additions to ChromeClient.h empty defaults were 6726 added. This is bad for porters as these changes go unnoticed 6727 and at runtime no notImplemented warning is logged and grepping 6728 for notImplemented will not show anything. Change this Client 6729 to be like the other Clients again and always have pure virtuals 6730 (but for stuff inside #ifdef PLATFORM(MAC)). 6731 6732 Update the various WebKit/* implementations to compile again. 6733 6734 * WebCoreSupport/ChromeClientQt.cpp: 6735 (WebCore::ChromeClientQt::setCursor): 6736 (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame): 6737 * WebCoreSupport/ChromeClientQt.h: 6738 (WebCore::ChromeClientQt::scrollRectIntoView): 6739 6740 2009-05-19 Kenneth Rohde Christiansen <kenneth.christiansen (a] openbossa.org> 6741 6742 Reviewed by Simon Hausmann. 6743 6744 Fix a plugin bug in the WebKit code, similar to the one in WebCore. 6745 6746 The problem is when a non visible QtPluginWidget would show it self 6747 in a sibling frame. The problem was due to our clipping. In Qt, 6748 if setMask is set with an empty QRegion, no clipping will 6749 be performed, so in that case we hide the PluginContainer 6750 6751 * WebCoreSupport/FrameLoaderClientQt.cpp: 6752 (WebCore::): 6753 6754 2009-05-18 Zoltan Horvath <horvath.zoltan.6 (a] stud.u-szeged.hu> 6755 6756 Reviewed by Ariya Hidayat. 6757 6758 Makes QtLauncher to accept multiple urls in command line and opens these in separate windows. 6759 6760 * QtLauncher/main.cpp: 6761 (MainWindow::newWindow): 6762 (main): 6763 6764 2009-05-14 Kenneth Rohde Christiansen <kenneth.christiansen (a] openbossa.org> 6765 6766 Reviewed by Ariya Hidayat. 6767 6768 Add a comment to QWebView::iconChanged(), mentioning that you will 6769 need to set the icon database path for icons to be loaded, and thus 6770 receive the signal. 6771 6772 * Api/qwebview.cpp: 6773 6774 2009-05-14 Yael Aharon <yael.aharon (a] nokia.com> 6775 6776 Reviewed by Ariya Hidayat. 6777 6778 Fix setHtml test case by adding <head> tag to the expected result. This tag is automatically added by WebKit. 6779 6780 * tests/qwebframe/tst_qwebframe.cpp: 6781 6782 2009-05-14 Yael Aharon <yael.aharon (a] nokia.com> 6783 6784 Reviewed by Ariya Hidayat. 6785 6786 Add a test case for the signal urlChanged(). 6787 * tests/qwebframe/tst_qwebframe.cpp: 6788 6789 2009-05-13 Yael Aharon <yael.aharon (a] nokia.com> 6790 6791 Reviewed by Ariya Hidayat. 6792 6793 Move emitting the signal QWebFrame::urlChanged to FrameLoaderClientQt::dispatchDidCommitLoad(). 6794 This is to ensure that urlChanged() is emitted even if the frame has no title. 6795 6796 * WebCoreSupport/FrameLoaderClientQt.cpp: 6797 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle): 6798 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad): 6799 6800 2009-05-13 Kenneth Rohde Christiansen <kenneth.christiansen (a] openbossa.org> 6801 6802 Rubberstamped by Ariya Hidayat. 6803 6804 Fix coding style: Add {} to contents of if, containing a for loop. 6805 6806 * Api/qwebelement.cpp: 6807 (QWebElement::styleProperty): 6808 6809 2009-05-12 Antonio Gomes <antonio.gomes (a] openbossa.org> 6810 6811 Reviewed by Ariya Hidayat. 6812 6813 Fixed a possible crash @styleProperty when there is no embedded/external CSS set. 6814 6815 * Api/qwebelement.cpp: 6816 (QWebElement::styleProperty): 6817 * tests/qwebelement/tst_qwebelement.cpp: 6818 (tst_QWebElement::style): 6819 6820 2009-05-12 Antonio Gomes <antonio.gomes (a] openbossa.org> 6821 6822 Reviewed by Ariya Hidayat. 6823 6824 Added external CSS test cases to QWebElement::styleProperty() method. 6825 6826 Also some ::styleProperty() tests cleanup. 6827 6828 * tests/qwebelement/tst_qwebelement.cpp: 6829 (tst_QWebElement::style): 6830 6831 2009-05-12 Kenneth Rohde Christiansen <kenneth.christiansen (a] openbossa.org> 6832 6833 Reviewed by Ariya Hidayat. 6834 6835 Many methods were not considering the case of the element not having 6836 siblings or children when inserting nodes, and thus broke in some 6837 situations. This patch fixes that. 6838 6839 * Api/qwebelement.cpp: 6840 (QWebElement::prependInside): 6841 (QWebElement::appendOutside): 6842 (QWebElement::encloseWith): 6843 6844 2009-05-08 Kenneth Rohde Christiansen <kenneth.christiansen (a] openbossa.org> 6845 6846 Reviewed by Ariya Hidayat. 6847 6848 Make is possible to mark a style property as important while setting 6849 it. Also support the normal CSS property syntax "!important", while 6850 accepting spaces between the ! and the important keyword. 6851 6852 * Api/qwebelement.cpp: 6853 (QWebElement::setStyleProperty): 6854 * Api/qwebelement.h: 6855 * tests/qwebelement/tst_qwebelement.cpp: 6856 (tst_QWebElement::style): 6857 6858 2009-05-08 Kenneth Rohde Christiansen <kenneth.christiansen (a] openbossa.org> 6859 6860 Reviewed by Ariya Hidayat. 6861 6862 Working with Antonio Gomes. 6863 6864 Add support for finding the style property actually applied to the element. 6865 6866 * Api/qwebelement.cpp: 6867 (QWebElement::styleProperty): 6868 * Api/qwebelement.h: 6869 * tests/qwebelement/tst_qwebelement.cpp: 6870 (tst_QWebElement::style): 6871 6872 2009-05-11 Norbert Leser <norbert.leser (a] nokia.com> 6873 6874 Reviewed by Darin Adler. 6875 6876 Bug 24538: class/struct mixup in forward declarations 6877 https://bugs.webkit.org/show_bug.cgi?id=24538 6878 6879 * Api/qwebpage.h: 6880 6881 2009-05-11 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 6882 6883 Reviewed by Holger Freyther. 6884 6885 Fix Qt build when ENABLE_DATABASE is turned off 6886 6887 https://bugs.webkit.org/show_bug.cgi?id=25587 6888 6889 * Api/qwebdatabase.cpp: 6890 (QWebDatabase::displayName): 6891 (QWebDatabase::expectedSize): 6892 (QWebDatabase::size): 6893 (QWebDatabase::fileName): 6894 (QWebDatabase::removeDatabase): 6895 * Api/qwebdatabase_p.h: 6896 * Api/qwebsecurityorigin.cpp: 6897 (QWebSecurityOrigin::allOrigins): 6898 (QWebSecurityOrigin::databases): 6899 6900 2009-05-05 Kenneth Rohde Christiansen <kenneth.christiansen (a] openbossa.org> 6901 6902 Reviewed by Simon Hausmann. 6903 6904 Improve behaviour of the QWebElement enclose* functions, to work 6905 similar to the jQuery wrap functions. We now enclose the contents 6906 of the element in the child of the deepest descendant element 6907 within the structure of the enclose element structure given. 6908 6909 * Api/qwebelement.cpp: 6910 (findInsertionPoint): 6911 (QWebElement::encloseContentsWith): 6912 (QWebElement::encloseWith): 6913 (QWebElement::replace): 6914 * tests/qwebelement/tst_qwebelement.cpp: 6915 (tst_QWebElement::encloseContentsWith): 6916 (tst_QWebElement::encloseWith): 6917 6918 2009-05-06 Kenneth Rohde Christiansen <kenneth.christiansen (a] openbossa.org> 6919 6920 Reviewed by Simon Hausmann. 6921 6922 After commit rev @43215, setHtml() without a <head> tag, 6923 automatically adds it, so update our test case to respect this. 6924 6925 * tests/qwebelement/tst_qwebelement.cpp: 6926 (tst_QWebElement::textHtml): 6927 6928 2009-05-06 Simon Hausmann <simon.hausmann (a] nokia.com> 6929 6930 Unreviewed Qt build fix. 6931 6932 Dont' use ENABLE() in Qt API headers, as they are not available when building 6933 against the API. 6934 6935 * Api/qwebdatabase.h: 6936 * Api/qwebsecurityorigin.h: 6937 6938 2009-05-05 Ben Murdoch <benm (a] google.com> 6939 6940 Reviewed by Eric Seidel. 6941 6942 Add #if ENABLE(DATABASE) guards around database code so toggling ENABLE_DATABASE off does not break builds. 6943 https://bugs.webkit.org/show_bug.cgi?id=24776 6944 6945 * Api/qwebdatabase.cpp: 6946 * Api/qwebdatabase.h: 6947 * Api/qwebdatabase_p.h: 6948 * Api/qwebsecurityorigin.cpp: 6949 (QWebSecurityOrigin::databaseUsage): 6950 (QWebSecurityOrigin::databaseQuota): 6951 (QWebSecurityOrigin::setDatabaseQuota): 6952 * Api/qwebsecurityorigin.h: 6953 * WebCoreSupport/ChromeClientQt.cpp: 6954 (WebCore::ChromeClientQt::exceededDatabaseQuota): 6955 * WebCoreSupport/ChromeClientQt.h: 6956 6957 2009-05-05 Simon Hausmann <simon.hausmann (a] nokia.com> 6958 6959 Reviewed by Tor Arne Vestb. 6960 6961 Various improvements to the class documentation, including a simple snippet for QWebElement. 6962 6963 * Api/qwebelement.cpp: 6964 * Api/qwebframe.cpp: 6965 * docs/webkitsnippets/webelement/main.cpp: Added. 6966 * docs/webkitsnippets/webelement/webelement.pro: Added. 6967 6968 2009-05-05 Simon Hausmann <simon.hausmann (a] nokia.com> 6969 6970 Reviewed by Ariya Hidayat. 6971 6972 Simplify variant conversion by moving the null check into 6973 convertValueToQVariant. 6974 6975 * Api/qwebframe.cpp: 6976 (QWebFrame::evaluateJavaScript): Moved null check into conversion function. 6977 * tests/qwebframe/tst_qwebframe.cpp: 6978 Added test to verify the correct conversion of null values to QVariant. 6979 6980 2009-05-01 Geoffrey Garen <ggaren (a] apple.com> 6981 6982 Rubber Stamped by Sam Weinig. 6983 6984 Renamed JSValuePtr => JSValue. 6985 6986 * Api/qwebelement.cpp: 6987 (setupScriptContext): 6988 (setupScriptObject): 6989 (QWebElement::evaluateScript): 6990 (QWebElement::functions): 6991 (QWebElement::scriptableProperty): 6992 (QWebElement::setScriptableProperty): 6993 (QWebElement::scriptableProperties): 6994 6995 2009-05-01 Pavel Feldman <pfeldman (a] chromium.org> 6996 6997 Reviewed by Timothy Hatcher. 6998 6999 Add a FrameLoaderClient callback for the ResourceRetrievedByXMLHttpRequest. 7000 7001 https://bugs.webkit.org/show_bug.cgi?id=25347 7002 7003 * WebCoreSupport/FrameLoaderClientQt.cpp: 7004 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceByXMLHttpRequest): 7005 * WebCoreSupport/FrameLoaderClientQt.h: 7006 7007 2009-04-30 David Kilzer <ddkilzer (a] apple.com> 7008 7009 Provide a mechanism to create a quirks delegate for HTMLParser 7010 7011 Reviewed by David Hyatt. 7012 7013 * WebCoreSupport/ChromeClientQt.h: 7014 (WebCore::ChromeClientQt::createHTMLParserQuirks): Added. The 7015 default implementation of this factory method returns 0. 7016 7017 2009-04-30 Ariya Hidayat <ariya.hidayat (a] nokia.com> 7018 7019 Unreviewed build fix after r43072. 7020 7021 * Api/qwebframe.cpp: 7022 (qt_drt_setJavaScriptProfilingEnabled): Enclose with JAVASCRIPT_DEBUGGER. 7023 7024 2009-04-30 Ariya Hidayat <ariya.hidayat (a] nokia.com> 7025 7026 Unreviewed build fix after r43063. 7027 7028 * WebCoreSupport/ChromeClientQt.cpp: 7029 (WebCore::ChromeClientQt::addMessageToConsole): 7030 * WebCoreSupport/ChromeClientQt.h: 7031 7032 2009-04-30 Kenneth Rohde Christiansen <kenneth.christiansen (a] openbossa.org> 7033 7034 Reviewed by Simon Hausmann. 7035 7036 Implement encloseContentsWith and rename wrap to encloseWith. 7037 7038 Also in encloseWith, make sure that you cannot enclose with 7039 non-enclosable elements. 7040 7041 * Api/qwebelement.cpp: 7042 (QWebElement::encloseContentsWith): 7043 (QWebElement::encloseWith): 7044 * Api/qwebelement.h: 7045 * tests/qwebelement/tst_qwebelement.cpp: 7046 (tst_QWebElement::encloseContentsWith): 7047 (tst_QWebElement::encloseWith): 7048 7049 2009-04-30 Holger Hans Peter Freyther <zecke (a] selfish.org> 7050 7051 Reviewed by Darin Adler. 7052 7053 The Qt API exposes a global history patch CSSStyleSelector to make API consumers work again 7054 7055 https://bugs.webkit.org/show_bug.cgi?id=20952 7056 7057 The QtWebKit port made the mistake of exposing a global history. This broke 7058 with the addition of PageGroup and LinkHash. This needs to be repaired 7059 for Qt4.5. 7060 7061 Add a function to LinkHash.cpp that is resolving a URL. Use this 7062 function from within CSSStyleSelector to forward the url to the 7063 QWebHistoryInterface API. 7064 7065 It is sad that there is a path within visitedLinkHash which is now 7066 doing a memcpy, it is sad to add a PLATFORM(QT) define to CSSStyleSelector 7067 and using QtWebKit types within WebCore is a layering violation as well. 7068 7069 PageGroup::setShouldTrackVisitedLinks is currently not enabled. For 7070 Qt4.6 a second version of the QWebHistoryInterface is going to be 7071 added which will fix things up. 7072 7073 * Api/qwebhistoryinterface.cpp: 7074 (QWebHistoryInterface::setDefaultInterface): Add note for Qt4.6 7075 * Api/qwebpage.cpp: Remove PageGroup::setShouldTrackVisitedLinks(true) 7076 (QWebPagePrivate::QWebPagePrivate): 7077 * tests/qwebhistoryinterface/qwebhistoryinterface.pro: Added unit test. 7078 * tests/qwebhistoryinterface/tst_qwebhistoryinterface.cpp: Added unit test. 7079 (tst_QWebHistoryInterface::tst_QWebHistoryInterface): 7080 (tst_QWebHistoryInterface::~tst_QWebHistoryInterface): 7081 (tst_QWebHistoryInterface::init): 7082 (tst_QWebHistoryInterface::cleanup): 7083 (FakeHistoryImplementation::addHistoryEntry): 7084 (FakeHistoryImplementation::historyContains): 7085 (tst_QWebHistoryInterface::visitedLinks): Check the Qt4.4 behaviour. 7086 * tests/tests.pro: 7087 7088 2009-04-30 Ariya Hidayat <ariya.hidayat (a] nokia.com> 7089 7090 Unreviewed build fix, after r43035. 7091 7092 Temporarily use Position::deprecatedEditingOffset(). 7093 7094 * Api/qwebpage.cpp: 7095 (QWebPage::inputMethodQuery): 7096 7097 2009-03-27 Benjamin C Meyer <benjamin.meyer (a] torchmobile.com> 7098 7099 Reviewed by Simon Hausmann. 7100 7101 Update the page actions when a finishing loading even if the frame is 7102 not the top frame such as when browsing inside of a website with frames. 7103 https://bugs.webkit.org/show_bug.cgi?id=24890 7104 7105 * WebCoreSupport/FrameLoaderClientQt.cpp: 7106 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 7107 * tests/qwebpage/frametest/frame_a.html: Added. 7108 * tests/qwebpage/frametest/index.html: Added. 7109 * tests/qwebpage/tst_qwebpage.cpp: 7110 (tst_QWebPage::backActionUpdate): 7111 7112 2009-04-29 Ariya Hidayat <ariya.hidayat (a] nokia.com> 7113 7114 Reviewed by Simon Hausmann. 7115 7116 Implement QWebElement::evaluateScript. 7117 7118 * Api/qwebelement.cpp: 7119 (setupScriptContext): 7120 (QWebElement::evaluateScript): 7121 * Api/qwebelement.h: 7122 * tests/qwebelement/tst_qwebelement.cpp: 7123 (tst_QWebElement::evaluateScript): 7124 7125 2009-04-29 Simon Hausmann <simon.hausmann (a] nokia.com> 7126 7127 Reviewed by Ariya Hidayat. 7128 7129 Replaced QWebElementCollection with QList<QWebElement>. 7130 7131 * Api/qwebelement.cpp: 7132 (QWebElement::findAll): 7133 * Api/qwebelement.h: 7134 * Api/qwebframe.cpp: 7135 (QWebFrame::findAllElements): 7136 * Api/qwebframe.h: 7137 * QtLauncher/main.cpp: 7138 (MainWindow::selectElements): 7139 * tests/qwebelement/tst_qwebelement.cpp: 7140 (tst_QWebElement::simpleCollection): 7141 (tst_QWebElement::namespaceURI): 7142 (tst_QWebElement::nullSelect): 7143 7144 2009-04-28 Simon Hausmann <simon.hausmann (a] nokia.com> 7145 7146 Reviewed by Tor Arne Vestb. 7147 7148 QWebElement API changes after another round of API review: 7149 7150 * Fix argument names of findAll/findFirst 7151 * Split up toXml into innerXml and outerXml 7152 * Removed confusing toggleClass overload 7153 * Fixed casing of namespaceUri to follow QXmlStreamReader 7154 * Removed tagName from firstChild/nextSibling/etc. 7155 * Renamed append/prepend/insertAfter/insertBefore to [append|prepend][Inside|Outside] 7156 * Renamed wrapWith() back to wrap() 7157 * Made clone() const 7158 * Renamed remove() to takeFromDocument(), added removeFromDocument() 7159 * Renamed clear() to removeChildren() 7160 * Renamed scriptsFunctions/callScriptFunction to functions()/callFunction() 7161 * Renamed scriptProperty to scriptableProperty 7162 7163 * Api/qwebelement.cpp: 7164 (QWebElement::findAll): 7165 (QWebElement::findFirst): 7166 (QWebElement::setOuterXml): 7167 (QWebElement::toOuterXml): 7168 (QWebElement::setInnerXml): 7169 (QWebElement::toInnerXml): 7170 (QWebElement::namespaceUri): 7171 (QWebElement::firstChild): 7172 (QWebElement::lastChild): 7173 (QWebElement::nextSibling): 7174 (QWebElement::previousSibling): 7175 (QWebElement::callFunction): 7176 (QWebElement::functions): 7177 (QWebElement::scriptableProperty): 7178 (QWebElement::setScriptableProperty): 7179 (QWebElement::scriptableProperties): 7180 (QWebElement::appendInside): 7181 (QWebElement::prependInside): 7182 (QWebElement::prependOutside): 7183 (QWebElement::appendOutside): 7184 (QWebElement::clone): 7185 (QWebElement::takeFromDocument): 7186 (QWebElement::removeFromDocument): 7187 (QWebElement::removeChildren): 7188 (QWebElement::wrap): 7189 (QWebElement::replace): 7190 * Api/qwebelement.h: 7191 * Api/qwebframe.cpp: 7192 (QWebFrame::findAllElements): 7193 (QWebFrame::findFirstElement): 7194 * Api/qwebframe.h: 7195 * tests/qwebelement/tst_qwebelement.cpp: 7196 (tst_QWebElement::textHtml): 7197 (tst_QWebElement::classes): 7198 (tst_QWebElement::namespaceURI): 7199 (tst_QWebElement::foreachManipulation): 7200 (tst_QWebElement::callFunction): 7201 (tst_QWebElement::callFunctionSubmitForm): 7202 (tst_QWebElement::functionNames): 7203 (tst_QWebElement::properties): 7204 (tst_QWebElement::appendAndPrepend): 7205 (tst_QWebElement::insertBeforeAndAfter): 7206 (tst_QWebElement::remove): 7207 (tst_QWebElement::clear): 7208 (tst_QWebElement::replaceWith): 7209 7210 2009-04-28 Simon Hausmann <simon.hausmann (a] nokia.com> 7211 7212 Reviewed by Tor Arne Vestb. 7213 7214 Fix some qdoc warnings. 7215 7216 * Api/qwebframe.cpp: Fix links. 7217 * Api/qwebnetworkinterface.cpp: Make docs internal. 7218 * Api/qwebnetworkinterface.h: Ditto. 7219 * Api/qwebpage.cpp: Fix property name in \property. 7220 7221 2009-04-24 Simon Hausmann <simon.hausmann (a] nokia.com> 7222 7223 Rubber-stamped by Ariya Hidayat. 7224 7225 Fix qdoc warning about link to QAction::isEnabled. 7226 7227 * Api/qwebpage.cpp: 7228 7229 2009-04-24 Simon Hausmann <simon.hausmann (a] nokia.com> 7230 7231 Reviewed by Ariya Hidayat. 7232 7233 Added support for generating API docs in the Qt build using "make docs" 7234 7235 Added code snippets and overview from the Qt sources references in the API docs. 7236 7237 * Api/qwebpage.cpp: Adjust paths to snippets. 7238 * Api/qwebview.cpp: Ditto. 7239 * docs/docs.pri: Added. 7240 * docs/qtwebkit.qdoc: Added. 7241 * docs/qtwebkit.qdocconf: Added. 7242 * docs/webkitsnippets/qtwebkit_build_snippet.qdoc: Added. 7243 * docs/webkitsnippets/qtwebkit_qwebview_snippet.cpp: Added. 7244 * docs/webkitsnippets/simple/main.cpp: Added. 7245 * docs/webkitsnippets/simple/simple.pro: Added. 7246 * docs/webkitsnippets/webpage/main.cpp: Added. 7247 * docs/webkitsnippets/webpage/webpage.pro: Added. 7248 7249 2009-04-23 Antonio Gomes <antonio.gomes (a] openbossa.org> 7250 7251 Reviewed by Ariya Hidayat. 7252 7253 [Qt] Added QWebElement::computedStyleProperty method. 7254 7255 * Api/qwebelement.cpp: 7256 (QWebElement::computedStyleProperty): 7257 * Api/qwebelement.h: 7258 * tests/qwebelement/tst_qwebelement.cpp: 7259 (tst_QWebElement::computedStyle): 7260 7261 2009-04-23 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 7262 7263 Rubber-stamped by Ariya Hidayat. 7264 7265 [Qt] Rename QWebElement arguments from html to markup 7266 7267 * Api/qwebelement.cpp: 7268 (QWebElement::append): 7269 (QWebElement::prepend): 7270 (QWebElement::insertBefore): 7271 (QWebElement::insertAfter): 7272 * Api/qwebelement.h: 7273 7274 2009-04-21 Antonio Gomes <antonio.gomes (a] openbossa.org> 7275 7276 Reviewed by Ariya Hidayat. 7277 7278 QWebElementSelection renamed to QWebElementCollection. 7279 7280 * Api/qwebelement.cpp: 7281 (QWebElement::findAll): 7282 (QWebElementCollectionPrivate::QWebElementCollectionPrivate): 7283 (QWebElementCollectionPrivate::create): 7284 (QWebElementCollection::QWebElementCollection): 7285 (QWebElementCollection::operator=): 7286 (QWebElementCollection::~QWebElementCollection): 7287 (QWebElementCollection::operator+): 7288 (QWebElementCollection::append): 7289 (QWebElementCollection::count): 7290 (QWebElementCollection::at): 7291 (QWebElementCollection::toList): 7292 * Api/qwebelement.h: 7293 * Api/qwebframe.cpp: 7294 (QWebFrame::findAllElements): 7295 * Api/qwebframe.h: 7296 * QtLauncher/main.cpp: 7297 (MainWindow::selectElements): 7298 * tests/qwebelement/tst_qwebelement.cpp: 7299 (tst_QWebElement::simpleCollection): 7300 (tst_QWebElement::iteration): 7301 (tst_QWebElement::emptyCollection): 7302 (tst_QWebElement::appendCollection): 7303 (tst_QWebElement::nullSelect): 7304 7305 2009-04-17 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 7306 7307 Reviewed by Simon Hausmann. 7308 7309 https://bugs.webkit.org/show_bug.cgi?id=25242 7310 7311 Remove QtCore 4.5 dependency from QWebElement test 7312 7313 * tests/qwebelement/tst_qwebelement.cpp: 7314 (tst_QWebElement::iteration): Use QList::count() instead of QList::length() 7315 7316 2009-04-16 Holger Hans Peter Freyther <zecke (a] selfish.org> 7317 7318 Rubber-stamped by Simon Hausmann. 7319 7320 Make the operator== and operator!= non inline to 7321 allow looking at the d-pointer in the future. 7322 7323 * Api/qwebelement.cpp: 7324 (QWebElement::operator==): 7325 (QWebElement::operator!=): 7326 * Api/qwebelement.h: 7327 7328 2009-04-15 Antonio Gomes <antonio.gomes (a] openbossa.org> 7329 7330 Reviewed by Ariya Hidayat. 7331 7332 Rename extend() method in QWebElementSelection to append(). 7333 7334 * Api/qwebelement.cpp: 7335 (QWebElementSelection::append): 7336 * Api/qwebelement.h: 7337 * tests/qwebelement/tst_qwebelement.cpp: 7338 (tst_QWebElement::appendSelection): 7339 7340 2009-04-15 Antonio Gomes <antonio.gomes (a] openbossa.org> 7341 7342 Reviewed by Simon Hausmann. 7343 7344 Fixed nit/typo in QWebElement documentation. 7345 7346 * Api/qwebelement.cpp: 7347 7348 2009-04-14 Laszlo Gombos <laszlo.1.gombos (a] nokia.com> 7349 7350 Reviewed by Simon Hausmann. 7351 7352 https://bugs.webkit.org/show_bug.cgi?id=24841 7353 7354 Fix linking against QtWebKit for Symbian and other platforms 7355 where the OS ABI distinguishes between an import or an export situation. 7356 7357 * Api/qwebkitglobal.h: Instead of white-listing Win, remove the test. 7358 7359 2009-04-14 Kenneth Rohde Christiansen <kenneth.christiansen (a] openbossa.org> 7360 7361 Reviewed by Tor Arne Vestb. 7362 7363 Rename QWebElement::setHtml and html to setXml and toXml respectivily. 7364 7365 Also add a mean to define the scope (inner or other). 7366 7367 * Api/qwebelement.cpp: 7368 (QWebElement::setXml): 7369 (QWebElement::toXml): 7370 * Api/qwebelement.h: 7371 * tests/qwebelement/tst_qwebelement.cpp: 7372 (tst_QWebElement::textHtml): 7373 (tst_QWebElement::foreachManipulation): 7374 7375 2009-04-14 Kenneth Rohde Christiansen <kenneth.christiansen (a] openbossa.org> 7376 7377 Reviewed by Tor Arne Vestb. 7378 7379 Rename QWebElement::setText() and text() to ::setPlainText and 7380 ::toPlainText, respectively. 7381 7382 * Api/qwebelement.cpp: 7383 (QWebElement::setPlainText): 7384 (QWebElement::toPlainText): 7385 * Api/qwebelement.h: 7386 * tests/qwebelement/tst_qwebelement.cpp: 7387 (tst_QWebElement::textHtml): 7388 (tst_QWebElement::simpleSelection): 7389 (tst_QWebElement::appendAndPrepend): 7390 (tst_QWebElement::insertBeforeAndAfter): 7391 (tst_QWebElement::replaceWith): 7392 (tst_QWebElement::wrap): 7393 (tst_QWebElement::firstChildNextSiblingWithTag): 7394 (tst_QWebElement::lastChildPreviousSiblingWithTag): 7395 7396 2009-04-06 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 7397 7398 Reviewed by Simon Hausmann. 7399 7400 [Qt] Rename DOM API select function to findFirst, findAll, etc. 7401 7402 * Api/qwebelement.cpp: 7403 (QWebElement::findAll): 7404 (QWebElement::findFirst): 7405 * Api/qwebelement.h: 7406 * Api/qwebframe.cpp: 7407 (QWebFrame::findAllElements): 7408 (QWebFrame::findFirstElement): 7409 * Api/qwebframe.h: 7410 * QtLauncher/main.cpp: 7411 (MainWindow::selectElements): 7412 * tests/qwebelement/tst_qwebelement.cpp: 7413 (tst_QWebElement::simpleSelection): 7414 (tst_QWebElement::attributesNS): 7415 (tst_QWebElement::classes): 7416 (tst_QWebElement::namespaceURI): 7417 (tst_QWebElement::iteration): 7418 (tst_QWebElement::foreachManipulation): 7419 (tst_QWebElement::callFunctionSubmitForm): 7420 (tst_QWebElement::documentElement): 7421 (tst_QWebElement::frame): 7422 (tst_QWebElement::style): 7423 (tst_QWebElement::extendSelection): 7424 (tst_QWebElement::properties): 7425 (tst_QWebElement::appendAndPrepend): 7426 (tst_QWebElement::insertBeforeAndAfter): 7427 (tst_QWebElement::remove): 7428 (tst_QWebElement::clear): 7429 (tst_QWebElement::replaceWith): 7430 (tst_QWebElement::wrap): 7431 (tst_QWebElement::nullSelect): 7432 (tst_QWebElement::firstChildNextSibling): 7433 (tst_QWebElement::firstChildNextSiblingWithTag): 7434 (tst_QWebElement::lastChildPreviousSibling): 7435 (tst_QWebElement::lastChildPreviousSiblingWithTag): 7436 7437 2009-04-06 Simon Hausmann <simon.hausmann (a] nokia.com> 7438 Ariya Hidayat <ariya.hidayat (a] nokia.com> 7439 Tor Arne Vestb <tor.arne.vestbo (a] nokia.com> 7440 Genevieve Mak <gen (a] staikos.net> 7441 7442 Reviewed by Tor Arne Vestb, Simon Hausmann 7443 7444 First revision of new API in the Qt port to access the DOM. 7445 7446 * Api/headers.pri: Added qwebelement.h to the API headers. 7447 * Api/qwebelement.cpp: Added. 7448 * Api/qwebelement.h: Added. 7449 * Api/qwebframe.cpp: 7450 (QWebFrame::documentElement): Added accessor for the document element. 7451 (QWebFrame::selectElements): Added convenienc query method. 7452 (QWebFrame::selectElement): Ditto. 7453 (QWebHitTestResult::element): Added accessor for underlying DOM element. 7454 * Api/qwebframe.h: 7455 * QtLauncher/main.cpp: Simple test gui for element selections. 7456 * tests/qwebelement/qwebelement.pro: Added. 7457 * tests/qwebelement/tst_qwebelement.cpp: Added. 7458 * tests/tests.pro: Added QWebElement & QWebElementSelection unit tests. 7459 7460 2009-04-02 Simon Hausmann <simon.hausmann (a] nokia.com> 7461 7462 Fix the Qt build. 7463 7464 * Api/qwebpage.cpp: 7465 (QWebPage::triggerAction): Adapted code to renamed loadFrameRequest function. 7466 7467 2009-04-02 Takumi Asaki <takumi.asaki (a] nokia.com> 7468 7469 Reviewed by Simon Hausmann. 7470 7471 Fix pre-edit handling of text fields with input methods. 7472 7473 The input method sends an empty preeditString() if all characters of 7474 the preedit should be deleted. So inputMethodEvent() has to use 7475 preeditString() if it's empty. 7476 7477 * Api/qwebpage.cpp: 7478 (QWebPagePrivate::inputMethodEvent): 7479 7480 2009-03-30 Simon Hausmann <simon.hausmann (a] nokia.com> 7481 7482 Rubber-stamped by Tor Arne Vestb. 7483 7484 Document that setHtml/setContent loads only the html/data immediately, not external objects. 7485 7486 * Api/qwebframe.cpp: 7487 * Api/qwebview.cpp: 7488 7489 2009-03-29 Darin Adler <darin (a] apple.com> 7490 7491 Try to fix Qt build. 7492 7493 * WebCoreSupport/EditorClientQt.cpp: Added include of HTMLElement.h. 7494 7495 * WebCoreSupport/FrameLoaderClientQt.cpp: Added include of FormState.h. 7496 (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement): 7497 Removed unneeded call to detachChildren, which is called by FrameLoader 7498 right after this. 7499 (WebCore::FrameLoaderClientQt::createFrame): Use loadURLIntoChildFrame 7500 as other platforms do in the corresponding functions. 7501 7502 2009-03-27 Erik L. Bunce <elbunce (a] xendom.com> 7503 7504 Reviewed by Simon Hausmann. 7505 7506 https://bugs.webkit.org/show_bug.cgi?id=24869 7507 7508 Fixes an incorrect case in tst_qwebpage. 7509 7510 * tests/qwebpage/tst_qwebpage.cpp: 7511 (tst_QWebPage::cursorMovements): 7512 7513 2009-03-27 Erik L. Bunce <elbunce (a] xendom.com> 7514 7515 Reviewed by Simon Hausmann. 7516 7517 https://bugs.webkit.org/show_bug.cgi?id=24746 7518 7519 Add new editing related QWebPage::WebActions 7520 * Clipboard: PasteAndMatchStyle 7521 * Formatting: RemoveFormat, ToggleStrikethrough, ToggleSubscript, and 7522 ToggleSuperscript 7523 * List Editing: InsertUnorderedList, InsertOrderedList, Indent, Outdent 7524 * Paragraph Justification: AlignCenter, AlignJustified, AlignLeft, AlignRight 7525 7526 Improved selection and editing tests. 7527 7528 * Api/qwebpage.cpp: 7529 (QWebPagePrivate::updateEditorActions): 7530 (QWebPage::action): 7531 * Api/qwebpage.h: 7532 * tests/qwebpage/tst_qwebpage.cpp: 7533 (tst_QWebPage::textSelection): 7534 (tst_QWebPage::textEditing): 7535 7536 2009-03-26 Simon Hausmann <simon.hausmann (a] nokia.com> 7537 7538 Rubber-stamped by Tor Arne Vestb. 7539 7540 Fix the documentation of the QLocale usage in userAgentForUrl. 7541 7542 * Api/qwebpage.cpp: 7543 7544 2009-03-20 Erik L. Bunce <elbunce (a] xendom.com> 7545 7546 Reviewed by Simon Hausmann. 7547 7548 Fix for InsertParagraphSeparator and InsertLineSeparator so that 7549 QWebPage::action() creates QActions for them. Also make sure they get 7550 updated appropriately. 7551 7552 * Api/qwebpage.cpp: 7553 (QWebPagePrivate::updateEditorActions): 7554 (QWebPage::action): 7555 * tests/qwebpage/tst_qwebpage.cpp: 7556 (tst_QWebPage::textEditing): 7557 7558 2009-03-20 Erik L. Bunce <elbunce (a] xendom.com> 7559 7560 Reviewed by Tor Arne Vestb. 7561 7562 Fix QWebPage::WebActions action states to more closely match when they are 7563 actually applicable and remove erroneous documentation. 7564 7565 * Most WebActions implemented using editor commands now use the 7566 Editor::Command::isEnabled() to control their availability. 7567 * SelectAll is always enabled (since it's editor command is). 7568 * SetTextDirection{} family of WebActions are available when canEdit() is true 7569 and not just canEditRichly(). 7570 7571 Fix and clarify documentation about the availability of various web actions. 7572 7573 * Api/qwebpage.cpp: 7574 (QWebPagePrivate::updateAction): 7575 (QWebPagePrivate::updateEditorActions): 7576 * tests/qwebpage/tst_qwebpage.cpp: 7577 (tst_QWebPage::textSelection): 7578 7579 2009-03-19 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 7580 7581 Reviewed by Simon Hausmann. 7582 7583 Fixes pedantic compilation in QtWebKit. 7584 7585 There are no semi-colons after namespace declarations. 7586 7587 * Api/qwebdatabase.h: 7588 * Api/qwebsecurityorigin.h: 7589 7590 2009-03-19 David Boddie <dboddie (a] trolltech.com> 7591 7592 Reviewed by Simon Hausmann. 7593 7594 Doc: Removed obsolete warning about Flash and other plugins. 7595 7596 * Api/qwebsettings.cpp: 7597 7598 2009-03-19 Paul Olav Tvete <paul.tvete (a] nokia.com> 7599 7600 Reviewed by Simon Hausmann. 7601 7602 Properly escape tooltip text 7603 7604 ManualTest: http://xkcd.com/554/ 7605 7606 * WebCoreSupport/ChromeClientQt.cpp: 7607 (WebCore::ChromeClientQt::setToolTip): 7608 7609 2009-03-10 Adam Treat <adam.treat (a] torchmobile.com> 7610 7611 Build fix for Qt after r41555. 7612 7613 * Api/qwebpage.cpp: 7614 (QWebPage::acceptNavigationRequest): 7615 7616 2009-03-10 Xan Lopez <xlopez (a] igalia.com> 7617 7618 Build fix, no review. 7619 7620 * Api/qwebpage.cpp: 7621 (QWebPage::inputMethodQuery): 7622 7623 2009-03-07 Adam Treat <adam.treat (a] torchmobile.com> 7624 7625 Reviewed by Cameron Zwarich. 7626 7627 These methods are clearly returning the wrong values as the two were 7628 returning swapped information. 7629 7630 * Api/qwebpage.cpp: 7631 (QWebPage::totalBytes): 7632 (QWebPage::bytesReceived): 7633 7634 2009-03-05 Ariya Hidayat <ariya.hidayat (a] nokia.com> 7635 7636 Rubber-stamped by Simon Hausmann. 7637 7638 [Qt] NPAPI plugins are supported, adjust the API documentation. 7639 7640 * Api/qwebsettings.cpp: 7641 7642 2009-03-04 Adam Barth <abath (a] webkit.org> 7643 7644 Reviewed by Alexey Proskuryakov. 7645 7646 https://bugs.webkit.org/show_bug.cgi?id=24356 7647 7648 Fix WebKit style for allowUniversalAccessFromFileURLs. 7649 7650 * Api/qwebsettings.cpp: 7651 (QWebSettingsPrivate::apply): 7652 7653 2009-03-03 Adam Barth <abarth (a] webkit.org> 7654 7655 Reviewed by Alexey Proskuryakov. 7656 7657 https://bugs.webkit.org/show_bug.cgi?id=24340 7658 7659 Expose AllowUniversalAccessFromFileUrls to Qt clients. 7660 7661 * Api/qwebsettings.cpp: 7662 (QWebSettingsPrivate::apply): 7663 (QWebSettings::QWebSettings): 7664 * Api/qwebsettings.h: 7665 7666 2009-03-03 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 7667 7668 Rubber-stamped by Simon Hausmann. 7669 7670 [Qt] Create and update the action for SelectAll. 7671 7672 * Api/qwebpage.cpp: 7673 (QWebPagePrivate::updateAction): 7674 (QWebPagePrivate::updateEditorActions): 7675 (QWebPage::action): 7676 * tests/qwebpage/tst_qwebpage.cpp: 7677 (tst_QWebPage::textSelection): 7678 7679 2009-03-02 Adam Treat <adam.treat (a] torchmobile.com> 7680 7681 Reviewed by Eric Seidel. 7682 7683 Add three new drt helper functions that enable all of the tests in 7684 LayoutTests/animation/* and LayoutTests/transitions/* to now pass. 7685 7686 * Api/qwebframe.cpp: 7687 (qt_drt_pauseAnimation): 7688 (qt_drt_pauseTransitionOfProperty): 7689 (qt_drt_numberOfActiveAnimations): 7690 7691 2009-03-02 Benjamin C Meyer <benjamin.meyer (a] torchmobile.com> 7692 7693 Reviewed by George Staikos. 7694 7695 https://bugs.webkit.org/show_bug.cgi?id=21230 7696 On X11 match the behavior of Firefox and also copy the url to the 7697 clipboard selection when the action Copy Link Location is executed. 7698 7699 * Api/qwebpage.cpp: 7700 (QWebPage::triggerAction): 7701 7702 2009-02-25 Kavindra Palaraja <kavindra.palaraja (a] nokia.com> 7703 7704 Reviewed by Simon Hausmann. 7705 7706 Fix the documentation for the linkHovered signal. 7707 7708 * Api/qwebpage.cpp: 7709 7710 2009-02-23 Adam Treat <adam.treat (a] torchmobile.com> 7711 7712 Reviewed by Darin Adler. 7713 7714 https://bugs.webkit.org/show_bug.cgi?id=24094 7715 Make sure to empty the cache on exit to get rid of superfluous leak messages 7716 for CachedResource's in order to keep the leak messages accurate. This 7717 is analagous to what the Mac port is doing on application exit when all 7718 WebView's have been closed. 7719 7720 * Api/qwebpage.cpp: 7721 (QWebPagePrivate::_q_cleanupLeakMessages): 7722 (QWebPage::QWebPage): 7723 * Api/qwebpage.h: 7724 * Api/qwebpage_p.h: 7725 7726 2009-02-23 Thiago Macieira <thiago.macieira (a] nokia.com> 7727 7728 Reviewed by Simon Hausmann. 7729 7730 Fix the Copyright notices in a few files 7731 7732 * WebKit_pch.h: 7733 7734 2009-02-16 Simon Hausmann <simon.hausmann (a] nokia.com> 7735 7736 Reviewed by Tor Arne Vestb. 7737 7738 Avoid loading plugins when they're disabled in the settings. 7739 7740 * WebCoreSupport/FrameLoaderClientQt.cpp: 7741 (WebCore::FrameLoaderClientQt::canShowMIMEType): Don't call into the 7742 PluginDatabase if plugins are disabled in the settings. 7743 7744 2009-02-13 Benjamin C Meyer <benjamin.meyer (a] torchmobile.com> 7745 7746 Reviewed by Nikolas Zimmermann. 7747 7748 https://bugs.webkit.org/show_bug.cgi?id=23738 7749 Expose the url elements target frame string. This is the sister function 7750 to the existing linkTargetFrame which returns the QWebFrame*. When the 7751 linkTargetFrame is 0 it is useful to know what the target was to be. 7752 7753 * Api/qwebframe.cpp: 7754 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 7755 (QWebHitTestResult::linkTarget): 7756 * Api/qwebframe.h: 7757 * Api/qwebframe_p.h: 7758 * tests/qwebframe/tst_qwebframe.cpp: 7759 7760 2009-02-13 David Boddie <dboddie (a] trolltech.com> 7761 7762 Reviewed by Simon Hausmann. 7763 7764 Removed documentation for internal functions. 7765 7766 * Api/qwebsettings.cpp: 7767 7768 2009-02-13 Martin Smith <msmith (a] trolltech.com> 7769 7770 Reviewed by Simon Hausmann. 7771 7772 Corrected some minor qdoc errors. 7773 7774 * Api/qwebsettings.cpp: 7775 7776 2009-02-11 Dimitri Dupuis-latour <dupuislatour (a] apple.com> 7777 7778 Stub out InspectorClientQt::hiddenPanels. 7779 7780 Reviewed by Timothy Hatcher. 7781 7782 * WebCoreSupport/InspectorClientQt.cpp: 7783 (WebCore::InspectorClientQt::hiddenPanels): 7784 * WebCoreSupport/InspectorClientQt.h: 7785 7786 2009-02-10 Karsten Heimrich <kheimric (a] trolltech.com> 7787 7788 Reviewed by Simon Hausmann. 7789 7790 Fixes missing navigation/url update while clicking on anchor inside 7791 webpage. 7792 7793 * WebCoreSupport/FrameLoaderClientQt.cpp: 7794 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage): 7795 update and emit in case we navigate inside a webpage 7796 7797 2009-02-10 Adam Treat <adam.treat (a] torchmobile.com> 7798 7799 Fix the Qt build as class Selection is now VisibleSelection. 7800 7801 * Api/qwebpage.cpp: 7802 (QWebPage::inputMethodQuery): 7803 7804 2009-02-06 Geoffrey Garen <ggaren (a] apple.com> 7805 7806 Build fix. 7807 7808 * WebCoreSupport/FrameLoaderClientQt.cpp: 7809 (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks): 7810 * WebCoreSupport/FrameLoaderClientQt.h: 7811 7812 2009-02-06 Kavindra Palaraja <kavindra.palaraja (a] nokia.com> 7813 7814 Reviewed by Simon Hausmann. 7815 7816 Doc - made 2 functions internal as they are not part of the API anymore (and this fixes 2 qdoc warnings) 7817 7818 * Api/qwebsettings.cpp: 7819 7820 2009-02-06 Simon Hausmann <simon.hausmann (a] nokia.com> 7821 7822 Reviewed by Tor Arne Vestb. 7823 7824 Added an overload of QWebFrame::addToJavaScriptWindowObject that takes a QScriptEngine::ValueOwnership parameter. 7825 7826 * Api/qwebframe.cpp: 7827 (QWebFrame::addToJavaScriptWindowObject): New overload. 7828 * Api/qwebframe.h: 7829 * tests/qwebframe/tst_qwebframe.cpp: Added unit tests for ownership 7830 models. 7831 7832 2009-02-06 Aaron Boodman <aa (a] chromium.org> 7833 7834 Reviewed by Holger Freyther. 7835 7836 * WebCoreSupport/FrameLoaderClientQt.cpp: 7837 (WebCore::FrameLoaderClientQt::documentElementAvailable):) 7838 Fix compile error in Qt build introduced by the below change (r40694). 7839 7840 2009-02-05 Aaron Boodman <aa (a] chromium.org> 7841 7842 Reviewed by Dave Hyatt. 7843 7844 https://bugs.webkit.org/show_bug.cgi?id=23708 7845 Adds documentElementAvailable() callback to FrameLoaderClient. 7846 7847 * WebCoreSupport/FrameLoaderClientQt.cpp: 7848 (WebCore::FrameLoaderClient::documentElementAvailable): 7849 Stub out documentElementAvailable(). 7850 * WebCoreSupport/FrameLoaderClientQt.h: 7851 Ditto. 7852 7853 2009-02-04 David Boddie <dboddie (a] trolltech.com> 7854 7855 Reviewed by Simon Hausmann. 7856 7857 Doc: Documented the return value of the evaluateJavaScript() function. 7858 7859 * Api/qwebframe.cpp: 7860 7861 2009-02-03 Simon Hausmann <simon.hausmann (a] nokia.com> 7862 7863 Reviewed by Tor Arne Vestb. 7864 7865 Added a unit test to verify the succesful conversion from QByteArray to 7866 JSByteArray and back to QByteArray. 7867 7868 * tests/qwebframe/tst_qwebframe.cpp: 7869 7870 2009-02-02 Geoffrey Garen <ggaren (a] apple.com> 7871 7872 Build fix. 7873 7874 * Api/qwebframe.cpp: 7875 (QWebFrame::QWebFrame): 7876 (QWebFrame::load): 7877 (QWebFrame::setHtml): 7878 (QWebFrame::setContent): 7879 7880 2009-02-02 Geoffrey Garen <ggaren (a] apple.com> 7881 7882 Build fix. 7883 7884 * WebCoreSupport/FrameLoaderClientQt.cpp: 7885 (WebCore::FrameLoaderClientQt::createFrame): 7886 7887 2009-02-02 Geoffrey Garen <ggaren (a] apple.com> 7888 7889 Reviewed by Sam Weinig. 7890 7891 Track redirects in global history. 7892 7893 Keep Qt building. 7894 7895 * WebCoreSupport/FrameLoaderClientQt.cpp: 7896 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForRedirectWithoutHistoryItem): 7897 (WebCore::FrameLoaderClientQt::createFrame): 7898 * WebCoreSupport/FrameLoaderClientQt.h: 7899 7900 2009-02-02 Anders Carlsson <andersca (a] apple.com> 7901 7902 Reviewed by Dan Bernstein. 7903 7904 Update for changes to WebCore. 7905 7906 * WebCoreSupport/FrameLoaderClientQt.cpp: 7907 (WebCore::FrameLoaderClientQt::createPlugin): 7908 (WebCore::FrameLoaderClientQt::createJavaAppletWidget): 7909 * WebCoreSupport/FrameLoaderClientQt.h: 7910 7911 2009-02-02 Adam Treat <adam.treat (a] torchmobile.com> 7912 7913 Reviewed by Nikolas Zimmermann. 7914 7915 https://bugs.webkit.org/show_bug.cgi?id=23587 7916 Refactor HitTestRequest to eliminate all the ugly boolean arguments and 7917 use an enum bitflag instead. Cleanup all the code that constructs the 7918 various HitTestRequests to make the code more readable. 7919 7920 * Api/qwebframe.cpp: 7921 (QWebFrame::hitTestContent): 7922 7923 2009-02-02 Adam Treat <adam.treat (a] torchmobile.com> 7924 7925 Fix the Qt build to call forceLayout on the view instead. 7926 7927 * Api/qwebpage.cpp: 7928 (QWebPage::setFixedLayoutSize): 7929 (QWebPage::setUseFixedLayout): 7930 7931 2009-02-02 Holger Hans Peter Freyther <zecke (a] selfish.org> 7932 7933 Reviewed by Darin Adler. 7934 7935 Move Frame::forceLayout, Frame::adjustPageHeight and Frame::forceLayoutWithPageWidthRange to FrameView 7936 7937 https://bugs.webkit.org/show_bug.cgi?id=23428 7938 7939 FrameView::forceLayout could be killed but the comment might 7940 contain a value over the the plain FrameView::layout... 7941 7942 Adjust the WebCore/WebKit consumers of these methods. 7943 7944 * Api/qwebpage.cpp: 7945 (QWebPage::setViewportSize): 7946 * WebCoreSupport/FrameLoaderClientQt.cpp: 7947 (WebCore::FrameLoaderClientQt::forceLayout): 7948 7949 2009-01-30 Geoffrey Garen <ggaren (a] apple.com> 7950 7951 Build fix. 7952 7953 * WebCoreSupport/FrameLoaderClientQt.cpp: 7954 (WebCore::FrameLoaderClientQt::createFrame): 7955 7956 2009-01-30 Holger Hans Peter Freyther <zecke (a] selfish.org> 7957 7958 Reviewed by Simon Hausmann. 7959 7960 https://bugs.webkit.org/show_bug.cgi?id=22056 7961 7962 Kill FrameLoaderClient.cpp, move the code over to Frame::createView 7963 7964 FrameLoaderClient is supposed to be an interface, move the 7965 to be shared code to Frame which is a controller and is 7966 allowed to create a FrameView. 7967 7968 * WebCoreSupport/FrameLoaderClientQt.cpp: 7969 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 7970 7971 2009-01-30 Geoffrey Garen <ggaren (a] apple.com> 7972 7973 Reviewed by Sam Weinig. 7974 7975 Split "lockHistory" into "lockHistory" and "lockBackForwardList" in 7976 preparation for setting them differently during a redirect. 7977 7978 * Api/qwebpage.cpp: 7979 (QWebPage::triggerAction): 7980 7981 2009-01-30 Brady Eidson <beidson (a] apple.com> 7982 7983 Reviewed by Sam Weinig 7984 7985 Remove FrameLoaderClient code that is now handled by FrameLoader itself 7986 7987 * WebCoreSupport/FrameLoaderClientQt.cpp: 7988 (WebCore::FrameLoaderClientQt::frameLoadCompleted): 7989 7990 2009-01-30 Simon Hausmann <simon.hausmann (a] nokia.com> 7991 7992 Reviewed by Tor Arne Vestb. 7993 7994 Hide the Offline Web Application Cache path API from the public API 7995 for now. 7996 7997 * Api/qwebsettings.cpp: 7998 (qt_websettings_setOfflineWebApplicationCachePath): 7999 (qt_websettings_offlineWebApplicationCachePath): 8000 * Api/qwebsettings.h: 8001 8002 2009-01-28 Adam Treat <adam.treat (a] torchmobile.com> 8003 8004 Reviewed by Nikolas Zimmermann and George Staikos. 8005 8006 https://bugs.webkit.org/show_bug.cgi?id=23557 8007 Do not clip the QWebFrame::hitTestContent method to the visible viewport 8008 and add a regression test to make sure it works. 8009 8010 * Api/qwebframe.cpp: 8011 (QWebFrame::hitTestContent): 8012 * tests/qwebframe/tst_qwebframe.cpp: 8013 8014 2009-01-28 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8015 8016 Rubber-stamped by Simon Hausmann. 8017 8018 Provide default implementations of JavaScript dialog boxes like in 8019 most web browsers, i.e. indicate that is from JavaScript and show the 8020 frame URL. 8021 8022 * Api/qwebpage.cpp: 8023 (QWebPage::javaScriptAlert): 8024 (QWebPage::javaScriptConfirm): 8025 (QWebPage::javaScriptPrompt): 8026 8027 2009-01-27 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8028 8029 Reviewed by Simon Hausmann. 8030 8031 http://qt.nokia.com/developer/task-tracker/index_html?id=238391&method=entry 8032 8033 [Qt] If QPainter fails to start on a QPrinter instance, do not 8034 continue printing. 8035 8036 * Api/qwebframe.cpp: 8037 (QWebFrame::print): 8038 8039 2009-01-27 Brady Eidson <beidson (a] apple.com> 8040 8041 Reviewed by Dan Bernstein 8042 8043 Rework FrameLoaderClient to work on a CachedFrame basis instead of CachedPage 8044 8045 * WebCoreSupport/FrameLoaderClientQt.cpp: 8046 (WebCore::FrameLoaderClientQt::savePlatformDataToCachedFrame): 8047 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedFrame): 8048 * WebCoreSupport/FrameLoaderClientQt.h: 8049 8050 2009-01-26 Simon Fraser <simon.fraser (a] apple.com> 8051 8052 Reviewed by David Hyatt 8053 8054 Back out r40285, because it was checked in with no bug number, no 8055 testcase, is rendering change that did not get thorough review, 8056 and broke the Mac build. 8057 8058 * Api/qwebframe.cpp: 8059 (QWebFrame::hitTestContent): 8060 8061 2009-01-26 Adam Treat <adam.treat (a] torchmobile.com> 8062 8063 Reviewed by Nikolas Zimmermann. 8064 8065 Do not clip the QWebFrame::hitTestContent method to the visible viewport. 8066 8067 * Api/qwebframe.cpp: 8068 (QWebFrame::hitTestContent): 8069 8070 2009-01-26 David Boddie <dboddie (a] trolltech.com> 8071 8072 Reviewed by Simon Hausmann. 8073 8074 Doc: qdoc fix for a link to a property and added a basic description of the offline caching and storage features from HTML 5. 8075 8076 * Api/qwebpage.cpp: 8077 * Api/qwebsettings.cpp: 8078 8079 2009-01-25 Urs Wolfer <uwolfer (a] kde.org> 8080 8081 Reviewed by Simon Hausmann. 8082 8083 Add QWebPage::SelectAll to WebAction enum to select all content. 8084 8085 https://bugs.webkit.org/show_bug.cgi?id=22946 8086 8087 * Api/qwebpage.cpp: 8088 (QWebPagePrivate::editorActionForKeyEvent): 8089 * Api/qwebpage.h: 8090 8091 2009-01-25 David Boddie <dboddie (a] trolltech.com> 8092 8093 Reviewed by Simon Hausmann. 8094 8095 Doc: Fixed the terminology used. 8096 8097 * Api/qwebpage.cpp: 8098 8099 2009-01-25 Thiago Macieira <thiago.macieira (a] nokia.com> 8100 8101 Reviewed by Simon Hausmann. 8102 8103 Rename links from trolltech.com to qtsoftware.com 8104 8105 * Api/qwebpluginfactory.cpp: 8106 8107 2009-01-25 Tor Arne Vestb <tavestbo (a] trolltech.com> 8108 8109 Reviewed by Simon Hausmann. 8110 8111 Make QWebPage auto-test more robust by cleaning up generated files 8112 8113 Sometimes the auto-test may segfault, leaving behind files because the 8114 call to cleanupTestCase() never happens, so we also clean up the files 8115 at initTestCase() just to make sure we're running in a clean environment. 8116 8117 * tests/qwebpage/tst_qwebpage.cpp: 8118 (tst_QWebPage::cleanupFiles): 8119 (tst_QWebPage::initTestCase): 8120 (tst_QWebPage::cleanupTestCase): 8121 8122 2008-12-20 Urs Wolfer <uwolfer (a] kde.org> 8123 8124 Reviewed by Simon Hausmann. 8125 8126 Fix: compile qwebhistory.h with pendantic comiler flag. 8127 8128 https://bugs.webkit.org/show_bug.cgi?id=22947 8129 8130 * Api/qwebhistory.h: 8131 8132 2009-01-24 Adam Treat <adam.treat (a] torchmobile.com> 8133 8134 Oops, fix the Qt build. 8135 8136 * Api/qwebframe.cpp: 8137 (QWebFrame::render): 8138 8139 2009-01-24 Adam Treat <adam.treat (a] torchmobile.com> 8140 8141 Reviewed by Nikolas Zimmermann. 8142 8143 Add QWebFrame::renderContents() method which allows arbitary rendering 8144 of any content region within the QWebFrame. It also does not draw any 8145 scrollbars. 8146 8147 * Api/qwebframe.cpp: 8148 (QWebFrame::renderContents): 8149 * Api/qwebframe.h: 8150 8151 2009-01-23 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8152 8153 Reviewed by Simon Hausmann. 8154 8155 Make the test more robust by taking into account the platform-specific 8156 cursor flashing time. 8157 8158 * tests/qwebframe/tst_qwebframe.cpp: 8159 8160 2009-01-20 Friedemann Kleint <Friedemann.Kleint (a] nokia.com> 8161 8162 Reviewed by Simon Hausmann. 8163 8164 Fix spelling error in QWebPage 8165 8166 * Api/qwebpage.cpp: 8167 (QWebPage::action): 8168 8169 2009-01-19 Simon Hausmann <simon.hausmann (a] nokia.com> 8170 8171 Reviewed by Tor Arne Vestb. 8172 8173 Fix calling of onkeypress event handlers on input elements when pressing enter 8174 and other text insertion commands in the Qt port. 8175 8176 Similar to the win and mac ports don't execute text inserting editor 8177 commands on RawKeyDown but continue processing the event first in 8178 WebCore, i.e. also get a keypress event sent. If unhandled it will 8179 come back to EditorClientQt::handleKeyboardEvent later and we execute 8180 it then. 8181 8182 This also fixes search by pressing enter on www.trafikanten.no. 8183 8184 * Api/qwebpage.cpp: 8185 (QWebPagePrivate::editorCommandForWebActions): Make function 8186 accessible from other files. 8187 (QWebPage::triggerAction): Adjust to new function visibility. 8188 * Api/qwebpage_p.h: Ditto. 8189 * WebCoreSupport/EditorClientQt.cpp: 8190 (WebCore::EditorClientQt::handleKeyboardEvent): Don't execute 8191 text inserting commands on RawKeyPressDown. 8192 8193 2009-01-16 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8194 8195 Rubber-stamped by Simon Hausmann. 8196 8197 [Qt] Increase popup focus delay time to a sensible 500 ms. 8198 8199 * tests/qwebframe/tst_qwebframe.cpp: 8200 8201 2009-01-16 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8202 8203 Reviewed by Adam Roben. 8204 8205 [Qt] Prevent crash if plugin data is NULL. 8206 8207 * WebCoreSupport/FrameLoaderClientQt.cpp: NULL check. 8208 (WebCore::FrameLoaderClientQt::objectContentType): 8209 8210 2009-01-16 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8211 8212 Rubber-stamped by Simon Hausmann. 8213 8214 [Qt] Per-line cursor movement tests depend on platform-specific font 8215 metrics. Remove them to avoid test failures on different platforms. 8216 8217 * tests/qwebpage/tst_qwebpage.cpp: 8218 (tst_QWebPage::cursorMovements): 8219 8220 2009-01-16 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8221 8222 Rubber-stamped by Simon Hausmann. 8223 8224 http://qt.nokia.com/developer/task-tracker/index_html?id=219344&method=entry 8225 8226 [Qt] API documentation for QWebPage::WebAction enum. 8227 8228 * Api/qwebpage.cpp: 8229 8230 2009-01-16 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8231 8232 Another attempt at fixing the Qt build. 8233 8234 * Api/qwebframe.cpp: 8235 (QWebFrame::addToJavaScriptWindowObject): 8236 8237 2009-01-14 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8238 8239 Reviewed by Tor Arne Vestb. 8240 8241 [Qt] Unit tests for text selection and editing actions of QWebPage. 8242 The following are tested: 8243 - the actions are not NULL 8244 - the actions are disabled when contentEditable is false 8245 - the actions are enabled when contentEditable is true 8246 8247 * tests/qwebpage/tst_qwebpage.cpp: 8248 (tst_QWebPage::textSelection): 8249 (tst_QWebPage::textEditing): 8250 8251 2009-01-14 Simon Hausmann <simon.hausmann (a] nokia.com> 8252 8253 Reviewed by Tor Arne Vestb. 8254 8255 Fix failing assertion when pressing an extra mouse button on a 8256 QWebView. 8257 8258 Mice with more than three buttons - for example with a dedicated 8259 "back" button - can generate Qt::XButton1 or Button2. 8260 WebCore::MouseButton contains only Left, Middle and Right, so in 8261 Qt's PlatformMouseEvent we map to NoButton, resulting in a mouse 8262 press or release even with no button set. That triggers an assertion 8263 in EventTargetNode::dispatchMouseEvent requiring that either a button 8264 is set or it is just a mouse move event, which is correct. 8265 8266 In QWebPage decide not to dispatch such mouse events where we cannot 8267 map the mouse button to a WebCore::MouseButton. 8268 8269 * Api/qwebpage.cpp: 8270 (QWebPagePrivate::mousePressEvent): 8271 (QWebPagePrivate::mouseDoubleClickEvent): 8272 (QWebPagePrivate::mouseTripleClickEvent): 8273 (QWebPagePrivate::mouseReleaseEvent): 8274 8275 2009-01-14 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8276 8277 Reviewed by Simon Hausmann. 8278 8279 http://qt.nokia.com/developer/task-tracker/index_html?id=241144&method=entry 8280 8281 [Qt] Create actions for text selection and editing for QWebPage. 8282 Also properly disable and enable them when contentEditable is toggled. 8283 8284 * Api/qwebpage.cpp: 8285 (QWebPagePrivate::updateAction): 8286 (QWebPagePrivate::updateEditorActions): 8287 (QWebPage::action): 8288 8289 2009-01-14 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8290 8291 Reviewed by Simon Hausmann. 8292 8293 [Qt] Unit tests for cursor movements. The following are tested: 8294 - the actions are not NULL 8295 - the actions are disabled when contentEditable is false 8296 - the actions are enabled when contentEditable is true 8297 - the cursor moves properly when the actions are triggered 8298 8299 * tests/qwebpage/tst_qwebpage.cpp: 8300 (CursorTrackedPage::CursorTrackedPage): 8301 (CursorTrackedPage::selectedText): 8302 (CursorTrackedPage::selectionStartOffset): 8303 (CursorTrackedPage::selectionEndOffset): 8304 (CursorTrackedPage::isSelectionCollapsed): 8305 (tst_QWebPage::cursorMovements): 8306 8307 2009-01-08 Yongjun Zhang <yongjun.zhang (a] nokia.com> 8308 8309 Reviewed by Simon Hausmann. 8310 8311 https://bugs.webkit.org/show_bug.cgi?id=23187 8312 8313 Update webview with the intersected rect. 8314 8315 In ChromeClientQt::repaint, view should be updated with the 8316 intersected rect, not the whole windowRect; 8317 8318 This generally is not a problem for normal viewport setup where 8319 viewport size is the same as the qwebview widget size. However, if we 8320 set the viewport size smaller than qwebkit widget, we will see 8321 unwanted painting outside the viewport. 8322 8323 * WebCoreSupport/ChromeClientQt.cpp: 8324 (WebCore::ChromeClientQt::repaint): 8325 8326 2009-01-13 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8327 8328 Rubber-stamped by Tor Arne Vestb. 8329 8330 [Qt] Missing piece from my previous commit: 8331 Disable and enable the cursor navigation actions when contentEditable 8332 is changed. 8333 8334 * Api/qwebpage.cpp: 8335 (QWebPagePrivate::updateEditorActions): 8336 8337 2009-01-13 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8338 8339 Reviewed by Tor Arne Vestb. 8340 8341 [Qt] Create actions for cursor navigation for QWebPage. 8342 Also properly disable and enable them when contentEditable is toggled. 8343 8344 * Api/qwebpage.cpp: 8345 (QWebPagePrivate::updateAction): 8346 (QWebPage::action): 8347 8348 2009-01-13 Simon Hausmann <simon.hausmann (a] nokia.com> 8349 8350 Reviewed by Tor Arne Vestb. 8351 8352 https://bugs.webkit.org/show_bug.cgi?id=23171 8353 8354 Based on patch by Yael Aharon <yael.aharon (a] nokia.com> 8355 8356 Make the QWebSettings functions for setting the path for the local 8357 storage database private QtWebkit API, including the ability to 8358 associated a QWebPage with a named page group. 8359 8360 * Api/qwebpage.cpp: 8361 (qt_webpage_setGroupName): Added. 8362 (qt_webpage_groupName): Added. 8363 * Api/qwebpage.h: 8364 (ExtensionOption::handle): Added internal helper function. 8365 * Api/qwebsettings.cpp: 8366 (qt_websettings_setLocalStorageDatabasePath): Made private API. 8367 (qt_websettings_localStorageDatabasePath): Made private API. 8368 * Api/qwebsettings.h: 8369 * tests/qwebpage/tst_qwebpage.cpp: 8370 (tst_QWebPage::database): Small cleanup. 8371 (tst_QWebPage::multiplePageGroupsAndLocalStorage): New test for the 8372 page group handling, written by Yael. 8373 8374 2009-01-12 Tor Arne Vestb <tavestbo (a] trolltech.com> 8375 8376 Reviewed by Simon Hausmann. 8377 8378 [Qt] Ensure that we're always notified of navigation actions for local anchors 8379 8380 FrameLoader::checkNavigationPolicy() does not notify us if the request has 8381 been checked before (which happens for local anchors), but in the case of 8382 our clients not accepting the navigation request we do want to be notified 8383 again later on, so we clear the lastCheckedRequest flag. 8384 8385 * WebCoreSupport/FrameLoaderClientQt.cpp: 8386 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 8387 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 8388 8389 2009-01-12 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8390 8391 Rubber-stamped by Tor Arne Vestb. 8392 8393 Build fix: use qobject_cast which does not rely on RTTI. This fixes the 8394 unit test when building it with a version of Qt (e.g. Qt/Embedded) 8395 configured without RTTI. 8396 8397 * tests/qwebframe/tst_qwebframe.cpp: 8398 8399 2009-01-12 Simon Hausmann <simon.hausmann (a] nokia.com> 8400 8401 Rubber-stamped by Tor Arne Vestb. 8402 8403 When the QWebView is disabled context menus implemented in JavaScript should not pop up. 8404 8405 Just like in QWidget::event() we have to check for the disabled state and 8406 ignore context menu events. 8407 8408 * Api/qwebview.cpp: 8409 8410 2009-01-12 Simon Hausmann <simon.hausmann (a] nokia.com 8411 8412 Reviewed by Tor Arne Vestb. 8413 8414 Fix QWebView appearance when showed uninitialized without page. 8415 8416 Only set WA_OpaquePaintEvent if we have a page set that will actually 8417 paint the entire contents, otherwise the optimization does not apply 8418 as we do not have a paintEvent() implementation and Qt has to fill the 8419 view with its default background instead. 8420 8421 * Api/qwebview.cpp: 8422 (QWebView::QWebView): 8423 (QWebView::setPage): 8424 8425 2009-01-11 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8426 8427 Rubber-stamped by Tor Arne Vestb. 8428 8429 Do not create a QVariant from QObject* directly, use the 8430 template-specialized function. 8431 8432 * tests/qwebframe/tst_qwebframe.cpp: 8433 (MyQObject::myOverloadedSlot): 8434 8435 2009-01-09 Simon Hausmann <simon.hausmann (a] nokia.com> 8436 8437 Rubber-stamped by Tor Arne Vestb. 8438 8439 Documentation fixes, remove duplicated docs, document missing 8440 parameters and return values. 8441 8442 * Api/qwebdatabase.cpp: 8443 * Api/qwebpage.cpp: 8444 8445 2009-01-09 Simon Hausmann <simon.hausmann (a] nokia.com> 8446 8447 Reviewed by Tor Arne Vestb. 8448 8449 Fix linking against QtWebKit on Windows, by defining the EXPORT macros 8450 _exactly_ the same way as in qglobal.h, depending on QT_NODLL, 8451 QT_MAKEDLL and QT_SHARED. 8452 8453 * Api/qwebkitglobal.h: 8454 8455 2009-01-09 Simon Hausmann <simon.hausmann (a] nokia.com> 8456 8457 Reviewed by Tor Arne Vestb. 8458 8459 Remove qwebnetworkinterface.h from WEBKIT_API_HEADERS as it's not 8460 public Qt 4.4/4.5 API. 8461 8462 * Api/headers.pri: 8463 8464 2009-01-09 Simon Hausmann <simon.hausmann (a] nokia.com> 8465 8466 Unreviewed Qt build fix, remove qcookiejar.h from the API headers and 8467 therefore HEADERS. It's not part of the API and it moc shouldn't be 8468 called on it. 8469 8470 * Api/headers.pri: 8471 8472 2009-01-09 Simon Hausmann <simon.hausmann (a] nokia.com> 8473 8474 Rubber-stamped by Tor Arne Vestb. 8475 8476 Remove files not present anymore from the WEBKIT_API_HEADERS variable. 8477 8478 * Api/headers.pri: 8479 8480 2009-01-08 Adam Treat <adam.treat (a] torchmobile.com> 8481 8482 Reviewed by Simon Hausmann. 8483 8484 Don't set the minimumFontSize and minimumLogicalFontSize as these are 8485 just for accessibility and should be left up to the client application. 8486 8487 * Api/qwebsettings.cpp: 8488 (QWebSettings::QWebSettings): 8489 8490 2009-01-08 Kavindra Palaraja <kdpalara (a] trolltech.com> 8491 8492 Reviewed by Simon Hausmann. 8493 8494 Small fixes to the API documentation, missing 4.5 tags and 8495 undocumented parameters. 8496 8497 * Api/qwebhistory.cpp: 8498 * Api/qwebpage.cpp: 8499 * Api/qwebsettings.cpp: 8500 8501 2009-01-07 Adam Treat <adam.treat (a] torchmobile.com> 8502 8503 Reviewed by George Staikos. 8504 8505 Add Qt API to QWebHitTestResult::isScrollBar method 8506 8507 * Api/qwebframe.cpp: 8508 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 8509 (QWebHitTestResult::isScrollBar): 8510 * Api/qwebframe.h: 8511 * Api/qwebframe_p.h: 8512 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 8513 8514 2009-01-07 Adam Treat <adam.treat (a] torchmobile.com> 8515 8516 Reviewed by George Staikos. 8517 8518 Add Qt API for QWebFrame::scrollBarGeometry method 8519 8520 * Api/qwebframe.cpp: 8521 (QWebFrame::scrollBarGeometry): 8522 * Api/qwebframe.h: 8523 8524 2009-01-07 Adam Treat <adam.treat (a] torchmobile.com> 8525 8526 Reviewed by George Staikos. 8527 8528 Fix unused variable warnings 8529 8530 * tests/qwebpage/tst_qwebpage.cpp: 8531 (TestPage::createWindow): 8532 8533 2009-01-07 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8534 8535 Rubber-stamped by Simon Hausmann. 8536 8537 Qt build fix after r39670. 8538 8539 * Api/qwebframe.cpp: 8540 (QWebFrame::evaluateJavaScript): 8541 8542 2009-01-06 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8543 8544 Reviewed by Holger Freyther. 8545 8546 Allow building QtWebKit statically (within Qt). 8547 8548 http://trolltech.com/developer/task-tracker/index_html?id=211273&method=entry 8549 8550 * Api/qwebkitglobal.h: 8551 8552 2009-01-06 Adam Treat <adam.treat (a] torchmobile.com> 8553 8554 Reviewed by Simon Hausmann. 8555 8556 Update the documentation to reflect when these API changes will land in 8557 upstream Qt 8558 8559 * Api/qwebframe.cpp: 8560 * Api/qwebpage.cpp: 8561 8562 2009-01-05 Adam Treat <adam.treat (a] torchmobile.com> 8563 8564 Reviewed by George Staikos. 8565 8566 Add Qt API for QWebFrame::contentsSizeChanged signal 8567 8568 * Api/qwebframe.cpp: 8569 * Api/qwebframe.h: 8570 * WebCoreSupport/ChromeClientQt.cpp: 8571 (WebCore::ChromeClientQt::contentsSizeChanged): 8572 * WebCoreSupport/ChromeClientQt.h: 8573 8574 2009-01-05 Adam Treat <adam.treat (a] torchmobile.com> 8575 8576 Reviewed by George Staikos. 8577 8578 Fixes QWebFrame::setScrollBarPolicy(..) to actually work. Also happens 8579 to fix 192 layout tests that were previously failing for Qt. 8580 8581 * Api/qwebframe.cpp: 8582 (QWebFrame::setScrollBarPolicy): 8583 * WebCoreSupport/FrameLoaderClientQt.cpp: 8584 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 8585 8586 2009-01-04 Adam Treat <adam.treat (a] torchmobile.com> 8587 8588 Reviewed by George Staikos. 8589 8590 Add new API to QWebHitTestResult to return a rect for the smallest enclosing 8591 block element of the hit test 8592 8593 * Api/qwebframe.cpp: 8594 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 8595 (QWebHitTestResult::enclosingBlock): 8596 * Api/qwebframe.h: 8597 * Api/qwebframe_p.h: 8598 8599 2008-12-30 Adam Treat <adam.treat (a] torchmobile.com> 8600 8601 Reviewed by George Staikos. 8602 8603 Make the qt port build and work with the new fixedLayoutSize feature 8604 8605 * Api/qwebpage.cpp: 8606 (QWebPagePrivate::QWebPagePrivate): 8607 (QWebPage::fixedLayoutSize): 8608 (QWebPage::setFixedLayoutSize): 8609 (QWebPage::useFixedLayout): 8610 (QWebPage::setUseFixedLayout): 8611 * Api/qwebpage.h: 8612 * Api/qwebpage_p.h: 8613 * WebCoreSupport/FrameLoaderClientQt.cpp: 8614 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 8615 8616 2008-12-19 Jade Han <jade.han (a] nokia.com> 8617 8618 Reviewed by Tor Arne Vestb. 8619 8620 [Qt] Allow conversion of JavaScript Number and Boolean types to Qt types 8621 8622 https://bugs.webkit.org/show_bug.cgi?id=22880 8623 8624 * tests/qwebframe/tst_qwebframe.cpp: 8625 (MyQObject::myInvokableWithBoolArg): 8626 8627 2008-12-18 Yael Aharon <yael.aharon (a] nokia.com> 8628 8629 Reviewed by Tor Arne Vestb. 8630 8631 When Web Inspector is launched without an associated node, 8632 call show() instead of inspect(). 8633 8634 * Api/qwebpage.cpp: 8635 (QWebPage::triggerAction): 8636 8637 2008-12-18 Dan Bernstein <mitz (a] apple.com> 8638 8639 Reviewed by Sam Weinig. 8640 8641 - stub out FrameLoaderClient::shouldUseCredentialStorage(). 8642 8643 * WebCoreSupport/FrameLoaderClientQt.cpp: 8644 (WebCore::FrameLoaderClientQt::shouldUseCredentialStorage): 8645 * WebCoreSupport/FrameLoaderClientQt.h: 8646 8647 2008-12-18 Sam Weinig <sam (a] webkit.org> 8648 8649 Reviewed by John Sullivan. 8650 8651 Stub out FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout() 8652 8653 * WebCoreSupport/FrameLoaderClientQt.cpp: 8654 (WebCore::FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout): 8655 * WebCoreSupport/FrameLoaderClientQt.h: 8656 8657 2008-12-16 Simon Hausmann <hausmann (a] webkit.org> 8658 8659 Reviewed by Holger Freyther. 8660 8661 Added support for unload event counting to the Qt DRT. 8662 8663 * Api/qwebpage.cpp: 8664 (qt_drt_run): Moved function here. 8665 * Api/qwebpage_p.h: Moved drt run boolean here. 8666 * WebCoreSupport/EditorClientQt.cpp: Moved drt run boolean. 8667 (WebCore::EditorClientQt::shouldShowDeleteInterface): Use the new drt 8668 run variable. 8669 * WebCoreSupport/FrameLoaderClientQt.cpp: 8670 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): Add DRT 8671 output for unload event handler counting. 8672 8673 2008-12-15 Holger Hans Peter Freyther <zecke (a] selfish.org> 8674 8675 Reviewed by Simon Hausmann. 8676 8677 Change the order of sub frame initialisation to avoid crashes 8678 8679 Add the newly created frame to the FrameTree before calling 8680 WebCore::Frame::init to not segfault on 8681 LayoutTests/fast/loader/frame-creation-removal.html. 8682 8683 * Api/qwebframe.cpp: 8684 (QWebFramePrivate::init): 8685 * WebCoreSupport/FrameLoaderClientQt.cpp: 8686 (WebCore::FrameLoaderClientQt::createFrame): 8687 8688 2008-12-15 Simon Hausmann <hausmann (a] webkit.org> 8689 8690 Reviewed by Holger Freyther. 8691 8692 Implement setJavaScriptProfilingEnabled in the Qt DRT to pass fast/profiler. 8693 8694 * Api/qwebframe.cpp: 8695 (qt_drt_setJavaScriptProfilingEnabled): 8696 8697 2008-12-12 Simon Hausmann <hausmann (a] webkit.org> 8698 8699 Reviewed by Tor Arne Vestb. 8700 8701 Fix pressing return/enter not triggering any action on web sites 8702 that define event handlers, such as the JS console in the web 8703 inspector. 8704 8705 Process the key events in the DOM first and if not handled map them 8706 to editor actions. 8707 8708 * Api/qwebpage.cpp: 8709 (QWebPagePrivate::editorActionForKeyEvent): Made a class method. 8710 (QWebPagePrivate::keyPressEvent): Pass the key event first to the DOM. 8711 * WebCoreSupport/EditorClientQt.cpp: 8712 (WebCore::EditorClientQt::handleKeyboardEvent): Map the key event to 8713 actions and trigger them. 8714 8715 2008-12-12 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8716 8717 Reviewed by Simon Hausmann. 8718 8719 Create the plugin widget even though the web page has no associated 8720 view. This prevents the plugin to be uselessly constructed more than once. 8721 8722 * WebCoreSupport/FrameLoaderClientQt.cpp: 8723 (WebCore::FrameLoaderClientQt::createPlugin): 8724 * tests/qwebpage/tst_qwebpage.cpp: 8725 (tst_QWebPage::createViewlessPlugin): 8726 8727 2008-12-11 Enrico Ros <enrico.ros (a] m31.com> 8728 8729 Reviewed by Simon Hausmann. 8730 8731 Fix the broken focus behavior that happened when QWebPage lost 8732 focus to a popup menu. 8733 8734 The previous code didn't notify the QWebPage at all when the 8735 focus was back in (breaking focus rects, caret blinking, ...). 8736 By the way when a popup is show, 2 FocusOut events are delivered 8737 to the QWebPage, but this doesn't seem to hurt. 8738 8739 Added a test to check popup opening, closing a lineedit blinks. 8740 8741 * Api/qwebpage.cpp: 8742 (QWebPagePrivate::focusInEvent): 8743 (QWebPagePrivate::focusOutEvent): 8744 * tests/qwebframe/tst_qwebframe.cpp: 8745 (tst_QWebFrame::): 8746 8747 2008-12-11 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8748 8749 Reviewed by Tor Arne Vestb. 8750 8751 When the web page is navigated away, delete the instance 8752 of the native plugin. 8753 8754 http://trolltech.com/developer/task-tracker/index_html?id=214946&method=entry 8755 8756 * WebCoreSupport/FrameLoaderClientQt.cpp: 8757 (WebCore::): 8758 * tests/qwebpage/tst_qwebpage.cpp: 8759 (PluginTrackedPage::PluginTrackedPage): 8760 (PluginTrackedPage::createPlugin): 8761 (tst_QWebPage::destroyPlugin): 8762 8763 2008-12-11 Yael Aharon <yael.aharon (a] nokia.com> 8764 8765 Reviewed by Simon Hausmann. 8766 8767 Allow applications to save and restore their state between loads. 8768 8769 * Api/qwebframe.cpp: 8770 * Api/qwebframe.h: 8771 * WebCoreSupport/FrameLoaderClientQt.cpp: 8772 (WebCore::FrameLoaderClientQt::restoreViewState): 8773 (WebCore::FrameLoaderClientQt::saveViewStateToItem): 8774 * tests/qwebpage/tst_qwebpage.cpp: 8775 (tst_QWebPage::modified): 8776 8777 2008-12-08 Tor Arne Vestb <tavestbo (a] trolltech.com> 8778 8779 Reviewed by Darin Adler and Holger Freyther. 8780 8781 Make Widget::frameRectsChanged() and overrides non-const 8782 8783 This will hopefully allow us to get rid of some of the mutables in 8784 the classes that react to the callback by changing their own state. 8785 8786 * WebCoreSupport/FrameLoaderClientQt.cpp: 8787 (WebCore::): 8788 8789 2008-12-10 Holger Hans Peter Freyther <zecke (a] selfish.org> 8790 8791 Reviewed by Simon Hausmann. 8792 8793 API changes discussed with Simon Hausmann, Tor Arne 8794 Vestb, Ariya Hidayat... 8795 8796 * Api/qwebdatabase.cpp: 8797 (QWebDatabase::fileName): 8798 (QWebDatabase::removeDatabase): 8799 * Api/qwebdatabase.h: 8800 * Api/qwebframe.cpp: 8801 (QWebFrame::scroll): 8802 (QWebFrame::scrollPosition): 8803 (QWebFrame::setScrollPosition): 8804 * Api/qwebframe.h: 8805 * Api/qwebpage.cpp: 8806 (QWebPage::setContentEditable): 8807 (QWebPage::isContentEditable): 8808 (QWebPage::extension): 8809 * Api/qwebpage.h: 8810 * Api/qwebsecurityorigin.cpp: 8811 * Api/qwebsettings.cpp: 8812 (QWebSettingsPrivate::apply): 8813 (QWebSettings::QWebSettings): 8814 * Api/qwebsettings.h: 8815 * QtLauncher/main.cpp: 8816 (MainWindow::setEditable): 8817 * WebCoreSupport/ChromeClientQt.cpp: 8818 (WebCore::ChromeClientQt::exceededDatabaseQuota): 8819 (WebCore::ChromeClientQt::runOpenPanel): 8820 * WebCoreSupport/EditorClientQt.cpp: 8821 (WebCore::EditorClientQt::isEditable): 8822 * tests/qwebpage/tst_qwebpage.cpp: 8823 (tst_QWebPage::database): 8824 8825 2008-12-09 Balazs Kelemen <Kelemen.Balazs.3 (a] stud.u-szeged.hu> 8826 8827 Reviewed by Simon Hausmann. 8828 8829 Extended QtLauncher so now it can load pages from an url list 8830 one by one. This can be useful for testing purposes (eq. leak hunting). 8831 The -r option activates this feature. 8832 8833 https://bugs.webkit.org/show_bug.cgi?id=20932 8834 8835 * QtLauncher/main.cpp: 8836 (MainWindow::webPage): 8837 Just a coding style repairing (* written with no space between the return type name) 8838 (MainWindow::webView): 8839 I need the webView to connect it with the URLLoader object. 8840 (URLLoader::URLLoader): 8841 (URLLoader::loadNext): 8842 (URLLoader::init): 8843 (URLLoader::getUrl): 8844 (main): 8845 8846 2008-12-10 Simon Hausmann <hausmann (a] webkit.org> 8847 8848 Fix the Qt build, added const to Node* parameter after change 8849 in signature. 8850 8851 * WebCoreSupport/ChromeClientQt.h: 8852 (WebCore::ChromeClientQt::formStateDidChange): 8853 8854 2008-12-09 Brett Wilson <brettw (a] chromium.org> 8855 8856 Reviewed by Dave Hyatt. 8857 8858 https://bugs.webkit.org/show_bug.cgi?id=22177 8859 8860 Add a callback on ChromeClient that the state of form elements on 8861 the page has changed. This is to allow clients implementing session 8862 saving to know when the current state is dirty. 8863 8864 * WebCoreSupport/ChromeClientQt.h: 8865 (WebCore::ChromeClientQt::formStateDidChange): 8866 8867 2008-12-09 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8868 8869 Reviewed by Simon Hausmann. 8870 8871 Fix the documentation of the localStorageDatabasePath setters/getters. 8872 8873 * Api/qwebsettings.cpp: 8874 8875 2008-12-08 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 8876 8877 Reviewed by Simon Hausmann. 8878 8879 Multiple files support for the file chooser. 8880 8881 * Api/qwebpage.cpp: 8882 (QWebPage::chooseFiles): 8883 * Api/qwebpage.h: 8884 * WebCoreSupport/ChromeClientQt.cpp: 8885 (WebCore::ChromeClientQt::runOpenPanel): 8886 8887 2008-12-06 Simon Fraser <simon.fraser (a] apple.com> 8888 8889 Reviewed by Dave Hyatt 8890 8891 https://bugs.webkit.org/show_bug.cgi?id=15671 8892 8893 Renderer::caretRect() is now localCaretRect(), which needs 8894 converting to absolute coordinates (taking transforms into account). 8895 8896 * Api/qwebpage.cpp: 8897 (QWebPage::inputMethodQuery): 8898 8899 2008-12-03 Tor Arne Vestb <tavestbo (a] trolltech.com> 8900 8901 Reviewed by Simon Hausmann. 8902 8903 Allow passing jsNull and jsUndefined to Qt plugins 8904 8905 Currently limited to functions with QString and QVariant arguments, 8906 and properties of these types. Both jsNull and jsUndefined ends up 8907 as default-constructed QStrings and QVariants, which means you can 8908 check for isEmpty() and isValid() in the native plugin code. 8909 8910 Based on patches by Jade Han <jade.han (a] nokia.com> 8911 8912 * tests/qwebframe/tst_qwebframe.cpp: 8913 8914 2008-12-02 Simon Hausmann <hausmann (a] webkit.org> 8915 8916 Rubber-stamped by Tor Arne Vestb. 8917 8918 Initial API documentation for QWebDatabase, QWebSecurityOrigin and 8919 QWebFrame::securityOrigin(). 8920 8921 * Api/qwebdatabase.cpp: 8922 * Api/qwebframe.cpp: 8923 * Api/qwebsecurityorigin.cpp: 8924 8925 2008-11-27 Kent Hansen <khansen (a] trolltech.com> 8926 8927 Reviewed by Simon Hausmann. 8928 8929 Added auto tests for making JavaScript bindings for Qt plugin widgets 8930 work again. 8931 8932 * tests/qwebpage/tst_qwebpage.cpp: 8933 (PluginPage::PluginPage): 8934 (PluginPage::CallInfo::CallInfo): 8935 (PluginPage::createPlugin): 8936 (tst_QWebPage::createPlugin): 8937 8938 2008-11-25 Holger Hans Peter Freyther <zecke (a] selfish.org> 8939 8940 Build fix. Use WebCore::Frame::loader instead of QWebFrame 8941 8942 * WebCoreSupport/FrameLoaderClientQt.cpp: 8943 (WebCore::FrameLoaderClientQt::updateGlobalHistory): 8944 8945 2008-11-24 Darin Fisher <darin (a] chromium.org> 8946 8947 Fix bustage. 8948 8949 http://bugs.webkit.org/show_bug.cgi?id=15643 8950 8951 * WebCoreSupport/EditorClientQt.cpp: 8952 (WebCore::EditorClientQt::isSelectTrailingWhitespaceEnabled): 8953 * WebCoreSupport/EditorClientQt.h: 8954 8955 2008-11-24 Darin Adler <darin (a] apple.com> 8956 8957 Reviewed by Dan Bernstein. 8958 8959 - https://bugs.webkit.org/show_bug.cgi?id=22470 8960 remove unneeded URL argument from FrameLoaderClient::updateGlobalHistory 8961 8962 * WebCoreSupport/FrameLoaderClientQt.cpp: 8963 (WebCore::FrameLoaderClientQt::updateGlobalHistory): Get the URL from the 8964 DocumentLoader. 8965 * WebCoreSupport/FrameLoaderClientQt.h: Remove argument. 8966 8967 2008-11-24 Darin Fisher <darin (a] chromium.org> 8968 8969 Fix bustage. 8970 8971 https://bugs.webkit.org/show_bug.cgi?id=22448 8972 8973 * Api/qwebframe.cpp: 8974 (QWebFrame::evaluateJavaScript): 8975 8976 2008-11-20 Sam Weinig <sam (a] webkit.org> 8977 8978 Fix Qt build. 8979 8980 * Api/qwebframe.cpp: 8981 (QWebFrame::evaluateJavaScript): 8982 8983 2008-11-19 Darin Fisher <darin (a] chromium.org> 8984 8985 Fix bustage. 8986 8987 https://bugs.webkit.org/show_bug.cgi?id=22373 8988 Ports busted by addition of ScriptValue.{h,cpp} 8989 8990 * Api/qwebframe.cpp: 8991 (QWebFrame::evaluateJavaScript): 8992 8993 2008-11-19 Darin Fisher <darin (a] chromium.org> 8994 8995 Fix bustage. 8996 8997 https://bugs.webkit.org/show_bug.cgi?id=22373 8998 Ports busted by addition of ScriptValue.{h,cpp} 8999 9000 * Api/qwebframe.cpp: 9001 9002 2008-11-19 Simon Hausmann <hausmann (a] webkit.org> 9003 9004 Fix the Qt build, remove file referenced in the qrc file that does not 9005 exist and is not needed. 9006 9007 * tests/qwebframe/qwebframe.qrc: 9008 9009 2008-11-18 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 9010 9011 Rubber-stamped by Tor Arne Vestb. 9012 9013 Missing file in new unit test for QWebFrame (r38493). 9014 9015 * tests/qwebframe/qwebframe.pro: 9016 * tests/qwebframe/qwebframe.qrc: Added. 9017 9018 2008-11-18 Tor Arne Vestb <tavestbo (a] trolltech.com> 9019 9020 Rubber-stamped by Simon Hausmann. 9021 9022 Make sure QWidget based plugins are invisible until placed into the layout 9023 9024 * WebCoreSupport/FrameLoaderClientQt.cpp: 9025 (WebCore::FrameLoaderClientQt::createPlugin): 9026 9027 2008-11-18 Tor Arne Vestb <tavestbo (a] trolltech.com> 9028 9029 Reviewed by Simon Hausmann. 9030 9031 React properly to frame rect changes for QWidget based plugins 9032 9033 We now set the geometry of the QWidget in frameRectsChanged, 9034 intead of setFrameRect, which means we pick up the changes to 9035 the frame rect when scrolling. We also set a mask on the 9036 widget to keep it from painting over scrollbars and the like 9037 9038 * WebCoreSupport/FrameLoaderClientQt.cpp: 9039 (WebCore::): 9040 9041 2008-11-18 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 9042 9043 Reviewed by Tor Arne Vestb. 9044 9045 Fix crash when trying to pick a file using the file chooser. 9046 9047 * WebCoreSupport/ChromeClientQt.cpp: 9048 (WebCore::ChromeClientQt::runOpenPanel): 9049 9050 2008-11-18 Holger Hans Peter Freyther <zecke (a] selfish.org> 9051 9052 Reviewed by Simon Hausmann. 9053 9054 Attempt to share transitionToCommittedForNewPage of FrameLoaderClient with the different ports 9055 9056 After Hyatt's work on Widget and ScrollView there is little difference 9057 between the implementation of Qt, Gtk+ and Win. In fact any kind of 9058 difference is mostly a bug. Alp has fixed two of such errors for the Gtk+ 9059 port and the Qt port has at least one of them left. 9060 9061 The only difference between the implementations is in getting the the 9062 IntSize for the new FrameView, the background color to be applied and 9063 eventually some post processing. 9064 9065 Unify the implementations by providing a static helper function that 9066 takes a Frame, IntSize, color and transparency bit and calling it from 9067 the Gtk+, the Qt and the Windows port. 9068 9069 * Api/qwebframe.cpp: 9070 * Api/qwebframe_p.h: 9071 * Api/qwebpage.cpp: 9072 (QWebPage::setPalette): 9073 * WebCoreSupport/FrameLoaderClientQt.cpp: 9074 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 9075 9076 2008-11-17 Geoffrey Garen <ggaren (a] apple.com> 9077 9078 Not reviewed. 9079 9080 Try to fix qt build. 9081 9082 * Api/qwebframe.cpp: 9083 9084 2008-11-17 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 9085 9086 Reviewed by Tor Arne Vestb and Simon Hausmann. 9087 9088 Fix regression when loading resources from Qt resource system using qrc:/. 9089 9090 Added a unit test to catch future regression. 9091 9092 * Api/qwebpage.cpp: 9093 (QWebPagePrivate::QWebPagePrivate): 9094 * tests/qwebframe/image.png: Added. 9095 * tests/qwebframe/tst_qwebframe.cpp: 9096 9097 2008-11-16 Darin Adler <darin (a] apple.com> 9098 9099 - try to fix build 9100 9101 * Api/qwebhistory.cpp: Added include of "KURL.h". 9102 9103 2008-10-24 Yael Aharon <yael.aharon (a] nokia.com> 9104 9105 Reviewed by Simon Hausmann. 9106 9107 Added some basic unit tests for the public database API. 9108 9109 * tests/qwebpage/tst_qwebpage.cpp: 9110 (tst_QWebPage::initTestCase): 9111 (tst_QWebPage::cleanupTestCase): 9112 (tst_QWebPage::database): 9113 9114 2008-11-14 Simon Hausmann <hausmann (a] webkit.org> 9115 9116 Fix the Qt build, add missing export macros for the new classes. 9117 9118 * Api/qwebdatabase.h: 9119 * Api/qwebsecurityorigin.h: 9120 9121 2008-10-24 Yael Aharon <yael.aharon (a] nokia.com> 9122 9123 Reviewed by Simon Hausmann. 9124 9125 Adding public API to provide access to the security origin 9126 (QWebSecurityOrigin) and the databases used for the offline 9127 storage (QWebDatabase). 9128 9129 In addition QWebSettings gains configuration functions for 9130 enabling/disabling offline storage, web application cache 9131 and DOM local storage. 9132 9133 This commits lands the core feature(s), the unit tests and the 9134 documentation are going to follow in the comming days/weeks. 9135 9136 Note: The API is not frozen yet. 9137 9138 * Api/headers.pri: 9139 * Api/qwebdatabase.cpp: Added. 9140 (QWebDatabase::QWebDatabase): 9141 (QWebDatabase::operator=): 9142 (QWebDatabase::name): 9143 (QWebDatabase::displayName): 9144 (QWebDatabase::expectedSize): 9145 (QWebDatabase::size): 9146 (QWebDatabase::absoluteFilePath): 9147 (QWebDatabase::origin): 9148 (QWebDatabase::remove): 9149 (QWebDatabase::~QWebDatabase): 9150 * Api/qwebdatabase.h: Added. 9151 * Api/qwebdatabase_p.h: Added. 9152 * Api/qwebframe.cpp: 9153 (QWebFrame::securityOrigin): 9154 * Api/qwebframe.h: 9155 * Api/qwebpage.cpp: 9156 * Api/qwebpage.h: 9157 * Api/qwebsecurityorigin.cpp: Added. 9158 (QWebSecurityOrigin::QWebSecurityOrigin): 9159 (QWebSecurityOrigin::operator=): 9160 (QWebSecurityOrigin::scheme): 9161 (QWebSecurityOrigin::host): 9162 (QWebSecurityOrigin::port): 9163 (QWebSecurityOrigin::databaseUsage): 9164 (QWebSecurityOrigin::databaseQuota): 9165 (QWebSecurityOrigin::setDatabaseQuota): 9166 (QWebSecurityOrigin::~QWebSecurityOrigin): 9167 (QWebSecurityOrigin::allOrigins): 9168 (QWebSecurityOrigin::databases): 9169 * Api/qwebsecurityorigin.h: Added. 9170 * Api/qwebsecurityorigin_p.h: Added. 9171 (QWebSecurityOriginPrivate::QWebSecurityOriginPrivate): 9172 (QWebSecurityOriginPrivate::~QWebSecurityOriginPrivate): 9173 * Api/qwebsettings.cpp: 9174 (QWebSettingsPrivate::apply): 9175 (QWebSettings::QWebSettings): 9176 (QWebSettings::setOfflineStoragePath): 9177 (QWebSettings::offlineStoragePath): 9178 (QWebSettings::setOfflineStorageDefaultQuota): 9179 (QWebSettings::offlineStorageDefaultQuota): 9180 (QWebSettings::setOfflineWebApplicationCachePath): 9181 (QWebSettings::offlineWebApplicationCachePath): 9182 (QWebSettings::setLocalStorageDatabasePath): 9183 (QWebSettings::localStorageDatabasePath): 9184 * Api/qwebsettings.h: 9185 * WebCoreSupport/ChromeClientQt.cpp: 9186 (WebCore::ChromeClientQt::exceededDatabaseQuota): 9187 9188 2008-11-12 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 9189 9190 Rubber-stamped by Tor Arne Vestb. 9191 9192 Mention the color role change (r38331) in the API doc. 9193 9194 * Api/qwebpage.cpp: 9195 9196 2008-11-11 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 9197 9198 Reviewed by Tor Arne Vestb and Simon Hausmann. 9199 9200 Use QPalette::Base (instead of QPalette::Background) for the page 9201 background. 9202 9203 * Api/qwebframe.cpp: 9204 (QWebFramePrivate::updateBackground): 9205 * Api/qwebview.cpp: 9206 (QWebView::QWebView): 9207 9208 2008-11-11 Cameron Zwarich <zwarich (a] apple.com> 9209 9210 Reviewed by Geoff Garen. 9211 9212 Remove pointless dependencies on the now-deleted kjs directory. 9213 9214 * WebKit_pch.h: 9215 9216 2008-11-10 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 9217 9218 Rubber-stamped by Simon Hausmann. 9219 9220 To fit Qt API, scroll offset is a QPoint instead of a QSize. 9221 9222 * Api/qwebframe.cpp: 9223 (QWebFrame::scrollOffset): 9224 (QWebFrame::setScrollOffset): 9225 * Api/qwebframe.h: 9226 9227 2008-11-10 David Boddie <dboddie (a] trolltech.com> 9228 9229 Reviewed by Simon Hausmann. 9230 9231 Doc: Fixed qdoc warnings by supplying function documentation. 9232 9233 * Api/qwebframe.cpp: 9234 * Api/qwebview.cpp: 9235 9236 2008-11-10 Tobias Koenig <tobias.koenig (a] trolltech.com> 9237 9238 Reviewed by Simon Hausmann. 9239 9240 Removed old and stale prf file that breaks the MingW build. 9241 9242 * Api/qtwebkit.prf: Removed. 9243 9244 2008-11-10 Kavindra Palaraja <kdpalara (a] trolltech.com> 9245 9246 Reviewed by Simon Hausmann. 9247 9248 Clarify QWebFrame/View::setHTML docs with regards to relative URLs 9249 9250 * Api/qwebframe.cpp: 9251 * Api/qwebview.cpp: 9252 9253 2008-11-10 Joerg Bornemann <joerg.bornemann (a] nokia.com> 9254 9255 Reviewed by Simon Hausmann 9256 9257 Don't define _CRT_RAND_S on Windows CE in the precompiled 9258 header, to fix the CE build. 9259 9260 * WebKit_pch.h: 9261 9262 2008-11-07 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 9263 9264 Reviewed by Tor Arne Vestb and Simon Hausmann. 9265 9266 Added an option to allow printing the background color and images. 9267 Mostly reworked from a patch by Holger. 9268 This setting is enabled by default. 9269 9270 * Api/qwebsettings.cpp: 9271 (QWebSettingsPrivate::apply): 9272 (QWebSettings::QWebSettings): 9273 * Api/qwebsettings.h: 9274 9275 2008-11-06 Simon Hausmann <hausmann (a] webkit.org> 9276 9277 Reviewed by Tor Arne Vestb. 9278 9279 Added a unit tests for QWebFrame::metaData(). 9280 9281 * tests/qwebframe/tst_qwebframe.cpp: 9282 9283 2008-11-06 Simon Hausmann <hausmann (a] webkit.org> 9284 9285 Reviewed by Tor Arne Vestb. 9286 9287 Improved documentation for QWebFrame::metaData(). 9288 9289 * Api/qwebframe.cpp: 9290 9291 2008-11-05 Sriram Yadavalli <sriram.yadavalli (a] nokia.com> 9292 9293 Reviewed by Simon Hausmann. 9294 9295 Added QWebFrame::metaData() to provide a way in the public API 9296 to retrieve the values of the <meta> tags. 9297 9298 See https://bugs.webkit.org/show_bug.cgi?id=22071 9299 9300 * Api/qwebframe.cpp: 9301 (QWebFrame::metaData): 9302 * Api/qwebframe.h: 9303 9304 2008-10-24 Yael Aharon <yael.aharon (a] nokia.com> 9305 9306 Reviewed by Simon Hausmann. 9307 9308 Add userData() and setUserData() to QWebHistoryItem. 9309 Add setMaximumItemCount() and maximumItemCount() to QWebHistory. 9310 Add currentItemIndex() to QWebHistory. 9311 9312 See also https://bugs.webkit.org/show_bug.cgi?id=21864 9313 9314 Small cleanup by Simon (docs and forward declaration of QWebHistoryItem in qwebframe.h) 9315 9316 * Api/qwebframe.h: 9317 * Api/qwebhistory.cpp: 9318 (QWebHistoryItem::userData): 9319 (QWebHistoryItem::setUserData): 9320 (QWebHistory::currentItemIndex): 9321 (QWebHistory::maximumItemCount): 9322 (QWebHistory::setMaximumItemCount): 9323 * Api/qwebhistory.h: 9324 * WebCoreSupport/FrameLoaderClientQt.cpp: 9325 (WebCore::FrameLoaderClientQt::saveViewStateToItem): 9326 * tests/qwebpage/tst_qwebpage.cpp: 9327 (tst_QWebPage::modified): 9328 9329 2008-11-03 Cameron Zwarich <zwarich (a] apple.com> 9330 9331 Rubber-stamped by Maciej Stachowiak. 9332 9333 Move more files into the runtime subdirectory of JavaScriptCore. 9334 9335 * Api/qwebpage.cpp: 9336 9337 2008-10-25 Jade Han <jade.han (a] nokia.com> 9338 9339 Reviewed by Anders. 9340 9341 Enable custom properties for Qt runtime objects in QtWebKit 9342 9343 https://bugs.webkit.org/show_bug.cgi?id=21813 9344 9345 * tests/qwebframe/tst_qwebframe.cpp: 9346 9347 2008-10-24 Sam Weinig <sam (a] webkit.org> 9348 9349 Another Qt build fix. 9350 9351 * WebCoreSupport/ChromeClientQt.cpp: 9352 9353 2008-10-24 Sam Weinig <sam (a] webkit.org> 9354 9355 Reviewed by Dan Bernstein. 9356 9357 Fix https://bugs.webkit.org/show_bug.cgi?id=21759 9358 Layering violation: FileChooser should not depend on Document/Frame/Page 9359 9360 * WebCoreSupport/ChromeClientQt.cpp: 9361 (WebCore::ChromeClientQt::runOpenPanel): 9362 * WebCoreSupport/ChromeClientQt.h: 9363 9364 2008-10-24 Timothy Hatcher <timothy (a] apple.com> 9365 9366 Stub out new InspectorClient methods. 9367 9368 https://bugs.webkit.org/show_bug.cgi?id=21856 9369 9370 Reviewed by Darin Adler. 9371 9372 * WebCoreSupport/InspectorClientQt.cpp: 9373 (WebCore::InspectorClientQt::populateSetting): Not implemented. 9374 (WebCore::InspectorClientQt::storeSetting): Ditto. 9375 (WebCore::InspectorClientQt::removeSetting): Ditto. 9376 * WebCoreSupport/InspectorClientQt.h: 9377 9378 2008-10-24 Darin Adler <darin (a] apple.com> 9379 9380 - finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732 9381 9382 * Api/qwebframe.cpp: 9383 (QWebFrame::evaluateJavaScript): Use JSValue* instead of JSValuePtr. 9384 9385 2008-10-23 Yael Aharon <yael.aharon (a] nokia.com> 9386 9387 Reviewed by Simon Hausmann. 9388 9389 Invalid history entries could cause a crash in QT Webkit 9390 9391 * Api/qwebhistory.cpp: 9392 (QWebHistoryItem::originalUrl): 9393 (QWebHistoryItem::url): 9394 (QWebHistoryItem::title): 9395 (QWebHistoryItem::lastVisited): 9396 (QWebHistoryItem::icon): 9397 (QWebHistoryItem::isValid): 9398 * Api/qwebhistory.h: 9399 * Api/qwebhistory_p.h: 9400 (QWebHistoryItemPrivate::QWebHistoryItemPrivate): 9401 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate): 9402 * tests/qwebpage/tst_qwebpage.cpp: 9403 (tst_QWebPage::modified): 9404 9405 2008-10-22 Yael Aharon <yael.aharon (a] nokia.com> 9406 9407 Reviewed by Simon Hausmann. 9408 9409 emit scrollRequested unconditionally when scrolling. 9410 9411 See https://bugs.webkit.org/show_bug.cgi?id=21790 9412 9413 * WebCoreSupport/ChromeClientQt.cpp: 9414 (WebCore::ChromeClientQt::scroll): 9415 9416 2008-10-23 Simon Hausmann <hausmann (a] webkit.org> 9417 9418 Reviewed by Tor Arne. 9419 9420 Fix handling of mouse events when embedding QWebView into the 9421 QGraphicsView. 9422 9423 QWebPage accepts or ignores events to indicate whether the web page 9424 handled the event. However for QWebView to behave like a good widget 9425 it should always accept the mouse events to indicate that it handled 9426 them and that they should not be subject to event propagation. 9427 9428 The graphics view relies on acceptance of the initial mouse click to 9429 make the embedded widget the focus item. 9430 9431 * Api/qwebview.cpp: 9432 (QWebView::mouseMoveEvent): 9433 (QWebView::mousePressEvent): 9434 (QWebView::mouseDoubleClickEvent): 9435 (QWebView::mouseReleaseEvent): 9436 (QWebView::contextMenuEvent): 9437 (QWebView::wheelEvent): 9438 9439 2008-10-22 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 9440 9441 Reviewed by Simon Hausmann. 9442 9443 For public API, use the term boundingRect instead of boundingBox. 9444 9445 * Api/qwebframe.cpp: 9446 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 9447 (QWebHitTestResult::boundingRect): 9448 * Api/qwebframe.h: 9449 * Api/qwebframe_p.h: 9450 9451 2008-06-03 Siraj Razick <siraj.razick (a] collabora.co.uk> 9452 9453 Reviewed by Simon Hausmann. 9454 9455 https://bugs.webkit.org/show_bug.cgi?id=19374 9456 9457 Expose boundingBox value in QWebHitTestResult 9458 9459 Add API function QRect QWebHitResult::boundingBox() const 9460 9461 API docs by Ariya. 9462 9463 * Api/qwebframe.cpp: 9464 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 9465 (QWebHitTestResult::boundingBox): 9466 * Api/qwebframe.h: 9467 * Api/qwebframe_p.h: 9468 9469 2008-10-21 Yael Aharon <yael.aharon (a] nokia.com> 9470 9471 Reviewed by Simon Hausmann. 9472 9473 emit repaintRequested unconditionally when repaint is requested. 9474 9475 * WebCoreSupport/ChromeClientQt.cpp: 9476 (WebCore::ChromeClientQt::repaint): 9477 9478 2008-10-20 Sam Weinig <sam (a] webkit.org> 9479 9480 Reviewed by Anders Carlsson. 9481 9482 Remove FrameLoaderClient::detachedFromParent4. It is no longer used by any port. 9483 9484 * WebCoreSupport/FrameLoaderClientQt.cpp: 9485 * WebCoreSupport/FrameLoaderClientQt.h: 9486 9487 2008-10-19 Darin Adler <darin (a] apple.com> 9488 9489 Reviewed by Oliver Hunt. 9490 9491 - next step of https://bugs.webkit.org/show_bug.cgi?id=21732 9492 improve performance by eliminating JSValue as a base class for JSCell 9493 9494 Remove most uses of JSValue, which will be removed in a future patch. 9495 9496 * Api/qwebframe.cpp: 9497 (QWebFrame::evaluateJavaScript): Use JSValuePtr. 9498 9499 2008-10-14 Tor Arne Vestb <tavestbo (a] trolltech.com> 9500 9501 Reviewed by Simon. 9502 9503 Clip painter to dirty rect before passing on to WebKit 9504 9505 This was previously done in ScrollViewQt, but after the 9506 refactoring of ScrollView we need to do it in QWebFrame 9507 instead, similar to Safari/Win. 9508 9509 * Api/qwebframe.cpp: 9510 (QWebFrame::render): 9511 9512 2008-10-08 Matthias Ettrich <ettrich (a] nokia.com> 9513 9514 Reviewed by Simon. 9515 9516 Make QWebView ignore focus changes with PopupFocusReason to avoid 9517 massive updates when menus open and close. 9518 9519 * Api/qwebview.cpp: 9520 (QWebView::focusInEvent): 9521 (QWebView::focusOutEvent): 9522 9523 2008-10-08 Kavindra Palaraja <kdpalara (a] trolltech.com> 9524 9525 Reviewed by Simon. 9526 9527 Fixed a qdoc warning and adjusted some spacing 9528 9529 * Api/qwebframe.cpp: 9530 9531 2008-10-08 Rhys Weatherley <rhys.weatherley (a] nokia.com> 9532 9533 Reviewed by Simon. 9534 9535 Compile for platforms without context menus. 9536 9537 * Api/qwebpage.cpp: 9538 (QWebPage::createStandardContextMenu): 9539 9540 2008-10-08 Andr Pnitz <apoenitz (a] trolltech.com> 9541 9542 Reviewed by Simon. 9543 9544 Fix compilation with Qt namespaces. 9545 9546 * WebCoreSupport/EditCommandQt.h: 9547 9548 2008-10-07 Tor Arne Vestb <tavestbo (a] trolltech.com> 9549 9550 QtWebKit build fix after changes to FrameLoaderClient.h in r37371 9551 9552 * WebCoreSupport/FrameLoaderClientQt.h: 9553 9554 2008-10-07 Holger Hans Peter Freyther <zecke (a] selfish.org> 9555 9556 [qt] Build fix after Scrollbar.h and Widget.h changes. 9557 9558 * Api/qwebpage.cpp: 9559 (QWebPage::swallowContextMenuEvent): 9560 9561 2008-10-06 David Hyatt <hyatt (a] apple.com> 9562 9563 Enable viewless Mac WebKit to paint some basic pages. 9564 9565 Reviewed by Sam Weinig 9566 9567 * WebCoreSupport/FrameLoaderClientQt.cpp: 9568 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 9569 9570 2008-10-03 David Hyatt <hyatt (a] apple.com> 9571 9572 Fix scroll method on Qt. The delta was supposed to use .width()/.height() and not .x()/.y(). 9573 9574 Fix the QtPluginWidget to do an invalidate properly. 9575 9576 Reviewed by ggaren 9577 9578 * WebCoreSupport/ChromeClientQt.cpp: 9579 (WebCore::ChromeClientQt::scroll): 9580 * WebCoreSupport/FrameLoaderClientQt.cpp: 9581 (WebCore::): 9582 9583 2008-10-03 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 9584 9585 Build fix. Remove addToDirtyRegion from the header file. 9586 9587 * WebCoreSupport/ChromeClientQt.h: 9588 9589 2008-10-03 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 9590 9591 Build fix. 9592 9593 * WebCoreSupport/ChromeClientQt.cpp: 9594 (WebCore::ChromeClientQt::scroll): 9595 * WebCoreSupport/FrameLoaderClientQt.cpp: 9596 (WebCore::): 9597 (WebCore::FrameLoaderClientQt::createPlugin): 9598 9599 2008-10-03 David Hyatt <hyatt (a] apple.com> 9600 9601 Remove addToDirtyRegion. 9602 9603 Reviewed by Oliver Hunt 9604 9605 * WebCoreSupport/ChromeClientQt.cpp: 9606 9607 2008-10-02 David Hyatt <hyatt (a] apple.com> 9608 9609 https://bugs.webkit.org/show_bug.cgi?id=21314 9610 9611 Make scrollBackingStore cross-platform. 9612 9613 Reviewed by Sam Weinig 9614 9615 * WebCoreSupport/ChromeClientQt.cpp: 9616 (WebCore::ChromeClientQt::repaint): 9617 (WebCore::ChromeClientQt::scroll): 9618 * WebCoreSupport/ChromeClientQt.h: 9619 9620 2008-10-01 David Hyatt <hyatt (a] apple.com> 9621 9622 https://bugs.webkit.org/show_bug.cgi?id=21282 9623 9624 Make contentsToScreen/screenToContents cross-platform. Only implemented by Mac/Win right now. 9625 9626 Reviewed by Adam Roben 9627 9628 * WebCoreSupport/ChromeClientQt.cpp: 9629 (WebCore::ChromeClientQt::windowToScreen): 9630 (WebCore::ChromeClientQt::screenToWindow): 9631 * WebCoreSupport/ChromeClientQt.h: 9632 9633 2008-09-30 Dave Hyatt <hyatt (a] apple.com> 9634 9635 http://bugs.webkit.org/show_bug.cgi?id=21250 9636 9637 Rename updateContents to repaintContentRectangle and make it cross-platform by always sending 9638 repaints up through the ChromeClient. 9639 9640 Reviewed by Darin Adler 9641 9642 * WebCoreSupport/ChromeClientQt.cpp: 9643 (WebCore::ChromeClientQt::repaint): 9644 * WebCoreSupport/ChromeClientQt.h: 9645 9646 2008-09-29 Gunnar Sletta <gunnar (a] trolltech.com> 9647 9648 Reviewed by Simon 9649 9650 Compile on windows using MSVC 2005 9651 9652 For the PCH We need to define _WIN32_WINNT and include windows.h early on, 9653 otherwise we'll miss several functions. 9654 9655 * WebKit_pch.h: 9656 9657 2008-09-29 Thiago Macieira <thiago.macieira (a] nokia.com> 9658 9659 Reviewed by Simon. 9660 9661 Changed copyright from Trolltech ASA to Nokia. 9662 9663 Nokia acquired Trolltech ASA, assets were transferred on September 26th 2008. 9664 9665 9666 * Api/qwebframe.cpp: 9667 * Api/qwebframe.h: 9668 * Api/qwebframe_p.h: 9669 * Api/qwebhistory.cpp: 9670 * Api/qwebhistory.h: 9671 * Api/qwebhistory_p.h: 9672 * Api/qwebkitglobal.h: 9673 * Api/qwebnetworkinterface.cpp: 9674 * Api/qwebnetworkinterface.h: 9675 * Api/qwebnetworkinterface_p.h: 9676 * Api/qwebpage.cpp: 9677 * Api/qwebpage.h: 9678 * Api/qwebpage_p.h: 9679 * Api/qwebpluginfactory.cpp: 9680 * Api/qwebpluginfactory.h: 9681 * Api/qwebsettings.cpp: 9682 * Api/qwebsettings.h: 9683 * Api/qwebview.cpp: 9684 * Api/qwebview.h: 9685 * Plugins/ICOHandler.cpp: 9686 * QtLauncher/main.cpp: 9687 * WebCoreSupport/FrameLoaderClientQt.cpp: 9688 * WebCoreSupport/FrameLoaderClientQt.h: 9689 * WebCoreSupport/InspectorClientQt.cpp: 9690 * WebCoreSupport/InspectorClientQt.h: 9691 * tests/qwebframe/tst_qwebframe.cpp: 9692 * tests/qwebpage/tst_qwebpage.cpp: 9693 9694 2008-09-28 Simon Hausmann <hausmann (a] webkit.org> 9695 9696 Reviewed by David Hyatt. 9697 9698 Ensure the mainThreadIdentifier is set as well as other bits and pieces of 9699 the threading machinery, by calling JSC::initializeThreading(). 9700 9701 * Api/qwebpage.cpp: 9702 (QWebPagePrivate::QWebPagePrivate): 9703 9704 2008-09-27 David Hyatt <hyatt (a] apple.com> 9705 9706 Forgot to land renaming changes in WebKit. 9707 9708 * Api/qwebframe.cpp: 9709 (QWebFrame::render): 9710 (QWebFrame::pos): 9711 (QWebFrame::geometry): 9712 * Api/qwebpage.cpp: 9713 (QWebPage::viewportSize): 9714 (QWebPage::setViewportSize): 9715 9716 2008-09-27 Simon Hausmann <hausmann (a] webkit.org> 9717 9718 Qt build fix - use frameRect instead of frameGeometry, adapt 9719 to renamed scrollbar frameview methods. 9720 9721 * Api/qwebpage.cpp: 9722 (QWebPage::viewportSize): 9723 (QWebPage::setViewportSize): 9724 * WebCoreSupport/FrameLoaderClientQt.cpp: 9725 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 9726 9727 2008-09-27 Jan Michael Alonzo <jmalonzo (a] webkit.org> 9728 9729 Qt build fix - rename frameGeometry to frameRect per r36995. 9730 9731 * Api/qwebframe.cpp: 9732 (QWebFrame::render): 9733 (QWebFrame::pos): 9734 (QWebFrame::geometry): 9735 9736 2008-09-26 Ariya Hidayat <ahidayat (a] trolltech.com> 9737 9738 Reviewed by Simon. 9739 9740 Fixed potential crash when deleting QWebView instance. 9741 9742 When deleting the view, sets the page's view to NULL. 9743 The reason is that the page is smart and its destructor might lead to a call 9744 that operates on a view (which is in the process of being deleted). 9745 9746 * Api/qwebpage.h: 9747 * Api/qwebview.cpp: 9748 (QWebView::~QWebView): 9749 9750 2008-09-26 Ariya Hidayat <ahidayat (a] trolltech.com> 9751 9752 Reviewed by Simon. 9753 9754 Fixed using modifiers to type special symbols (e.g '@','$') does not work on Mac OS X. 9755 9756 * WebCoreSupport/EditorClientQt.cpp: 9757 (WebCore::EditorClientQt::handleKeyboardEvent): 9758 9759 2008-09-26 Hvard Wall <hwall (a] trolltech.com> 9760 9761 Reviewed by Simon. 9762 9763 Fix compilation with QT_NO_MESSAGEBOX 9764 9765 * Api/qwebpage.cpp: 9766 (QWebPage::javaScriptAlert): 9767 (QWebPage::javaScriptConfirm): 9768 9769 2008-09-23 Tor Arne Vestb <tavestbo (a] trolltech.com> 9770 9771 Reviewed by Simon. 9772 9773 Remove deprecated JS Qt bindings object call/construct code and fix autotests 9774 9775 * tests/qwebframe/tst_qwebframe.cpp: 9776 9777 2008-09-16 Alp Toker <alp (a] nuanti.com> 9778 9779 Prospective Qt build fix. ScrollBar.h -> Scrollbar.h 9780 9781 * Api/qwebframe.cpp: 9782 * Api/qwebpage.cpp: 9783 9784 2008-09-15 Eli Fidler <eli (a] staikos.net> 9785 9786 Reviewed by Simon. 9787 9788 Yahoo assumes non-RFC compliant HTTP redirect behaviour. QtWebKit is (more) 9789 compliant, so broken. I think the Yahoo-assumed behaviour is real-world standard. 9790 9791 Basically, Yahoo's login procedure for flickr looks like this: 9792 1. load flickr.com, click "sign in" 9793 2. this is a Yahoo page with a form 9794 (https://login.yahoo.com/config/login?.src=flickr...) 9795 when you click the "Sign In" button, the form submits to a yahoo.com POST URL 9796 3. The POST returns with a 302 (redirect) to another yahoo.com URL 9797 4. If you POST the redirected Location:, it all breaks. Yahoo assumes you will 9798 convert the method to GET, which works fine but is definitely not 9799 RFC-compliant. It would be compliant for 303, and the RFC says that many 9800 implementations treat 302 and 303 the same way (for HTTP/1.0 compliance), but 9801 converting to GET is explicitly wrong for 302. 9802 9803 * Api/qwebnetworkinterface.cpp: 9804 (QWebNetworkManager::started): 9805 9806 2008-09-15 Tor Arne Vestb <tavestbo (a] trolltech.com> 9807 9808 Reviewed by Simon. 9809 9810 Make QtInstance::create() private and fix caching 9811 9812 * Api/qwebframe.cpp: 9813 (QWebFrame::addToJavaScriptWindowObject): 9814 9815 2008-09-11 Tor Arne Vestb <tavestbo (a] trolltech.com> 9816 9817 Rubber-stamped by Simon. 9818 9819 Prevent leaking pages and frames in QWebKit autotest 9820 9821 * tests/qwebpage/tst_qwebpage.cpp: 9822 9823 2008-09-11 Tor Arne Vestb <tavestbo (a] trolltech.com> 9824 9825 Reviewed by Simon 9826 9827 Fix QtWebKit autotest 9828 9829 * tests/qwebpage/tst_qwebpage.cpp: 9830 (tst_QWebPage::userStyleSheet): 9831 9832 2008-09-09 Joerg Bornemann <joerg.bornemann (a] trolltech.com> 9833 9834 Reviewed by Simon. 9835 9836 Added missing WebCore prefix to ResourceRequest 9837 9838 This is needed for Windows/CE compilation where there is a conflict 9839 with a global ResourceRequest type. Elsewhere in this file ResourceRequest 9840 is also prefixed with WebCore:: 9841 9842 * Api/qwebframe.cpp: 9843 (QWebFrame::QWebFrame): 9844 9845 2008-09-07 Cameron Zwarich <cwzwarich (a] uwaterloo.ca> 9846 9847 Reviewed by Maciej Stachowiak. 9848 9849 Bug 20704: Replace the KJS namespace 9850 <https://bugs.webkit.org/show_bug.cgi?id=20704> 9851 9852 Rename the KJS namespace to JSC. 9853 9854 * Api/qwebframe.cpp: 9855 (QWebFrame::addToJavaScriptWindowObject): 9856 (QWebFrame::evaluateJavaScript): 9857 9858 2008-09-04 Tor Arne Vestb <tavestbo (a] trolltech.com> 9859 9860 Reviewed by Simon 9861 9862 Fix the QtWebKit build to match changes in r36016 9863 9864 * Api/qwebframe.cpp: 9865 (QWebFrame::addToJavaScriptWindowObject): 9866 9867 2008-09-04 Tor Arne Vestb <tavestbo (a] trolltech.com> 9868 9869 Reviewed by Simon. 9870 9871 Re-enable support for user stylesheets in QtWebKit 9872 9873 QtWebKit now follows the FRAME_LOADS_USER_STYLESHEET 9874 code path, which allows us to keep API support for 9875 loading user style sheets from remote URLs. 9876 9877 As part of the change UserStyleSheetLoader.cpp/h was 9878 moved from WebCore/loader/mac to WebCore/loader. 9879 9880 * tests/qwebpage/tst_qwebpage.cpp: 9881 (tst_QWebPage::userStyleSheet): 9882 9883 2008-08-29 Holger Hans Peter Freyther <zecke (a] selfish.org> 9884 9885 Reviewed by Eric Seidel. 9886 9887 [janitor/qt] Start replacing port specific getters with the generic native getter 9888 To get the native presentation of an image we currently have platform 9889 specific #ifdef's and a generic getter using NativeImagePtr. This patch 9890 extends this to the ImageBuffer and updates the Qt platform to get rid 9891 of the special #ifdefs. 9892 9893 https://bugs.webkit.org/attachment.cgi?id=22861 9894 9895 * Api/qwebframe.cpp: 9896 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 9897 * Api/qwebhistory.cpp: 9898 * Api/qwebsettings.cpp: 9899 (QWebSettings::iconForUrl): 9900 9901 2008-08-29 Holger Hans Peter Freyther <zecke (a] selfish.org> 9902 9903 Reviewed by Simon. 9904 9905 Catch up with the introduction of PageGroup in r30840. Enable tracking of 9906 visited links, enable this in QWebPage next to the other WebCore init call. 9907 Calling this more than once is no issue and a cheap operation, we also do not 9908 reset the state. When clearing the history of a page, clear the link state. 9909 9910 * Api/qwebhistory.cpp: 9911 (QWebHistory::clear): 9912 * Api/qwebhistoryinterface.cpp: 9913 (QWebHistoryInterface::setDefaultInterface): 9914 * Api/qwebpage.cpp: 9915 (QWebPagePrivate::QWebPagePrivate): 9916 9917 2008-08-29 Holger Hans Peter Freyther <zecke (a] selfish.org> 9918 9919 Reviewed by Simon. 9920 9921 Revert revision 34348 which removed the global historyContains() function. 9922 9923 This function was needed to implement the public API of QWebHistoryInterface 9924 and will be used again in the near future. 9925 9926 * Api/qwebhistoryinterface.cpp: 9927 (WebCore::historyContains): 9928 9929 2008-08-27 Erik Bunce <elbunce (a] thehive.com> 9930 9931 Reviewed by Eric Seidel. 9932 9933 https://bugs.webkit.org/show_bug.cgi?id=20223 9934 9935 Add QWebPage::contentsChanged() signal to notify of content changes. 9936 9937 * Api/qwebpage.cpp: 9938 * Api/qwebpage.h: 9939 * WebCoreSupport/EditorClientQt.cpp: 9940 (WebCore::EditorClientQt::respondToChangedContents): 9941 9942 2008-08-27 Brady Eidson <beidson (a] apple.com> 9943 9944 Reviewed by Anders 9945 9946 <rdar://problem/6134133> - Crash when loading large movie as a standalone document 9947 9948 * WebCoreSupport/FrameLoaderClientQt.cpp: 9949 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError): Stubbed for now 9950 * WebCoreSupport/FrameLoaderClientQt.h: 9951 9952 2008-08-25 Holger Hans Peter Freyther <zecke (a] selfish.org> 9953 9954 Reviewed by Simon. 9955 9956 [inspector] Emit signals from attachWindow and detachWindow in the Qt platform 9957 Allow the user of the API to honor the attachWindow and detachWindow 9958 requests and attach the QWebPage/QWebView wherever it is wanted. This needs 9959 some more API in QWebPage to be properly exposed. 9960 9961 * WebCoreSupport/InspectorClientQt.cpp: 9962 (WebCore::InspectorClientQt::createPage): 9963 (WebCore::InspectorClientQt::attachWindow): 9964 (WebCore::InspectorClientQt::detachWindow): 9965 * WebCoreSupport/InspectorClientQt.h: 9966 9967 2008-08-19 Alexey Proskuryakov <ap (a] webkit.org> 9968 9969 Reviewed by Geoff Garen. 9970 9971 Bring back shared JSGlobalData and implicit locking, because too many clients rely on it. 9972 9973 * Api/qwebframe.cpp: 9974 (QWebFrame::addToJavaScriptWindowObject): 9975 9976 2008-08-15 Hvard Wall <hwall (a] trolltech.com> 9977 9978 Reviewed by Simon. 9979 9980 Fixes: compile with QT_NO_UNDOCOMMAND/STACK 9981 9982 9983 * Api/qwebpage.cpp: 9984 (SetCursorEvent::SetCursorEvent): 9985 (QWebPagePrivate::createContextMenu): 9986 (QWebPage::action): 9987 * Api/qwebpage.h: 9988 * Api/qwebpage_p.h: 9989 * WebCoreSupport/EditCommandQt.cpp: 9990 (EditCommandQt::EditCommandQt): 9991 * WebCoreSupport/EditCommandQt.h: 9992 * WebCoreSupport/EditorClientQt.cpp: 9993 (dumpPath): 9994 (WebCore::EditorClientQt::shouldInsertText): 9995 (WebCore::EditorClientQt::shouldChangeSelectedRange): 9996 (WebCore::EditorClientQt::isEditable): 9997 (WebCore::EditorClientQt::registerCommandForUndo): 9998 (WebCore::EditorClientQt::clearUndoRedoOperations): 9999 (WebCore::EditorClientQt::canUndo): 10000 (WebCore::EditorClientQt::canRedo): 10001 (WebCore::EditorClientQt::undo): 10002 (WebCore::EditorClientQt::redo): 10003 (WebCore::EditorClientQt::shouldInsertNode): 10004 10005 2008-08-15 Hvard Wall <hwall (a] trolltech.com> 10006 10007 Reviewed by Simon. 10008 10009 Fixes: compile with QT_NO_STYLE_STYLESHEET 10010 10011 10012 * WebCoreSupport/FrameLoaderClientQt.cpp: 10013 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): 10014 (WebCore::FrameLoaderClientQt::createPlugin): 10015 10016 2008-08-15 Hvard Wall <hwall (a] trolltech.com> 10017 10018 Reviewed by Simon. 10019 10020 Fixes: compile with QT_NO_SHORTCUT 10021 10022 10023 * Api/qwebpage.cpp: 10024 (QWebPagePrivate::mouseMoveEvent): 10025 (QWebPagePrivate::mouseReleaseEvent): 10026 (QWebPagePrivate::dragMoveEvent): 10027 10028 2008-08-15 Hvard Wall <hwall (a] trolltech.com> 10029 10030 Reviewed by Simon. 10031 10032 Fixes: compile with QT_NO_CONTEXTMENU 10033 10034 10035 * Api/qwebpage.cpp: 10036 (editorCommandForWebActions): 10037 (QWebPagePrivate::QWebPagePrivate): 10038 (QWebPagePrivate::createMainFrame): 10039 (QWebPagePrivate::updateEditorActions): 10040 (QWebPage::setEditable): 10041 * Api/qwebpage.h: 10042 * Api/qwebpage_p.h: 10043 * Api/qwebview.cpp: 10044 * Api/qwebview.h: 10045 10046 2008-08-15 Hvard Wall <hwall (a] trolltech.com> 10047 10048 Reviewed by Simon. 10049 10050 Fixes: compile with QT_NO_WHEELEVENT 10051 10052 10053 * Api/qwebpage.cpp: 10054 (QWebPagePrivate::updateEditorActions): 10055 (QWebPage::event): 10056 * Api/qwebpage_p.h: 10057 * Api/qwebview.cpp: 10058 * Api/qwebview.h: 10059 10060 2008-08-15 Hvard Wall <hwall (a] trolltech.com> 10061 10062 Reviewed by Simon. 10063 10064 Fixes: compile with QT_NO_PRINTER 10065 10066 10067 * Api/qwebframe.cpp: 10068 (QWebFrame::print): 10069 * Api/qwebframe.h: 10070 10071 2008-08-15 David Boddie <dboddie (a] trolltech.com> 10072 10073 Reviewed by Simon. 10074 10075 Doc: Added documentation for default property values. 10076 10077 10078 * Api/qwebpage.cpp: 10079 (QWebPagePrivate::keyPressEvent): 10080 (QWebPage::triggerAction): 10081 (QWebPage::acceptNavigationRequest): 10082 (QWebPage::action): 10083 * Api/qwebview.cpp: 10084 10085 2008-08-15 David Boddie <dboddie (a] trolltech.com> 10086 10087 Reviewed by Simon. 10088 10089 Doc: Renamed snippets that appear in the code directory. 10090 10091 10092 * Api/qwebview.cpp: 10093 (QWebView::event): 10094 (QWebView::print): 10095 10096 2008-08-12 Timothy Hatcher <timothy (a] apple.com> 10097 10098 Add a stub for InspectorClient::setAttachedWindowHeight. 10099 10100 * WebCoreSupport/InspectorClientQt.cpp: 10101 (WebCore::InspectorClientQt::setAttachedWindowHeight): 10102 Call notImplemented(). 10103 * WebCoreSupport/InspectorClientQt.h: 10104 10105 2008-08-13 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 10106 10107 Reviewed by Simon. 10108 10109 Use full-page zoom in QtLauncher. 10110 10111 * QtLauncher/main.cpp: 10112 (MainWindow::zoomIn): 10113 (MainWindow::zoomOut): 10114 (MainWindow::resetZoom): 10115 (MainWindow::setupUI): 10116 10117 2008-08-13 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 10118 10119 Reviewed by Simon. 10120 10121 Fix linking with QtWebKit. 10122 10123 * Api/qwebframe.h: remove non-existing function/property. 10124 10125 2008-08-13 Simon Hausmann <hausmann (a] webkit.org> 10126 10127 Reviewed by Holger. 10128 10129 Based on patch by Siraj razick <siraj.razick (a] collabora.co.uk> 10130 10131 https://bugs.webkit.org/show_bug.cgi?id=19125 10132 10133 Added functions to get/set the zoom factor. 10134 10135 Added a QWebFrame/QWebView::zoomFactor as well as a boolean 10136 ZoomTextOnly attribute in QWebSettings. 10137 10138 * Api/qwebframe.cpp: 10139 (QWebFrame::setZoomFactor): 10140 (QWebFrame::zoomFactor): 10141 * Api/qwebframe.h: 10142 * Api/qwebsettings.cpp: 10143 (QWebSettingsPrivate::apply): 10144 (QWebSettings::QWebSettings): 10145 * Api/qwebsettings.h: 10146 * Api/qwebview.cpp: 10147 (QWebView::setZoomFactor): 10148 (QWebView::zoomFactor): 10149 * Api/qwebview.h: 10150 10151 2008-08-13 Simon Hausmann <hausmann (a] webkit.org> 10152 10153 Reviewed by Lars. 10154 10155 Fix QWebFrame::setHtml() not setting the new contents immediately. 10156 10157 Added a setter to the DocumentLoader to toggle the deferred loading of the main 10158 resource when it comes from substitute data. 10159 10160 Disable deferred loading of the main resource when we have valid substitute data, 10161 as used by QWebFrame::setHtml. 10162 10163 * WebCoreSupport/FrameLoaderClientQt.cpp: 10164 (WebCore::FrameLoaderClientQt::download): 10165 10166 2008-08-13 Simon Hausmann <hausmann (a] webkit.org> 10167 10168 Rubber-stamped by Holger. 10169 10170 Fix QWebPage::isModified(). 10171 10172 isModified() would return true after loading a new page or it would continue to 10173 return true after undoing modifications. Fix this by eliminating the 10174 QWebPagePrivate::modified variable and use the undoStack's canUndo() property 10175 instead. 10176 10177 https://bugs.webkit.org/show_bug.cgi?id=19252 10178 10179 * Api/qwebpage.cpp: 10180 (QWebPage::action): 10181 * Api/qwebpage_p.h: 10182 * WebCoreSupport/EditorClientQt.cpp: 10183 (WebCore::EditorClientQt::respondToChangedContents): 10184 10185 2008-08-13 David Boddie <dboddie (a] trolltech.com> 10186 10187 Reviewed by Simon. 10188 10189 Updated docs with the signal emission behavior of urlChanged() 10190 10191 * Api/qwebframe.cpp: 10192 10193 2008-08-13 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 10194 10195 Reviewed by Simon. 10196 10197 Fix Ctrl+Y to work again when editing text in contextEditable mode. 10198 10199 This fixes regression in LayoutTests/editing/pasteboard/emacs-cntl-y-001.html 10200 10201 * WebCoreSupport/EditorClientQt.cpp: 10202 (WebCore::EditorClientQt::handleKeyboardEvent): 10203 10204 2008-08-13 Thiago Macieira <tjmaciei (a] trolltech.com> 10205 10206 Reviewed by Simon. 10207 10208 Fix encoding of [ and ] in the host part of the URL 10209 10210 Until QUrl is fixed (making QUrl's tolerant parser more tolerant), we have to 10211 add this workaround to the QUrl <> WebCore::KURL conversion operator so that it 10212 doesn't encode [ and ] when they are found in the host part. That is, the 10213 following URL: 10214 http://[::1]/ 10215 is valid and should not be reencoded to: 10216 http://%5b::1%5d/ 10217 10218 This change adds the automatic test for it. 10219 10220 * tests/qwebframe/tst_qwebframe.cpp: 10221 10222 2008-08-12 Urs Wolfer <uwolfer (a] kde.org> 10223 10224 Reviewed by Simon. 10225 10226 https://bugs.webkit.org/show_bug.cgi?id=20357 10227 10228 Fix crash in QWebPage in case contextMenuEvent has been overwritten 10229 because context menu has the view as parent and thus is deleted too early. 10230 10231 Add testcase for this crash. 10232 10233 * Api/qwebpage_p.h: 10234 * tests/qwebpage/tst_qwebpage.cpp: 10235 (tst_QWebPage::contextMenuCrash): 10236 10237 2008-08-07 Simon Hausmann <hausmann (a] webkit.org> 10238 10239 Rubber-stamped by Lars. 10240 10241 Added API tests for QWebPage/QWebFrame based on QTestLib. 10242 10243 * tests/qwebframe/qwebframe.pro: Added. 10244 * tests/qwebframe/tst_qwebframe.cpp: Added. 10245 * tests/qwebpage/qwebpage.pro: Added. 10246 * tests/qwebpage/tst_qwebpage.cpp: Added. 10247 * tests/tests.pro: Added. 10248 10249 2008-08-06 Benjamin C Meyer <ben (a] meyerhome.net> 10250 10251 Reviewed by Simon. 10252 10253 During the drag operation only accept the event if the action is not ignore action. 10254 10255 * Api/qwebpage.cpp: 10256 (QWebPagePrivate::dragEnterEvent): 10257 (QWebPagePrivate::dragMoveEvent): 10258 (QWebPagePrivate::dropEvent): 10259 10260 2008-08-06 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 10261 10262 Fix the Qt build due to recent ScriptController refactoring. 10263 10264 * Api/qwebframe.cpp: 10265 (QWebFrame::addToJavaScriptWindowObject): 10266 10267 2008-08-05 Tor Arne Vestb <tavestbo (a] trolltech.com> 10268 10269 Reviewed by Simon. 10270 10271 Move event handling of the return-key from EditorClientQt to QWebPage. 10272 10273 https://bugs.webkit.org/show_bug.cgi?id=20191 10274 10275 This is a first step in refactoring the big switch block 10276 in EditorClientQt::handleKeyboardEvent to using WebActions 10277 instead. 10278 10279 The new logic uses two new StandardKeys from QKeySequence: 10280 10281 - InsertParagraphSeparator 10282 - InsertLineSeparator 10283 10284 Which translate to the commands InsertNewline and InsertLineBreak 10285 respectivly. On Windows/X11 pressing the shift modifier will invoke 10286 the latter action. For Mac this is triggered by pressing the meta 10287 modifier (Ctrl). 10288 10289 Initial patch by: Erik Bunce 10290 10291 * Api/qwebpage.cpp: 10292 (editorActionForKeyEvent): 10293 * Api/qwebpage.h: 10294 * WebCoreSupport/EditorClientQt.cpp: 10295 (WebCore::EditorClientQt::handleKeyboardEvent): 10296 10297 2008-08-04 Erik Bunce <elbunce (a] thehive.com> 10298 10299 Reviewed by Simon. 10300 10301 https://bugs.webkit.org/show_bug.cgi?id=20221 10302 10303 Add updateAction() support to ToggleBold, ToggleItalic, and ToggleUnderline. 10304 Add lookup table for mapping web actions to editor commands. 10305 10306 * Api/qwebpage.cpp: 10307 (editorCommandForWebActions): 10308 (QWebPagePrivate::updateAction): 10309 (QWebPagePrivate::updateEditorActions): 10310 (QWebPage::triggerAction): 10311 (QWebPage::setEditable): 10312 10313 2008-08-03 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 10314 10315 Reviewed by Simon. 10316 10317 A bunch of improvements to the QtLauncher. 10318 10319 Among others: 10320 - Unify and unclutter the toolbar, use menu for addition actions 10321 - Simplify URL edit, just use QLineEdit (no fancy close button etc) 10322 - Guess the URL from the command line so now we can run ./QtLauncher www.google.com 10323 - Shortcut keys for most actions 10324 - Simple autocomplete for the URL edit 10325 - Actions for zooming, New Window and Close Window 10326 - Show Format menu only when the content is set to editable 10327 10328 * QtLauncher/main.cpp: 10329 (MainWindow::MainWindow): 10330 (MainWindow::webPage): 10331 (MainWindow::changeLocation): 10332 (MainWindow::loadFinished): 10333 (MainWindow::showLinkHover): 10334 (MainWindow::newWindow): 10335 (MainWindow::zoomIn): 10336 (MainWindow::zoomOut): 10337 (MainWindow::resetZoom): 10338 (MainWindow::print): 10339 (MainWindow::setEditable): 10340 (MainWindow::dumpHtml): 10341 (MainWindow::setupUI): 10342 (main): 10343 10344 2008-08-04 Erik Bunce <elbunce (a] thehive.com> 10345 10346 Reviewed by Simon. 10347 10348 https://bugs.webkit.org/show_bug.cgi?id=20198 10349 10350 Allow Copy key sequence to work in non-editable areas. 10351 10352 * Api/qwebpage.cpp: 10353 (QWebPagePrivate::keyPressEvent): 10354 10355 2008-07-31 Erik Bunce <elbunce (a] thehive.com> 10356 10357 Reviewed by Simon. 10358 10359 Make sure edit actions get updated when the contents change. 10360 10361 * WebCoreSupport/EditorClientQt.cpp: 10362 (WebCore::EditorClientQt::respondToChangedContents): 10363 10364 2008-07-31 Erik Bunce <elbunce (a] thehive.com> 10365 10366 Reviewed by Simon. 10367 10368 Add simple edit test abilities to QtLauncher. 10369 10370 * QtLauncher/main.cpp: 10371 (MainWindow::MainWindow): 10372 (MainWindow::setEditable): 10373 (MainWindow::dumpHtml): 10374 10375 2008-07-31 Alexey Proskuryakov <ap (a] webkit.org> 10376 10377 Rubber-stamped by Maciej. 10378 10379 Eliminate JSLock (it was already disabled, removing the stub implementaion and all 10380 call sites now). 10381 10382 * Api/qwebframe.cpp: 10383 (QWebFrame::addToJavaScriptWindowObject): 10384 10385 2008-07-27 David Kilzer <ddkilzer (a] apple.com> 10386 10387 Fix Qt build failure. 10388 10389 * Api/qwebframe.h: 10390 (QWebFrame::setScrollOffset): Make argument const. 10391 10392 2008-07-26 Marc Ordinas i Llopis <marc.ordinasillopis (a] collabora.co.uk> 10393 10394 Reviewed by Simon Hausmann. 10395 10396 https://bugs.webkit.org/show_bug.cgi?id=20010 10397 [Qt] Add API access to scrolling 10398 10399 * Api/qwebframe.cpp: Added access to a frame scroll offset. 10400 (QWebFrame::scroll): 10401 (QWebFrame::scrollOffset): 10402 (QWebFrame::setScrollOffset): 10403 * Api/qwebframe.h: 10404 10405 2008-07-26 Daniel Jalkut <jalkut (a] red-sweater.com> 10406 10407 Build fix. Adjust to updated WebCore FrameLoader method names & signatures. 10408 10409 * Api/qwebpage.cpp: 10410 (QWebPage::triggerAction): 10411 * WebCoreSupport/FrameLoaderClientQt.cpp: 10412 (WebCore::FrameLoaderClientQt::createFrame): 10413 10414 2008-07-25 Joerg Bornemann <joerg.bornemann (a] trolltech.com> 10415 10416 Reviewed by Simon. 10417 10418 Compile with QT_NO_PRINTER. 10419 10420 * QtLauncher/main.cpp: 10421 (MainWindow::MainWindow): 10422 10423 2008-07-24 Tor Arne Vestb <tavestbo (a] trolltech.com> 10424 10425 Reviewed by Simon 10426 10427 Don't insert text on keyDown event in EditorClientQt. 10428 10429 * WebCoreSupport/EditorClientQt.cpp: 10430 (WebCore::EditorClientQt::handleKeyboardEvent): 10431 10432 2008-07-04 Benjamin C Meyer <ben (a] meyerhome.net> 10433 10434 Reviewed by Simon. 10435 10436 Update the webkit version in the QtWebKit useragent string to match trunk 10437 10438 * Api/qwebpage.cpp: 10439 10440 2008-07-02 Simon Hausmann <hausmann (a] webkit.org> 10441 10442 Build fix. 10443 10444 * Api/qwebpage.cpp: 10445 (QWebPage::triggerAction): The signature of setBaseWritingDirection 10446 changed to take an enum instead of a string. 10447 10448 2008-07-01 Alexey Proskuryakov <ap (a] webkit.org> 10449 10450 Reviewed by Darin Adler. 10451 10452 Disable JSLock for per-thread contexts. 10453 10454 * Api/qwebframe.cpp: 10455 (QWebFrame::addToJavaScriptWindowObject): 10456 Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking. 10457 Include JSLock.h, as it is no longer brought in implicitly. 10458 10459 2008-07-01 Tor Arne Vestb <tavestbo (a] trolltech.com> 10460 10461 Reviewed by Simon. 10462 10463 Don't show the tooltip instantly in the QtLauncher. 10464 10465 Let the QWebView handle tooltips by itself, so we get 10466 the expected delay as everywhere else. 10467 10468 * QtLauncher/main.cpp: 10469 10470 2008-06-30 Simon Hausmann <hausmann (a] webkit.org> 10471 10472 Rubber-stamped by Niko. 10473 10474 Removed the obsolete and unmaintained WebKitPart. The integration of 10475 QtWebKit into KDE is now done in the webkitkde component inside KDE. 10476 10477 * WebKitPart/WebKitFactory.cpp: Removed. 10478 * WebKitPart/WebKitFactory.h: Removed. 10479 * WebKitPart/WebKitPart.cpp: Removed. 10480 * WebKitPart/WebKitPart.desktop: Removed. 10481 * WebKitPart/WebKitPart.h: Removed. 10482 * WebKitPart/WebKitPart.rc: Removed. 10483 * WebKitPart/WebKitPartBrowser.rc: Removed. 10484 * WebKitPart/WebKitPartBrowserExtension.cpp: Removed. 10485 * WebKitPart/WebKitPartBrowserExtension.h: Removed. 10486 * WebKitPart/WebKitPartClient.cpp: Removed. 10487 * WebKitPart/WebKitPartClient.h: Removed. 10488 * WebKitPart/WebKitPartInterface.cpp: Removed. 10489 * WebKitPart/WebKitPartInterface.h: Removed. 10490 * WebKitPart/org.kde.WebKitPart.xml: Removed. 10491 10492 2008-06-24 Simon Hausmann <hausmann (a] webkit.org> 10493 10494 Fix the Qt build, added missing include for RuntimeObjectImp. 10495 10496 * Api/qwebframe.cpp: 10497 10498 2008-06-23 Benjamin C Meyer <ben (a] meyerhome.net> 10499 10500 Reviewed by Simon. 10501 10502 Add function to retrieve the standard context menu 10503 10504 2008-06-20 Marc Ordinas i Llopis <marc.ordinasillopis (a] collabora.co.uk> 10505 10506 Reviewed by Simon. 10507 10508 https://bugs.webkit.org/show_bug.cgi?id=19082 10509 [Qt] Full-page plugins not activated 10510 10511 * WebCoreSupport/FrameLoaderClientQt.cpp: 10512 (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a 10513 plugin present, as it can be created during the function. 10514 10515 2008-06-20 Marco Barisione <marco.barisione (a] collabora.co.uk> 10516 10517 Reviewed by Simon. 10518 10519 https://bugs.webkit.org/show_bug.cgi?id=19082 10520 [Qt] Full-page plugins not activated 10521 10522 * WebCoreSupport/FrameLoaderClientQt.cpp: 10523 (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the 10524 MIME type is supported by a plugin. 10525 10526 2008-06-18 Alexey Proskuryakov <ap (a] webkit.org> 10527 10528 Reviewed by Darin Adler. 10529 10530 Prepare JavaScript heap for being per-thread. 10531 10532 * Api/qwebframe.cpp: 10533 (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build. 10534 10535 2008-06-18 Julien Chaffraix <jchaffraix (a] webkit.org> 10536 10537 Qt Build fix after r34627. 10538 10539 * WebCoreSupport/FrameLoaderClientQt.cpp: 10540 (WebCore::FrameLoaderClientQt::createPlugin): 10541 10542 2008-06-15 Darin Adler <darin (a] apple.com> 10543 10544 - give Frame object functions shorter names: scriptProxy() -> script(), 10545 selectionController() -> selection(), animationController() -> animation() 10546 10547 * Api/qwebframe.cpp: 10548 (QWebFrame::evaluateJavaScript): 10549 * Api/qwebpage.cpp: 10550 (QWebPagePrivate::focusInEvent): 10551 (QWebPagePrivate::focusOutEvent): 10552 (QWebPage::inputMethodQuery): 10553 * WebCoreSupport/EditorClientQt.cpp: 10554 (WebCore::EditorClientQt::handleKeyboardEvent): 10555 10556 2008-06-15 Darin Adler <darin (a] apple.com> 10557 10558 - new names for more JavaScriptCore files 10559 10560 * WebKit_pch.h: 10561 10562 2008-06-15 Darin Adler <darin (a] apple.com> 10563 10564 - new names for a few key JavaScriptCore files 10565 10566 * Api/qwebframe.cpp: 10567 10568 2008-06-14 Darin Adler <darin (a] apple.com> 10569 10570 Rubber stamped by Sam. 10571 10572 - new names for kjs_binding.h and kjs_proxy.h 10573 10574 * Api/qwebframe.cpp: 10575 (QWebFrame::evaluateJavaScript): 10576 * WebKit_pch.h: 10577 10578 2008-06-14 Darin Adler <darin (a] apple.com> 10579 10580 - fix build 10581 10582 * Api/qwebframe.cpp: 10583 (QWebFramePrivate::init): Added a missing semicolon. 10584 10585 2008-06-14 Darin Adler <darin (a] apple.com> 10586 10587 Reviewed by Sam. 10588 10589 - more https://bugs.webkit.org/show_bug.cgi?id=17257 10590 start ref counts at 1 instead of 0 for speed 10591 10592 * Api/qwebframe.cpp: 10593 (QWebFramePrivate::init): Use create instead of new. 10594 * WebCoreSupport/FrameLoaderClientQt.cpp: 10595 (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto. 10596 10597 2008-06-13 Darin Adler <darin (a] apple.com> 10598 10599 - try to fix build 10600 10601 * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument. 10602 10603 2008-06-13 Darin Adler <darin (a] apple.com> 10604 10605 Reviewed by John Sullivan. 10606 10607 - updated for addition of FormState argument to action policy functions 10608 10609 * WebCoreSupport/FrameLoaderClientQt.cpp: 10610 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 10611 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 10612 10613 2008-06-11 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 10614 10615 Reviewed by Simon. 10616 10617 Fix left-click and middle-click mouse event are not properly accepted. 10618 10619 When copying or pasting text using left or middle-click, the event must be 10620 accepted so that it will not be potentially processed further by the parent 10621 and/or sub-classed widget. 10622 10623 10624 * Api/qwebpage.cpp: 10625 (QWebPagePrivate::mouseReleaseEvent): 10626 10627 2008-06-11 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 10628 10629 Reviewed by Simon. 10630 10631 Fix input element does not accept character typed in using AltGr. 10632 10633 EditorClient is modified to catch AltGr and Ctrl+Alt key combination. 10634 This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry 10635 10636 * WebCoreSupport/EditorClientQt.cpp: 10637 (WebCore::EditorClientQt::handleKeyboardEvent): 10638 10639 2008-05-26 Jonathon Jongsma <jonathon.jongsma (a] collabora.co.uk> 10640 10641 Reviewed by Simon. 10642 10643 https://bugs.webkit.org/show_bug.cgi?id=19323 10644 10645 Implemented the QWebPage::editable property. 10646 10647 Small documentation fixes by Simon. 10648 10649 * Api/qwebpage.cpp: 10650 (QWebPagePrivate::QWebPagePrivate): 10651 (QWebPage::setEditable): 10652 (QWebPage::isEditable): 10653 * Api/qwebpage.h: 10654 * Api/qwebpage_p.h: implement the editable property and add API so that 10655 applications can switch edit mode on and off for a particular QWebPage 10656 * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the 10657 QWebPage instead of always returning false 10658 10659 2008-06-09 Tor Arne Vestb <tavestbo (a] trolltech.com> 10660 10661 Reviewed by Simon 10662 10663 Make sure web action in context menus have the right enablement, 10664 while not messing up other web actions not included in the menu. 10665 10666 * Api/qwebpage.cpp: 10667 (QWebPagePrivate::createContextMenu): 10668 (QWebPage::updatePositionDependentActions): 10669 * Api/qwebpage_p.h: 10670 10671 2008-06-09 Benjamin C Meyer <ben (a] meyerhome.net> 10672 10673 Reviewed by Simon 10674 10675 Add Shift-Space shortcut to go up one screen, the opposite of Space 10676 which goes down one screen. 10677 10678 * Api/qwebpage.cpp: 10679 (QWebPagePrivate::handleScrolling): 10680 10681 2008-06-04 Tor Arne Vestb <tavestbo (a] trolltech.com> 10682 10683 Reviewed by Simon. 10684 10685 Fix a failing assertion when calling QWebFrame::evaluateJavaScript. 10686 10687 The starting line number has to be 1 instead of 0. 10688 10689 * Api/qwebframe.cpp: 10690 (QWebFrame::evaluateJavaScript): 10691 10692 2008-06-03 Jonathon Jongsma <jonathon.jongsma (a] collabora.co.uk> 10693 10694 Reviewed by Darin Adler. 10695 10696 * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains(). This 10697 function is not used anywhere internally and is only a convenience 10698 function that can still be accomplished using 10699 QWebHistoryInterface::historyContains(); 10700 10701 2008-05-29 Kavindra Devi Palaraja <kdpalara (a] trolltech.com> 10702 10703 Reviewed by Simon. 10704 10705 Doc: Mention the requirement of a QApplication with QtWebKit 10706 10707 10708 * Api/qwebview.cpp: 10709 10710 2008-05-29 David Boddie <dboddie (a] trolltech.com> 10711 10712 Reviewed by Simon. 10713 10714 Some clarifications for the documentation. 10715 10716 10717 * Api/qwebpage.cpp: 10718 * Api/qwebpluginfactory.cpp: 10719 10720 2008-05-27 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 10721 10722 Reviewed by Simon. 10723 10724 Fix web inspector does not returns its state properly after its window is minimized. 10725 10726 As hinted by Holger, InspectorClientView::hideEvent is not needed. 10727 This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967 10728 10729 * WebCoreSupport/InspectorClientQt.cpp: 10730 10731 2008-05-21 Siraj Razick <siraj.razick (a] collabora.co.uk> 10732 10733 Reviewed by Simon. 10734 10735 Add <param name="classid"/> support for application/x-qt-object plugins 10736 10737 * WebCoreSupport/FrameLoaderClientQt.cpp: 10738 (WebCore::FrameLoaderClientQt::createPlugin): 10739 10740 2008-05-13 Andy Shaw <andy (a] trolltech.com> 10741 10742 Reviewed by Simon. 10743 10744 Fixes: QWebHistory::forward() should go forwards and not back 10745 10746 * Api/qwebhistory.cpp: 10747 10748 2008-05-12 Alexey Proskuryakov <ap (a] webkit.org> 10749 10750 Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify 10751 SquirrelFish merging. 10752 10753 * Api/qwebframe.cpp: 10754 (QWebFrame::addToJavaScriptWindowObject): 10755 10756 2008-05-09 Thiago Macieira <tjmaciei (a] trolltech.com> 10757 10758 Reviewed by Simon. 10759 10760 Fix bad includes in QtWebKit public headers. 10761 10762 Make sure to include qglobal.h using the QtCore prefix so that an explicit 10763 include/QtCore is not needed in the application's build system. Also make sure 10764 that qwebsettings.h includes the local qwebkitglobal.h. 10765 10766 10767 * Api/qwebkitglobal.h: 10768 * Api/qwebsettings.h: 10769 10770 2008-05-08 Marc Ordinas i Llopis <marc.ordinasillopis (a] collabora.co.uk> 10771 10772 Reviewed by Simon. 10773 10774 https://bugs.webkit.org/show_bug.cgi?id=18935 10775 10776 Based on work by Sriram Neelakandan for the Gtk port. 10777 10778 * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize 10779 m_hasSentResponseToPlugin. 10780 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 10781 (WebCore::FrameLoaderClientQt::redirectDataToPlugin): 10782 10783 2008-05-08 Warwick Allison <warwick (a] trolltech.com> 10784 10785 Reviewed by Simon. 10786 10787 Fixes: WebKit expects initial input method state to be *disabled*. 10788 10789 At least QWS does not need the initial input method state to be forced to 10790 enabled, but other platforms (esp. X11) do. Until fixed/tested on those 10791 platforms, this is specific to QWS. 10792 10793 10794 * Api/qwebview.cpp: 10795 (QWebView::QWebView): 10796 10797 2008-05-06 Simon Hausmann <hausmann (a] webkit.org> 10798 10799 Reviewed by Holger. 10800 10801 Fix logic error in QWebHitTestResult::isNull(). 10802 10803 * Api/qwebframe.cpp: 10804 10805 2008-05-02 Benjamin Meyer <bmeyer (a] trolltech.com> 10806 10807 Reviewed by Simon. 10808 10809 Doc: Mention that you have to enable plugins in QWebSettings for them to work. 10810 10811 * Api/qwebpage.cpp: 10812 10813 2008-05-02 Simon Hausmann <hausmann (a] webkit.org> 10814 10815 Fix the Qt build, ExecState is required here. 10816 10817 * Api/qwebframe.cpp: 10818 (QWebFrame::addToJavaScriptWindowObject): 10819 10820 2008-05-01 Marc Ordinas i Llopis <marc.ordinasillopis (a] collabora.co.uk> 10821 10822 Reviewed by Alp Toker. 10823 Qt parts OK'ed by Simon Hausmann. 10824 10825 https://bugs.webkit.org/show_bug.cgi?id=14750 10826 Added support for NPAPI plugins on Gtk and Qt-x11 ports. 10827 10828 * WebCoreSupport/FrameLoaderClientQt.cpp: 10829 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 10830 (WebCore::FrameLoaderClientQt::finishedLoading): 10831 (WebCore::FrameLoaderClientQt::setMainDocumentError): 10832 (WebCore::FrameLoaderClientQt::committedLoad): 10833 (WebCore::FrameLoaderClientQt::objectContentType): 10834 (WebCore::FrameLoaderClientQt::createPlugin): 10835 (WebCore::FrameLoaderClientQt::redirectDataToPlugin): 10836 * WebCoreSupport/FrameLoaderClientQt.h: 10837 10838 2008-04-30 Julien Chaffraix <jchaffraix (a] webkit.org> 10839 10840 Qt 4.3 build fix. 10841 10842 Fixes a brace error that made Qt 4.4 build but not Qt 4.3. 10843 10844 * Api/qwebview.cpp: 10845 (QWebView::event): 10846 10847 2008-04-30 Tor Arne Vestb <tavestbo (a] trolltech.com> 10848 10849 Reviewed by Simon. 10850 10851 In focusIn and focusOut event always update the active state of the 10852 focus controller. Fixes ~400 failing layout tests due to missing 10853 editing callbacks that relied on the correct focus. 10854 10855 * Api/qwebpage.cpp: 10856 (QWebPagePrivate::focusInEvent): 10857 (QWebPagePrivate::focusOutEvent): 10858 10859 2008-04-29 Lincoln Ramsay <lincoln.ramsay (a] trolltech.com> 10860 10861 Reviewed by Simon. 10862 10863 Fix compilation with QT_NO_PRINTER 10864 10865 10866 * Api/qwebview.cpp: 10867 (QWebView::print): 10868 10869 2008-04-29 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 10870 10871 Reviewed by Simon. 10872 10873 Ensure that relative URL is converted to absolute URL. 10874 10875 This is necessary because loading a relative URL is not really supported 10876 (the web page may load, but the subsequent URLs for images and links will 10877 not be resolved properly). 10878 This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484 10879 10880 10881 * Api/qwebframe.cpp: 10882 (ensureAbsoluteUrl): 10883 (QWebFrame::setUrl): 10884 (QWebFrame::load): 10885 10886 2008-04-29 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 10887 10888 Reviewed by Simon. 10889 10890 Simplification of Qt Launcher (no animation and use standard progress bar widget) 10891 10892 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. 10893 10894 10895 * QtLauncher/main.cpp: 10896 (MainWindow::MainWindow): 10897 10898 2008-04-29 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 10899 10900 Reviewed by Simon. 10901 10902 Update the cursor when the frame/page loading is finished. 10903 10904 This fixes https://bugs.webkit.org/show_bug.cgi?id=18712 10905 10906 10907 * WebCoreSupport/FrameLoaderClientQt.cpp: 10908 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): 10909 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady): 10910 10911 2008-04-29 Simon Hausmann <shausman (a] trolltech.com> 10912 10913 Reviewed by Holger. 10914 10915 Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links. 10916 10917 Call QWebPage::acceptNavigationRequest when the creation of a new window with 10918 URL is requested. The frame pointer is set to null in this case. 10919 10920 10921 * Api/qwebpage.cpp: 10922 (QWebPage::setViewportSize): 10923 * WebCoreSupport/FrameLoaderClientQt.cpp: 10924 (WebCore::FrameLoaderClientQt::startDownload): 10925 (WebCore::FrameLoaderClientQt::createFrame): 10926 10927 2008-04-29 Holger Hans Peter Freyther <zecke (a] selfish.org> 10928 10929 Reviewed by Simon. 10930 10931 Use the WebCore facility to do the scrolling. Move some code around. 10932 10933 * Api/qwebpage.cpp: 10934 (QWebPagePrivate::keyPressEvent): 10935 (QWebPagePrivate::shortcutOverrideEvent): 10936 (QWebPagePrivate::handleScrolling): 10937 * Api/qwebpage_p.h: 10938 10939 2008-04-29 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 10940 10941 Reviewed by Simon. 10942 10943 fix potential crash when loading image(s) 10944 10945 Crash may occur. If compiled with 4.3, the variable is not initialized. 10946 10947 * Api/qwebpage.cpp: 10948 (QWebPagePrivate::QWebPagePrivate): 10949 10950 2008-04-29 Holger Hans Peter Freyther <zecke (a] selfish.org> 10951 10952 Reviewed by Simon. 10953 10954 Calling QWebView::setCursor will override the WebCore Cursor. 10955 Calling QWebView::setCursor will override the WebCore Cursor using 10956 QWidget::unsetCursor will revert to the WebCore Cursor. 10957 10958 For detecting the unset we have to compare the shape of the 10959 cursor to the default arrow. Qt::WA_SetCursor can not be used 10960 as it is set unconditionally but conditionally removed. 10961 10962 Calling QWidget::setCursor will immediately send the CursorChange 10963 event. We listen to this event to decide if we currently use a 10964 WebCore cursor, got a cursor from outside, or revert to the default. 10965 10966 This should be race free and work reliable, the manual test for this 10967 is WebCore/manual-tests/cursor.html 10968 10969 * Api/qwebpage.cpp: 10970 (SetCursorEvent::SetCursorEvent): 10971 * Api/qwebpage_p.h: 10972 * Api/qwebview.cpp: 10973 (QWebViewPrivate::QWebViewPrivate): 10974 (QWebViewPrivate::setCursor): 10975 (QWebView::QWebView): 10976 (QWebView::event): 10977 10978 2008-04-29 Kavindra Devi Palaraja <kdpalara (a] trolltech.com> 10979 10980 Reviewed by Simon. 10981 10982 Documentation fixes: 10983 10984 - Fixed a qdoc warning 10985 - Mention that fav icons can be of arbitrary size 10986 - Fix signature of QWebPage::acceptNavigationRequest show in the documentation 10987 10988 * Api/qwebframe.cpp: 10989 * Api/qwebpage.cpp: 10990 * Api/qwebpage.h: 10991 * Api/qwebsettings.cpp: 10992 * Api/qwebview.cpp: 10993 10994 2008-04-28 Tor Arne Vestb <tavestbo (a] trolltech.com> 10995 10996 Reviewed by Simon. 10997 10998 Fix QWebView::loadFinished isn't always emitted 10999 11000 Replaced loadDone() with loadFinished(bool) and moved the signals for progress 11001 tracking (start, progres, and finish) to the page instead of the frame. This 11002 ensures that we emit loadFinished even when a subframe started the actual load. 11003 11004 This causes a few regressions in the layout tests that we for now accept for 11005 the sake of the correct API. Layout tests we can fix any time though, including 11006 patch release, the API however we can't change anymore in patch releases. 11007 11008 * Api/qwebframe.cpp: 11009 * Api/qwebframe.h: 11010 * Api/qwebpage.cpp: 11011 (QWebPage::totalBytes): 11012 * Api/qwebpage.h: 11013 * Api/qwebview.cpp: 11014 (QWebView::setPage): 11015 * Api/qwebview.h: 11016 * QtLauncher/main.cpp: 11017 (MainWindow::MainWindow): 11018 * WebCoreSupport/FrameLoaderClientQt.cpp: 11019 (drtDescriptionSuitableForTestResult): 11020 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 11021 (WebCore::FrameLoaderClientQt::setFrame): 11022 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage): 11023 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 11024 (WebCore::FrameLoaderClientQt::willChangeTitle): 11025 (WebCore::FrameLoaderClientQt::createDocumentLoader): 11026 (WebCore::FrameLoaderClientQt::download): 11027 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 11028 * WebCoreSupport/FrameLoaderClientQt.h: 11029 11030 2008-04-28 Kavindra Devi Palaraja <kdpalara (a] trolltech.com> 11031 11032 Reviewed by Simon. 11033 11034 Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame 11035 11036 * Api/qwebframe.cpp: 11037 * Api/qwebpluginfactory.cpp: 11038 * Api/qwebsettings.cpp: 11039 (QWebSettings::QWebSettings): 11040 (QWebSettings::setUserStyleSheetUrl): 11041 (QWebSettings::iconForUrl): 11042 (QWebSettings::webGraphic): 11043 (QWebSettings::maximumPagesInCache): 11044 (QWebSettings::setFontFamily): 11045 (QWebSettings::resetFontFamily): 11046 (QWebSettings::testAttribute): 11047 (QWebSettings::resetAttribute): 11048 11049 2008-04-28 Ariya Hidayat <ahidayat (a] trolltech.com> 11050 11051 Reviewed by Simon. 11052 11053 Fix document/frame title not reset when loading a new URI 11054 11055 We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle() 11056 will be called very soon with the correct title. 11057 This properly resets the title when we navigate to a URI without a title. 11058 11059 11060 * WebCoreSupport/FrameLoaderClientQt.cpp: 11061 11062 2008-04-28 David Boddie <dboddie (a] trolltech.com> 11063 11064 Reviewed by Simon. 11065 11066 Minor documentation changes. 11067 11068 * Api/qwebview.cpp: 11069 11070 2008-04-28 Tor Arne Vestb <tavestbo (a] trolltech.com> 11071 11072 Reviewed by Simon. 11073 11074 Prevent middle-click from triggering open URL from clipboard when the event has already been accepted. 11075 11076 11077 * Api/qwebpage.cpp: 11078 (QWebPagePrivate::mouseMoveEvent): 11079 (QWebPagePrivate::mousePressEvent): 11080 (QWebPagePrivate::mouseDoubleClickEvent): 11081 (QWebPagePrivate::mouseTripleClickEvent): 11082 (QWebPagePrivate::mouseReleaseEvent): 11083 11084 2008-04-28 Tor Arne Vestb <tavestbo (a] trolltech.com> 11085 11086 Reviewed by Simon. 11087 11088 Fix scrollbar behavior in QtWebKit to match QScrollBar. 11089 11090 Right click context menu is now supported, along with 11091 middle click to center slider thumb over mouse cursor. 11092 11093 11094 * Api/qwebpage.cpp: 11095 (QWebPage::linkDelegationPolicy): 11096 11097 2008-04-28 Tor Arne Vestb <tavestbo (a] trolltech.com> 11098 11099 Reviewed by Simon. 11100 11101 Implemented channel-based logging for QtWebKit. 11102 11103 Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable. 11104 Warnings for notImplemented() is still output by default, but can be disabled 11105 by setting DISABLE_NI_WARNINGS=1. 11106 11107 * Api/qwebpage.cpp: 11108 (QWebPagePrivate::QWebPagePrivate): 11109 11110 2008-04-28 Simon Hausmann <shausman (a] trolltech.com> 11111 11112 Rubber-stamped by Lars 11113 11114 Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API. 11115 11116 * Api/qwebframe.cpp: 11117 * Api/qwebframe.h: 11118 * Api/qwebview.cpp: 11119 * Api/qwebview.h: 11120 11121 2008-04-28 Kavindra Devi Palaraja <kdpalara (a] trolltech.com> 11122 11123 Reviewed by Simon. 11124 11125 Doc - adding more documentation to QWebFrame, QWebPage and QWebView 11126 11127 11128 * Api/qwebframe.cpp: 11129 * Api/qwebpage.cpp: 11130 * Api/qwebview.cpp: 11131 (QWebView::stop): 11132 (QWebView::back): 11133 (QWebView::changeEvent): 11134 11135 2008-04-28 Simon Hausmann <shausman (a] trolltech.com> 11136 11137 Reviewed by Holger. 11138 11139 Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens 11140 11141 Give the popups the right parent widget and the right coordinates relative within the parent. 11142 11143 11144 * Api/qwebpage.cpp: 11145 11146 2008-04-28 Benjamin Meyer <bmeyer (a] trolltech.com> 11147 11148 Reviewed by Simon. 11149 11150 Doc: Add see also's (and a few minor whitespace/typo corrections) 11151 11152 11153 * Api/qwebframe.cpp: 11154 (QWebFrame::~QWebFrame): 11155 (QWebFrame::setHtml): 11156 (QWebFrame::setContent): 11157 (QWebFrame::parentFrame): 11158 (QWebFrame::childFrames): 11159 (QWebFrame::setScrollBarValue): 11160 (QWebFrame::scrollBarValue): 11161 (QWebFrame::scrollBarMaximum): 11162 (QWebFrame::scrollBarMinimum): 11163 (QWebFrame::render): 11164 (QWebFrame::pos): 11165 (QWebFrame::geometry): 11166 (QWebFrame::print): 11167 (QWebFrame::evaluateJavaScript): 11168 * Api/qwebpage.cpp: 11169 (QWebPagePrivate::mousePressEvent): 11170 (QWebPagePrivate::mouseDoubleClickEvent): 11171 (QWebPage::~QWebPage): 11172 (QWebPage::javaScriptPrompt): 11173 (openNewWindow): 11174 (QWebPage::setViewportSize): 11175 (QWebPage::acceptNavigationRequest): 11176 (QWebPage::action): 11177 (QWebPage::userAgentForUrl): 11178 (QWebPagePrivate::_q_onLoadProgressChanged): 11179 * Api/qwebview.cpp: 11180 (QWebView::event): 11181 11182 2008-04-28 Kavindra Devi Palaraja <kdpalara (a] trolltech.com> 11183 11184 Reviewed by Simon. 11185 11186 Submitting more documentation for QWebPage 11187 11188 11189 * Api/qwebpage.cpp: 11190 11191 2008-04-28 Lincoln Ramsay <lincoln.ramsay (a] trolltech.com> 11192 11193 Reviewed by Simon. 11194 11195 Compile when QT_NO_CLIPBOARD is defined. 11196 11197 11198 * Api/qwebpage.cpp: 11199 (QWebPage::triggerAction): 11200 11201 2008-04-28 David Boddie <dboddie (a] trolltech.com> 11202 11203 Reviewed by Simon. 11204 11205 Minor documentation fix. 11206 11207 11208 * Api/qwebhistory.cpp: 11209 11210 2008-04-28 Holger Hans Peter Freyther <zecke (a] selfish.org> 11211 11212 Reviewed by Simon. 11213 11214 Implement QWebPage::createPlugin 11215 11216 The code is coming from the demo browser and needed here 11217 for some manual tests. 11218 11219 11220 * QtLauncher/QtLauncher.pro: 11221 * QtLauncher/main.cpp: 11222 (WebPage::createPlugin): 11223 11224 2008-04-28 Simon Hausmann <hausmann (a] webkit.org> 11225 11226 Qt/Win build fix. Include config.h to get the implicit MathExtras.h 11227 inclusion correct with regards to rand_s. 11228 11229 * Api/qwebhistory.cpp: 11230 11231 2008-04-28 Tor Arne Vestb <tavestbo (a] trolltech.com> 11232 11233 Reviewed by Simon. 11234 11235 https://bugs.webkit.org/show_bug.cgi?id=18713 11236 11237 Fix scrollbar painting issues in QtWebKit. 11238 11239 Hovering and click-draging outside of the scrollbar would 11240 produce unexpected and inconcistent results. We also didn't 11241 pass on leave-events to the underlying WebKit code, which 11242 was nessecary to implement the paint fix. 11243 11244 Note: The event handling of the Leave event should be moved 11245 out of QWebView::event() and into a proper override for 4.5. 11246 11247 * Api/qwebpage.cpp: 11248 (QWebPagePrivate::leaveEvent): 11249 * Api/qwebpage_p.h: 11250 * Api/qwebview.cpp: 11251 (QWebView::event): 11252 11253 2008-04-25 Benjamin Meyer <bmeyer (a] trolltech.com> 11254 11255 Reviewed by Simon, Holger. 11256 11257 Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus. 11258 11259 * Correctly de- and reactivate the focused frame in focusOut/focusInEvent 11260 without telling the focus controller. We don't want to change the focused frame 11261 - the controller has to remember it in fact - but instead just deactivate the 11262 frame for correct painting as RenderTheme::isFocused() uses the activation 11263 state of the frame. 11264 11265 * Api/qwebpage.cpp: 11266 (QWebPagePrivate::focusInEvent): 11267 (QWebPagePrivate::focusOutEvent): 11268 11269 2008-04-25 Kavindra Devi Palaraja <kdpalara (a] trolltech.com> 11270 11271 Reviewed by Simon. 11272 11273 completed documentation for the Detailed Description section for QWebView 11274 11275 11276 * Api/qwebview.cpp: 11277 11278 2008-04-25 Denis Dzyubenko <denis.dzyubenko (a] trolltech.com> 11279 11280 Reviewed by Simon. 11281 11282 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. 11283 11284 11285 * Api/qwebhistory.cpp: 11286 (QWebHistory::back): 11287 (QWebHistory::forward): 11288 (QWebHistory::goToItem): 11289 11290 2008-04-25 Tor Arne Vestb <tavestbo (a] trolltech.com> 11291 11292 Reviewed by Simon. 11293 11294 Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest(). 11295 11296 11297 * WebCoreSupport/FrameLoaderClientQt.cpp: 11298 (WebCore::FrameLoaderClientQt::createFrame): 11299 11300 2008-04-25 Simon Hausmann <hausmann (a] webkit.org> 11301 11302 Reviewed by Holger. 11303 11304 When pressing backspace in a line edit in a webpage we should not go back to the previous page. 11305 11306 The shortcut for back on Windows is backspace. Implemented shortcut override 11307 handling in QWebView/QWebPage to prevent this. 11308 11309 11310 * Api/qwebpage.cpp: 11311 (QWebPagePrivate::wheelEvent): 11312 (editorActionForKeyEvent): 11313 (QWebPagePrivate::keyPressEvent): 11314 (QWebPagePrivate::inputMethodEvent): 11315 (QWebPagePrivate::shortcutOverrideEvent): 11316 (QWebPage::event): 11317 * Api/qwebpage_p.h: 11318 * Api/qwebview.cpp: 11319 (QWebView::event): 11320 11321 2008-04-25 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 11322 11323 Reviewed by Simon. 11324 11325 Fix triple-clicking does not work in a web page 11326 11327 11328 * Api/qwebpage.cpp: 11329 (QWebPagePrivate::updateEditorActions): 11330 (QWebPagePrivate::timerEvent): 11331 (QWebPagePrivate::mousePressEvent): 11332 (QWebPagePrivate::mouseDoubleClickEvent): 11333 (QWebPage::undoStack): 11334 * Api/qwebpage_p.h: 11335 11336 2008-04-25 Benjamin Meyer <bmeyer (a] trolltech.com> 11337 11338 Reviewed by Simon. 11339 11340 When pressing Ctrl-Up the keyboard modifiers could include other modifiers 11341 11342 11343 * Api/qwebpage.cpp: 11344 (QWebPagePrivate::keyPressEvent): 11345 11346 2008-04-25 Tor Arne Vestb <tavestbo (a] trolltech.com> 11347 11348 Reviewed by Simon. 11349 11350 Fix handling of Javascript's confirm() function in QtWebKit. 11351 11352 11353 * Api/qwebpage.cpp: 11354 11355 2008-04-25 Kavindra Devi Palaraja <kdpalara (a] trolltech.com> 11356 11357 Reviewed by Simon. 11358 11359 Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity 11360 11361 11362 * Api/qwebview.cpp: 11363 11364 2008-04-25 Benjamin Meyer <bmeyer (a] trolltech.com> 11365 11366 Reviewed by Simon. 11367 11368 QWebPage: missing signal when window.print() is requested from javascript 11369 11370 11371 * Api/qwebpage.cpp: 11372 * Api/qwebpage.h: 11373 * WebCoreSupport/ChromeClientQt.cpp: 11374 11375 2008-04-25 Benjamin Meyer <bmeyer (a] trolltech.com> 11376 11377 Reviewed by Simon. 11378 11379 Fixes: "Save Image" action wasn't doing anything. 11380 11381 11382 * Api/qwebpage.cpp: 11383 (QWebPage::triggerAction): 11384 11385 2008-04-25 Benjamin Meyer <bmeyer (a] trolltech.com> 11386 11387 Reviewed by Simon. 11388 11389 Apply key event changes to the current frame, not the main frame. 11390 11391 Example: hitting space bar should scroll current frame, not the main frame 11392 which doesn't even have a scrollbar. 11393 11394 11395 * Api/qwebpage.cpp: 11396 (QWebPagePrivate::keyPressEvent): 11397 11398 2008-04-25 Benjamin Meyer <bmeyer (a] trolltech.com> 11399 11400 Reviewed by Simon. 11401 11402 Fixes: QWebFrame crash when fetching the icon 11403 11404 Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock. 11405 11406 * Api/qwebframe.cpp: 11407 11408 2008-04-25 Warwick Allison <warwick (a] trolltech.com> 11409 11410 Reviewed by Simon. 11411 11412 Fixes: Scrollbars did not report correct maximum. 11413 11414 * Api/qwebframe.cpp: 11415 11416 2008-04-25 David Boddie <dboddie (a] trolltech.com> 11417 11418 Reviewed by Simon. 11419 11420 Documentation updates for some of the QWeb classes 11421 11422 * Api/qwebframe.cpp: 11423 * Api/qwebhistory.cpp: 11424 * Api/qwebsettings.cpp: 11425 * Api/qwebview.cpp: 11426 11427 2008-04-25 Holger Hans Peter Freyther <zecke (a] selfish.org> 11428 11429 Reviewed by Simon. 11430 11431 Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html 11432 11433 Similar to Editing and Frameloading we do the dumping within WebCore 11434 11435 11436 * WebCoreSupport/FrameLoaderClientQt.cpp: 11437 (qt_dump_frame_loader): 11438 (qt_dump_resource_load_callbacks): 11439 (drtDescriptionSuitableForTestResult): 11440 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 11441 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache): 11442 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 11443 11444 2008-04-24 Anders Carlsson <andersca (a] apple.com> 11445 11446 Reviewed by Sam. 11447 11448 Change some String arguments to be const references instead. 11449 11450 * WebCoreSupport/EditorClientQt.cpp: 11451 (WebCore::EditorClientQt::shouldInsertText): 11452 * WebCoreSupport/EditorClientQt.h: 11453 11454 2008-04-24 Holger Hans Peter Freyther <zecke (a] selfish.org> 11455 11456 Reviewed by Simon. 11457 11458 Cosmetic changes to make the code more readable. 11459 -Early exit if we don't have a webview 11460 -handle the empty tooltip and non-empty tooltip case separately 11461 11462 11463 * WebCoreSupport/ChromeClientQt.cpp: 11464 (WebCore::ChromeClientQt::setToolTip): 11465 (WebCore::ChromeClientQt::print): 11466 11467 2008-04-24 Paul Olav Tvete <paul (a] trolltech.com> 11468 11469 Reviewed by Simon. 11470 11471 Automatically wrap tooltip text and hide a shown tooltip when it is empty. 11472 11473 QWidget::setTooltip("") will still show the old tooltip for up to 10 seconds. 11474 Workaround as discussed with Matthias. 11475 11476 * WebCoreSupport/ChromeClientQt.cpp: 11477 (WebCore::ChromeClientQt::setToolTip): 11478 11479 2008-04-24 Holger Hans Peter Freyther <zecke (a] selfish.org> 11480 11481 Reviewed by Simon. 11482 11483 Allow to disable caching completeley by calling setObjectCacheCapacities(0, 0, 0) 11484 11485 * Api/qwebsettings.cpp: 11486 (QWebSettings::setObjectCacheCapacities): 11487 11488 2008-04-24 Benjamin Meyer <bmeyer (a] trolltech.com> 11489 11490 Reviewed by Simon. 11491 11492 Improve keyboard scrolling 11493 11494 Match Down/Up keys scroll distance with Safari (i.e. faster) and add Home and End shortcuts to scroll to the top/botom. 11495 11496 11497 * Api/qwebpage.cpp: 11498 (QWebPagePrivate::keyPressEvent): 11499 11500 2008-04-24 Olivier Goffart <ogoffart (a] trolltech.com> 11501 11502 Reviewed by Simon. 11503 11504 Fix various compiler warnings in the Qt port. 11505 11506 * Api/qwebframe.cpp: 11507 (QWebFrame::print): 11508 * Api/qwebsettings.cpp: 11509 (graphics): 11510 * WebCoreSupport/FrameLoaderClientQt.cpp: 11511 (WebCore::FrameLoaderClientQt::createPlugin): 11512 11513 2008-04-24 Tor Arne Vestb <tavestbo (a] trolltech.com> 11514 11515 Reviewed by Simon. 11516 11517 Cleaned up copyright headers (removed misplaced class descriptions and 11518 fixed inconsistent whitespace and indentation). 11519 11520 * Api/qwebframe.cpp: 11521 * Api/qwebframe.h: 11522 * Api/qwebframe_p.h: 11523 * Api/qwebhistory.cpp: 11524 * Api/qwebhistory.h: 11525 * Api/qwebhistory_p.h: 11526 * Api/qwebhistoryinterface.cpp: 11527 * Api/qwebhistoryinterface.h: 11528 * Api/qwebkitglobal.h: 11529 * Api/qwebnetworkinterface.cpp: 11530 * Api/qwebnetworkinterface.h: 11531 * Api/qwebnetworkinterface_p.h: 11532 * Api/qwebpage.cpp: 11533 * Api/qwebpage.h: 11534 * Api/qwebpage_p.h: 11535 * Api/qwebpluginfactory.cpp: 11536 * Api/qwebpluginfactory.h: 11537 * Api/qwebsettings.cpp: 11538 * Api/qwebsettings.h: 11539 * Api/qwebview.h: 11540 * QtLauncher/main.cpp: 11541 11542 2008-04-24 Tor Arne Vestb <tavestbo (a] trolltech.com> 11543 11544 Reviewed by Simon. 11545 11546 Added basic URL guessing to QtLauncher (same as in the demo browser). 11547 11548 11549 * QtLauncher/main.cpp: 11550 (MainWindow::changeLocation): 11551 (MainWindow::guessUrlFromString): 11552 11553 2008-04-24 Benjamin Meyer <bmeyer (a] trolltech.com> 11554 11555 Reviewed by Simon Hausmann <hausmann (a] webkit.org>. 11556 11557 Prevent double deletions of the default web interface. 11558 11559 11560 * Api/qwebhistoryinterface.cpp: 11561 (gCleanupInterface): 11562 (QWebHistoryInterface::QWebHistoryInterface): 11563 11564 2008-04-23 Simon Hausmann <hausmann (a] webkit.org> 11565 11566 Fix compilation against Qt 4.3 11567 11568 * Api/qwebpage.cpp: 11569 (QWebPage::userAgentForUrl): 11570 * QtLauncher/main.cpp: 11571 (main): 11572 11573 2008-04-23 Holger Hans Peter Freyther <zecke (a] selfish.org> 11574 11575 Reviewed by Simon. 11576 11577 * Make sure the "Inspect Element" item gets added to the ContextMenu, a call 11578 to ContextMenu::populate() is not adding it, the ContextMenuController does 11579 add it after the call to populate(). Do that as well. 11580 11581 11582 * Api/qwebpage.cpp: 11583 (QWebPage::updatePositionDependentActions): 11584 11585 2008-04-23 Simon Hausmann <hausmann (a] webkit.org> 11586 11587 Reviewed by Holger. 11588 11589 Fix crashes on window.close(). 11590 11591 We should not delete the QWebPage object in the ChromeClient but leave it up to 11592 the application when and whether to delete a browser window. For this we now 11593 emit the windowCloseRequested() signal. 11594 11595 Done with Tor Arne. 11596 11597 * Api/qwebpage.cpp: 11598 * Api/qwebpage.h: 11599 * QtLauncher/main.cpp: 11600 (MainWindow::MainWindow): 11601 * WebCoreSupport/ChromeClientQt.cpp: 11602 11603 2008-04-23 Simon Hausmann <hausmann (a] webkit.org> 11604 11605 Reviewed by Holger. 11606 11607 Fix parsing of external scripts/stylesheets when using setHtml(const QString &html). 11608 11609 We used to pass the html string to the frameloader in utf-16, which also meant that the default 11610 encoding of external scripts/stylesheets became utf-16. That doesn't make sense, so assume utf-8 11611 by default. This is now also documented. 11612 11613 * Api/qwebframe.cpp: 11614 (QWebFrame::setHtml): 11615 * Api/qwebview.cpp: 11616 11617 2008-04-23 Benjamin Meyer <bmeyer (a] trolltech.com> 11618 11619 Reviewed by Simon. 11620 11621 Fixes background color propagation when using a custom QWebPage 11622 11623 Set the palette in setPage(), not during the creation on-demand. 11624 11625 11626 * Api/qwebview.cpp: 11627 (QWebView::page): 11628 (QWebView::setPage): 11629 11630 2008-04-23 Benjamin Meyer <bmeyer (a] trolltech.com> 11631 11632 Reviewed by Simon. 11633 11634 Fix the user agent on the mac to be BSD4 11635 11636 Put Q_OS_DARWIN before Q_OS_BSD4 sense they are both defined on the mac 11637 11638 11639 * Api/qwebpage.cpp: 11640 (QWebPage::userAgentForUrl): 11641 11642 2008-04-23 Simon Hausmann <shausman (a] trolltech.com> 11643 11644 Reviewed by Holger. 11645 11646 Added missing copyright notice. 11647 Small fixes to the documentation. 11648 11649 * Api/qwebpluginfactory.cpp: 11650 11651 2008-04-23 Zack Rusin <zack (a] tungstengraphics.com> 11652 11653 Reviewed by Simon. 11654 11655 Added a contentsSize() property. 11656 11657 * Api/qwebframe.cpp: 11658 (QWebFrame::contentsSize): 11659 (QWebFrame::hitTestContent): 11660 * Api/qwebframe.h: 11661 11662 2008-04-22 Benjamin Meyer <bmeyer (a] trolltech.com> 11663 11664 Reviewed by Simon. 11665 11666 Fixes: QWebPage's QNetworkManager's can be shared among webpages. 11667 11668 Don't force the deletion of the object, but let QObject take care of it. 11669 11670 * Api/qwebpage.cpp: 11671 11672 2008-04-22 Simon Hausmann <hausmann (a] webkit.org> 11673 11674 Reviewed by Holger. 11675 11676 Documentation for QWebPluginFactory and documentation updates for QWebPage. 11677 11678 * Api/qwebpage.cpp: 11679 (QWebPage::setLinkDelegationPolicy): 11680 (QWebPage::linkDelegationPolicy): 11681 (QWebPage::swallowContextMenuEvent): 11682 (QWebPage::updatePositionDependentActions): 11683 (QWebPage::extension): 11684 (QWebPage::networkAccessManager): 11685 * Api/qwebpluginfactory.cpp: 11686 (QWebPluginFactory::QWebPluginFactory): 11687 (QWebPluginFactory::~QWebPluginFactory): 11688 (QWebPluginFactory::refreshPlugins): 11689 11690 2008-04-22 Simon Hausmann <hausmann (a] webkit.org> 11691 11692 Reviewed by Holger. 11693 11694 Added QWebPage::swallowContextMenuEvent and QWebPage::updatePositionDependentActions. 11695 11696 11697 * Api/qwebpage.cpp: 11698 (QWebPagePrivate::QWebPagePrivate): 11699 (QWebPagePrivate::mouseReleaseEvent): 11700 (QWebPage::setLinkDelegationPolicy): 11701 (QWebPage::linkDelegationPolicy): 11702 (QWebPage::swallowContextMenuEvent): 11703 (QWebPage::updatePositionDependentActions): 11704 * Api/qwebpage.h: 11705 * Api/qwebpage_p.h: 11706 * Api/qwebview.cpp: 11707 (QWebView::event): 11708 11709 2008-04-22 Simon Hausmann <hausmann (a] webkit.org> 11710 11711 Reviewed by Holger. 11712 11713 Added Extension APIs for QWebPage. 11714 11715 * Api/qwebpage.cpp: 11716 (QWebPage::setLinkDelegationPolicy): 11717 (QWebPage::linkDelegationPolicy): 11718 (QWebPage::extension): 11719 * Api/qwebpage.h: 11720 * Api/qwebpluginfactory.cpp: 11721 (QWebPluginFactory::extension): 11722 11723 2008-04-22 Tor Arne Vestb <tavestbo (a] trolltech.com> 11724 11725 Reviewed by Simon. 11726 11727 Emit loadProgress() signal on loadStarted(). 11728 11729 11730 * WebCoreSupport/FrameLoaderClientQt.cpp: 11731 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification): 11732 11733 2008-04-22 Zack Rusin <zack (a] kde.org> 11734 11735 Reviewed by Simon. 11736 11737 Fix background propagation from the QWebView's palette. 11738 11739 The background brush of the palette needs to be propagated to the WebCore::FrameView. 11740 11741 * Api/qwebframe.cpp: 11742 (QWebFramePrivate::updateBackground): 11743 * Api/qwebframe_p.h: 11744 * Api/qwebpage.cpp: 11745 (QWebPagePrivate::dropEvent): 11746 (QWebPage::setPalette): 11747 * Api/qwebpage.h: 11748 * Api/qwebpage_p.h: 11749 * Api/qwebview.cpp: 11750 (QWebView::page): 11751 (QWebView::changeEvent): 11752 * Api/qwebview.h: 11753 * WebCoreSupport/FrameLoaderClientQt.cpp: 11754 11755 2008-04-22 Benjamin Meyer <bmeyer (a] trolltech.com> 11756 11757 Reviewed by Simon. 11758 11759 Fix maps.google.com 11760 11761 We have to include a version in the Safari tag in the user-agent. 11762 11763 * Api/qwebpage.cpp: 11764 (QWebPage::userAgentForUrl): 11765 11766 2008-04-22 Tor Arne Vestb <tavestbo (a] trolltech.com> 11767 11768 Reviewed by Simon. 11769 11770 Add visual focusing hint for clear button and 11771 change focus to web page after user enters new URL. 11772 11773 * QtLauncher/main.cpp: 11774 (ClearButton::paintEvent): 11775 (MainWindow::changeLocation): 11776 11777 2008-04-22 Simon Hausmann <hausmann (a] webkit.org> 11778 11779 Reviewed by Holger. 11780 11781 Added QWebFrame::hitTestContent() and QWebHitTestResult. 11782 11783 * Api/qwebframe.cpp: 11784 (QWebFrame::hitTestContent): 11785 (QWebFrame::event): 11786 (QWebHitTestResult::QWebHitTestResult): 11787 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 11788 (QWebHitTestResult::operator=): 11789 (QWebHitTestResult::~QWebHitTestResult): 11790 (QWebHitTestResult::isNull): 11791 (QWebHitTestResult::pos): 11792 (QWebHitTestResult::title): 11793 (QWebHitTestResult::linkText): 11794 (QWebHitTestResult::linkUrl): 11795 (QWebHitTestResult::linkTitle): 11796 (QWebHitTestResult::linkTargetFrame): 11797 (QWebHitTestResult::alternateText): 11798 (QWebHitTestResult::imageUrl): 11799 (QWebHitTestResult::pixmap): 11800 (QWebHitTestResult::isContentEditable): 11801 (QWebHitTestResult::isContentSelected): 11802 (QWebHitTestResult::frame): 11803 * Api/qwebframe.h: 11804 * Api/qwebframe_p.h: 11805 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): 11806 * Api/qwebpage.cpp: 11807 (QWebPagePrivate::contextMenuEvent): 11808 (QWebPage::triggerAction): 11809 * Api/qwebpage.h: 11810 * Api/qwebpage_p.h: 11811 11812 2008-04-22 Simon Hausmann <hausmann (a] webkit.org> 11813 11814 Reviewed by Holger. 11815 11816 Don't crash if an input method query is done without a page. 11817 11818 11819 * Api/qwebview.cpp: 11820 (QWebView::inputMethodQuery): 11821 11822 2008-04-22 Simon Hausmann <hausmann (a] webkit.org> 11823 11824 Reviewed by Holger. 11825 11826 Added re-implementations of QObject::event for future safety. 11827 11828 This makes it easier to fix bugs with the event handling even in patch releases 11829 and is a general style we follow in Qt. 11830 11831 11832 * Api/qwebframe.cpp: 11833 * Api/qwebframe.h: 11834 * Api/qwebview.cpp: 11835 (QWebView::event): 11836 * Api/qwebview.h: 11837 11838 2008-04-22 Benjamin Meyer <bmeyer (a] trolltech.com> 11839 11840 Reviewed by Simon. 11841 11842 Fix construction of the user agent. 11843 11844 The user-agent is now composed of 11845 * the platform and subplatform 11846 * the Qt version or application name and version (if set) 11847 * the locale 11848 * the SSL settings 11849 11850 11851 * Api/qwebpage.cpp: 11852 (QWebPage::networkAccessManager): 11853 (QWebPage::setPluginFactory): 11854 (QWebPage::pluginFactory): 11855 (QWebPage::userAgentForUrl): 11856 * QtLauncher/main.cpp: 11857 11858 2008-04-22 Thiago Macieira <tjmaciei (a] trolltech.com> 11859 11860 Reviewed by Simon. 11861 11862 Fixes: Pedantic compilation fix 11863 11864 Don't put semi-colons after braces closing namespaces. 11865 11866 * Api/qwebsettings.h: 11867 11868 2008-04-21 Simon Hausmann <hausmann (a] webkit.org> 11869 11870 Reviewed by Lars. 11871 11872 Changed the return type of QWebFrame::evaluateJavaScript from a QString to a QVariant. 11873 11874 * Api/qwebframe.cpp: 11875 (QWebFrame::evaluateJavaScript): 11876 * Api/qwebframe.h: 11877 11878 2008-04-21 Simon Hausmann <hausmann (a] webkit.org> 11879 11880 Reviewed by Holger. 11881 11882 Fixes redundant "Fonts" submenu in default lineedits that has only disabled items. 11883 11884 Don't show sub-menus that have only actions that are disabled. 11885 11886 * Api/qwebpage.cpp: 11887 (QWebPagePrivate::createContextMenu): 11888 11889 2008-04-21 Kavindra Devi Palaraja <kdpalara (a] trolltech.com>. 11890 11891 Reviewed by Simon. 11892 11893 Lots of documentation fixes, fixed all qdoc warnings. 11894 11895 * Api/qwebframe.cpp: 11896 (QWebFrame::setTextSizeMultiplier): 11897 * Api/qwebhistoryinterface.cpp: 11898 (gCleanupInterface): 11899 (QWebHistoryInterface::QWebHistoryInterface): 11900 (QWebHistoryInterface::~QWebHistoryInterface): 11901 * Api/qwebpage.cpp: 11902 (QWebPage::inputMethodQuery): 11903 (QWebPage::view): 11904 (QWebPage::javaScriptConsoleMessage): 11905 (QWebPage::javaScriptAlert): 11906 (QWebPage::javaScriptConfirm): 11907 (QWebPage::javaScriptPrompt): 11908 (QWebPage::viewportSize): 11909 (QWebPage::acceptNavigationRequest): 11910 (QWebPage::action): 11911 (QWebPage::event): 11912 (QWebPage::focusNextPrevChild): 11913 (QWebPage::setForwardUnsupportedContent): 11914 (QWebPage::setLinkDelegationPolicy): 11915 (QWebPage::findText): 11916 (QWebPage::settings): 11917 (QWebPage::networkProxy): 11918 (QWebPage::setNetworkAccessManager): 11919 * Api/qwebpage.h: 11920 * Api/qwebsettings.cpp: 11921 (QWebSettings::QWebSettings): 11922 (QWebSettings::setIconDatabasePath): 11923 (QWebSettings::iconForUrl): 11924 (QWebSettings::fontFamily): 11925 * Api/qwebview.cpp: 11926 (QWebView::load): 11927 * Api/qwebview.h: 11928 11929 2008-04-21 Marius Bugge Monsen <mmonsen (a] trolltech.com> 11930 11931 Reviewed by Simon. 11932 11933 Fix compile failure on solaris-cc 11934 11935 * Api/qwebpage.h: Removed trailing semicolons and moved the private 11936 d-pointer to not confuse the compiler 11937 11938 2008-04-21 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 11939 11940 Reviewed by Simon. 11941 11942 Build fix for Qt 4.3 11943 11944 * When building WebCore/internal make sure the QT_[BEGIN,END]_NAMESPACE is 11945 always defined. Do this by adding defines to the compiler line 11946 * For users of our API this is not feasible. Every public header file should 11947 include qwebkitglobal.h. Define the QT_BEGIN_NAMESPACE and QT_END_NAMESPACE 11948 when we are building everything < 4.4.0 and don't have them defined. 11949 11950 * Api/qwebkitglobal.h: 11951 11952 2008-04-21 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 11953 11954 Reviewed by Simon. 11955 11956 * Initialize the WebGraphics with the one found in WebCore 11957 11958 11959 * Api/qwebsettings.cpp: 11960 (QWebSettingsPrivate::apply): 11961 11962 2008-04-21 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 11963 11964 Reviewed by Simon. 11965 11966 * Allow TextAreas to be resized. 11967 * No QWebSettings for this is introduced. 11968 11969 11970 * Api/qwebsettings.cpp: 11971 (QWebSettingsPrivate::apply): 11972 11973 2008-04-21 Simon Hausmann <shausman (a] trolltech.com> 11974 11975 Reviewed by Holger. 11976 11977 Fixes: QWebView::url property behaviour strange in designer 11978 11979 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. 11980 11981 * Api/qwebframe.cpp: 11982 (QWebFrame::setUrl): 11983 * Api/qwebframe.h: 11984 * Api/qwebview.cpp: 11985 (QWebView::setUrl): 11986 * Api/qwebview.h: 11987 11988 2008-04-21 Andre Poenitz <andre.poenitz (a] trolltech.com> 11989 11990 Reviewed by Simon Hausmann <hausmann (a] webkit.org>. 11991 11992 Fix compilation with Qt namespaces 11993 11994 * Api/qwebframe.cpp: 11995 (QWebFrame::print): 11996 * Api/qwebview.h: 11997 11998 2008-04-21 Simon Hausmann <hausmann (a] webkit.org> 11999 12000 Reviewed by Holger. 12001 12002 When printing on high resolution printers we need to scale the painter accordingly (for now). 12003 12004 * Api/qwebframe.cpp: 12005 (QWebFrame::print): 12006 12007 2008-04-21 Simon Hausmann <hausmann (a] webkit.org> 12008 12009 Reviewed by Holger. 12010 12011 Provide a print preview in the QtLauncher 12012 12013 * QtLauncher/main.cpp: 12014 (MainWindow::MainWindow): 12015 (MainWindow::showLinkHover): 12016 (MainWindow::print): 12017 12018 2008-04-20 Simon Hausmann <hausmann (a] webkit.org> 12019 12020 Reviewed by Alp Toker. 12021 12022 Share the printing code between the Gtk and the Qt port 12023 and added printing to the Qt WebKit API. 12024 12025 * Api/qwebframe.cpp: 12026 (QWebFrame::print): 12027 * Api/qwebframe.h: 12028 * Api/qwebview.cpp: 12029 (QWebView::print): 12030 * Api/qwebview.h: 12031 12032 2008-04-19 Julien Chaffraix <jchaffraix (a] webkit.org> 12033 12034 Qt build fix (renderer() -> contentRenderer()). 12035 12036 * Api/qwebframe.cpp: 12037 (QWebFrame::renderTreeDump): 12038 (QWebFrame::render): 12039 12040 2008-04-18 Simon Hausmann <hausmann (a] webkit.org> 12041 12042 Reviewed by Holger. 12043 12044 Many API changes and additions after a full review with Jasmin Blanchette <jasmin (a] trolltech.com> 12045 12046 The diff is too big to mention the changes individually, but most of the changes were of cosmetic 12047 nature where methods or enums have been renamed or prefixed/suffixed according to the consistency 12048 rules of the Qt API. 12049 12050 * Api/qwebframe.cpp: 12051 (QWebFrame::addToJavaScriptWindowObject): 12052 (QWebFrame::toHtml): 12053 (QWebFrame::toPlainText): 12054 (QWebFrame::icon): 12055 (QWebFrame::setContent): 12056 (QWebFrame::setScrollBarPolicy): 12057 (QWebFrame::render): 12058 (QWebFrame::setTextSizeMultiplier): 12059 (QWebFrame::textSizeMultiplier): 12060 (QWebFrame::pos): 12061 * Api/qwebframe.h: 12062 * Api/qwebhistory.cpp: 12063 * Api/qwebhistory.h: 12064 * Api/qwebpage.cpp: 12065 (QWebPagePrivate::QWebPagePrivate): 12066 (QWebPagePrivate::~QWebPagePrivate): 12067 (QWebPagePrivate::acceptNavigationRequest): 12068 (webActionForContextMenuAction): 12069 (QWebPagePrivate::updateAction): 12070 (QWebPagePrivate::keyPressEvent): 12071 (QWebPage::view): 12072 (QWebPage::javaScriptPrompt): 12073 (QWebPage::createWindow): 12074 (QWebPage::triggerAction): 12075 (QWebPage::setViewportSize): 12076 (QWebPage::acceptNavigationRequest): 12077 (QWebPage::action): 12078 (QWebPage::focusNextPrevChild): 12079 (QWebPage::setForwardUnsupportedContent): 12080 (QWebPage::forwardUnsupportedContent): 12081 (QWebPage::setLinkDelegationPolicy): 12082 (QWebPage::findText): 12083 (QWebPage::networkAccessManager): 12084 (QWebPageContext::imageUrl): 12085 (QWebPageContext::image): 12086 * Api/qwebpage.h: 12087 * Api/qwebpage_p.h: 12088 * Api/qwebsettings.cpp: 12089 (QWebSettingsPrivate::apply): 12090 (QWebSettings::QWebSettings): 12091 (QWebSettings::setIconDatabasePath): 12092 (QWebSettings::iconDatabasePath): 12093 (QWebSettings::clearIconDatabase): 12094 (QWebSettings::iconForUrl): 12095 (QWebSettings::setWebGraphic): 12096 (QWebSettings::fontFamily): 12097 (QWebSettings::setAttribute): 12098 (QWebSettings::testAttribute): 12099 (QWebSettings::resetAttribute): 12100 * Api/qwebsettings.h: 12101 * Api/qwebview.cpp: 12102 (QWebView::setPage): 12103 (QWebView::icon): 12104 (QWebView::setTextSizeMultiplier): 12105 (QWebView::textSizeMultiplier): 12106 (QWebView::findText): 12107 (QWebView::reload): 12108 (QWebView::mouseMoveEvent): 12109 * Api/qwebview.h: 12110 * QtLauncher/main.cpp: 12111 (MainWindow::MainWindow): 12112 (main): 12113 * WebCoreSupport/ChromeClientQt.cpp: 12114 (WebCore::ChromeClientQt::ChromeClientQt): 12115 (WebCore::ChromeClientQt::setWindowRect): 12116 (WebCore::ChromeClientQt::toolbarsVisible): 12117 (WebCore::ChromeClientQt::setStatusbarVisible): 12118 (WebCore::ChromeClientQt::statusbarVisible): 12119 (WebCore::ChromeClientQt::setScrollbarsVisible): 12120 (WebCore::ChromeClientQt::setResizable): 12121 (WebCore::ChromeClientQt::scrollBackingStore): 12122 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 12123 (WebCore::ChromeClientQt::setToolTip): 12124 * WebCoreSupport/ChromeClientQt.h: 12125 * WebCoreSupport/FrameLoaderClientQt.cpp: 12126 (WebCore::FrameLoaderClientQt::setFrame): 12127 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation): 12128 (WebCore::FrameLoaderClientQt::setMainDocumentError): 12129 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 12130 (WebCore::FrameLoaderClientQt::createFrame): 12131 (WebCore::FrameLoaderClientQt::objectContentType): 12132 * WebCoreSupport/FrameLoaderClientQt.h: 12133 * WebCoreSupport/InspectorClientQt.cpp: 12134 12135 2008-04-18 Simon Hausmann <hausmann (a] webkit.org> 12136 12137 Reviewed by Holger. 12138 12139 Added QWebView::find/QWebFrame::find. 12140 12141 * Api/qwebpage.cpp: 12142 (QWebPage::focusNextPrevChild): 12143 (QWebPage::find): 12144 * Api/qwebpage.h: 12145 * Api/qwebview.cpp: 12146 (QWebView::find): 12147 * Api/qwebview.h: 12148 12149 2008-04-15 Ariya Hidayat <ariya.hidayat (a] trolltech.com> 12150 12151 Reviewed by Simon. 12152 12153 fix potential crash when loading image(s) 12154 12155 Crash may occur. If compiled with 4.3, the variable is not initialized. 12156 This fix solves https://bugs.webkit.org/show_bug.cgi?id=17174 12157 12158 * Api/qwebpage.cpp: 12159 (QWebPagePrivate::QWebPagePrivate): 12160 12161 2008-04-15 Simon Hausmann <hausmann (a] webkit.org> 12162 12163 Reviewed by Holger. 12164 12165 Update the micro focus for input methods as soon as the composition mode changes 12166 or the caret/selection changes. 12167 12168 12169 * Api/qwebpage.cpp: 12170 * Api/qwebpage.h: 12171 * Api/qwebview.cpp: 12172 (QWebView::setPage): 12173 * WebCoreSupport/EditorClientQt.cpp: 12174 (WebCore::EditorClientQt::respondToChangedSelection): 12175 (WebCore::EditorClientQt::setInputMethodState): 12176 12177 2008-04-15 Simon Hausmann <hausmann (a] webkit.org> 12178 12179 Reviewed by Holger. 12180 12181 Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application, 12182 it yields undefined behaviour or wrong default codec initialization. 12183 12184 12185 * QtLauncher/main.cpp: 12186 (WebPage::createWindow): 12187 12188 2008-04-15 Olivier Goffart <ogoffart (a] trolltech.com> 12189 12190 Reviewed by Simon. 12191 12192 Fixes: copy to clipboard when selecting, and paste when clicking with the middle button 12193 12194 * Api/qwebpage.cpp: 12195 (QWebPagePrivate::mouseReleaseEvent): If the clipboard supports 12196 selections then we support copy & paste into the selection. 12197 12198 2008-04-15 Michael Brasser <michael.brasser (a] trolltech.com> 12199 12200 Reviewed by Simon. 12201 12202 Add basic input method support. 12203 12204 12205 * Api/qwebpage.cpp: 12206 (QWebPagePrivate::dropEvent): 12207 (QWebPagePrivate::inputMethodEvent): 12208 (QWebPage::inputMethodQuery): 12209 (QWebPage::event): 12210 * Api/qwebpage.h: 12211 * Api/qwebpage_p.h: 12212 * Api/qwebview.cpp: 12213 (QWebView::QWebView): 12214 (QWebView::inputMethodQuery): 12215 (QWebView::inputMethodEvent): 12216 * Api/qwebview.h: 12217 * WebCoreSupport/EditorClientQt.cpp: 12218 (WebCore::EditorClientQt::setInputMethodState): 12219 12220 2008-04-15 Simon Hausmann <hausmann (a] webkit.org> 12221 12222 Reviewed by Holger. 12223 12224 Added (QWebFrame|QWebView)::textZoomFactor. 12225 12226 12227 * Api/qwebframe.cpp: 12228 (QWebFrame::setTextZoomFactor): 12229 (QWebFrame::textZoomFactor): 12230 * Api/qwebframe.h: 12231 * Api/qwebview.cpp: 12232 (QWebView::setTextZoomFactor): 12233 (QWebView::textZoomFactor): 12234 * Api/qwebview.h: 12235 12236 2008-04-15 Michael Brasser <michael.brasser (a] trolltech.com> 12237 12238 Reviewed by Simon. 12239 12240 Added simple scrolling API to QWebFrame. 12241 12242 The intent is that it works similar to QAbstractScrollArea. 12243 12244 12245 * Api/qwebframe.cpp: 12246 (QWebFrame::setScrollBarValue): 12247 (QWebFrame::scrollBarValue): 12248 (QWebFrame::scrollBarMaximum): 12249 (QWebFrame::scrollBarMinimum): 12250 * Api/qwebframe.h: 12251 12252 2008-04-15 Olivier Goffart <ogoffart (a] trolltech.com> 12253 12254 Reviewed by Holger. 12255 12256 Fixes: implement the OpenFrameInNewWindow action. 12257 12258 12259 * Api/qwebpage.cpp: 12260 (QWebPage::triggerAction): 12261 12262 2008-04-15 Andre Poenitz <andre.poenitz (a] trolltech.com> 12263 12264 Reviewed by Simon. 12265 12266 Fix compilation with Qt namespaces 12267 12268 Qt can be configured to have all of its classes inside a specified namespaces. 12269 This is for example used in plugin/component environments like Eclipse. 12270 12271 This change makes it possible to let the Qt port compile against a namespaced 12272 Qt by the use of macros Qt provides to properly forward declare Qt classes in 12273 the namespace. 12274 12275 * Api/qwebframe.h: 12276 * Api/qwebpage.h: 12277 * Api/qwebpage_p.h: 12278 * Api/qwebpluginfactory.h: 12279 * Api/qwebsettings.h: 12280 * Api/qwebview.h: 12281 12282 2008-04-05 Olivier Goffart <ogoffart (a] trolltech.com> 12283 12284 Reviewed by Holger. 12285 12286 Fixes: Right clicking an image and choosing "copy image" doesnt put anything in the clipboard. 12287 12288 12289 * Api/qwebpage.cpp: 12290 (QWebPage::triggerAction): 12291 12292 2008-04-05 Olivier Goffart <ogoffart (a] trolltech.com> 12293 12294 Reviewed by Simon. 12295 12296 Fixes: Right click, and "Open image" open the link instead of the image. 12297 12298 12299 * Api/qwebpage.cpp: 12300 12301 2008-04-05 Benjamin Meyer <bmeyer (a] trolltech.com> 12302 12303 Reviewed by Simon. 12304 12305 Added doc stub for QWebSettings so class docs are generated 12306 12307 12308 * Api/qwebsettings.cpp: 12309 (QWebSettings::QWebSettings): 12310 12311 2008-04-05 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12312 12313 Reviewed by Simon. 12314 12315 * Propose the addition of updateRequest and scrollRequest to the QWebPage. 12316 12317 * The question is if these signals belong to QWebPage or QWebFrame. 12318 -It is more easy to have them in QWebPage because ScrollView is invoking 12319 the ChromeClient with the right coordinates 12320 -On the other hand someone wants to render frames separately. But this is partly 12321 doomed as you can have overlapping frames and what you paint would not relate to 12322 what you normally see on webpages. 12323 12324 12325 * Api/qwebpage.cpp: 12326 * Api/qwebpage.h: 12327 * WebCoreSupport/ChromeClientQt.cpp: 12328 (WebCore::ChromeClientQt::scrollBackingStore): 12329 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 12330 12331 2008-04-03 Simon Hausmann <hausmann (a] webkit.org> 12332 12333 Reviewed by Mark Rowe. 12334 12335 Roll out r31599 and r31605 again after discussion with Mark Rowe. 12336 12337 * Api/qwebframe.cpp: 12338 (QWebFrame::icon): 12339 * Api/qwebsettings.cpp: 12340 (QWebSettings::iconForUrl): 12341 12342 2008-04-03 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12343 12344 Reviewed by Simon. 12345 12346 * Change IconDatabase::iconForPageURL to return more information. E.g. if 12347 an image has been found, or if the loading of an image has been scheduled. 12348 * Update FrameLoader to use another method to trigger reading from disk 12349 * Update the QWebFrame and QWebSettings 12350 12351 * Api/qwebframe.cpp: 12352 (QWebFrame::icon): 12353 * Api/qwebsettings.cpp: 12354 (QWebSettings::iconForUrl): 12355 12356 2008-04-03 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12357 12358 Reviewed by Simon. 12359 12360 * Safari is using the IconDatabase the following way (assumption). Before they 12361 call iconDatabase()->open they "retain" all URLs they are interested in, these 12362 could come from the history. 12363 * When opening the iconDatabase() a thread will be started that is going to import 12364 the URLs, all none manually retained URLs are scheduled for removal. The removal 12365 is going to happen when the next icon gets stored in the database. 12366 * We do not have any IconDatabase code, we can not retain the URLs before opening the 12367 database. To disable the automatic pruning of the icons we will ask the IconDatabase 12368 to delay this operation. This means our IconDatabase, when used, will grow, so we should 12369 try to have a IconDatabase class in 4.4. 12370 * The only way to counter the growth is a call to QWebSettings::clearIconDatabase 12371 12372 12373 * Api/qwebsettings.cpp: 12374 (QWebSettings::clearIconDatabase): 12375 * Api/qwebsettings.h: 12376 12377 2008-04-03 Benjamin Meyer <bmeyer (a] trolltech.com> 12378 12379 Reviewed by Simon. 12380 12381 Add a way to get the site icon for a url 12382 static QPixmap iconForUrl(const QUrl &url); 12383 12384 12385 * Api/qwebsettings.cpp: 12386 (QWebSettings::iconForUrl): 12387 * Api/qwebsettings.h: 12388 12389 2008-04-03 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12390 12391 Reviewed by Simon. 12392 12393 * Update the Copyright info in QWebSettings 12394 12395 12396 * Api/qwebsettings.cpp: 12397 * Api/qwebsettings.h: 12398 12399 2008-04-03 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12400 12401 Reviewed by Simon. 12402 12403 * The isEmpty check is not needed anymore with the earlier backport 12404 12405 12406 * Api/qwebframe.cpp: 12407 (QWebFrame::icon): 12408 12409 2008-04-03 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12410 12411 Reviewed by Simon. 12412 12413 * For the http tests we need the output of the FrameLoaderClient. The QtWebKit API 12414 is not exporting enough to create the output in DRT itself. Settle with the approach 12415 Lars has taken for the Editing support and add branches to our FrameLoaderClient code. 12416 * run-webkit-tests http/tests(/loading) can now be executed. 12417 * For tests in loading/ directories we are going to throw away the dirty 12418 QWebPage to start with something clean. 12419 12420 12421 * WebCoreSupport/FrameLoaderClientQt.cpp: 12422 (qt_dump_frame_loader): 12423 (drtDescriptionSuitableForTestResult): 12424 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad): 12425 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect): 12426 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect): 12427 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage): 12428 (WebCore::FrameLoaderClientQt::dispatchWillClose): 12429 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad): 12430 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle): 12431 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad): 12432 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): 12433 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 12434 (WebCore::FrameLoaderClientQt::registerForIconNotification): 12435 (WebCore::FrameLoaderClientQt::setMainDocumentError): 12436 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 12437 12438 2008-04-02 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12439 12440 Reviewed by Simon. 12441 12442 * Export the PageCache and Cache capacity call one to one. This is only there 12443 to allow the QtLauncher to play with caching. 12444 * TODO: make API decisions and consider following the windows Api to set a WebCacheModel 12445 and determine certain values automatically. 12446 12447 12448 * Api/qwebsettings.cpp: 12449 (QWebSettings::setPageCacheCapacity): 12450 (QWebSettings::setObjectCacheCapacities): 12451 * Api/qwebsettings.h: 12452 * QtLauncher/main.cpp: 12453 12454 2008-04-02 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12455 12456 Reviewed by Simon. 12457 12458 Prepapre everything for enabling the PageCache for the Qt Platform: 12459 * Claim that we can cache pages 12460 * Create the FrameView FrameLoaderClientQt::transitionToCommittedForNewPage using 12461 the initial size of the viewport and stop creating it in the QWebFramePrivate::init 12462 12463 Differences to the Windows port: 12464 * attachToWindow/detachFromWindow is not called and is not (yet) part 12465 of Widget/ScrollView of the Qt platform. We might need that for plugin 12466 support in the future. 12467 * We store the margin's and scrolling flag inside QWebFrame and use it when 12468 creating the FrameView. 12469 12470 What is missing: 12471 * API to call pageCache()->setCapacity(XYZ); 12472 12473 12474 * Api/qwebframe.cpp: 12475 (QWebFramePrivate::init): 12476 * Api/qwebframe_p.h: 12477 (QWebFramePrivate::QWebFramePrivate): 12478 * Api/qwebpage.cpp: 12479 (QWebPagePrivate::createMainFrame): 12480 * WebCoreSupport/FrameLoaderClientQt.cpp: 12481 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 12482 (WebCore::FrameLoaderClientQt::blockedError): 12483 12484 2008-04-02 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12485 12486 Reviewed by Simon. 12487 12488 * For the PageCache support we do not want to create a FrameView in the constructor 12489 of QWebFrame. In QWegPage::viewportSize() we currently call mainFrame() and that will 12490 create a QWebFrame if no mainFrame is present and this gets called when we try to 12491 create a FrameView... 12492 * Keep a copy of the initial viewportSize around and use it if we do not have a Frame 12493 or FrameView. 12494 12495 12496 * Api/qwebpage.cpp: 12497 (QWebPagePrivate::QWebPagePrivate): 12498 (QWebPage::triggerAction): 12499 * Api/qwebpage_p.h: 12500 12501 2008-04-02 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12502 12503 Reviewed by Simon. 12504 12505 * Always return true in FrameLoaderClientQt::shouldGoToHistoryItem, like the windows port 12506 12507 * WebCoreSupport/FrameLoaderClientQt.cpp: 12508 (WebCore::): 12509 12510 2008-04-02 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12511 12512 Reviewed by Simon. 12513 12514 * Attempt to make the m_webFrame null pointer checking consistent. Always check for 12515 m_webFrame. It should get set by the QWebFrame with the FramerLoaderClientQt::setFrame 12516 call and should stay valid until the destruction of the QWebFrame. 12517 * Currently the same checking is not needed for m_frame as it will only set to 0 in 12518 FrameLoaderClientQt::frameLoaderDestroyed and should be not 0 because of the setFrame 12519 initialisation. 12520 12521 12522 * WebCoreSupport/FrameLoaderClientQt.cpp: 12523 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle): 12524 (WebCore::FrameLoaderClientQt::setMainDocumentError): 12525 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength): 12526 (WebCore::FrameLoaderClientQt::objectContentType): 12527 (WebCore::FrameLoaderClientQt::createPlugin): 12528 12529 2008-04-01 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12530 12531 Reviewed by Simon. 12532 12533 * Get the RefCounting of WebCore::Frame right and make sure that both QWebFrame 12534 and WebCore::Frame get destroyed if we leave site with subframes and on the 12535 end of the application. 12536 * Use adoptRef in FrameLoaderClientQt::createFrame to get the refs right for subframes. We 12537 do not want to add an extra reference. Without this we are leaking subframes. 12538 * Assume that the lifetime of a Frame and FrameLoader are the same, when the Frame is gone 12539 we want to destroy the QWebFrame (e.g. on a page with subframes). Add delete m_webFrame 12540 in the frameLoaderDestroyed method to do that. 12541 * If we happen to delete the QWebFrame before the FrameLoaderClientQt we set m_webFrame to 12542 zero in the FrameLoaderClientQt to avoid bad things. 12543 12544 12545 * Api/qwebframe.cpp: 12546 (QWebFrame::~QWebFrame): 12547 * WebCoreSupport/FrameLoaderClientQt.cpp: 12548 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem): 12549 (WebCore::FrameLoaderClientQt::objectContentType): 12550 * WebCoreSupport/FrameLoaderClientQt.h: 12551 12552 2008-04-01 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12553 12554 Reviewed by Simon. 12555 12556 * Do not save a RefPtr to the frame. The FrameLoaderClient, Frame and 12557 QWebFrame should have the same lifetime everything else is a leak 12558 or issue. 12559 12560 * Api/qwebframe.cpp: 12561 (QWebFramePrivate::init): 12562 * Api/qwebframe_p.h: 12563 * WebCoreSupport/FrameLoaderClientQt.cpp: 12564 12565 2008-04-01 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12566 12567 Reviewed by Simon. 12568 12569 * Do not store the QWebFrame associated with a ScrollView/FrameView 12570 in the WebCore::Widget. 12571 * Instead of asking the Widget for the QWebFrame use the QWebFramePrivate::core 12572 and QWebFramePrivate::kit function to convert from and to QWebFrame. 12573 12574 12575 * Api/qwebframe.cpp: 12576 (QWebFramePrivate::init): 12577 * Api/qwebpage.cpp: 12578 (QWebPagePrivate::createMainFrame): 12579 12580 2008-04-01 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12581 12582 Reviewed by Simon. 12583 12584 * Do not store the FrameView in the QWebFrame and cope with the situation when 12585 a WebCore::Frame has no WebCore::FrameView. 12586 12587 12588 * Api/qwebframe.cpp: 12589 (QWebFramePrivate::init): 12590 (QWebFramePrivate::horizontalScrollBar): 12591 (QWebFramePrivate::verticalScrollBar): 12592 (QWebFrame::innerText): 12593 (QWebFrame::renderTreeDump): 12594 (QWebFrame::setVerticalScrollBarPolicy): 12595 (QWebFrame::setHorizontalScrollBarPolicy): 12596 (QWebFrame::render): 12597 (QWebFrame::layout): 12598 (QWebFrame::pos): 12599 * Api/qwebframe_p.h: 12600 (QWebFramePrivate::QWebFramePrivate): 12601 * Api/qwebpage.cpp: 12602 (QWebPagePrivate::updateEditorActions): 12603 (QWebPagePrivate::mouseMoveEvent): 12604 (QWebPagePrivate::mousePressEvent): 12605 (QWebPagePrivate::mouseDoubleClickEvent): 12606 (QWebPagePrivate::contextMenuEvent): 12607 (QWebPagePrivate::wheelEvent): 12608 (QWebPage::triggerAction): 12609 * WebCoreSupport/FrameLoaderClientQt.cpp: 12610 12611 2008-04-01 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12612 12613 Reviewed by Simon. 12614 12615 * Change the order of the methods to match with the FrameLoaderClient.h to ease 12616 removing methods in the future. 12617 12618 * WebCoreSupport/FrameLoaderClientQt.h: 12619 12620 2008-04-01 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12621 12622 Reviewed by Simon. 12623 12624 * Remove virtuals in the FrameLoaderClientQt that don't exist in the base class. 12625 12626 * WebCoreSupport/FrameLoaderClientQt.cpp: 12627 (WebCore::FrameLoaderClientQt::detachedFromParent4): 12628 * WebCoreSupport/FrameLoaderClientQt.h: 12629 12630 2008-03-25 Brady Eidson <beidson (a] apple.com> 12631 12632 Reviewed by Darin 12633 12634 Remove newly obsolete FrameLoaderClient methods 12635 12636 * WebCoreSupport/FrameLoaderClientQt.cpp: 12637 * WebCoreSupport/FrameLoaderClientQt.h: 12638 12639 2008-03-22 Mark Rowe <mrowe (a] apple.com> 12640 12641 Qt build fix. 12642 12643 * WebCoreSupport/FrameLoaderClientQt.cpp: 12644 (WebCore::): 12645 12646 2008-03-18 Simon Hausmann <hausmann (a] webkit.org> 12647 12648 Reviewed by Holger. 12649 12650 Fix the Qt build. Don't return void in non-void functions. 12651 12652 * Api/qwebpluginfactory.cpp: 12653 (QWebPluginFactory::extension): 12654 12655 2008-03-16 Thiago Macieira <thiago.macieira (a] trolltech.com> 12656 12657 Reviewed by Simon. 12658 12659 Don't use RefPtr in classes you haven't seen the implementation of. 12660 12661 Forward-declaration and declaration of RefPtr<Foo> is ok. But you 12662 cannot *use* said objects until Foo is defined. This is true even for 12663 initialisation with a 0. 12664 12665 Seems the HP aCC compiler is more strict here than gcc. 12666 12667 * Api/qwebframe_p.h: 12668 12669 2008-03-14 Simon Hausmann <hausmann (a] webkit.org> 12670 12671 Fix the Qt build. 12672 12673 * Api/qwebframe.cpp: 12674 (QWebFrame::setHtml): 12675 (QWebFrame::setContent): 12676 12677 2008-03-13 Simon Hausmann <hausmann (a] webkit.org> 12678 12679 Fix the Qt build. 12680 12681 * Api/qwebframe.cpp: 12682 (QWebFrame::addToJSWindowObject): 12683 12684 2008-03-12 Simon Hausmann <hausmann (a] webkit.org> 12685 12686 Fix compilation against Qt 4.3 12687 12688 * Api/qwebpage.cpp: 12689 * Api/qwebpage.h: 12690 * Api/qwebpage_p.h: 12691 12692 2008-03-11 Rodney Dawes <dobey (a] wayofthemonkey.com> 12693 12694 Fix the Qt build. 12695 12696 * WebCoreSupport/FrameLoaderClientQt.cpp: 12697 (FrameLoaderClientQt::CreatePlugin): 12698 12699 2008-03-11 Simon Hausmann <hausmann (a] webkit.org> 12700 12701 Fix the Qt build (silly typo). 12702 12703 * QtLauncher/main.cpp: 12704 (MainWindow::MainWindow): 12705 12706 2008-03-11 Tor Arne Vestb <tavestbo (a] trolltech.com> 12707 12708 Reviewed by Simon. 12709 12710 Moved obscuring progress bar to the lower right corner. 12711 12712 * QtLauncher/main.cpp: 12713 (MainWindow::MainWindow): 12714 (MainWindow::resizeEvent): 12715 12716 2008-03-11 Tor Arne Vestb <tavestbo (a] trolltech.com> 12717 12718 Reviewed by Simon. 12719 12720 Added reload action and grouped stop and reload actions together. 12721 12722 * QtLauncher/main.cpp: 12723 (MainWindow::MainWindow): 12724 12725 2008-03-11 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12726 12727 Reviewed by Simon. 12728 12729 * Set a Icon on the QAction if we have one. 12730 12731 * Api/qwebpage.cpp: 12732 (QWebPage::action): 12733 12734 2008-03-11 Simon Hausmann <hausmann (a] webkit.org> 12735 12736 Fix the Qt build. 12737 12738 * Api/qwebframe.cpp: 12739 (QWebFrame::addToJSWindowObject): 12740 12741 2008-03-07 Simon Hausmann <hausmann (a] webkit.org> 12742 12743 Reviewed by Darin Adler. 12744 12745 Done with Lars. 12746 12747 Replaced the QWebObjectPlugin interfaces with QWebPluginFactory. 12748 12749 * Api/qwebnetworkinterface.cpp: 12750 (QWebNetworkManager::add): 12751 (QWebNetworkManager::cancel): 12752 (QWebNetworkManager::started): 12753 (QWebNetworkManager::data): 12754 (QWebNetworkManager::finished): 12755 * Api/qwebnetworkinterface_p.h: 12756 (QWebNetworkJobPrivate::QWebNetworkJobPrivate): 12757 * Api/qwebobjectplugin.cpp: Removed. 12758 * Api/qwebobjectplugin.h: Removed. 12759 * Api/qwebobjectplugin_p.h: Removed. 12760 * Api/qwebobjectpluginconnector.cpp: Removed. 12761 * Api/qwebobjectpluginconnector.h: Removed. 12762 * Api/qwebpage.cpp: 12763 (QWebPagePrivate::QWebPagePrivate): 12764 (QWebPage::setPluginFactory): 12765 (QWebPage::pluginFactory): 12766 * Api/qwebpage.h: 12767 * Api/qwebpage_p.h: 12768 * Api/qwebpluginfactory.cpp: Added. 12769 (QWebPluginFactory::QWebPluginFactory): 12770 (QWebPluginFactory::~QWebPluginFactory): 12771 (QWebPluginFactory::refreshPlugins): 12772 (QWebPluginFactory::extension): 12773 * Api/qwebpluginfactory.h: Added. 12774 (MimeType::): 12775 * WebCoreSupport/FrameLoaderClientQt.cpp: 12776 (WebCore::FrameLoaderClientQt::objectContentType): 12777 (WebCore::FrameLoaderClientQt::createPlugin): 12778 12779 2008-03-07 Simon Hausmann <hausmann (a] webkit.org> 12780 12781 Fix the Qt build. 12782 12783 * Api/qwebframe.cpp: 12784 12785 2008-03-04 Sam Weinig <sam (a] webkit.org> 12786 12787 Reviewed by Mark Rowe. 12788 12789 - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including 12790 JSDOMWindow.h 12791 12792 * Api/qwebframe.cpp: 12793 (QWebFrame::addToJSWindowObject): 12794 12795 2008-03-04 Mark Rowe <mrowe (a] apple.com> 12796 12797 Another go at fixing the Qt build. 12798 12799 * Api/qwebframe.cpp: 12800 (QWebFrame::addToJSWindowObject): 12801 12802 2008-02-24 Darin Adler <darin (a] apple.com> 12803 12804 Reviewed by Sam. 12805 12806 - remove separate client calls for "standard" and "reload' history 12807 12808 * WebCoreSupport/FrameLoaderClientQt.cpp: 12809 (WebCore::FrameLoaderClientQt::updateGlobalHistory): 12810 * WebCoreSupport/FrameLoaderClientQt.h: 12811 12812 2008-02-24 Darin Adler <darin (a] apple.com> 12813 12814 - another try at fixing the build 12815 12816 * Api/qwebframe.cpp: 12817 (QWebFrame::load): Replace new FormData with FormData::create. 12818 12819 2008-02-22 Sam Weinig <sam (a] webkit.org> 12820 12821 Fix Qt build. 12822 12823 * Api/qwebhistoryinterface.cpp: 12824 12825 2008-02-22 Sam Weinig <sam (a] webkit.org> 12826 12827 Rubber-stamped by Adam Roben. 12828 12829 Rid the project of the Devil known as DeprecatedString! 12830 12831 * Api/qwebhistory.cpp: 12832 * Api/qwebhistoryinterface.cpp: 12833 12834 2008-02-18 Darin Adler <darin (a] apple.com> 12835 12836 Reviewed by Sam. 12837 12838 * Api/qwebnetworkinterface.cpp: 12839 (QWebNetworkRequestPrivate::init): Removed use of DeprecatedString. 12840 12841 2008-01-24 David Boddie <dboddie (a] trolltech.com> 12842 12843 Reviewed by Simon. 12844 12845 Documentation tidying. 12846 12847 12848 * Api/qwebframe.cpp: 12849 * Api/qwebhistoryinterface.cpp: 12850 * Api/qwebview.cpp: 12851 12852 2008-01-24 Jarek Kobus <jkobus (a] trolltech.com> 12853 12854 Reviewed by Simon. 12855 12856 Text for translations were used wrongly as comments 12857 12858 12859 * WebCoreSupport/FrameLoaderClientQt.cpp: 12860 (WebCore::): 12861 (WebCore::FrameLoaderClientQt::cannotShowURLError): 12862 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 12863 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError): 12864 (WebCore::FrameLoaderClientQt::fileDoesNotExistError): 12865 (WebCore::FrameLoaderClientQt::shouldFallBack): 12866 12867 2008-01-24 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12868 12869 Reviewed by Simon. 12870 12871 * We have a KURL->QUrl conversion on KURL itself, make use of it. 12872 * This conversion is supposed to be loss-free 12873 12874 12875 * Api/qwebframe.cpp: 12876 12877 2008-01-23 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 12878 12879 * Rubber stamped by Simon 12880 12881 * Fix leaking of sub frames (WebCore::Frame). We keep one reference too many. 12882 This was found while working on the page-cache, other ports are not affected. 12883 12884 * WebCoreSupport/FrameLoaderClientQt.cpp: 12885 (WebCore::FrameLoaderClientQt::createFrame): 12886 12887 2008-01-23 Rohan McGovern <rohan.mcgovern (a] trolltech.com> 12888 12889 Reviewed by Simon Hausmann <hausmann (a] webkit.org>. 12890 12891 Fix Qtopia compilation with QT_NO_TOOLTIP 12892 12893 12894 * WebCoreSupport/ChromeClientQt.cpp: 12895 (WebCore::ChromeClientQt::print): 12896 12897 2008-01-23 Geir Vattekar <gvatteka (a] trolltech.com> 12898 12899 Reviewed by Simon. 12900 12901 Doc: Replaced \code with snippets in the docs 12902 12903 12904 * Api/qwebview.cpp: 12905 12906 2008-01-23 Benjamin Meyer <bmeyer (a] trolltech.com> 12907 12908 Reviewed by Simon. 12909 12910 Tweak key presses even to match commonly expected behavior 12911 - space key == page down 12912 - page down moved down not a page, but slightly less then a page so you don't loose your spot when reading. 12913 - Use font height rather then a hard coded "10" for left, right, up, down 12914 - Ctrl-Up moves to the top of the page 12915 - Ctrl-Down move to the bottom of the page 12916 - Backspace == GoBack 12917 - Shift-Backspace == GoForward 12918 12919 12920 * Api/qwebpage.cpp: 12921 (dropActionToDragOp): 12922 (dragOpToDropAction): 12923 (QWebPagePrivate::keyPressEvent): 12924 12925 2008-01-23 Simon Hausmann <hausmann (a] webkit.org> 12926 12927 Reviewed by Lars. 12928 12929 Implemented FrameLoaderClient::startDownload() and FrameLoaderClient::download(). 12930 12931 Added two signals to QWebPage to handle downloading of links and handling of 12932 unsupported content. 12933 12934 12935 * Api/qwebpage.cpp: 12936 (QWebPage::triggerAction): 12937 * Api/qwebpage.h: 12938 * WebCoreSupport/FrameLoaderClientQt.cpp: 12939 (WebCore::FrameLoaderClientQt::download): 12940 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest): 12941 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 12942 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 12943 (WebCore::FrameLoaderClientQt::willUseArchive): 12944 12945 2008-01-22 Lars Knoll <lars (a] trolltech.com> 12946 12947 Reviewed by Simon. 12948 12949 setup a family for cursive and fantasy fonts as well. 12950 12951 12952 * Api/qwebsettings.cpp: 12953 (QWebSettings::QWebSettings): 12954 12955 2008-01-22 Benjamin Meyer <bmeyer (a] trolltech.com> 12956 12957 Reviewed by Simon. 12958 12959 Implement ChromeClientQt::setToolTip 12960 Implement ChromeClientQt::mouseDidMoveOverElement 12961 12962 12963 * Api/qwebpage.cpp: 12964 * Api/qwebpage_p.h: 12965 * WebCoreSupport/ChromeClientQt.cpp: 12966 (WebCore::ChromeClientQt::ChromeClientQt): 12967 (WebCore::ChromeClientQt::focus): 12968 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 12969 (WebCore::ChromeClientQt::setToolTip): 12970 (WebCore::ChromeClientQt::print): 12971 * WebCoreSupport/ChromeClientQt.h: 12972 12973 2008-01-21 Darin Adler <darin (a] apple.com> 12974 12975 Reviewed by John Sullivan. 12976 12977 - updated for changes to ChromeClient database functions 12978 12979 * WebCoreSupport/ChromeClientQt.cpp: 12980 (WebCore::ChromeClientQt::exceededDatabaseQuota): 12981 * WebCoreSupport/ChromeClientQt.h: 12982 12983 2008-01-21 Benjamin Meyer <bmeyer (a] trolltech.com> 12984 12985 Reviewed by Simon. 12986 12987 Change QWebHistoryInterface::addHistoryEntry() from const to non-const 12988 12989 12990 * Api/qwebhistoryinterface.h: 12991 12992 2008-01-21 Adam Treat <adam.treat (a] torchmobile.com> 12993 12994 Reviewed by Simon. 12995 12996 * Don't leak the d-pointer in QWebSettings. 12997 12998 12999 * Api/qwebsettings.cpp: 13000 (QWebSettings::~QWebSettings): 13001 13002 2008-01-21 Simon Hausmann <hausmann (a] webkit.org> 13003 13004 Reviewed by Holger. 13005 13006 Update the WebKit version number from WebKit/win/WebKit.vcproj/VERSION. 13007 13008 This has the fortunate side-effect that gmail sends us sensible HTML/JS again :) 13009 13010 13011 * Api/qwebpage.cpp: 13012 13013 2008-01-21 Simon Hausmann <hausmann (a] webkit.org> 13014 13015 Reviewed by Holger. 13016 13017 Fix focus chain handling and cycling through focusable objects (links) using tab/backtab. 13018 13019 * Fix GraphicsContext::drawFocusRing to also draw single focus rects. 13020 * Implemented QWebPage::focusNextPrevChild by sending fake tab/shift-tab events 13021 and make the return value depend on whether we successfully determined a focusable 13022 node or not. 13023 * Changed QWebView::focusNextPrevChild() to call the base QWidget implementation correctly 13024 if we could not handle the focus chain ourselves. 13025 * Changed the focus policy of QWebView to correctly use WheelFocus instead of ClickFocus. 13026 * Made ChromeClientQt::canTakeFocus() and takeFocus() dummy method since they are only 13027 used to control the situation of stepping out of the focus chain inside the page. 13028 * Made inclusion of links in the focus chain configurable through QWebSettings::LinksIncludedInFocusChain. 13029 The layout tests expect this to be disabled but for the user it seems sensible to have it 13030 on by default, hence the default in qwebsettings.cpp 13031 13032 13033 * Api/qwebpage.cpp: 13034 (QWebPage::focusNextPrevChild): 13035 * Api/qwebsettings.cpp: 13036 (QWebSettings::QWebSettings): 13037 * Api/qwebsettings.h: 13038 * Api/qwebview.cpp: 13039 (QWebView::QWebView): 13040 (QWebView::focusNextPrevChild): 13041 * WebCoreSupport/ChromeClientQt.cpp: 13042 (WebCore::ChromeClientQt::canTakeFocus): 13043 (WebCore::ChromeClientQt::takeFocus): 13044 13045 2008-01-18 Simon Hausmann <hausmann (a] webkit.org> 13046 13047 Reviewed by Holger. 13048 13049 Coding style fixes and added a comment about the include order. 13050 13051 * WebKit_pch.h: 13052 13053 2008-01-18 Marius Storm-Olsen <marius (a] trolltech.com> 13054 13055 Reviewed by Simon Hausmann <hausmann (a] webkit.org>. 13056 13057 Add use of precompiled header, when building inside Qt. 13058 13059 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. 13060 13061 13062 * WebKit_pch.h: Added. 13063 13064 2008-01-18 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 13065 13066 Reviewed by Simon. 13067 13068 * Ask the WebCore::IconDatabase only if our URL is not empty. Otherwise 13069 we will see a crash in a HashSet. 13070 * It is crashing there because the StringImpl of an empty String is 0. 13071 * We avoid this crash by checking for isEmpty() in WebKit as there is no 13072 use to ask the iconDatabase for an empty string. We will fallback to the 13073 defaultIcon. 13074 13075 13076 * Api/qwebframe.cpp: 13077 (QWebFrame::icon): 13078 13079 2008-01-17 Simon Hausmann <hausmann (a] webkit.org> 13080 13081 Reviewed by Holger. 13082 13083 Minor documentation fixes 13084 13085 13086 * Api/qwebframe.cpp: 13087 * Api/qwebview.cpp: 13088 13089 2008-01-17 Simon Hausmann <shausman (a] trolltech.com> 13090 13091 Reviewed by Lars. 13092 13093 Fix form elements not focusing correctly after the qt widget lost its focus. 13094 13095 When receiving a focus out event notify the focus controller. Otherwise its 13096 m_focusedFrame variable remains unchanged and setFocusedFrame on a focusIn 13097 event shortcuts and doesn't call setActive(true). 13098 13099 13100 * Api/qwebpage.cpp: 13101 13102 2008-01-17 Simon Hausmann <shausman (a] trolltech.com> 13103 13104 Reviewed by Holger. 13105 13106 Lots of updates to the documentation. 13107 13108 13109 * Api/qwebframe.cpp: 13110 * Api/qwebhistory.cpp: 13111 * Api/qwebpage.cpp: 13112 (QWebPagePrivate::dropEvent): 13113 (QWebPage::history): 13114 (openNewWindow): 13115 (QWebPage::triggerAction): 13116 (QWebPage::viewportSize): 13117 (QWebPage::navigationRequested): 13118 (QWebPage::action): 13119 (QWebPage::event): 13120 (QWebPageContext::targetFrame): 13121 * Api/qwebpage.h: 13122 * Api/qwebview.cpp: 13123 13124 2008-01-17 Simon Hausmann <shausman (a] trolltech.com> 13125 13126 Reviewed by Lars. 13127 13128 Added a urlChanged signals to QWebFrame and QWebView. 13129 13130 13131 * Api/qwebframe.cpp: 13132 * Api/qwebframe.h: 13133 * Api/qwebview.cpp: 13134 (QWebView::setPage): 13135 * Api/qwebview.h: 13136 * WebCoreSupport/FrameLoaderClientQt.cpp: 13137 13138 2008-01-17 Simon Hausmann <shausman (a] trolltech.com> 13139 13140 Reviewed by Lars. 13141 13142 Fixed docs and sanity checks in QWebSettings::setIconDatabaseEnabled 13143 13144 13145 * Api/qwebsettings.cpp: 13146 (QWebSettings::setIconDatabaseEnabled): 13147 13148 2008-01-17 Simon Hausmann <shausman (a] trolltech.com> 13149 13150 Reviewed by Lars. 13151 13152 Added QWebView::createWindow() which is forwarded from QWebPage::createWindow() for convenience. 13153 13154 13155 * Api/qwebpage.cpp: 13156 (QWebPage::createWindow): 13157 * Api/qwebview.cpp: 13158 (QWebView::createWindow): 13159 * Api/qwebview.h: 13160 13161 2008-01-17 Lars Knoll <lars (a] trolltech.com> 13162 13163 Reviewed by Lars. 13164 13165 add a 0 pointer check. 13166 13167 Fixes a crash in the demo web browser. 13168 13169 * WebCoreSupport/FrameLoaderClientQt.cpp: 13170 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 13171 13172 2008-01-17 Simon Hausmann <hausmann (a] webkit.org> 13173 13174 Reviewed by Holger. 13175 13176 Fix QWebFrame::title(). 13177 13178 For the titleChanged() signal we use the documentloader's title. For the property we have to use the same 13179 instead of Document::title() as the latter is not trimmed and not suited for a window caption. 13180 13181 13182 * Api/qwebframe.cpp: 13183 (QWebFrame::title): 13184 13185 2008-01-17 Simon Hausmann <hausmann (a] webkit.org> 13186 13187 Reviewed by Maciej, Lars, Holger. 13188 13189 http://bugs.webkit.org/show_bug.cgi?id=16589 13190 13191 Add a document parameter to WebCore::cookies, setCookies and cookiesEnabled. 13192 13193 * Api/qwebnetworkinterface.cpp: 13194 (QWebNetworkRequestPrivate::init): 13195 (QWebNetworkManager::started): 13196 13197 2008-01-17 Warwick Allison <warwick (a] trolltech.com> 13198 13199 Reviewed by Simon Hausmann <hausmann (a] webkit.org>. 13200 13201 Follow QWidget::keyPressEvent advice and call parents. 13202 13203 Without this, Back does not work in Qtopia, for example. 13204 13205 13206 * Api/qwebview.cpp: 13207 (QWebView::keyPressEvent): 13208 (QWebView::keyReleaseEvent): 13209 13210 2008-01-17 Simon Hausmann <hausmann (a] webkit.org> 13211 13212 Reviewed by Lars. 13213 13214 Fix compilation against Qt 4.3 after the recent KURL <> QUrl conversion fixes. 13215 13216 * Api/qwebnetworkinterface.cpp: 13217 (QWebNetworkManager::started): 13218 13219 2008-01-17 Simon Hausmann <shausman (a] trolltech.com> 13220 13221 Reviewed by Holger. 13222 13223 Fix compilation against Qt 4.4 without files that are specific for the Qt 4.3 build. 13224 13225 13226 * Api/qwebframe.cpp: 13227 * Api/qwebpage.cpp: 13228 * WebCoreSupport/FrameLoaderClientQt.cpp: 13229 13230 2008-01-17 Lincoln Ramsay <lincoln.ramsay (a] trolltech.com> 13231 13232 Reviewed by Simon Hausmann <hausmann (a] webkit.org>. 13233 13234 Fixes compilation with QT_NO_DRAGANDDROP 13235 13236 13237 * Api/qwebpage.cpp: 13238 (QWebPage::event): 13239 * Api/qwebview.cpp: 13240 (QWebView::dragEnterEvent): 13241 (QWebView::dragLeaveEvent): 13242 (QWebView::dragMoveEvent): 13243 (QWebView::dropEvent): 13244 13245 2008-01-17 Simon Hausmann <hausmann (a] webkit.org> 13246 13247 Reviewed by Lars. 13248 13249 Fix compilation, removed obsolete privateBrowsingEnabled() method. 13250 13251 * WebCoreSupport/FrameLoaderClientQt.cpp: 13252 13253 2008-01-16 Lars Knoll <lars (a] trolltech.com> 13254 13255 Reviewed by Simon Hausmann <simon.hausmann (a] trolltech.com>. 13256 13257 Removed a whole bunch of notImplemented() warnings. 13258 13259 I don't want to hide the real warnings in lots of things that 13260 I am by now pretty certain we won't need. 13261 13262 13263 * WebCoreSupport/FrameLoaderClientQt.cpp: 13264 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): 13265 (WebCore::FrameLoaderClientQt::canShowMIMEType): 13266 13267 2008-01-16 Simon Hausmann <hausmann (a] webkit.org> 13268 13269 Reviewed by Holger. 13270 13271 Fix crash when bringing up the context menu on maps.google.com. 13272 13273 If the website provides its own context menu then we don't have a ContextMenu pointer. 13274 13275 13276 * Api/qwebpage.cpp: 13277 (QWebPagePrivate::contextMenuEvent): 13278 13279 2008-01-16 Simon Hausmann <hausmann (a] webkit.org> 13280 13281 Reviewed by Holger. 13282 13283 Don't crash when receiving all sorts of events on a default constructed QWebView without a page. 13284 13285 * Api/qwebview.cpp: 13286 (QWebView::mouseMoveEvent): 13287 (QWebView::mousePressEvent): 13288 (QWebView::mouseDoubleClickEvent): 13289 (QWebView::mouseReleaseEvent): 13290 (QWebView::contextMenuEvent): 13291 (QWebView::wheelEvent): 13292 (QWebView::keyPressEvent): 13293 (QWebView::keyReleaseEvent): 13294 (QWebView::focusInEvent): 13295 (QWebView::focusOutEvent): 13296 (QWebView::dragEnterEvent): 13297 (QWebView::dragLeaveEvent): 13298 (QWebView::dragMoveEvent): 13299 (QWebView::dropEvent): 13300 (QWebView::focusNextPrevChild): 13301 13302 2008-01-16 Simon Hausmann <hausmann (a] webkit.org> 13303 13304 Reviewed by Lars. 13305 13306 Made the url property read-write. 13307 13308 * Api/qwebview.h: 13309 13310 2008-01-16 Simon Hausmann <hausmann (a] webkit.org> 13311 13312 Reviewed by Lars. 13313 13314 Don't crash when showing a default initialized QWebView that has no page/frame yet. 13315 13316 * Api/qwebview.cpp: 13317 (QWebView::paintEvent): 13318 13319 2008-01-16 Holger Freyther <holger.freyther (a] trolltech.com> 13320 13321 Reviewed by Simon. 13322 13323 Change hoveringOverLink implementation to have less issues. 13324 13325 * Currently we only compare a pointer. In the worst case we 13326 could delete the Element we have pointed to and a new one 13327 gets the same address. But even if that doesn't happen the 13328 WebCore::Element is mutable and JavaScript could change the 13329 URL, Title or Content. So we have to compare all these three 13330 attributes. 13331 * This does not seem to be a performance impact. 13332 13333 13334 * Api/qwebpage.cpp: 13335 (QWebPagePrivate::mouseMoveEvent): 13336 * Api/qwebpage_p.h: 13337 13338 2008-01-16 Holger Freyther <holger.freyther (a] trolltech.com> 13339 13340 Reviewed by Simon. 13341 13342 * Move the hoverElement from QWebFrame to QWebPage. As it is 13343 only used there. 13344 13345 13346 * Api/qwebframe_p.h: 13347 (QWebFramePrivate::QWebFramePrivate): 13348 * Api/qwebpage.cpp: 13349 (QWebPagePrivate::mouseMoveEvent): 13350 * Api/qwebpage_p.h: 13351 13352 2008-01-16 Holger Freyther <holger.freyther (a] trolltech.com> 13353 13354 Reviewed by Simon. 13355 13356 EventHandler changes/fixes in QWebPage: 13357 -mouse{Press,Move,Release}Event: 13358 Send the event always to the mainFrame of the QWebPage. 13359 13360 -contextMenuEvent, key{Press,Release}Event: 13361 Send the event to the focused frame. 13362 13363 This is following the Windows port and fixes a issue with the 13364 Web Inspector where we were sending the events to a wrong frame. 13365 13366 It is guaranteed that the mainFrame will always have an eventHandler 13367 and frameView set. There is no need to check for this in QWebPage. 13368 13369 13370 * Api/qwebframe.cpp: 13371 (QWebFramePrivate::init): 13372 * Api/qwebframe_p.h: 13373 (QWebFramePrivate::QWebFramePrivate): 13374 * Api/qwebpage.cpp: 13375 (QWebPagePrivate::updateEditorActions): 13376 (QWebPagePrivate::mouseMoveEvent): 13377 (QWebPagePrivate::mousePressEvent): 13378 (QWebPagePrivate::mouseDoubleClickEvent): 13379 (QWebPagePrivate::mouseReleaseEvent): 13380 (QWebPagePrivate::contextMenuEvent): 13381 (QWebPagePrivate::wheelEvent): 13382 (QWebPagePrivate::keyPressEvent): 13383 (QWebPagePrivate::keyReleaseEvent): 13384 (QWebPagePrivate::focusInEvent): 13385 * Api/qwebpage_p.h: 13386 13387 2008-01-16 Holger Freyther <holger.freyther (a] trolltech.com> 13388 13389 Reviewed by Simon. 13390 13391 * Add core and kit functions to QWebFramePrivate to convert from 13392 QWebFrame to WebCore::Frame and vice versa. 13393 13394 13395 * Api/qwebframe.cpp: 13396 (QWebFramePrivate::core): 13397 (QWebFramePrivate::kit): 13398 * Api/qwebframe.h: 13399 * Api/qwebframe_p.h: 13400 13401 2008-01-16 Lars Knoll <lars (a] trolltech.com> 13402 13403 Reviewed by Simon. 13404 13405 add conversion methods from and to QUrl to KURL. 13406 13407 Use them in the places I found at the moment. Fixes a bug 13408 where form data was encoded twice. 13409 Also fix QWebSettings to take a QUrl for the user style sheet 13410 location. 13411 13412 13413 * Api/qwebframe.cpp: 13414 (QWebFrame::load): 13415 * Api/qwebpage.cpp: 13416 (QWebPage::createPlugin): 13417 (frameLoadRequest): 13418 (QWebPage::triggerAction): 13419 * Api/qwebsettings.cpp: 13420 (QWebSettingsPrivate::apply): 13421 * Api/qwebsettings.h: 13422 * WebCoreSupport/ChromeClientQt.cpp: 13423 (WebCore::ChromeClientQt::createWindow): 13424 (WebCore::ChromeClientQt::show): 13425 13426 2008-01-16 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 13427 13428 Reviewed by Lars. 13429 13430 * Make the InspectorClientView inherit from QWebView instead of QWidget. This 13431 way paintEvent, mouse{Press,Release}Event and other events get forwarded to 13432 the QWebPage/WebInspector automatically. 13433 13434 13435 * WebCoreSupport/InspectorClientQt.cpp: 13436 (WebCore::InspectorClientWebPage::createWindow): 13437 (WebCore::InspectorClientView::InspectorClientView): 13438 13439 2008-01-10 Maciej Stachowiak <mjs (a] apple.com> 13440 13441 Reviewed by Sam. 13442 13443 - remove SecurityOriginData and fold its functionality into SecurityOrigin 13444 13445 * WebCoreSupport/ChromeClientQt.cpp: 13446 (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase): 13447 (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation): 13448 * WebCoreSupport/ChromeClientQt.h: 13449 13450 2008-01-10 Lars Knoll <lars (a] trolltech.com> 13451 13452 Reviewed by Simon. 13453 13454 document QWebHistory 13455 13456 13457 * Api/qwebhistory.cpp: 13458 (QWebHistoryItem::QWebHistoryItem): 13459 (QWebHistoryItem::operator=): 13460 (QWebHistoryItem::~QWebHistoryItem): 13461 (QWebHistoryItem::originalUrl): 13462 (QWebHistoryItem::currentUrl): 13463 (QWebHistoryItem::title): 13464 (QWebHistoryItem::icon): 13465 (QWebHistory::canGoBack): 13466 (QWebHistory::canGoForward): 13467 (QWebHistory::goBack): 13468 (QWebHistory::goForward): 13469 (QWebHistory::goToItem): 13470 * Api/qwebhistory.h: 13471 13472 2008-01-10 Simon Hausmann <hausmann (a] webkit.org> 13473 13474 Reviewed by Lars. 13475 13476 Make the reset() functions not do anything on the default QWebSettings object. 13477 13478 13479 * Api/qwebsettings.cpp: 13480 (QWebSettings::resetFontSize): 13481 (QWebSettings::resetFontFamily): 13482 (QWebSettings::clearAttribute): 13483 13484 2008-01-10 Lars Knoll <lars (a] trolltech.com> 13485 13486 Reviewed by Simon. 13487 13488 rename QWebPageHistory to QWebHistory. 13489 13490 13491 * Api/qwebhistory.cpp: Added. 13492 (QWebHistoryItem::QWebHistoryItem): 13493 (QWebHistoryItem::operator=): 13494 (QWebHistoryItem::~QWebHistoryItem): 13495 (QWebHistoryItem::originalUrl): 13496 (QWebHistoryItem::currentUrl): 13497 (QWebHistoryItem::title): 13498 (QWebHistoryItem::lastVisited): 13499 (QWebHistoryItem::icon): 13500 (QWebHistory::QWebHistory): 13501 (QWebHistory::~QWebHistory): 13502 (QWebHistory::clear): 13503 (QWebHistory::items): 13504 (QWebHistory::backItems): 13505 (QWebHistory::forwardItems): 13506 (QWebHistory::canGoBack): 13507 (QWebHistory::canGoForward): 13508 (QWebHistory::goBack): 13509 (QWebHistory::goForward): 13510 (QWebHistory::goToItem): 13511 (QWebHistory::backItem): 13512 (QWebHistory::currentItem): 13513 (QWebHistory::forwardItem): 13514 (QWebHistory::itemAtIndex): 13515 * Api/qwebhistory.h: Added. 13516 * Api/qwebhistory_p.h: Added. 13517 (QWebHistoryItemPrivate::QWebHistoryItemPrivate): 13518 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate): 13519 (QWebHistoryPrivate::QWebHistoryPrivate): 13520 (QWebHistoryPrivate::~QWebHistoryPrivate): 13521 * Api/qwebpage.cpp: 13522 (QWebPagePrivate::QWebPagePrivate): 13523 * Api/qwebpage.h: 13524 * Api/qwebpage_p.h: 13525 * Api/qwebpagehistory.cpp: Removed. 13526 * Api/qwebpagehistory.h: Removed. 13527 * Api/qwebpagehistory_p.h: Removed. 13528 * Api/qwebview.cpp: 13529 * Api/qwebview.h: 13530 13531 2008-01-10 Simon Hausmann <hausmann (a] webkit.org> 13532 13533 Reviewed by Lars. 13534 13535 Documentation for QWebSettings 13536 13537 13538 * Api/qwebsettings.cpp: 13539 (QWebSettings::~QWebSettings): 13540 (QWebSettings::setFontSize): 13541 (QWebSettings::resetFontSize): 13542 (QWebSettings::setUserStyleSheetLocation): 13543 (QWebSettings::userStyleSheetLocation): 13544 (QWebSettings::iconDatabaseEnabled): 13545 (QWebSettings::webGraphic): 13546 (QWebSettings::setFontFamily): 13547 (QWebSettings::resetFontFamily): 13548 (QWebSettings::setAttribute): 13549 13550 2008-01-10 Lars Knoll <lars (a] trolltech.com> 13551 13552 Reviewed by Simon. 13553 13554 Document QWebHistoryInterface. 13555 13556 13557 * Api/qwebhistoryinterface.cpp: 13558 (QWebHistoryInterface::defaultInterface): 13559 (QWebHistoryInterface::~QWebHistoryInterface): 13560 13561 2008-01-10 Lars Knoll <lars (a] trolltech.com> 13562 13563 Reviewed by Simon. 13564 13565 Documentation for QWebFrame. 13566 13567 13568 * Api/qwebframe.cpp: 13569 (QWebFrame::url): 13570 (QWebFrame::name): 13571 (QWebFrame::page): 13572 (QWebFrame::setHtml): 13573 (QWebFrame::parentFrame): 13574 (QWebFrame::render): 13575 (QWebFrame::pos): 13576 (QWebFrame::geometry): 13577 * Api/qwebframe.h: 13578 * Api/qwebframe_p.h: 13579 13580 2008-01-10 Lars Knoll <lars (a] trolltech.com> 13581 13582 Reviewed by Simon. 13583 13584 fix the drawing errors that where introduced due to refactoring. 13585 13586 Correctly clip to the rectangle we want to draw in ScrollView::paint(). 13587 13588 13589 * Api/qwebframe.cpp: 13590 (QWebFrame::render): 13591 * Api/qwebframe.h: 13592 * Api/qwebview.cpp: 13593 (QWebView::paintEvent): 13594 * WebCoreSupport/ChromeClientQt.cpp: 13595 (WebCore::ChromeClientQt::scrollBackingStore): 13596 13597 2008-01-10 Simon Hausmann <hausmann (a] webkit.org> 13598 13599 Reviewed by Lars. 13600 13601 Added a whole bunch of docs for QWebPage and fixed some minor doc glitches in QWebView. 13602 13603 13604 * Api/qwebpage.cpp: 13605 (QWebPagePrivate::dropEvent): 13606 (QWebPage::QWebPage): 13607 (QWebPage::~QWebPage): 13608 (QWebPage::mainFrame): 13609 (QWebPage::currentFrame): 13610 (QWebPage::history): 13611 (QWebPage::setView): 13612 (QWebPage::view): 13613 (QWebPage::javaScriptConsoleMessage): 13614 (QWebPage::javaScriptAlert): 13615 (QWebPage::javaScriptConfirm): 13616 (QWebPage::javaScriptPrompt): 13617 (QWebPage::createWindow): 13618 (QWebPage::createModalDialog): 13619 (openNewWindow): 13620 (QWebPage::triggerAction): 13621 (QWebPage::viewportSize): 13622 (QWebPage::navigationRequested): 13623 (QWebPage::selectedText): 13624 (QWebPage::isModified): 13625 (QWebPage::focusNextPrevChild): 13626 (QWebPage::settings): 13627 (QWebPage::networkProxy): 13628 (QWebPage::setNetworkAccessManager): 13629 (QWebPage::networkAccessManager): 13630 (QWebPagePrivate::_q_onLoadProgressChanged): 13631 * Api/qwebview.cpp: 13632 13633 2008-01-07 Holger Freyther <zecke (a] selfish.org> 13634 13635 Reviewed by Alp Toker. 13636 13637 * Qt and Gtk must know if a ContextMenuItem is checkable. Add a new ContextMenuItemType for checkable 13638 actions. 13639 * Use this information in the Gtk platform to create a GtkCheckMenuItem when needed. 13640 * Update the ContextMenuController to accept CheckableActionTypes as well. 13641 * Change ContextMenu.cpp to use the CheckableActionType. The information if a item is checkable 13642 was extracted from ContextMenu::checkOrEnableIfNeeded. 13643 * Update the Qt and Windows port. 13644 13645 * Api/qwebpage.cpp: 13646 (QWebPagePrivate::createContextMenu): 13647 13648 2008-01-07 Simon Hausmann <hausmann (a] webkit.org> 13649 13650 Build fix for the Windows build. MSVC wants to see the full 13651 declaration of arguments even when just passing them through. 13652 13653 * Api/qwebpage.cpp: 13654 13655 2008-01-07 Simon Hausmann <hausmann (a] webkit.org> 13656 13657 Reviewed by Lars. 13658 13659 Added the missing parameters to make it possible to do POST operations from the public API. 13660 13661 This is ugly though as it also requires including qnetworkaccessmanager.h. It would be nicer if the 13662 two extra arguments were in QNetworkRequest :-/ 13663 13664 13665 * Api/qwebframe.cpp: 13666 (QWebFrame::load): 13667 * Api/qwebframe.h: 13668 * Api/qwebview.cpp: 13669 (QWebView::load): 13670 * Api/qwebview.h: 13671 13672 2008-01-07 Simon Hausmann <hausmann (a] webkit.org> 13673 13674 Reviewed by Lars. 13675 13676 Ported of the network backend of the Qt platform to Qt 4.4's new networking API. 13677 13678 13679 * Api/qwebframe.cpp: 13680 (QWebFrame::load): 13681 * Api/qwebframe.h: 13682 * Api/qwebnetworkinterface.cpp: 13683 * Api/qwebnetworkinterface.h: 13684 * Api/qwebnetworkinterface_p.h: 13685 * Api/qwebobjectplugin.cpp: 13686 * Api/qwebobjectplugin.h: 13687 * Api/qwebobjectplugin_p.h: 13688 * Api/qwebobjectpluginconnector.cpp: 13689 * Api/qwebobjectpluginconnector.h: 13690 * Api/qwebpage.cpp: 13691 (QWebPagePrivate::QWebPagePrivate): 13692 (QWebPagePrivate::~QWebPagePrivate): 13693 (QWebPagePrivate::navigationRequested): 13694 (QWebPage::setNetworkInterface): 13695 (QWebPage::networkInterface): 13696 (QWebPage::setNetworkAccessManager): 13697 (QWebPage::networkAccessManager): 13698 * Api/qwebpage.h: 13699 * Api/qwebpage_p.h: 13700 * Api/qwebview.cpp: 13701 * Api/qwebview.h: 13702 * WebCoreSupport/FrameLoaderClientQt.cpp: 13703 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 13704 (WebCore::FrameLoaderClientQt::objectContentType): 13705 (WebCore::FrameLoaderClientQt::createPlugin): 13706 13707 2008-01-07 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 13708 13709 Reviewed by Simon. 13710 13711 * Move the QWebPagePrivate methods up to the other private ones 13712 13713 * Api/qwebpage.cpp: 13714 (dropActionToDragOp): 13715 (dragOpToDropAction): 13716 (QWebPagePrivate::mouseMoveEvent): 13717 (QWebPagePrivate::mousePressEvent): 13718 (QWebPagePrivate::mouseDoubleClickEvent): 13719 (QWebPagePrivate::mouseReleaseEvent): 13720 (QWebPagePrivate::contextMenuEvent): 13721 (QWebPagePrivate::wheelEvent): 13722 (QWebPagePrivate::keyPressEvent): 13723 (QWebPagePrivate::keyReleaseEvent): 13724 (QWebPagePrivate::focusInEvent): 13725 (QWebPagePrivate::focusOutEvent): 13726 (QWebPagePrivate::dragEnterEvent): 13727 (QWebPagePrivate::dragLeaveEvent): 13728 (QWebPagePrivate::dragMoveEvent): 13729 (QWebPagePrivate::dropEvent): 13730 (QWebPage::focusNextPrevChild): 13731 13732 2008-01-07 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 13733 13734 Reviewed by Simon. 13735 13736 * Add reimplemented comments for the methods reimplemented in QWebView and QWebPage. 13737 13738 13739 * Api/qwebpage.cpp: 13740 (dragOpToDropAction): 13741 * Api/qwebview.cpp: 13742 (QWebView::mouseMoveEvent): 13743 (QWebView::mousePressEvent): 13744 (QWebView::mouseDoubleClickEvent): 13745 (QWebView::mouseReleaseEvent): 13746 (QWebView::contextMenuEvent): 13747 (QWebView::keyPressEvent): 13748 (QWebView::keyReleaseEvent): 13749 (QWebView::focusInEvent): 13750 (QWebView::focusOutEvent): 13751 (QWebView::dragEnterEvent): 13752 (QWebView::dragLeaveEvent): 13753 (QWebView::dragMoveEvent): 13754 (QWebView::dropEvent): 13755 13756 2008-01-07 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 13757 13758 Reviewed by Lars. 13759 13760 * This layout is not needed anymore as Widget::invalidateRect will not 13761 draw anymore. 13762 13763 13764 * Api/qwebview.cpp: 13765 (QWebView::paintEvent): 13766 13767 2008-01-04 Lars Knoll <lars (a] trolltech.com> 13768 13769 Reviewed by Simon. 13770 13771 Remove most dependencies of Widget/ScrollView onto native QWidgets. 13772 13773 This also brings the code closer in line with the Windows code. Seems 13774 to work nicely on first try :) 13775 13776 13777 * WebCoreSupport/ChromeClientQt.cpp: 13778 (WebCore::ChromeClientQt::updateBackingStore): 13779 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 13780 (WebCore::ChromeClientQt::setToolTip): 13781 * WebCoreSupport/FrameLoaderClientQt.cpp: 13782 (WebCore::FrameLoaderClientQt::createPlugin): 13783 13784 2008-01-04 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 13785 13786 Reviewed by Simon. 13787 13788 * Remove the todo from QWebPage and move the code to QWebView. 13789 13790 13791 * Api/qwebpage.cpp: 13792 (QWebPagePrivate::wheelEvent): 13793 (QWebPagePrivate::focusInEvent): 13794 * Api/qwebview.cpp: 13795 (QWebView::wheelEvent): 13796 (QWebView::focusInEvent): 13797 13798 2008-01-04 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 13799 13800 Reviewed by Simon. 13801 13802 * Move the various event methods to QWebPagePrivate. This is similar to 13803 QTextControl as well. 13804 13805 13806 * Api/qwebpage.cpp: 13807 (QWebPage::event): 13808 (QWebPagePrivate::mouseMoveEvent): 13809 (QWebPagePrivate::mousePressEvent): 13810 (QWebPagePrivate::mouseDoubleClickEvent): 13811 (QWebPagePrivate::mouseReleaseEvent): 13812 (QWebPagePrivate::contextMenuEvent): 13813 (QWebPagePrivate::wheelEvent): 13814 (QWebPagePrivate::keyPressEvent): 13815 (QWebPagePrivate::keyReleaseEvent): 13816 (QWebPagePrivate::focusInEvent): 13817 (QWebPagePrivate::focusOutEvent): 13818 (QWebPage::focusNextPrevChild): 13819 (QWebPagePrivate::dragEnterEvent): 13820 (QWebPagePrivate::dragLeaveEvent): 13821 (QWebPagePrivate::dragMoveEvent): 13822 (QWebPagePrivate::dropEvent): 13823 * Api/qwebpage.h: 13824 * Api/qwebpage_p.h: 13825 13826 2008-01-04 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 13827 13828 Reviewed by Simon. 13829 13830 * Forward the event from QWebView to QWebPage through QObject::event. This 13831 is similar to the way QTextControl is working. 13832 13833 13834 * Api/qwebpage.cpp: 13835 (dragOpToDropAction): 13836 (QWebPage::event): 13837 * Api/qwebpage.h: 13838 * Api/qwebview.cpp: 13839 (QWebView::mouseMoveEvent): 13840 (QWebView::mousePressEvent): 13841 (QWebView::mouseDoubleClickEvent): 13842 (QWebView::mouseReleaseEvent): 13843 (QWebView::contextMenuEvent): 13844 (QWebView::wheelEvent): 13845 (QWebView::keyPressEvent): 13846 (QWebView::keyReleaseEvent): 13847 (QWebView::focusInEvent): 13848 (QWebView::focusOutEvent): 13849 (QWebView::dragEnterEvent): 13850 (QWebView::dragLeaveEvent): 13851 (QWebView::dragMoveEvent): 13852 (QWebView::dropEvent): 13853 * Api/qwebview.h: 13854 13855 2008-01-04 Lars Knoll <lars (a] trolltech.com> 13856 13857 Reviewed by Simon. 13858 13859 make QWebPage a QObject and get things to compile. 13860 13861 Nothing works currently though. 13862 13863 13864 * Api/qwebobjectpluginconnector.cpp: 13865 * Api/qwebpage.cpp: 13866 (QWebPagePrivate::QWebPagePrivate): 13867 (QWebPagePrivate::createMainFrame): 13868 (QWebPage::QWebPage): 13869 (QWebPage::setView): 13870 (QWebPage::view): 13871 (QWebPage::javaScriptAlert): 13872 (QWebPage::javaScriptPrompt): 13873 (dragOpToDropAction): 13874 (QWebPage::mousePressEvent): 13875 (QWebPage::mouseDoubleClickEvent): 13876 (QWebPage::mouseReleaseEvent): 13877 (QWebPage::wheelEvent): 13878 (QWebPage::keyPressEvent): 13879 (QWebPage::focusInEvent): 13880 * Api/qwebpage.h: 13881 * Api/qwebpage_p.h: 13882 * Api/qwebview.cpp: 13883 (QWebView::QWebView): 13884 (QWebView::setPage): 13885 (QWebView::resizeEvent): 13886 (QWebView::paintEvent): 13887 * Api/qwebview.h: 13888 * WebCoreSupport/ChromeClientQt.cpp: 13889 (WebCore::ChromeClientQt::windowRect): 13890 (WebCore::ChromeClientQt::pageRect): 13891 (WebCore::ChromeClientQt::focus): 13892 (WebCore::ChromeClientQt::unfocus): 13893 (WebCore::ChromeClientQt::canTakeFocus): 13894 (WebCore::ChromeClientQt::takeFocus): 13895 (WebCore::ChromeClientQt::canRunModal): 13896 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 13897 * WebCoreSupport/DragClientQt.cpp: 13898 (WebCore::DragClientQt::startDrag): 13899 * WebCoreSupport/FrameLoaderClientQt.cpp: 13900 (WebCore::FrameLoaderClientQt::createPlugin): 13901 * WebCoreSupport/InspectorClientQt.cpp: 13902 (WebCore::InspectorClientWebPage::createWindow): 13903 (WebCore::InspectorClientView::InspectorClientView): 13904 (WebCore::InspectorClientView::page): 13905 (WebCore::InspectorClientView::hideEvent): 13906 (WebCore::InspectorClientView::closeEvent): 13907 (WebCore::InspectorClientQt::createPage): 13908 (WebCore::InspectorClientQt::closeWindow): 13909 13910 2008-01-04 Simon Hausmann <hausmann (a] webkit.org> 13911 13912 Reviewed by Lars. 13913 13914 Added some preliminary class documentation for QWebView, fixed a missing const() and some missing Q_PROPERTYs 13915 13916 13917 * Api/qwebview.cpp: 13918 (QWebView::setHtml): 13919 (QWebView::setContent): 13920 (QWebView::history): 13921 (QWebView::settings): 13922 (QWebView::action): 13923 (QWebView::triggerAction): 13924 (QWebView::stop): 13925 (QWebView::backward): 13926 (QWebView::forward): 13927 (QWebView::reload): 13928 * Api/qwebview.h: 13929 13930 2008-01-04 Lars Knoll <lars (a] trolltech.com> 13931 13932 Reviewed by Simon. 13933 13934 add a viewportSize to QWebPage. 13935 13936 This is required to eventually make it a QObject only. 13937 13938 13939 * Api/qwebpage.cpp: 13940 (QWebPage::triggerAction): 13941 (QWebPage::viewportSize): 13942 (QWebPage::setViewportSize): 13943 * Api/qwebpage.h: 13944 13945 2008-01-04 Lars Knoll <lars (a] trolltech.com> 13946 13947 Reviewed by Simon. 13948 13949 take a QString as identifier in QWebFrame::addToJSWindowObject. 13950 13951 * Api/qwebframe.cpp: 13952 (QWebFrame::addToJSWindowObject): 13953 * Api/qwebframe.h: 13954 13955 2008-01-04 Simon Hausmann <hausmann (a] webkit.org> 13956 13957 Reviewed by Lars. 13958 13959 Call the frame arguments for the javascript callbacks "originatingFrame" 13960 13961 13962 * Api/qwebpage.h: 13963 13964 2008-01-04 Simon Hausmann <hausmann (a] webkit.org> 13965 13966 Reviewed by Lars. 13967 13968 Moved the QWebPage::addToHistory signal into QWebHistoryInterface 13969 13970 13971 * Api/qwebhistoryinterface.h: 13972 * Api/qwebpage.h: 13973 * WebCoreSupport/FrameLoaderClientQt.cpp: 13974 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad): 13975 13976 2008-01-04 Lars Knoll <lars (a] trolltech.com> 13977 13978 Reviewed by Simon. 13979 13980 moved title(), url(), icon() and initialLayoutComplete() from QWebPage to QWebFrame 13981 13982 * Api/qwebframe.cpp: 13983 (QWebFrame::url): 13984 (QWebFrame::icon): 13985 (QWebFrame::setVerticalScrollBarPolicy): 13986 * Api/qwebframe.h: 13987 * Api/qwebpage.cpp: 13988 (QWebPage::javaScriptAlert): 13989 (QWebPage::javaScriptPrompt): 13990 (QWebPage::networkInterface): 13991 * Api/qwebpage.h: 13992 * Api/qwebview.cpp: 13993 (QWebView::title): 13994 (QWebView::url): 13995 (QWebView::icon): 13996 * WebCoreSupport/FrameLoaderClientQt.cpp: 13997 13998 2008-01-03 Simon Hausmann <hausmann (a] webkit.org> 13999 14000 Reviewed by Lars. 14001 14002 Moved QWebPage::open to QWebFrame::load and added setHtml. 14003 14004 14005 * Api/qwebframe.cpp: 14006 (QWebFrame::load): 14007 (QWebFrame::setHtml): 14008 (QWebFrame::setContent): 14009 * Api/qwebframe.h: 14010 * Api/qwebpage.cpp: 14011 * Api/qwebpage.h: 14012 * Api/qwebview.cpp: 14013 (QWebView::load): 14014 (QWebView::setHtml): 14015 * Api/qwebview.h: 14016 * WebCoreSupport/ChromeClientQt.cpp: 14017 (WebCore::ChromeClientQt::createWindow): 14018 * WebCoreSupport/InspectorClientQt.cpp: 14019 (WebCore::InspectorClientQt::createPage): 14020 14021 2008-01-03 Simon Hausmann <hausmann (a] webkit.org> 14022 14023 Reviewed by Lars. 14024 14025 Added the first revision of QWebView and started moving functionality from QWebPave over to QWebView and QWebFrame. 14026 14027 14028 * Api/headers.pri: 14029 * Api/qwebframe.h: 14030 * Api/qwebpage.cpp: 14031 (QWebPagePrivate::createMainFrame): 14032 * Api/qwebpage.h: 14033 * Api/qwebpagehistory.h: 14034 * Api/qwebview.cpp: Added. 14035 (QWebView::QWebView): 14036 (QWebView::~QWebView): 14037 (QWebView::page): 14038 (QWebView::setPage): 14039 (QWebView::load): 14040 (QWebView::setHtml): 14041 (QWebView::history): 14042 (QWebView::settings): 14043 (QWebView::title): 14044 (QWebView::url): 14045 (QWebView::icon): 14046 (QWebView::selectedText): 14047 (QWebView::action): 14048 (QWebView::triggerAction): 14049 (QWebView::isModified): 14050 (QWebView::textInteractionFlags): 14051 (QWebView::setTextInteractionFlags): 14052 (QWebView::sizeHint): 14053 (QWebView::stop): 14054 (QWebView::backward): 14055 (QWebView::forward): 14056 (QWebView::reload): 14057 * Api/qwebview.h: Added. 14058 * QtLauncher/main.cpp: 14059 (MainWindow::MainWindow): 14060 (MainWindow::webPage): 14061 (MainWindow::changeLocation): 14062 * WebCoreSupport/FrameLoaderClientQt.cpp: 14063 (WebCore::FrameLoaderClientQt::setFrame): 14064 * WebCoreSupport/FrameLoaderClientQt.h: 14065 14066 2007-12-14 Darin Adler <darin (a] apple.com> 14067 14068 Reviewed by Alexey. 14069 14070 * Api/qwebpage.cpp: 14071 (QWebPage::triggerAction): Removed some use of Editor member functions we plan 14072 to eventually eliminate. Switch from Editor::execCommand to Editor::command. 14073 * WebCoreSupport/EditorClientQt.cpp: 14074 (WebCore::EditorClientQt::handleKeyboardEvent): Ditto. Also updated name from 14075 MoveUpByPageAndModifyCaret to MovePageUp and from MoveDownByPageAndModifyCaret 14076 to MovePageDown. 14077 14078 2007-12-12 Brady Eidson <beidson (a] apple.com> 14079 14080 Reviewed by Sam Weinig 14081 14082 As part of doing some CachedPage and client cleanup, keep Qt building 14083 14084 * WebCoreSupport/FrameLoaderClientQt.cpp: 14085 (WebCore::FrameLoaderClientQt::savePlatformDataToCachedPage): 14086 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage): 14087 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage): 14088 * WebCoreSupport/FrameLoaderClientQt.h: 14089 14090 2007-12-12 Sam Weinig <sam (a] webkit.org> 14091 14092 Build fix. 14093 14094 * WebCoreSupport/FrameLoaderClientQt.cpp: 14095 (WebCore::FrameLoaderClientQt::userAgent): 14096 14097 2007-12-12 Sam Weinig <sam (a] webkit.org> 14098 14099 Build fix. 14100 14101 * Api/qwebnetworkinterface.cpp: 14102 (QWebNetworkRequestPrivate::init): 14103 * Api/qwebpage.cpp: 14104 (QWebPage::url): 14105 (QWebPageContext::QWebPageContext): 14106 * Api/qwebpagehistory.cpp: 14107 (QWebHistoryItem::originalUrl): 14108 (QWebHistoryItem::currentUrl): 14109 * WebCoreSupport/FrameLoaderClientQt.cpp: 14110 (WebCore::FrameLoaderClientQt::cannotShowURLError): 14111 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 14112 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError): 14113 (WebCore::FrameLoaderClientQt::fileDoesNotExistError): 14114 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 14115 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): 14116 (WebCore::FrameLoaderClientQt::createPlugin): 14117 14118 2007-12-07 Alexey Proskuryakov <ap (a] webkit.org> 14119 14120 Reviewed by Darin Adler. 14121 14122 <rdar://problem/5535636> 14123 Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard. 14124 14125 http://bugs.webkit.org/show_bug.cgi?id=13916 14126 JavaScript detects Tab as a character input on a textfield validation 14127 14128 * WebCoreSupport/EditorClientQt.cpp: 14129 (WebCore::EditorClientQt::handleKeyboardEvent): 14130 (WebCore::EditorClientQt::handleInputMethodKeydown): 14131 * WebCoreSupport/EditorClientQt.h: 14132 Updated for cross-platform changes as much as it was possible without a Qt build environment. 14133 14134 2007-12-07 Darin Adler <darin (a] apple.com> 14135 14136 - try to fix build 14137 14138 * Api/qwebhistoryinterface.cpp: 14139 (WebCore::historyContains): There's a WebCore function here in WebKit! Needs to 14140 be updated, since WebCore changed, but this should not be here. 14141 14142 2007-12-04 Darin Adler <darin (a] apple.com> 14143 14144 Reviewed by Kevin Decker. 14145 14146 * WebCoreSupport/FrameLoaderClientQt.cpp: Removed obsolete privateBrowsingEnabled. 14147 * WebCoreSupport/FrameLoaderClientQt.h: Ditto. 14148 14149 2007-12-04 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 14150 14151 Reviewed by Simon. 14152 14153 * Implement the InspectorClient for the Qt port 14154 * It does not support highlighting of nodes yet 14155 * Use QRC to open the internal page. The important thing is the 14156 '/' in the URL to make WebCore::Document::completeURL behave the 14157 way we want. 14158 * To make the InspectorClient work we will have to mark qrc as secure. 14159 14160 * Api/qwebpage.cpp: 14161 (QWebPagePrivate::QWebPagePrivate): 14162 * Api/qwebpage.h: 14163 * WebCoreSupport/InspectorClientQt.cpp: 14164 (WebCore::InspectorClientWebPage::hideEvent): 14165 (WebCore::InspectorClientQt::InspectorClientQt): 14166 (WebCore::InspectorClientQt::inspectorDestroyed): 14167 (WebCore::InspectorClientQt::createPage): 14168 (WebCore::InspectorClientQt::localizedStringsURL): 14169 (WebCore::InspectorClientQt::showWindow): 14170 (WebCore::InspectorClientQt::closeWindow): 14171 (WebCore::InspectorClientQt::attachWindow): 14172 (WebCore::InspectorClientQt::detachWindow): 14173 * WebCoreSupport/InspectorClientQt.h: 14174 14175 2007-12-03 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 14176 14177 Rubber stamped by Mark. 14178 14179 Always include config.h at the beginning of the file. 14180 14181 * Api/qwebsettings.cpp: 14182 14183 2007-12-03 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 14184 14185 Reviewed by Simon. 14186 14187 * Avoid crashes by making sure everything is layouted before 14188 we start painting. This avoids a crash in Widget::invalidateRect 14189 because QPainter::begin would fail 14190 * The QWebFrame::layout() methods and calls are left untouched because 14191 this would be an API decision. 14192 14193 14194 * Api/qwebframe.cpp: 14195 (QWebFrame::layout): 14196 * Api/qwebpage.cpp: 14197 (QWebPage::paintEvent): 14198 14199 2007-12-03 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 14200 14201 Reviewed by Simon. 14202 14203 * SubClass QWebPage to handle hide and close events. 14204 * Forward these events to the InspectorController 14205 * The other options would have been using an eventFilter 14206 on the webpage and making InspectorClient a QObject or 14207 creating a QObject Observer. 14208 * Provide a simple QWebPage* createWindow implementation. This is needed 14209 to make FrameLoaderClientQt::dispatchCreatePage stop crashing in the case 14210 of the inspector client. 14211 14212 14213 * WebCoreSupport/InspectorClientQt.cpp: 14214 (WebCore::InspectorClientWebPage::InspectorClientWebPage): 14215 (WebCore::InspectorClientWebPage::createWindow): 14216 (WebCore::InspectorClientWebPage::hideEvent): 14217 (WebCore::InspectorClientWebPage::closeEvent): 14218 (WebCore::InspectorClientQt::createPage): 14219 14220 2007-12-03 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 14221 14222 Reviewed by Simon. 14223 14224 * Allow adding the Inspect ContextMenuItem to our Menu 14225 * Open the Inspector when Inspect was activated. This requires 14226 that we keep the innerNonSharedNode from the HitTest around. This 14227 forces us to include <wtf/RefPtr.h> in the private header. It is 14228 the first non Qt header but should be okay. 14229 14230 14231 * Api/qwebpage.cpp: 14232 (webActionForContextMenuAction): 14233 (QWebPage::triggerAction): 14234 (QWebPage::action): 14235 (QWebPageContext::QWebPageContext): 14236 * Api/qwebpage.h: 14237 * Api/qwebpage_p.h: 14238 14239 2007-12-03 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 14240 14241 Reviewed by Simon. 14242 14243 * Add the Developer Extras to the WebAttribute and propagate it 14244 to WebCore::Settings. This will enable the Inspect Element menu item 14245 * CodingStyle fixes in QWebSettings 14246 * Enable the Developer Extras in the QtLauncher 14247 14248 14249 * Api/qwebsettings.cpp: 14250 (QWebSettingsPrivate::apply): 14251 * Api/qwebsettings.h: 14252 * QtLauncher/main.cpp: 14253 (main): 14254 14255 2007-12-03 Geoffrey Garen <ggaren (a] apple.com> 14256 14257 Removed unnecessary and possibly incorrect #include from my last 14258 check-in. 14259 14260 * Api/qwebframe.cpp: 14261 14262 2007-12-03 Geoffrey Garen <ggaren (a] apple.com> 14263 14264 Qt build fix: Get globalExec() from the right place. 14265 14266 2007-11-30 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 14267 14268 Reviewed by Simon. 14269 14270 * Self destruct the clients like the ohter ports do 14271 14272 14273 * WebCoreSupport/ChromeClientQt.cpp: 14274 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel): 14275 * WebCoreSupport/ContextMenuClientQt.cpp: 14276 * WebCoreSupport/DragClientQt.cpp: 14277 * WebCoreSupport/EditorClientQt.cpp: 14278 * WebCoreSupport/InspectorClientQt.cpp: 14279 14280 2007-11-29 Brady Eidson <beidson (a] apple.com> 14281 14282 Keep it building with new client method 14283 14284 * WebCoreSupport/ChromeClientQt.cpp: 14285 (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase): 14286 (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation): 14287 * WebCoreSupport/ChromeClientQt.h: 14288 14289 2007-11-22 Simon Hausmann <hausmann (a] webkit.org> 14290 14291 Reviewed by Adam Treat. 14292 14293 Fix compilation (don't define notImplemented twice) 14294 14295 * Api/qwebnetworkinterface.cpp: 14296 14297 2007-11-22 Simon Hausmann <hausmann (a] kde.org> 14298 14299 Reviewed by George. 14300 14301 Use Q_SIGNALS/Q_SLOTS in the public API 14302 14303 * Api/qwebframe.h: 14304 * Api/qwebpage.h: 14305 14306 2007-11-22 Simon Hausmann <hausmann (a] kde.org> 14307 14308 Reviewed by George. 14309 14310 Fixed the signature of the QWebPage constructor to follow Qt guidelines. 14311 14312 * Api/qwebpage.h: 14313 14314 2007-11-22 Simon Hausmann <hausmann (a] kde.org> 14315 14316 Reviewed by George. 14317 14318 Use <QtModule/headerfile.h> instead of <Classname> in public HEADER files, to not require the include paths for the other modules to be present 14319 14320 * Api/qcookiejar.h: 14321 * Api/qwebframe.h: 14322 * Api/qwebhistoryinterface.h: 14323 * Api/qwebnetworkinterface.h: 14324 * Api/qwebobjectplugin.h: 14325 * Api/qwebobjectplugin_p.h: 14326 * Api/qwebobjectpluginconnector.h: 14327 * Api/qwebpage.h: 14328 * Api/qwebpagehistory.h: 14329 * Api/qwebsettings.h: 14330 14331 2007-11-22 Simon Hausmann <hausmann (a] kde.org> 14332 14333 Reviewed by George. 14334 14335 Removed inline copy of QExplicitlySharedDataPointer. This is not needed anymore since we require Qt >= 4.3.0. 14336 14337 * Api/qwebpagehistory.h: 14338 14339 2007-11-22 George Staikos <staikos (a] kde.org> 14340 14341 Reviewed by Simon Hausmann <hausmann (a] kde.org>. 14342 14343 Fix license headers 14344 14345 14346 * Api/qwebobjectplugin.cpp: 14347 * Api/qwebobjectplugin.h: 14348 * Api/qwebobjectpluginconnector.cpp: 14349 * Api/qwebobjectpluginconnector.h: 14350 14351 2007-11-22 Simon Hausmann <hausmann (a] kde.org> 14352 14353 Reviewed by George Staikos <staikos (a] kde.org>. 14354 14355 Fix shadowing of "page" variable that is passed as argument as well as a member variable. 14356 14357 This also fixes compilation with gcc 4.3. 14358 14359 14360 * Api/qwebframe.cpp: 14361 (QWebFramePrivate::init): 14362 14363 2007-11-21 Adam Treat <adam.treat (a] torchmobile.com> 14364 14365 Reviewed by Simon. 14366 14367 * Connect up the signal for all subframes too. 14368 14369 * Api/qwebframe.cpp: 14370 (QWebFramePrivate::init): 14371 * Api/qwebpage.cpp: 14372 (QWebPagePrivate::createMainFrame): 14373 14374 2007-11-20 Simon Hausmann <hausmann (a] kde.org> 14375 14376 Reviewed by Adam Treat <adam.treat (a] torchmobile.com>. 14377 14378 Remove static linkage of QtWebKit against the ICO image format plugin. 14379 14380 Instead build the support for the ICO image format as a proper standalone qt image format plugin and install it. 14381 14382 14383 * Plugins/Plugins.pro: 14384 14385 2007-11-20 Simon Hausmann <hausmann (a] kde.org> 14386 14387 Reviewed by George Staikos <staikos (a] kde.org>. 14388 14389 Added a default argument to textContent for the hoveringOverLink signal to keep existing two-argument connections working 14390 14391 14392 * Api/qwebpage.h: 14393 14394 2007-11-20 George Staikos <staikos (a] kde.org> 14395 14396 Reviewed by Simon Hausmann <hausmann (a] kde.org>. 14397 14398 Add an argument to pass the link text in the hovering signal 14399 14400 14401 * Api/qwebframe.h: 14402 * Api/qwebpage.cpp: 14403 (QWebPagePrivate::createMainFrame): 14404 (QWebPage::mouseMoveEvent): 14405 * Api/qwebpage.h: 14406 14407 2007-11-20 Adam Treat <adam.treat (a] torchmobile.com> 14408 14409 Reviewed by Simon and George. 14410 14411 * Be quiet and allow suppression of NotImplemented calls at runtime. 14412 14413 * WebCoreSupport/FrameLoaderClientQt.cpp: 14414 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme): 14415 14416 2007-11-19 Adam Treat <adam.treat (a] torchmobile.com> 14417 14418 Reviewed by Simon. 14419 14420 * Don't segfault when event pos is outside of the widget. 14421 14422 * Api/qwebpage.cpp: 14423 (QWebPage::mouseMoveEvent): 14424 (QWebPage::mousePressEvent): 14425 (QWebPage::mouseDoubleClickEvent): 14426 (QWebPage::mouseReleaseEvent): 14427 (QWebPage::contextMenuEvent): 14428 14429 2007-11-17 Timothy Hatcher <timothy (a] apple.com> 14430 14431 Reviewed by Mark Rowe. 14432 14433 Bug 13470: i18n: The Web Inspector is not localizable 14434 http://bugs.webkit.org/show_bug.cgi?id=13470 14435 14436 * WebCoreSupport/InspectorClientQt.cpp: 14437 (WebCore::InspectorClientQt::localizedStringsURL): Empty stub. 14438 * WebCoreSupport/InspectorClientQt.h: Added localizedStringsURL. 14439 14440 2007-11-13 Geoffrey Garen <ggaren (a] apple.com> 14441 14442 Build fix: changed Shared to RefCounted. 14443 14444 * WebCoreSupport/ChromeClientQt.h: 14445 * WebCoreSupport/ContextMenuClientQt.cpp: 14446 * WebCoreSupport/ContextMenuClientQt.h: 14447 * WebCoreSupport/EditorClientQt.h: 14448 * WebCoreSupport/FrameLoaderClientQt.h: 14449 14450 2007-11-10 Simon Hausmann <hausmann (a] kde.org> 14451 14452 Reviewed by Nikolas. 14453 14454 When populating the context menu with sub-menus don't add sub-menus if they're empty. 14455 14456 14457 * Api/qwebpage.cpp: 14458 (QWebPagePrivate::createContextMenu): 14459 14460 2007-11-10 Simon Hausmann <hausmann (a] kde.org> 14461 14462 Reviewed by Nikolas. 14463 14464 Added support for the Bold/Italic/Underline toggle actions. 14465 14466 14467 * Api/qwebpage.cpp: 14468 (webActionForContextMenuAction): 14469 (QWebPage::triggerAction): 14470 (QWebPage::action): 14471 * Api/qwebpage.h: 14472 14473 2007-11-10 Simon Hausmann <hausmann (a] kde.org> 14474 14475 Reviewed by Nikolas. 14476 14477 Before adding an action to the context menu call checkOrEnableIfNeeded for each action 14478 to update the enable/checked state correctly. 14479 14480 14481 * Api/qwebpage.cpp: 14482 (QWebPagePrivate::createContextMenu): 14483 (QWebPage::contextMenuEvent): 14484 * Api/qwebpage_p.h: 14485 14486 2007-11-10 Simon Hausmann <hausmann (a] kde.org> 14487 14488 Reviewed by Nikolas. 14489 14490 Mark the text direction actions as checkable actions. 14491 14492 14493 * Api/qwebpage.cpp: 14494 (QWebPage::action): 14495 14496 2007-11-09 Simon Hausmann <hausmann (a] kde.org> 14497 14498 Reviewed by Holger. 14499 14500 Implemented the webcore actions for changing the text direction. 14501 14502 14503 * Api/qwebpage.cpp: 14504 (webActionForContextMenuAction): 14505 (QWebPage::triggerAction): 14506 (QWebPage::action): 14507 * Api/qwebpage.h: 14508 14509 2007-11-09 Simon Hausmann <hausmann (a] kde.org> 14510 14511 Reviewed by Holger. 14512 14513 Fix ContextMenu allocation in the Qt port. 14514 14515 Store all items and submenus value based in ContextMenu and ContextMenuItem. 14516 That fixes the crashes when the context menu was populated with sub-menus because 14517 of the use of temporary ContextMenu objects like this: 14518 14519 ContextMenu subMenu(...); 14520 subMenu.appendItem(...); 14521 subMenu.appendItem(...); 14522 14523 subMenuItem.setSubMenu(&subMenu); // temporary pointer, need to _copy_ contents 14524 14525 14526 * Api/qwebpage.cpp: 14527 (QWebPage::contextMenuEvent): 14528 * Api/qwebpage_p.h: 14529 14530 2007-11-09 Simon Hausmann <hausmann (a] kde.org> 14531 14532 Reviewed by Holger. 14533 14534 Renamed QWebPage::NumWebActions to QWebPage::WebActionCount (for consistency) and fixed its value. 14535 14536 14537 * Api/qwebpage.h: 14538 * Api/qwebpage_p.h: 14539 14540 2007-11-08 Kevin McCullough <kmccullough (a] apple.com> 14541 14542 Reviewed by Sam. 14543 14544 - windowObjectCleared() is no longer const. It needs to setup the 14545 script debugger and cannot be const to do so. 14546 14547 * WebCoreSupport/FrameLoaderClientQt.cpp: 14548 (WebCore::FrameLoaderClientQt::windowObjectCleared): 14549 * WebCoreSupport/FrameLoaderClientQt.h: 14550 14551 2007-11-08 Simon Hausmann <hausmann (a] kde.org> 14552 14553 Reviewed by nobody (well, Holger knows about it), build fix for Qt 4.3. 14554 14555 The buildbots use Qt 4.4 which has the function in question, but Qt 14556 4.3 doesn't have it. Use removeAll() as replacement instead, it 14557 shouldn't make a difference in performance. 14558 14559 * Api/qwebsettings.cpp: 14560 (QWebSettings::~QWebSettings): 14561 14562 2007-11-08 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 14563 14564 Reviewed by Lars Knoll <lars (a] trolltech.com>. 14565 14566 Cleanup checking for the request method. 14567 14568 * Check the request method only in QWebNetworkManager::add. 14569 * Currently HEAD, GET, POST are allowed and for everything else 14570 QWebNetworkManager::add returns false. 14571 * Returning false is compatible with ResourceHandle::start and it 14572 can be used in ResourceHandle::loadResourceSynchronously to generate 14573 a ResourceError 14574 14575 14576 * Api/qwebnetworkinterface.cpp: 14577 (QWebNetworkManager::add): 14578 14579 2007-11-08 Holger Hans Peter Freyther <holger.freyther (a] trolltech.com> 14580 14581 Reviewed by Lars Knoll <lars (a] trolltech.com>. 14582 14583 Fix bug in the implementation of synchronous network jobs. 14584 14585 * George (pmax) reviewed the networking patches and found the following bug (thanks for reviewing) 14586 - if (jobMode == AsynchronousJob) { 14587 + if (jobMode == SynchronousJob) { 14588 add job to synchronous list/hash 14589 14590 * Just applying the above change will lead to crashes because we can finish 14591 jobs before we started them. 14592 14593 * Avoid these issues by saving all work (starting a job, sending data and 14594 finishing it) inside one list. JobWork will contain any 14595 of the above three work types and doWork will just work on this list 14596 (m_pendingWork). As foreach takes a copy of the list calling started, data 14597 and finished will not add new work and we gurantee that if we have JobStarted 14598 it will be in the list before JobData and JobFinished. 14599 14600 * Observation: We might just kill the code to handle sync jobs. 14601 14602 14603 * Api/qwebnetworkinterface.cpp: 14604 (QWebNetworkManager::add): 14605 (QWebNetworkManager::queueStart): 14606 (QWebNetworkManager::queueData): 14607 (QWebNetworkManager::queueFinished): 14608 (QWebNetworkManager::doWork): 14609 * Api/qwebnetworkinterface_p.h: 14610 (QWebNetworkManager::JobWork::): 14611 (QWebNetworkManager::JobWork::JobWork): 14612 14613 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14614 14615 Fix the Qt build by setting up WindowFeatures before calling 14616 createWindow on the Chrome. This is similar to openNewWindow in 14617 page/ContextMenuController.cpp 14618 14619 * Api/qwebpage.cpp: 14620 (openNewWindow): 14621 14622 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14623 14624 Reviewed by Lars. 14625 14626 Make the setting of letting Javascript access the clipboard configurable through QWebSettings, turn it off by default and turn it on in DumpRenderTree. 14627 14628 * Api/qwebpage.cpp: 14629 (QWebPagePrivate::QWebPagePrivate): 14630 * Api/qwebsettings.cpp: 14631 (QWebSettingsPrivate::apply): 14632 * Api/qwebsettings.h: 14633 14634 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14635 14636 Reviewed by Lars. 14637 14638 Changed QWebPageHistory::goToItem to take a value instead of a pointer. 14639 14640 * Api/qwebpagehistory.cpp: 14641 * Api/qwebpagehistory.h: 14642 14643 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14644 14645 Reviewed by Lars. 14646 14647 Removed unimplemented QWebHistoryItem::children() function 14648 14649 * Api/qwebpagehistory.h: 14650 14651 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14652 14653 Reviewed by Lars. 14654 14655 Changed the getter functions in QWebSettings to transparently resolve against the default settings. 14656 14657 * Api/qwebsettings.cpp: 14658 (QWebSettings::fontSize): 14659 (QWebSettings::fontFamily): 14660 (QWebSettings::testAttribute): 14661 14662 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14663 14664 Reviewed by Lars. 14665 14666 Added explicit functions for resetting the font sizes and font families. 14667 14668 * Api/qwebsettings.cpp: 14669 (QWebSettings::resetFontSize): 14670 (QWebSettings::resetFontFamily): 14671 * Api/qwebsettings.h: 14672 14673 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14674 14675 Reviewed by Lars. 14676 14677 Combined the font sizes accessors/setters under one setter/getter with an enum. 14678 14679 * Api/qwebsettings.cpp: 14680 (QWebSettingsPrivate::QWebSettingsPrivate): 14681 (QWebSettingsPrivate::apply): 14682 (QWebSettings::QWebSettings): 14683 (QWebSettings::setFontSize): 14684 * Api/qwebsettings.h: 14685 14686 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14687 14688 Reviewed by Lars. 14689 14690 Renamed QWebPage::userAgentStringForUrl(url) to QWebPage::userAgentFor(url); 14691 14692 * Api/qwebpage.cpp: 14693 * Api/qwebpage.h: 14694 * WebCoreSupport/FrameLoaderClientQt.cpp: 14695 (WebCore::FrameLoaderClientQt::userAgent): 14696 14697 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14698 14699 Reviewed by Lars. 14700 14701 Renamed QWebPage::webActionTriggered to QWebPage::triggerAction 14702 14703 * Api/qwebpage.cpp: 14704 (QWebPagePrivate::_q_webActionTriggered): 14705 (QWebPage::keyPressEvent): 14706 * Api/qwebpage.h: 14707 14708 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14709 14710 Reviewed by Lars. 14711 14712 Changed the virtual QWebPage::setWindowGeometry to be a geometryChangeRequest signal instead. 14713 14714 * Api/qwebpage.cpp: 14715 * Api/qwebpage.h: 14716 * WebCoreSupport/ChromeClientQt.cpp: 14717 (WebCore::ChromeClientQt::setWindowRect): 14718 14719 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14720 14721 Reviewed by Lars. 14722 14723 Renamed QWebPage::webAction() to QWebPage::action() 14724 14725 * Api/qwebpage.cpp: 14726 (QWebPagePrivate::createContextMenu): 14727 * Api/qwebpage.h: 14728 * QtLauncher/main.cpp: 14729 (MainWindow::MainWindow): 14730 14731 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14732 14733 Reviewed by Lars. 14734 14735 Removed a bunch of slots/functions that are now available through the new actions API. 14736 14737 * Api/qwebpage.cpp: 14738 * Api/qwebpage.h: 14739 14740 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14741 14742 Reviewed by Lars. 14743 14744 Added some more comments to the API after another round of API review with Lars. 14745 14746 * Api/qwebpage.h: 14747 14748 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14749 14750 Reviewed by Lars. 14751 14752 Moved QWebFrame::selectedText() to QWebPage::selectedText(). 14753 14754 The currently selected text is a property of the page as a whole. 14755 14756 * Api/qwebframe.cpp: 14757 * Api/qwebframe.h: 14758 * Api/qwebpage.cpp: 14759 (QWebPage::selectedText): 14760 * Api/qwebpage.h: 14761 14762 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14763 14764 Reviewed by Lars. 14765 14766 Implemented support for settings propagation. 14767 14768 If an individual setting is not set in a page's QWebSettings then it is inherited from the default settings. 14769 14770 * Api/qwebsettings.cpp: 14771 (QWebSettingsPrivate::QWebSettingsPrivate): 14772 (QWebSettingsPrivate::apply): 14773 (QWebSettings::QWebSettings): 14774 (QWebSettings::~QWebSettings): 14775 (QWebSettings::setFontFamily): 14776 * Api/qwebsettings.h: 14777 14778 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14779 14780 Reviewed by Lars. 14781 14782 Reworked the QWebSettings API. 14783 QWebPage now returns a pointer to its mutable QWebSettings object and the settings of newly created QWebPageObjects are initialized from QWebSettings::defaultSettings(). 14784 14785 * Api/qwebpage.cpp: 14786 (QWebPagePrivate::QWebPagePrivate): 14787 (QWebPagePrivate::~QWebPagePrivate): 14788 (QWebPage::QWebPage): 14789 * Api/qwebpage.h: 14790 * Api/qwebpage_p.h: 14791 * Api/qwebsettings.cpp: 14792 (QWebSettingsPrivate::QWebSettingsPrivate): 14793 (QWebSettingsPrivate::apply): 14794 (QWebSettings::defaultSettings): 14795 (QWebSettings::QWebSettings): 14796 (QWebSettings::setMinimumFontSize): 14797 (QWebSettings::setMinimumLogicalFontSize): 14798 (QWebSettings::setDefaultFontSize): 14799 (QWebSettings::setDefaultFixedFontSize): 14800 (QWebSettings::setUserStyleSheetLocation): 14801 (QWebSettings::setFontFamily): 14802 (QWebSettings::fontFamily): 14803 (QWebSettings::setAttribute): 14804 * Api/qwebsettings.h: 14805 * QtLauncher/main.cpp: 14806 (main): 14807 14808 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14809 14810 Reviewed by Lars. 14811 14812 Made the QWebSettings::webGraphic functions static. The implementation was using QWebSettings::global() anyway. 14813 14814 * Api/qwebsettings.cpp: 14815 (QWebSettings::setWebGraphic): 14816 * Api/qwebsettings.h: 14817 14818 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14819 14820 Reviewed by Lars. 14821 14822 Moved the WebCore::Image specific function loadResourcePixmap from qwebsettings.cpp to ImageQt.cpp and made it static. 14823 14824 * Api/qwebsettings.cpp: 14825 14826 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14827 14828 Reviewed by Lars. 14829 14830 Changed the icondatabase accessor to be a static function because it doesn't change the QWebSettings object. 14831 14832 * Api/qwebsettings.cpp: 14833 * Api/qwebsettings.h: 14834 14835 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14836 14837 Reviewed by Lars. 14838 14839 Changed the webAction() accessor to not be a slot but just a public function. 14840 14841 * Api/qwebpage.h: 14842 14843 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14844 14845 Reviewed by Lars. 14846 14847 Implemented createWindow() in QtLauncher. 14848 14849 * QtLauncher/main.cpp: 14850 (WebPage::WebPage): 14851 (MainWindow::MainWindow): 14852 (WebPage::createWindow): 14853 14854 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14855 14856 Reviewed by Lars. 14857 14858 Implemented opening links in new windows 14859 14860 * Api/qwebpage.cpp: 14861 (frameLoadRequest): 14862 (openNewWindow): 14863 (QWebPage::webActionTriggered): 14864 14865 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14866 14867 Reviewed by Lars. 14868 14869 Added and implemented the "OpenLink" action. 14870 14871 * Api/qwebpage.cpp: 14872 (webActionForContextMenuAction): 14873 (QWebPage::webActionTriggered): 14874 (QWebPage::webAction): 14875 * Api/qwebpage.h: 14876 14877 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14878 14879 Reviewed by Lars. 14880 14881 Adjust the state of the reload action correctly. 14882 14883 * Api/qwebpage.cpp: 14884 (QWebPagePrivate::updateAction): 14885 (QWebPagePrivate::updateNavigationActions): 14886 14887 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14888 14889 Reviewed by Lars. 14890 14891 Initialize the undo/redo actions from QUndoStack. That automatically takes care of enabling/disabling them as well as the activation/trigger. 14892 14893 * Api/qwebpage.cpp: 14894 (QWebPagePrivate::updateAction): 14895 (QWebPage::webAction): 14896 (QWebPage::undoStack): 14897 * Api/qwebpage.h: 14898 14899 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14900 14901 Reviewed by Lars. 14902 14903 Added undo/redo toolbar buttons, moved the location line edit into a separate toolbar. 14904 14905 * QtLauncher/main.cpp: 14906 (MainWindow::MainWindow): 14907 14908 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14909 14910 Reviewed by Lars. 14911 14912 Update the editor actions when the selection changes. 14913 14914 * Api/qwebpage.cpp: 14915 (QWebPagePrivate::updateAction): 14916 (QWebPagePrivate::updateEditorActions): 14917 * Api/qwebpage_p.h: 14918 * WebCoreSupport/EditorClientQt.cpp: 14919 (WebCore::EditorClientQt::respondToChangedSelection): 14920 14921 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14922 14923 Reviewed by Lars. 14924 14925 Added cut/copy/paste actions to the toolbar of QtLauncher 14926 14927 * QtLauncher/main.cpp: 14928 (MainWindow::MainWindow): 14929 14930 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14931 14932 Reviewed by Lars. 14933 14934 Started working on keeping the state of the navigation actions up-to-date. 14935 14936 * Api/qwebpage.cpp: 14937 (QWebPagePrivate::updateAction): 14938 (QWebPagePrivate::updateNavigationActions): 14939 (QWebPage::webAction): 14940 * Api/qwebpage_p.h: 14941 * WebCoreSupport/FrameLoaderClientQt.cpp: 14942 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad): 14943 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): 14944 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 14945 (WebCore::FrameLoaderClientQt::postProgressStartedNotification): 14946 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation): 14947 14948 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14949 14950 Reviewed by Lars. 14951 14952 Use the navigational web actions in the toolbar 14953 14954 * QtLauncher/main.cpp: 14955 (MainWindow::MainWindow): 14956 14957 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14958 14959 Reviewed by Lars. 14960 14961 Store a bunch of QActions in QWebPagePrivate, corresponding to QWebPage::WebAction. 14962 Added QWebPageContext to hold context sensitive information (for example used by the context menu). 14963 14964 * Api/qwebpage.cpp: 14965 (QWebPagePrivate::QWebPagePrivate): 14966 (webActionForContextMenuAction): 14967 (QWebPagePrivate::createContextMenu): 14968 (QWebPagePrivate::_q_webActionTriggered): 14969 (QWebPage::webActionTriggered): 14970 (QWebPage::webAction): 14971 (QWebPage::contextMenuEvent): 14972 (QWebPageContext::QWebPageContext): 14973 (QWebPageContext::operator=): 14974 (QWebPageContext::~QWebPageContext): 14975 (QWebPageContext::pos): 14976 (QWebPageContext::text): 14977 (QWebPageContext::linkUrl): 14978 (QWebPageContext::imageUrl): 14979 (QWebPageContext::image): 14980 (QWebPageContext::targetFrame): 14981 * Api/qwebpage.h: 14982 * Api/qwebpage_p.h: 14983 14984 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14985 14986 Reviewed by Lars. 14987 14988 Moved the editing actions implemented in keyPressEvent into webActionTriggered. 14989 14990 * Api/qwebpage.cpp: 14991 (QWebPage::webActionTriggered): 14992 (QWebPage::keyPressEvent): 14993 * Api/qwebpage.h: 14994 14995 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 14996 14997 Reviewed by Lars. 14998 14999 Introduced a central virtual void webActionTriggered(WebAction action) method that is called from various 15000 convenience methods such as cut()/copy()/paste(). 15001 15002 * Api/qwebpage.cpp: 15003 (QWebPage::goBack): 15004 (QWebPage::webActionTriggered): 15005 (QWebPage::cut): 15006 (QWebPage::copy): 15007 * Api/qwebpage.h: 15008 15009 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 15010 15011 Reviewed by Lars. 15012 15013 Restructure the context menu classes for the Qt port. ContextMenu and ContextMenuItem don't store 15014 QActions/QMenus anymore but just store the action type, tag, title and optionally submenu as created 15015 in ContextMenu::populate(). 15016 For the actual Qt context menu we traverse this structure after sendContextMenuEvent and create a QMenu 15017 out of it. That menu is currently not functional anymore though. 15018 15019 * Api/qwebpage.cpp: 15020 (QWebPagePrivate::createContextMenu): 15021 (QWebPage::contextMenuEvent): 15022 * Api/qwebpage_p.h: 15023 15024 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 15025 15026 Reviewed by Lars. 15027 15028 Changed ContextMenu::setPlatformDescription for the Qt port to not show the qmenu right away 15029 but instead just behave as a normal setter that takes ownership of the platform menu description (the qmenu). 15030 Instead now QWebPage::contextMenuEvent() retrieves the QMenu after calling sendContextMenuEvent and calls exec() 15031 on it. 15032 15033 * Api/qwebpage.cpp: 15034 (QWebPage::contextMenuEvent): 15035 * WebCoreSupport/ContextMenuClientQt.cpp: 15036 (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems): 15037 15038 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 15039 15040 Reviewed by Lars. 15041 15042 Changed to PlatformMouseEvent constructor to allow construction from a QContextMenuEvent. 15043 Call sendContextMenuEvent on the event handler from a QWidget::contextMenuEvent re-implementation instead of in mousePressEvent. 15044 15045 * Api/qwebpage.cpp: 15046 (QWebPage::mousePressEvent): 15047 (QWebPage::contextMenuEvent): 15048 * Api/qwebpage.h: 15049 15050 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 15051 15052 Reviewed by Lars. 15053 15054 Turned onLoadProgressChanged into a real private slot. 15055 15056 * Api/qwebpage.cpp: 15057 (QWebPage::QWebPage): 15058 * Api/qwebpage.h: 15059 * Api/qwebpage_p.h: 15060 15061 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 15062 15063 Reviewed by Lars. 15064 15065 Make QWebHistory an explicitly shared object, returned as a pointer by QWebPage::history(). 15066 15067 * Api/qwebpage.cpp: 15068 (QWebPagePrivate::QWebPagePrivate): 15069 * Api/qwebpage.h: 15070 * Api/qwebpage_p.h: 15071 * Api/qwebpagehistory.cpp: 15072 (QWebPageHistory::QWebPageHistory): 15073 * Api/qwebpagehistory.h: 15074 15075 2007-11-07 Lars Knoll <lars (a] trolltech.com> 15076 15077 Reviewed by Simon. 15078 15079 comments on API changes that we'd like to do. 15080 15081 * Api/qwebpage.h: 15082 15083 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 15084 15085 Reviewed by Lars Knoll <lars (a] trolltech.com>. 15086 15087 Add a QWebPage::frameCreated() signal and fix DRT 15088 15089 The removal of createFrame in QWebPage broke the re-implementation 15090 in DumpRenderTree. Instead emit a frameCreated() signal and 15091 connect to it in DumpRenderTree. 15092 15093 15094 * Api/qwebpage.cpp: 15095 (QWebPagePrivate::createMainFrame): 15096 * Api/qwebpage.h: 15097 * WebCoreSupport/FrameLoaderClientQt.cpp: 15098 (WebCore::FrameLoaderClientQt::createFrame): 15099 15100 2007-11-07 Lars Knoll <lars (a] trolltech.com> 15101 15102 Reviewed by Simon. 15103 15104 Remove QWebPage::createFrame() 15105 15106 now that QWebFrame doesn't have virtual methods anymore, there 15107 is no need for a createFrame() factory method in QWebpage. 15108 15109 * Api/qwebpage.cpp: 15110 (QWebPagePrivate::createMainFrame): 15111 * Api/qwebpage.h: 15112 * WebCoreSupport/FrameLoaderClientQt.cpp: 15113 (WebCore::FrameLoaderClientQt::createFrame): 15114 15115 2007-11-07 Simon Hausmann <hausmann (a] kde.org> 15116 15117 Reviewed by Lars Knoll <lars (a] trolltech.com>. 15118 15119 Moved all the event handlers from QWebFrame into QWebPage. 15120 15121 This cleans up the public API and allows us to remove the 15122 HackWebFrame hack in DumpRenderTree. 15123 15124 15125 * Api/qwebframe.cpp: 15126 (QWebFrame::pos): 15127 * Api/qwebframe.h: 15128 * Api/qwebframe_p.h: 15129 * Api/qwebpage.cpp: 15130 (QWebPagePrivate::frameAt): 15131 (QWebPage::mouseMoveEvent): 15132 (QWebPage::mousePressEvent): 15133 (QWebPage::mouseDoubleClickEvent): 15134 (QWebPage::mouseReleaseEvent): 15135 (QWebPage::wheelEvent): 15136 * Api/qwebpage_p.h: 15137 15138 2007-11-07 Holger Freyther <holger.freyther (a] trolltech.com> 15139 15140 Reviewed by Lars Knoll <lars (a] trolltech.com>. 15141 15142 Use correct UserAgent string. 15143 15144 * Only have one User Agent String and this place is QWebPage 15145 * QWebPage::open -> QWebNetworkRequest -> QWebPage::open -> 15146 ResourceRequest -> FrameLoader::load -> QWebNetworkRequest 15147 * ResourceRequest is != 0 when getting called from WebCore, we 15148 will only do requests when coming from WebCore and then we can 15149 use the User-Agent set with the help of the FrameLoaderClient 15150 * We might want to change QWebNetworkRequest a bit 15151 15152 15153 * Api/qwebnetworkinterface.cpp: 15154 (QWebNetworkRequestPrivate::init): 15155 15156 2007-11-07 Lars Knoll <lars (a] trolltech.com> 15157 15158 Reviewed by Simon. 15159 15160 remove two notImplemented() warnings, as I believe we don't 15161 have to implement these methods. Add some (commented out) 15162 debug code in one place. 15163 15164 * WebCoreSupport/EditorClientQt.cpp: 15165 (WebCore::EditorClientQt::respondToChangedSelection): 15166 (WebCore::EditorClientQt::didWriteSelectionToPasteboard): 15167 15168 2007-11-05 Tristan O'Tierney <tristan (a] apple.com> 15169 15170 Reviewed by Darin Adler. 15171 15172 * WebCoreSupport/ChromeClientQt.cpp: 15173 (WebCore::ChromeClientQt::createWindow): 15174 * WebCoreSupport/ChromeClientQt.h: 15175 Revised to use new WebCore ChromeClient createWindow API. 15176 15177 2007-10-31 Lars Knoll <lars (a] trolltech.com> 15178 15179 Reviewed by Simon. 15180 15181 fix most of the issues I found with Clipboard and DnD. 15182 15183 * Api/qwebpage.cpp: 15184 (QWebPage::dragLeaveEvent): 15185 15186 2007-10-31 Lars Knoll <lars (a] trolltech.com> 15187 15188 Reviewed by Simon. 15189 15190 QDrag objects need to be created on the heap. 15191 15192 * WebCoreSupport/DragClientQt.cpp: 15193 (WebCore::DragClientQt::startDrag): 15194 15195 2007-10-31 Lars Knoll <lars (a] trolltech.com> 15196 15197 Reviewed by Simon. 15198 15199 a dragLeave event is not the same as cancelling a drag. 15200 15201 * Api/qwebpage.cpp: 15202 15203 2007-10-26 Mark Rowe <mrowe (a] apple.com> 15204 15205 Build fix. Add missing #include of Platform.h. 15206 15207 * Api/qwebhistoryinterface.cpp: 15208 15209 2007-10-25 Holger Freyther <zecke (a] selfish.org> 15210 15211 Reviewed by Simon Hausmann <hausmann (a] kde.org>. 15212 15213 * We need to set a != 0 status code for the fast/loader/xmlhttprequest-missing-file-exception.html 15214 * libxml2 has the semantic that when writing an empty string and finishing it will report an error. For QXmlStreamReader this is valid. 15215 * This is causing some regressions... 15216 15217 15218 * Api/qwebnetworkinterface.cpp: 15219 (QWebNetworkManager::started): 15220 (QWebNetworkInterface::addJob): 15221 15222 2007-10-25 Holger Freyther <zecke (a] selfish.org> 15223 15224 Reviewed by Simon Hausmann <hausmann (a] kde.org>. 15225 15226 * 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. 15227 * We can use the cross-platform result now. QWebNetworkInterface/Manager behaves the same as mac for local files. 15228 15229 15230 * Api/qwebnetworkinterface.cpp: 15231 (QWebNetworkManager::started): 15232 15233 2007-10-25 Holger Freyther <zecke (a] selfish.org> 15234 15235 Reviewed by Simon Hausmann <hausmann (a] kde.org>. 15236 15237 * 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. 15238 * Use the error message from Qt. It might or might not be translated. 15239 15240 15241 * Api/qwebnetworkinterface.cpp: 15242 (QWebNetworkJob::errorString): 15243 (QWebNetworkJob::setErrorString): 15244 (QWebNetworkManager::finished): 15245 (QWebNetworkManager::doWork): 15246 (WebCoreHttp::onRequestFinished): 15247 * Api/qwebnetworkinterface.h: 15248 * Api/qwebnetworkinterface_p.h: 15249 15250 2007-10-25 Holger Freyther <zecke (a] selfish.org> 15251 15252 Reviewed by Simon Hausmann <hausmann (a] kde.org>. 15253 15254 * 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. 15255 * 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. 15256 15257 15258 * Api/qwebnetworkinterface.cpp: 15259 (QWebNetworkManager::doWork): 15260 15261 2007-10-25 Holger Freyther <zecke (a] selfish.org> 15262 15263 Reviewed by Simon Hausmann <hausmann (a] kde.org>. 15264 15265 * No need to initialize values in the QWebNetworkJob c'tor 15266 * 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. 15267 15268 15269 * Api/qwebnetworkinterface.cpp: 15270 (QWebNetworkJob::status): 15271 (QWebNetworkJob::setStatus): 15272 (QWebNetworkManager::started): 15273 (QWebNetworkManager::data): 15274 (QWebNetworkManager::finished): 15275 * Api/qwebnetworkinterface.h: 15276 * Api/qwebnetworkinterface_p.h: 15277 (QWebNetworkJobPrivate::QWebNetworkJobPrivate): 15278 15279 2007-10-25 Holger Freyther <zecke (a] selfish.org> 15280 15281 Reviewed by Simon Hausmann <hausmann (a] kde.org>. 15282 15283 * Consistency: Always name the jobs job. 15284 15285 15286 * Api/qwebnetworkinterface.cpp: 15287 (WebCoreHttp::onReadyRead): 15288 (WebCoreHttp::onRequestFinished): 15289 (WebCoreHttp::onSslErrors): 15290 (WebCoreHttp::onAuthenticationRequired): 15291 (WebCoreHttp::onProxyAuthenticationRequired): 15292 15293 2007-10-25 Holger Freyther <zecke (a] selfish.org> 15294 15295 Reviewed by Simon Hausmann <hausmann (a] kde.org>. 15296 15297 * 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. 15298 * This should be thread-safe besides QWebNetworkJob::{ref,deref} 15299 15300 15301 * Api/qwebnetworkinterface.cpp: 15302 (QWebNetworkJob::~QWebNetworkJob): 15303 (QWebNetworkManager::QWebNetworkManager): 15304 (QWebNetworkManager::self): 15305 (QWebNetworkManager::add): 15306 (QWebNetworkManager::started): 15307 (QWebNetworkManager::finished): 15308 (QWebNetworkInterfacePrivate::sendFileData): 15309 (QWebNetworkInterfacePrivate::parseDataUrl): 15310 (QWebNetworkManager::queueStart): 15311 (QWebNetworkManager::queueData): 15312 (QWebNetworkManager::queueFinished): 15313 (QWebNetworkManager::doScheduleWork): 15314 (QWebNetworkManager::doWork): 15315 (gCleanupInterface): 15316 (QWebNetworkInterface::setDefaultInterface): 15317 (QWebNetworkInterface::defaultInterface): 15318 (QWebNetworkInterface::QWebNetworkInterface): 15319 (QWebNetworkInterface::started): 15320 (QWebNetworkInterface::data): 15321 (QWebNetworkInterface::finished): 15322 (WebCoreHttp::scheduleNextRequest): 15323 (WebCoreHttp::onResponseHeaderReceived): 15324 (WebCoreHttp::onReadyRead): 15325 (WebCoreHttp::onRequestFinished): 15326 (WebCoreHttp::cancel): 15327 * Api/qwebnetworkinterface.h: 15328 * Api/qwebnetworkinterface_p.h: 15329 (QWebNetworkManager::): 15330 (QWebNetworkManager::JobData::JobData): 15331 (QWebNetworkManager::JobFinished::JobFinished): 15332 15333 2007-10-25 Holger Freyther <zecke (a] selfish.org> 15334 15335 Reviewed by Simon Hausmann <hausmann (a] kde.org>. 15336 15337 * Do the percent replacement only when we are not base64. With base64 we should not have any % in it anyway. 15338 * Have a custom decodePercentEncoding method that works without doing any charset conversion. With converting back to latin1() we lost some information. 15339 * We pass the char-decoding.html test now 15340 15341 15342 * Api/qwebnetworkinterface.cpp: 15343 (decodePercentEncoding): 15344 (QWebNetworkInterfacePrivate::parseDataUrl): 15345 15346 2007-10-24 Holger Hans Peter Freyther <zecke (a] selfish.org> 15347 15348 Reviewed by Lars Knoll <lars (a] trolltech.com>. 15349 15350 * Stop crashing on fast/events/frame-tab-focus.html the keyEvent can be 0. 15351 15352 15353 * WebCoreSupport/EditorClientQt.cpp: 15354 (WebCore::EditorClientQt::handleKeypress): 15355 15356 2007-10-24 Lars Knoll <lars (a] trolltech.com> 15357 15358 Reviewed by Simon. 15359 15360 remove some notImplemented() warnings. 15361 15362 * WebCoreSupport/EditorClientQt.cpp: 15363 (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled): 15364 (WebCore::EditorClientQt::isGrammarCheckingEnabled): 15365 (WebCore::EditorClientQt::respondToChangedSelection): 15366 15367 2007-10-24 Lars Knoll <lars (a] trolltech.com> 15368 15369 Reviewed by Simon. 15370 15371 allow paste from DOM so we pass more test cases. 15372 15373 * Api/qwebpage.cpp: 15374 (QWebPage::setSettings): 15375 15376 2007-10-24 Lars Knoll <lars (a] trolltech.com> 15377 15378 Reviewed by Simon. 15379 15380 Simplify the PlatformKeyEvent constructor. No need to have an extra boolean for isKeyUp in there, as the QKeyEvent has the information. 15381 15382 * Api/qwebpage.cpp: 15383 (QWebPage::keyPressEvent): 15384 (QWebPage::keyReleaseEvent): 15385 15386 2007-10-24 Lars Knoll <lars (a] trolltech.com> 15387 15388 Reviewed by Simon. 15389 15390 some smaller fixes to the editing support in DRT. Makes another few tests pass. 15391 15392 * WebCoreSupport/EditorClientQt.cpp: 15393 (qt_dump_editing_callbacks): 15394 (qt_drt_run): 15395 15396 2007-10-24 Lars Knoll <lars (a] trolltech.com> 15397 15398 Reviewed by Simon. 15399 15400 implemented support for most editing shortcuts to make contentEditable usable. 15401 15402 * Api/qwebpage.cpp: 15403 (QWebPage::keyPressEvent): 15404 15405 2007-10-24 Lars Knoll <lars (a] trolltech.com> 15406 15407 Reviewed by Simon. 15408 15409 no need to call setIsActive ourselves on the frame, as the focus controller does it for us. 15410 15411 * Api/qwebpage.cpp: 15412 (QWebPage::focusInEvent): 15413 15414 2007-10-24 Lars Knoll <lars (a] trolltech.com> 15415 15416 Reviewed by Simon. 15417 15418 Implement support for testing editing. 15419 15420 * WebCoreSupport/EditorClientQt.cpp: 15421 (qt_dump_editing_callbacks): 15422 (qt_dump_set_accepts_editing): 15423 (dumpPath): 15424 (dumpRange): 15425 (WebCore::EditorClientQt::shouldDeleteRange): 15426 (WebCore::EditorClientQt::shouldShowDeleteInterface): 15427 (WebCore::EditorClientQt::shouldBeginEditing): 15428 (WebCore::EditorClientQt::shouldEndEditing): 15429 (WebCore::EditorClientQt::shouldInsertText): 15430 (WebCore::EditorClientQt::shouldChangeSelectedRange): 15431 (WebCore::EditorClientQt::shouldApplyStyle): 15432 (WebCore::EditorClientQt::didBeginEditing): 15433 (WebCore::EditorClientQt::respondToChangedContents): 15434 (WebCore::EditorClientQt::respondToChangedSelection): 15435 (WebCore::EditorClientQt::didEndEditing): 15436 (WebCore::EditorClientQt::shouldInsertNode): 15437 15438 2007-10-19 Alp Toker <alp (a] atoker.com> 15439 15440 Reviewed by Oliver. 15441 15442 GTK+ build fix enabling the new local database storage feature. 15443 There is also a prospective Qt build fix. 15444 15445 * WebCoreSupport/ChromeClientQt.cpp: 15446 (WebCore::ChromeClientQt::runDatabaseSizeLimitPrompt): 15447 * WebCoreSupport/ChromeClientQt.h: 15448 15449 2007-10-19 Simon Hausmann <hausmann (a] kde.org> 15450 15451 Fix the Qt/Windows build: Include the moc file from the .cpp file so 15452 that config.h is included before wtf/MathExtras. The former defines 15453 the MSVC defines for rand_s. 15454 15455 * WebCoreSupport/FrameLoaderClientQt.cpp: 15456 15457 2007-10-19 Simon Hausmann <shausman (a] trolltech.com> 15458 15459 Reviewed by Lars. 15460 15461 Fix the windows/qt build by including config.h first to fix wtf/MathExtras.h inclusion. 15462 15463 * Api/qwebframe.cpp: 15464 * Api/qwebpage.cpp: 15465 15466 2007-10-10 Alice Liu <alice.liu (a] apple.com> 15467 15468 Reviewed by Geoff Garen. 15469 15470 changes to keep the build from breaking 15471 15472 * WebCoreSupport/FrameLoaderClientQt.cpp: 15473 (WebCore::FrameLoaderClientQt::createFrame): 15474 * WebCoreSupport/FrameLoaderClientQt.h: 15475 15476 2007-10-09 Lars Knoll <lars (a] trolltech.com> 15477 15478 Reviewed by Simon. 15479 15480 set a default encoding for documents. Makes fast/dom/Document/document-charset.html pass. 15481 15482 * Api/qwebpage.cpp: 15483 (QWebPage::setSettings): 15484 15485 2007-10-09 Lars Knoll <lars (a] trolltech.com> 15486 15487 Reviewed by Simon. 15488 15489 Don't return a 404 status code for empty data: urls. Fixes fast/dom/HTMLHeadElement/head-check.html 15490 15491 * Api/qwebnetworkinterface.cpp: 15492 (QWebNetworkManager::add): 15493 (QWebNetworkManager::cancel): 15494 (QWebNetworkManager::started): 15495 (QWebNetworkManager::data): 15496 (QWebNetworkInterfacePrivate::parseDataUrl): 15497 15498 2007-10-09 Lars Knoll <lars (a] trolltech.com> 15499 15500 Reviewed by Simon. 15501 15502 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. 15503 15504 * Api/qwebpage.cpp: 15505 (QWebPagePrivate::createMainFrame): 15506 (QWebPage::createFrame): 15507 * WebCoreSupport/FrameLoaderClientQt.cpp: 15508 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle): 15509 * WebCoreSupport/FrameLoaderClientQt.h: 15510 15511 2007-10-09 Lars Knoll <lars (a] trolltech.com> 15512 15513 Reviewed by Simon. 15514 15515 add a clear() method to QWebPageHistory. 15516 15517 * Api/qwebpagehistory.cpp: 15518 (QWebPageHistory::clear): 15519 (QWebPageHistory::itemAtIndex): 15520 * Api/qwebpagehistory.h: 15521 15522 2007-10-05 Lars Knoll <lars (a] trolltech.com> 15523 15524 add proper error messages to the FrameLoaderClient. 15525 Implement ChromeClientQt::closeWindowSoon and 15526 FrameLoaderClientQt::dispatchCreatePage (which should go away IMO). 15527 Some fixes in DRT to make it work correctly with multiple windows. 15528 15529 Reviewed by Maciej. 15530 15531 * Api/qwebframe.h: 15532 * Api/qwebnetworkinterface.cpp: 15533 (QWebNetworkManager::cancel): 15534 (QWebNetworkInterface::addJob): 15535 * WebCoreSupport/ChromeClientQt.cpp: 15536 (WebCore::ChromeClientQt::closeWindowSoon): 15537 * WebCoreSupport/FrameLoaderClientQt.cpp: 15538 (WebCore::FrameLoaderClientQt::cancelledError): 15539 (WebCore::): 15540 (WebCore::FrameLoaderClientQt::blockedError): 15541 (WebCore::FrameLoaderClientQt::cannotShowURLError): 15542 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 15543 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError): 15544 (WebCore::FrameLoaderClientQt::dispatchCreatePage): 15545 15546 2007-10-03 Lars Knoll <lars (a] trolltech.com> 15547 15548 Signed off by Olliej. 15549 15550 move WebKitQt to WebKit/qt for consistency with the other ports. 15551 15552 * Api/headers.pri: Renamed from WebKitQt/Api/headers.pri. 15553 * Api/qcookiejar.cpp: Renamed from WebKitQt/Api/qcookiejar.cpp. 15554 (QCookieJarPrivate::QCookieJarPrivate): 15555 (qHash): 15556 (QCookieJar::QCookieJar): 15557 (QCookieJar::~QCookieJar): 15558 (QCookieJar::setCookies): 15559 (QCookieJar::cookies): 15560 (QCookieJar::isEnabled): 15561 (QCookieJar::setEnabled): 15562 (gCleanupJar): 15563 (QCookieJar::setCookieJar): 15564 (QCookieJar::cookieJar): 15565 * Api/qcookiejar.h: Renamed from WebKitQt/Api/qcookiejar.h. 15566 * Api/qtwebkit.prf: Renamed from WebKitQt/Api/qtwebkit.prf. 15567 * Api/qwebframe.cpp: Renamed from WebKitQt/Api/qwebframe.cpp. 15568 (QWebFramePrivate::init): 15569 (QWebFramePrivate::parentFrame): 15570 (QWebFramePrivate::horizontalScrollBar): 15571 (QWebFramePrivate::verticalScrollBar): 15572 (QWebFrame::QWebFrame): 15573 (QWebFrame::~QWebFrame): 15574 (QWebFrame::addToJSWindowObject): 15575 (QWebFrame::markup): 15576 (QWebFrame::innerText): 15577 (QWebFrame::renderTreeDump): 15578 (QWebFrame::title): 15579 (QWebFrame::name): 15580 (QWebFrame::page): 15581 (QWebFrame::selectedText): 15582 (QWebFrame::childFrames): 15583 (QWebFrame::verticalScrollBarPolicy): 15584 (QWebFrame::setVerticalScrollBarPolicy): 15585 (QWebFrame::horizontalScrollBarPolicy): 15586 (QWebFrame::setHorizontalScrollBarPolicy): 15587 (QWebFrame::render): 15588 (QWebFrame::layout): 15589 (QWebFrame::pos): 15590 (QWebFrame::geometry): 15591 (QWebFrame::evaluateJavaScript): 15592 (QWebFrame::mouseMoveEvent): 15593 (QWebFrame::mousePressEvent): 15594 (QWebFrame::mouseDoubleClickEvent): 15595 (QWebFrame::mouseReleaseEvent): 15596 (QWebFrame::wheelEvent): 15597 * Api/qwebframe.h: Renamed from WebKitQt/Api/qwebframe.h. 15598 * Api/qwebframe_p.h: Renamed from WebKitQt/Api/qwebframe_p.h. 15599 (QWebFramePrivate::QWebFramePrivate): 15600 * Api/qwebhistoryinterface.cpp: Renamed from WebKitQt/Api/qwebhistoryinterface.cpp. 15601 (WebCore::historyContains): 15602 (gCleanupInterface): 15603 (QWebHistoryInterface::setDefaultInterface): 15604 (QWebHistoryInterface::defaultInterface): 15605 (QWebHistoryInterface::QWebHistoryInterface): 15606 * Api/qwebhistoryinterface.h: Renamed from WebKitQt/Api/qwebhistoryinterface.h. 15607 * Api/qwebkitglobal.h: Renamed from WebKitQt/Api/qwebkitglobal.h. 15608 * Api/qwebnetworkinterface.cpp: Renamed from WebKitQt/Api/qwebnetworkinterface.cpp. 15609 (qHash): 15610 (operator==): 15611 (QWebNetworkRequestPrivate::init): 15612 (QWebNetworkRequestPrivate::setURL): 15613 (QWebNetworkRequest::QWebNetworkRequest): 15614 (QWebNetworkRequest::operator=): 15615 (QWebNetworkRequest::~QWebNetworkRequest): 15616 (QWebNetworkRequest::url): 15617 (QWebNetworkRequest::setUrl): 15618 (QWebNetworkRequest::httpHeader): 15619 (QWebNetworkRequest::setHttpHeader): 15620 (QWebNetworkRequest::httpHeaderField): 15621 (QWebNetworkRequest::setHttpHeaderField): 15622 (QWebNetworkRequest::postData): 15623 (QWebNetworkRequest::setPostData): 15624 (QWebNetworkJob::QWebNetworkJob): 15625 (QWebNetworkJob::~QWebNetworkJob): 15626 (QWebNetworkJob::url): 15627 (QWebNetworkJob::postData): 15628 (QWebNetworkJob::httpHeader): 15629 (QWebNetworkJob::request): 15630 (QWebNetworkJob::response): 15631 (QWebNetworkJob::setResponse): 15632 (QWebNetworkJob::cancelled): 15633 (QWebNetworkJob::ref): 15634 (QWebNetworkJob::deref): 15635 (QWebNetworkJob::networkInterface): 15636 (QWebNetworkJob::frame): 15637 (QWebNetworkManager::QWebNetworkManager): 15638 (QWebNetworkManager::self): 15639 (QWebNetworkManager::add): 15640 (QWebNetworkManager::cancel): 15641 (QWebNetworkManager::started): 15642 (QWebNetworkManager::data): 15643 (QWebNetworkManager::finished): 15644 (QWebNetworkManager::addHttpJob): 15645 (QWebNetworkManager::cancelHttpJob): 15646 (QWebNetworkManager::httpConnectionClosed): 15647 (QWebNetworkInterfacePrivate::sendFileData): 15648 (QWebNetworkInterfacePrivate::parseDataUrl): 15649 (gCleanupInterface): 15650 (QWebNetworkInterface::setDefaultInterface): 15651 (QWebNetworkInterface::defaultInterface): 15652 (QWebNetworkInterface::QWebNetworkInterface): 15653 (QWebNetworkInterface::~QWebNetworkInterface): 15654 (QWebNetworkInterface::addJob): 15655 (QWebNetworkInterface::cancelJob): 15656 (WebCoreHttp::WebCoreHttp): 15657 (WebCoreHttp::~WebCoreHttp): 15658 (WebCoreHttp::request): 15659 (WebCoreHttp::scheduleNextRequest): 15660 (WebCoreHttp::getConnection): 15661 (WebCoreHttp::onResponseHeaderReceived): 15662 (WebCoreHttp::onReadyRead): 15663 (WebCoreHttp::onRequestFinished): 15664 (WebCoreHttp::onDone): 15665 (WebCoreHttp::onStateChanged): 15666 (WebCoreHttp::cancel): 15667 (WebCoreHttp::onSslErrors): 15668 (WebCoreHttp::onAuthenticationRequired): 15669 (WebCoreHttp::onProxyAuthenticationRequired): 15670 (HostInfo::HostInfo): 15671 * Api/qwebnetworkinterface.h: Renamed from WebKitQt/Api/qwebnetworkinterface.h. 15672 * Api/qwebnetworkinterface_p.h: Renamed from WebKitQt/Api/qwebnetworkinterface_p.h. 15673 (QWebNetworkJobPrivate::QWebNetworkJobPrivate): 15674 (WebCore::HostInfo::HostInfo): 15675 (WebCore::WebCoreHttp::HttpConnection::HttpConnection): 15676 * Api/qwebobjectplugin.cpp: Renamed from WebKitQt/Api/qwebobjectplugin.cpp. 15677 (QWebFactoryLoader::QWebFactoryLoader): 15678 (QWebFactoryLoader::self): 15679 (QWebFactoryLoader::descriptionForName): 15680 (QWebFactoryLoader::mimetypesForName): 15681 (QWebFactoryLoader::mimeTypeForExtension): 15682 (QWebFactoryLoader::extensions): 15683 (QWebFactoryLoader::nameForMimetype): 15684 (QWebFactoryLoader::create): 15685 (QWebObjectPlugin::QWebObjectPlugin): 15686 (QWebObjectPlugin::~QWebObjectPlugin): 15687 (QWebObjectPlugin::descriptionForKey): 15688 (QWebObjectPlugin::mimetypesForKey): 15689 (QWebObjectPlugin::extensionsForMimetype): 15690 * Api/qwebobjectplugin.h: Renamed from WebKitQt/Api/qwebobjectplugin.h. 15691 * Api/qwebobjectplugin_p.h: Renamed from WebKitQt/Api/qwebobjectplugin_p.h. 15692 (QWebFactoryLoader::names): 15693 (QWebFactoryLoader::supportsMimeType): 15694 * Api/qwebobjectpluginconnector.cpp: Renamed from WebKitQt/Api/qwebobjectpluginconnector.cpp. 15695 (QWebObjectPluginConnector::QWebObjectPluginConnector): 15696 (QWebObjectPluginConnector::frame): 15697 (QWebObjectPluginConnector::pluginParentWidget): 15698 (QWebObjectPluginConnector::requestUrl): 15699 * Api/qwebobjectpluginconnector.h: Renamed from WebKitQt/Api/qwebobjectpluginconnector.h. 15700 * Api/qwebpage.cpp: Renamed from WebKitQt/Api/qwebpage.cpp. 15701 (QWebPagePrivate::QWebPagePrivate): 15702 (QWebPagePrivate::~QWebPagePrivate): 15703 (QWebPagePrivate::navigationRequested): 15704 (QWebPagePrivate::createMainFrame): 15705 (QWebPage::QWebPage): 15706 (QWebPage::~QWebPage): 15707 (QWebPage::createFrame): 15708 (QWebPage::open): 15709 (QWebPage::url): 15710 (QWebPage::title): 15711 (QWebPage::mainFrame): 15712 (QWebPage::sizeHint): 15713 (QWebPage::stop): 15714 (QWebPage::history): 15715 (QWebPage::goBack): 15716 (QWebPage::goForward): 15717 (QWebPage::goToHistoryItem): 15718 (QWebPage::javaScriptConsoleMessage): 15719 (QWebPage::javaScriptAlert): 15720 (QWebPage::javaScriptConfirm): 15721 (QWebPage::javaScriptPrompt): 15722 (QWebPage::createWindow): 15723 (QWebPage::createModalDialog): 15724 (QWebPage::createPlugin): 15725 (QWebPage::navigationRequested): 15726 (QWebPage::setWindowGeometry): 15727 (QWebPage::canCut): 15728 (QWebPage::canCopy): 15729 (QWebPage::canPaste): 15730 (QWebPage::cut): 15731 (QWebPage::copy): 15732 (QWebPage::paste): 15733 (QWebPage::isModified): 15734 (QWebPage::undoStack): 15735 (dropActionToDragOp): 15736 (dragOpToDropAction): 15737 (QWebPage::resizeEvent): 15738 (QWebPage::paintEvent): 15739 (QWebPage::mouseMoveEvent): 15740 (QWebPage::mousePressEvent): 15741 (QWebPage::mouseDoubleClickEvent): 15742 (QWebPage::mouseReleaseEvent): 15743 (QWebPage::wheelEvent): 15744 (QWebPage::keyPressEvent): 15745 (QWebPage::keyReleaseEvent): 15746 (QWebPage::focusInEvent): 15747 (QWebPage::focusOutEvent): 15748 (QWebPage::focusNextPrevChild): 15749 (QWebPage::dragEnterEvent): 15750 (QWebPage::dragLeaveEvent): 15751 (QWebPage::dragMoveEvent): 15752 (QWebPage::dropEvent): 15753 (QWebPage::setNetworkInterface): 15754 (QWebPage::networkInterface): 15755 (QWebPage::icon): 15756 (QWebPage::setSettings): 15757 (QWebPage::settings): 15758 (QWebPage::chooseFile): 15759 (QWebPage::setNetworkProxy): 15760 (QWebPage::networkProxy): 15761 (QWebPage::userAgentStringForUrl): 15762 (QWebPage::onLoadProgressChanged): 15763 (QWebPage::totalBytes): 15764 * Api/qwebpage.h: Renamed from WebKitQt/Api/qwebpage.h. 15765 * Api/qwebpage_p.h: Renamed from WebKitQt/Api/qwebpage_p.h. 15766 * Api/qwebpagehistory.cpp: Renamed from WebKitQt/Api/qwebpagehistory.cpp. 15767 (QWebHistoryItem::QWebHistoryItem): 15768 (QWebHistoryItem::operator=): 15769 (QWebHistoryItem::~QWebHistoryItem): 15770 (QWebHistoryItem::originalUrl): 15771 (QWebHistoryItem::currentUrl): 15772 (QWebHistoryItem::title): 15773 (QWebHistoryItem::lastVisited): 15774 (QWebHistoryItem::icon): 15775 (QWebPageHistory::QWebPageHistory): 15776 (QWebPageHistory::itemAtIndex): 15777 (QWebPageHistory::operator=): 15778 (QWebPageHistory::~QWebPageHistory): 15779 (QWebPageHistory::items): 15780 (QWebPageHistory::backItems): 15781 (QWebPageHistory::forwardItems): 15782 (QWebPageHistory::canGoBack): 15783 (QWebPageHistory::canGoForward): 15784 (QWebPageHistory::goBack): 15785 (QWebPageHistory::goForward): 15786 (QWebPageHistory::goToItem): 15787 (QWebPageHistory::backItem): 15788 (QWebPageHistory::currentItem): 15789 (QWebPageHistory::forwardItem): 15790 * Api/qwebpagehistory.h: Renamed from WebKitQt/Api/qwebpagehistory.h. 15791 (QExplicitlySharedDataPointer::operator*): 15792 (QExplicitlySharedDataPointer::operator->): 15793 (QExplicitlySharedDataPointer::operator T *): 15794 (QExplicitlySharedDataPointer::operator const T *): 15795 (QExplicitlySharedDataPointer::data): 15796 (QExplicitlySharedDataPointer::constData): 15797 (QExplicitlySharedDataPointer::operator==): 15798 (QExplicitlySharedDataPointer::operator!=): 15799 (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer): 15800 (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer): 15801 (QExplicitlySharedDataPointer::operator=): 15802 (QExplicitlySharedDataPointer::operator!): 15803 (::QExplicitlySharedDataPointer): 15804 * Api/qwebpagehistory_p.h: Renamed from WebKitQt/Api/qwebpagehistory_p.h. 15805 (QWebHistoryItemPrivate::QWebHistoryItemPrivate): 15806 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate): 15807 (QWebPageHistoryPrivate::QWebPageHistoryPrivate): 15808 (QWebPageHistoryPrivate::~QWebPageHistoryPrivate): 15809 * Api/qwebsettings.cpp: Renamed from WebKitQt/Api/qwebsettings.cpp. 15810 (QWebSettingsPrivate::QWebSettingsPrivate): 15811 (QWebSettings::QWebSettings): 15812 (QWebSettings::~QWebSettings): 15813 (QWebSettings::setMinimumFontSize): 15814 (QWebSettings::minimumFontSize): 15815 (QWebSettings::setMinimumLogicalFontSize): 15816 (QWebSettings::minimumLogicalFontSize): 15817 (QWebSettings::setDefaultFontSize): 15818 (QWebSettings::defaultFontSize): 15819 (QWebSettings::setDefaultFixedFontSize): 15820 (QWebSettings::defaultFixedFontSize): 15821 (QWebSettings::setUserStyleSheetLocation): 15822 (QWebSettings::userStyleSheetLocation): 15823 (QWebSettings::setIconDatabaseEnabled): 15824 (QWebSettings::iconDatabaseEnabled): 15825 (QWebSettings::setWebGraphic): 15826 (QWebSettings::webGraphic): 15827 (QWebSettings::operator=): 15828 (QWebSettings::setGlobal): 15829 (QWebSettings::global): 15830 (QWebSettings::setFontFamily): 15831 (QWebSettings::fontFamily): 15832 (QWebSettings::setAttribute): 15833 (QWebSettings::testAttribute): 15834 (loadResourcePixmap): 15835 * Api/qwebsettings.h: Renamed from WebKitQt/Api/qwebsettings.h. 15836 * ChangeLog: Renamed from WebKitQt/ChangeLog. 15837 * Plugins/ICOHandler.cpp: Renamed from WebKitQt/Plugins/ICOHandler.cpp. 15838 (IcoHeader::operator >>): 15839 (IcoHeader::BMP_INFOHDR::): 15840 (IcoHeader::operator<<): 15841 (IcoHeader::LessDifference::LessDifference): 15842 (IcoHeader::LessDifference::operator ()): 15843 (IcoHeader::loadFromDIB): 15844 (ICOHandler::ICOHandler): 15845 (ICOHandler::canRead): 15846 (ICOHandler::read): 15847 (ICOHandler::write): 15848 (ICOHandler::name): 15849 (ICOPlugin::keys): 15850 (ICOPlugin::capabilities): 15851 (ICOPlugin::create): 15852 * Plugins/ICOHandler.h: Renamed from WebKitQt/Plugins/ICOHandler.h. 15853 * Plugins/Plugins.pro: Renamed from WebKitQt/Plugins/Plugins.pro. 15854 * QtLauncher/QtLauncher.pro: Renamed from WebKitQt/QtLauncher/QtLauncher.pro. 15855 * QtLauncher/main.cpp: Renamed from WebKitQt/QtLauncher/main.cpp. 15856 (HoverLabel::HoverLabel): 15857 (HoverLabel::setHoverLink): 15858 (HoverLabel::sizeForFont): 15859 (HoverLabel::sizeHint): 15860 (HoverLabel::updateSize): 15861 (HoverLabel::resetAnimation): 15862 (HoverLabel::paintEvent): 15863 (HoverLabel::interpolate): 15864 (ClearButton::ClearButton): 15865 (ClearButton::paintEvent): 15866 (SearchEdit::SearchEdit): 15867 (SearchEdit::~SearchEdit): 15868 (SearchEdit::paintEvent): 15869 (SearchEdit::resizeEvent): 15870 (SearchEdit::moveEvent): 15871 (MainWindow::MainWindow): 15872 (MainWindow::changeLocation): 15873 (MainWindow::loadFinished): 15874 (MainWindow::showLinkHover): 15875 (MainWindow::resizeEvent): 15876 (main): 15877 * WebCoreSupport/ChromeClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.cpp. 15878 (WebCore::ChromeClientQt::ChromeClientQt): 15879 (WebCore::ChromeClientQt::~ChromeClientQt): 15880 (WebCore::ChromeClientQt::setWindowRect): 15881 (WebCore::ChromeClientQt::windowRect): 15882 (WebCore::ChromeClientQt::pageRect): 15883 (WebCore::ChromeClientQt::scaleFactor): 15884 (WebCore::ChromeClientQt::focus): 15885 (WebCore::ChromeClientQt::unfocus): 15886 (WebCore::ChromeClientQt::canTakeFocus): 15887 (WebCore::ChromeClientQt::takeFocus): 15888 (WebCore::ChromeClientQt::createWindow): 15889 (WebCore::ChromeClientQt::createModalDialog): 15890 (WebCore::ChromeClientQt::show): 15891 (WebCore::ChromeClientQt::canRunModal): 15892 (WebCore::ChromeClientQt::runModal): 15893 (WebCore::ChromeClientQt::setToolbarsVisible): 15894 (WebCore::ChromeClientQt::toolbarsVisible): 15895 (WebCore::ChromeClientQt::setStatusbarVisible): 15896 (WebCore::ChromeClientQt::statusbarVisible): 15897 (WebCore::ChromeClientQt::setScrollbarsVisible): 15898 (WebCore::ChromeClientQt::scrollbarsVisible): 15899 (WebCore::ChromeClientQt::setMenubarVisible): 15900 (WebCore::ChromeClientQt::menubarVisible): 15901 (WebCore::ChromeClientQt::setResizable): 15902 (WebCore::ChromeClientQt::addMessageToConsole): 15903 (WebCore::ChromeClientQt::chromeDestroyed): 15904 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel): 15905 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel): 15906 (WebCore::ChromeClientQt::closeWindowSoon): 15907 (WebCore::ChromeClientQt::runJavaScriptAlert): 15908 (WebCore::ChromeClientQt::runJavaScriptConfirm): 15909 (WebCore::ChromeClientQt::runJavaScriptPrompt): 15910 (WebCore::ChromeClientQt::setStatusbarText): 15911 (WebCore::ChromeClientQt::shouldInterruptJavaScript): 15912 (WebCore::ChromeClientQt::tabsToLinks): 15913 (WebCore::ChromeClientQt::windowResizerRect): 15914 (WebCore::ChromeClientQt::addToDirtyRegion): 15915 (WebCore::ChromeClientQt::scrollBackingStore): 15916 (WebCore::ChromeClientQt::updateBackingStore): 15917 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 15918 (WebCore::ChromeClientQt::setToolTip): 15919 (WebCore::ChromeClientQt::print): 15920 * WebCoreSupport/ChromeClientQt.h: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.h. 15921 * WebCoreSupport/ContextMenuClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.cpp. 15922 (WebCore::ContextMenuClientQt::contextMenuDestroyed): 15923 (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems): 15924 (WebCore::ContextMenuClientQt::contextMenuItemSelected): 15925 (WebCore::ContextMenuClientQt::downloadURL): 15926 (WebCore::ContextMenuClientQt::lookUpInDictionary): 15927 (WebCore::ContextMenuClientQt::speak): 15928 (WebCore::ContextMenuClientQt::stopSpeaking): 15929 (WebCore::ContextMenuClientQt::searchWithGoogle): 15930 * WebCoreSupport/ContextMenuClientQt.h: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.h. 15931 * WebCoreSupport/DragClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/DragClientQt.cpp. 15932 (WebCore::DragClientQt::actionMaskForDrag): 15933 (WebCore::DragClientQt::willPerformDragDestinationAction): 15934 (WebCore::DragClientQt::dragControllerDestroyed): 15935 (WebCore::DragClientQt::dragSourceActionMaskForPoint): 15936 (WebCore::DragClientQt::willPerformDragSourceAction): 15937 (WebCore::DragClientQt::startDrag): 15938 * WebCoreSupport/DragClientQt.h: Renamed from WebKitQt/WebCoreSupport/DragClientQt.h. 15939 (WebCore::DragClientQt::DragClientQt): 15940 * WebCoreSupport/EditCommandQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.cpp. 15941 (EditCommandQt::EditCommandQt): 15942 (EditCommandQt::~EditCommandQt): 15943 (EditCommandQt::redo): 15944 (EditCommandQt::undo): 15945 * WebCoreSupport/EditCommandQt.h: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.h. 15946 * WebCoreSupport/EditorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.cpp. 15947 (WebCore::EditorClientQt::shouldDeleteRange): 15948 (WebCore::EditorClientQt::shouldShowDeleteInterface): 15949 (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled): 15950 (WebCore::EditorClientQt::isGrammarCheckingEnabled): 15951 (WebCore::EditorClientQt::spellCheckerDocumentTag): 15952 (WebCore::EditorClientQt::shouldBeginEditing): 15953 (WebCore::EditorClientQt::shouldEndEditing): 15954 (WebCore::EditorClientQt::shouldInsertText): 15955 (WebCore::EditorClientQt::shouldChangeSelectedRange): 15956 (WebCore::EditorClientQt::shouldApplyStyle): 15957 (WebCore::EditorClientQt::shouldMoveRangeAfterDelete): 15958 (WebCore::EditorClientQt::didBeginEditing): 15959 (WebCore::EditorClientQt::respondToChangedContents): 15960 (WebCore::EditorClientQt::respondToChangedSelection): 15961 (WebCore::EditorClientQt::didEndEditing): 15962 (WebCore::EditorClientQt::didWriteSelectionToPasteboard): 15963 (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard): 15964 (WebCore::EditorClientQt::selectWordBeforeMenuEvent): 15965 (WebCore::EditorClientQt::isEditable): 15966 (WebCore::EditorClientQt::registerCommandForUndo): 15967 (WebCore::EditorClientQt::registerCommandForRedo): 15968 (WebCore::EditorClientQt::clearUndoRedoOperations): 15969 (WebCore::EditorClientQt::canUndo): 15970 (WebCore::EditorClientQt::canRedo): 15971 (WebCore::EditorClientQt::undo): 15972 (WebCore::EditorClientQt::redo): 15973 (WebCore::EditorClientQt::shouldInsertNode): 15974 (WebCore::EditorClientQt::pageDestroyed): 15975 (WebCore::EditorClientQt::smartInsertDeleteEnabled): 15976 (WebCore::EditorClientQt::toggleContinuousSpellChecking): 15977 (WebCore::EditorClientQt::toggleGrammarChecking): 15978 (WebCore::EditorClientQt::handleKeypress): 15979 (WebCore::EditorClientQt::handleInputMethodKeypress): 15980 (WebCore::EditorClientQt::EditorClientQt): 15981 (WebCore::EditorClientQt::textFieldDidBeginEditing): 15982 (WebCore::EditorClientQt::textFieldDidEndEditing): 15983 (WebCore::EditorClientQt::textDidChangeInTextField): 15984 (WebCore::EditorClientQt::doTextFieldCommandFromEvent): 15985 (WebCore::EditorClientQt::textWillBeDeletedInTextField): 15986 (WebCore::EditorClientQt::textDidChangeInTextArea): 15987 (WebCore::EditorClientQt::ignoreWordInSpellDocument): 15988 (WebCore::EditorClientQt::learnWord): 15989 (WebCore::EditorClientQt::checkSpellingOfString): 15990 (WebCore::EditorClientQt::checkGrammarOfString): 15991 (WebCore::EditorClientQt::updateSpellingUIWithGrammarString): 15992 (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord): 15993 (WebCore::EditorClientQt::showSpellingUI): 15994 (WebCore::EditorClientQt::spellingUIIsShowing): 15995 (WebCore::EditorClientQt::getGuessesForWord): 15996 (WebCore::EditorClientQt::isEditing): 15997 (WebCore::EditorClientQt::setInputMethodState): 15998 * WebCoreSupport/EditorClientQt.h: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.h. 15999 * WebCoreSupport/FrameLoaderClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp. 16000 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 16001 (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt): 16002 (WebCore::FrameLoaderClientQt::setFrame): 16003 (WebCore::FrameLoaderClientQt::webFrame): 16004 (WebCore::FrameLoaderClientQt::callPolicyFunction): 16005 (WebCore::FrameLoaderClientQt::slotCallPolicyFunction): 16006 (WebCore::FrameLoaderClientQt::hasWebView): 16007 (WebCore::FrameLoaderClientQt::hasFrameView): 16008 (WebCore::FrameLoaderClientQt::hasBackForwardList): 16009 (WebCore::FrameLoaderClientQt::resetBackForwardList): 16010 (WebCore::FrameLoaderClientQt::provisionalItemIsTarget): 16011 (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache): 16012 (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache): 16013 (WebCore::FrameLoaderClientQt::privateBrowsingEnabled): 16014 (WebCore::FrameLoaderClientQt::makeDocumentView): 16015 (WebCore::FrameLoaderClientQt::makeRepresentation): 16016 (WebCore::FrameLoaderClientQt::forceLayout): 16017 (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML): 16018 (WebCore::FrameLoaderClientQt::setCopiesOnScroll): 16019 (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset): 16020 (WebCore::FrameLoaderClientQt::resetAfterLoadError): 16021 (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError): 16022 (WebCore::FrameLoaderClientQt::willCloseDocument): 16023 (WebCore::FrameLoaderClientQt::detachedFromParent2): 16024 (WebCore::FrameLoaderClientQt::detachedFromParent3): 16025 (WebCore::FrameLoaderClientQt::detachedFromParent4): 16026 (WebCore::FrameLoaderClientQt::loadedFromCachedPage): 16027 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 16028 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad): 16029 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect): 16030 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect): 16031 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage): 16032 (WebCore::FrameLoaderClientQt::dispatchWillClose): 16033 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad): 16034 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle): 16035 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad): 16036 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): 16037 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 16038 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout): 16039 (WebCore::FrameLoaderClientQt::dispatchShow): 16040 (WebCore::FrameLoaderClientQt::cancelPolicyCheck): 16041 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): 16042 (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource): 16043 (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache): 16044 (WebCore::FrameLoaderClientQt::isLoadingFromPageCache): 16045 (WebCore::FrameLoaderClientQt::revertToProvisionalState): 16046 (WebCore::FrameLoaderClientQt::clearUnarchivingState): 16047 (WebCore::FrameLoaderClientQt::postProgressStartedNotification): 16048 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification): 16049 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): 16050 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady): 16051 (WebCore::FrameLoaderClientQt::willChangeTitle): 16052 (WebCore::FrameLoaderClientQt::didChangeTitle): 16053 (WebCore::FrameLoaderClientQt::finishedLoading): 16054 (WebCore::FrameLoaderClientQt::finalSetupForReplace): 16055 (WebCore::FrameLoaderClientQt::setDefersLoading): 16056 (WebCore::FrameLoaderClientQt::isArchiveLoadPending): 16057 (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad): 16058 (WebCore::FrameLoaderClientQt::clearArchivedResources): 16059 (WebCore::FrameLoaderClientQt::canShowMIMEType): 16060 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme): 16061 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme): 16062 (WebCore::FrameLoaderClientQt::frameLoadCompleted): 16063 (WebCore::FrameLoaderClientQt::restoreViewState): 16064 (WebCore::FrameLoaderClientQt::provisionalLoadStarted): 16065 (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent): 16066 (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll): 16067 (WebCore::FrameLoaderClientQt::didFinishLoad): 16068 (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement): 16069 (WebCore::FrameLoaderClientQt::setTitle): 16070 (WebCore::FrameLoaderClientQt::userAgent): 16071 (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon): 16072 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed): 16073 (WebCore::FrameLoaderClientQt::canHandleRequest): 16074 (WebCore::FrameLoaderClientQt::windowObjectCleared): 16075 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation): 16076 (WebCore::FrameLoaderClientQt::registerForIconNotification): 16077 (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage): 16078 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad): 16079 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload): 16080 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem): 16081 (WebCore::FrameLoaderClientQt::saveViewStateToItem): 16082 (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage): 16083 (WebCore::FrameLoaderClientQt::canCachePage): 16084 (WebCore::FrameLoaderClientQt::setMainDocumentError): 16085 (WebCore::FrameLoaderClientQt::committedLoad): 16086 (WebCore::FrameLoaderClientQt::cancelledError): 16087 (WebCore::FrameLoaderClientQt::blockedError): 16088 (WebCore::FrameLoaderClientQt::cannotShowURLError): 16089 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 16090 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError): 16091 (WebCore::FrameLoaderClientQt::fileDoesNotExistError): 16092 (WebCore::FrameLoaderClientQt::shouldFallBack): 16093 (WebCore::FrameLoaderClientQt::createDocumentLoader): 16094 (WebCore::FrameLoaderClientQt::download): 16095 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest): 16096 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 16097 (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge): 16098 (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge): 16099 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): 16100 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength): 16101 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading): 16102 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 16103 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache): 16104 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): 16105 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad): 16106 (WebCore::FrameLoaderClientQt::dispatchCreatePage): 16107 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 16108 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 16109 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 16110 (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy): 16111 (WebCore::FrameLoaderClientQt::startDownload): 16112 (WebCore::FrameLoaderClientQt::willUseArchive): 16113 (WebCore::FrameLoaderClientQt::createFrame): 16114 (WebCore::FrameLoaderClientQt::objectContentType): 16115 (WebCore::): 16116 (WebCore::FrameLoaderClientQt::createPlugin): 16117 (WebCore::FrameLoaderClientQt::redirectDataToPlugin): 16118 (WebCore::FrameLoaderClientQt::createJavaAppletWidget): 16119 (WebCore::FrameLoaderClientQt::overrideMediaType): 16120 * WebCoreSupport/FrameLoaderClientQt.h: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.h. 16121 * WebCoreSupport/InspectorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.cpp. 16122 (WebCore::InspectorClientQt::inspectorDestroyed): 16123 (WebCore::InspectorClientQt::createPage): 16124 (WebCore::InspectorClientQt::showWindow): 16125 (WebCore::InspectorClientQt::closeWindow): 16126 (WebCore::InspectorClientQt::attachWindow): 16127 (WebCore::InspectorClientQt::detachWindow): 16128 (WebCore::InspectorClientQt::highlight): 16129 (WebCore::InspectorClientQt::hideHighlight): 16130 * WebCoreSupport/InspectorClientQt.h: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.h. 16131 * WebKitPart/WebKitFactory.cpp: Renamed from WebKitQt/WebKitPart/WebKitFactory.cpp. 16132 (WebKitFactory::WebKitFactory): 16133 (WebKitFactory::~WebKitFactory): 16134 (WebKitFactory::createPartObject): 16135 (WebKitFactory::instance): 16136 (WebKitFactory::ref): 16137 (WebKitFactory::deref): 16138 * WebKitPart/WebKitFactory.h: Renamed from WebKitQt/WebKitPart/WebKitFactory.h. 16139 * WebKitPart/WebKitPart.cpp: Renamed from WebKitQt/WebKitPart/WebKitPart.cpp. 16140 (WebKitPart::WebKitPart): 16141 (WebKitPart::~WebKitPart): 16142 (WebKitPart::openFile): 16143 (WebKitPart::openUrl): 16144 (WebKitPart::closeUrl): 16145 (WebKitPart::parentPart): 16146 (WebKitPart::frame): 16147 (WebKitPart::initView): 16148 * WebKitPart/WebKitPart.desktop: Renamed from WebKitQt/WebKitPart/WebKitPart.desktop. 16149 * WebKitPart/WebKitPart.h: Renamed from WebKitQt/WebKitPart/WebKitPart.h. 16150 (WebKitPart::): 16151 * WebKitPart/WebKitPart.rc: Renamed from WebKitQt/WebKitPart/WebKitPart.rc. 16152 * WebKitPart/WebKitPartBrowser.rc: Renamed from WebKitQt/WebKitPart/WebKitPartBrowser.rc. 16153 * WebKitPart/WebKitPartBrowserExtension.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.cpp. 16154 (WebKitPartBrowserExtension::WebKitPartBrowserExtension): 16155 * WebKitPart/WebKitPartBrowserExtension.h: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.h. 16156 * WebKitPart/WebKitPartClient.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartClient.cpp. 16157 (WebKitPartClient::WebKitPartClient): 16158 (WebKitPartClient::~WebKitPartClient): 16159 * WebKitPart/WebKitPartClient.h: Renamed from WebKitQt/WebKitPart/WebKitPartClient.h. 16160 * WebKitPart/WebKitPartInterface.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.cpp. 16161 (WebKitPartInterface::WebKitPartInterface): 16162 (WebKitPartInterface::~WebKitPartInterface): 16163 (WebKitPartInterface::url): 16164 * WebKitPart/WebKitPartInterface.h: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.h. 16165 * WebKitPart/org.kde.WebKitPart.xml: Renamed from WebKitQt/WebKitPart/org.kde.WebKitPart.xml. 16166 16167 2007-10-02 Adam Treat <adam.treat (a] torchmobile.com> 16168 16169 Reviewed by Eric Seidel. 16170 16171 Open the requested url on the newly created window. 16172 Implement createModalDialog and provide new API for this. 16173 Patch by M. Mehdi Salem Naraghi (momesana) with additions by me. 16174 16175 * Api/qwebpage.cpp: 16176 (QWebPage::createModalDialog): 16177 * Api/qwebpage.h: 16178 * WebCoreSupport/ChromeClientQt.cpp: 16179 (WebCore::ChromeClientQt::createWindow): 16180 (WebCore::ChromeClientQt::createModalDialog): 16181 16182 2007-10-02 Lars Knoll <lars (a] trolltech.com> 16183 16184 Reviewed by bdash. 16185 16186 Add API to retrieve the frame name from QWebFrame. 16187 Implement support for DRT::dumpChildrenAsText. 16188 16189 * Api/qwebframe.cpp: 16190 (QWebFrame::name): 16191 * Api/qwebframe.h: 16192 16193 2007-10-02 Lars Knoll <lars (a] trolltech.com> 16194 16195 Reviewed by bdash. 16196 16197 Fix the handling of the response header for data urls. Make sure we always pass absolute URLs to WebKit from both DRT and QtLauncher. 16198 16199 * Api/qwebnetworkinterface.cpp: 16200 (QWebNetworkManager::started): 16201 (QWebNetworkManager::data): 16202 (QWebNetworkManager::finished): 16203 (QWebNetworkInterfacePrivate::sendFileData): 16204 (QWebNetworkInterfacePrivate::parseDataUrl): 16205 (WebCoreHttp::scheduleNextRequest): 16206 (WebCoreHttp::onSslErrors): 16207 * QtLauncher/main.cpp: 16208 (main): 16209 16210 2007-10-01 Lars Knoll <lars (a] trolltech.com> 16211 16212 Reviewed by Eric. 16213 16214 Fix a wrong extension mapping in the MIMETypeRegistry and identify about: url's as frames in the FrameLoaderClient. 16215 16216 * WebCoreSupport/FrameLoaderClientQt.cpp: 16217 (WebCore::FrameLoaderClientQt::makeDocumentView): 16218 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 16219 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): 16220 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad): 16221 (WebCore::FrameLoaderClientQt::objectContentType): 16222 (WebCore::FrameLoaderClientQt::createPlugin): 16223 16224 2007-09-30 George Staikos <staikos (a] kde.org> 16225 16226 Qt build fix (OS X specific). 16227 16228 * QtLauncher/QtLauncher.pro: 16229 16230 2007-09-26 Mark Rowe <mrowe (a] apple.com> 16231 16232 Qt build fix. 16233 16234 * WebCoreSupport/FrameLoaderClientQt.cpp: 16235 (WebCore::FrameLoaderClientQt::objectContentType): Check for empty URL instead of invalid URL. 16236 16237 2007-09-25 David Kilzer <ddkilzer (a] webkit.org> 16238 16239 Reviewed by Adam. 16240 16241 - Fix http://bugs.webkit.org/show_bug.cgi?id=14885 16242 LGPL'ed files contain incorrect FSF address 16243 16244 * Api/qcookiejar.cpp: 16245 * Api/qcookiejar.h: 16246 * Api/qwebframe.cpp: 16247 * Api/qwebframe.h: 16248 * Api/qwebframe_p.h: 16249 * Api/qwebhistoryinterface.cpp: 16250 * Api/qwebhistoryinterface.h: 16251 * Api/qwebkitglobal.h: 16252 * Api/qwebnetworkinterface.cpp: 16253 * Api/qwebnetworkinterface.h: 16254 * Api/qwebnetworkinterface_p.h: 16255 * Api/qwebobjectplugin.cpp: 16256 * Api/qwebobjectplugin.h: 16257 * Api/qwebobjectpluginconnector.cpp: 16258 * Api/qwebobjectpluginconnector.h: 16259 * Api/qwebpage.cpp: 16260 * Api/qwebpage.h: 16261 * Api/qwebpage_p.h: 16262 * Api/qwebpagehistory.cpp: 16263 * Api/qwebpagehistory.h: 16264 * Api/qwebsettings.cpp: 16265 * Api/qwebsettings.h: 16266 * WebCoreSupport/EditCommandQt.cpp: 16267 * WebCoreSupport/EditCommandQt.h: 16268 16269 2007-09-25 Adam Treat <adam.treat (a] torchmobile.com> 16270 16271 Reviewed by Simon and Lars. 16272 16273 Modifies the addToJSWindowObject to bind js objects using the built-in 16274 kjs_window class. Make sure to protect the created runtime object from 16275 garbage collection. 16276 16277 Adds a signal to QWebFrame to notify clients of the beginning of a 16278 provisional load. DRT needs this. 16279 16280 * Api/qwebframe.cpp: 16281 (QWebFrame::addToJSWindowObject): 16282 * Api/qwebframe.h: 16283 * WebCoreSupport/FrameLoaderClientQt.cpp: 16284 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad): 16285 16286 2007-09-10 Qing Zhao <qing (a] staikos.net> 16287 16288 Reviewed by George Staikos. 16289 16290 Don't re-encode urls, resulting in double encoding. Fixes login to 16291 GMail. 16292 16293 * Api/qwebnetworkinterface.cpp: 16294 (QWebNetworkRequestPrivate::init): 16295 (QWebNetworkManager::started): 16296 16297 2007-09-08 Mark Rowe <mrowe (a] apple.com> 16298 16299 Qt build fix. Move stub method implementations to the right class. 16300 16301 * WebCoreSupport/FrameLoaderClientQt.cpp: 16302 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation): 16303 16304 2007-09-08 Brady Eidson <beidson (a] apple.com> 16305 16306 YABF (Yet Another Build Fix) 16307 16308 * Api/qwebsettings.cpp: 16309 (QWebSettings::iconDatabaseEnabled): 16310 16311 2007-09-08 Brady Eidson <beidson (a] apple.com> 16312 16313 Better build fix 16314 16315 * WebCoreSupport/FrameLoaderClientQt.cpp: 16316 (WebCore::FrameLoaderClient::registerForIconNotification): 16317 * WebCoreSupport/FrameLoaderClientQt.h: 16318 16319 2007-09-08 Brady Eidson <beidson (a] apple.com> 16320 16321 Build fix 16322 16323 * WebCoreSupport/FrameLoaderClientQt.cpp: 16324 (WebCore::FrameLoaderClient::registerForIconNotification): 16325 * WebCoreSupport/FrameLoaderClientQt.h: 16326 16327 2007-09-05 Geoffrey Garen <ggaren (a] apple.com> 16328 16329 Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher. 16330 16331 Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no 16332 memory cache, or a very tiny one 16333 16334 Keep the Qt build working with an empty stub. 16335 16336 * WebCoreSupport/FrameLoaderClientQt.cpp: 16337 (WebCore::FrameLoaderClient::didPerformFirstNavigation): 16338 * WebCoreSupport/FrameLoaderClientQt.h: 16339 16340 2007-09-07 George Staikos <staikos (a] kde.org> 16341 16342 Fix typo. 16343 16344 * Api/qwebpage.cpp: 16345 (QWebPage::onLoadProgressChanged): 16346 16347 2007-09-07 Qing Zhao <qing (a] staikos.net> 16348 16349 Reviewed by Anders and George. 16350 16351 Export page size and load progress in bytes. 16352 16353 * Api/qwebpage.cpp: 16354 (QWebPage::QWebPage): 16355 (QWebPage::onLoadProgressChanged): 16356 (QWebPage::totalBytes): 16357 (QWebPage::bytesReceived): 16358 * Api/qwebpage.h: 16359 * Api/qwebpage_p.h: 16360 16361 2007-09-06 George Staikos <staikos (a] kde.org> 16362 16363 Reviewed by Anders. 16364 16365 Make popup windows work again. 16366 16367 * WebCoreSupport/FrameLoaderClientQt.cpp: 16368 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 16369 16370 2007-09-01 Oliver Hunt <oliver (a] apple.com> 16371 16372 Reviewed by Sam. 16373 16374 <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions 16375 16376 EditorClient::setInputMethodState stub 16377 16378 * WebCoreSupport/EditorClientQt.cpp: 16379 (WebCore::EditorClientQt::setInputMethodState): 16380 * WebCoreSupport/EditorClientQt.h: 16381 16382 2007-08-30 Simon Hausmann <hausmann (a] kde.org> 16383 16384 Reviewed by Zack. 16385 16386 Use QKeySequence::StandardKey for the page wise scrolling shortcuts. 16387 16388 * Api/qwebpage.cpp: 16389 (QWebPage::keyPressEvent): 16390 16391 2007-08-30 Simon Hausmann <hausmann (a] kde.org> 16392 16393 Reviewed by Zack. 16394 16395 When scrolling with the keyboard don't call update() on the entire widget. 16396 The scrollbar/scrollview implementation is already smart enough to scroll with bitblt 16397 on a value change. 16398 16399 * Api/qwebpage.cpp: 16400 (QWebPage::keyPressEvent): 16401 16402 2007-08-30 Simon Hausmann <hausmann (a] kde.org> 16403 16404 Reviewed by Zack. 16405 16406 Fix scrolling with the keyboard if only one of the two scrollbars is visible. 16407 16408 * Api/qwebpage.cpp: 16409 (QWebPage::keyPressEvent): 16410 16411 2007-08-29 Simon Hausmann <hausmann (a] kde.org> 16412 16413 Reviewed by Zack. 16414 16415 Fix compilation. 16416 16417 * WebCoreSupport/FrameLoaderClientQt.cpp: 16418 (WebCore::FrameLoaderClientQt::objectContentType): 16419 16420 2007-08-19 Mike Hommey <mh+webkit (a] glandium.org> 16421 16422 Reviewed by George Staikos. 16423 16424 Don't export ICO symbols. 16425 16426 * Plugins/Plugins.pro: 16427 16428 2007-08-19 George Staikos <staikos (a] kde.org> 16429 16430 Fix compilation. 16431 16432 * WebCoreSupport/FrameLoaderClientQt.cpp: 16433 (WebCore::FrameLoaderClientQt::createPlugin): 16434 * WebCoreSupport/FrameLoaderClientQt.h: 16435 16436 2007-08-10 Lars Knoll <lars (a] trolltech.com> 16437 16438 Reviewed and landed by Simon. 16439 16440 Limit the set of properties from the computed style to apply to Qt 16441 plugin widgets, as only a few of them make sense. 16442 16443 * WebCoreSupport/FrameLoaderClientQt.cpp: 16444 (WebCore::): 16445 16446 2007-08-10 Lars Knoll <lars (a] trolltech.com> 16447 16448 Reviewed by Simon. 16449 16450 Use <object>'s classid attribute for creation of plugins through QWebPage::createPlugin. 16451 16452 * Api/qwebpage.cpp: 16453 (QWebPage::createPlugin): 16454 * Api/qwebpage.h: 16455 * WebCoreSupport/FrameLoaderClientQt.cpp: 16456 (WebCore::FrameLoaderClientQt::objectContentType): 16457 (WebCore::FrameLoaderClientQt::createPlugin): 16458 16459 2007-08-10 Simon Hausmann <hausmann (a] kde.org> 16460 16461 Reviewed by Lars. 16462 16463 Added support for network jobs from Qt resources using the qrc protocol. 16464 16465 * Api/qwebnetworkinterface.cpp: 16466 (QWebNetworkInterface::addJob): 16467 16468 2007-08-10 Simon Hausmann <hausmann (a] kde.org> 16469 16470 Reviewed by Lars. 16471 16472 Added support for "application/x-qt-styled-widget" that is treated like "application/x-qt-plugin" but also 16473 gets a Qt widget stylesheet set from the CSS computed style and the element style attribute. 16474 16475 * WebCoreSupport/FrameLoaderClientQt.cpp: 16476 (WebCore::FrameLoaderClientQt::objectContentType): 16477 (WebCore::): 16478 (WebCore::FrameLoaderClientQt::createPlugin): 16479 16480 2007-08-10 Simon Hausmann <hausmann (a] kde.org> 16481 16482 Reviewed by Lars. 16483 16484 Added virtual QWebPage::createPlugin that is called for embedded objects with the mime type "application/x-qt-plugin" 16485 and fixed widget embedding by setting the right QWidget parent. 16486 16487 * Api/qwebpage.cpp: 16488 (QWebPage::createPlugin): 16489 * Api/qwebpage.h: 16490 * WebCoreSupport/FrameLoaderClientQt.cpp: 16491 (WebCore::FrameLoaderClientQt::objectContentType): 16492 (WebCore::FrameLoaderClientQt::createPlugin): 16493 16494 2007-08-02 George Staikos <staikos (a] kde.org> 16495 16496 Reviewed by Simon. 16497 16498 Add an interface for the useragent string. 16499 16500 * Api/qwebpage.cpp: 16501 (QWebPage::userAgentStringForUrl): 16502 * Api/qwebpage.h: 16503 * WebCoreSupport/FrameLoaderClientQt.cpp: 16504 (WebCore::FrameLoaderClientQt::userAgent): 16505 16506 2007-08-01 Adam Treat <adam.treat (a] torchmobile.com> 16507 16508 Reviewed by George Staikos. 16509 16510 Add an interface to manage global history for clients 16511 16512 * Api/headers.pri: 16513 * Api/qwebhistoryinterface.cpp: Added. 16514 (WebCore::historyContains): 16515 (gCleanupInterface): 16516 (QWebHistoryInterface::setDefaultInterface): 16517 (QWebHistoryInterface::defaultInterface): 16518 (QWebHistoryInterface::QWebHistoryInterface): 16519 * Api/qwebhistoryinterface.h: Added. 16520 16521 2007-07-30 Adam Treat <adam.treat (a] torchmobile.com> 16522 16523 Fix build. 16524 16525 * WebCoreSupport/EditorClientQt.cpp: 16526 (WebCore::EditorClientQt::shouldMoveRangeAfterDelete): 16527 * WebCoreSupport/EditorClientQt.h: 16528 16529 2007-07-30 Simon Hausmann <hausmann (a] kde.org> 16530 16531 Reviewed by Lars. 16532 16533 Link QtLauncher into $$OUTPUT_DIR/bin 16534 16535 * QtLauncher/QtLauncher.pro: 16536 16537 2007-07-29 Adam Treat <adam.treat (a] torchmobile.com> 16538 16539 Reviewed by George Staikos. 16540 16541 Change QWebPage::paintEvent to draw using the individual rects provided 16542 via the QRegion and set the widget to use opaque paint events. 16543 16544 These changes greatly reduce the cpu load as we are no longer painting the 16545 entire page for each 1px scroll :P 16546 16547 * Api/qwebframe.cpp: 16548 (QWebFrame::render): 16549 * Api/qwebpage.cpp: 16550 (QWebPage::QWebPage): 16551 (QWebPage::paintEvent): 16552 * WebCoreSupport/ChromeClientQt.cpp: 16553 (WebCore::ChromeClientQt::addToDirtyRegion): 16554 16555 2007-07-29 Adam Treat <adam.treat (a] torchmobile.com> 16556 16557 Reviewed by Alexey Proskuryakov. 16558 16559 Respect the margins when creating frames. 16560 Set the scroll mode to always off like we did before the rendered 16561 frames patch and the other ports do now. 16562 16563 * Api/qwebframe.cpp: 16564 (QWebFramePrivate::init): 16565 16566 2007-07-27 Holger Hans Peter Freyther <zecke (a] selfish.org> 16567 16568 Reviewed by Mark. 16569 16570 Don't create an app bundle on OSX to keep WebKitTools/Scripts/run-launcher working. 16571 16572 * QtLauncher/QtLauncher.pro: 16573 16574 2007-07-27 Simon Hausmann <hausmann (a] kde.org> 16575 16576 Reviewed by Lars. 16577 16578 Fix compilation with MSVC. 16579 16580 * Api/qwebpagehistory.cpp: 16581 (QWebPageHistory::operator=): 16582 * Api/qwebpagehistory.h: 16583 * Api/qwebsettings.cpp: 16584 (QWebSettings::operator=): 16585 * Api/qwebsettings.h: 16586 16587 2007-07-26 Qing Zhao <qing (a] staikos.net> 16588 16589 Reviewed by George Staikos. 16590 16591 Add a signal for history notification. 16592 16593 * Api/qwebpage.h: 16594 * WebCoreSupport/FrameLoaderClientQt.cpp: 16595 16596 2007-07-24 Adam Treat <adam.treat (a] torchmobile.com> 16597 16598 Reviewed by Niko and Lars. 16599 16600 These are no longer necessary or used. 16601 16602 * WebCoreSupport/FrameLoaderClientQt.cpp: 16603 * WebCoreSupport/FrameLoaderClientQt.h: 16604 16605 2007-07-20 Adam Treat <adam (a] staikos.net> 16606 16607 Reviewed by George Staikos. 16608 16609 Add a signal for first layout and add the action type for the policy 16610 function. 16611 16612 * Api/qwebpage.cpp: 16613 (QWebPagePrivate::navigationRequested): 16614 (QWebPage::navigationRequested): 16615 * Api/qwebpage.h: 16616 * Api/qwebpage_p.h: 16617 * WebCoreSupport/FrameLoaderClientQt.cpp: 16618 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout): 16619 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 16620 16621 2007-07-19 Adam Treat <adam.treat (a] torchmobile.com> 16622 16623 Reviewed by George. 16624 16625 Do a recursive layout on the frame's children. This fixes a 16626 segfault found when rendering some framesets. 16627 16628 * Api/qwebframe.cpp: 16629 (QWebFrame::render): 16630 (QWebFrame::layout): 16631 * Api/qwebframe.h: 16632 16633 2007-07-18 Timothy Hatcher <timothy (a] apple.com> 16634 16635 Reviewed by Adam. 16636 16637 Make the Page with the now required InspectorClient. 16638 16639 * Api/qwebpage.cpp: 16640 (QWebPagePrivate::QWebPagePrivate): 16641 * WebKitPart/WebKitPart.cpp: 16642 (WebKitPart::initView): 16643 16644 2007-07-18 Sam Weinig <sam (a] webkit.org> 16645 16646 Build fix. 16647 16648 * Api/qwebnetworkinterface.cpp: 16649 (QWebNetworkManager::started): 16650 * WebCoreSupport/FrameLoaderClientQt.cpp: 16651 (WebCore::FrameLoaderClientQt::canShowMIMEType): 16652 (WebCore::FrameLoaderClientQt::objectContentType): 16653 16654 2007-07-18 Lars Knoll <lars (a] trolltech.com> 16655 16656 Reviewed by Zack & Simon 16657 16658 Reallow setting of scrollbar policies on QWebFrame. 16659 16660 * Api/qwebframe.cpp: 16661 (QWebFrame::verticalScrollBarPolicy): 16662 (QWebFrame::setVerticalScrollBarPolicy): 16663 (QWebFrame::horizontalScrollBarPolicy): 16664 * Api/qwebframe.h: 16665 16666 2007-07-17 Adam Treat <adam.treat (a] torchmobile.com> 16667 16668 Build fix. 16669 16670 * WebCoreSupport/FrameLoaderClientQt.cpp: 16671 (WebCore::FrameLoaderClientQt::createFrame): 16672 16673 2007-07-17 Holger Hans Peter Freyther <zecke (a] selfish.org> 16674 16675 Blind build fix for Qt after r24366 by adding the additional 16676 WebCore::ResourceRequest& parameter to the download method. 16677 16678 * WebCoreSupport/FrameLoaderClientQt.cpp: 16679 (WebCore::FrameLoaderClientQt::download): 16680 * WebCoreSupport/FrameLoaderClientQt.h: 16681 16682 2007-07-17 Adam Roben <aroben (a] apple.com> 16683 16684 Remove ContextMenuClientQt::shouldIncludeInspectElementItem 16685 16686 Reviewed by Tim. 16687 16688 * WebCoreSupport/ContextMenuClientQt.cpp: 16689 * WebCoreSupport/ContextMenuClientQt.h: 16690 16691 2007-07-16 Adam Roben <aroben (a] apple.com> 16692 16693 Updated ChromeClientQt for ChromeClient changes. 16694 16695 Reviewed by Darin Adler. 16696 16697 * WebCoreSupport/ChromeClientQt.cpp: 16698 (WebCore::ChromeClientQt::print): Added a Frame* parameter. 16699 * WebCoreSupport/ChromeClientQt.h: Ditto. 16700 16701 2007-07-13 Mark Rowe <mrowe (a] apple.com> 16702 16703 Reviewed by Mitz. 16704 16705 Build fix. Stub out ChromeClientQt::print. 16706 16707 * WebCoreSupport/ChromeClientQt.cpp: 16708 (WebCore::ChromeClientQt::print): 16709 * WebCoreSupport/ChromeClientQt.h: 16710 16711 2007-07-12 George Staikos <staikos (a] kde.org> 16712 16713 Qt build fix for assertions. 16714 16715 * Api/qwebnetworkinterface.cpp: 16716 (QWebNetworkManager::add): 16717 16718 2007-07-12 George Staikos <staikos (a] kde.org> 16719 16720 Qt build fix. 16721 16722 * Api/qwebnetworkinterface.cpp: 16723 (QWebNetworkManager::add): 16724 16725 2007-07-10 Mark Rowe <mrowe (a] apple.com> 16726 16727 Qt build fix after r24126. 16728 16729 * Api/qwebframe.cpp: 16730 (QWebFrame::evaluateJavaScript): 16731 16732 2007-07-10 Eli Fidler <eli (a] staikos.net> 16733 16734 Reviewed by George Staikos. 16735 16736 Properly url-decode data urls. 16737 16738 * Api/qwebnetworkinterface.cpp: 16739 (QWebNetworkInterfacePrivate::parseDataUrl): 16740 16741 2007-07-09 Adam Treat <adam (a] staikos.net> 16742 16743 Reviewed by George Staikos. 16744 16745 Convert QWebFrame from a QFrame to a pure QObject to eliminate all 16746 traces of widgets. 16747 16748 * Api/qwebframe.cpp: 16749 (QWebFramePrivate::init): 16750 (QWebFramePrivate::parentFrame): 16751 (QWebFrame::QWebFrame): 16752 (QWebFrame::render): 16753 (QWebFrame::pos): 16754 (QWebFrame::geometry): 16755 (QWebFrame::evaluateJavaScript): 16756 (QWebFrame::mouseMoveEvent): 16757 (QWebFrame::mousePressEvent): 16758 (QWebFrame::mouseDoubleClickEvent): 16759 (QWebFrame::mouseReleaseEvent): 16760 (QWebFrame::wheelEvent): 16761 * Api/qwebframe.h: 16762 * Api/qwebobjectpluginconnector.cpp: 16763 (QWebObjectPluginConnector::pluginParentWidget): 16764 * Api/qwebpage.cpp: 16765 (QWebPagePrivate::QWebPagePrivate): 16766 (QWebPagePrivate::createMainFrame): 16767 (QWebPage::QWebPage): 16768 (QWebPage::javaScriptAlert): 16769 (QWebPage::javaScriptConfirm): 16770 (QWebPage::javaScriptPrompt): 16771 (QWebPage::resizeEvent): 16772 (QWebPage::paintEvent): 16773 (QWebPage::mouseMoveEvent): 16774 (QWebPage::mousePressEvent): 16775 (QWebPage::mouseDoubleClickEvent): 16776 (QWebPage::mouseReleaseEvent): 16777 (QWebPage::wheelEvent): 16778 (QWebPage::keyPressEvent): 16779 (QWebPage::keyReleaseEvent): 16780 (QWebPage::focusInEvent): 16781 (QWebPage::focusOutEvent): 16782 (QWebPage::focusNextPrevChild): 16783 (QWebPage::chooseFile): 16784 * Api/qwebpage.h: 16785 * Api/qwebpage_p.h: 16786 * WebCoreSupport/ChromeClientQt.cpp: 16787 (WebCore::ChromeClientQt::addToDirtyRegion): 16788 16789 2007-07-09 George Staikos <staikos (a] kde.org> 16790 16791 Fix a minor memory leak in the loader. 16792 16793 * Api/qwebnetworkinterface.cpp: 16794 (gCleanupInterface): 16795 (QWebNetworkInterface::setDefaultInterface): 16796 (QWebNetworkInterface::defaultInterface): 16797 16798 2007-07-09 George Staikos <staikos (a] kde.org> 16799 16800 Fix a massive memory leak in the loader. 16801 16802 * Api/qwebnetworkinterface.cpp: 16803 (QWebNetworkManager::httpConnectionClosed): 16804 (WebCoreHttp::~WebCoreHttp): 16805 16806 2007-07-09 George Staikos <staikos (a] kde.org> 16807 16808 Reviewed by Simon. 16809 16810 Rework much of the HTTP stuff to make it more stable, and add SSL and 16811 proxy support. Major memory leak also discovered but it needs more 16812 research as the obvious fix causes crashes. 16813 16814 * Api/qwebnetworkinterface.cpp: 16815 (QWebNetworkManager::add): 16816 (QWebNetworkManager::started): 16817 (QWebNetworkManager::data): 16818 (WebCoreHttp::WebCoreHttp): 16819 (WebCoreHttp::~WebCoreHttp): 16820 (WebCoreHttp::request): 16821 (WebCoreHttp::scheduleNextRequest): 16822 (WebCoreHttp::getConnection): 16823 (WebCoreHttp::onResponseHeaderReceived): 16824 (WebCoreHttp::onReadyRead): 16825 (WebCoreHttp::onRequestFinished): 16826 (WebCoreHttp::onDone): 16827 (WebCoreHttp::onStateChanged): 16828 (WebCoreHttp::onSslErrors): 16829 (WebCoreHttp::onAuthenticationRequired): 16830 (WebCoreHttp::onProxyAuthenticationRequired): 16831 * Api/qwebnetworkinterface.h: 16832 * Api/qwebnetworkinterface_p.h: 16833 (WebCore::WebCoreHttp::HttpConnection::HttpConnection): 16834 16835 2007-07-06 Adam Treat <adam (a] staikos.net> 16836 16837 Reviewed by George Staikos. 16838 16839 Convert QWebFrame to a QFrame from a scroll area. 16840 16841 * Api/qwebframe.cpp: 16842 (QWebFramePrivate::init): 16843 (QWebFramePrivate::parentFrame): 16844 (QWebFramePrivate::horizontalScrollBar): 16845 (QWebFramePrivate::verticalScrollBar): 16846 (QWebFrame::QWebFrame): 16847 (QWebFrame::resizeEvent): 16848 (QWebFrame::suppressScrollbars): 16849 (QWebFrame::paintEvent): 16850 (QWebFrame::mouseMoveEvent): 16851 (QWebFrame::mousePressEvent): 16852 (QWebFrame::mouseDoubleClickEvent): 16853 (QWebFrame::mouseReleaseEvent): 16854 (QWebFrame::wheelEvent): 16855 (QWebFrame::keyPressEvent): 16856 (QWebFrame::focusInEvent): 16857 (QWebFrame::focusOutEvent): 16858 (QWebFrame::evaluateJavaScript): 16859 * Api/qwebframe.h: 16860 * Api/qwebframe_p.h: 16861 * Api/qwebobjectpluginconnector.cpp: 16862 (QWebObjectPluginConnector::pluginParentWidget): 16863 16864 2007-07-04 Adam Roben <aroben (a] apple.com> 16865 16866 Added a stub for ChromeClientQt::setToolTip 16867 16868 Reviewed by Sam. 16869 16870 * WebCoreSupport/ChromeClientQt.cpp: 16871 (WebCore::ChromeClientQt::setToolTip): 16872 * WebCoreSupport/ChromeClientQt.h: 16873 16874 2007-07-04 Adam Roben <aroben (a] apple.com> 16875 16876 Added a stub for ChromeClientQt::mouseDidMoveOverElement 16877 16878 Reviewed by Sam. 16879 16880 * WebCoreSupport/ChromeClientQt.cpp: 16881 (WebCore::ChromeClientQt::mouseDidMoveOverElement): 16882 * WebCoreSupport/ChromeClientQt.h: 16883 16884 2007-06-28 Simon Hausmann <hausmann (a] kde.org> 16885 16886 Reviewed by Zack. 16887 16888 Propagate mouse double click events from Qt to WebCore. 16889 16890 * Api/qwebframe.cpp: 16891 (QWebFrame::mouseDoubleClickEvent): 16892 * Api/qwebframe.h: 16893 16894 2007-06-28 Simon Hausmann <hausmann (a] kde.org> 16895 16896 Reviewed by Zack. 16897 16898 Implemented clipboard functions in QWebPage, in particular can(Cut|Copy|Paste), cut/copy/paste as slot as well as a selectionChanged() signal. 16899 16900 * Api/qwebpage.cpp: 16901 (QWebPage::canCut): 16902 (QWebPage::canCopy): 16903 (QWebPage::canPaste): 16904 (QWebPage::cut): 16905 (QWebPage::copy): 16906 (QWebPage::paste): 16907 * Api/qwebpage.h: 16908 * WebCoreSupport/EditorClientQt.cpp: 16909 16910 2007-06-27 George Staikos <staikos (a] kde.org> 16911 16912 Compile with various Qt configurations. 16913 16914 * Api/qwebnetworkinterface.cpp: 16915 (WebCoreHttp::scheduleNextRequest): 16916 * Api/qwebpage.cpp: 16917 (QWebPage::javaScriptPrompt): 16918 (QWebPage::dragEnterEvent): 16919 (QWebPage::dragLeaveEvent): 16920 (QWebPage::dragMoveEvent): 16921 (QWebPage::dropEvent): 16922 (QWebPage::chooseFile): 16923 * Api/qwebpage.h: 16924 * Api/qwebpage_p.h: 16925 * WebCoreSupport/DragClientQt.cpp: 16926 (WebCore::DragClientQt::startDrag): 16927 16928 2007-06-27 Eli Fidler <eli (a] staikos.net> 16929 16930 Reviewed by George Staikos. 16931 16932 Check for QT_NO_IMAGE_TEXT and compile either way. 16933 16934 * Plugins/ICOHandler.cpp: 16935 (ICOHandler::read): 16936 16937 2007-06-27 Eli Fidler <eli (a] staikos.net> 16938 16939 Reviewed by George Staikos. 16940 16941 Remove QT3_SUPPORT dependency in the ICO plugin. 16942 16943 * Plugins/ICOHandler.cpp: 16944 (IcoHeader::loadFromDIB): 16945 16946 2007-06-25 George Staikos <staikos (a] kde.org> 16947 16948 Reviewed by Zack. 16949 16950 Start to add proxy and SSL support to WebKit Qt. Proxy works 16951 unauthenticated. Added hooks to be able to add authentication. 16952 Also fixes some network errors. 16953 16954 * Api/qwebnetworkinterface.cpp: 16955 (QWebNetworkRequestPrivate::setURL): 16956 (QWebNetworkJob::frame): 16957 (WebCoreHttp::WebCoreHttp): 16958 (WebCoreHttp::scheduleNextRequest): 16959 (WebCoreHttp::onRequestFinished): 16960 (WebCoreHttp::onDone): 16961 (WebCoreHttp::onSslErrors): 16962 (WebCoreHttp::onAuthenticationRequired): 16963 (WebCoreHttp::onProxyAuthenticationRequired): 16964 * Api/qwebnetworkinterface.h: 16965 * Api/qwebnetworkinterface_p.h: 16966 * Api/qwebpage.cpp: 16967 (QWebPage::setNetworkProxy): 16968 (QWebPage::networkProxy): 16969 * Api/qwebpage.h: 16970 * Api/qwebpage_p.h: 16971 16972 2007-06-21 Adam Treat <adam (a] staikos.net> 16973 16974 Reviewed by George Staikos. 16975 16976 Implement the default resources on Qt. 16977 16978 * Api/qwebpage.cpp: 16979 (QWebPage::icon): 16980 * Api/qwebsettings.cpp: 16981 (QWebSettings::setWebGraphic): 16982 (QWebSettings::webGraphic): 16983 (loadResourcePixmap): 16984 * Api/qwebsettings.h: 16985 16986 2007-06-15 Adam Treat <adam (a] staikos.net> 16987 16988 Reviewed by George Staikos. 16989 16990 Add ICO support to the Qt build. 16991 16992 * Api/qwebpage.cpp: 16993 (QWebPage::icon): 16994 * Api/qwebpage.h: 16995 * Api/qwebsettings.cpp: 16996 (QWebSettings::setIconDatabaseEnabled): 16997 (QWebSettings::iconDatabaseEnabled): 16998 * Api/qwebsettings.h: 16999 * Plugins: Added. 17000 * Plugins/ICOHandler.cpp: Added. 17001 (IcoHeader::operator >>): 17002 (IcoHeader::BMP_INFOHDR::): 17003 (IcoHeader::operator<<): 17004 (IcoHeader::LessDifference::LessDifference): 17005 (IcoHeader::LessDifference::operator ()): 17006 (IcoHeader::loadFromDIB): 17007 (ICOHandler::ICOHandler): 17008 (ICOHandler::canRead): 17009 (ICOHandler::read): 17010 (ICOHandler::write): 17011 (ICOHandler::name): 17012 (ICOPlugin::keys): 17013 (ICOPlugin::capabilities): 17014 (ICOPlugin::create): 17015 * Plugins/ICOHandler.h: Added. 17016 * Plugins/Plugins.pro: Added. 17017 * WebCoreSupport/FrameLoaderClientQt.cpp: 17018 (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon): 17019 17020 2007-06-15 George Staikos <staikos (a] kde.org> 17021 17022 Fixing the Qt build. 17023 17024 * WebCoreSupport/ContextMenuClientQt.cpp: 17025 (WebCore::ContextMenuClientQt::shouldIncludeInspectElementItem): 17026 * WebCoreSupport/ContextMenuClientQt.h: 17027 17028 2007-06-20 Adam Roben <aroben (a] apple.com> 17029 17030 More speculative Qt build fixes. 17031 17032 Add a stub implementation of InspectorClientQt. 17033 17034 * WebCoreSupport/InspectorClientQt.cpp: Added. 17035 (WebCore::InspectorClientQt::inspectorDestroyed): 17036 (WebCore::InspectorClientQt::createPage): 17037 (WebCore::InspectorClientQt::showWindow): 17038 (WebCore::InspectorClientQt::closeWindow): 17039 (WebCore::InspectorClientQt::attachWindow): 17040 (WebCore::InspectorClientQt::detachWindow): 17041 (WebCore::InspectorClientQt::highlight): 17042 (WebCore::InspectorClientQt::hideHighlight): 17043 * WebCoreSupport/InspectorClientQt.h: Added. 17044 17045 2007-06-19 George Staikos <staikos (a] kde.org> 17046 17047 Reviewed by Tim Hatcher. 17048 17049 Add https support. 17050 17051 * Api/qwebnetworkinterface.cpp: 17052 (QWebNetworkInterface::addJob): 17053 (QWebNetworkInterface::cancelJob): 17054 (WebCoreHttp::WebCoreHttp): 17055 17056 2007-06-14 George Staikos <staikos (a] kde.org> 17057 17058 Reviewed by Lars. 17059 17060 Add evaluateJavaScript() method. 17061 17062 * Api/qwebframe.cpp: 17063 (QWebFrame::evaluateJavaScript): 17064 * Api/qwebframe.h: 17065 17066 2007-06-14 George Staikos <staikos (a] kde.org> 17067 17068 Reviewed by Lars. 17069 17070 Implement most of the editing commands, better focus handling, fix some 17071 keyboard and mouse handling, and add keyboard navigation. May be 17072 refactored later as the key switches are ugly. 17073 17074 * Api/qwebframe.cpp: 17075 (QWebFramePrivate::init): 17076 (QWebFrame::mousePressEvent): 17077 (QWebFrame::mouseReleaseEvent): 17078 (QWebFrame::wheelEvent): 17079 (QWebFrame::keyPressEvent): 17080 (QWebFrame::keyReleaseEvent): 17081 (QWebFrame::focusInEvent): 17082 (QWebFrame::focusOutEvent): 17083 (QWebFrame::focusNextPrevChild): 17084 * Api/qwebframe.h: 17085 * Api/qwebframe_p.h: 17086 * WebCoreSupport/EditorClientQt.cpp: 17087 (WebCore::EditorClientQt::handleKeypress): 17088 17089 2007-06-14 George Staikos <staikos (a] kde.org> 17090 17091 Reviewed by Lars. 17092 17093 Implement all of the Javascript dialogs and file chooser. 17094 Also makes the statusbar virtual into a signal and shuffles some 17095 virtuals around a bit. The helper in FrameLoaderClientQt may go away 17096 shortly. 17097 17098 * Api/qwebpage.cpp: 17099 (QWebPagePrivate::QWebPagePrivate): 17100 (QWebPage::javaScriptAlert): 17101 (QWebPage::javaScriptConfirm): 17102 (QWebPage::javaScriptPrompt): 17103 (QWebPage::chooseFile): 17104 * Api/qwebpage.h: 17105 * WebCoreSupport/ChromeClientQt.cpp: 17106 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel): 17107 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel): 17108 (WebCore::ChromeClientQt::runJavaScriptAlert): 17109 (WebCore::ChromeClientQt::runJavaScriptConfirm): 17110 (WebCore::ChromeClientQt::runJavaScriptPrompt): 17111 (WebCore::ChromeClientQt::setStatusbarText): 17112 * WebCoreSupport/FrameLoaderClientQt.cpp: 17113 (WebCore::FrameLoaderClientQt::chooseFile): 17114 * WebCoreSupport/FrameLoaderClientQt.h: 17115 17116 2007-06-14 Simon Hausmann <hausmann (a] kde.org> 17117 17118 Reviewed by Zack. 17119 17120 Removed QWebHistoryItem::parent() as it is not implemented and WebCore's 17121 17122 HistoryItem itself doesn't seem to have a parent pointer either. 17123 17124 * Api/qwebpagehistory.h: 17125 17126 2007-06-14 Simon Hausmann <hausmann (a] kde.org> 17127 17128 Reviewed by Zack. 17129 17130 Make it possible to copy QWebHistoryItem objects. 17131 17132 * Api/qwebpagehistory.cpp: 17133 * Api/qwebpagehistory.h: 17134 17135 2007-06-14 Lars Knoll <lars (a] trolltech.com> 17136 17137 Reviewed by George 17138 17139 Fix a crash when a request from the plugin resulted 17140 in a HTTP redirect. 17141 17142 * Api/qwebnetworkinterface.cpp: 17143 (QWebNetworkManager::started): 17144 17145 2007-06-14 Lars Knoll <lars (a] trolltech.com> 17146 17147 Reviewed by George. 17148 17149 Work around a bug in Qt's QHttp implementation and 17150 get web pages to load again. 17151 17152 * Api/qwebpage.cpp: 17153 (QWebPage::open): 17154 17155 2007-06-13 Simon Hausmann <hausmann (a] kde.org> 17156 17157 Reviewed by Lars. 17158 17159 Added a make install target that installs the Qt port and renamed 17160 WebKitQt to QtWebKit 17161 17162 * Api/headers.pri: Added. 17163 * Api/qtwebkit.prf: Added. 17164 17165 2007-06-13 Simon Hausmann <hausmann (a] kde.org> 17166 17167 Reviewed by Lars. 17168 17169 Added httpHeaderField setter/getter to QWebNetworkRequest for convenience. 17170 17171 * Api/qwebnetworkinterface.cpp: 17172 * Api/qwebnetworkinterface.h: 17173 17174 2007-06-13 Simon Hausmann <hausmann (a] kde.org> 17175 17176 Reviewed by Lars. 17177 17178 Changed QWebObjectPluginConnector::requestUrl to take a QWebNetworkRequest as argument. 17179 17180 * Api/qwebnetworkinterface.h: 17181 * Api/qwebobjectpluginconnector.cpp: 17182 (QWebObjectPluginConnector::requestUrl): 17183 * Api/qwebobjectpluginconnector.h: 17184 17185 2007-06-13 Simon Hausmann <hausmann (a] kde.org> 17186 17187 Reviewed by Lars. 17188 17189 Added a QWebNetworkRequest convenience constructor. 17190 17191 * Api/qwebnetworkinterface.cpp: 17192 * Api/qwebnetworkinterface.h: 17193 * Api/qwebpage.cpp: 17194 (QWebPage::open): 17195 17196 2007-06-13 Simon Hausmann <hausmann (a] kde.org> 17197 17198 Reviewed by Lars. 17199 17200 Changed the QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData) 17201 overload to take a QWebNetworkRequest instead. 17202 17203 * Api/qwebpage.cpp: 17204 (QWebPage::open): 17205 * Api/qwebpage.h: 17206 17207 2007-06-13 Simon Hausmann <hausmann (a] kde.org> 17208 17209 Reviewed by Lars. 17210 17211 In QWebPage::open(const QUrl &, const QHttpRequestHeader &, ...) don't make the population 17212 of the WebCore::ResourceRequest depend on the validity of the QHttpRequestHeader but just 17213 pick the individual fields if we can use them. 17214 17215 * Api/qwebpage.cpp: 17216 (QWebPage::open): 17217 17218 2007-06-13 Simon Hausmann <hausmann (a] kde.org> 17219 17220 Reviewed by Lars. 17221 17222 Minor QWebNetworkRequet API fixlet 17223 17224 * Api/qwebnetworkinterface.cpp: 17225 * Api/qwebnetworkinterface.h: 17226 17227 2007-06-13 Simon Hausmann <hausmann (a] kde.org> 17228 17229 Reviewed by Lars. 17230 17231 Use QWebNetworkRequest for QWebPage::navigationRequested. 17232 17233 * Api/qwebnetworkinterface.cpp: 17234 * Api/qwebnetworkinterface.h: 17235 * Api/qwebpage.cpp: 17236 (QWebPagePrivate::navigationRequested): 17237 (QWebPage::navigationRequested): 17238 * Api/qwebpage.h: 17239 * Api/qwebpage_p.h: 17240 * WebCoreSupport/FrameLoaderClientQt.cpp: 17241 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 17242 17243 2007-06-13 Simon Hausmann <hausmann (a] kde.org> 17244 17245 Reviewed by Lars. 17246 17247 Some docs for QWebNetworkRequest 17248 17249 * Api/qwebnetworkinterface.cpp: 17250 (QWebNetworkRequest::QWebNetworkRequest): 17251 (QWebNetworkRequest::~QWebNetworkRequest): 17252 17253 2007-06-13 Simon Hausmann <hausmann (a] kde.org> 17254 17255 Reviewed by Lars. 17256 17257 Moved QWebNetworkJob::Method enum into QWebNetworkRequest. 17258 17259 * Api/qwebnetworkinterface.h: 17260 * Api/qwebobjectpluginconnector.cpp: 17261 (QWebObjectPluginConnector::requestUrl): 17262 * Api/qwebobjectpluginconnector.h: 17263 17264 2007-06-13 Simon Hausmann <hausmann (a] kde.org> 17265 17266 Reviewed by Lars. 17267 17268 Rename QWebNetworkJob::request() into QWebNetworkJob::httpHeader() and added 17269 17270 * Api/qwebnetworkinterface.cpp: 17271 (QWebNetworkJob::postData): 17272 (WebCoreHttp::WebCoreHttp): 17273 (WebCoreHttp::scheduleNextRequest): 17274 * Api/qwebnetworkinterface.h: 17275 17276 2007-06-13 Simon Hausmann <hausmann (a] kde.org> 17277 17278 Reviewed by Lars. 17279 17280 Introduce QWebNetworkRequest in the public API. 17281 17282 * Api/qwebnetworkinterface.cpp: 17283 (QWebNetworkRequestPrivate::init): 17284 * Api/qwebnetworkinterface.h: 17285 * Api/qwebnetworkinterface_p.h: 17286 * WebCoreSupport/FrameLoaderClientQt.cpp: 17287 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 17288 17289 2007-06-13 Simon Hausmann <hausmann (a] kde.org> 17290 17291 Reviewed by Lars. 17292 17293 Changed QWebNetworkJobPrivate to aggregate a QWebNetworkRequest instead of inheriting from it. 17294 17295 * Api/qwebnetworkinterface.cpp: 17296 (QWebNetworkManager::add): 17297 (QWebNetworkManager::started): 17298 (QWebNetworkManager::data): 17299 (QWebNetworkManager::finished): 17300 * Api/qwebnetworkinterface_p.h: 17301 * Api/qwebobjectpluginconnector.cpp: 17302 (QWebObjectPluginConnector::requestUrl): 17303 17304 2007-06-13 Simon Hausmann <hausmann (a] kde.org> 17305 17306 Reviewed by Lars. 17307 17308 Rename QWebNetworkRequest::request into QWebNetworkRequest::httpHeader. 17309 17310 * Api/qwebnetworkinterface.cpp: 17311 (QWebNetworkRequest::init): 17312 (QWebNetworkRequest::setURL): 17313 (QWebNetworkManager::add): 17314 (QWebNetworkManager::started): 17315 * Api/qwebnetworkinterface_p.h: 17316 * WebCoreSupport/FrameLoaderClientQt.cpp: 17317 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 17318 17319 2007-06-12 Lars Knoll <lars (a] trolltech.com> 17320 17321 Reviewed by George Staikos. 17322 17323 Remove duplicate symbols. 17324 17325 * Api/qwebobjectplugin_p.h: 17326 17327 2007-06-13 Lars Knoll <lars (a] trolltech.com> 17328 17329 Reviewed by Niko. 17330 17331 Fix compilation, and remove dependency on Qt 17332 private header. 17333 17334 * Api/qwebobjectplugin_p.h: 17335 (QWebFactoryLoader::supportsMimeType): 17336 17337 2007-06-13 Lars Knoll <lars (a] trolltech.com> 17338 17339 Reviewed by Niko. 17340 17341 Parts of the patch done by Zack. 17342 Fix up some parts in the implementation of QWebNetworkInterface 17343 so it can be used by plugins. 17344 Change the plugin API so we can actually get all the information 17345 required by the JS bridge from them as well. 17346 17347 * Api/qwebnetworkinterface.cpp: 17348 (QWebNetworkJob::cancelled): 17349 (QWebNetworkManager::cancel): 17350 (QWebNetworkManager::started): 17351 (QWebNetworkManager::finished): 17352 * Api/qwebobjectplugin.cpp: 17353 (QWebFactoryLoader::QWebFactoryLoader): 17354 (QWebFactoryLoader::descriptionForName): 17355 (QWebFactoryLoader::mimetypesForName): 17356 (QWebFactoryLoader::mimeTypeForExtension): 17357 (QWebFactoryLoader::extensions): 17358 (QWebFactoryLoader::nameForMimetype): 17359 (QWebFactoryLoader::create): 17360 (QWebObjectPlugin::descriptionForKey): 17361 (QWebObjectPlugin::mimetypesForKey): 17362 * Api/qwebobjectplugin.h: 17363 * Api/qwebobjectplugin_p.h: 17364 (QWebFactoryLoader::names): 17365 * Api/qwebobjectpluginconnector.cpp: 17366 (QWebObjectPluginConnector::requestUrl): 17367 * Api/qwebpage.cpp: 17368 (QWebPage::networkInterface): 17369 17370 2007-06-11 Simon Hausmann <hausmann (a] kde.org> 17371 17372 Reviewed by Lars. 17373 17374 Added a QWebPage::open overload to allow specifying the http header and post data. 17375 (it's an overload instead of a merged openUrl to avoid including qhttp.h in qwebpage.h, 17376 which would imply that one has to have QT += network in the .pro file for using WebKitQt) 17377 17378 * Api/qwebpage.cpp: 17379 * Api/qwebpage.h: 17380 17381 2007-06-11 Simon Hausmann <hausmann (a] kde.org> 17382 17383 Reviewed by Lars. 17384 17385 Added the possibility to intercept url requests through QWebPage::navigationRequested. 17386 17387 * Api/qwebpage.cpp: 17388 (QWebPagePrivate::QWebPagePrivate): 17389 (QWebPage::createFrame): 17390 * Api/qwebpage.h: 17391 * Api/qwebpage_p.h: 17392 * WebCoreSupport/FrameLoaderClientQt.cpp: 17393 17394 2007-06-11 Simon Hausmann <hausmann (a] kde.org> 17395 17396 Reviewed by Lars. 17397 17398 Added a QWebNetworkRequest::init overload that takes a WebCore::ResourceRequest, 17399 to be called from FrameLoaderClientQt in the near future. 17400 17401 * Api/qwebnetworkinterface.cpp: 17402 (QWebNetworkManager::add): 17403 * Api/qwebnetworkinterface_p.h: 17404 17405 2007-06-11 Simon Hausmann <hausmann (a] kde.org> 17406 17407 Reviewed by Lars. 17408 17409 Moved the postData setup into QWebNetworkRequest::init. 17410 17411 * Api/qwebnetworkinterface.cpp: 17412 (QWebNetworkRequest::init): 17413 (QWebNetworkManager::add): 17414 17415 2007-06-11 Simon Hausmann <hausmann (a] kde.org> 17416 17417 Reviewed by Lars. 17418 17419 Moved HTTP header field propagation to QWebNetworkRequest::init. 17420 17421 * Api/qwebnetworkinterface.cpp: 17422 (QWebNetworkRequest::init): 17423 (QWebNetworkManager::add): 17424 17425 2007-06-11 Simon Hausmann <hausmann (a] kde.org> 17426 17427 Reviewed by Lars. 17428 17429 Started moving the code to separate a WebCore::ResourceRequest into a QUrl, postData 17430 and QHttpRequestHeader into a separate little QWebNetworkRequest struct. 17431 17432 * Api/qwebnetworkinterface.cpp: 17433 (QWebNetworkRequest::init): 17434 (QWebNetworkManager::add): 17435 * Api/qwebnetworkinterface_p.h: 17436 * Api/qwebobjectpluginconnector.cpp: 17437 (QWebObjectPluginConnector::requestUrl): 17438 17439 2007-06-11 Zack Rusin <zrusin (a] trolltech.com> 17440 17441 Reviewed by Lars 17442 17443 Forgot to export the plugin connector. 17444 17445 * Api/qwebobjectpluginconnector.h 17446 17447 2007-06-08 Lars Knoll <lars (a] trolltech.com> 17448 17449 Reviewed by Zack. 17450 17451 Add a QWebObjectPluginConnector class. The class will 17452 facility communication between the plugin and WebKit. 17453 Currently it's used to make the plugin network capable. 17454 17455 * Api/qwebnetworkinterface.cpp: 17456 (QWebNetworkJobPrivate::setDefaults): 17457 (QWebNetworkManager::add): 17458 (QWebNetworkManager::started): 17459 (QWebNetworkManager::data): 17460 (QWebNetworkManager::finished): 17461 * Api/qwebnetworkinterface.h: 17462 * Api/qwebnetworkinterface_p.h: 17463 (QWebNetworkJobPrivate::QWebNetworkJobPrivate): 17464 * Api/qwebobjectplugin.cpp: 17465 (QWebFactoryLoader::create): 17466 * Api/qwebobjectplugin.h: 17467 * Api/qwebobjectplugin_p.h: 17468 * Api/qwebobjectpluginconnector.cpp: Added. 17469 (QWebObjectPluginConnector::QWebObjectPluginConnector): 17470 (QWebObjectPluginConnector::frame): 17471 (QWebObjectPluginConnector::pluginParentWidget): 17472 (QWebObjectPluginConnector::requestUrl): 17473 * Api/qwebobjectpluginconnector.h: Added. 17474 (QWebObjectPluginConnector::): 17475 * WebCoreSupport/FrameLoaderClientQt.cpp: 17476 (WebCore::FrameLoaderClientQt::createPlugin): 17477 17478 2007-06-06 Lars Knoll <lars (a] trolltech.com> 17479 17480 Reviewed by Zack 17481 17482 Add an API to create and load plugins. 17483 Don't include moc files by hand anymore, rather let 17484 qmake handle them. 17485 17486 * Api/qcookiejar.cpp: 17487 (QCookieJar::cookieJar): 17488 * Api/qwebframe.cpp: 17489 (QWebFrame::scrollContentsBy): 17490 * Api/qwebnetworkinterface.cpp: 17491 * Api/qwebobjectplugin.cpp: Added. 17492 (QWebFactoryLoader::QWebFactoryLoader): 17493 (QWebFactoryLoader::self): 17494 (QWebFactoryLoader::mimeTypeForExtension): 17495 (QWebFactoryLoader::create): 17496 (QWebObjectPlugin::QWebObjectPlugin): 17497 (QWebObjectPlugin::~QWebObjectPlugin): 17498 (QWebObjectPlugin::extensionsForMimetype): 17499 * Api/qwebobjectplugin.h: Added. 17500 * Api/qwebobjectplugin_p.h: Added. 17501 (QWebFactoryLoader::mimeTypes): 17502 (QWebFactoryLoader::extensions): 17503 (QWebFactoryLoader::supportsMimeType): 17504 * Api/qwebpage.cpp: 17505 (QWebPage::settings): 17506 * WebCoreSupport/FrameLoaderClientQt.cpp: 17507 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 17508 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification): 17509 (WebCore::FrameLoaderClientQt::objectContentType): 17510 (WebCore::FrameLoaderClientQt::createPlugin): 17511 17512 2007-05-28 Zack Rusin <zrusin (a] trolltech.com> 17513 17514 Reviewed by andersca and simon 17515 17516 Adding public settings Api to the Qt port. 17517 QWebSetting's is a value based settings 17518 object settable on the QWebPage. 17519 17520 * Api/qwebpage.cpp: 17521 (QWebPagePrivate::QWebPagePrivate): 17522 (QWebPage::QWebPage): 17523 (QWebPage::setSettings): 17524 (QWebPage::settings): 17525 * Api/qwebpage.h: 17526 * Api/qwebsettings.cpp: Added. 17527 (QWebSettingsPrivate::QWebSettingsPrivate): 17528 (QWebSettings::QWebSettings): 17529 (QWebSettings::~QWebSettings): 17530 (QWebSettings::setMinimumFontSize): 17531 (QWebSettings::minimumFontSize): 17532 (QWebSettings::setMinimumLogicalFontSize): 17533 (QWebSettings::minimumLogicalFontSize): 17534 (QWebSettings::setDefaultFontSize): 17535 (QWebSettings::defaultFontSize): 17536 (QWebSettings::setDefaultFixedFontSize): 17537 (QWebSettings::defaultFixedFontSize): 17538 (QWebSettings::setUserStyleSheetLocation): 17539 (QWebSettings::userStyleSheetLocation): 17540 (QWebSettings::setGlobal): 17541 (QWebSettings::global): 17542 (QWebSettings::setFontFamily): 17543 (QWebSettings::fontFamily): 17544 (QWebSettings::setAttribute): 17545 (QWebSettings::testAttribute): 17546 * Api/qwebsettings.h: Added. 17547 * QtLauncher/main.cpp: 17548 (main): 17549 2007-05-27 Kevin Ollivier <kevino (a] theolliviers.com> 17550 17551 Reviewed by Sam Weinig. 17552 17553 Consolidate all notImplemented() macro definitions into 17554 one header file for all platforms. 17555 17556 * WebCoreSupport/ChromeClientQt.cpp: 17557 * WebCoreSupport/ContextMenuClientQt.cpp: 17558 * WebCoreSupport/EditorClientQt.cpp: 17559 * WebCoreSupport/FrameLoaderClientQt.cpp: 17560 17561 2007-05-25 George Staikos <staikos (a] kde.org> 17562 17563 Reviewed by Simon. 17564 17565 The http loader should only ask for .... http cookies! 17566 17567 * Api/qwebnetworkinterface.cpp: 17568 (QWebNetworkManager::add): 17569 17570 2007-05-24 Simon Hausmann <hausmann (a] kde.org> 17571 17572 Reviewed by Zack. 17573 17574 Fix multipart/form-data HTTP POSTs. The content-type wasn't set 17575 correctly. Fortunately WebCore does it already, so there's no need 17576 for us to do it since we already transfer all HTTP header fields :) 17577 17578 * Api/qwebnetworkinterface.cpp: 17579 (QWebNetworkManager::add): 17580 17581 2007-05-23 Simon Hausmann <hausmann (a] kde.org> 17582 17583 Reviewed by Zack, idea from Lars. 17584 17585 Share WebCoreHttp and therefore HTTP connections among multiple 17586 QWebNetworkInterface instances by moving the code into 17587 QWebNetworkManager. 17588 17589 * Api/qwebnetworkinterface.cpp: 17590 (QWebNetworkManager::addHttpJob): 17591 (QWebNetworkManager::cancelHttpJob): 17592 (QWebNetworkManager::httpConnectionClosed): 17593 (QWebNetworkInterface::addJob): 17594 (QWebNetworkInterface::cancelJob): 17595 (WebCoreHttp::scheduleNextRequest): 17596 (WebCoreHttp::onResponseHeaderReceived): 17597 (WebCoreHttp::onReadyRead): 17598 (WebCoreHttp::onRequestFinished): 17599 (WebCoreHttp::cancel): 17600 * Api/qwebnetworkinterface.h: 17601 * Api/qwebnetworkinterface_p.h: 17602 17603 2007-05-23 Simon Hausmann <hausmann (a] kde.org> 17604 17605 Reviewed by Zack, discussed also with Lars. 17606 17607 Make it possible to specify a per-QWebPage network interface (needed 17608 for the KDE KIO integration). 17609 17610 Merged the file and the network loader into 17611 QWebNetworkInterface(Private), which simplifies the loading code. 17612 17613 When receiving a redirection don't emit the data of the redirected job 17614 to the document. (otherwise the kind of "This page has moved" text 17615 appears right on top of the real page content) 17616 17617 * Api/qwebnetworkinterface.cpp: 17618 (qHash): 17619 (operator==): 17620 (QWebNetworkJob::QWebNetworkJob): 17621 (QWebNetworkJob::networkInterface): 17622 (QWebNetworkManager::add): 17623 (QWebNetworkManager::cancel): 17624 (QWebNetworkManager::data): 17625 (QWebNetworkManager::finished): 17626 (QWebNetworkInterfacePrivate::sendFileData): 17627 (QWebNetworkInterfacePrivate::parseDataUrl): 17628 (QWebNetworkInterfacePrivate::addHttpJob): 17629 (QWebNetworkInterfacePrivate::httpConnectionClosed): 17630 (QWebNetworkInterface::setDefaultInterface): 17631 (QWebNetworkInterface::QWebNetworkInterface): 17632 (QWebNetworkInterface::addJob): 17633 (QWebNetworkInterface::cancelJob): 17634 (WebCoreHttp::scheduleNextRequest): 17635 (WebCoreHttp::onResponseHeaderReceived): 17636 (WebCoreHttp::onReadyRead): 17637 (WebCoreHttp::onRequestFinished): 17638 (WebCoreHttp::cancel): 17639 * Api/qwebnetworkinterface.h: 17640 * Api/qwebnetworkinterface_p.h: 17641 * Api/qwebpage.cpp: 17642 (QWebPagePrivate::QWebPagePrivate): 17643 (QWebPage::setNetworkInterface): 17644 * Api/qwebpage.h: 17645 * Api/qwebpage_p.h: 17646 17647 2007-05-23 Lars Knoll <lars (a] trolltech.com> 17648 17649 Reviewed by Zack 17650 17651 Don't do HTTP downloads in a second thread. Simplifies 17652 the code significantly and fixes crashes on some 17653 Web pages. 17654 17655 * Api/qwebnetworkinterface.cpp: 17656 (QWebNetworkManager::add): 17657 (QWebNetworkInterface::QWebNetworkInterface): 17658 (QWebNetworkInterface::addJob): 17659 (QWebNetworkInterface::cancelJob): 17660 (LoaderThread::LoaderThread): 17661 (LoaderThread::run): 17662 (WebCoreHttp::cancel): 17663 (NetworkLoader::NetworkLoader): 17664 (NetworkLoader::request): 17665 (NetworkLoader::cancel): 17666 * Api/qwebnetworkinterface_p.h: 17667 * WebCoreSupport/FrameLoaderClientQt.cpp: 17668 (WebCore::FrameLoaderClientQt::committedLoad): 17669 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength): 17670 17671 2007-05-23 Lars Knoll <lars (a] trolltech.com> 17672 17673 Reviewed by Simon. 17674 17675 * Api/qwebnetworkinterface.cpp: 17676 (QWebNetworkJobPrivate::setURL): 17677 (QWebNetworkManager::started): 17678 Fix Host: line in HTTP headers and resolving of relative URLs 17679 when redirecting. 17680 * Api/qwebnetworkinterface_p.h: 17681 Clean up qHash forward declaration a bit. 17682 17683 2007-05-23 Simon Hausmann <hausmann (a] kde.org> 17684 17685 Reviewed by Zack. 17686 17687 * QtLauncher/main.cpp: 17688 (MainWindow::MainWindow): Fix loading progress signal/slot connection. 17689 17690 2007-05-22 Simon Hausmann <hausmann (a] kde.org> 17691 17692 Reviewed by Lars. 17693 17694 * Api/qwebnetworkinterface.cpp: 17695 (QWebNetworkManager::add): Fix http headers for POST. 17696 17697 2007-05-21 Lars Knoll <lars (a] trolltech.com> 17698 17699 Reviewed by Simon 17700 17701 Remove the userHandle methods from QWebnetworkJob again. 17702 They don't really give us anything and just clutter the API. 17703 17704 * Api/qwebnetworkinterface.cpp: 17705 * Api/qwebnetworkinterface.h: 17706 * Api/qwebnetworkinterface_p.h: 17707 17708 2007-05-21 Simon Hausmann <hausmann (a] kde.org> 17709 17710 Reviewed by Zack. 17711 17712 * Api/qwebnetworkinterface.h: Export the net API. 17713 17714 2007-05-21 Lars Knoll <lars (a] trolltech.com> 17715 17716 Reviewed by Zack. 17717 17718 Add an API layer for network downloads. Basically QWebnetworkInterface 17719 is an interface class for downloading resources. QWebnetworkJob describes 17720 the actual object to download. 17721 17722 QWebNetworkInterface has a default implementation that replaces the 17723 old ResourceHandleManager class in the Qt port. 17724 17725 * Api/qwebnetworkinterface.cpp: Added. 17726 (QWebNetworkJobPrivate::setURL): 17727 (QWebNetworkJob::QWebNetworkJob): 17728 (QWebNetworkJob::~QWebNetworkJob): 17729 (QWebNetworkJob::url): 17730 (QWebNetworkJob::postData): 17731 (QWebNetworkJob::request): 17732 (QWebNetworkJob::response): 17733 (QWebNetworkJob::setResponse): 17734 (QWebNetworkJob::cancelled): 17735 (QWebNetworkJob::ref): 17736 (QWebNetworkJob::deref): 17737 (QWebNetworkJob::setUserHandle): 17738 (QWebNetworkJob::userHandle): 17739 (QWebNetworkManager::QWebNetworkManager): 17740 (QWebNetworkManager::self): 17741 (QWebNetworkManager::add): 17742 (QWebNetworkManager::cancel): 17743 (QWebNetworkManager::started): 17744 (QWebNetworkManager::data): 17745 (QWebNetworkManager::finished): 17746 (QWebNetworkInterface::setDefaultInterface): 17747 (QWebNetworkInterface::defaultInterface): 17748 (QWebNetworkInterface::QWebNetworkInterface): 17749 (QWebNetworkInterface::~QWebNetworkInterface): 17750 (QWebNetworkInterface::addJob): 17751 (QWebNetworkInterface::cancelJob): 17752 (LoaderThread::LoaderThread): 17753 (LoaderThread::run): 17754 (FileLoader::FileLoader): 17755 (FileLoader::request): 17756 (FileLoader::sendData): 17757 (FileLoader::parseDataUrl): 17758 (WebCoreHttp::WebCoreHttp): 17759 (WebCoreHttp::~WebCoreHttp): 17760 (WebCoreHttp::request): 17761 (WebCoreHttp::scheduleNextRequest): 17762 (WebCoreHttp::getConnection): 17763 (WebCoreHttp::onResponseHeaderReceived): 17764 (WebCoreHttp::onReadyRead): 17765 (WebCoreHttp::onRequestFinished): 17766 (WebCoreHttp::onStateChanged): 17767 (WebCoreHttp::cancel): 17768 (HostInfo::HostInfo): 17769 (qHash): 17770 (operator==): 17771 (NetworkLoader::NetworkLoader): 17772 (NetworkLoader::~NetworkLoader): 17773 (NetworkLoader::request): 17774 (NetworkLoader::connectionClosed): 17775 (NetworkLoader::cancel): 17776 * Api/qwebnetworkinterface.h: Added. 17777 (QWebNetworkJob::setHandle): 17778 (QWebNetworkJob::handle): 17779 * Api/qwebnetworkinterface_p.h: Added. 17780 (WebCore::LoaderThread::): 17781 (WebCore::LoaderThread::waitForSetup): 17782 (WebCore::HostInfo::HostInfo): 17783 17784 2007-05-18 Simon Hausmann <hausmann (a] kde.org> 17785 17786 Reviewed by Nikolas. 17787 17788 * Api/qwebpage.h: Changed the loadProgressChanged API to use an 17789 percent integer instead of a double precision floating pointer number. 17790 * WebCoreSupport/FrameLoaderClientQt.cpp: 17791 (WebCore::FrameLoaderClientQt::setFrame): 17792 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification): 17793 * WebCoreSupport/FrameLoaderClientQt.h: 17794 17795 2007-05-18 Marius Bugge Monsen <mbm (a] trolltech.com> 17796 17797 Reviewed by Zack Rusin. 17798 17799 The default constructed KeyboardEvent has 17800 no PlatformKeyboardEvent. 17801 17802 * WebCoreSupport/EditorClientQt.cpp: 17803 (WebCore::EditorClientQt::handleKeypress): 17804 17805 2007-05-17 Adam Treat <adam (a] staikos.net> 17806 17807 Reviewed by George Staikos. 17808 17809 - Implement frameLoadCompleted 17810 - Fix build (by George) 17811 17812 * WebCoreSupport/FrameLoaderClientQt.cpp: 17813 (WebCore::FrameLoaderClientQt::frameLoadCompleted): 17814 (WebCore::FrameLoaderClientQt::createFrame): 17815 17816 2007-05-17 Adam Treat <adam (a] staikos.net> 17817 17818 Reviewed by George Staikos. 17819 17820 Implement canShowMIMEType 17821 17822 * WebCoreSupport/FrameLoaderClientQt.cpp: 17823 (WebCore::FrameLoaderClientQt::canShowMIMEType): 17824 17825 2007-05-16 Lars Knoll <lars (a] trolltech.com> 17826 17827 Reviewed by Zack 17828 17829 pass the mouse events to the event handler, not the frameview. 17830 17831 * Api/qwebframe.cpp: 17832 (QWebFrame::mouseMoveEvent): 17833 (QWebFrame::mouseReleaseEvent): 17834 17835 2007-05-14 Lars Knoll <lars (a] trolltech.com> 17836 17837 Reviewed by Zack 17838 17839 Updates after Maciej's frame change. 17840 17841 * Api/qwebpage.cpp: 17842 (QWebPage::stop): 17843 Call stopForUserCancel() instead of stopAllLoaders() 17844 * WebCoreSupport/FrameLoaderClientQt.cpp: 17845 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 17846 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 17847 (WebCore::FrameLoaderClientQt::didFinishLoad): 17848 (WebCore::FrameLoaderClientQt::setMainDocumentError): 17849 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 17850 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): 17851 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): 17852 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad): 17853 Call QWebFrame::loadDone() from the places it's supposed to be 17854 called from. 17855 17856 2007-05-12 Maciej Stachowiak <mjs (a] apple.com> 17857 17858 Reviewed by Rob Buis. 17859 17860 - call Frame::init as needed - this prevents crashes but pages don't appear. 17861 17862 * Api/qwebframe.cpp: 17863 (QWebFramePrivate::init): 17864 * WebKitPart/WebKitPart.cpp: 17865 (WebKitPart::initView): 17866 17867 2007-05-08 Steve Falkenburg <sfalken (a] apple.com> 17868 17869 Reviewed by Ada. 17870 17871 Slight modification to last editor method fix. 17872 17873 * WebCoreSupport/EditorClientQt.cpp: 17874 (WebCore::EditorClientQt::updateSpellingUIWithGrammarString): 17875 * WebCoreSupport/EditorClientQt.h: 17876 17877 2007-05-03 Steve Falkenburg <sfalken (a] apple.com> 17878 17879 Reviewed by Oliver. 17880 17881 Add missing user description parameter to spelling-related editor client method. 17882 17883 * WebCoreSupport/EditorClientQt.cpp: 17884 (WebCore::EditorClientQt::updateSpellingUIWithGrammarString): 17885 * WebCoreSupport/EditorClientQt.h: 17886 17887 2007-04-29 Oliver Hunt <oliver (a] apple.com> 17888 17889 Reviewed by Zack. 17890 17891 Tie QT drag events to the DragController logic 17892 to allow drag and drop events to be handled by 17893 webkit. 17894 17895 * Api/qwebframe.cpp: 17896 * Api/qwebframe.h: 17897 * Api/qwebpage.cpp: 17898 (QWebPagePrivate::QWebPagePrivate): 17899 (QWebPage::QWebPage): 17900 (dropActionToDragOp): 17901 (dragOpToDropAction): 17902 (QWebPage::dragEnterEvent): 17903 (QWebPage::dragLeaveEvent): 17904 (QWebPage::dragMoveEvent): 17905 (QWebPage::dropEvent): 17906 * Api/qwebpage.h: 17907 * WebCoreSupport/DragClientQt.cpp: 17908 (WebCore::DragClientQt::startDrag): 17909 * WebCoreSupport/DragClientQt.h: 17910 (WebCore::DragClientQt::DragClientQt): 17911 17912 2007-04-27 Holger Freyther <freyther (a] kde.org> 17913 17914 Reviewed by Maciej. 17915 17916 Remove unmaintained CMake build system. 17917 17918 * QtLauncher/CMakeLists.txt: Removed. 17919 * WebKitPart/CMakeLists.txt: Removed. 17920 17921 2007-04-25 Steve Falkenburg <sfalken (a] apple.com> 17922 17923 Reviewed by Adam. 17924 17925 Fix spelling error in spelling method name. 17926 17927 * WebCoreSupport/EditorClientQt.cpp: 17928 (WebCore::EditorClientQt::updateSpellingUIWithGrammarString): 17929 * WebCoreSupport/EditorClientQt.h: 17930 17931 2007-04-24 Steve Falkenburg <sfalken (a] apple.com> 17932 17933 Reviewed by Oliver. 17934 17935 Spelling and grammar stubs 17936 17937 * WebCoreSupport/EditorClientQt.cpp: 17938 (WebCore::EditorClientQt::ignoreWordInSpellDocument): 17939 (WebCore::EditorClientQt::learnWord): 17940 (WebCore::EditorClientQt::checkSpellingOfString): 17941 (WebCore::EditorClientQt::checkGrammarOfString): 17942 (WebCore::EditorClientQt::udpateSpellingUIWithGrammarString): 17943 (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord): 17944 (WebCore::EditorClientQt::showSpellingUI): 17945 (WebCore::EditorClientQt::spellingUIIsShowing): 17946 (WebCore::EditorClientQt::getGuessesForWord): 17947 * WebCoreSupport/EditorClientQt.h: 17948 17949 2007-04-11 MorganL <morganl.webkit (a] yahoo.com> 17950 17951 Reviewed by Maciej. 17952 17953 Add a Frame pointer to ChromeClient methods: 17954 http://bugs.webkit.org/show_bug.cgi?id=13127 17955 17956 * WebCoreSupport/ChromeClientQt.cpp: 17957 (WebCore::ChromeClientQt::createWindow): 17958 (WebCore::ChromeClientQt::createModalDialog): 17959 * WebCoreSupport/ChromeClientQt.h: 17960 17961 2007-04-12 Mark Rowe <mrowe (a] apple.com> 17962 17963 Second part of Qt build fix. 17964 17965 * WebCoreSupport/FrameLoaderClientQt.cpp: 17966 (WebCore::FrameLoaderClientQt::loadedFromCachedPage): 17967 (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage): 17968 (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage): 17969 * WebCoreSupport/FrameLoaderClientQt.h: 17970 17971 2007-03-27 Zack Rusin <zrusin (a] trolltech.com> 17972 17973 Fix the rendering crashes due triggered 17974 asserts. Improve a bit the layout 17975 scheduling. 17976 17977 * Api/qwebframe.cpp: 17978 (QWebFrame::resizeEvent): 17979 (QWebFrame::paintEvent): 17980 * WebCoreSupport/FrameLoaderClientQt.cpp: 17981 (WebCore::FrameLoaderClientQt::forceLayout): 17982 17983 2007-03-16 Lars Knoll <lars (a] trolltech.com> 17984 17985 Fix the Qt build once again. 17986 17987 * WebCoreSupport/EditorClientQt.cpp: 17988 (WebCore::EditorClientQt::handleKeypress): 17989 * WebCoreSupport/FrameLoaderClientQt.cpp: 17990 (WebCore::FrameLoaderClientQt::blockedError): 17991 * WebCoreSupport/FrameLoaderClientQt.h: 17992 17993 2007-03-13 Lars Knoll <lars (a] trolltech.com> 17994 17995 Reviewed by George. 17996 17997 Don't try to load <object> tags with an invalid url. 17998 Fixes LayoutTests/fast/dom/object-plugin-hides-properties.html 17999 which hit an assertion in the frameloader. 18000 18001 * WebCoreSupport/FrameLoaderClientQt.cpp: 18002 (WebCore::FrameLoaderClientQt::objectContentType): 18003 18004 2007-03-13 Lars Knoll <lars (a] trolltech.com> 18005 18006 Reviewed by Anders. 18007 18008 Fix some crashes in the Qt build. 18009 18010 * Api/qwebframe.cpp: 18011 (QWebFrame::markup): 18012 Check for null pointer 18013 * WebCoreSupport/FrameLoaderClientQt.cpp: 18014 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 18015 Don't use an async callback into the FrameLoader. 18016 (WebCore::FrameLoaderClientQt::createFrame): 18017 18018 2007-03-11 Oliver Hunt <oliver (a] apple.com> 18019 18020 Reviewed by Adele. 18021 18022 Stub for EditorClientQt::respondToChangedSelection 18023 18024 * WebCoreSupport/EditorClientQt.cpp: 18025 (WebCore::EditorClientQt::respondToChangedSelection): 18026 * WebCoreSupport/EditorClientQt.h: 18027 18028 2007-03-07 Adele Peterson <adele (a] apple.com> 18029 18030 Reviewed by Darin Adler. 18031 18032 WebKitQT part of fix for: 18033 http://bugs.webkit.org/show_bug.cgi?id=10871 18034 http://bugs.webkit.org/show_bug.cgi?id=12677 18035 <rdar://problem/4823129> REGRESSION: IME key events different in nightly 18036 <rdar://problem/4759563> REGRESSION: Return key is always sent when you confirm a clause in kotoeri 18037 18038 * WebCoreSupport/EditorClientQt.cpp: 18039 (WebCore::EditorClientQt::handleKeypress): Changed handleKeyPress to handleKeypress. 18040 (WebCore::EditorClientQt::handleInputMethodKeypress): Added. 18041 * WebCoreSupport/EditorClientQt.h: 18042 18043 2007-03-07 Darin Adler <darin (a] apple.com> 18044 18045 * WebCoreSupport/FrameLoaderClientQt.h: Oops, forgot the header. 18046 18047 2007-03-07 Darin Adler <darin (a] apple.com> 18048 18049 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::userAgent): 18050 Try to fix the build by correcting the parameter here. 18051 18052 2007-03-02 Sam Weinig <sam (a] webkit.org> 18053 18054 Reviewed by Anders. 18055 18056 Try to fix the Qt build 18057 18058 * WebCoreSupport/DragClientQt.cpp: 18059 (WebCore::DragClientQt::willPerformDragDestinationAction): 18060 (WebCore::DragClientQt::dragControllerDestroyed): 18061 (WebCore::DragClientQt::createDragImageForLink): 18062 18063 2007-02-26 Maciej Stachowiak <mjs (a] apple.com> 18064 18065 Reviewed by Kevin McCullough. 18066 18067 - fix Qt build for earlier SVG changes. 18068 18069 * WebCoreSupport/EditCommandQt.cpp: 18070 18071 2007-02-24 Zack Rusin <zrusin (a] trolltech.com> 18072 18073 Adjust the animation a little bit to make it more natural. 18074 18075 * QtLauncher/main.cpp: 18076 (HoverLabel::paintEvent): 18077 18078 2007-02-23 Zack Rusin <zrusin (a] trolltech.com> 18079 18080 Adding a little bit of eye-candy to the last 18081 commit (animations on hover events) 18082 18083 * QtLauncher/main.cpp: 18084 (HoverLabel::HoverLabel): 18085 (HoverLabel::setHoverLink): 18086 (HoverLabel::sizeForFont): 18087 (HoverLabel::sizeHint): 18088 (HoverLabel::resetAnimation): 18089 (HoverLabel::paintEvent): 18090 (HoverLabel::interpolate): 18091 (SearchEdit::resizeEvent): 18092 18093 2007-02-23 Zack Rusin <zrusin (a] trolltech.com> 18094 18095 Reviewed by Lars 18096 18097 Adding API and code for notification of when the 18098 mouse is hovering over a link and adding code to 18099 the sample app to showcase it. 18100 18101 * Api/qwebframe.cpp: 18102 (QWebFrame::mouseMoveEvent): 18103 * Api/qwebframe.h: 18104 * Api/qwebframe_p.h: 18105 (QWebFramePrivate::QWebFramePrivate): 18106 * Api/qwebpage.cpp: 18107 (QWebPage::createFrame): 18108 * Api/qwebpage.h: 18109 * QtLauncher/main.cpp: 18110 (HoverLabel::HoverLabel): 18111 (HoverLabel::setHoverLink): 18112 (HoverLabel::sizeHint): 18113 (HoverLabel::updateSize): 18114 (HoverLabel::paintEvent): 18115 (ClearButton::ClearButton): 18116 (ClearButton::paintEvent): 18117 (SearchEdit::SearchEdit): 18118 (SearchEdit::resizeEvent): 18119 (SearchEdit::moveEvent): 18120 (MainWindow::MainWindow): 18121 (MainWindow::showLinkHover): 18122 (MainWindow::resizeEvent): 18123 18124 2007-02-22 Zack Rusin <zrusin (a] trolltech.com> 18125 18126 Reviewed by Lars 18127 18128 Fixing the default scroll offset, cleaning 18129 up private methods and making the default 18130 look not use any frames. 18131 18132 * Api/qwebframe.cpp: 18133 (QWebFramePrivate::init): 18134 (QWebFramePrivate::_q_handleKeyEvent): 18135 (QWebFrame::QWebFrame): 18136 (QWebFrame::wheelEvent): 18137 (QWebFrame::keyPressEvent): 18138 (QWebFrame::keyReleaseEvent): 18139 * Api/qwebframe.h: 18140 * Api/qwebframe_p.h: 18141 18142 2007-02-22 Zack Rusin <zrusin (a] trolltech.com> 18143 18144 Reviewed by Lars 18145 18146 Make the qwebframe act as a proper canvas. 18147 Implement it on top of QAbstractScrollArea. 18148 18149 * Api/qwebframe.cpp: 18150 (QWebFramePrivate::init): 18151 (QWebFramePrivate::_q_adjustScrollbars): 18152 (QWebFrame::init): 18153 (QWebFrame::QWebFrame): 18154 (QWebFrame::resizeEvent): 18155 (QWebFrame::childFrames): 18156 (QWebFrame::paintEvent): 18157 (QWebFrame::mouseMoveEvent): 18158 (QWebFrame::mousePressEvent): 18159 (QWebFrame::mouseReleaseEvent): 18160 (QWebFrame::wheelEvent): 18161 (QWebFrame::keyPressEvent): 18162 (QWebFrame::keyReleaseEvent): 18163 (QWebFrame::dragEnterEvent): 18164 (QWebFrame::dragLeaveEvent): 18165 (QWebFrame::dragMoveEvent): 18166 (QWebFrame::handleKeyEvent): 18167 (QWebFrame::scrollContentsBy): 18168 * Api/qwebframe.h: 18169 * Api/qwebframe_p.h: 18170 (QWebFramePrivate::QWebFramePrivate): 18171 18172 2007-02-21 George Staikos <staikos (a] kde.org> 18173 18174 Reviewed by Zack. 18175 18176 Add more editing support, and undo/redo. Requires some nasty evil 18177 hacks that have to be sorted out in WebCore/editor. 18178 18179 * Api/qwebpage.cpp: 18180 (QWebPagePrivate::QWebPagePrivate): 18181 (QWebPagePrivate::~QWebPagePrivate): 18182 (QWebPage::undoStack): 18183 * Api/qwebpage.h: 18184 * Api/qwebpage_p.h: 18185 * WebCoreSupport/EditorClientQt.cpp: 18186 (WebCore::EditorClientQt::didBeginEditing): 18187 (WebCore::EditorClientQt::didEndEditing): 18188 (WebCore::EditorClientQt::isEditable): 18189 (WebCore::EditorClientQt::registerCommandForUndo): 18190 (WebCore::EditorClientQt::registerCommandForRedo): 18191 (WebCore::EditorClientQt::clearUndoRedoOperations): 18192 (WebCore::EditorClientQt::canUndo): 18193 (WebCore::EditorClientQt::canRedo): 18194 (WebCore::EditorClientQt::undo): 18195 (WebCore::EditorClientQt::redo): 18196 (WebCore::EditorClientQt::handleKeyPress): 18197 (WebCore::EditorClientQt::EditorClientQt): 18198 (WebCore::EditorClientQt::textFieldDidBeginEditing): 18199 (WebCore::EditorClientQt::textFieldDidEndEditing): 18200 (WebCore::EditorClientQt::isEditing): 18201 * WebCoreSupport/EditorClientQt.h: 18202 18203 2007-02-21 Zack Rusin <zrusin (a] trolltech.com> 18204 18205 Fix compilation. 18206 18207 * WebCoreSupport/ContextMenuClientQt.cpp: 18208 * WebCoreSupport/ContextMenuClientQt.h: 18209 18210 2007-02-21 George Staikos <staikos (a] kde.org> 18211 18212 Fix compile. 18213 18214 * Api/qwebpage.cpp: 18215 (QWebPage::stop): 18216 18217 2007-02-20 Zack Rusin <zrusin (a] trolltech.com> 18218 18219 Reviewed by Lars 18220 18221 Make editing of forms work plus make sure that non-void methods 18222 always return something. 18223 18224 * WebCoreSupport/ChromeClientQt.cpp: 18225 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel): 18226 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel): 18227 (WebCore::ChromeClientQt::runJavaScriptConfirm): 18228 (WebCore::ChromeClientQt::runJavaScriptPrompt): 18229 (WebCore::ChromeClientQt::shouldInterruptJavaScript): 18230 * WebCoreSupport/EditorClientQt.cpp: 18231 (WebCore::EditorClientQt::shouldDeleteRange): 18232 (WebCore::EditorClientQt::shouldBeginEditing): 18233 (WebCore::EditorClientQt::shouldEndEditing): 18234 (WebCore::EditorClientQt::shouldInsertText): 18235 (WebCore::EditorClientQt::shouldChangeSelectedRange): 18236 (WebCore::EditorClientQt::shouldApplyStyle): 18237 (WebCore::EditorClientQt::shouldInsertNode): 18238 * WebCoreSupport/FrameLoaderClientQt.cpp: 18239 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache): 18240 (WebCore::FrameLoaderClientQt::dispatchCreatePage): 18241 18242 2007-02-17 Lars Knoll <lars (a] trolltech.com> 18243 18244 Reviewed by Maciej. 18245 18246 Additional coding by Maciej, additional review by Oliver. 18247 18248 Add stubs for the new methods in ChormeClient and EditorClient, 18249 remove all references to FrameQt. 18250 18251 * Api/qwebframe.cpp: 18252 (QWebFrame::QWebFrame): 18253 * Api/qwebframe_p.h: 18254 * Api/qwebpage.cpp: 18255 * WebCoreSupport/ChromeClientQt.cpp: 18256 (WebCore::ChromeClientQt::shouldInterruptJavaScript): 18257 * WebCoreSupport/ChromeClientQt.h: 18258 * WebCoreSupport/EditorClientQt.cpp: 18259 (WebCore::EditorClientQt::shouldChangeSelectedRange): 18260 (WebCore::EditorClientQt::isEditable): 18261 * WebCoreSupport/EditorClientQt.h: 18262 * WebCoreSupport/FrameLoaderClientQt.cpp: 18263 (WebCore::FrameLoaderClientQt::setFrame): 18264 (WebCore::FrameLoaderClientQt::webFrame): 18265 * WebCoreSupport/FrameLoaderClientQt.h: 18266 18267 2007-02-18 Oliver Hunt <oliver (a] apple.com> 18268 18269 Build fix -- adding DragClientQt method stubs 18270 18271 * WebCoreSupport/DragClientQt.cpp: 18272 (WebCore::DragClientQt::willPerformDragSourceAction): 18273 (WebCore::DragClientQt::startDrag): 18274 (WebCore::DragClientQt::createDragImageForLink): 18275 * WebCoreSupport/DragClientQt.h: 18276 18277 2007-02-15 Brady Eidson <beidson (a] apple.com> 18278 18279 Reviewed by Adam 18280 18281 Moved scroll state down into the cross platform FrameLoader - 18282 Blind attempt at keeping Qt building 18283 18284 * WebCoreSupport/FrameLoaderClientQt.cpp: 18285 (WebCore::FrameLoaderClientQt::restoreViewState): 18286 (WebCore::FrameLoaderClientQt::saveViewStateToItem): 18287 * WebCoreSupport/FrameLoaderClientQt.h: 18288 18289 2007-02-07 Anders Carlsson <acarlsson (a] apple.com> 18290 18291 Try fixing the Qt build. 18292 18293 * WebCoreSupport/ChromeClientQt.cpp: 18294 (WebCore::ChromeClientQt::shouldInterruptJavaScript): 18295 * WebCoreSupport/ChromeClientQt.h: 18296 18297 2007-02-02 Zack Rusin <zrusin (a] trolltech.com> 18298 18299 Compilation fix: forward declare d-ptr. 18300 18301 * Api/qcookiejar.h: 18302 18303 2007-02-02 Zack Rusin <zrusin (a] trolltech.com> 18304 18305 Reviewed by Lars 18306 18307 Make the frames white by default and get the 18308 files that WebCore can handle render inside 18309 the frames. 18310 18311 * Api/qwebframe.cpp: 18312 (QWebFrame::QWebFrame): 18313 * WebCoreSupport/FrameLoaderClientQt.cpp: 18314 (WebCore::FrameLoaderClientQt::createFrame): 18315 (WebCore::FrameLoaderClientQt::objectContentType): 18316 18317 2007-02-01 George Staikos <staikos (a] kde.org> 18318 18319 Reviewed by Zack and Lars. 18320 18321 Add a cookie interface for the Qt build. 18322 18323 * Api/qcookiejar.cpp: Added. 18324 (QCookieJarPrivate::QCookieJarPrivate): 18325 (qHash): 18326 (QCookieJar::QCookieJar): 18327 (QCookieJar::~QCookieJar): 18328 (QCookieJar::setCookies): 18329 (QCookieJar::cookies): 18330 (QCookieJar::isEnabled): 18331 (QCookieJar::setEnabled): 18332 (gCleanupJar): 18333 (QCookieJar::setCookieJar): 18334 (QCookieJar::cookieJar): 18335 * Api/qcookiejar.h: Added. 18336 18337 2007-02-01 Lars Knoll <lars (a] trolltech.com> 18338 18339 Reviewed by Adam. 18340 18341 Fix form loading for the Qt build. 18342 18343 * WebCoreSupport/FrameLoaderClientQt.cpp: 18344 (WebCore::FrameLoaderClientQt::callPolicyFunction): 18345 (WebCore::FrameLoaderClientQt::slotCallPolicyFunction): 18346 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): 18347 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 18348 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 18349 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 18350 18351 2007-01-31 Zack Rusin <zrusin (a] trolltech.com> 18352 18353 Expose the fact that the form has been edited 18354 in the public api. 18355 18356 * Api/qwebpage.cpp: 18357 (QWebPagePrivate::QWebPagePrivate): 18358 (QWebPage::isModified): 18359 * Api/qwebpage.h: 18360 * Api/qwebpage_p.h: 18361 * WebCoreSupport/EditorClientQt.cpp: 18362 (WebCore::EditorClientQt::respondToChangedContents): 18363 (WebCore::EditorClientQt::isEditable): 18364 18365 2007-01-31 Zack Rusin <zrusin (a] trolltech.com> 18366 18367 Reviewed by Lars 18368 18369 Properly propagate key events. 18370 18371 * Api/qwebframe.cpp: 18372 (QWebFrame::addToJSWindowObject): 18373 (QWebFrame::innerText): 18374 (QWebFrame::renderTreeDump): 18375 * Api/qwebpage.cpp: 18376 (QWebPagePrivate::QWebPagePrivate): 18377 * Api/qwebpage.h: 18378 * WebCoreSupport/EditorClientQt.cpp: 18379 (WebCore::EditorClientQt::pageDestroyed): 18380 (WebCore::EditorClientQt::handleKeyPress): 18381 (WebCore::EditorClientQt::EditorClientQt): 18382 * WebCoreSupport/EditorClientQt.h: 18383 18384 2007-01-31 George Staikos <staikos (a] kde.org> 18385 18386 Remove focusFrame() - misguided - and add childFrames(). Fix a crash 18387 on exit. 18388 18389 Reviewed by Zack. 18390 18391 * Api/qwebframe.cpp: 18392 (QWebFrame::resizeEvent): 18393 (QWebFrame::childFrames): 18394 * Api/qwebframe.h: 18395 * Api/qwebpage.cpp: 18396 * Api/qwebpage.h: 18397 * WebCoreSupport/FrameLoaderClientQt.cpp: 18398 (WebCore::FrameLoaderClientQt::webFrame): 18399 * WebCoreSupport/FrameLoaderClientQt.h: 18400 18401 2007-01-30 Zack Rusin <zrusin (a] trolltech.com> 18402 18403 Improve QtLauncher to make it more useful as a testing tool. 18404 18405 * QtLauncher/main.cpp: 18406 (ClearButton::ClearButton): 18407 (ClearButton::paintEvent): 18408 (SearchEdit::SearchEdit): 18409 (SearchEdit::~SearchEdit): 18410 (SearchEdit::paintEvent): 18411 (SearchEdit::resizeEvent): 18412 (SearchEdit::moveEvent): 18413 (MainWindow::MainWindow): 18414 (MainWindow::changeLocation): 18415 (MainWindow::loadFinished): 18416 18417 2007-01-30 Simon Hausmann <hausmann (a] kde.org> 18418 18419 Reviewed by Zack. 18420 18421 Added import/export macros needed for build with ELF visibility and 18422 for a build on Windows (in the future). 18423 18424 * Api/qwebframe.h: 18425 * Api/qwebkitglobal.h: Added. 18426 * Api/qwebpage.h: 18427 * Api/qwebpagehistory.h: 18428 18429 2007-01-30 Zack Rusin <zack (a] kde.org> 18430 18431 Change the signature of handleKeyPress 18432 (make it compile) 18433 18434 * WebCoreSupport/EditorClientQt.cpp: 18435 (WebCore::EditorClientQt::handleKeyPress): 18436 * WebCoreSupport/EditorClientQt.h: 18437 18438 2007-01-29 Zack Rusin <zack (a] kde.org> 18439 18440 Reviewed by Lars 18441 18442 Set the allows-scrolling property on the view. 18443 18444 * Api/qwebframe.cpp: 18445 (QWebFrame::QWebFrame): 18446 18447 2007-01-29 Oliver Hunt <oliver (a] apple.com> 18448 18449 Reviewed by Adam. 18450 18451 Stub for new DragClient method 18452 18453 * WebCoreSupport/DragClientQt.cpp: 18454 (WebCore::DragClientQt::dragSourceActionMaskForPoint): 18455 * WebCoreSupport/DragClientQt.h: 18456 18457 2007-01-29 Maciej Stachowiak <mjs (a] apple.com> 18458 18459 Reviewed by Mark. 18460 18461 - updated for cross-platform data loading support 18462 18463 * WebCoreSupport/FrameLoaderClientQt.cpp: 18464 (WebCore::FrameLoaderClientQt::createDocumentLoader): 18465 * WebCoreSupport/FrameLoaderClientQt.h: 18466 18467 2007-01-29 George Staikos <staikos (a] kde.org> 18468 18469 Make window resizing work. 18470 18471 * Api/qwebpage.cpp: 18472 (QWebPage::setWindowGeometry): 18473 * Api/qwebpage.h: 18474 * WebCoreSupport/ChromeClientQt.cpp: 18475 (WebCore::ChromeClientQt::setWindowRect): 18476 18477 2007-01-29 George Staikos <staikos (a] kde.org> 18478 18479 Make popup windows work. 18480 18481 * Api/qwebpage.cpp: 18482 (QWebPage::createWindow): 18483 * Api/qwebpage.h: 18484 * WebCoreSupport/ChromeClientQt.cpp: 18485 (WebCore::ChromeClientQt::createWindow): 18486 18487 2007-01-29 Lars Knoll <lars (a] trolltech.com> 18488 18489 Reviewed by Zack 18490 18491 Fix the way we handle native widgets (QWidget) inside 18492 WebCore. Now WebCore::Widget owns the QWidget in all 18493 cases. This is the only way to get well defined semantics 18494 for all teh native widgets we have (currently ScrollView 18495 and ScrollBar, but plugins will follow). 18496 18497 This has the side effect that one cannot rely on a defined 18498 lifetime of a QWebFrame when using the API. 18499 18500 * Api/qwebframe.cpp: 18501 (QWebFrame::~QWebFrame): 18502 * Api/qwebpage.cpp: 18503 (QWebPage::~QWebPage): 18504 * Api/qwebpage_p.h: 18505 * WebCoreSupport/FrameLoaderClientQt.cpp: 18506 (WebCore::FrameLoaderClientQt::detachedFromParent3): 18507 (WebCore::FrameLoaderClientQt::detachedFromParent4): 18508 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed): 18509 * WebCoreSupport/FrameLoaderClientQt.h: 18510 18511 2007-01-29 George Staikos <staikos (a] kde.org> 18512 18513 Reviewed by Zack. 18514 18515 Implement more functions 18516 18517 * Api/qwebpage.cpp: 18518 (QWebPage::javaScriptConsoleMessage): 18519 (QWebPage::statusTextChanged): 18520 (QWebPage::runJavaScriptAlert): 18521 * Api/qwebpage.h: 18522 * Api/qwebpagehistory.cpp: 18523 (QWebPageHistory::canGoBack): 18524 (QWebPageHistory::canGoForward): 18525 * Api/qwebpagehistory.h: 18526 * WebCoreSupport/ChromeClientQt.cpp: 18527 (WebCore::ChromeClientQt::addMessageToConsole): 18528 (WebCore::ChromeClientQt::runJavaScriptAlert): 18529 * WebCoreSupport/FrameLoaderClientQt.cpp: 18530 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem): 18531 18532 2007-01-26 George Staikos <staikos (a] kde.org> 18533 18534 Reviewed by Zack. 18535 18536 Qt implementation. 18537 18538 * Api/qwebframe.cpp: 18539 (QWebFrame::QWebFrame): 18540 (QWebFrame::title): 18541 (QWebFrame::selectedText): 18542 * Api/qwebframe.h: 18543 * Api/qwebframe_p.h: 18544 * Api/qwebpage.cpp: 18545 (QWebPage::createFrame): 18546 (QWebPage::open): 18547 (QWebPage::url): 18548 (QWebPage::title): 18549 (QWebPage::focusFrame): 18550 (QWebPage::stop): 18551 * Api/qwebpage.h: 18552 * WebCoreSupport/FrameLoaderClientQt.cpp: 18553 (WebCore::FrameLoaderClientQt::setFrame): 18554 (WebCore::FrameLoaderClientQt::detachFrameLoader): 18555 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle): 18556 (WebCore::FrameLoaderClientQt::didChangeTitle): 18557 (WebCore::FrameLoaderClientQt::setTitle): 18558 * WebCoreSupport/FrameLoaderClientQt.h: 18559 18560 2007-01-26 Lars Knoll <lars (a] trolltech.com> 18561 18562 Make it compile again with Qt 4.2 and add the copyright 18563 headers where forgotten in the last submit. 18564 18565 * Api/qwebpagehistory.cpp: 18566 * Api/qwebpagehistory.h: 18567 (QExplicitlySharedDataPointer::operator*): 18568 (QExplicitlySharedDataPointer::operator->): 18569 (QExplicitlySharedDataPointer::operator T *): 18570 (QExplicitlySharedDataPointer::operator const T *): 18571 (QExplicitlySharedDataPointer::data): 18572 (QExplicitlySharedDataPointer::constData): 18573 (QExplicitlySharedDataPointer::operator==): 18574 (QExplicitlySharedDataPointer::operator!=): 18575 (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer): 18576 (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer): 18577 (QExplicitlySharedDataPointer::operator=): 18578 (QExplicitlySharedDataPointer::operator!): 18579 (::QExplicitlySharedDataPointer): 18580 18581 2007-01-26 Zack Rusin <zrusin (a] trolltech.com> 18582 18583 Reviewed by Lars 18584 18585 Implement history support on platform Qt. 18586 18587 * Api/qwebpage.cpp: 18588 (QWebPage::history): 18589 (QWebPage::goBack): 18590 (QWebPage::goForward): 18591 (QWebPage::goToHistoryItem): 18592 * Api/qwebpage.h: 18593 * Api/qwebpagehistory.cpp: Added. 18594 (QWebHistoryItem::~QWebHistoryItem): 18595 (QWebHistoryItem::originalUrl): 18596 (QWebHistoryItem::currentUrl): 18597 (QWebHistoryItem::title): 18598 (QWebHistoryItem::lastVisited): 18599 (QWebHistoryItem::icon): 18600 (QWebHistoryItem::QWebHistoryItem): 18601 (QWebPageHistory::QWebPageHistory): 18602 (QWebPageHistory::itemAtIndex): 18603 (QWebPageHistory::~QWebPageHistory): 18604 (QWebPageHistory::items): 18605 (QWebPageHistory::backItems): 18606 (QWebPageHistory::forwardItems): 18607 (QWebPageHistory::goBack): 18608 (QWebPageHistory::goForward): 18609 (QWebPageHistory::goToItem): 18610 (QWebPageHistory::backItem): 18611 (QWebPageHistory::currentItem): 18612 (QWebPageHistory::forwardItem): 18613 * Api/qwebpagehistory.h: Added. 18614 * Api/qwebpagehistory_p.h: Added. 18615 (QWebHistoryItemPrivate::QWebHistoryItemPrivate): 18616 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate): 18617 (QWebPageHistoryPrivate::QWebPageHistoryPrivate): 18618 (QWebPageHistoryPrivate::~QWebPageHistoryPrivate): 18619 18620 2007-01-26 Lars Knoll <lars (a] trolltech.com> 18621 18622 Get rid of FrameQtClient. It's unused since we moved over 18623 to the loader. 18624 18625 * Api/qwebframe.cpp: 18626 (QWebFrame::QWebFrame): 18627 18628 2007-01-26 Zack Rusin <zack (a] kde.org> 18629 18630 Reviewed by Lars 18631 18632 Correctly position child frames within the 18633 toplevel frame. We were placed it on the widget 18634 itself instead of the vieweport. 18635 18636 * Api/qwebframe.cpp: 18637 (QWebFrame::QWebFrame): 18638 18639 2007-01-26 Lars Knoll <lars (a] trolltech.com> 18640 18641 Reviewed by Zack 18642 18643 Make sure we resize the HTML when resizing a 18644 QWebFrame. Also ensure that the render tree 18645 is up to date before dumping it. 18646 18647 * Api/qwebframe.cpp: 18648 (QWebFrame::innerText): 18649 (QWebFrame::renderTreeDump): 18650 (QWebFrame::resizeEvent): 18651 * Api/qwebframe.h: 18652 * Api/qwebpage.cpp: 18653 (QWebPagePrivate::createMainFrame): 18654 18655 2007-01-26 Zack Rusin <zack (a] kde.org> 18656 18657 Reviewed by Lars 18658 18659 Display pages inside a mainwindow instead 18660 of a custom qwidget. 18661 18662 * QtLauncher/main.cpp: 18663 (MainWindow::MainWindow): 18664 (main): 18665 18666 2007-01-25 Lars Knoll <lars (a] trolltech.com> 18667 18668 Reviewed by Zack 18669 18670 Emit the loadDone() signal from teh onload event callback 18671 again. This hangs on one or two test cases, but removes 18672 hundreds of failures elsewhere. 18673 18674 * WebCoreSupport/FrameLoaderClientQt.cpp: 18675 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 18676 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 18677 18678 2007-01-24 Lars Knoll <lars (a] trolltech.com> 18679 18680 Reviewed by Zack 18681 18682 Implement some bits and pieces required by the loader. 18683 Fixes quite a few crashes and hangs in the lyout tests 18684 18685 * Api/qwebframe.h: 18686 * WebCoreSupport/FrameLoaderClientQt.cpp: 18687 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 18688 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): 18689 (WebCore::FrameLoaderClientQt::finishedLoading): 18690 (WebCore::FrameLoaderClientQt::setMainDocumentError): 18691 (WebCore::FrameLoaderClientQt::committedLoad): 18692 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading): 18693 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 18694 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 18695 (WebCore::FrameLoaderClientQt::createFrame): 18696 18697 2007-01-24 Lars Knoll <lars (a] trolltech.com> 18698 18699 Fix compilation again. 18700 18701 * WebCoreSupport/EditorClientQt.cpp: 18702 (WebCore::EditorClientQt::handleKeyPress): 18703 * WebCoreSupport/EditorClientQt.h: 18704 18705 2007-01-23 Lars Knoll <lars (a] trolltech.com> 18706 18707 Reviewed by Zack 18708 18709 Fix refcounting of FrameViews (they get created with a 18710 refcount of 1) and add a few safety checks to the 18711 FrameLoaderClientQt. 18712 18713 * Api/qwebframe.cpp: 18714 (QWebFrame::QWebFrame): 18715 (QWebFrame::~QWebFrame): 18716 * WebCoreSupport/FrameLoaderClientQt.cpp: 18717 (WebCore::FrameLoaderClientQt::detachedFromParent3): 18718 (WebCore::FrameLoaderClientQt::detachedFromParent4): 18719 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 18720 (WebCore::FrameLoaderClientQt::postProgressStartedNotification): 18721 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification): 18722 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): 18723 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed): 18724 (WebCore::FrameLoaderClientQt::windowObjectCleared): 18725 18726 2007-01-23 Zack Rusin <zack (a] kde.org> 18727 18728 Adjust the DragClientQt to latest changes. 18729 18730 * Api/qwebpage.cpp: 18731 (QWebPagePrivate::QWebPagePrivate): 18732 * WebCoreSupport/DragClientQt.cpp: 18733 (WebCore::DragClientQt::dragControllerDestroyed): 18734 * WebCoreSupport/DragClientQt.h: 18735 18736 2007-01-23 Zack Rusin <zack (a] kde.org> 18737 18738 Fix the Qt build 18739 18740 * WebCoreSupport/DragClientQt.cpp: 18741 (WebCore::DragClientQt::willPerformDragDestinationAction): 18742 * WebCoreSupport/DragClientQt.h: 18743 18744 2007-01-23 Lars Knoll <lars (a] trolltech.com> 18745 18746 Reviewed by Maciej 18747 18748 Add support for Frames to the Qt build and fix some issues 18749 in the API classes. 18750 18751 * Api/qwebframe.cpp: 18752 (QWebFrame::QWebFrame): 18753 (QWebFrame::~QWebFrame): 18754 * Api/qwebframe.h: 18755 * Api/qwebframe_p.h: 18756 * Api/qwebpage.cpp: 18757 (QWebPagePrivate::QWebPagePrivate): 18758 (QWebPagePrivate::createMainFrame): 18759 (QWebPage::createFrame): 18760 * Api/qwebpage.h: 18761 * WebCoreSupport/FrameLoaderClientQt.cpp: 18762 (WebCore::FrameLoaderClientQt::detachedFromParent3): 18763 (WebCore::FrameLoaderClientQt::detachedFromParent4): 18764 (WebCore::FrameLoaderClientQt::cancelPolicyCheck): 18765 (WebCore::FrameLoaderClientQt::windowObjectCleared): 18766 (WebCore::FrameLoaderClientQt::createFrame): 18767 (WebCore::FrameLoaderClientQt::objectContentType): 18768 (WebCore::FrameLoaderClientQt::createPlugin): 18769 (WebCore::FrameLoaderClientQt::redirectDataToPlugin): 18770 (WebCore::FrameLoaderClientQt::createJavaAppletWidget): 18771 (WebCore::FrameLoaderClientQt::overrideMediaType): 18772 * WebCoreSupport/FrameLoaderClientQt.h: 18773 18774 2007-01-23 Oliver Hunt <oliver (a] apple.com> 18775 18776 Reviewed by Adam. 18777 18778 Qt build stubs for Drop logic 18779 18780 * WebCoreSupport/DragClientQt.cpp: Added. 18781 (WebCore::DragClientQt::actionMaskForDrag): 18782 (WebCore::DragClientQt::willPerformDragDestinationAction): 18783 * WebCoreSupport/DragClientQt.h: Added. 18784 * WebKitPart/WebKitPart.cpp: 18785 (WebKitPart::initView): 18786 18787 2007-01-19 John Sullivan <sullivan (a] apple.com> 18788 18789 Added stubs for new callbacks, to try to avoid breaking the Qt port. 18790 18791 * WebCoreSupport/FrameLoaderClientQt.cpp: 18792 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): 18793 * WebCoreSupport/FrameLoaderClientQt.h: 18794 18795 2007-01-19 Anders Carlsson <acarlsson (a] apple.com> 18796 18797 Try fixing the QT build. 18798 18799 * WebCoreSupport/ChromeClientQt.cpp: 18800 (WebCore::ChromeClientQt::runJavaScriptAlert): 18801 (WebCore::ChromeClientQt::runJavaScriptConfirm): 18802 (WebCore::ChromeClientQt::runJavaScriptPrompt): 18803 (WebCore::ChromeClientQt::setStatusbarText): 18804 * WebCoreSupport/ChromeClientQt.h: 18805 18806 2007-01-18 Zack Rusin <zack (a] kde.org> 18807 18808 Reviewed by Lars. 18809 18810 Implementing a little bit of load progress tracking in the Qt port. 18811 18812 * Api/qwebframe.cpp: 18813 (QWebFrame::QWebFrame): 18814 (QWebFrame::page): 18815 * Api/qwebframe.h: 18816 * Api/qwebframe_p.h: 18817 (QWebFramePrivate::QWebFramePrivate): 18818 * Api/qwebpage.h: 18819 * QtLauncher/main.cpp: 18820 (main): 18821 * WebCoreSupport/FrameLoaderClientQt.cpp: 18822 (WebCore::FrameLoaderClientQt::setFrame): 18823 (WebCore::FrameLoaderClientQt::detachFrameLoader): 18824 (WebCore::FrameLoaderClientQt::postProgressStartedNotification): 18825 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification): 18826 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): 18827 * WebCoreSupport/FrameLoaderClientQt.h: 18828 18829 2007-01-17 Alice Liu <alice.liu (a] apple.com> 18830 18831 Added these stubs to keep the Qt build from failing. 18832 18833 * WebCoreSupport/EditorClientQt.cpp: 18834 (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard): 18835 * WebCoreSupport/EditorClientQt.h: 18836 18837 2007-01-17 Lars Knoll <lars (a] trolltech.com> 18838 18839 Reviewed by Zack 18840 18841 Remove the inheritance from Shared<XxxClient> in the 18842 client classes. 18843 18844 Answer asynchronously to most of the Policy checking methods 18845 in FrameLoaderClientQt to avoid some crashes in the loader. 18846 18847 * WebCoreSupport/ChromeClientQt.cpp: 18848 * WebCoreSupport/ChromeClientQt.h: 18849 * WebCoreSupport/ContextMenuClientQt.cpp: 18850 * WebCoreSupport/ContextMenuClientQt.h: 18851 * WebCoreSupport/EditorClientQt.cpp: 18852 * WebCoreSupport/EditorClientQt.h: 18853 * WebCoreSupport/FrameLoaderClientQt.cpp: 18854 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 18855 (WebCore::FrameLoaderClientQt::callPolicyFunction): 18856 (WebCore::FrameLoaderClientQt::slotCallPolicyFunction): 18857 (WebCore::FrameLoaderClientQt::cancelPolicyCheck): 18858 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): 18859 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 18860 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 18861 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 18862 * WebCoreSupport/FrameLoaderClientQt.h: 18863 18864 2007-01-17 Lars Knoll <lars (a] trolltech.com> 18865 18866 Reviewed by Zack 18867 18868 change all notImplemented() macros to use qDebug 18869 instead of fprintf(stder, ...) 18870 18871 * WebCoreSupport/ChromeClientQt.cpp: 18872 * WebCoreSupport/ContextMenuClientQt.cpp: 18873 * WebCoreSupport/EditorClientQt.cpp: 18874 * WebCoreSupport/FrameLoaderClientQt.cpp: 18875 18876 2007-01-16 Alice Liu <alice.liu (a] apple.com> 18877 18878 Added these stubs to keep the Qt build from failing. 18879 18880 * WebCoreSupport/EditorClientQt.cpp: 18881 (WebCore::EditorClientQt::didWriteSelectionToPasteboard): 18882 * WebCoreSupport/EditorClientQt.h: 18883 18884 2007-01-16 Lars Knoll <lars (a] trolltech.com> 18885 18886 Reviewed by Zack 18887 18888 Added the start of a public API to the Qt build 18889 of WebKit. Currently we have QWebPage and QWebFrame 18890 with a few small methods. 18891 18892 Converted the QtLauncher to use the new public API. 18893 18894 * Api/qwebframe.cpp: Added. 18895 (QWebFrame::QWebFrame): 18896 (QWebFrame::~QWebFrame): 18897 (QWebFrame::addToJSWindowObject): 18898 (QWebFrame::markup): 18899 (QWebFrame::innerText): 18900 (QWebFrame::renderTreeDump): 18901 * Api/qwebframe.h: Added. 18902 * Api/qwebframe_p.h: Added. 18903 (QWebFramePrivate::QWebFramePrivate): 18904 * Api/qwebpage.cpp: Added. 18905 (QWebPagePrivate::QWebPagePrivate): 18906 (QWebPagePrivate::~QWebPagePrivate): 18907 (QWebPagePrivate::createMainFrame): 18908 (QWebPage::QWebPage): 18909 (QWebPage::~QWebPage): 18910 (QWebPage::createFrame): 18911 (QWebPage::open): 18912 (QWebPage::mainFrame): 18913 (QWebPage::sizeHint): 18914 * Api/qwebpage.h: Added. 18915 * Api/qwebpage_p.h: Added. 18916 * QtLauncher/main.cpp: 18917 (main): 18918 * WebCoreSupport/ChromeClientQt.cpp: 18919 (WebCore::ChromeClientQt::ChromeClientQt): 18920 (WebCore::ChromeClientQt::setWindowRect): 18921 (WebCore::ChromeClientQt::windowRect): 18922 (WebCore::ChromeClientQt::pageRect): 18923 (WebCore::ChromeClientQt::focus): 18924 (WebCore::ChromeClientQt::unfocus): 18925 (WebCore::ChromeClientQt::canTakeFocus): 18926 (WebCore::ChromeClientQt::takeFocus): 18927 (WebCore::ChromeClientQt::createWindow): 18928 (WebCore::ChromeClientQt::createModalDialog): 18929 (WebCore::ChromeClientQt::show): 18930 (WebCore::ChromeClientQt::addMessageToConsole): 18931 (WebCore::ChromeClientQt::chromeDestroyed): 18932 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel): 18933 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel): 18934 (WebCore::ChromeClientQt::closeWindowSoon): 18935 * WebCoreSupport/ChromeClientQt.h: 18936 * WebCoreSupport/FrameLoaderClientQt.cpp: 18937 (WebCore::FrameLoaderClientQt::setFrame): 18938 (WebCore::FrameLoaderClientQt::detachFrameLoader): 18939 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 18940 (WebCore::FrameLoaderClientQt::partClearedInBegin): 18941 * WebCoreSupport/FrameLoaderClientQt.h: 18942 18943 2007-01-15 Anders Carlsson <acarlsson (a] apple.com> 18944 18945 Fix build. 18946 18947 * WebCoreSupport/FrameLoaderClientQt.cpp: 18948 (WebCore::FrameLoaderClientQt::postProgressStartedNotification): 18949 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification): 18950 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): 18951 * WebCoreSupport/FrameLoaderClientQt.h: 18952 18953 2007-01-13 Lars Knoll <lars (a] trolltech.com> 18954 18955 Compile again after yesterdays changes. 18956 18957 * WebCoreSupport/FrameLoaderClientQt.cpp: 18958 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest): 18959 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 18960 (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge): 18961 (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge): 18962 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): 18963 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength): 18964 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading): 18965 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 18966 (WebCore::FrameLoaderClientQt::incrementProgress): 18967 (WebCore::FrameLoaderClientQt::completeProgress): 18968 * WebCoreSupport/FrameLoaderClientQt.h: 18969 18970 2007-01-11 Brady Eidson <beidson (a] apple.com> 18971 18972 Keep the fancy new FrameLoaderClientQt building with a small api change in WebCore 18973 Yay for the loader on QT! 18974 18975 * WebCoreSupport/FrameLoaderClientQt.cpp: 18976 (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge): 18977 (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge): 18978 * WebCoreSupport/FrameLoaderClientQt.h: 18979 18980 2007-01-11 Lars Knoll <lars (a] trolltech.com> 18981 18982 Reviewed by Darin 18983 18984 Start using the loader in the Qt port. 18985 18986 * QtLauncher/main.cpp: 18987 (main): 18988 * WebCoreSupport/FrameLoaderClientQt.cpp: 18989 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): 18990 (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt): 18991 (WebCore::FrameLoaderClientQt::setFrame): 18992 (WebCore::FrameLoaderClientQt::detachFrameLoader): 18993 (WebCore::FrameLoaderClientQt::makeDocumentView): 18994 (WebCore::FrameLoaderClientQt::makeRepresentation): 18995 (WebCore::FrameLoaderClientQt::setCopiesOnScroll): 18996 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad): 18997 (WebCore::FrameLoaderClientQt::cancelPolicyCheck): 18998 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): 18999 (WebCore::FrameLoaderClientQt::progressStarted): 19000 (WebCore::FrameLoaderClientQt::progressCompleted): 19001 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady): 19002 (WebCore::FrameLoaderClientQt::clearArchivedResources): 19003 (WebCore::FrameLoaderClientQt::canShowMIMEType): 19004 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme): 19005 (WebCore::FrameLoaderClientQt::provisionalLoadStarted): 19006 (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement): 19007 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed): 19008 (WebCore::FrameLoaderClientQt::canHandleRequest): 19009 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem): 19010 (WebCore::FrameLoaderClientQt::canCachePage): 19011 (WebCore::FrameLoaderClientQt::committedLoad): 19012 (WebCore::FrameLoaderClientQt::cancelledError): 19013 (WebCore::FrameLoaderClientQt::cannotShowURLError): 19014 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 19015 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError): 19016 (WebCore::FrameLoaderClientQt::fileDoesNotExistError): 19017 (WebCore::FrameLoaderClientQt::shouldFallBack): 19018 (WebCore::FrameLoaderClientQt::createDocumentLoader): 19019 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 19020 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): 19021 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 19022 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 19023 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 19024 (WebCore::FrameLoaderClientQt::willUseArchive): 19025 * WebCoreSupport/FrameLoaderClientQt.h: 19026 19027 2007-01-11 George Staikos <staikos (a] kde.org> 19028 19029 Fix Qt Build. 19030 19031 * WebCoreSupport/ContextMenuClientQt.cpp: 19032 (WebCore::ContextMenuClientQt::searchWithGoogle): 19033 * WebCoreSupport/ContextMenuClientQt.h: 19034 19035 2007-01-06 George Staikos <staikos (a] kde.org> 19036 19037 Reviewed by Brady. 19038 19039 Make it link. 19040 19041 * WebCoreSupport/FrameLoaderClientQt.cpp: 19042 (WebCore::FrameLoaderClientQt::setMainDocumentError): 19043 (WebCore::FrameLoaderClientQt::committedLoad): 19044 (WebCore::FrameLoaderClientQt::cancelledError): 19045 (WebCore::FrameLoaderClientQt::cannotShowURLError): 19046 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError): 19047 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError): 19048 (WebCore::FrameLoaderClientQt::fileDoesNotExistError): 19049 (WebCore::FrameLoaderClientQt::shouldFallBack): 19050 (WebCore::FrameLoaderClientQt::createDocumentLoader): 19051 (WebCore::FrameLoaderClientQt::download): 19052 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest): 19053 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): 19054 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength): 19055 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading): 19056 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading): 19057 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache): 19058 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): 19059 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad): 19060 (WebCore::FrameLoaderClientQt::dispatchCreatePage): 19061 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): 19062 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): 19063 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): 19064 (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy): 19065 (WebCore::FrameLoaderClientQt::incrementProgress): 19066 (WebCore::FrameLoaderClientQt::completeProgress): 19067 (WebCore::FrameLoaderClientQt::startDownload): 19068 (WebCore::FrameLoaderClientQt::willUseArchive): 19069 * WebCoreSupport/FrameLoaderClientQt.h: 19070 19071 2007-01-05 Lars Knoll <lars (a] trolltech.com> 19072 19073 Make the Qt build compile again 19074 19075 * WebCoreSupport/ChromeClientQt.cpp: 19076 (WebCore::ChromeClientQt::canTakeFocus): 19077 (WebCore::ChromeClientQt::takeFocus): 19078 * WebCoreSupport/ChromeClientQt.h: 19079 * WebCoreSupport/ContextMenuClientQt.cpp: 19080 (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems): 19081 * WebCoreSupport/ContextMenuClientQt.h: 19082 19083 2007-01-03 Lars Knoll <lars (a] trolltech.com> 19084 19085 Fix the Qt build 19086 19087 * WebCoreSupport/FrameLoaderClientQt.cpp: 19088 (WebCore::FrameLoaderClientQt::setDocumentViewFromPageCache): 19089 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad): 19090 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload): 19091 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem): 19092 (WebCore::FrameLoaderClientQt::saveScrollPositionAndViewStateToItem): 19093 (WebCore::FrameLoaderClientQt::saveDocumentViewToPageCache): 19094 (WebCore::FrameLoaderClientQt::canCachePage): 19095 * WebCoreSupport/FrameLoaderClientQt.h: 19096 19097 2006-12-29 George Staikos <staikos (a] kde.org> 19098 19099 Add missing notimplemented. 19100 19101 * WebCoreSupport/FrameLoaderClientQt.cpp: 19102 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed): 19103 (WebCore::FrameLoaderClientQt::canHandleRequest): 19104 (WebCore::FrameLoaderClientQt::partClearedInBegin): 19105 19106 2006-12-21 Lars Knoll <lars (a] trolltech.com> 19107 19108 Reviewed by Zack 19109 19110 * WebCoreSupport/FrameLoaderClientQt.cpp: 19111 (WebCore::FrameLoaderClientQt::hasWebView): 19112 (WebCore::FrameLoaderClientQt::hasFrameView): 19113 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents): 19114 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout): 19115 (WebCore::FrameLoaderClientQt::setTitle): 19116 (WebCore::FrameLoaderClientQt::partClearedInBegin): 19117 * WebCoreSupport/FrameLoaderClientQt.h: 19118 Remove some runtimw warnings 19119 Add partClearedInBegin forwarding call, so 19120 I can catch this in the layout tests. 19121 19122 2006-12-19 Lars Knoll <lars (a] trolltech.com> 19123 19124 Reviewed by Rob. 19125 19126 * WebCoreSupport/ChromeClientQt.cpp: 19127 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel): 19128 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel): 19129 (WebCore::ChromeClientQt::closeWindowSoon): 19130 * WebCoreSupport/ChromeClientQt.h: 19131 Make it compile. 19132 19133 2006-12-16 Zack Rusin <zack (a] kde.org> 19134 19135 Adjust the client to the most recent interface. 19136 19137 * WebCoreSupport/ContextMenuClientQt.cpp: 19138 (WebCore::ContextMenuClientQt::contextMenuDestroyed): 19139 (WebCore::ContextMenuClientQt::addCustomContextMenuItems): 19140 (WebCore::ContextMenuClientQt::contextMenuItemSelected): 19141 (WebCore::ContextMenuClientQt::downloadURL): 19142 (WebCore::ContextMenuClientQt::copyImageToClipboard): 19143 (WebCore::ContextMenuClientQt::lookUpInDictionary): 19144 * WebCoreSupport/ContextMenuClientQt.h: 19145 19146 2006-12-14 Simon Hausmann <hausmann (a] kde.org> 19147 19148 Reviewed by Zack. 19149 19150 * QtLauncher/QtLauncher.pro: Link this little test program 19151 with rpath, for convenience. (This is never going to get installed 19152 anyway) 19153 19154 2006-12-12 George Staikos <staikos (a] kde.org> 19155 19156 Reviewed by Alexey. 19157 19158 Fix the Qt build again. 19159 19160 * WebCoreSupport/ContextMenuClientQt.cpp: 19161 (WebCore::ContextMenuClientQt::speak): 19162 (WebCore::ContextMenuClientQt::stopSpeaking): 19163 * WebCoreSupport/ContextMenuClientQt.h: 19164 * WebCoreSupport/EditorClientQt.cpp: 19165 (WebCore::EditorClientQt::toggleContinuousSpellChecking): 19166 (WebCore::EditorClientQt::toggleGrammarChecking): 19167 * WebCoreSupport/EditorClientQt.h: 19168 19169 2006-12-10 George Staikos <staikos (a] kde.org> 19170 19171 Reviewed by Zack. 19172 19173 Add a default user agent for now. 19174 19175 * WebCoreSupport/FrameLoaderClientQt.cpp: 19176 (WebCore::FrameLoaderClientQt::userAgent): 19177 19178 2006-12-10 Lars Knoll <lars (a] trolltech.com> 19179 19180 Reviewed by Zack 19181 19182 Comment out a notImplemented() warning 19183 19184 * WebCoreSupport/EditorClientQt.cpp: 19185 (WebCore::EditorClientQt::clearUndoRedoOperations): 19186 19187 2006-12-10 Zack Rusin <zack (a] kde.org> 19188 19189 Print out the method name if it's unimplemented. 19190 19191 * WebCoreSupport/FrameLoaderClientQt.cpp: 19192 19193 2006-12-10 Zack Rusin <zack (a] kde.org> 19194 19195 Moving the clients from platform to their final location. 19196 19197 * WebCoreSupport/FrameLoaderClientQt.cpp: Added. 19198 * WebCoreSupport/FrameLoaderClientQt.h: Added. 19199 * WebCoreSupport/ChromeClientQt.cpp: Added. 19200 * WebCoreSupport/ChromeClientQt.h: Added. 19201 * WebCoreSupport/ContextMenuClientQt.cpp: Added. 19202 * WebCoreSupport/ContextMenuClientQt.h: Added. 19203 * WebCoreSupport/EditorClientQt.cpp: Added. 19204 * WebCoreSupport/EditorClientQt.h: Added. 19205 19206 2006-12-10 Zack Rusin <zack (a] kde.org> 19207 19208 Adjusting to the changes in platform/qt. 19209 19210 * QtLauncher/main.cpp: 19211 (main): 19212 19213 2006-12-09 Lars Knoll <lars (a] trolltech.com> 19214 19215 Reviewed by Zack 19216 19217 Make it possible to build WebKit with qmake. 19218 19219 * QtLauncher/QtLauncher.pro: Added. 19220 * QtLauncher/main.cpp: 19221 19222 2006-12-08 Zack Rusin <zack (a] kde.org> 19223 19224 Reviewed by Maciej. 19225 19226 Fix the build after the recent changes. 19227 19228 * QtLauncher/main.cpp: 19229 (main): 19230 * WebKitPart/WebKitPart.cpp: 19231 (WebKitPart::initView): 19232 19233 2006-11-19 Simon Hausmann <hausmann (a] kde.org> 19234 19235 Reviewed by Zack. 19236 19237 http://bugs.webkit.org/show_bug.cgi?id=11649 19238 Fix Qt-only build 19239 19240 * QtLauncher/CMakeLists.txt: 19241 19242 2006-11-17 Zack Rusin <zack (a] kde.org> 19243 19244 Reviewed by Mitz. Landed by Niko. 19245 19246 Adjusting to the new api. 19247 19248 * QtLauncher/main.cpp: 19249 (main): 19250 * WebKitPart/WebKitPart.cpp: 19251 (WebKitPart::initView): 19252 19253 2006-11-10 Zack Rusin <zack (a] kde.org> 19254 19255 Reviewed and landed by Anders. 19256 19257 Adjusting to the recent loader changes, making it compile 19258 and work. 19259 19260 * QtLauncher/main.cpp: 19261 (main): 19262 * WebKitPart/WebKitPart.cpp: 19263 (WebKitPart::closeUrl): 19264 (WebKitPart::initView): 19265 19266 2006-11-03 Zack Rusin <zack (a] kde.org> 19267 19268 Reviewed by Maciej. 19269 19270 Fixing compile on both Qt and KDE platforms. 19271 19272 * QtLauncher/main.cpp: 19273 (main): url has already been defined 19274 * WebKitPart/WebKitPartBrowserExtension.cpp: removing 19275 duplicate implementation of this class 19276 19277 2006-10-31 Simon Hausmann <hausmann (a] kde.org> 19278 19279 Reviewed by Maciej, landed by Anders. 19280 19281 * QtLauncher/CMakeLists.txt: Make linkage against kde libraries 19282 optional 19283 * QtLauncher/main.cpp: Make it compile without KDE. 19284 (main): 19285 19286 2006-11-02 Simon Hausmann <hausmann (a] kde.org> 19287 19288 Reviewed by Maciej, landed by Anders. 19289 19290 * QtLauncher/main.cpp: 19291 (main): Declare our frame as main frame to the Page object. 19292 Fixes crashes on various web sites 19293 19294 2006-10-31 Zack Rusin <zack (a] kde.org> 19295 19296 Reviewed by Mitz. 19297 19298 Fix the Qt build after last nights changes. 19299 19300 * QtLauncher/CMakeLists.txt: 19301 * WebKitPart/CMakeLists.txt: 19302 19303 2006-10-26 Nikolas Zimmermann <zimmermann (a] kde.org> 19304 19305 Reviewed by Darin Adler. 19306 19307 Fix Qt/Linux build. 19308 19309 * QtLauncher/main.cpp: 19310 (main): 19311 * WebKitPart/WebKitPart.cpp: 19312 (WebKitPart::openUrl): 19313 19314 2006-10-24 Nikolas Zimmermann <zimmermann (a] kde.org> 19315 19316 Reviewed by Maciej. 19317 19318 Fix Qt/Linux build. 19319 19320 - Remove BrowserExtensionQt, move it's methods to Page/FrameQt. 19321 - Fix CMakeLists.txt to include platform/network. 19322 19323 * QtLauncher/CMakeLists.txt: 19324 * WebKitPart/CMakeLists.txt: 19325 19326 2006-10-24 Simon Hausmann <hausmann (a] kde.org> 19327 19328 Reviewed by Darin Adler. 19329 19330 * QtLauncher/CMakeLists.txt, WebKitPart/CMakeLists.txt: Added project name to 19331 kde4_automoc macro, as required by the latest KDE4 cmake module. 19332 19333 2006-10-20 Nikolas Zimmermann <zimmermann (a] kde.org> 19334 19335 Reviewed and landed by Anders. 19336 19337 Adapt to FrameQtClient changes, and provide some kind of status 19338 information to the KPart wheter we're loading or not (started/completed signaling). 19339 19340 * WebKitPart/CMakeLists.txt: 19341 * WebKitPart/WebKitPart.cpp: 19342 (WebKitPart::WebKitPart): 19343 (WebKitPart::~WebKitPart): 19344 (WebKitPart::openUrl): 19345 (WebKitPart::initView): 19346 * WebKitPart/WebKitPart.h: 19347 * WebKitPart/WebKitPartBrowserExtension.cpp: Added. 19348 (WebKitPartBrowserExtension::WebKitPartBrowserExtension): 19349 (WebKitPartBrowserExtension::~WebKitPartBrowserExtension): 19350 * WebKitPart/WebKitPartBrowserExtension.h: Added. 19351 * WebKitPart/WebKitPartClient.cpp: 19352 (WebKitPartClient::WebKitPartClient): 19353 (WebKitPartClient::loadFinished): 19354 * WebKitPart/WebKitPartClient.h: 19355 * WebKitPart/WebKitPartInterface.h: 19356 19357 2006-10-02 Nikolas Zimmermann <zimmermann (a] kde.org> 19358 19359 Reviewed by eseidel. Landed by eseidel. 19360 19361 Fix last remaining issue Qt/Linux build with gcc3. 19362 19363 * WebKitPart/WebKitPart.h: Remove Q_PROPERTY usage, which is not needed and made problems. 19364 19365 2006-09-10 Nikolas Zimmermann <zimmermann (a] kde.org> 19366 19367 Reviewed and landed by ap. 19368 19369 Fix QtLauncher - it is supposed to create a FrameView on its own nowadays. 19370 19371 * QtLauncher/main.cpp: 19372 (main): 19373 19374 2006-09-04 Nikolas Zimmermann <zimmermann (a] kde.org> 19375 19376 Reviewed by Tim H. 19377 19378 Fixes last part of: http://bugs.webkit.org/show_bug.cgi?id=10644 19379 Move QtLauncher down to WebKitQt. 19380 19381 * QtLauncher/CMakeLists.txt: Added. 19382 * QtLauncher/main.cpp: Added. 19383 (main): 19384 19385 2006-09-04 Nikolas Zimmermann <zimmermann (a] kde.org> 19386 19387 Reviewed by Darin Adler. Final polish by Sam. 19388 19389 Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10644 19390 Add WebKitPart, an embeddable KPart for the KDE platform. 19391 19392 * WebKitPart/CMakeLists.txt: Added. 19393 * WebKitPart/WebKitFactory.cpp: Added. 19394 (WebKitFactory::WebKitFactory): 19395 (WebKitFactory::~WebKitFactory): 19396 (WebKitFactory::createPartObject): 19397 (WebKitFactory::instance): 19398 (WebKitFactory::ref): 19399 (WebKitFactory::deref): 19400 (init_libWebKitPart): 19401 * WebKitPart/WebKitFactory.h: Added. 19402 * WebKitPart/WebKitPart.cpp: Added. 19403 (WebKitPart::WebKitPart): 19404 (WebKitPart::~WebKitPart): 19405 (WebKitPart::openFile): 19406 (WebKitPart::openUrl): 19407 (WebKitPart::closeUrl): 19408 (WebKitPart::parentPart): 19409 (WebKitPart::frame): 19410 (WebKitPart::initView): 19411 * WebKitPart/WebKitPart.desktop: Added. 19412 * WebKitPart/WebKitPart.h: Added. 19413 (WebKitPart::): 19414 * WebKitPart/WebKitPart.rc: Added. 19415 * WebKitPart/WebKitPartBrowser.rc: Added. 19416 * WebKitPart/WebKitPartClient.cpp: Added. 19417 (WebKitPartClient::WebKitPartClient): 19418 (WebKitPartClient::~WebKitPartClient): 19419 * WebKitPart/WebKitPartClient.h: Added. 19420 * WebKitPart/WebKitPartInterface.cpp: Added. 19421 (WebKitPartInterface::WebKitPartInterface): 19422 (WebKitPartInterface::~WebKitPartInterface): 19423 (WebKitPartInterface::url): 19424 (WebKitPartInterface::closeURL): 19425 * WebKitPart/WebKitPartInterface.h: Added. 19426 * WebKitPart/org.kde.WebKitPart.xml: Added. 19427 19428