1 2010-02-01 Jessie Berlin <jberlin@webkit.org>
3 Reviewed by Holger Freyther.
5 [Qt] Enable inspecting the Web Inspector in QtLauncher
7 https://bugs.webkit.org/show_bug.cgi?id=34329
9 * WebCoreSupport/InspectorClientQt.cpp:
10 (WebCore::InspectorClientWebPage::InspectorClientWebPage):
11 Allow the DeveloperExtrasEnabled setting to default to true for the page containing the Web Inspector.
13 2010-02-02 Andreas Kling <andreas.kling@nokia.com>
15 Reviewed by Kenneth Rohde Christiansen.
17 [Qt] Display HTML tags verbatim in JS alert/confirm/prompt boxes
19 https://bugs.webkit.org/show_bug.cgi?id=34429
22 (QWebPage::javaScriptAlert):
23 (QWebPage::javaScriptConfirm):
24 (QWebPage::javaScriptPrompt):
26 2010-02-02 Noam Rosenthal <noam.rosenthal@nokia.com>
28 Reviewed by Kenneth Rohde Christiansen.
30 [Qt] Enable a way to measure FPS in QGVLauncher
31 run QGVLauncher with --show-fps to see ongoing fps measurements
32 This is not meant as accurate FPS, but rather as a way to find
33 improvements/regressions
34 https://bugs.webkit.org/show_bug.cgi?id=34450
36 * QGVLauncher/main.cpp:
37 (MainView::MainView): initialize FPS values
38 (MainView::paintEvent): count a painted frame here
39 (MainView::printFps): we print the fps with qDebug every 5 seconds.
41 2010-01-29 Ben Murdoch <benm@google.com>
43 Reviewed by Dimitri Glazkov.
45 [Android] Android needs functionality in the ChromeClient to be informed when touch events are and are not needed by the webpage.
46 https://bugs.webkit.org/show_bug.cgi?id=34215
48 Add needTouchEvents() to the ChromeClient which is called when the page decides it needs or no longer needs to be informed of touch events.
50 * WebCoreSupport/ChromeClientQt.h:
51 (WebCore::ChromeClientQt::needTouchEvents): Add an empty implementation.
53 2010-01-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
55 Reviewed by Simon Hausmann
57 Disable auto-uppercase and predictive text on Maemo5, just like the
58 build-in MicroB Browser.
60 * WebCoreSupport/EditorClientQt.cpp:
61 (WebCore::EditorClientQt::setInputMethodState):
63 2010-01-28 Andreas Kling <andreas.kling@nokia.com>
65 Reviewed by Kenneth Rohde Christiansen.
67 [Qt] Support kinetic scrolling on Maemo 5
69 https://bugs.webkit.org/show_bug.cgi?id=34267
71 Patch by Ralf Engels <ralf.engels@nokia.com> and
72 Robert Griebl <rgriebl@trolltech.com>
75 (QWebViewKineticScroller::QWebViewKineticScroller):
76 (QWebViewKineticScroller::eventFilter):
77 (QWebViewKineticScroller::currentFrame):
78 (QWebViewKineticScroller::scrollingFrameAt):
79 (QWebViewKineticScroller::attachToWidget):
80 (QWebViewKineticScroller::removeFromWidget):
81 (QWebViewKineticScroller::positionRange):
82 (QWebViewKineticScroller::position):
83 (QWebViewKineticScroller::viewportSize):
84 (QWebViewKineticScroller::setPosition):
87 2010-01-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
89 Reviewed by Simon Hausmann.
91 Do not set the combobox font on Maemo5 and S60; use the
94 * WebCoreSupport/QtFallbackWebPopup.cpp:
95 (WebCore::QtFallbackWebPopup::populate):
97 2010-01-28 Trond Kjernåsen <trond@trolltech.com>
99 Reviewed by Simon Hausmann.
101 [Qt] Fix for endless print loop when printing web pages
106 2010-01-27 Diego Gonzalez <diego.gonzalez@openbossa.org>
108 Reviewed by Kenneth Rohde Christiansen.
110 [Qt] DRT Provide worker thread ability to track counters
111 https://bugs.webkit.org/show_bug.cgi?id=34221
113 Implement workerThreadCount() in LayoutTestController of Qt DRT
116 fast/workers/dedicated-worker-lifecycle.html
117 fast/workers/shared-worker-frame-lifecycle.html
118 fast/workers/shared-worker-lifecycle.html
119 fast/workers/worker-lifecycle.html
122 (qt_drt_workerThreadCount):
124 2010-01-27 Simon Hausmann <simon.hausmann@nokia.com>
126 Reviewed by Laszlo Gombos.
128 [Qt] Update the .def files with exported symbols
130 * symbian/eabi/QtWebKitu.def: Add two mangled missing new symbols for arm eabi.
132 2010-01-27 Kent Hansen <kent.hansen@nokia.com>
134 Reviewed by Simon Hausmann.
136 [Qt] Meta-methods can't be introspected using ES5 API
137 https://bugs.webkit.org/show_bug.cgi?id=34087
139 Test that Object.getOwnPropertyDescriptor and
140 Object.getOwnPropertyNames work with meta-methods.
142 * tests/qwebframe/tst_qwebframe.cpp:
144 2010-01-26 Simon Hausmann <simon.hausmann@nokia.com>
146 Reviewed by Kenneth Rohde Christiansen.
148 [Qt] Show comboboxes on Maemo 5
149 https://bugs.webkit.org/show_bug.cgi?id=34088
151 Don't try to show the combobox by simulating a mouse event from QCursor::pos() to
152 get the combobox position right. The position on Maemo 5 is independent from the mouse
153 and there's no QCursor::pos().
155 * WebCoreSupport/QtFallbackWebPopup.cpp:
156 (WebCore::QtFallbackWebPopup::show):
158 2010-01-26 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
160 Reviewed by Simon Hausmann.
162 First steps of the QtScript API.
164 Two new classes were created; QScriptEngine and QScriptValue.
165 The first should encapsulate a javascript context and the second a script
168 This API is still in development, so it isn't compiled by default.
169 To trigger compilation, pass --qmakearg="CONFIG+=build-qtscript" to
172 https://bugs.webkit.org/show_bug.cgi?id=32565
174 * docs/qtwebkit.qdocconf:
176 2010-01-26 Holger Hans Peter Freyther <zecke@selfish.org>
178 Reviewed by Simon Hausmann.
180 [Qt] JavaScript prompt is currently broken
181 https://bugs.webkit.org/show_bug.cgi?id=30914
183 In r52152 a patch was landed to convert a null QString
184 to an empty WebCore::String in case the prompt was accepted
185 but the default implementation returned the null QString.
187 The patch tried to avoid assign to result twice and
188 was not checking the QString if it is null but the default
189 value. This lead to always returning an empty string on
190 successful prompts. Fix it by checking the variable 'x'
193 The manual test case used didn't cover the case of non
194 empty input, replace it with an automatic test case that
195 should cover all cases.
197 * WebCoreSupport/ChromeClientQt.cpp:
198 (WebCore::ChromeClientQt::runJavaScriptPrompt): Fix the bug.
199 * tests/qwebpage/tst_qwebpage.cpp: Add automatic test case
200 (JSPromptPage::JSPromptPage):
201 (JSPromptPage::javaScriptPrompt):
202 (tst_QWebPage::testJSPrompt):
204 2010-01-25 Simon Hausmann <hausmann@webkit.org>
206 Reviewed by Kenneth Rohde Christiansen.
208 [Qt] In RenderThemeQt determine the QStyle from the page client instead of the page's view
209 https://bugs.webkit.org/show_bug.cgi?id=34053
211 * Api/qgraphicswebview.cpp:
212 (QGraphicsWebViewPrivate::style): Implement QWebPageClient::style() and return the graphics
215 (QWebPageWidgetClient::style): Implement QWebPageClient::style() and return the widget's style.
217 2010-01-25 Janne Koskinen <janne.p.koskinen@digia.com>
219 Reviewed by Simon Hausmann.
221 [Qt] Phone backup support for QtWebkit for Symbian devices.
222 https://bugs.webkit.org/show_bug.cgi?id=34077
224 * symbian/backup_registration.xml: Added.
226 2010-01-23 Girish Ramakrishnan <girish@forwardbias.in>
228 Reviewed by Kenneth Rohde Christiansen.
230 [Qt] Fix positioning of ComboBox popup in QGraphicsWebView.
232 Wrap the popup in a QGraphicsProxyWidget, so that the popup
233 transforms with the item.
235 https://bugs.webkit.org/show_bug.cgi?id=33887
237 * WebCoreSupport/QtFallbackWebPopup.cpp:
238 (WebCore::QtFallbackWebPopupCombo::hidePopup):
239 (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
240 (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
241 (WebCore::QtFallbackWebPopup::show):
242 * WebCoreSupport/QtFallbackWebPopup.h:
244 2010-01-22 Peter Kasting <pkasting@google.com>
246 Not reviewed, backout.
248 Back out r52673, which caused several regressions.
249 https://bugs.webkit.org/show_bug.cgi?id=32533
251 * WebCoreSupport/QtFallbackWebPopup.cpp:
252 (WebCore::QtFallbackWebPopupCombo::hidePopup):
254 2010-01-22 Girish Ramakrishnan <girish@forwardbias.in>
256 Reviewed by Simon Hausmann.
258 [Qt] Save the QWebPageClient instead of the ownerWidget in QtAbstractWebPopup
260 The QWebPageClient is required for the QtFallbackWebPopup. QtFallbackWebPopup will
261 need it to create a QGraphicsProxyWidget (in a future commit) for the
262 QGraphicsWebView's web popup.
264 * WebCoreSupport/QtFallbackWebPopup.cpp:
265 (WebCore::QtFallbackWebPopup::show):
267 2010-01-22 Girish Ramakrishnan <girish@forwardbias.in>
269 Reviewed by Kenneth Rohde Christiansen.
271 QState::polished() was renamed to QState::propertiesAssigned() when
272 Qt 4.6.0 was released.
274 * QGVLauncher/main.cpp:
277 2010-01-21 Diego Gonzalez <diego.gonzalez@openbossa.org>
279 Reviewed by Kenneth Rohde Christiansen.
281 [Qt] add setDomainRelaxationForbiddenForURLScheme in Qt DRT
282 https://bugs.webkit.org/show_bug.cgi?id=33945
284 * Api/qwebsecurityorigin.cpp:
285 (qt_drt_setDomainRelaxationForbiddenForURLScheme):
287 2010-01-21 No'am Rosenthal <noam.rosenthal@nokia.com>
289 Reviewed by Antti Koivisto.
291 [Qt] Implement GraphicsLayer for accelerated layer compositing
292 https://bugs.webkit.org/show_bug.cgi?id=33514
294 Here we have the QGraphicsWebView support for accelerated compositing
296 * Api/qgraphicswebview.cpp:
297 (QGraphicsWebViewOverlay::q): access to container object
298 (QGraphicsWebViewOverlay::boundingRect): overlay has same rect as the
300 (QGraphicsWebViewOverlay::paint): paint everything but the contents
301 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate): some vars needed
302 for accelerated compositing
303 (QGraphicsWebViewPrivate::):
304 (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate):
305 (QGraphicsWebViewPrivate::setRootGraphicsLayer): make sure we have a
306 scrollbar overlay, and that the new graphics layer is parented by the
308 (QGraphicsWebViewPrivate::markForSync): flush changes at earliest
309 convenience or during the next draw
311 (QGraphicsWebViewPrivate::updateCompositingScrollPosition): sync the
312 position of the compositing layer with the scroll position
313 (QGraphicsWebViewPrivate::syncLayers): flush changes now
314 (QGraphicsWebViewPrivate::scroll): make sure we also move the
316 (QGraphicsWebViewPrivate::update): also update the overlay if needed
317 (QGraphicsWebView::QGraphicsWebView): initialize overlay with 0
318 (QGraphicsWebView::paint): paint only contents if we have an overlay,
319 sync the compositing layers now if needed
320 (QGraphicsWebView::setPage): also clean up the compositing
321 (QGraphicsWebView::updateGeometry): also update overlay geo
322 (QGraphicsWebView::setGeometry): also update overlay geo
323 * Api/qgraphicswebview.h: reimp compositing stuff from QWebPageClient
324 * Api/qwebsettings.cpp: init new settings flag for compositing as
326 (QWebSettingsPrivate::apply): apply new settings flag for compositing
327 (QWebSettings::QWebSettings):
328 * Api/qwebsettings.h: new settings flag for compositing
330 (QWebView::setPage): qwebview doesn't support compositing: always false
331 * QGVLauncher/main.cpp:
332 (WebView::WebView): some more cmdline arguments + compositing
333 (MainWindow::init): some more cmdline arguments
335 * WebCoreSupport/ChromeClientQt.cpp:
336 (WebCore::ChromeClientQt::attachRootGraphicsLayer): reimp for
338 (WebCore::ChromeClientQt::setNeedsOneShotDrawingSynchronization):
339 reimp for accel compositing
340 (WebCore::ChromeClientQt::scheduleCompositingLayerSync): reimp for
342 * WebCoreSupport/ChromeClientQt.h: reimps for accel compositing
344 2010-01-21 Benjamin Poulain <benjamin.poulain@nokia.com>
346 Reviewed by Simon Hausmann.
348 [Qt] Improve the autotests of QtWebkit
349 https://bugs.webkit.org/show_bug.cgi?id=32216
351 Remove qWait() of the test when possible.
353 * tests/qwebpage/tst_qwebpage.cpp:
354 (tst_QWebPage::loadFinished):
355 (tst_QWebPage::database):
356 (tst_QWebPage::testEnablePersistentStorage):
357 (tst_QWebPage::errorPageExtension):
358 (tst_QWebPage::screenshot):
360 2010-01-21 Simon Hausmann <simon.hausmann@nokia.com>
362 Prospective build fix for the Qt build.
364 Fix compilation against Qt without WebKit support by not including QtWebKit/QWebView
365 but widget.h instead and instantiating QWebView through a typedef, to ensure we're using
366 our locally built WebKit.
368 * tests/hybridPixmap/widget.h:
369 * tests/hybridPixmap/widget.ui:
371 2010-01-21 No'am Rosenthal <noam.rosenthal@nokia.com>
373 Reviewed by Simon Hausmann.
375 [Qt] Adding QPixmap/QImage support for the Qt hybrid layer
376 https://bugs.webkit.org/show_bug.cgi?id=32461
378 * tests/hybridPixmap: Added.
379 * tests/hybridPixmap/hybridPixmap.pro: Added.
380 * tests/hybridPixmap/resources.qrc: Added.
381 * tests/hybridPixmap/test.html: Added.
382 * tests/hybridPixmap/tst_hybridPixmap.cpp: Added.
383 (tst_hybridPixmap::tst_hybridPixmap): tests most of the use cases for
384 hybrid pixmap/image manipulation
385 (tst_hybridPixmap::init): QTestLib initialization
386 (tst_hybridPixmap::cleanup): QTestLib cleanup
387 (tst_hybridPixmap::hybridPixmap): run the html file
388 * tests/hybridPixmap/widget.cpp: Added.
392 (Widget::completeTest):
398 (Widget::changeEvent):
401 (Widget::pixmapSlot):
402 (Widget::randomSlot):
403 * tests/hybridPixmap/widget.h: Added.
404 * tests/hybridPixmap/widget.ui: Added.
407 2010-01-21 Luiz Agostini <luiz.agostini@openbossa.org>
409 Reviewed by Kenneth Rohde Christiansen.
411 [Qt] Custom select popups.
412 https://bugs.webkit.org/show_bug.cgi?id=33418
414 Adjusting QtFallbackWebPopupCombo to the changes in WebCore layer.
416 * WebCoreSupport/ChromeClientQt.cpp:
417 (WebCore::ChromeClientQt::createSelectPopup):
418 * WebCoreSupport/ChromeClientQt.h:
419 * WebCoreSupport/QtFallbackWebPopup.cpp:
420 (WebCore::QtFallbackWebPopupCombo::QtFallbackWebPopupCombo):
421 (WebCore::QtFallbackWebPopupCombo::showPopup):
422 (WebCore::QtFallbackWebPopupCombo::hidePopup):
423 (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
424 (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
425 (WebCore::QtFallbackWebPopup::show):
426 (WebCore::QtFallbackWebPopup::hide):
427 (WebCore::QtFallbackWebPopup::populate):
428 * WebCoreSupport/QtFallbackWebPopup.h:
430 2010-01-19 Steve Block <steveblock@google.com>
432 Reviewed by Adam Barth.
434 Renames WebCore/bridge/runtime.[cpp|h] to WebCore/bridge/Bridge.[cpp|h]
435 https://bugs.webkit.org/show_bug.cgi?id=33801
439 2010-01-14 Brian Weinstein <bweinstein@apple.com>
441 Reviewed by Adam Roben.
443 Drag and Drop source/destination code needs cleanup.
444 <https://bugs.webkit.org/show_bug.cgi?id=33691>.
446 Update to new way of calling sourceOperation.
448 * WebCoreSupport/DragClientQt.cpp:
449 (WebCore::DragClientQt::startDrag):
451 2010-01-14 Simon Hausmann <simon.hausmann@nokia.com>
453 Reviewed by Tor Arne Vestbø.
455 [Qt] Symbian build fixes.
457 * tests/qwebpage/tst_qwebpage.cpp: Include util.h
458 * tests/tests.pri: Don't define TESTS_SOURCE_DIR, it doesn't work.
459 * tests/util.h: Define TESTS_SOURCE_DIR here, just like it's done in Qt.
461 2010-01-14 Simon Hausmann <simon.hausmann@nokia.com>
463 Reviewed by Kenneth Rohde Christiansen.
465 [Qt] Update Symbian .def symbol export files after private API additions.
467 * symbian/bwins/QtWebKitu.def:
468 * symbian/eabi/QtWebKitu.def:
470 2010-01-13 Darin Adler <darin@apple.com>
472 Reviewed by Dan Bernstein.
474 Move more of the selection and caret painting code from Frame to SelectionController.
475 https://bugs.webkit.org/show_bug.cgi?id=33619
478 (QWebPagePrivate::inputMethodEvent): Seems possibly wrong to be directly invoking this
479 setCaretVisible here, but I updated it to call it in its new location.
481 2010-01-11 Simon Hausmann <simon.hausmann@nokia.com>
483 Reviewed by Holger Freyther.
485 [Qt] Add private API for QWebFrame scrolling, to maintain binary compatibility with Qt 4.6.
487 This is just a temporary addition until we have introduced #ifdefs to allow
488 safely removing the private API again.
491 (qtwebkit_webframe_scrollRecursively):
493 2010-01-10 Robert Hogan <robert@roberthogan.net>
495 Reviewed by Adam Barth.
497 [Qt] Add enableXSSAuditor support to QWebSettings and DRT.
499 https://bugs.webkit.org/show_bug.cgi?id=33419
501 * Api/qwebsettings.cpp:
502 (QWebSettingsPrivate::apply):
503 * Api/qwebsettings.h:
505 2010-01-09 Daniel Bates <dbates@webkit.org>
507 No review, rolling out r53044.
508 http://trac.webkit.org/changeset/53044
509 https://bugs.webkit.org/show_bug.cgi?id=33419
511 We need to look into this some more because the Qt
512 bot is failing the XSSAuditor tests. See bug #33419
515 * Api/qwebsettings.cpp:
516 * Api/qwebsettings.h:
518 2010-01-09 Daniel Bates <dbates@webkit.org>
520 Reviewed by Adam Barth.
522 https://bugs.webkit.org/show_bug.cgi?id=33419
524 Adds support for the XSSAuditor to the Qt DRT.
526 * Api/qwebsettings.cpp: Updated comment to reflect added key XSSAuditorEnabled.
527 * Api/qwebsettings.h: Adds settings key XSSAuditorEnabled.
529 2010-01-08 Luiz Agostini <luiz.agostini@openbossa.org>
531 Reviewed by Kenneth Rohde Christiansen.
533 [Qt] Delegation client
534 https://bugs.webkit.org/show_bug.cgi?id=32826
536 Added method createPopup to ChromeClientQt used to create popups.
537 QtFallbackWebPopup moved from WebCore/platform/qt to
538 WebKit/qt/WebCoreSupport.
540 * WebCoreSupport/ChromeClientQt.cpp:
541 (WebCore::ChromeClientQt::createPopup):
542 * WebCoreSupport/ChromeClientQt.h:
543 * WebCoreSupport/QtFallbackWebPopup.cpp: Added.
544 (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
545 (WebCore::QtFallbackWebPopup::show):
546 (WebCore::QtFallbackWebPopup::populate):
547 (WebCore::QtFallbackWebPopup::showPopup):
548 (WebCore::QtFallbackWebPopup::hidePopup):
549 (WebCore::QtFallbackWebPopup::activeChanged):
550 (WebCore::QtFallbackWebPopup::setParent):
551 * WebCoreSupport/QtFallbackWebPopup.h: Added.
552 (WebCore::QtFallbackWebPopup::hide):
554 2010-01-07 Yael Aharon <yael.aharon@nokia.com>
556 Reviewed by Kenneth Rohde Christiansen.
558 [Qt] Allow the application to override online/offline network status
559 https://bugs.webkit.org/show_bug.cgi?id=32684
561 Add a setting so that applications can overide the network status.
562 Applications that use this setting still need to block network access
565 * Api/qwebsettings.cpp:
566 (qt_networkAccessAllowed):
568 2010-01-07 Yongjun Zhang <yongjun.zhang@nokia.com>, Laszlo Gombos <laszlo.1.gombos@nokia.com>
570 Reviewed by Simon Hausmann.
572 [Qt] need an API to suspend and resume active Javascript DOM objects.
573 https://bugs.webkit.org/show_bug.cgi?id=31673
575 Add suspend and resume DOM objects private API to QWebFrame.
578 (qt_suspendActiveDOMObjects):
579 (qt_resumeActiveDOMObjects):
581 2010-01-06 Andreas Kling <andreas.kling@nokia.com>
583 Reviewed by Simon Hausmann.
585 [Qt] Return an invalid Qt::ImMicroFocus if queried while the view needs to layout.
587 https://bugs.webkit.org/show_bug.cgi?id=33204
590 (QWebPage::inputMethodQuery):
592 2010-01-05 Yael Aharon <yael.aharon@nokia.com>
594 Reviewed by Kenneth Rohde Christiansen.
596 Drag & drop layout tests fail even when run manually
597 https://bugs.webkit.org/show_bug.cgi?id=33055
599 No new tests. Fix 3 layout tests when run manually.
600 fast/events/drag-and-drop.html
601 fast/events/drag-and-drop-dataTransfer-types-nocrash.html
602 fast/events/drag-and-drop-fire-drag-dragover.html
603 Running these tests in DRT will be fixed in 31332.
606 (dropActionToDragOp):
607 (dragOpToDropAction):
608 (QWebPagePrivate::dragEnterEvent):
609 (QWebPagePrivate::dragMoveEvent):
610 (QWebPagePrivate::dropEvent):
611 Accept drag events even if they are not over a drop target.
612 This is to ensure that drag events will continue to be delivered.
615 * WebCoreSupport/DragClientQt.cpp:
616 (WebCore::dragOperationToDropActions):
617 (WebCore::dropActionToDragOperation):
618 (WebCore::DragClientQt::startDrag):
621 2010-01-04 Daniel Bates <dbates@webkit.org>
623 Reviewed by Eric Seidel.
625 https://bugs.webkit.org/show_bug.cgi?id=33097
627 Cleans up the File menu to better conform to the File menu in Safari
628 both in terms of options and keyboard shortcuts. Adds a "Quit" menu
629 options to close all open windows.
631 * QGVLauncher/main.cpp:
632 (MainWindow::buildUI):
634 2009-12-31 Laszlo Gombos <laszlo.1.gombos@nokia.com>
636 Reviewed by Kenneth Rohde Christiansen.
638 [Qt] Enable all HTML5 persistent features for QGVLauncher
639 https://bugs.webkit.org/show_bug.cgi?id=33086
641 * QGVLauncher/main.cpp: Call enablePersistentStorage()
644 2009-12-30 Laszlo Gombos <laszlo.1.gombos@nokia.com>
646 Reviewed by Simon Hausmann.
648 [Qt] It should be possible to disable inspector
649 https://bugs.webkit.org/show_bug.cgi?id=32724
651 This change fixes the build break. Some QtWebKit interfaces
652 will not be fully functional (most notable QWebInspector) if
653 INSPECTOR is disabled.
655 * Api/qwebinspector.cpp:
656 (QWebInspector::showEvent):
657 (QWebInspector::closeEvent):
659 (webActionForContextMenuAction):
660 (QWebPagePrivate::getOrCreateInspector):
661 (QWebPagePrivate::inspectorController):
662 (QWebPage::triggerAction):
663 (QWebPage::updatePositionDependentActions):
664 * WebCoreSupport/InspectorClientQt.cpp:
665 (WebCore::InspectorClientQt::showWindow):
666 (WebCore::InspectorClientQt::closeWindow):
668 2009-12-30 Janne Koskinen <janne.p.koskinen@digia.com>
670 Reviewed by Simon Hausmann.
672 Upstream Symbian def files from Qt 4.6.
674 These files define the ABI of QtWebKit on Symbian.
676 * symbian/bwins/QtWebKitu.def: Added.
677 * symbian/eabi/QtWebKitu.def: Added.
679 2009-12-29 Daniel Bates <dbates@webkit.org>
681 Reviewed by Ariya Hidayat.
683 https://bugs.webkit.org/show_bug.cgi?id=32925
685 Adds an Open File dialog to make it convenient to open a file
686 to view in the browser.
688 * QGVLauncher/main.cpp:
689 (MainWindow::load): Modified to call loadURL.
690 (MainWindow::openFile): Added.
691 (MainWindow::loadURL): Added.
692 (MainWindow::buildUI): Added menu item Open File.
694 2009-12-29 Robert Hogan <robert@roberthogan.net>
696 Reviewed by Eric Seidel.
698 [Qt] Fix crash on LayoutTests/fast/loader/empty-embed-src-attribute.html
700 Related to https://bugs.webkit.org/show_bug.cgi?id=23806
702 If an embedded document is loaded within a page and it has an empty
703 URL, use a blank URL for the load request.
705 https://bugs.webkit.org/show_bug.cgi?id=33017
707 * WebCoreSupport/FrameLoaderClientQt.cpp:
708 (WebCore::FrameLoaderClientQt::createFrame):
710 2009-12-29 Laszlo Gombos <laszlo.1.gombos@nokia.com>
712 Rubber-stamped by Simon Hausmann and Holger Freyther.
714 [Qt] Remove WebKit/qt/WebKitPart empty directory
716 The content of the directory has been removed by r34888.
718 * WebKitPart: Removed.
720 2009-12-29 Jakub Wieczorek <faw217@gmail.com>
722 Reviewed by Eric Seidel.
724 [Qt] DRT: Frame loader callbacks differ from the Mac port
725 https://bugs.webkit.org/show_bug.cgi?id=32989
727 Remove messages from the callbacks that should not dump them to match
728 the expected results for the http/loading tests.
730 Unskip some http/loading tests which succeed now.
732 * WebCoreSupport/FrameLoaderClientQt.cpp:
733 (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
734 (WebCore::FrameLoaderClientQt::dispatchWillClose):
735 (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
736 (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
738 2009-12-29 Robert Hogan <robert@roberthogan.net>
740 Reviewed by Eric Seidel.
742 [Qt] fix fast/dom/Window/window-onFocus.html
744 Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
745 window.onblur was getting dispatched twice from QtWebKit.
747 https://bugs.webkit.org/show_bug.cgi?id=32990
750 (QWebPagePrivate::focusOutEvent):
752 2009-12-24 Girish Ramakrishnan <girish@forwardbias.in>
754 Reviewed by Gustavo Noronha.
756 Doc : QGraphicsWebView::zoomFactor was introduced in 4.6.
758 * Api/qgraphicswebview.cpp:
760 2009-12-22 Simon Hausmann <simon.hausmann@nokia.com>
762 Rubber-stamped by Holger Freyther.
764 Moved QtLauncher to WebKitTools/
766 * QtLauncher: Removed.
767 * QtLauncher/QtLauncher.pro: Removed.
768 * QtLauncher/main.cpp: Removed.
770 2009-12-21 David Boddie <dboddie@trolltech.com>
772 Reviewed by Simon Hausmann.
774 Doc: Minor fixes to language.
778 2009-12-21 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
780 Reviewed by Simon Hausmann.
782 [Qt] Clean up the WebKit layer unit-tests
784 - Use tests.pri for common options
785 - Standardize file naming
786 - Move all resources to 'resources' subdir
787 - Standardize how TESTS_SOURCE_DIR is used
788 - Get rid of UID3 for symbian (autogenerated)
789 - Don't build app bundles on Mac OS X
791 * tests/benchmarks/loading/loading.pro: Added.
792 * tests/benchmarks/loading/tst_loading.pro: Removed.
793 * tests/benchmarks/painting/painting.pro: Added.
794 * tests/benchmarks/painting/tst_painting.pro: Removed.
795 * tests/qgraphicswebview/qgraphicswebview.pro:
796 * tests/qwebelement/qwebelement.pro:
797 * tests/qwebelement/qwebelement.qrc: Removed.
798 * tests/qwebelement/resources/image.png: Renamed from WebKit/qt/tests/qwebelement/image.png.
799 * tests/qwebelement/resources/style.css: Renamed from WebKit/qt/tests/qwebelement/style.css.
800 * tests/qwebelement/resources/style2.css: Renamed from WebKit/qt/tests/qwebelement/style2.css.
801 * tests/qwebelement/tst_qwebelement.qrc: Added.
802 * tests/qwebframe/qwebframe.pro:
803 * tests/qwebframe/qwebframe.qrc: Removed.
804 * tests/qwebframe/resources/image.png: Renamed from WebKit/qt/tests/qwebframe/image.png.
805 * tests/qwebframe/resources/style.css: Renamed from WebKit/qt/tests/qwebframe/style.css.
806 * tests/qwebframe/resources/test1.html: Renamed from WebKit/qt/tests/qwebframe/test1.html.
807 * tests/qwebframe/resources/test2.html: Renamed from WebKit/qt/tests/qwebframe/test2.html.
808 * tests/qwebframe/resources/testiframe.html: Renamed from WebKit/qt/tests/qwebframe/testiframe.html.
809 * tests/qwebframe/resources/testiframe2.html: Renamed from WebKit/qt/tests/qwebframe/testiframe2.html.
810 * tests/qwebframe/tst_qwebframe.cpp:
811 * tests/qwebframe/tst_qwebframe.qrc: Added.
812 * tests/qwebhistory/qwebhistory.pro:
813 * tests/qwebhistory/resources/page1.html: Renamed from WebKit/qt/tests/qwebhistory/data/page1.html.
814 * tests/qwebhistory/resources/page2.html: Renamed from WebKit/qt/tests/qwebhistory/data/page2.html.
815 * tests/qwebhistory/resources/page3.html: Renamed from WebKit/qt/tests/qwebhistory/data/page3.html.
816 * tests/qwebhistory/resources/page4.html: Renamed from WebKit/qt/tests/qwebhistory/data/page4.html.
817 * tests/qwebhistory/resources/page5.html: Renamed from WebKit/qt/tests/qwebhistory/data/page5.html.
818 * tests/qwebhistory/resources/page6.html: Renamed from WebKit/qt/tests/qwebhistory/data/page6.html.
819 * tests/qwebhistory/tst_qwebhistory.cpp:
821 * tests/qwebhistory/tst_qwebhistory.qrc:
822 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
823 * tests/qwebinspector/qwebinspector.pro:
824 * tests/qwebpage/qwebpage.pro:
825 * tests/qwebpage/resources/frame_a.html: Renamed from WebKit/qt/tests/qwebpage/frametest/frame_a.html.
826 * tests/qwebpage/resources/iframe.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe.html.
827 * tests/qwebpage/resources/iframe2.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe2.html.
828 * tests/qwebpage/resources/iframe3.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe3.html.
829 * tests/qwebpage/resources/index.html: Renamed from WebKit/qt/tests/qwebpage/frametest/index.html.
830 * tests/qwebpage/tst_qwebpage.cpp:
831 (tst_QWebPage::backActionUpdate):
832 (tst_QWebPage::frameAt):
833 (tst_QWebPage::errorPageExtensionInFrameset):
834 (tst_QWebPage::screenshot):
835 * tests/qwebpage/tst_qwebpage.qrc:
836 * tests/qwebplugindatabase/qwebplugindatabase.pro:
837 * tests/qwebview/qwebview.pro:
838 * tests/qwebview/resources/frame_a.html: Renamed from WebKit/qt/tests/qwebview/data/frame_a.html.
839 * tests/qwebview/resources/index.html: Renamed from WebKit/qt/tests/qwebview/data/index.html.
840 * tests/qwebview/tst_qwebview.cpp:
841 (tst_QWebView::reusePage):
842 (tst_QWebView::crashTests):
843 * tests/qwebview/tst_qwebview.qrc:
844 * tests/resources/image2.png: Renamed from WebKit/qt/tests/qwebframe/resources/image2.png.
845 * tests/tests.pri: Added.
848 2009-12-18 Ariya Hidayat <ariya.hidayat@gmail.com>
850 Build fix, not reviewed.
852 * QtLauncher/main.cpp:
853 (MainWindow::setTouchMocking): Leave setTouchMocking as an empty
854 function for Qt < 4.6 so that moc still creates a slot for that.
855 Otherwise, it would have generated a linker error.
857 2009-12-18 Adam Roben <aroben@apple.com>
861 * Api/qwebpage.cpp: Added #include.
863 2009-12-18 Adam Roben <aroben@apple.com>
870 2009-12-18 Joe Ligman <joseph.ligman@nokia.com>
872 Reviewed by Kenneth Rohde Christiansen.
874 [Qt] Add new API to QWebFrame to scrollRecursively starting with any css overflow
875 then checking current frame and then ancestors
876 https://bugs.webkit.org/show_bug.cgi?id=32668
879 (QWebFramePrivate::scrollOverflow):
880 (QWebFrame::scrollRecursively):
883 * tests/qwebframe/qwebframe.qrc:
884 * tests/qwebframe/testiframe.html: Added.
885 * tests/qwebframe/testiframe2.html: Added.
886 * tests/qwebframe/tst_qwebframe.cpp:
888 2009-12-18 Simon Hausmann <simon.hausmann@nokia.com>
890 Reviewed by Tor Arne Vestbø.
892 [Qt] Fix infinite recursion in touch mocking.
894 Don't send the fake touch events to the view, as that'll trigger the
897 * QtLauncher/main.cpp:
898 (MainWindow::sendTouchEvent):
900 2009-12-17 Benjamin Poulain <benjamin.poulain@nokia.com>
902 Reviewed by Simon Hausmann.
904 [Qt] Add support for mocking touch events with Q(GV)Launcher
905 https://bugs.webkit.org/show_bug.cgi?id=32434
907 The event delivery should go through QCoreApplication::sendEvent()
909 * QtLauncher/main.cpp:
910 (MainWindow::sendTouchEvent):
912 2009-12-17 Kim Grönholm <kim.gronholm@nomovok.com>
914 Reviewed by Simon Hausmann.
916 [Qt] Add support for touch events in QWebView and QGraphicsWebView
917 https://bugs.webkit.org/show_bug.cgi?id=32432
919 * Api/qgraphicswebview.cpp:
920 (QGraphicsWebView::QGraphicsWebView):
921 (QGraphicsWebView::sceneEvent):
923 (QWebView::QWebView):
926 2009-12-17 Kim Grönholm <kim.gronholm@nomovok.com>
928 Reviewed by Simon Hausmann.
930 [Qt] Add support for mocking touch events with QtLauncher
931 https://bugs.webkit.org/show_bug.cgi?id=32434
933 * QtLauncher/main.cpp:
934 (MainWindow::MainWindow):
935 (MainWindow::sendTouchEvent):
936 (MainWindow::eventFilter):
937 (MainWindow::setTouchMocking):
938 (MainWindow::setupUI):
940 2009-12-14 Holger Hans Peter Freyther <zecke@selfish.org>
942 Reviewed by Kenneth Rohde Christiansen.
944 [Qt] Fix JavaScript prompt behavior for empty/null strings.
945 https://bugs.webkit.org/show_bug.cgi?id=30914
947 The patch is based on the work done by Gupta Manish.
949 In the default implementation of the JavaScript prompt
950 we are using a QInputDialog to get the text and this has
951 one quirk with regard to not entering any text.
953 In other WebKit ports and in Firefox an empty string is
954 returned but in the Qt case it is a null string.
956 Change the API documentation in QWebPage to mention we want to
957 have a non null string but do the fixup in the ChromeClientQt
958 to support existing code.
961 (QWebPage::javaScriptPrompt): Change API documentation
962 * WebCoreSupport/ChromeClientQt.cpp:
963 (WebCore::ChromeClientQt::runJavaScriptPrompt): Fixup null QString
965 2009-11-24 Holger Hans Peter Freyther <zecke@selfish.org>
967 Reviewed by Simon Hausmann.
969 [Qt] Do not disable the inspector on show and hide
970 https://bugs.webkit.org/show_bug.cgi?id=31851
972 On Qt/X11 with some window managers the window will be
973 hidden when switching windows. In this case all the results
974 are gone when coming back to the window.
976 Attempt to use the CloseEvent to figure out if the window
977 was closed and withdrawn as this is more friendly to the
978 user of the inspector client.
980 * Api/qwebinspector.cpp:
981 (QWebInspector::hideEvent):
982 (QWebInspector::closeEvent):
983 * Api/qwebinspector.h:
985 2009-12-14 Benjamin Poulain <benjamin.poulain@nokia.com>
987 Reviewed by Kenneth Rohde Christiansen.
989 [Qt] Improve the autotests of QtWebkit
990 https://bugs.webkit.org/show_bug.cgi?id=32216
992 Refactor tst_qwebelement to remove the qWait()
994 * tests/qwebelement/tst_qwebelement.cpp:
995 (tst_QWebElement::style):
997 2009-12-14 Andreas Kling <andreas.kling@nokia.com>
999 Reviewed by Simon Hausmann.
1001 Fix the QWebPage inputMethods() autotest after r51758
1002 to compare the Qt::ImFont property's family against an explicitly
1003 previously configured family.
1005 https://bugs.webkit.org/show_bug.cgi?id=32491
1007 * tests/qwebpage/tst_qwebpage.cpp:
1008 (tst_QWebPage::inputMethods):
1010 2009-12-13 Sam Weinig <sam@webkit.org>
1012 Reviewed by Dan Bernstein.
1014 Fix for https://bugs.webkit.org/show_bug.cgi?id=32499
1015 Add client based Geolocation provider
1017 Add first cut of a client based Geolocation provider. This is guarded by
1018 ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a
1019 GeolocationControllerClient interface that no-one currently implements,
1020 but will in a subsequent patch.
1023 (QWebPagePrivate::QWebPagePrivate):
1025 2009-12-13 Benjamin Poulain <benjamin.poulain@nokia.com>
1027 Reviewed by Simon Hausmann.
1029 Add a test in Qt for https://bugs.webkit.org/show_bug.cgi?id=29005
1030 https://bugs.webkit.org/show_bug.cgi?id=29008
1032 * tests/qwebframe/tst_qwebframe.cpp:
1034 2009-12-13 Simon Hausmann <hausmann@webkit.org>
1036 Reviewed by Holger Freyther.
1038 [Qt] Re-enable QWebView::renderHints property for Qt for Symbian
1040 https://bugs.webkit.org/show_bug.cgi?id=28273
1042 The bug in Qt's moc that triggered a linking error when declaring this
1043 property has been fixed and we can remove the workaround.
1047 2009-12-11 Yael Aharon <yael.aharon@nokia.com>
1049 Unreviewed build fix for Qt versions < 4.6.
1051 * tests/qwebframe/tst_qwebframe.cpp:
1052 * tests/qwebview/tst_qwebview.cpp:
1053 (tst_QWebView::reusePage):
1055 2009-12-11 Girish Ramakrishnan <girish@forwardbias.in>
1057 Reviewed by Tor Arne Vestbø.
1059 [Qt] Updated QWebElement documentation
1061 findAll() returns a QWebElementCollection, not QList<QWebElement>.
1063 * docs/webkitsnippets/webelement/main.cpp:
1066 2009-12-11 Simon Hausmann <hausmann@webkit.org>, Kim Grönholm <kim.gronholm@nomovok.com>
1068 Reviewed by Antti Koivisto.
1070 Forward Qt touch events to the event handler as platform touch events.
1072 https://bugs.webkit.org/show_bug.cgi?id=32114
1075 (QWebPagePrivate::touchEvent):
1079 2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
1081 Reviewed by Kenneth Rohde Christiansen.
1083 [Qt] Improve the autotests of QtWebkit
1084 https://bugs.webkit.org/show_bug.cgi?id=32216
1086 Remove the calls to qWait() of the autotest of QWebView
1088 * tests/qwebview/tst_qwebview.cpp:
1089 (tst_QWebView::reusePage):
1091 2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
1093 Reviewed by Kenneth Rohde Christiansen.
1095 [Qt] Improve the autotests of QtWebkit
1096 https://bugs.webkit.org/show_bug.cgi?id=32216
1098 Refactor tst_qwebframe to remove qWait() and use
1099 the function waitForSignal() from util.h
1101 * tests/qwebframe/tst_qwebframe.cpp:
1103 2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
1105 Reviewed by Kenneth Rohde Christiansen.
1107 [Qt] Improve the autotests of QtWebkit
1108 https://bugs.webkit.org/show_bug.cgi?id=32216
1110 Refactor the test of QGraphicsWebView:
1111 -make waitForSignal() available to all the tests.
1112 -remove QTest::qWait()
1114 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1115 (tst_QGraphicsWebView::crashOnViewlessWebPages):
1119 2009-12-07 Girish Ramakrishnan <girish@forwardbias.in>
1121 Reviewed by Simon Hausmann.
1123 [Qt] Plugins: Force windowless mode when there is no native window handle
1125 Inject wmode=opaque while instantiating the plugin for the case when the
1126 webpage is not backed by a native window handle.
1128 https://bugs.webkit.org/show_bug.cgi?id=32059
1130 * WebCoreSupport/FrameLoaderClientQt.cpp:
1131 (WebCore::FrameLoaderClientQt::createPlugin):
1133 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1135 Reviewed by Kenneth Rohde Christiansen.
1137 [Qt] Corrects QtLauncher style
1139 * QtLauncher/main.cpp:
1140 (WebPage::acceptNavigationRequest):
1141 (MainWindow::MainWindow):
1142 (MainWindow::webPage):
1143 (MainWindow::webView):
1144 (MainWindow::changeLocation):
1145 (MainWindow::loadFinished):
1146 (MainWindow::showLinkHover):
1147 (MainWindow::zoomIn):
1148 (MainWindow::zoomOut):
1149 (MainWindow::print):
1150 (MainWindow::setEditable):
1151 (MainWindow::dumpHtml):
1152 (MainWindow::selectElements):
1153 (MainWindow::newWindow):
1154 (MainWindow::setupUI):
1155 (WebPage::createWindow):
1156 (WebPage::createPlugin):
1159 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1161 Reviewed by Kenneth Rohde Christiansen.
1163 [Qt] QtLauncher: add a menu to show or hide the web inspector.
1164 https://bugs.webkit.org/show_bug.cgi?id=32149
1166 * QtLauncher/main.cpp:
1167 (WebInspector::WebInspector):
1168 (WebInspector::showEvent):
1169 (WebInspector::hideEvent):
1170 (MainWindow::MainWindow):
1171 (MainWindow::setupUI):
1173 2009-12-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
1175 Reviewed by Antti Koivisto.
1177 Split out the renderPrivate in two methods, one for working on
1178 relative coordinates (relative to the viewport) and one for
1179 working on absolute coordinates. The latter is more effecient
1180 for implementing tiling, as you don't need translate the coords,
1181 and because it avoid clipping to the viewport.
1183 No behaviour changes, so no new tests.
1185 * Api/qwebframe.cpp:
1186 (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
1187 (QWebFramePrivate::renderRelativeCoords):
1188 (QWebFrame::render):
1189 * Api/qwebframe_p.h:
1191 2009-12-04 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1193 Reviewed by Simon Hausmann.
1195 [Qt] Allow removing 'qrc' as a local security origin scheme
1197 * tests/qwebpage/tst_qwebpage.cpp:
1199 2009-12-04 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1201 Reviewed by Simon Hausmann.
1203 [Qt] Clean up argument parsing in the QtLauncher
1205 * QtLauncher/main.cpp:
1207 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1209 Reviewed by Kenneth Rohde Christiansen.
1211 [Qt] Prevent the inspector from closing its wrapping widget.
1212 This is not necessary anymore since we now hide the embedded
1214 https://bugs.webkit.org/show_bug.cgi?id=32149
1216 * WebCoreSupport/InspectorClientQt.cpp:
1217 (WebCore::InspectorClientQt::showWindow):
1218 (WebCore::InspectorClientQt::closeWindow):
1220 2009-12-03 İsmail Dönmez <ismail@namtrac.org>
1222 Reviewed by Eric Seidel.
1224 Fix compilation when SVG is disabled.
1226 * Api/qwebframe.cpp:
1227 (qt_drt_pauseSVGAnimation):
1229 2009-12-03 Brady Eidson <beidson@apple.com>
1231 Reviewed by Sam Weinig.
1233 <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
1235 * WebCoreSupport/FrameLoaderClientQt.cpp:
1236 (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
1237 (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
1238 (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
1239 * WebCoreSupport/FrameLoaderClientQt.h:
1241 2009-12-03 Pavel Feldman <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
1243 Reviewed by Timothy Hatcher.
1245 Web Inspector: Simplify the settings support in inspector controller.
1247 https://bugs.webkit.org/show_bug.cgi?id=32076
1249 * WebCoreSupport/InspectorClientQt.cpp:
1250 (WebCore::InspectorClientQt::populateSetting):
1251 (WebCore::InspectorClientQt::storeSetting):
1252 (WebCore::variantToSetting):
1253 (WebCore::settingToVariant):
1254 * WebCoreSupport/InspectorClientQt.h:
1256 2009-12-03 Ben Murdoch <benm@google.com>
1258 Reviewed by Brady Eidson.
1260 [Android] The FrameLoaderClient is unaware of BackForwardList changes.
1261 https://bugs.webkit.org/show_bug.cgi?id=31914
1263 * WebCoreSupport/FrameLoaderClientQt.cpp:
1264 (WebCore::FrameLoaderClientQt::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
1265 (WebCore::FrameLoaderClientQt::dispatchDidRemoveBackForwardItem): ditto.
1266 (WebCore::FrameLoaderClientQt::dispatchDidChangeBackForwardIndex): ditto.
1267 * WebCoreSupport/FrameLoaderClientQt.h:
1269 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
1271 Not reviewed. Try to fix Qt build.
1273 * Api/qwebframe.cpp:
1274 (qt_drt_pauseSVGAnimation):
1276 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
1278 Reviewed by Simon Fraser.
1280 Add SVG animation test framework with 'snapshot' functionality
1281 https://bugs.webkit.org/show_bug.cgi?id=31897
1283 Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
1284 forwarding the call to SVGDocumentExtensions, if SVG is enabled.
1286 Implemented just like the existing pauseAnimation* methods for CSS animations.
1288 * Api/qwebframe.cpp:
1289 (qt_drt_pauseSVGAnimation):
1291 2009-12-01 Daniel Bates <dbates@webkit.org>
1293 Reviewed by Kenneth Rohde Christiansen.
1295 https://bugs.webkit.org/show_bug.cgi?id=31898
1297 Makes QtLauncher default to the http scheme for URLs.
1299 * QtLauncher/main.cpp:
1300 (MainWindow::MainWindow):
1301 (MainWindow::changeLocation):
1304 2009-11-30 Abhinav Mithal <abhinav.mithal@nokia.com>
1306 Reviewed by Simon Hausmann.
1308 [Qt][Symbian] Report SymbianOS in user agent string for Symbian
1309 https://bugs.webkit.org/show_bug.cgi?id=31961
1312 (QWebPage::userAgentForUrl):
1314 2009-11-30 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1316 Reviewed by Kenneth Rohde Christiansen.
1318 [Qt] Fix minor waning in QtWebKit
1319 https://bugs.webkit.org/show_bug.cgi?id=31963
1321 * tests/qwebpage/tst_qwebpage.cpp:
1322 (ErrorPage::extension): Remove info wariable as it is
1325 2009-11-28 Simon Hausmann <simon.hausmann@nokia.com>
1327 Reviewed by Kenneth Rohde Christiansen.
1329 [Qt] SoftwareInputPanelRequest event sent when clicking in newly loaded page
1331 https://bugs.webkit.org/show_bug.cgi?id=31401
1333 Don't set the event unless there is a focused node we can use
1334 for editing afterwards.
1337 (QWebPagePrivate::handleSoftwareInputPanel):
1338 * tests/qwebpage/tst_qwebpage.cpp:
1339 (tst_QWebPage::inputMethods):
1341 2009-11-26 Simon Hausmann <simon.hausmann@nokia.com>
1343 Rubber-stamped by Holger Freyther.
1345 Removed unused ICO image plugin handler.
1347 * Plugins/ICOHandler.cpp: Removed.
1348 * Plugins/ICOHandler.h: Removed.
1349 * Plugins/Plugins.pro: Removed.
1351 2009-11-12 Holger Hans Peter Freyther <zecke@selfish.org>
1353 Reviewed by Kenneth Rohde Christiansen.
1355 [Qt] Do not show the QWidget when the WebCore::Widget is hidden
1356 https://bugs.webkit.org/show_bug.cgi?id=31203
1358 The clipping code was making a QWidget visible even if the
1359 WebCore::Widget was hidden. Fix the bug by calling setVisible
1360 only if the WebCore::Widget Widget::isSelfVisible.
1362 * WebCoreSupport/FrameLoaderClientQt.cpp:
1363 (WebCore::QtPluginWidget::show): Override WebCore::Widget::show to call handleVisibility
1364 (WebCore::QtPluginWidget::handleVisibility): New method to call setVisible when we are visible
1365 (FrameLoaderClientQt::createPlugin): Hide the QWidget by default
1367 2009-11-23 David Boddie <dboddie@trolltech.com>
1369 Reviewed by Simon Hausmann.
1371 Updated the QWebElement documentation with links to examples and
1373 Fixed the project file for the webelement snippet and tidied up the
1374 markers used for quoting the code.
1376 * Api/qwebelement.cpp:
1377 * docs/webkitsnippets/webelement/main.cpp:
1379 * docs/webkitsnippets/webelement/webelement.pro:
1381 2009-11-23 Simon Hausmann <simon.hausmann@nokia.com>
1383 Reviewed by Kenneth Rohde Christiansen.
1385 [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
1386 the wrapped object died before the gc removed the instance.
1388 https://bugs.webkit.org/show_bug.cgi?id=31681
1390 Added a unit-test to verify that wrapping a QObject with the
1391 same identity as a previously but now dead object works.
1393 * tests/qwebframe/tst_qwebframe.cpp:
1395 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1397 Reviewed by Kenneth Rohde Christiansen.
1399 [Qt] Add instantiation tests for QWebInspector.
1401 * tests/qwebinspector/qwebinspector.pro: Added.
1402 * tests/qwebinspector/tst_qwebinspector.cpp: Added.
1403 (tst_QWebInspector::attachAndDestroy):
1406 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1408 Reviewed by Kenneth Rohde Christiansen.
1410 [Qt] Fix QWebInspector destruction problem.
1411 https://bugs.webkit.org/show_bug.cgi?id=31664
1414 (QWebPage::~QWebPage):
1416 2009-11-19 Olivier Goffart <ogoffart@trolltech.com>
1418 Reviewed by Simon Hausmann.
1420 [Qt] Normalize signal and slot signatures.
1422 * Api/qgraphicswebview.cpp:
1423 (QGraphicsWebView::setPage):
1425 (QWebView::setPage):
1426 * WebCoreSupport/FrameLoaderClientQt.cpp:
1427 (WebCore::FrameLoaderClientQt::setFrame):
1428 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
1430 * tests/qwebframe/tst_qwebframe.cpp:
1431 * tests/qwebpage/tst_qwebpage.cpp:
1432 (tst_QWebPage::modified):
1433 (tst_QWebPage::database):
1435 2009-11-18 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1437 Reviewed by Kenneth Rohde Christiansen.
1439 [Qt] Remove support for Qt v4.3 or older versions
1440 https://bugs.webkit.org/show_bug.cgi?id=29469
1442 * Api/qcookiejar.cpp: Removed.
1443 * Api/qcookiejar.h: Removed.
1444 * Api/qgraphicswebview.cpp:
1445 (QGraphicsWebView::event):
1446 * Api/qwebframe.cpp:
1449 * Api/qwebkitglobal.h:
1450 * Api/qwebnetworkinterface.cpp: Removed.
1451 * Api/qwebnetworkinterface.h: Removed.
1452 * Api/qwebnetworkinterface_p.h: Removed.
1454 (QWebPagePrivate::QWebPagePrivate):
1455 (QWebPagePrivate::acceptNavigationRequest):
1456 (QWebPage::acceptNavigationRequest):
1458 (QWebPage::userAgentForUrl):
1465 * QtLauncher/main.cpp:
1466 (MainWindow::print):
1467 (MainWindow::setupUI):
1469 * WebCoreSupport/FrameLoaderClientQt.cpp:
1470 (WebCore::FrameLoaderClientQt::download):
1471 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1472 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1473 (WebCore::FrameLoaderClientQt::startDownload):
1474 (WebCore::FrameLoaderClientQt::createPlugin):
1476 2009-11-18 Shu Chang <Chang.Shu@nokia.com>
1478 Reviewed by Eric Seidel.
1480 [Qt] Add support for displaying deleteButton.
1481 https://bugs.webkit.org/show_bug.cgi?id=31560
1483 Test: LayoutTests/editing/deleting/5408255.html
1485 * Api/qwebsettings.cpp:
1487 * Api/qwebsettings.h:
1489 2009-11-18 Paul Olav Tvete <paul.tvete@nokia.com>
1491 Reviewed by Simon Hausmann.
1493 [Qt] Make the QWebElement::render() test pass when pixmaps aren't 32 bit.
1495 * tests/qwebelement/tst_qwebelement.cpp:
1496 (tst_QWebElement::render):
1498 2009-11-18 Simon Hausmann <simon.hausmann@nokia.com>
1500 Reviewed by Tor Arne Vestbø.
1502 Clarify and simplify the legal section in the overview documentation,
1503 after review with our legal team.
1505 * docs/qtwebkit.qdoc:
1507 2009-11-18 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1509 Reviewed by Simon Hausmann.
1511 [Qt] Add QtLauncher support for opening links in the default browser
1513 This can be triggered by either the context menu or by clicking a link
1514 while holding down the Alt key. Opening a link in a new windows is
1515 triggered by holding down Shift.
1517 * QtLauncher/main.cpp:
1519 2009-11-17 Yael Aharon <yael.aharon@nokia.com>
1521 Reviewed by Kenneth Rohde Christiansen.
1523 [Qt] QGLLauncher does not support drag&drop of local files
1524 https://bugs.webkit.org/show_bug.cgi?id=31057
1526 Enable accepting files in QGraphicsWebView.
1528 * Api/qgraphicswebview.cpp:
1529 (QGraphicsWebView::QGraphicsWebView):
1530 (QGraphicsWebView::dragEnterEvent):
1532 2009-11-17 Antonio Gomes <tonikitoo@webkit.org>
1534 Reviewed by Kenneth Christiansen.
1536 [Qt] better test coverage for ErrorPageExtension
1537 https://bugs.webkit.org/show_bug.cgi?id=31583
1539 Improved the coverage of current ErrorPageExtension tests by
1540 adding autotests involving frameset and iframes.
1542 * tests/qwebpage/tst_qwebpage.cpp:
1543 (ErrorPage::extension): Make the ErrorPageExtension
1544 to work for all frames, not only the main frame.
1545 (tst_QWebPage::errorPageExtension): Stop using
1546 the 'frameset.html' resouce in this method since
1547 an autotest specific for frameset's is being added.
1548 (tst_QWebPage::errorPageExtensionInIFrames): Added.
1549 (tst_QWebPage::errorPageExtensionInFrameset): Added.
1551 2009-11-16 Simon Hausmann <simon.hausmann@nokia.com>
1553 Reviewed by Kenneth Rohde Christiansen.
1555 API documentation fixes.
1557 * Api/qgraphicswebview.cpp: Removed duplicate docs.
1558 * Api/qwebelement.cpp: Added missing docs.
1559 * Api/qwebsettings.cpp: Ditto.
1561 2009-11-14 Antonio Gomes <tonikitoo@webkit.org>
1563 Reviewed by Antti Koivisto.
1565 [Qt] Broken back/forward after using ErrorPageExtension to set error page
1566 https://bugs.webkit.org/show_bug.cgi?id=30573
1568 Implemented autotests for covering the back/forward
1569 reset problem involving error pages.
1571 * tests/qwebpage/tst_qwebpage.cpp:
1572 (tst_QWebPage::errorPageExtension):
1574 2009-11-13 Adam Roben <aroben@apple.com>
1576 Update for changes to FrameLoaderClient
1578 Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
1579 window objects in isolated worlds are cleared
1581 Reviewed by Dave Hyatt.
1583 * WebCoreSupport/FrameLoaderClientQt.cpp:
1584 (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
1585 * WebCoreSupport/FrameLoaderClientQt.h:
1586 Replaced windowObjectCleared with this function. Does nothing if the
1587 passed-in world is not the mainThreadNormalWorld().
1589 2009-11-13 Andras Becsi <becsi.andras@stud.u-szeged.hu>
1591 Reviewed by Kenneth Rohde Christiansen.
1593 [Qt] Enable Page Cache if setMaximumPagesInCache needs it.
1594 This fixes https://bugs.webkit.org/show_bug.cgi?id=31266.
1596 * Api/qwebsettings.cpp:
1597 (QWebSettingsPrivate::apply):
1598 (QWebSettings::setMaximumPagesInCache):
1600 2009-11-13 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1602 Reviewed by Kenneth Rohde Christiansen.
1604 [Qt] Fix initial QWebView focus behavior.
1606 focusController->setFocused(true) was not always called.
1607 https://bugs.webkit.org/show_bug.cgi?id=31466
1610 (QWebPagePrivate::focusInEvent):
1612 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1614 Reviewed by Simon Hausmann.
1616 Update documentation for the Qt API
1618 * Api/qgraphicswebview.cpp:
1619 * Api/qwebelement.cpp:
1620 * Api/qwebframe.cpp:
1621 * Api/qwebsettings.cpp:
1624 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1626 Reviewed by Simon Hausmann.
1628 Use correct install-path when running qdoc3
1632 2009-11-12 Shinichiro Hamaji <hamaji@chromium.org>
1634 Reviewed by Darin Adler.
1636 externalRepresentation should take Frame as the argument
1637 https://bugs.webkit.org/show_bug.cgi?id=31393
1639 No new tests as this is just a refactoring.
1641 * Api/qwebframe.cpp:
1642 (QWebFrame::renderTreeDump):
1644 2009-11-12 Antonio Gomes <tonikitoo@webkit.org>
1646 Reviewed by Jan Alonzo.
1648 [Qt] Various doc fixes
1649 https://bugs.webkit.org/show_bug.cgi?id=31358
1651 QWebPage's constructor docs are mentioning "QWebView":
1652 "Constructs an empty QWebView with parent".
1656 2009-11-12 Benjamin Poulain <benjamin.poulain@nokia.com>
1658 Reviewed by Kenneth Rohde Christiansen.
1660 Custom printing shrink factors
1661 https://bugs.webkit.org/show_bug.cgi?id=29042
1663 This reverts commit r49769. The public API for this needs to be reviewed
1664 before its inclusion in Qt.
1666 * Api/qwebsettings.cpp:
1667 (QWebSettingsPrivate::apply):
1668 (QWebSettings::QWebSettings):
1669 * Api/qwebsettings.h:
1671 2009-11-11 Antonio Gomes <tonikitoo@webkit.org>
1673 Reviewed by Kenneth Christiansen.
1675 [Qt] Various doc fixes
1676 https://bugs.webkit.org/show_bug.cgi?id=31358
1678 Fixed wrong documentation: item's dimensions do fit to Web page
1681 Kenneth agreed to land this as a followup patch to the
1682 just landed documentation patch.
1684 * Api/qgraphicswebview.cpp:
1686 2009-11-11 David Boddie <dboddie@trolltech.com>
1688 Reviewed by Kenneth Christiansen.
1690 [Qt] Various doc fixes
1691 https://bugs.webkit.org/show_bug.cgi?id=31323
1693 Fixed and synchronized QWebView related documentation.
1695 * Api/qgraphicswebview.cpp:
1698 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
1700 Unreviewed buildbot fix.
1702 Export a method to the DRT to know if the document has a
1705 * Api/qwebframe.cpp:
1706 (qt_drt_hasDocumentElement):
1708 2009-11-11 Liang QI <liang.qi@nokia.com>
1710 [Qt] Fix tst_qwebpage and tst_qwebframe compilation on Symbian.
1712 * tests/qwebframe/qwebframe.pro:
1713 * tests/qwebframe/tst_qwebframe.cpp:
1714 * tests/qwebpage/qwebpage.pro:
1715 * tests/qwebpage/tst_qwebpage.cpp:
1717 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
1719 Reviewed by Simon Hausmann.
1721 Fix a crash in the layout test plugins/document-open.html
1723 * Api/qwebframe.cpp:
1724 (QWebFrame::toPlainText):
1726 2009-11-11 Warwick Allison <warwick.allison@nokia.com>, Simon Hausmann <simon.hausmann@nokia.com>
1728 Reviewed by Tor Arne Vestbø.
1730 [Qt] Regression: Preserve the parent of plugin objects when using
1731 QtWebKit with only a QWebPage.
1733 * WebCoreSupport/FrameLoaderClientQt.cpp:
1734 (WebCore::FrameLoaderClientQt::createPlugin): Don't reparent
1736 * tests/qwebpage/tst_qwebpage.cpp:
1737 (PluginCounterPage::PluginCounterPage): Initialize m_pluginParent to 0.
1738 (PluginCounterPage::~PluginCounterPage): Delete the plugin parent later
1740 (PluginTracerPage::createPlugin): Assign a dummy parent to the plugin.
1741 (PluginTracerPage::PluginTracerPage): Set up the plugin parent.
1742 (tst_QWebPage::createViewlessPlugin): Verify that for viewless pages the
1743 plugin parent remains unchanged.
1745 2009-11-11 David Boddie <dboddie@trolltech.com>
1747 [Qt] Doc: Added internal or hidden placeholder documentation.
1751 2009-11-11 Martin Smith <msmith@trolltech.com>
1753 [Qt] doc: Changed Trolltech to Nokia
1757 2009-11-11 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1759 Reviewed by Kenneth Rohde Christiansen.
1761 https://bugs.webkit.org/show_bug.cgi?id=31323
1762 Fix a few compiler warnings
1764 * tests/qwebframe/tst_qwebframe.cpp: Add extra brackets
1765 to make it explicit where the else case belongs
1767 2009-11-11 Simon Hausmann <simon.hausmann@nokia.com>
1769 Reviewed by Tor Arne Vestbø.
1771 Fix enabling of software input panel when activating editable elements
1772 in QGraphicsWebView.
1774 * Api/qgraphicswebview.cpp:
1775 (QGraphicsWebViewPrivate::inputMethodEnabled): Implement method to
1776 query for input method support.
1778 (QWebPageWidgetClient::inputMethodEnabled): Ditto for QWidget.
1779 (QWebPagePrivate::handleSoftwareInputPanel): Don't use view() to
1780 test for input method support. Instead query using QWebPageClient
1781 and send the SIPR event to the ownerWidget() instead of the view().
1782 The latter is null for QGraphicsWebView.
1783 * tests/qwebpage/tst_qwebpage.cpp:
1784 (EventSpy::EventSpy):
1785 (EventSpy::eventFilter):
1786 (tst_QWebPage::inputMethods): Modify the test to verify that SIPR
1787 events are dispatched when activating focusable content.
1789 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
1791 Unreviewed documentation fixes.
1793 Added a few improvements from Jocelyn Turcotte to the
1798 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
1800 Unreviewed documentation fix.
1802 [Qt] Make qwebpage's createWindow not qwebview dependent.
1803 https://bugs.webkit.org/show_bug.cgi?id=30771
1805 Update documentation to make it clear that a reimplementation
1806 of the createWindow method of the associated QWebPage can
1807 result in the QWebView::createWindow method to never be called.
1811 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1813 Reviewed by Kenneth Rohde Christiansen.
1815 [Qt] Few classes have virtual functions but non-virtual destructor
1816 https://bugs.webkit.org/show_bug.cgi?id=31269
1818 * Api/qgraphicswebview.cpp:
1819 (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): Add virtual
1822 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
1824 Reviewed by Kenneth Rohde Christiansen.
1826 https://bugs.webkit.org/show_bug.cgi?id=30628
1827 Add an API to get all the attributes from a QWebElement.
1829 * Api/qwebelement.cpp:
1830 (QWebElement::attributesName):
1831 * Api/qwebelement.h:
1832 * tests/qwebelement/tst_qwebelement.cpp:
1833 (tst_QWebElement::listAttributes):
1835 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1837 Reviewed by Kenneth Rohde Christiansen.
1839 Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
1840 https://bugs.webkit.org/show_bug.cgi?id=31040
1843 (QWebPagePrivate::handleScrolling):
1845 2009-11-09 Mark Mentovai <mark@chromium.org>
1847 Reviewed by Dan Bernstein.
1849 Track "can have scrollbar" state within FrameView independently of the
1850 individual scrollbar states in ScrollView.
1852 rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
1853 REGRESSION (r48064): mint.com loses scrollbars after coming out of
1856 rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
1857 REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
1859 Test: fast/overflow/scrollbar-restored.html
1861 * Api/qwebframe.cpp:
1862 (QWebFrame::setScrollBarPolicy):
1864 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
1866 Reviewed by Kenneth Rohde Christiansen.
1868 https://bugs.webkit.org/show_bug.cgi?id=30772
1869 Add a non-const iterator to QWebElementCollection.
1870 Move the two attributes of the iterator to private.
1872 * Api/qwebelement.h:
1873 (const_iterator::begin):
1874 (const_iterator::end):
1875 (const_iterator::constBegin):
1876 (const_iterator::constEnd):
1877 (const_iterator::iterator::iterator):
1878 (const_iterator::iterator::operator*):
1879 (const_iterator::iterator::operator==):
1880 (const_iterator::iterator::operator!=):
1881 (const_iterator::iterator::operator<):
1882 (const_iterator::iterator::operator<=):
1883 (const_iterator::iterator::operator>):
1884 (const_iterator::iterator::operator>=):
1885 (const_iterator::iterator::operator++):
1886 (const_iterator::iterator::operator--):
1887 (const_iterator::iterator::operator+=):
1888 (const_iterator::iterator::operator-=):
1889 (const_iterator::iterator::operator+):
1890 (const_iterator::iterator::operator-):
1891 * tests/qwebelement/tst_qwebelement.cpp:
1892 (tst_QWebElement::nonConstIterator):
1893 (tst_QWebElement::constIterator):
1895 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1897 Reviewed by Kenneth Christiansen.
1899 [Qt] Remove the sessionStorage setting (per Page)
1900 https://bugs.webkit.org/show_bug.cgi?id=31249
1902 This setting allows to run sessionStorage on/off on a per page
1903 basis. Remove this prematurely exposed API.
1905 * Api/qwebsettings.cpp:
1906 (QWebSettingsPrivate::apply):
1907 (QWebSettings::QWebSettings):
1908 * tests/qwebpage/tst_qwebpage.cpp:
1909 (tst_QWebPage::database):
1910 (tst_QWebPage::testOptionalJSObjects):
1912 2009-11-09 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1914 Reviewed by Simon Hausmann.
1916 [Qt] Remove the QWebPage:webInspectorTriggered signal.
1917 User customization of the communication between QWebPage
1918 and QWebInspector will be properly designed in the next version.
1919 https://bugs.webkit.org/show_bug.cgi?id=30773
1921 * Api/qwebinspector.cpp:
1923 (QWebPagePrivate::getOrCreateInspector):
1924 (QWebPage::triggerAction):
1926 * QtLauncher/main.cpp:
1927 (MainWindow::MainWindow):
1929 2009-11-05 Simon Hausmann <hausmann@webkit.org>
1931 Reviewed by Tor Arne Vestbø.
1933 Added a missing re-implementation of QGraphicsItem::inputMethodQuery().
1935 * Api/qgraphicswebview.cpp:
1936 (QGraphicsWebView::inputMethodQuery):
1937 * Api/qgraphicswebview.h:
1939 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1941 Reviewed by Tor Arne Vestbø.
1943 Provide a dummy re-implementation of QGraphicsLayoutItem::sizeHint(),
1944 similar to QWebView.
1946 * Api/qgraphicswebview.cpp:
1947 (QGraphicsWebView::sizeHint):
1948 * Api/qgraphicswebview.h:
1950 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1952 Reviewed by Tor Arne Vestbø.
1954 Removed zoomFactoryChanged() signal and added
1955 linkClicked() to QGraphicsWebView, for consistency with
1958 * Api/qgraphicswebview.cpp:
1959 (QGraphicsWebView::setPage):
1960 (QGraphicsWebView::setZoomFactor):
1961 * Api/qgraphicswebview.h:
1963 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1965 Reviewed by Tor Arne Vestbø.
1967 Added QGraphicsWebView::findText() for convenience and consistency
1970 * Api/qgraphicswebview.cpp:
1971 (QGraphicsWebView::findText):
1972 * Api/qgraphicswebview.h:
1974 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1976 Reviewed by Tor Arne Vestbø.
1978 Added QGraphicsWebView::pageAction() and triggerPageAction(), for
1979 consistency with QWebView.
1981 * Api/qgraphicswebview.cpp:
1982 (QGraphicsWebView::pageAction):
1983 (QGraphicsWebView::triggerPageAction):
1984 * Api/qgraphicswebview.h:
1986 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1988 Reviewed by Tor Arne Vestbø.
1990 Removed QGraphicsWebView::toHtml() after API review.
1992 That's consistent with QWebView and also based on the assumption that
1993 toHtml() is called less frequently than setHtml().
1995 * Api/qgraphicswebview.cpp:
1996 * Api/qgraphicswebview.h:
1997 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1998 (tst_QGraphicsWebView::qgraphicswebview):
2000 2009-11-04 Simon Hausmann <hausmann@webkit.org>
2002 Reviewed by Tor Arne Vestbø.
2004 Removed the interactive property of QGraphicsWebView.
2006 There are clearly use-cases for this feature, but it will require
2007 more work to make this fully work with an enum to have fine-grained
2008 control over the interactivity levels. For now it is easy to achieve
2009 in user-code what the boolean property did.
2011 * Api/qgraphicswebview.cpp:
2012 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
2013 (QGraphicsWebView::hoverMoveEvent):
2014 (QGraphicsWebView::mouseMoveEvent):
2015 (QGraphicsWebView::mousePressEvent):
2016 (QGraphicsWebView::mouseReleaseEvent):
2017 (QGraphicsWebView::mouseDoubleClickEvent):
2018 (QGraphicsWebView::keyPressEvent):
2019 (QGraphicsWebView::keyReleaseEvent):
2020 (QGraphicsWebView::dragLeaveEvent):
2021 (QGraphicsWebView::dragMoveEvent):
2022 (QGraphicsWebView::dropEvent):
2023 (QGraphicsWebView::wheelEvent):
2024 (QGraphicsWebView::inputMethodEvent):
2025 * Api/qgraphicswebview.h:
2026 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2027 (tst_QGraphicsWebView::qgraphicswebview):
2029 2009-11-04 Simon Hausmann <hausmann@webkit.org>
2031 Reviewed by Tor Arne Vestbø.
2033 Make the QGraphicsWebView constructor explicit.
2035 * Api/qgraphicswebview.h:
2037 2009-11-05 Shu Chang <Chang.Shu@nokia.com>
2039 Reviewed by Tor Arne Vestbø.
2041 Add support for Shift-PageUp and Shift-PageDown key events.
2042 https://bugs.webkit.org/show_bug.cgi?id=31166
2044 Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html
2046 * WebCoreSupport/EditorClientQt.cpp:
2047 (WebCore::EditorClientQt::handleKeyboardEvent):
2049 2009-11-05 Simon Hausmann <hausmann@webkit.org>
2051 Last Qt 4.5 build fix (*sigh*)
2053 * tests/qwebpage/tst_qwebpage.cpp:
2054 (inputMethodHints): inputMethodHints() is only used for
2055 Qt 4.6, so guard the whole function.
2057 2009-11-05 Simon Hausmann <hausmann@webkit.org>
2059 Another prospective build fix against Qt 4.5 (build bot)
2061 Don't compile & run the QGraphicsWebView portion of the
2062 input methods auto test with Qt 4.5.
2064 * tests/qwebpage/tst_qwebpage.cpp:
2065 (tst_QWebPage::inputMethods_data):
2067 (inputMethodEnabled):
2068 (tst_QWebPage::inputMethods):
2070 2009-11-05 Simon Hausmann <hausmann@webkit.org>
2072 Prospective build fix against Qt 4.5 (build bot)
2074 * Api/qgraphicswebview.cpp:
2075 (QGraphicsWebViewPrivate::setInputMethodEnabled): Guard the
2076 use of Qt 4.6 specific API with #ifdefs.
2078 2009-11-01 Simon Hausmann <hausmann@webkit.org>
2080 Reviewed by Kenneth Christiansen.
2082 [Qt] Fix enabling of input method support on QGraphicsWebView.
2083 https://bugs.webkit.org/show_bug.cgi?id=30605
2085 Instead of setting the unsupported widget attribute on the
2086 QGraphicsWidget in setInputMethodEnabled() set the
2087 ItemAcceptsInputMethod GraphicsItem flag directly.
2089 Changed the existing input method auto test to run once
2090 on a QWebView and once on a QGraphicsWebView.
2092 * Api/qgraphicswebview.cpp:
2093 (QGraphicsWebViewPrivate::setInputMethodEnabled):
2094 * tests/qwebpage/tst_qwebpage.cpp:
2095 (tst_QWebPage::inputMethods_data):
2097 (inputMethodEnabled):
2098 (tst_QWebPage::inputMethods):
2100 2009-11-04 Simon Hausmann <hausmann@webkit.org>
2102 Reviewed by Kenneth Christiansen.
2104 Added QGraphicsWebView::modified property, for consistency
2107 * Api/qgraphicswebview.cpp:
2108 (QGraphicsWebView::isModified):
2109 * Api/qgraphicswebview.h:
2110 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2111 (tst_QGraphicsWebView::qgraphicswebview):
2113 2009-11-04 Simon Hausmann <hausmann@webkit.org>
2115 Reviewed by Kenneth Christiansen.
2117 Removed status and progress properties of QGraphicsWebView.
2118 Added loadProgress and statusBarMessage signals instead,
2121 * Api/qgraphicswebview.cpp:
2122 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
2123 (QGraphicsWebView::setPage):
2124 * Api/qgraphicswebview.h:
2125 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2126 (tst_QGraphicsWebView::qgraphicswebview):
2128 2009-11-04 Yael Aharon <yael.aharon@nokia.com>
2130 Reviewed by Simon Hausmann.
2132 [Qt] REGRESSION: Allow applications to use their own QWidget bypassing QWebView.
2133 https://bugs.webkit.org/show_bug.cgi?id=30979
2135 Decouple QWebViewPrivate from QWebPageClient, and automatically create
2136 QWebPageWidgetClient whenever the view is QWidget based.
2139 (QWebPageWidgetClient::QWebPageWidgetClient):
2140 (QWebPageWidgetClient::scroll):
2141 (QWebPageWidgetClient::update):
2142 (QWebPageWidgetClient::setInputMethodEnabled):
2143 (QWebPageWidgetClient::setInputMethodHint):
2144 (QWebPageWidgetClient::cursor):
2145 (QWebPageWidgetClient::updateCursor):
2146 (QWebPageWidgetClient::palette):
2147 (QWebPageWidgetClient::screenNumber):
2148 (QWebPageWidgetClient::ownerWidget):
2149 (QWebPageWidgetClient::pluginParent):
2150 (QWebPage::setView):
2152 (QWebView::~QWebView):
2153 (QWebView::setPage):
2156 2009-11-03 Andras Becsi <becsi.andras@stud.u-szeged.hu>
2158 Reviewed by Simon Hausmann.
2160 [Qt] Fix build of unit-test after r50454.
2162 * tests/qwebpage/tst_qwebpage.cpp:
2164 2009-11-03 Simon Hausmann <hausmann@webkit.org>
2166 Reviewed by Tor Arne Vestbø.
2168 Make QWebPluginDatabase private API for now.
2170 https://bugs.webkit.org/show_bug.cgi?id=30775
2173 * Api/qwebplugindatabase.cpp:
2174 * Api/qwebplugindatabase_p.h: Renamed from WebKit/qt/Api/qwebplugindatabase.h.
2175 * Api/qwebsettings.cpp:
2176 * Api/qwebsettings.h:
2177 * QtLauncher/main.cpp:
2178 (MainWindow::setupUI):
2181 2009-11-03 Simon Hausmann <hausmann@webkit.org>
2183 Rubber-stamped by Tor Arne Vestbø.
2185 Oops, also remove the API docs of the removed networkRequestStarted() signal.
2189 2009-11-03 Simon Hausmann <hausmann@webkit.org>
2191 Reviewed by Tor Arne Vestbø.
2193 Replace the QWebPage::networkRequestStarted() signal with the originatingObject
2194 property set to the QWebFrame that belongs to the request.
2196 https://bugs.webkit.org/show_bug.cgi?id=29975
2199 * WebCoreSupport/FrameLoaderClientQt.cpp:
2200 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2201 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2202 (WebCore::FrameLoaderClientQt::startDownload):
2203 * tests/qwebpage/tst_qwebpage.cpp:
2204 (tst_QWebPage::loadFinished):
2205 (TestNetworkManager::createRequest):
2206 (tst_QWebPage::originatingObjectInNetworkRequests):
2208 2009-11-02 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2210 Reviewed by Adam Barth.
2214 The QWebView should not crash if the stop() method is called from
2215 a function triggered by the loadProgress signal.
2217 A null pointer protection was added in the ProgressTracker::incrementProgress.
2219 New autotest was created.
2221 https://bugs.webkit.org/show_bug.cgi?id=29425
2223 * tests/qwebview/tst_qwebview.cpp:
2224 (WebViewCrashTest::WebViewCrashTest):
2225 (WebViewCrashTest::loading):
2226 (tst_QWebView::crashTests):
2228 2009-11-01 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2230 Reviewed by Eric Seidel.
2232 Turn on warnings for QtWebKit for gcc
2233 https://bugs.webkit.org/show_bug.cgi?id=30958
2236 (QWebPagePrivate::QWebPagePrivate): Reorder initialization list
2237 to fix compiler warnings.
2238 * WebCoreSupport/FrameLoaderClientQt.cpp:
2239 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto.
2241 2009-10-30 Evan Stade <estade@chromium.org>
2243 Reviewed by David Levin.
2245 Notify the chrome when the focused node has changed.
2246 https://bugs.webkit.org/show_bug.cgi?id=30832
2248 Added stub implementation for new ChromeClient function.
2250 * WebCoreSupport/ChromeClientQt.cpp:
2251 (WebCore::ChromeClientQt::focusedNodeChanged):
2252 * WebCoreSupport/ChromeClientQt.h:
2254 2009-10-30 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2256 Reviewed by Tor Arne Vestbø.
2258 [Qt] Remove the QWebInspector::windowTitleChanged signal,
2259 QEvent::WindowTitleChange can be used to achieve the same.
2260 https://bugs.webkit.org/show_bug.cgi?id=30927
2262 * Api/qwebinspector.cpp:
2263 * Api/qwebinspector.h:
2264 * WebCoreSupport/InspectorClientQt.cpp:
2265 (WebCore::InspectorClientQt::updateWindowTitle):
2267 2009-10-29 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2269 Reviewed by Tor Arne Vestbø.
2271 [Qt] Implement DELETE HTTP method for XmlHttpRequest
2272 https://bugs.webkit.org/show_bug.cgi?id=30894
2274 No new tests as this functionality is already tested by the
2275 xmlhttprequest LayoutTests. As this patch depends on an unreleased
2276 version of the dependent QtNetwork library and the tests will be
2277 enabled later once the dependent library is released (and the
2278 buildbot is updated).
2280 * Api/qwebframe.cpp:
2283 2009-10-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
2285 Reviewed by Tor Arne Vestbø.
2287 Remove QWebView::guessUrlFromString() and replace its use
2288 with the new QUrl::fromUserInput() if using Qt 4.6 or newer.
2292 * QGVLauncher/main.cpp:
2294 (WebPage::applyProxy):
2296 * QtLauncher/main.cpp:
2298 (MainWindow::MainWindow):
2299 (MainWindow::changeLocation):
2300 * tests/qwebview/tst_qwebview.cpp:
2302 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
2304 Reviewed by Tor Arne Vestbø.
2306 Serialize directly to the stream, and not first to an QByteArray,
2307 that is later serialized. That is slower and also uses more bytes.
2309 * Api/qwebhistory.cpp:
2313 2009-10-28 Shinichiro Hamaji <hamaji@chromium.org>
2315 Reviewed by Eric Seidel.
2317 [Qt] WebFrame::counterValueForElementById must not be exposed
2318 https://bugs.webkit.org/show_bug.cgi?id=30882
2320 * Api/qwebframe.cpp:
2321 (qt_drt_counterValueForElementById):
2324 2009-10-27 Shinichiro Hamaji <hamaji@chromium.org>
2326 Reviewed by Darin Adler.
2328 Provide a way to get counter values with layoutTestContoller
2329 https://bugs.webkit.org/show_bug.cgi?id=30555
2331 * Api/qwebframe.cpp:
2332 (QWebFrame::counterValueForElementById):
2333 (QWebHitTestResult::frame):
2336 2009-10-28 Antonio Gomes <tonikitoo@webkit.org>
2338 Pushing missing WebKit/qt/tests/qwebframe/resources/ dir from bug 29248.
2340 [Qt] [API] Make it possible to have 'invisible' loads
2341 https://bugs.webkit.org/show_bug.cgi?id=29248
2343 * tests/qwebframe/resources/image2.png: Copied from WebKit/qt/tests/qwebelement/image.png.
2345 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
2347 Reviewed by Tor Arne Vestbø.
2349 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
2350 https://bugs.webkit.org/show_bug.cgi?id=30710
2352 Make the versioning internal and enforce it in the WebCore
2353 part. Adjust the comments, as well as remove now dead code.
2355 * Api/qwebhistory.cpp:
2358 * Api/qwebhistory.h:
2360 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
2362 Reviewed by Holger Freyther.
2364 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
2365 https://bugs.webkit.org/show_bug.cgi?id=30710
2367 Remove the QWebHistory::saveState() and ::restoreState() as
2368 they are inconsistent with the Qt API.
2370 Update unittests to reflect the change.
2372 * Api/qwebhistory.cpp:
2375 * Api/qwebhistory.h:
2376 * tests/qwebhistory/tst_qwebhistory.cpp:
2379 (tst_QWebHistory::saveAndRestore_crash_1):
2380 (tst_QWebHistory::saveAndRestore_crash_2):
2381 (tst_QWebHistory::saveAndRestore_crash_3):
2382 (tst_QWebHistory::clear):
2384 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
2386 Reviewed by Holger Freyther.
2388 Complementary fix to bug 30779.
2390 By mistake I used QWeakPointer's toStrongRef() method which docs
2391 explicitly say to not be used in this situation (when the tracked
2392 pointer is devired from QObject). Instead QWeakPointer's data()
2398 2009-10-27 Holger Hans Peter Freyther <zecke@selfish.org>
2400 Reviewed by Simon Fraser.
2402 Change HitTestResult methods to use (3d) transformation aware methods
2403 https://bugs.webkit.org/show_bug.cgi?id=27347
2405 The HitTestResult::boundingBox method was removed. The
2406 RenderObject must be used directly. In contrast to the
2407 old HitTestResult::boundingBox method this code must use
2408 a (3d) transformation aware method to not run into an
2409 assert in SVGRenderBase::mapLocalToContainer.
2411 * Api/qwebframe.cpp:
2412 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
2414 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
2416 Rubberstamped by Oliver Hunt.
2418 Change two methods to be internal for DRT use only.
2420 Part of [Qt] Review all new API in Qt 4.6
2421 https://bugs.webkit.org/show_bug.cgi?id=29843#c11
2423 * Api/qwebsecurityorigin.cpp:
2424 (qt_drt_whiteListAccessFromOrigin):
2425 (qt_drt_resetOriginAccessWhiteLists):
2426 (QWebSecurityOrigin::localSchemes):
2427 * Api/qwebsecurityorigin.h:
2429 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
2431 Reviewed by Tor Arne Vestbø.
2433 Make sure that initiating a rotation while rotating won't make
2434 it end up at rotation positions that are not a multiply of
2437 * QGVLauncher/main.cpp:
2438 (MainView::animatedFlip):
2440 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
2442 Unreviewed Qt build fix.
2444 Update the tests as well to the new API change.
2446 * tests/qwebelement/tst_qwebelement.cpp:
2447 (tst_QWebElement::clear):
2449 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
2451 Rubberstamped by Tor Arne Vestbø.
2453 [Qt] QWebElement::removeChildren() should be
2454 QWebElement::removeAllChildren()
2455 https://bugs.webkit.org/show_bug.cgi?id=30630
2457 * Api/qwebelement.cpp:
2458 (QWebElement::removeAllChildren):
2459 * Api/qwebelement.h:
2461 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
2463 Reviewed by Antti Koivisto and Holger Freyther.
2465 Make QWebPagePrivate's (QWidget) view to be a QWeakPointer.
2466 https://bugs.webkit.org/show_bug.cgi?id=30779
2468 The fact that it was been set from external objects of qwebpage
2469 and not being deleted internally can lead to dangling references.
2471 * Api/qgraphicswebview.cpp:
2472 (QGraphicsWebView::~QGraphicsWebView):
2474 (QWebPagePrivate::QWebPagePrivate):
2475 (QWebPagePrivate::createContextMenu):
2476 (QWebPagePrivate::handleSoftwareInputPanel):
2477 (QWebPagePrivate::keyPressEvent):
2478 (QWebPage::setView):
2480 (QWebPage::javaScriptAlert):
2481 (QWebPage::javaScriptConfirm):
2482 (QWebPage::javaScriptPrompt):
2483 (QWebPage::shouldInterruptJavaScript):
2484 (QWebPage::createWindow):
2485 (QWebPage::extension):
2486 (QWebPage::chooseFile):
2487 (QWebPage::userAgentForUrl):
2490 (QWebView::~QWebView):
2492 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
2494 Unreviewed documentation fix from David Boddie (Qt Doc Team)
2496 Removes the check around the RenderHints property documentation
2497 that was clearly added to synchronize the source and header files
2498 when the #if !defined(Q_OS_SYMBIAN) guards was added to the
2501 The documentation has also been updated to ensure that Symbian
2502 users know that there is no actual RenderHints property on their
2507 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
2509 Unreviewed documentation fix from David Boddie (Qt Doc Team)
2511 Ensure that qdoc will always see the RenderHints property.
2513 The property was only defined in the header file if the Q_OS_SYMBIAN
2514 symbol was not defined, resulting in the property not showing up
2515 in the Qt documentation just because one platform doesn't support it.
2517 A follow up commit will improve the documentation for the property
2518 and note that it is not supported on the Symbiam platform.
2522 2009-10-26 Benjamin Poulain <benjamin.poulain@nokia.com>
2524 Reviewed by Tor Arne Vestbø.
2526 [Qt] Reintroduce QWebElementCollection
2528 Revert the patch that has replaced QWebElementCollection
2529 with QList<QWebElement>. Update the tests accordingly.
2531 Remove the constness of the return type of QWebElement operator[].
2533 https://bugs.webkit.org/show_bug.cgi?id=30767
2535 * Api/qwebelement.cpp:
2536 (QWebElement::findAll):
2537 (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
2538 (QWebElementCollectionPrivate::create):
2539 (QWebElementCollection::QWebElementCollection):
2540 (QWebElementCollection::operator=):
2541 (QWebElementCollection::~QWebElementCollection):
2542 (QWebElementCollection::operator+):
2543 (QWebElementCollection::append):
2544 (QWebElementCollection::count):
2545 (QWebElementCollection::at):
2546 (QWebElementCollection::toList):
2547 * Api/qwebelement.h:
2548 (const_iterator::begin):
2549 (const_iterator::end):
2550 (const_iterator::operator[]):
2551 * Api/qwebframe.cpp:
2552 (QWebFrame::findAllElements):
2554 * QtLauncher/main.cpp:
2555 (MainWindow::selectElements):
2556 * tests/qwebelement/tst_qwebelement.cpp:
2557 (tst_QWebElement::simpleCollection):
2558 (tst_QWebElement::iteration):
2559 (tst_QWebElement::emptyCollection):
2560 (tst_QWebElement::appendCollection):
2561 (tst_QWebElement::nullSelect):
2562 (tst_QWebElement::hasSetFocus):
2563 (tst_QWebElement::render):
2564 * tests/qwebpage/tst_qwebpage.cpp:
2565 (tst_QWebPage::inputMethods):
2567 2009-10-24 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2569 Reviewed by Holger Freyther.
2571 [Qt] [Symbian] Set the capability and memory required to run QtWebKit for Symbian
2572 https://bugs.webkit.org/show_bug.cgi?id=30476
2574 Assign ReadUserData WriteUserData NetworkServices Symbian capabilities
2575 to all QtWebkit executables.
2577 * QGVLauncher/QGVLauncher.pro:
2578 * QtLauncher/QtLauncher.pro:
2579 * tests/benchmarks/loading/tst_loading.pro:
2580 * tests/benchmarks/painting/tst_painting.pro:
2581 * tests/qgraphicswebview/qgraphicswebview.pro:
2582 * tests/qwebelement/qwebelement.pro:
2583 * tests/qwebframe/qwebframe.pro:
2584 * tests/qwebhistory/qwebhistory.pro:
2585 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
2586 * tests/qwebpage/qwebpage.pro:
2587 * tests/qwebplugindatabase/qwebplugindatabase.pro:
2588 * tests/qwebview/qwebview.pro:
2590 2009-10-22 Gavin Barraclough <barraclough@apple.com>
2592 Reviewed by NOBODY (speculative build fix - qt is currently already broken!)
2593 Build fix following bug #30696.
2595 * Api/qwebelement.cpp:
2596 (setupScriptContext):
2597 * Api/qwebframe.cpp:
2598 (QWebFrame::evaluateJavaScript):
2600 2009-10-22 Shu Chang <Chang.Shu@nokia.com>
2602 Reviewed by Eric Seidel.
2604 [Qt] Enable track visited links in QWebPage
2605 https://bugs.webkit.org/show_bug.cgi?id=30574
2607 Test: fast/history/clicked-link-is-visited.html
2610 (QWebPagePrivate::QWebPagePrivate):
2612 2009-10-22 Girish Ramakrishnan <girish@forwardbias.in>
2614 Reviewed by Eric Seidel.
2616 [Qt] Add Print Shortcut to QtLauncher
2618 https://bugs.webkit.org/show_bug.cgi?id=30682
2620 * QtLauncher/main.cpp:
2621 (MainWindow::setupUI):
2623 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
2625 Rubberstamped by Tor Arne Vestbø.
2627 Code standarlization for QGVLauncher.
2629 1) Made member initilization lists in constructors
2631 2) Made applyProxy method inline as all other methods in
2634 * QGVLauncher/main.cpp:
2636 (WebPage::applyProxy):
2637 (MainView::MainView):
2638 (MainWindow::MainWindow):
2641 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
2643 Reviewed by Tor Arne Vestbø.
2645 Add a Y-Axis rotation to QGVLauncher.
2647 It uses the QStateMachine API from Qt 4.6.
2649 * QGVLauncher/main.cpp:
2651 (WebView::setYRotation):
2652 (WebView::yRotation):
2654 (MainView::animatedYFlip):
2655 (SharedScene::SharedScene):
2656 (SharedScene::webView):
2658 (MainWindow::animatedYFlip):
2659 (MainWindow::buildUI):
2661 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
2663 Reviewed By Adam Barth.
2665 Add some actions to the menu for cursor debugging.
2667 GraphicsView based launcher only.
2669 * QGVLauncher/main.cpp:
2670 (MainView::setWaitCursor):
2671 (MainView::resetCursor):
2673 (MainWindow::setWaitCursor):
2674 (MainWindow::resetCursor):
2675 (MainWindow::buildUI):
2677 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
2679 Rubberstamped by Adam Barth.
2681 Remove clipRenderToViewport as agreed upon in
2682 https://bugs.webkit.org/show_bug.cgi?id=29843
2684 * Api/qwebframe.cpp:
2686 * Api/qwebframe_p.h:
2687 (QWebFramePrivate::QWebFramePrivate):
2689 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
2691 Reviewed by Adam Barth.
2693 Update the tests to test the new render functionality, and take
2694 into consideration that render() clips to the frame itself as well
2697 QWebFrame::render() now always clips, so the old tests were bogus.
2699 Rendering pure contents (no scrollbars etc) without clipping can now
2700 be accomplished using QWebFrame::documentElement()->render(...)
2702 * Api/qwebframe.cpp:
2704 * Api/qwebframe_p.h:
2705 (QWebFramePrivate::QWebFramePrivate):
2706 * tests/qwebframe/tst_qwebframe.cpp:
2708 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
2710 Rubberstamped by Adam Barth.
2712 As we do not support rendering a QWebFrame without it being clipped
2713 the the frame as well as the viewport, we now set the viewport size
2714 to the size of the contents.
2716 Rendering pure contents (no scrollbars etc) without clipping can be
2717 acomplished using QWebFrame::documentElement()->render(...)
2719 * tests/qwebelement/tst_qwebelement.cpp:
2720 (tst_QWebElement::render):
2722 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
2724 Reviewed by Tor Arne Vestbø.
2726 Add menu item to dump the plugin list to the console,
2727 which can be handy for debugging.
2729 * QtLauncher/main.cpp:
2730 (MainWindow::dumpPlugins):
2731 (MainWindow::setupUI):
2733 2009-10-19 Kenneth Rohde Christiansen <kenneth@webkit.org>
2735 Reviewed by Tor Arne Vestbø.
2737 Introduce new render method on QWebFrame, which supports specifying
2738 which layers to render (scrollbars, contents, pan-icon).
2740 * Api/qwebframe.cpp:
2741 (QWebFramePrivate::renderPrivate):
2742 (QWebFrame::render):
2744 * Api/qwebframe_p.h:
2746 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
2748 Reviewed by Ariya Hidayat.
2750 [Qt] Infinite loop (leading to crash) when setting cursor in QGraphicsWebView
2751 https://bugs.webkit.org/show_bug.cgi?id=30549
2753 Patch reimplements QGraphicsItem's itemChange method, and make
2754 CursorChange event to be emitted after cursor has already been
2757 QWidget::setCursor send the event just after it sets the cursor,
2758 then patch makes both behaviors compatible.
2760 * Api/qgraphicswebview.cpp:
2761 (QGraphicsWebView::itemChange):
2762 * Api/qgraphicswebview.h:
2764 2009-10-19 Nate Chapin <japhet@chromium.org>
2766 Unreviewed, build fix.
2768 Update call to FrameLoader::loadFrameRequest().
2771 (QWebPage::triggerAction):
2773 2009-10-19 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
2775 Reviewed by Ariya Hidayat.
2777 Add QWebElement::render API which allows rendering of single
2780 * Api/qwebelement.cpp:
2781 (QWebElement::render):
2782 * Api/qwebelement.h:
2783 * tests/qwebelement/tst_qwebelement.cpp:
2784 (tst_QWebElement::render):
2785 * tests/qwebelement/qwebelement.qrc:
2786 * tests/qwebelement/image.png: Added.
2788 2009-10-19 Markus Goetz <Markus.Goetz@nokia.com>
2790 Reviewed by Ariya Hidayat.
2792 QWebPage: Doc: setNetworkAccessManager should only be called once.
2796 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
2798 Reviewed by Tor Arne.
2800 Wrong ifdef combination in QGraphicsWebView's event method.
2802 * Api/qgraphicswebview.cpp:
2803 (QGraphicsWebView::event):
2805 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
2807 Reviewed by Holger Freyther.
2809 [Qt] Windowed Plugins: Don't crash when client is 0.
2811 Client is 0 when we use QWebPage without a QWebView or QGraphicsWebView.
2812 In addition, setFrameRect()/updatePluginWidget() is called even if the
2813 plugin was not succesfully loaded. updatePluginWidget() updates the
2814 window rect which is, in theory, useful to draw something that indicates
2815 that we didn't load successfully.
2817 So, a status check is added to setNPWindowIfNeeded.
2819 https://bugs.webkit.org/show_bug.cgi?id=30380
2821 * tests/qwebpage/qwebpage.pro:
2822 * tests/qwebpage/tst_qwebpage.cpp:
2824 (tst_QWebPage::screenshot_data):
2825 (tst_QWebPage::screenshot):
2826 * tests/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf.
2828 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
2830 Reviewed by Holger Freyther.
2832 [Qt] Windowed Plugins: Fix crash when QWebPage is deleted after QWebView.
2834 Fixes various sources of crashes:
2835 1. The PluginContainer is a child of QWebView. When the view gets deleted,
2836 the PluginView is not notified about the deletion of PluginContainer.
2837 2. QWebView destructor does not set client to 0.
2838 3. Sometimes pending paint events are sent after the plugin has died, so add
2839 a check in PluginView::setNPWindowIfNeeded.
2841 https://bugs.webkit.org/show_bug.cgi?id=30354
2844 (QWebView::~QWebView):
2845 * tests/qwebview/qwebview.pro:
2846 * tests/qwebview/tst_qwebview.cpp:
2847 (tst_QWebView::reusePage_data):
2848 (tst_QWebView::reusePage):
2850 2009-10-19 Jakob Truelsen <antialize@gmail.com>
2852 Reviewed by Adam Barth.
2854 https://bugs.webkit.org/show_bug.cgi?id=29042
2856 Allow one to costumize the minimal and maximal shrink factors,
2857 Added methods setPrintingMinimumShrinkFactor, printingMinimumShrinkFactor,
2858 setPrintingMaximumShrinkFactor, printingMaximumShrinkFactor to QWebSettings.
2861 * Api/qwebsettings.cpp:
2862 (QWebSettingsPrivate::apply):
2863 (QWebSettings::QWebSettings):
2864 (QWebSettings::setPrintingMinimumShrinkFactor):
2865 (QWebSettings::printingMinimumShrinkFactor):
2866 (QWebSettings::setPrintingMaximumShrinkFactor):
2867 (QWebSettings::printingMaximumShrinkFactor):
2868 * Api/qwebsettings.h:
2870 2009-10-18 Kenneth Rohde Christiansen <kenneth@webkit.org>
2872 Reviewed by Simon Hausmann.
2874 Rename fixedContentsSize property to preferredContentsSize as
2875 agreed upon with Simon Hausmann and Matthias Ettrich.
2878 (QWebPage::preferredContentsSize):
2879 (QWebPage::setPreferredContentsSize):
2881 * WebCoreSupport/FrameLoaderClientQt.cpp:
2882 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2884 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
2886 Reviewed by Simon Hausmann.
2888 [Qt] QGLauncher leaks WebPage object
2889 https://bugs.webkit.org/show_bug.cgi?id=30465
2891 Make 'SharedScene' to own 'WebPage' reference and delete it at its destructor.
2896 * QGVLauncher/main.cpp:
2897 (SharedScene::SharedScene):
2898 (SharedScene::~SharedScene):
2900 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
2902 Reviewed by Simon Hausmann.
2904 [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash
2905 https://bugs.webkit.org/show_bug.cgi?id=30459
2907 Remove all setView(ev->widget()) calls in QWebPage and QGWV event handling methods,
2908 since QWebPageClient would do the trick.
2910 * Api/qgraphicswebview.cpp:
2911 (QGraphicsWebView::hoverMoveEvent):
2913 (QWebPagePrivate::mouseMoveEvent):
2914 (QWebPagePrivate::mousePressEvent):
2915 (QWebPagePrivate::mouseDoubleClickEvent):
2916 (QWebPagePrivate::mouseReleaseEvent):
2917 (QWebPagePrivate::wheelEvent):
2918 (QWebPagePrivate::dragEnterEvent):
2919 (QWebPagePrivate::dragLeaveEvent):
2920 (QWebPagePrivate::dragMoveEvent):
2922 2009-10-16 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2924 Pull out r49676 as it caused build breakges on Symbian
2928 2009-10-16 Yael Aharon <yael.aharon@nokia.com>
2930 Reviewed by Tor Arne Vestbø.
2932 [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
2933 https://bugs.webkit.org/show_bug.cgi?id=30179
2935 Added "c" style static methods for the application to hook up for
2936 receiving notifications when a plugin is created or destroyed.
2940 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
2942 Rubberstamped by Tor Arne.
2944 Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*).
2946 * QGVLauncher/main.cpp:
2949 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
2951 Reviewed by Tor Arne.
2953 [Qt] QGLauncher crashes while closing a window
2954 https://bugs.webkit.org/show_bug.cgi?id=30385
2956 Set page's pageClient reference to '0' at QGWV deletion.
2958 * Api/qgraphicswebview.cpp:
2959 (QGraphicsWebView::~QGraphicsWebView):
2960 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2962 (WebPage::aborting):
2963 (tst_QGraphicsWebView::crashOnViewlessWebPages):
2965 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
2967 Reviewed by Simon Hausmann.
2969 [Qt] Make context menu to work in QGraphicsWebView
2970 https://bugs.webkit.org/show_bug.cgi?id=30336
2972 * Api/qgraphicswebview.cpp:
2973 (QGraphicsWebView::event):
2975 2009-10-13 Girish Ramakrishnan <girish@forwardbias.in>
2977 Reviewed by Simon Hausmann.
2979 [Qt] Plugins : Remove all traces of winId. Use ownerWidget() instead.
2981 This is a bug for two reasons:
2982 1. Everytime we use winId(), we end up creating a native widget. This causes an
2983 unnecessary copy of contents from the backing store to the native widget.
2984 2. Neither windowed nor windowless plugins require the winId of the QWebView or
2987 Introduce ownerWidget() which returns a QWidget * without creating a native widget
2988 (as opposed to QWidget::find(winId)).
2990 https://bugs.webkit.org/show_bug.cgi?id=30170
2992 * Api/qgraphicswebview.cpp:
2993 (QGraphicsWebViewPrivate::ownerWidget):
2995 (QWebViewPrivate::ownerWidget):
2997 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
2999 Reviewed by Simon Hausmann.
3001 [Qt] Add some initial autotests for QWebPage's ErrorPageExtention
3002 https://bugs.webkit.org/show_bug.cgi?id=30296
3004 * tests/qwebpage/tst_qwebpage.cpp:
3005 (ErrorPage::ErrorPage):
3006 (ErrorPage::supportsExtension):
3007 (ErrorPage::extension):
3008 (tst_QWebPage::errorPageExtension):
3010 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
3012 Reviewed by Simon Hausmann.
3014 [Qt] better handle possible edge cases on qwebframe::requestedUrl use
3015 https://bugs.webkit.org/show_bug.cgi?id=30216
3017 QWebFrame::requestedUrl can be called at any time during the load
3020 * An error handling (whereas an alternate error page for unsuccessful
3022 * A ssl error exception call;
3023 * During navigation notifications/callbacks (titleChanged, urlChanged,
3024 progresses, addHistoryEntry, etc);
3027 This patch makes requestedUrl calls to fallback to FrameLoaderClient
3028 m_loadError's failingURL when an error has occurred, unless it is
3031 Also, m_loadError is now being reset at each the main frame starts a
3032 load, in order to avoid previous load errors footprints.
3034 * Api/qwebframe.cpp:
3035 (QWebFrame::requestedUrl):
3036 * WebCoreSupport/FrameLoaderClientQt.cpp:
3037 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
3039 2009-10-12 Jakub Wieczorek <faw217@gmail.com>
3041 Reviewed by Simon Hausmann.
3043 [Qt] Missing default value for the default text encoding.
3044 https://bugs.webkit.org/show_bug.cgi?id=30311
3046 QtWebKit has provided a default, hardcoded value for default charset but since
3047 the addition of the defaultTextEncoding setting in QWebSettings, that hardcoded
3048 value has had no effect.
3050 Added a regression test and unskipped fast/dom/Document/document-charset.html,
3051 which is passing now.
3054 (QWebPagePrivate::QWebPagePrivate):
3055 * Api/qwebsettings.cpp:
3056 (QWebSettings::QWebSettings):
3057 * tests/qwebpage/tst_qwebpage.cpp:
3058 (tst_QWebPage::defaultTextEncoding):
3060 2009-10-12 Kenneth Rohde Christiansen <kenneth@webkit.org>
3062 Reviewed by Simon Hausmann.
3064 Implement the new palette() methods on the page clients
3066 * Api/qgraphicswebview.cpp:
3067 (QGraphicsWebViewPrivate::palette):
3069 (QWebViewPrivate::palette):
3071 2009-10-12 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3073 Reviewed by Simon Hausmann.
3075 QWebPage's createViewlessPlugin autotest crash fix.
3077 It is possible that plugins that are QWidgets or QGraphicsWidgets
3078 are created before a view has been assigned to a QWebPage. The
3079 plug-ins won't be fully functional, as by design, they should
3080 visualise something, but they won't crash and will stay in memory.
3082 An autotest that covers this use-case, is included.
3084 https://bugs.webkit.org/show_bug.cgi?id=30118
3086 * WebCoreSupport/FrameLoaderClientQt.cpp:
3087 (WebCore::FrameLoaderClientQt::createPlugin):
3088 * tests/qwebpage/tst_qwebpage.cpp:
3089 (PluginTrackedPageWidget::PluginTrackedPageWidget):
3090 (PluginTrackedPageGraphicsWidget::PluginTrackedPageGraphicsWidget):
3091 (PluginTrackedPageGraphicsWidget::createPlugin):
3092 (tst_QWebPage::destroyPlugin):
3093 (tst_QWebPage::createViewlessPlugin):
3095 2009-10-09 Joe Ligman <joseph.ligman@nokia.com>
3097 Reviewed by Simon Hausmann.
3099 Sets Qt::WA_InputMethodEnabled and Qt::ImhHiddenText for password fields in EditorClientQt
3100 setInputMethodState. This change is needed so widgets such as the s60 software
3101 input panel can receive input method events for password fields.
3102 It's up to the Qt platform to determine which widget will receive input method
3103 events when these flags are set.
3104 Also added implementation for setInputMethodEnabled and setInputMethodHint
3105 to QGraphicsWebViewPrivate and QWebViewPrivate. This change removes the direct
3106 dependency on QWebView and uses QWebPageClient.
3107 Added autotest to tst_qwebpage.cpp
3108 https://bugs.webkit.org/show_bug.cgi?id=30023
3110 * Api/qgraphicswebview.cpp:
3111 (QGraphicsWebViewPrivate::setInputMethodEnabled):
3112 (QGraphicsWebViewPrivate::setInputMethodHint):
3114 (QWebViewPrivate::setInputMethodEnabled):
3115 (QWebViewPrivate::setInputMethodHint):
3116 * WebCoreSupport/EditorClientQt.cpp:
3117 (WebCore::EditorClientQt::setInputMethodState):
3118 * tests/qwebpage/tst_qwebpage.cpp:
3119 (tst_QWebPage::inputMethods):
3121 2009-10-08 Adam Barth <abarth@webkit.org>
3123 Reviewed by Eric Seidel.
3125 Move executeScript from FrameLoader to ScriptController
3126 https://bugs.webkit.org/show_bug.cgi?id=30200
3130 * Api/qwebframe.cpp:
3131 (QWebFrame::evaluateJavaScript):
3133 2009-10-08 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3135 Reviewed by Simon Hausmann.
3137 Part of testOptionalJSObjects autotest was marked as "expect to fail".
3139 Two places in tst_QWebPage::testOptionalJSObjects were marked as
3140 expected to fail. The problem concern checking if a feature is enabled
3141 or disabled. According to discussion on webkit dev mailing list
3142 a disabled feature should be invisible from java script level, but
3143 there are exceptions from the rule. So we decided to disable the test
3146 https://bugs.webkit.org/show_bug.cgi?id=29867
3148 * tests/qwebpage/tst_qwebpage.cpp:
3149 (tst_QWebPage::testOptionalJSObjects):
3151 2009-10-07 Adam Barth <abarth@webkit.org>
3153 Reviewed by Darin Adler.
3155 Factor PolicyChecker out of FrameLoader
3156 https://bugs.webkit.org/show_bug.cgi?id=30155
3158 Move the policy callback to the policy object.
3160 * WebCoreSupport/FrameLoaderClientQt.cpp:
3161 (WebCore::FrameLoaderClientQt::callPolicyFunction):
3163 2009-10-07 Antonio Gomes <tonikitoo@webkit.org>
3165 Reviewed by Simon Hausmann.
3167 [Qt] Get rid of useless loadFailed signal in QGraphicsWebView
3168 https://bugs.webkit.org/show_bug.cgi?id=30166
3170 * Api/qgraphicswebview.cpp:
3171 (QGraphicsWebViewPrivate::_q_doLoadFinished):
3172 * Api/qgraphicswebview.h:
3173 * QGVLauncher/main.cpp:
3175 (MainWindow::loadFinished):
3177 2009-10-07 Girish Ramakrishnan <girish@forwardbias.in>
3179 Reviewed by Simon Hausmann.
3181 Add a simple rotation effect to QGVLauncher
3183 https://bugs.webkit.org/show_bug.cgi?id=30162
3185 * QGVLauncher/main.cpp:
3186 (MainView::animatedFlip):
3187 (MainWindow::animatedFlip):
3188 (MainWindow::buildUI):
3190 2009-10-07 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3192 Reviewed by Simon Hausmann.
3194 Doc: Document HTML and status as properties.
3196 * Api/qgraphicswebview.cpp:
3198 2009-10-07 Martin Smith <msmith@trolltech.com>
3200 Reviewed by Simon Hausmann.
3202 Fix qdoc warning about disabled renderHints property
3208 2009-10-06 Adam Barth <abarth@webkit.org>
3210 Reviewed by Eric Seidel.
3212 Move setLocalLoadPolicy and friends to SecurityOrigin
3213 https://bugs.webkit.org/show_bug.cgi?id=30110
3218 (QWebPagePrivate::QWebPagePrivate):
3220 2009-10-06 Benjamin C Meyer <bmeyer@rim.com>
3222 Reviewed by Ariya Hidayat.
3224 When the drag data contains an image set it on the QDrag so it will be visible to the user.
3226 * WebCoreSupport/DragClientQt.cpp:
3227 (WebCore::DragClientQt::startDrag):
3229 2009-10-06 Pavel Feldman <pfeldman@chromium.org>
3231 Reviewed by Timothy Hatcher.
3233 Web Inspector: close inspector client view on
3234 InspectorController::close API call.
3236 In order to run batch web inspector layout tests (and not affect
3237 subsequent tests) we should close inspector client's view upon
3238 InspectorController::close API call.
3240 https://bugs.webkit.org/show_bug.cgi?id=30009
3242 * WebCoreSupport/InspectorClientQt.cpp:
3243 (WebCore::InspectorClientQt::createPage):
3245 2009-10-06 Janne Koskinen <janne.p.koskinen@digia.com>
3247 Reviewed by Simon Hausmann.
3249 [Qt] don't enable input methods on Symbian by default.
3250 https://bugs.webkit.org/show_bug.cgi?id=30117
3252 If input methods are enabled Symbian FEP will be launched on every
3253 pointer event making webpage navigation impossible with QWebView.
3256 (QWebView::QWebView):
3258 2009-10-05 Holger Hans Peter Freyther <zecke@selfish.org>
3260 Reviewed by Simon Hausmann.
3262 QtLauncher: print the number of loaded urls
3264 When using the -r mode print the number of URLs loaded so far. This
3265 is extremly useful when opening the same URL over and over again and
3266 one wants to see the progress.
3268 * QtLauncher/main.cpp:
3269 (URLLoader::URLLoader):
3270 (URLLoader::loadNext):
3272 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
3274 Reviewed by Simon Hausmann.
3276 Add screenshot option to menubar
3278 https://bugs.webkit.org/show_bug.cgi?id=30067
3280 * QtLauncher/main.cpp:
3281 (MainWindow::screenshot):
3282 (MainWindow::setupUI):
3284 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
3286 Reviewed by Simon Hausmann.
3288 Setting the env QTLAUNCHER_USE_ARGB_VISUALS makes Qt use WA_TranslucentWindow.
3290 https://bugs.webkit.org/show_bug.cgi?id=30068
3292 * QtLauncher/main.cpp:
3293 (MainWindow::MainWindow):
3295 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
3297 Rubberstamped by Simon Hausmann.
3299 Add documentation to the ErrorPageExtension.
3303 2009-10-02 Yael Aharon <yael.aharon@nokia.com>
3305 Reviewed by Simon Hausmann.
3307 [Qt] Inform the application when a new request is created
3308 https://bugs.webkit.org/show_bug.cgi?id=29975
3310 Add a signal to QWebPage, to inform the application when a request is created.
3314 * tests/qwebpage/tst_qwebpage.cpp:
3315 (tst_QWebPage::loadFinished):
3317 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
3319 Reviewed by Simon Hausmann.
3321 ErrorPageExtension: Add a pointer to the QWebFrame that had
3325 * WebCoreSupport/FrameLoaderClientQt.cpp:
3326 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
3328 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
3330 Reviewed by Tor Arne Vestbø.
3332 Do not empty the offline web appcache when clearing
3333 memory caches. That one is not in memory, but stored
3336 * Api/qwebsettings.cpp:
3337 (QWebSettings::clearMemoryCaches):
3339 2009-10-05 J-P Nurmi <jpnurmi@gmail.com>
3341 Reviewed by Simon Hausmann.
3343 Added QGraphicsWidget-plugins support to FrameLoaderClientQt.
3345 https://bugs.webkit.org/show_bug.cgi?id=29710
3347 * Api/qgraphicswebview.cpp:
3348 (QGraphicsWebViewPrivate::pluginParent):
3350 (QWebViewPrivate::pluginParent):
3351 * WebCoreSupport/FrameLoaderClientQt.cpp:
3353 (WebCore::FrameLoaderClientQt::createPlugin):
3355 2009-10-03 Adam Barth <abarth@webkit.org>
3357 Unreview build fix. I wish I had a try server...
3360 (QWebPagePrivate::updateAction):
3362 2009-10-02 Norbert Leser <norbert.leser@nokia.com>
3364 Reviewed by Simon Hausmann.
3366 Conditionally guard cursor code (cursor and updateCursor functions) with !QT_NO_CURSOR.
3367 Otherwise, it is inconsistent with class declaration of QCursor.
3369 * Api/qgraphicswebview.cpp:
3372 2009-10-02 Prasanth Ullattil <prasanth.ullattil@nokia.com>
3374 Reviewed by Simon Hausmann.
3376 Fix compiler warnings about unused function arguments.
3378 * Api/qwebframe.cpp:
3379 (QWebFrame::scrollBarMinimum):
3381 (QWebPagePrivate::focusInEvent):
3382 (QWebPagePrivate::focusOutEvent):
3383 (QWebPagePrivate::leaveEvent):
3384 (QWebPage::javaScriptAlert):
3385 (QWebPage::javaScriptConfirm):
3386 (QWebPage::javaScriptPrompt):
3387 (QWebPage::triggerAction):
3388 (QWebPage::acceptNavigationRequest):
3389 (QWebPage::chooseFile):
3390 * WebCoreSupport/ChromeClientQt.cpp:
3391 (WebCore::ChromeClientQt::repaint):
3392 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3393 (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
3394 * WebCoreSupport/ContextMenuClientQt.cpp:
3395 (WebCore::ContextMenuClientQt::downloadURL):
3396 * WebCoreSupport/FrameLoaderClientQt.cpp:
3397 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
3398 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
3399 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
3400 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
3401 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
3402 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
3403 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
3404 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
3405 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
3406 * WebCoreSupport/InspectorClientQt.cpp:
3407 (WebCore::InspectorClientQt::setAttachedWindowHeight):
3408 (WebCore::InspectorClientQt::highlight):
3409 (WebCore::InspectorClientQt::removeSetting):
3411 2009-10-01 Simon Hausmann <simon.hausmann@nokia.com>
3413 Reviewed by Tor Arne Vestbø.
3415 Make Software Input Panel requests work with QGraphicsWebView
3416 _and_ QWebView by sharing the event code in handleSoftwareInputPanel().
3419 (QWebPagePrivate::mouseReleaseEvent):
3420 (QWebPagePrivate::handleSoftwareInputPanel):
3423 2009-10-01 Alexis Menard <alexis.menard@nokia.com>
3425 Reviewed by Tor Arne Vestbø.
3427 Rename QWebGraphicsItem to QGraphicsWebView
3431 * Api/qwebgraphicsitem.cpp: Renamed.
3432 * Api/qwebgraphicsitem.h: Renamed.
3433 * WebKit/qt/QGVLauncher/main.cpp:
3435 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Renamed.
3436 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Renamed.
3438 2009-10-01 Antonio Gomes <tonikitoo@webkit.org>
3440 Reviewed by Simon Hausmann.
3442 https://bugs.webkit.org/show_bug.cgi?id=29248
3443 [Qt] [API] Make it possible to have 'invisible' loads
3445 Make QWebFrame's setHtml and setContent methods to not change
3446 session and global history at all.
3448 * Api/qwebframe.cpp:
3449 (QWebFrame::setHtml):
3450 (QWebFrame::setContent):
3451 * tests/qwebframe/qwebframe.pro:
3452 * tests/qwebframe/tst_qwebframe.cpp:
3454 2009-10-01 Kristian Amlie <kristian.amlie@nokia.com>
3456 Reviewed by Simon Hausmann.
3458 Fixed software input panel support on web input elements.
3460 Send the RequestSoftwareInputPanel event if the element supports focus
3461 and the element is clicked.
3464 (QWebPagePrivate::QWebPagePrivate):
3465 (QWebPagePrivate::mousePressEvent):
3466 (QWebPagePrivate::mouseReleaseEvent):
3469 2009-10-01 Joe Ligman <joseph.ligman@nokia.com>
3471 Reviewed by Simon Hausmann.
3473 Implementation for QWebPage::inputMethodQuery and QWebPagePrivate::inputMethodEvent
3475 https://bugs.webkit.org/show_bug.cgi?id=29681
3477 Some additional changes from Kristian Amlie <kristian.amlie@nokia.com>:
3479 * Fixed surrounding text to exclude preedit string
3480 * Avoid emission of microFocusChanged during setComposition()
3483 (QWebPagePrivate::inputMethodEvent):
3484 (QWebPage::inputMethodQuery):
3485 * WebCoreSupport/EditorClientQt.cpp:
3486 (WebCore::EditorClientQt::respondToChangedSelection):
3487 * tests/qwebpage/tst_qwebpage.cpp:
3488 (tst_QWebPage::inputMethods):
3490 2009-09-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
3492 Reviewed by David Hyatt.
3494 Add the failed URL to the ErrorPageExtension, as it is quite
3495 useful for creating error pages.
3498 * WebCoreSupport/FrameLoaderClientQt.cpp:
3499 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
3501 2009-09-29 Andras Becsi <becsi.andras@stud.u-szeged.hu>
3503 Reviewed by Tor Arne Vestbø.
3505 [Qt] Default font size reconciliation to 16px/13px to match other platform's de-facto standard.
3506 This fixes https://bugs.webkit.org/show_bug.cgi?id=19674.
3508 * Api/qwebsettings.cpp:
3509 (QWebSettings::QWebSettings):
3511 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3513 Reviewed by Simon Hausmann.
3515 https://bugs.webkit.org/show_bug.cgi?id=29844
3517 QWebPage dependency autotest fix.
3519 Fix for database() autotest. All opened databases should be removed at
3522 * tests/qwebpage/tst_qwebpage.cpp:
3523 (tst_QWebPage::database):
3525 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3527 Reviewed by Simon Hausmann.
3529 Some QWebHistory and QWebPage autotest crash fixes.
3531 Some checking for m_mainFrame were added. MainFrame should be created
3532 at some point of QWebPage live cicle.
3534 https://bugs.webkit.org/show_bug.cgi?id=29803
3537 (QWebPage::~QWebPage):
3538 (QWebPage::currentFrame):
3539 (QWebPage::history):
3540 (QWebPage::selectedText):
3541 (QWebPage::updatePositionDependentActions):
3542 * tests/qwebpage/tst_qwebpage.cpp:
3543 (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
3545 2009-09-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
3547 Reviewed by Simon Hausmann and Tor Arne Vestbø.
3549 Implement QWebPage Extension for error pages, incl.
3550 an example on how to use it in QtLauncher.
3552 Correct our use of ResourceError.
3555 (ExtensionOption::):
3556 (ExtensionOption::ErrorPageExtensionReturn::ErrorPageExtensionReturn):
3557 * QtLauncher/main.cpp:
3558 (WebPage::supportsExtension):
3559 (MainWindow::MainWindow):
3560 (MainWindow::selectElements):
3561 (WebPage::extension):
3562 * WebCoreSupport/FrameLoaderClientQt.cpp:
3563 (WebCore::FrameLoaderClientQt::cancelledError):
3564 (WebCore::FrameLoaderClientQt::blockedError):
3565 (WebCore::FrameLoaderClientQt::cannotShowURLError):
3566 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
3567 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
3568 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
3569 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
3570 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3571 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3572 * WebCoreSupport/FrameLoaderClientQt.h:
3574 2009-09-28 Andre Poenitz <andre.poenitz@trolltech.com>
3576 Reviewed by Simon Hausmann.
3578 Compile fix with namespaced Qt.
3580 * Api/qwebinspector_p.h:
3582 2009-09-27 Joe Ligman <joseph.ligman@mindspring.com>
3584 Reviewed by Simon Hausmann.
3586 [Qt] Adding API setFocus and hasFocus to QWebElement. This API is needed for
3587 clients that want to check/set the focus node of the document.
3588 https://bugs.webkit.org/show_bug.cgi?id=29682
3590 * Api/qwebelement.cpp:
3591 (QWebElement::hasFocus):
3592 (QWebElement::setFocus):
3593 * Api/qwebelement.h:
3594 * tests/qwebelement/tst_qwebelement.cpp:
3595 (tst_QWebElement::hasSetFocus):
3597 2009-09-25 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
3599 Reviewed by Simon Hausmann.
3601 [Qt] Make tst_qwebframe work if Qt built without SSL support
3602 https://bugs.webkit.org/show_bug.cgi?id=29735
3604 * tests/qwebframe/tst_qwebframe.cpp: Missing #ifndef blocks added.
3606 2009-09-24 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3608 Reviewed by Simon Hausmann.
3610 [Qt] Update QWebElement API to remove script related methods.
3611 QWebElement::evaluateScript is the only one kept, these are
3612 removed to postpone most of the QtWebKit<->JavaScript API design
3614 https://bugs.webkit.org/show_bug.cgi?id=29708
3616 * Api/qwebelement.cpp:
3617 * Api/qwebelement.h:
3619 - QWebElement::callFunction
3620 - QWebElement::functions
3621 - QWebElement::scriptableProperty
3622 - QWebElement::setScriptableProperty
3623 - QWebElement::scriptableProperties
3624 * tests/qwebelement/tst_qwebelement.cpp:
3625 (tst_QWebElement::evaluateScript):
3627 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3629 Reviewed by Simon Hausmann.
3631 [Qt] Rename QWebElement::evaluateScript
3632 to QWebElement::evaluateJavaScript.
3633 https://bugs.webkit.org/show_bug.cgi?id=29709
3635 * Api/qwebelement.cpp:
3636 (QWebElement::evaluateJavaScript):
3637 * Api/qwebelement.h:
3638 * tests/qwebelement/tst_qwebelement.cpp:
3639 (tst_QWebElement::evaluateJavaScript):
3641 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3643 Reviewed by Simon Hausmann.
3645 [Qt] Update the stypeProperty API of QWebElement.
3646 https://bugs.webkit.org/show_bug.cgi?id=29711
3648 * Api/qwebelement.cpp:
3649 (QWebElement::styleProperty):
3650 - Merge the stypeProperty and the computedStyleProperty methods
3651 - Remove the default value for the style resolving enum
3652 - Rename ResolveRule to StyleResolveStrategy
3653 (QWebElement::setStyleProperty):
3654 - Remove the priority argument since it is possible to control the
3655 behaviour by adding !important or removing in the value.
3656 * Api/qwebelement.h:
3657 * tests/qwebelement/tst_qwebelement.cpp:
3658 (tst_QWebElement::style):
3659 (tst_QWebElement::computedStyle):
3660 * tests/qwebframe/tst_qwebframe.cpp:
3662 2009-09-24 Jon Honeycutt <jhoneycutt@apple.com>
3664 Reviewed by Alice Liu.
3667 (QWebPagePrivate::QWebPagePrivate):
3668 Pass 0 for new Page constructor argument.
3670 2009-09-24 Martin Smith <msmith@trolltech.com>
3672 Reviewed by Simon Hausmann.
3674 qdoc: Added \brief texts to all the since 4.6 functions.
3676 * Api/qwebhistory.cpp:
3678 2009-09-23 J-P Nurmi <jpnurmi@gmail.com>
3680 Reviewed by Simon Hausmann.
3682 Prevent QWebPage::setView() from changing the viewport size on the fly
3683 in case the view doesn't actually change. QWebPage::setView() is
3684 called upon every QWebGraphicsItem::hoverMoveEvent(), which forced
3685 the viewport size to be equal to the size of the whole graphics view.
3687 https://bugs.webkit.org/show_bug.cgi?id=29676
3690 (QWebPage::setView):
3692 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3694 Reviewed by Simon Hausmann.
3696 [Qt] Crash fix in QWebHistory back and forward methods.
3698 QWebHistory::back() and QWebHistory::forward() were crashing on
3699 ASSERT in WebCore::BackForwardList. The methods should check
3700 canGoBack() and canGoForward() at the beginning.
3702 https://bugs.webkit.org/show_bug.cgi?id=29675
3704 * Api/qwebhistory.cpp:
3705 (QWebHistory::back):
3706 (QWebHistory::forward):
3708 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3710 Reviewed by Simon Hausmann.
3712 [Qt] Bug fix. QWebHistory should call QWebPage::updateNavigationActions
3714 In QWebHistory's methods that change item count or current item call
3715 to QWebPage::updateNavigationActions should be executed.
3716 QWebHistory::clear() and QWebHistory::restorState() were changed.
3717 New helper method, QWebPagePrivate accesor, were created in
3718 QWebHistoryPrivate class.
3719 Two autotest were developed.
3721 https://bugs.webkit.org/show_bug.cgi?id=29246
3723 * Api/qwebhistory.cpp:
3724 (QWebHistory::clear):
3725 (QWebHistory::restoreState):
3726 (QWebHistoryPrivate::page):
3727 * Api/qwebhistory_p.h:
3728 * tests/qwebhistory/tst_qwebhistory.cpp:
3729 (tst_QWebHistory::saveAndRestore_1):
3730 (tst_QWebHistory::clear):
3732 2009-09-23 Norbert Leser <norbert.leser@nokia.com>
3734 Reviewed by Tor Arne Vestbø.
3736 Need to guard QX11Info include with Q_WS_X11.
3737 That class may not be available (in QT 4.5 for Symbian, for instance).
3738 Completes fixes in r48627 and r48604.
3740 * Api/qwebgraphicsitem.cpp:
3743 2009-09-22 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3745 Reviewed by Simon Hausmann.
3747 [Qt] Add default timeout while waiting for signals in QWebPage auto
3749 https://bugs.webkit.org/show_bug.cgi?id=29637
3751 * tests/qwebpage/tst_qwebpage.cpp:
3754 2009-09-22 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
3756 Reivewed by Simon Hausmann.
3758 Fix the Qt/Mac build after r48604 (Implement new QWebPageClient class)
3760 There's no QWidget::x11Info() on Mac, and setPlatformPluginWidget()
3761 takes a QWidget*, not a QWebPageClient*
3763 * Api/qwebgraphicsitem.cpp:
3764 (QWebGraphicsItemPrivate::screenNumber):
3766 (QWebViewPrivate::screenNumber):
3768 2009-09-21 Kenneth Rohde Christiansen <kenneth@webkit.org>
3770 Reviewed by Simon Hausmann.
3772 For Qt, platformPageClient() will now return a class derived from
3773 the QWebPageClient, so the patch adapts our Qt hooks to go though
3774 this class and not depend on the QWebView.
3776 * Api/qwebgraphicsitem.cpp:
3777 (QWebGraphicsItemPrivate::scroll):
3778 (QWebGraphicsItemPrivate::update):
3779 (QWebGraphicsItemPrivate::cursor):
3780 (QWebGraphicsItemPrivate::updateCursor):
3781 (QWebGraphicsItemPrivate::screenNumber):
3782 (QWebGraphicsItemPrivate::winId):
3783 (QWebGraphicsItem::event):
3784 (QWebGraphicsItem::setPage):
3785 * Api/qwebgraphicsitem.h:
3787 (QWebPagePrivate::QWebPagePrivate):
3790 (QWebViewPrivate::scroll):
3791 (QWebViewPrivate::update):
3792 (QWebViewPrivate::cursor):
3793 (QWebViewPrivate::updateCursor):
3794 (QWebViewPrivate::screenNumber):
3795 (QWebViewPrivate::winId):
3796 (QWebView::setPage):
3798 * WebCoreSupport/ChromeClientQt.cpp:
3799 (WebCore::ChromeClientQt::repaint):
3800 (WebCore::ChromeClientQt::scroll):
3801 (WebCore::ChromeClientQt::platformPageClient):
3803 2009-09-21 Yael Aharon <yael.aharon@nokia.com>
3805 Reviewed by Simon Hausmann.
3807 https://bugs.webkit.org/show_bug.cgi?id=29609
3808 Build fix for windows when using Qt 4.5.0.
3811 (QWebPage::userAgentForUrl):
3813 2009-09-19 Benjamin Poulain <benjamin.poulain@nokia.com>
3815 Reviewed by Simon Hausmann.
3817 https://bugs.webkit.org/show_bug.cgi?id=29345
3818 The tests of QWebFrame did not use QTRY_VERIFY for
3819 tests involving the event loop.
3821 * tests/qwebframe/tst_qwebframe.cpp:
3822 * tests/util.h: Added. Copy of tests/shared/util.h of Qt
3824 2009-09-19 Jakub Wieczorek <faw217@gmail.com>
3826 Reviewed by Simon Hausmann.
3828 [Qt] Add an autotest stub for QWebGraphicsItem.
3830 It just calls all the functions and makes sure they don't crash.
3832 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Added.
3833 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Added.
3834 (tst_QWebGraphicsItem::qwebgraphicsitem):
3837 2009-09-18 Norbert Leser <norbert.leser@nokia.com>
3839 Reviewed by Eric Seidel.
3841 Corrected the Symbian specific UID3 values to be assigned
3842 from the "unprotected" pool that permits self-signing of
3843 those test and demo executables. (Added new UID3 values
3844 where they were missing for new components.)
3846 * QGVLauncher/QGVLauncher.pro:
3847 * QtLauncher/QtLauncher.pro:
3848 * tests/benchmarks/loading/tst_loading.pro:
3849 * tests/benchmarks/painting/tst_painting.pro:
3850 * tests/qwebelement/qwebelement.pro:
3851 * tests/qwebframe/qwebframe.pro:
3852 * tests/qwebhistory/qwebhistory.pro:
3853 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
3854 * tests/qwebpage/qwebpage.pro:
3855 * tests/qwebplugindatabase/qwebplugindatabase.pro:
3856 * tests/qwebview/qwebview.pro:
3858 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
3860 Reviewed by Simon Hausmann.
3862 Make PlatformWindow return something else than PlatformWidget
3863 https://bugs.webkit.org/show_bug.cgi?id=29085
3865 Reflect the rename of platformWindow and it's return type.
3867 * WebCoreSupport/ChromeClientQt.cpp:
3868 (WebCore::ChromeClientQt::platformPageClient):
3869 * WebCoreSupport/ChromeClientQt.h:
3871 2009-09-18 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3873 Reviewed by Simon Hausmann.
3875 [Qt] Add persistence support for configuration options in the
3878 * Api/qwebinspector.cpp:
3879 * QtLauncher/main.cpp:
3881 * WebCoreSupport/InspectorClientQt.cpp:
3882 (WebCore::InspectorClientQt::populateSetting):
3883 (WebCore::InspectorClientQt::storeSetting):
3884 (WebCore::variantToSetting):
3885 (WebCore::settingToVariant):
3887 2009-09-18 Simon Hausmann <simon.hausmann@nokia.com>
3889 Reviewed by Ariya Hidayat.
3891 Fixed a bunch of documentation warnings.
3893 * Api/qwebgraphicsitem.cpp:
3894 * Api/qwebplugindatabase.cpp:
3895 * Api/qwebpluginfactory.cpp:
3896 * Api/qwebsecurityorigin.cpp:
3898 2009-09-18 Warwick Allison <warwick.allison@nokia.com>
3900 Reviewed by Simon Hausmann.
3902 Added a test that console output works.
3904 * tests/qwebpage/tst_qwebpage.cpp:
3905 (ConsolePage::ConsolePage):
3906 (ConsolePage::javaScriptConsoleMessage):
3907 (tst_QWebPage::consoleOutput):
3909 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
3911 Reviewed by Simon Hausmann.
3913 Improve documentation for Page Cache.
3915 * Api/qwebsettings.cpp:
3917 2009-09-17 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
3919 Reviewed by Simon Hausmann.
3921 [Qt] Update QWebSettings::setUserStyleSheetUrl() docs and test
3923 https://bugs.webkit.org/show_bug.cgi?id=29081
3925 The documentation now specifies that the URL has to be a local file
3926 or a a data-URL (with utf-8 and base64-encoded data), as these are the
3927 only two schemes that the current code path accepts.
3929 The auto-test has been updated to reflect this limitation.
3931 At a later point we should concider adding API for the new way of
3932 doing both user defined stylesheets and scripts.
3934 * Api/qwebsettings.cpp:
3935 * tests/qwebpage/tst_qwebpage.cpp:
3937 2009-09-17 Janne Koskinen <janne.p.koskinen@digia.com>
3939 Reviewed by Simon Hausmann.
3943 Moved the #ifdefs around _q_cleanupLeakMessages() into the function
3946 QMake is not being able to distinguish between release and debug builds
3947 in Symbian build. This is a Symbian toolchain issue.
3950 (QWebPagePrivate::_q_cleanupLeakMessages):
3954 2009-09-17 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3956 Reviewed by Simon Hausmann.
3958 Small cosmetic documentation fixlet in the QWebInspector.
3960 * Api/qwebinspector.cpp:
3962 2009-09-16 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
3964 Reviewed by Eric Seidel.
3966 Detect and add Windows7 properly to the user agent.
3969 (QWebPage::userAgentForUrl):
3971 2009-09-16 Andras Becsi <andrewbecsi@yahoo.co.uk>
3973 Rubberstamped by Kenneth Christiansen.
3975 [Qt] Build fix for previous changes.
3977 * QGVLauncher/main.cpp:
3980 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
3982 Unreviewed potential Qt < 4.6 build fix.
3984 * QGVLauncher/main.cpp:
3987 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
3989 Reviewed by Simon Hausmann.
3991 Add a "Flip effect" to our GraphicsView based launcher.
3993 * QGVLauncher/main.cpp:
3994 (MainView::resizeEvent):
3997 (MainWindow::buildUI):
3999 2009-09-16 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>
4001 Rubber-stamped by Simon Hausmann.
4003 [Qt] Typo fix. Pass the window object to the Format
4004 menu. In this way Qt can free its internal graphical
4005 objects during exit.
4007 * QtLauncher/main.cpp:
4008 (MainWindow::setupUI):
4010 2009-09-16 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
4012 Reviewed by Tor Arne Vestbø.
4014 [Qt] Build break fix on gcc ARM.
4016 * Api/qwebgraphicsitem.cpp:
4017 (QWebGraphicsItemPrivate::_q_doLoadProgress):
4019 2009-09-16 Warwick Allison <warwick.allison@nokia.com>
4021 Reviewed by Simon Hausmann.
4023 Fix a crash in QWebFrame::hasFocus() with a simple null pointer check
4024 when the focused frame is null. We do the same check in other places
4025 where we call kit().
4027 * Api/qwebframe.cpp:
4028 (QWebFrame::hasFocus):
4030 2009-09-16 Jure Repinc <jlp@holodeck1.com>
4032 Reviewed by Simon Hausmann.
4034 Fixed a typo found during translation.
4036 * WebCoreSupport/FrameLoaderClientQt.cpp:
4037 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
4039 2009-09-14 Jakub Wieczorek <faw217@gmail.com>
4041 Reviewed by Simon Hausmann.
4043 [Qt] QWebGraphicsItem should check for null QWebPage.
4044 https://bugs.webkit.org/show_bug.cgi?id=29185
4046 Don't crash in QWebGraphicsItem when the page is still null, by
4047 either checking if it's the case or constructing the default one.
4049 * Api/qwebgraphicsitem.cpp:
4050 (QWebGraphicsItem::icon):
4051 (QWebGraphicsItem::setZoomFactor):
4052 (QWebGraphicsItem::zoomFactor):
4053 (QWebGraphicsItem::setGeometry):
4054 (QWebGraphicsItem::load):
4055 (QWebGraphicsItem::setHtml):
4056 (QWebGraphicsItem::toHtml):
4057 (QWebGraphicsItem::setContent):
4058 (QWebGraphicsItem::history):
4059 (QWebGraphicsItem::settings):
4061 2009-09-11 David Boddie <dboddie@trolltech.com>
4063 Reviewed by Simon Hausmann.
4065 Doc: Note that Netscape plugins are only available on desktop platforms.
4067 * docs/qtwebkit.qdoc:
4069 2009-09-11 Martin Smith <msmith@trolltech.com>
4071 Reviewed by Simon Hausmann.
4073 Adjust the name of the contentspage for the documentation
4074 to the new name used in Qt 4.6.
4076 * docs/qtwebkit.qdoc:
4078 2009-09-11 Ariya Hidayat <ariya.hidayat@nokia.com>
4080 Reviewed by Simon Hausmann.
4082 Changed URLs from qtsoftware.com to qt.nokia.com, as part of a general
4085 * Api/qwebpluginfactory.cpp:
4086 * docs/webkitsnippets/simple/main.cpp:
4088 * docs/webkitsnippets/webpage/main.cpp:
4091 2009-09-11 Volker Hilsheimer <volker.hilsheimer@nokia.com>
4093 Reviewed by Simon Hausmann.
4095 Restructure the documentation, both on a file and on a content level.
4097 * Api/qwebdatabase.cpp:
4098 * Api/qwebelement.cpp:
4099 * Api/qwebframe.cpp:
4100 * Api/qwebhistory.cpp:
4101 * Api/qwebhistoryinterface.cpp:
4103 * Api/qwebpluginfactory.cpp:
4104 * Api/qwebsecurityorigin.cpp:
4105 * Api/qwebsettings.cpp:
4107 * docs/qtwebkit.qdoc:
4109 2009-09-11 Yongjun Zhang <yongjun.zhang@nokia.com>
4111 Reviewed by Simon Hausmann.
4113 https://bugs.webkit.org/show_bug.cgi?id=29136
4114 [Qt] emit microFocusChanged() signal when no QWidget-based view is present.
4116 emit microFocusChange() signal regardless of view.
4118 * WebCoreSupport/EditorClientQt.cpp:
4119 (WebCore::EditorClientQt::setInputMethodState):
4121 2009-09-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
4123 Reviewed by Simon Hausmann.
4125 https://bugs.webkit.org/show_bug.cgi?id=28806
4127 [Qt] Make the WebInspector available as a QWidget.
4130 * Api/qwebelement.cpp:
4131 (QWebElement::enclosingElement):
4132 * Api/qwebelement.h:
4133 * Api/qwebinspector.cpp: Added.
4134 * Api/qwebinspector.h: Added.
4135 * Api/qwebinspector_p.h: Added.
4137 (QWebPagePrivate::QWebPagePrivate):
4138 (QWebPagePrivate::setInspector):
4139 (QWebPagePrivate::getOrCreateInspector):
4140 (QWebPagePrivate::inspectorController):
4141 (QWebPage::~QWebPage):
4142 (QWebPage::triggerAction):
4145 * Api/qwebsettings.cpp:
4146 * QtLauncher/main.cpp:
4147 (MainWindow::MainWindow):
4148 * WebCoreSupport/InspectorClientQt.cpp:
4149 (WebCore::InspectorClientWebPage::InspectorClientWebPage):
4150 (WebCore::InspectorClientWebPage::createWindow):
4151 (WebCore::InspectorClientQt::createPage):
4152 (WebCore::InspectorClientQt::showWindow):
4153 (WebCore::InspectorClientQt::closeWindow):
4154 (WebCore::InspectorClientQt::attachWindow):
4155 (WebCore::InspectorClientQt::detachWindow):
4156 (WebCore::InspectorClientQt::updateWindowTitle):
4157 * WebCoreSupport/InspectorClientQt.h:
4158 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp: Added.
4160 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
4162 Reviewed by Eric Seidel.
4164 [Qt] Fix comparison between signed and unsigned integer warnings
4165 https://bugs.webkit.org/show_bug.cgi?id=29162
4167 No functional change.
4169 * Api/qwebelement.cpp:
4170 (QWebElement::findAll):
4171 * Api/qwebhistory.cpp:
4172 (QWebHistory::items):
4173 (QWebHistory::backItems):
4174 (QWebHistory::forwardItems):
4175 (QWebHistory::saveState):
4176 * Api/qwebplugindatabase.cpp:
4177 (QWebPluginDatabase::setSearchPaths):
4178 * WebCoreSupport/ChromeClientQt.cpp:
4179 (WebCore::ChromeClientQt::runOpenPanel):
4180 * WebCoreSupport/FrameLoaderClientQt.cpp:
4181 (WebCore::FrameLoaderClientQt::createPlugin):
4183 2009-09-10 Simon Hausmann <hausmann@webkit.org>
4185 Rubber-stamped by Ariya Hidayat.
4187 Fix a bunch of qdoc warnings: Invalid references, non-standard
4190 * Api/qwebelement.cpp:
4191 * Api/qwebgraphicsitem.cpp:
4192 * Api/qwebsecurityorigin.cpp:
4194 2009-09-10 Simon Hausmann <hausmann@webkit.org>
4196 Reviewed by Ariya Hidayat.
4198 Fix context menu event delivery with QWebGraphicsItem.
4200 Re-implement the correct context menu virtual function using
4201 a QGraphicsSceneContextMenuEvent and forward & handle it in
4204 * Api/qwebgraphicsitem.cpp:
4205 (QWebGraphicsItem::contextMenuEvent):
4206 * Api/qwebgraphicsitem.h:
4208 (QWebPagePrivate::contextMenuEvent):
4212 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
4216 Build fix for QtWebKit for Mac after r48219.
4218 qevent and qstyleoption are QtGui interfaces.
4220 * Api/qwebgraphicsitem.cpp:
4221 * Api/qwebgraphicsitem.h:
4223 2009-09-09 Simon Hausmann <hausmann@webkit.org>
4225 Reviewed by Tor Arne Vestbø.
4227 Call the right base class function QGraphicsWidget::event() instead
4228 of skipping it and using QObject::event() instead.
4230 * Api/qwebgraphicsitem.cpp:
4231 (QWebGraphicsItem::event):
4233 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
4237 Fix comment at Tor Arne Vestbø's request.
4239 * Api/qwebgraphicsitem.cpp:
4240 (QWebGraphicsItem::sceneEvent):
4241 (QWebGraphicsItem::event):
4243 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
4245 Reviewed by Tor Arne Vestbø.
4247 Implement some virtual event methods so that we can fix
4248 event-related bugs in Qt patch releases.
4250 * Api/qwebgraphicsitem.cpp:
4251 (QWebGraphicsItem::sceneEvent):
4252 (QWebGraphicsItem::event):
4253 * Api/qwebgraphicsitem.h:
4255 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>, Antonio Gomes <antonio.gomes@openbossa.org>
4257 Reviewed by Simon Hausmann.
4259 Add a new QGraphicsWidget based version of the "QWebView"
4260 under the name "QWebGraphicsItem".
4262 https://bugs.webkit.org/show_bug.cgi?id=28862
4264 Includes an alternative Qt launcher using the QGraphicsView.
4267 * Api/qwebgraphicsitem.cpp: Added.
4268 * Api/qwebgraphicsitem.h: Added.
4270 * QGVLauncher/QGVLauncher.pro: Copied from WebKit/qt/QtLauncher/QtLauncher.pro.
4271 * QGVLauncher/main.cpp: Added.
4272 * WebCoreSupport/ChromeClientQt.cpp:
4273 (WebCore::ChromeClientQt::repaint):
4274 (WebCore::ChromeClientQt::scroll):
4276 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
4278 Unreviewed build fix.
4280 Potential build fix for Qt 4.5
4283 (QWebPagePrivate::mousePressEvent):
4285 2009-09-08 Benjamin Poulain <benjamin.poulain@nokia.com>
4287 Reviewed by Simon Hausmann.
4289 https://bugs.webkit.org/show_bug.cgi?id=29007
4290 Add a test for the signal QWebFrame::javaScriptWindowObjectCleared()
4292 * tests/qwebframe/tst_qwebframe.cpp:
4294 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
4296 Reviewed by Simon Hausmann.
4298 [Qt] Fix unused variable warnings
4299 https://bugs.webkit.org/show_bug.cgi?id=29018
4302 (QWebPagePrivate::keyPressEvent):
4303 * WebCoreSupport/FrameLoaderClientQt.cpp:
4304 (WebCore::FrameLoaderClientQt::startDownload):
4305 (WebCore::FrameLoaderClientQt::createFrame):
4307 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
4309 Reviewed by Ariya Hidayat.
4311 [Qt] Use the declaration order in initializer lists
4312 https://bugs.webkit.org/show_bug.cgi?id=29017
4314 * Api/qwebframe_p.h:
4316 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
4318 Reviewed by Simon Hausmann.
4320 Add support for handling QGraphicsScene events.
4323 (QWebPagePrivate::mouseMoveEvent):
4324 (QWebPagePrivate::mousePressEvent):
4325 (QWebPagePrivate::mouseDoubleClickEvent):
4326 (QWebPagePrivate::mouseTripleClickEvent):
4327 (QWebPagePrivate::handleClipboard):
4328 (QWebPagePrivate::mouseReleaseEvent):
4329 (QWebPagePrivate::wheelEvent):
4330 (QWebPagePrivate::dragEnterEvent):
4331 (QWebPagePrivate::dragLeaveEvent):
4332 (QWebPagePrivate::dragMoveEvent):
4333 (QWebPagePrivate::dropEvent):
4337 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
4339 Reviewed by Simon Hausmann.
4341 [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
4342 https://bugs.webkit.org/show_bug.cgi?id=28865
4344 Clean up the unserCursor hack to use the QCursor set
4345 as a property of the QWidget by WebCore::WidgetQt.
4347 Remove all code that are no longer necessary for getting
4348 cursor change events.
4350 Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
4351 Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07
4356 (QWebViewPrivate::QWebViewPrivate):
4359 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
4361 Reviewed by Simon Hausmann.
4363 [Qt] QtWebKit single API to enable persistency
4364 https://bugs.webkit.org/show_bug.cgi?id=28682
4366 Disable LocalStorage, ApplicationCache, HTML5 offline storage by
4369 If persistency is enabled the default directory for LocalStorage and
4370 ApplicationCache is now based on QDesktopServices::DataLocation and not
4371 QDesktopServices::CacheLocation (as it is expected to keep this data
4372 around after a reboot).
4374 If persistency is enabled initialize HTML5 offline storage as well - this
4375 fixed offline Storage for QtLauncher.
4378 (QWebPagePrivate::QWebPagePrivate):
4379 * Api/qwebsettings.cpp:
4380 (QWebSettings::QWebSettings):
4381 (QWebSettings::enablePersistentStorage):
4382 * Api/qwebsettings.h: Add a new API called enablePersistentStorage
4383 * QtLauncher/main.cpp: Use the new enablePersistentStorage API
4386 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
4388 Reviewed by Simon Hausmann.
4390 Speed up the QWebPluginInfo::supportsMimeType() function.
4391 https://bugs.webkit.org/show_bug.cgi?id=27651
4393 Instead of going through the MIME types list constructed with
4394 mimeTypes() function, look up the internal mimeToDescriptions map.
4396 * Api/qwebplugindatabase.cpp:
4397 (QWebPluginInfo::supportsMimeType):
4399 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
4401 Reviewed by Simon Hausmann.
4403 Speed up the QWebPluginInfo::mimeTypes() function.
4404 https://bugs.webkit.org/show_bug.cgi?id=27651
4406 Instead of constructing a list of MIME types every time it is called,
4409 * Api/qwebplugindatabase.cpp:
4410 (QWebPluginInfo::mimeTypes):
4411 (QWebPluginInfo::operator=):
4412 * Api/qwebplugindatabase.h:
4413 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
4414 (tst_QWebPluginDatabase::operatorassign_data):
4415 (tst_QWebPluginDatabase::operatorassign):
4417 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
4419 Reviewed by Simon Hausmann.
4421 Remove the private classes from QWebPluginDatabase.
4422 https://bugs.webkit.org/show_bug.cgi?id=27651
4424 Instead, hold the PluginDatabase and PluginPackage objects as class
4425 members and take care of refcounting on our own instead of using RefPtr.
4427 This way we not only made the code cleaner but also got rid of
4428 redundant allocations when constructing null QWebPluginInfo objects.