1 2010-02-02 Jessie Berlin <jberlin@webkit.org>
3 Rubber Stamped by Holger Freyther.
5 [Qt] Fix style issue identified in bug:
6 https://bugs.webkit.org/show_bug.cgi?id=34329
8 * WebCoreSupport/InspectorClientQt.cpp:
9 (WebCore::InspectorClientWebPage::InspectorClientWebPage):
12 2010-02-01 Jessie Berlin <jberlin@webkit.org>
14 Reviewed by Holger Freyther.
16 [Qt] Enable inspecting the Web Inspector in QtLauncher
18 https://bugs.webkit.org/show_bug.cgi?id=34329
20 * WebCoreSupport/InspectorClientQt.cpp:
21 (WebCore::InspectorClientWebPage::InspectorClientWebPage):
22 Allow the DeveloperExtrasEnabled setting to default to true for the page containing the Web Inspector.
24 2010-02-02 Andreas Kling <andreas.kling@nokia.com>
26 Reviewed by Kenneth Rohde Christiansen.
28 [Qt] Display HTML tags verbatim in JS alert/confirm/prompt boxes
30 https://bugs.webkit.org/show_bug.cgi?id=34429
33 (QWebPage::javaScriptAlert):
34 (QWebPage::javaScriptConfirm):
35 (QWebPage::javaScriptPrompt):
37 2010-02-02 Noam Rosenthal <noam.rosenthal@nokia.com>
39 Reviewed by Kenneth Rohde Christiansen.
41 [Qt] Enable a way to measure FPS in QGVLauncher
42 run QGVLauncher with --show-fps to see ongoing fps measurements
43 This is not meant as accurate FPS, but rather as a way to find
44 improvements/regressions
45 https://bugs.webkit.org/show_bug.cgi?id=34450
47 * QGVLauncher/main.cpp:
48 (MainView::MainView): initialize FPS values
49 (MainView::paintEvent): count a painted frame here
50 (MainView::printFps): we print the fps with qDebug every 5 seconds.
52 2010-01-29 Ben Murdoch <benm@google.com>
54 Reviewed by Dimitri Glazkov.
56 [Android] Android needs functionality in the ChromeClient to be informed when touch events are and are not needed by the webpage.
57 https://bugs.webkit.org/show_bug.cgi?id=34215
59 Add needTouchEvents() to the ChromeClient which is called when the page decides it needs or no longer needs to be informed of touch events.
61 * WebCoreSupport/ChromeClientQt.h:
62 (WebCore::ChromeClientQt::needTouchEvents): Add an empty implementation.
64 2010-01-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
66 Reviewed by Simon Hausmann
68 Disable auto-uppercase and predictive text on Maemo5, just like the
69 build-in MicroB Browser.
71 * WebCoreSupport/EditorClientQt.cpp:
72 (WebCore::EditorClientQt::setInputMethodState):
74 2010-01-28 Andreas Kling <andreas.kling@nokia.com>
76 Reviewed by Kenneth Rohde Christiansen.
78 [Qt] Support kinetic scrolling on Maemo 5
80 https://bugs.webkit.org/show_bug.cgi?id=34267
82 Patch by Ralf Engels <ralf.engels@nokia.com> and
83 Robert Griebl <rgriebl@trolltech.com>
86 (QWebViewKineticScroller::QWebViewKineticScroller):
87 (QWebViewKineticScroller::eventFilter):
88 (QWebViewKineticScroller::currentFrame):
89 (QWebViewKineticScroller::scrollingFrameAt):
90 (QWebViewKineticScroller::attachToWidget):
91 (QWebViewKineticScroller::removeFromWidget):
92 (QWebViewKineticScroller::positionRange):
93 (QWebViewKineticScroller::position):
94 (QWebViewKineticScroller::viewportSize):
95 (QWebViewKineticScroller::setPosition):
98 2010-01-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
100 Reviewed by Simon Hausmann.
102 Do not set the combobox font on Maemo5 and S60; use the
105 * WebCoreSupport/QtFallbackWebPopup.cpp:
106 (WebCore::QtFallbackWebPopup::populate):
108 2010-01-28 Trond Kjernåsen <trond@trolltech.com>
110 Reviewed by Simon Hausmann.
112 [Qt] Fix for endless print loop when printing web pages
117 2010-01-27 Diego Gonzalez <diego.gonzalez@openbossa.org>
119 Reviewed by Kenneth Rohde Christiansen.
121 [Qt] DRT Provide worker thread ability to track counters
122 https://bugs.webkit.org/show_bug.cgi?id=34221
124 Implement workerThreadCount() in LayoutTestController of Qt DRT
127 fast/workers/dedicated-worker-lifecycle.html
128 fast/workers/shared-worker-frame-lifecycle.html
129 fast/workers/shared-worker-lifecycle.html
130 fast/workers/worker-lifecycle.html
133 (qt_drt_workerThreadCount):
135 2010-01-27 Simon Hausmann <simon.hausmann@nokia.com>
137 Reviewed by Laszlo Gombos.
139 [Qt] Update the .def files with exported symbols
141 * symbian/eabi/QtWebKitu.def: Add two mangled missing new symbols for arm eabi.
143 2010-01-27 Kent Hansen <kent.hansen@nokia.com>
145 Reviewed by Simon Hausmann.
147 [Qt] Meta-methods can't be introspected using ES5 API
148 https://bugs.webkit.org/show_bug.cgi?id=34087
150 Test that Object.getOwnPropertyDescriptor and
151 Object.getOwnPropertyNames work with meta-methods.
153 * tests/qwebframe/tst_qwebframe.cpp:
155 2010-01-26 Simon Hausmann <simon.hausmann@nokia.com>
157 Reviewed by Kenneth Rohde Christiansen.
159 [Qt] Show comboboxes on Maemo 5
160 https://bugs.webkit.org/show_bug.cgi?id=34088
162 Don't try to show the combobox by simulating a mouse event from QCursor::pos() to
163 get the combobox position right. The position on Maemo 5 is independent from the mouse
164 and there's no QCursor::pos().
166 * WebCoreSupport/QtFallbackWebPopup.cpp:
167 (WebCore::QtFallbackWebPopup::show):
169 2010-01-26 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
171 Reviewed by Simon Hausmann.
173 First steps of the QtScript API.
175 Two new classes were created; QScriptEngine and QScriptValue.
176 The first should encapsulate a javascript context and the second a script
179 This API is still in development, so it isn't compiled by default.
180 To trigger compilation, pass --qmakearg="CONFIG+=build-qtscript" to
183 https://bugs.webkit.org/show_bug.cgi?id=32565
185 * docs/qtwebkit.qdocconf:
187 2010-01-26 Holger Hans Peter Freyther <zecke@selfish.org>
189 Reviewed by Simon Hausmann.
191 [Qt] JavaScript prompt is currently broken
192 https://bugs.webkit.org/show_bug.cgi?id=30914
194 In r52152 a patch was landed to convert a null QString
195 to an empty WebCore::String in case the prompt was accepted
196 but the default implementation returned the null QString.
198 The patch tried to avoid assign to result twice and
199 was not checking the QString if it is null but the default
200 value. This lead to always returning an empty string on
201 successful prompts. Fix it by checking the variable 'x'
204 The manual test case used didn't cover the case of non
205 empty input, replace it with an automatic test case that
206 should cover all cases.
208 * WebCoreSupport/ChromeClientQt.cpp:
209 (WebCore::ChromeClientQt::runJavaScriptPrompt): Fix the bug.
210 * tests/qwebpage/tst_qwebpage.cpp: Add automatic test case
211 (JSPromptPage::JSPromptPage):
212 (JSPromptPage::javaScriptPrompt):
213 (tst_QWebPage::testJSPrompt):
215 2010-01-25 Simon Hausmann <hausmann@webkit.org>
217 Reviewed by Kenneth Rohde Christiansen.
219 [Qt] In RenderThemeQt determine the QStyle from the page client instead of the page's view
220 https://bugs.webkit.org/show_bug.cgi?id=34053
222 * Api/qgraphicswebview.cpp:
223 (QGraphicsWebViewPrivate::style): Implement QWebPageClient::style() and return the graphics
226 (QWebPageWidgetClient::style): Implement QWebPageClient::style() and return the widget's style.
228 2010-01-25 Janne Koskinen <janne.p.koskinen@digia.com>
230 Reviewed by Simon Hausmann.
232 [Qt] Phone backup support for QtWebkit for Symbian devices.
233 https://bugs.webkit.org/show_bug.cgi?id=34077
235 * symbian/backup_registration.xml: Added.
237 2010-01-23 Girish Ramakrishnan <girish@forwardbias.in>
239 Reviewed by Kenneth Rohde Christiansen.
241 [Qt] Fix positioning of ComboBox popup in QGraphicsWebView.
243 Wrap the popup in a QGraphicsProxyWidget, so that the popup
244 transforms with the item.
246 https://bugs.webkit.org/show_bug.cgi?id=33887
248 * WebCoreSupport/QtFallbackWebPopup.cpp:
249 (WebCore::QtFallbackWebPopupCombo::hidePopup):
250 (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
251 (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
252 (WebCore::QtFallbackWebPopup::show):
253 * WebCoreSupport/QtFallbackWebPopup.h:
255 2010-01-22 Peter Kasting <pkasting@google.com>
257 Not reviewed, backout.
259 Back out r52673, which caused several regressions.
260 https://bugs.webkit.org/show_bug.cgi?id=32533
262 * WebCoreSupport/QtFallbackWebPopup.cpp:
263 (WebCore::QtFallbackWebPopupCombo::hidePopup):
265 2010-01-22 Girish Ramakrishnan <girish@forwardbias.in>
267 Reviewed by Simon Hausmann.
269 [Qt] Save the QWebPageClient instead of the ownerWidget in QtAbstractWebPopup
271 The QWebPageClient is required for the QtFallbackWebPopup. QtFallbackWebPopup will
272 need it to create a QGraphicsProxyWidget (in a future commit) for the
273 QGraphicsWebView's web popup.
275 * WebCoreSupport/QtFallbackWebPopup.cpp:
276 (WebCore::QtFallbackWebPopup::show):
278 2010-01-22 Girish Ramakrishnan <girish@forwardbias.in>
280 Reviewed by Kenneth Rohde Christiansen.
282 QState::polished() was renamed to QState::propertiesAssigned() when
283 Qt 4.6.0 was released.
285 * QGVLauncher/main.cpp:
288 2010-01-21 Diego Gonzalez <diego.gonzalez@openbossa.org>
290 Reviewed by Kenneth Rohde Christiansen.
292 [Qt] add setDomainRelaxationForbiddenForURLScheme in Qt DRT
293 https://bugs.webkit.org/show_bug.cgi?id=33945
295 * Api/qwebsecurityorigin.cpp:
296 (qt_drt_setDomainRelaxationForbiddenForURLScheme):
298 2010-01-21 No'am Rosenthal <noam.rosenthal@nokia.com>
300 Reviewed by Antti Koivisto.
302 [Qt] Implement GraphicsLayer for accelerated layer compositing
303 https://bugs.webkit.org/show_bug.cgi?id=33514
305 Here we have the QGraphicsWebView support for accelerated compositing
307 * Api/qgraphicswebview.cpp:
308 (QGraphicsWebViewOverlay::q): access to container object
309 (QGraphicsWebViewOverlay::boundingRect): overlay has same rect as the
311 (QGraphicsWebViewOverlay::paint): paint everything but the contents
312 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate): some vars needed
313 for accelerated compositing
314 (QGraphicsWebViewPrivate::):
315 (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate):
316 (QGraphicsWebViewPrivate::setRootGraphicsLayer): make sure we have a
317 scrollbar overlay, and that the new graphics layer is parented by the
319 (QGraphicsWebViewPrivate::markForSync): flush changes at earliest
320 convenience or during the next draw
322 (QGraphicsWebViewPrivate::updateCompositingScrollPosition): sync the
323 position of the compositing layer with the scroll position
324 (QGraphicsWebViewPrivate::syncLayers): flush changes now
325 (QGraphicsWebViewPrivate::scroll): make sure we also move the
327 (QGraphicsWebViewPrivate::update): also update the overlay if needed
328 (QGraphicsWebView::QGraphicsWebView): initialize overlay with 0
329 (QGraphicsWebView::paint): paint only contents if we have an overlay,
330 sync the compositing layers now if needed
331 (QGraphicsWebView::setPage): also clean up the compositing
332 (QGraphicsWebView::updateGeometry): also update overlay geo
333 (QGraphicsWebView::setGeometry): also update overlay geo
334 * Api/qgraphicswebview.h: reimp compositing stuff from QWebPageClient
335 * Api/qwebsettings.cpp: init new settings flag for compositing as
337 (QWebSettingsPrivate::apply): apply new settings flag for compositing
338 (QWebSettings::QWebSettings):
339 * Api/qwebsettings.h: new settings flag for compositing
341 (QWebView::setPage): qwebview doesn't support compositing: always false
342 * QGVLauncher/main.cpp:
343 (WebView::WebView): some more cmdline arguments + compositing
344 (MainWindow::init): some more cmdline arguments
346 * WebCoreSupport/ChromeClientQt.cpp:
347 (WebCore::ChromeClientQt::attachRootGraphicsLayer): reimp for
349 (WebCore::ChromeClientQt::setNeedsOneShotDrawingSynchronization):
350 reimp for accel compositing
351 (WebCore::ChromeClientQt::scheduleCompositingLayerSync): reimp for
353 * WebCoreSupport/ChromeClientQt.h: reimps for accel compositing
355 2010-01-21 Benjamin Poulain <benjamin.poulain@nokia.com>
357 Reviewed by Simon Hausmann.
359 [Qt] Improve the autotests of QtWebkit
360 https://bugs.webkit.org/show_bug.cgi?id=32216
362 Remove qWait() of the test when possible.
364 * tests/qwebpage/tst_qwebpage.cpp:
365 (tst_QWebPage::loadFinished):
366 (tst_QWebPage::database):
367 (tst_QWebPage::testEnablePersistentStorage):
368 (tst_QWebPage::errorPageExtension):
369 (tst_QWebPage::screenshot):
371 2010-01-21 Simon Hausmann <simon.hausmann@nokia.com>
373 Prospective build fix for the Qt build.
375 Fix compilation against Qt without WebKit support by not including QtWebKit/QWebView
376 but widget.h instead and instantiating QWebView through a typedef, to ensure we're using
377 our locally built WebKit.
379 * tests/hybridPixmap/widget.h:
380 * tests/hybridPixmap/widget.ui:
382 2010-01-21 No'am Rosenthal <noam.rosenthal@nokia.com>
384 Reviewed by Simon Hausmann.
386 [Qt] Adding QPixmap/QImage support for the Qt hybrid layer
387 https://bugs.webkit.org/show_bug.cgi?id=32461
389 * tests/hybridPixmap: Added.
390 * tests/hybridPixmap/hybridPixmap.pro: Added.
391 * tests/hybridPixmap/resources.qrc: Added.
392 * tests/hybridPixmap/test.html: Added.
393 * tests/hybridPixmap/tst_hybridPixmap.cpp: Added.
394 (tst_hybridPixmap::tst_hybridPixmap): tests most of the use cases for
395 hybrid pixmap/image manipulation
396 (tst_hybridPixmap::init): QTestLib initialization
397 (tst_hybridPixmap::cleanup): QTestLib cleanup
398 (tst_hybridPixmap::hybridPixmap): run the html file
399 * tests/hybridPixmap/widget.cpp: Added.
403 (Widget::completeTest):
409 (Widget::changeEvent):
412 (Widget::pixmapSlot):
413 (Widget::randomSlot):
414 * tests/hybridPixmap/widget.h: Added.
415 * tests/hybridPixmap/widget.ui: Added.
418 2010-01-21 Luiz Agostini <luiz.agostini@openbossa.org>
420 Reviewed by Kenneth Rohde Christiansen.
422 [Qt] Custom select popups.
423 https://bugs.webkit.org/show_bug.cgi?id=33418
425 Adjusting QtFallbackWebPopupCombo to the changes in WebCore layer.
427 * WebCoreSupport/ChromeClientQt.cpp:
428 (WebCore::ChromeClientQt::createSelectPopup):
429 * WebCoreSupport/ChromeClientQt.h:
430 * WebCoreSupport/QtFallbackWebPopup.cpp:
431 (WebCore::QtFallbackWebPopupCombo::QtFallbackWebPopupCombo):
432 (WebCore::QtFallbackWebPopupCombo::showPopup):
433 (WebCore::QtFallbackWebPopupCombo::hidePopup):
434 (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
435 (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
436 (WebCore::QtFallbackWebPopup::show):
437 (WebCore::QtFallbackWebPopup::hide):
438 (WebCore::QtFallbackWebPopup::populate):
439 * WebCoreSupport/QtFallbackWebPopup.h:
441 2010-01-19 Steve Block <steveblock@google.com>
443 Reviewed by Adam Barth.
445 Renames WebCore/bridge/runtime.[cpp|h] to WebCore/bridge/Bridge.[cpp|h]
446 https://bugs.webkit.org/show_bug.cgi?id=33801
450 2010-01-14 Brian Weinstein <bweinstein@apple.com>
452 Reviewed by Adam Roben.
454 Drag and Drop source/destination code needs cleanup.
455 <https://bugs.webkit.org/show_bug.cgi?id=33691>.
457 Update to new way of calling sourceOperation.
459 * WebCoreSupport/DragClientQt.cpp:
460 (WebCore::DragClientQt::startDrag):
462 2010-01-14 Simon Hausmann <simon.hausmann@nokia.com>
464 Reviewed by Tor Arne Vestbø.
466 [Qt] Symbian build fixes.
468 * tests/qwebpage/tst_qwebpage.cpp: Include util.h
469 * tests/tests.pri: Don't define TESTS_SOURCE_DIR, it doesn't work.
470 * tests/util.h: Define TESTS_SOURCE_DIR here, just like it's done in Qt.
472 2010-01-14 Simon Hausmann <simon.hausmann@nokia.com>
474 Reviewed by Kenneth Rohde Christiansen.
476 [Qt] Update Symbian .def symbol export files after private API additions.
478 * symbian/bwins/QtWebKitu.def:
479 * symbian/eabi/QtWebKitu.def:
481 2010-01-13 Darin Adler <darin@apple.com>
483 Reviewed by Dan Bernstein.
485 Move more of the selection and caret painting code from Frame to SelectionController.
486 https://bugs.webkit.org/show_bug.cgi?id=33619
489 (QWebPagePrivate::inputMethodEvent): Seems possibly wrong to be directly invoking this
490 setCaretVisible here, but I updated it to call it in its new location.
492 2010-01-11 Simon Hausmann <simon.hausmann@nokia.com>
494 Reviewed by Holger Freyther.
496 [Qt] Add private API for QWebFrame scrolling, to maintain binary compatibility with Qt 4.6.
498 This is just a temporary addition until we have introduced #ifdefs to allow
499 safely removing the private API again.
502 (qtwebkit_webframe_scrollRecursively):
504 2010-01-10 Robert Hogan <robert@roberthogan.net>
506 Reviewed by Adam Barth.
508 [Qt] Add enableXSSAuditor support to QWebSettings and DRT.
510 https://bugs.webkit.org/show_bug.cgi?id=33419
512 * Api/qwebsettings.cpp:
513 (QWebSettingsPrivate::apply):
514 * Api/qwebsettings.h:
516 2010-01-09 Daniel Bates <dbates@webkit.org>
518 No review, rolling out r53044.
519 http://trac.webkit.org/changeset/53044
520 https://bugs.webkit.org/show_bug.cgi?id=33419
522 We need to look into this some more because the Qt
523 bot is failing the XSSAuditor tests. See bug #33419
526 * Api/qwebsettings.cpp:
527 * Api/qwebsettings.h:
529 2010-01-09 Daniel Bates <dbates@webkit.org>
531 Reviewed by Adam Barth.
533 https://bugs.webkit.org/show_bug.cgi?id=33419
535 Adds support for the XSSAuditor to the Qt DRT.
537 * Api/qwebsettings.cpp: Updated comment to reflect added key XSSAuditorEnabled.
538 * Api/qwebsettings.h: Adds settings key XSSAuditorEnabled.
540 2010-01-08 Luiz Agostini <luiz.agostini@openbossa.org>
542 Reviewed by Kenneth Rohde Christiansen.
544 [Qt] Delegation client
545 https://bugs.webkit.org/show_bug.cgi?id=32826
547 Added method createPopup to ChromeClientQt used to create popups.
548 QtFallbackWebPopup moved from WebCore/platform/qt to
549 WebKit/qt/WebCoreSupport.
551 * WebCoreSupport/ChromeClientQt.cpp:
552 (WebCore::ChromeClientQt::createPopup):
553 * WebCoreSupport/ChromeClientQt.h:
554 * WebCoreSupport/QtFallbackWebPopup.cpp: Added.
555 (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
556 (WebCore::QtFallbackWebPopup::show):
557 (WebCore::QtFallbackWebPopup::populate):
558 (WebCore::QtFallbackWebPopup::showPopup):
559 (WebCore::QtFallbackWebPopup::hidePopup):
560 (WebCore::QtFallbackWebPopup::activeChanged):
561 (WebCore::QtFallbackWebPopup::setParent):
562 * WebCoreSupport/QtFallbackWebPopup.h: Added.
563 (WebCore::QtFallbackWebPopup::hide):
565 2010-01-07 Yael Aharon <yael.aharon@nokia.com>
567 Reviewed by Kenneth Rohde Christiansen.
569 [Qt] Allow the application to override online/offline network status
570 https://bugs.webkit.org/show_bug.cgi?id=32684
572 Add a setting so that applications can overide the network status.
573 Applications that use this setting still need to block network access
576 * Api/qwebsettings.cpp:
577 (qt_networkAccessAllowed):
579 2010-01-07 Yongjun Zhang <yongjun.zhang@nokia.com>, Laszlo Gombos <laszlo.1.gombos@nokia.com>
581 Reviewed by Simon Hausmann.
583 [Qt] need an API to suspend and resume active Javascript DOM objects.
584 https://bugs.webkit.org/show_bug.cgi?id=31673
586 Add suspend and resume DOM objects private API to QWebFrame.
589 (qt_suspendActiveDOMObjects):
590 (qt_resumeActiveDOMObjects):
592 2010-01-06 Andreas Kling <andreas.kling@nokia.com>
594 Reviewed by Simon Hausmann.
596 [Qt] Return an invalid Qt::ImMicroFocus if queried while the view needs to layout.
598 https://bugs.webkit.org/show_bug.cgi?id=33204
601 (QWebPage::inputMethodQuery):
603 2010-01-05 Yael Aharon <yael.aharon@nokia.com>
605 Reviewed by Kenneth Rohde Christiansen.
607 Drag & drop layout tests fail even when run manually
608 https://bugs.webkit.org/show_bug.cgi?id=33055
610 No new tests. Fix 3 layout tests when run manually.
611 fast/events/drag-and-drop.html
612 fast/events/drag-and-drop-dataTransfer-types-nocrash.html
613 fast/events/drag-and-drop-fire-drag-dragover.html
614 Running these tests in DRT will be fixed in 31332.
617 (dropActionToDragOp):
618 (dragOpToDropAction):
619 (QWebPagePrivate::dragEnterEvent):
620 (QWebPagePrivate::dragMoveEvent):
621 (QWebPagePrivate::dropEvent):
622 Accept drag events even if they are not over a drop target.
623 This is to ensure that drag events will continue to be delivered.
626 * WebCoreSupport/DragClientQt.cpp:
627 (WebCore::dragOperationToDropActions):
628 (WebCore::dropActionToDragOperation):
629 (WebCore::DragClientQt::startDrag):
632 2010-01-04 Daniel Bates <dbates@webkit.org>
634 Reviewed by Eric Seidel.
636 https://bugs.webkit.org/show_bug.cgi?id=33097
638 Cleans up the File menu to better conform to the File menu in Safari
639 both in terms of options and keyboard shortcuts. Adds a "Quit" menu
640 options to close all open windows.
642 * QGVLauncher/main.cpp:
643 (MainWindow::buildUI):
645 2009-12-31 Laszlo Gombos <laszlo.1.gombos@nokia.com>
647 Reviewed by Kenneth Rohde Christiansen.
649 [Qt] Enable all HTML5 persistent features for QGVLauncher
650 https://bugs.webkit.org/show_bug.cgi?id=33086
652 * QGVLauncher/main.cpp: Call enablePersistentStorage()
655 2009-12-30 Laszlo Gombos <laszlo.1.gombos@nokia.com>
657 Reviewed by Simon Hausmann.
659 [Qt] It should be possible to disable inspector
660 https://bugs.webkit.org/show_bug.cgi?id=32724
662 This change fixes the build break. Some QtWebKit interfaces
663 will not be fully functional (most notable QWebInspector) if
664 INSPECTOR is disabled.
666 * Api/qwebinspector.cpp:
667 (QWebInspector::showEvent):
668 (QWebInspector::closeEvent):
670 (webActionForContextMenuAction):
671 (QWebPagePrivate::getOrCreateInspector):
672 (QWebPagePrivate::inspectorController):
673 (QWebPage::triggerAction):
674 (QWebPage::updatePositionDependentActions):
675 * WebCoreSupport/InspectorClientQt.cpp:
676 (WebCore::InspectorClientQt::showWindow):
677 (WebCore::InspectorClientQt::closeWindow):
679 2009-12-30 Janne Koskinen <janne.p.koskinen@digia.com>
681 Reviewed by Simon Hausmann.
683 Upstream Symbian def files from Qt 4.6.
685 These files define the ABI of QtWebKit on Symbian.
687 * symbian/bwins/QtWebKitu.def: Added.
688 * symbian/eabi/QtWebKitu.def: Added.
690 2009-12-29 Daniel Bates <dbates@webkit.org>
692 Reviewed by Ariya Hidayat.
694 https://bugs.webkit.org/show_bug.cgi?id=32925
696 Adds an Open File dialog to make it convenient to open a file
697 to view in the browser.
699 * QGVLauncher/main.cpp:
700 (MainWindow::load): Modified to call loadURL.
701 (MainWindow::openFile): Added.
702 (MainWindow::loadURL): Added.
703 (MainWindow::buildUI): Added menu item Open File.
705 2009-12-29 Robert Hogan <robert@roberthogan.net>
707 Reviewed by Eric Seidel.
709 [Qt] Fix crash on LayoutTests/fast/loader/empty-embed-src-attribute.html
711 Related to https://bugs.webkit.org/show_bug.cgi?id=23806
713 If an embedded document is loaded within a page and it has an empty
714 URL, use a blank URL for the load request.
716 https://bugs.webkit.org/show_bug.cgi?id=33017
718 * WebCoreSupport/FrameLoaderClientQt.cpp:
719 (WebCore::FrameLoaderClientQt::createFrame):
721 2009-12-29 Laszlo Gombos <laszlo.1.gombos@nokia.com>
723 Rubber-stamped by Simon Hausmann and Holger Freyther.
725 [Qt] Remove WebKit/qt/WebKitPart empty directory
727 The content of the directory has been removed by r34888.
729 * WebKitPart: Removed.
731 2009-12-29 Jakub Wieczorek <faw217@gmail.com>
733 Reviewed by Eric Seidel.
735 [Qt] DRT: Frame loader callbacks differ from the Mac port
736 https://bugs.webkit.org/show_bug.cgi?id=32989
738 Remove messages from the callbacks that should not dump them to match
739 the expected results for the http/loading tests.
741 Unskip some http/loading tests which succeed now.
743 * WebCoreSupport/FrameLoaderClientQt.cpp:
744 (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
745 (WebCore::FrameLoaderClientQt::dispatchWillClose):
746 (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
747 (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
749 2009-12-29 Robert Hogan <robert@roberthogan.net>
751 Reviewed by Eric Seidel.
753 [Qt] fix fast/dom/Window/window-onFocus.html
755 Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
756 window.onblur was getting dispatched twice from QtWebKit.
758 https://bugs.webkit.org/show_bug.cgi?id=32990
761 (QWebPagePrivate::focusOutEvent):
763 2009-12-24 Girish Ramakrishnan <girish@forwardbias.in>
765 Reviewed by Gustavo Noronha.
767 Doc : QGraphicsWebView::zoomFactor was introduced in 4.6.
769 * Api/qgraphicswebview.cpp:
771 2009-12-22 Simon Hausmann <simon.hausmann@nokia.com>
773 Rubber-stamped by Holger Freyther.
775 Moved QtLauncher to WebKitTools/
777 * QtLauncher: Removed.
778 * QtLauncher/QtLauncher.pro: Removed.
779 * QtLauncher/main.cpp: Removed.
781 2009-12-21 David Boddie <dboddie@trolltech.com>
783 Reviewed by Simon Hausmann.
785 Doc: Minor fixes to language.
789 2009-12-21 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
791 Reviewed by Simon Hausmann.
793 [Qt] Clean up the WebKit layer unit-tests
795 - Use tests.pri for common options
796 - Standardize file naming
797 - Move all resources to 'resources' subdir
798 - Standardize how TESTS_SOURCE_DIR is used
799 - Get rid of UID3 for symbian (autogenerated)
800 - Don't build app bundles on Mac OS X
802 * tests/benchmarks/loading/loading.pro: Added.
803 * tests/benchmarks/loading/tst_loading.pro: Removed.
804 * tests/benchmarks/painting/painting.pro: Added.
805 * tests/benchmarks/painting/tst_painting.pro: Removed.
806 * tests/qgraphicswebview/qgraphicswebview.pro:
807 * tests/qwebelement/qwebelement.pro:
808 * tests/qwebelement/qwebelement.qrc: Removed.
809 * tests/qwebelement/resources/image.png: Renamed from WebKit/qt/tests/qwebelement/image.png.
810 * tests/qwebelement/resources/style.css: Renamed from WebKit/qt/tests/qwebelement/style.css.
811 * tests/qwebelement/resources/style2.css: Renamed from WebKit/qt/tests/qwebelement/style2.css.
812 * tests/qwebelement/tst_qwebelement.qrc: Added.
813 * tests/qwebframe/qwebframe.pro:
814 * tests/qwebframe/qwebframe.qrc: Removed.
815 * tests/qwebframe/resources/image.png: Renamed from WebKit/qt/tests/qwebframe/image.png.
816 * tests/qwebframe/resources/style.css: Renamed from WebKit/qt/tests/qwebframe/style.css.
817 * tests/qwebframe/resources/test1.html: Renamed from WebKit/qt/tests/qwebframe/test1.html.
818 * tests/qwebframe/resources/test2.html: Renamed from WebKit/qt/tests/qwebframe/test2.html.
819 * tests/qwebframe/resources/testiframe.html: Renamed from WebKit/qt/tests/qwebframe/testiframe.html.
820 * tests/qwebframe/resources/testiframe2.html: Renamed from WebKit/qt/tests/qwebframe/testiframe2.html.
821 * tests/qwebframe/tst_qwebframe.cpp:
822 * tests/qwebframe/tst_qwebframe.qrc: Added.
823 * tests/qwebhistory/qwebhistory.pro:
824 * tests/qwebhistory/resources/page1.html: Renamed from WebKit/qt/tests/qwebhistory/data/page1.html.
825 * tests/qwebhistory/resources/page2.html: Renamed from WebKit/qt/tests/qwebhistory/data/page2.html.
826 * tests/qwebhistory/resources/page3.html: Renamed from WebKit/qt/tests/qwebhistory/data/page3.html.
827 * tests/qwebhistory/resources/page4.html: Renamed from WebKit/qt/tests/qwebhistory/data/page4.html.
828 * tests/qwebhistory/resources/page5.html: Renamed from WebKit/qt/tests/qwebhistory/data/page5.html.
829 * tests/qwebhistory/resources/page6.html: Renamed from WebKit/qt/tests/qwebhistory/data/page6.html.
830 * tests/qwebhistory/tst_qwebhistory.cpp:
832 * tests/qwebhistory/tst_qwebhistory.qrc:
833 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
834 * tests/qwebinspector/qwebinspector.pro:
835 * tests/qwebpage/qwebpage.pro:
836 * tests/qwebpage/resources/frame_a.html: Renamed from WebKit/qt/tests/qwebpage/frametest/frame_a.html.
837 * tests/qwebpage/resources/iframe.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe.html.
838 * tests/qwebpage/resources/iframe2.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe2.html.
839 * tests/qwebpage/resources/iframe3.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe3.html.
840 * tests/qwebpage/resources/index.html: Renamed from WebKit/qt/tests/qwebpage/frametest/index.html.
841 * tests/qwebpage/tst_qwebpage.cpp:
842 (tst_QWebPage::backActionUpdate):
843 (tst_QWebPage::frameAt):
844 (tst_QWebPage::errorPageExtensionInFrameset):
845 (tst_QWebPage::screenshot):
846 * tests/qwebpage/tst_qwebpage.qrc:
847 * tests/qwebplugindatabase/qwebplugindatabase.pro:
848 * tests/qwebview/qwebview.pro:
849 * tests/qwebview/resources/frame_a.html: Renamed from WebKit/qt/tests/qwebview/data/frame_a.html.
850 * tests/qwebview/resources/index.html: Renamed from WebKit/qt/tests/qwebview/data/index.html.
851 * tests/qwebview/tst_qwebview.cpp:
852 (tst_QWebView::reusePage):
853 (tst_QWebView::crashTests):
854 * tests/qwebview/tst_qwebview.qrc:
855 * tests/resources/image2.png: Renamed from WebKit/qt/tests/qwebframe/resources/image2.png.
856 * tests/tests.pri: Added.
859 2009-12-18 Ariya Hidayat <ariya.hidayat@gmail.com>
861 Build fix, not reviewed.
863 * QtLauncher/main.cpp:
864 (MainWindow::setTouchMocking): Leave setTouchMocking as an empty
865 function for Qt < 4.6 so that moc still creates a slot for that.
866 Otherwise, it would have generated a linker error.
868 2009-12-18 Adam Roben <aroben@apple.com>
872 * Api/qwebpage.cpp: Added #include.
874 2009-12-18 Adam Roben <aroben@apple.com>
881 2009-12-18 Joe Ligman <joseph.ligman@nokia.com>
883 Reviewed by Kenneth Rohde Christiansen.
885 [Qt] Add new API to QWebFrame to scrollRecursively starting with any css overflow
886 then checking current frame and then ancestors
887 https://bugs.webkit.org/show_bug.cgi?id=32668
890 (QWebFramePrivate::scrollOverflow):
891 (QWebFrame::scrollRecursively):
894 * tests/qwebframe/qwebframe.qrc:
895 * tests/qwebframe/testiframe.html: Added.
896 * tests/qwebframe/testiframe2.html: Added.
897 * tests/qwebframe/tst_qwebframe.cpp:
899 2009-12-18 Simon Hausmann <simon.hausmann@nokia.com>
901 Reviewed by Tor Arne Vestbø.
903 [Qt] Fix infinite recursion in touch mocking.
905 Don't send the fake touch events to the view, as that'll trigger the
908 * QtLauncher/main.cpp:
909 (MainWindow::sendTouchEvent):
911 2009-12-17 Benjamin Poulain <benjamin.poulain@nokia.com>
913 Reviewed by Simon Hausmann.
915 [Qt] Add support for mocking touch events with Q(GV)Launcher
916 https://bugs.webkit.org/show_bug.cgi?id=32434
918 The event delivery should go through QCoreApplication::sendEvent()
920 * QtLauncher/main.cpp:
921 (MainWindow::sendTouchEvent):
923 2009-12-17 Kim Grönholm <kim.gronholm@nomovok.com>
925 Reviewed by Simon Hausmann.
927 [Qt] Add support for touch events in QWebView and QGraphicsWebView
928 https://bugs.webkit.org/show_bug.cgi?id=32432
930 * Api/qgraphicswebview.cpp:
931 (QGraphicsWebView::QGraphicsWebView):
932 (QGraphicsWebView::sceneEvent):
934 (QWebView::QWebView):
937 2009-12-17 Kim Grönholm <kim.gronholm@nomovok.com>
939 Reviewed by Simon Hausmann.
941 [Qt] Add support for mocking touch events with QtLauncher
942 https://bugs.webkit.org/show_bug.cgi?id=32434
944 * QtLauncher/main.cpp:
945 (MainWindow::MainWindow):
946 (MainWindow::sendTouchEvent):
947 (MainWindow::eventFilter):
948 (MainWindow::setTouchMocking):
949 (MainWindow::setupUI):
951 2009-12-14 Holger Hans Peter Freyther <zecke@selfish.org>
953 Reviewed by Kenneth Rohde Christiansen.
955 [Qt] Fix JavaScript prompt behavior for empty/null strings.
956 https://bugs.webkit.org/show_bug.cgi?id=30914
958 The patch is based on the work done by Gupta Manish.
960 In the default implementation of the JavaScript prompt
961 we are using a QInputDialog to get the text and this has
962 one quirk with regard to not entering any text.
964 In other WebKit ports and in Firefox an empty string is
965 returned but in the Qt case it is a null string.
967 Change the API documentation in QWebPage to mention we want to
968 have a non null string but do the fixup in the ChromeClientQt
969 to support existing code.
972 (QWebPage::javaScriptPrompt): Change API documentation
973 * WebCoreSupport/ChromeClientQt.cpp:
974 (WebCore::ChromeClientQt::runJavaScriptPrompt): Fixup null QString
976 2009-11-24 Holger Hans Peter Freyther <zecke@selfish.org>
978 Reviewed by Simon Hausmann.
980 [Qt] Do not disable the inspector on show and hide
981 https://bugs.webkit.org/show_bug.cgi?id=31851
983 On Qt/X11 with some window managers the window will be
984 hidden when switching windows. In this case all the results
985 are gone when coming back to the window.
987 Attempt to use the CloseEvent to figure out if the window
988 was closed and withdrawn as this is more friendly to the
989 user of the inspector client.
991 * Api/qwebinspector.cpp:
992 (QWebInspector::hideEvent):
993 (QWebInspector::closeEvent):
994 * Api/qwebinspector.h:
996 2009-12-14 Benjamin Poulain <benjamin.poulain@nokia.com>
998 Reviewed by Kenneth Rohde Christiansen.
1000 [Qt] Improve the autotests of QtWebkit
1001 https://bugs.webkit.org/show_bug.cgi?id=32216
1003 Refactor tst_qwebelement to remove the qWait()
1005 * tests/qwebelement/tst_qwebelement.cpp:
1006 (tst_QWebElement::style):
1008 2009-12-14 Andreas Kling <andreas.kling@nokia.com>
1010 Reviewed by Simon Hausmann.
1012 Fix the QWebPage inputMethods() autotest after r51758
1013 to compare the Qt::ImFont property's family against an explicitly
1014 previously configured family.
1016 https://bugs.webkit.org/show_bug.cgi?id=32491
1018 * tests/qwebpage/tst_qwebpage.cpp:
1019 (tst_QWebPage::inputMethods):
1021 2009-12-13 Sam Weinig <sam@webkit.org>
1023 Reviewed by Dan Bernstein.
1025 Fix for https://bugs.webkit.org/show_bug.cgi?id=32499
1026 Add client based Geolocation provider
1028 Add first cut of a client based Geolocation provider. This is guarded by
1029 ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a
1030 GeolocationControllerClient interface that no-one currently implements,
1031 but will in a subsequent patch.
1034 (QWebPagePrivate::QWebPagePrivate):
1036 2009-12-13 Benjamin Poulain <benjamin.poulain@nokia.com>
1038 Reviewed by Simon Hausmann.
1040 Add a test in Qt for https://bugs.webkit.org/show_bug.cgi?id=29005
1041 https://bugs.webkit.org/show_bug.cgi?id=29008
1043 * tests/qwebframe/tst_qwebframe.cpp:
1045 2009-12-13 Simon Hausmann <hausmann@webkit.org>
1047 Reviewed by Holger Freyther.
1049 [Qt] Re-enable QWebView::renderHints property for Qt for Symbian
1051 https://bugs.webkit.org/show_bug.cgi?id=28273
1053 The bug in Qt's moc that triggered a linking error when declaring this
1054 property has been fixed and we can remove the workaround.
1058 2009-12-11 Yael Aharon <yael.aharon@nokia.com>
1060 Unreviewed build fix for Qt versions < 4.6.
1062 * tests/qwebframe/tst_qwebframe.cpp:
1063 * tests/qwebview/tst_qwebview.cpp:
1064 (tst_QWebView::reusePage):
1066 2009-12-11 Girish Ramakrishnan <girish@forwardbias.in>
1068 Reviewed by Tor Arne Vestbø.
1070 [Qt] Updated QWebElement documentation
1072 findAll() returns a QWebElementCollection, not QList<QWebElement>.
1074 * docs/webkitsnippets/webelement/main.cpp:
1077 2009-12-11 Simon Hausmann <hausmann@webkit.org>, Kim Grönholm <kim.gronholm@nomovok.com>
1079 Reviewed by Antti Koivisto.
1081 Forward Qt touch events to the event handler as platform touch events.
1083 https://bugs.webkit.org/show_bug.cgi?id=32114
1086 (QWebPagePrivate::touchEvent):
1090 2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
1092 Reviewed by Kenneth Rohde Christiansen.
1094 [Qt] Improve the autotests of QtWebkit
1095 https://bugs.webkit.org/show_bug.cgi?id=32216
1097 Remove the calls to qWait() of the autotest of QWebView
1099 * tests/qwebview/tst_qwebview.cpp:
1100 (tst_QWebView::reusePage):
1102 2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
1104 Reviewed by Kenneth Rohde Christiansen.
1106 [Qt] Improve the autotests of QtWebkit
1107 https://bugs.webkit.org/show_bug.cgi?id=32216
1109 Refactor tst_qwebframe to remove qWait() and use
1110 the function waitForSignal() from util.h
1112 * tests/qwebframe/tst_qwebframe.cpp:
1114 2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
1116 Reviewed by Kenneth Rohde Christiansen.
1118 [Qt] Improve the autotests of QtWebkit
1119 https://bugs.webkit.org/show_bug.cgi?id=32216
1121 Refactor the test of QGraphicsWebView:
1122 -make waitForSignal() available to all the tests.
1123 -remove QTest::qWait()
1125 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1126 (tst_QGraphicsWebView::crashOnViewlessWebPages):
1130 2009-12-07 Girish Ramakrishnan <girish@forwardbias.in>
1132 Reviewed by Simon Hausmann.
1134 [Qt] Plugins: Force windowless mode when there is no native window handle
1136 Inject wmode=opaque while instantiating the plugin for the case when the
1137 webpage is not backed by a native window handle.
1139 https://bugs.webkit.org/show_bug.cgi?id=32059
1141 * WebCoreSupport/FrameLoaderClientQt.cpp:
1142 (WebCore::FrameLoaderClientQt::createPlugin):
1144 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1146 Reviewed by Kenneth Rohde Christiansen.
1148 [Qt] Corrects QtLauncher style
1150 * QtLauncher/main.cpp:
1151 (WebPage::acceptNavigationRequest):
1152 (MainWindow::MainWindow):
1153 (MainWindow::webPage):
1154 (MainWindow::webView):
1155 (MainWindow::changeLocation):
1156 (MainWindow::loadFinished):
1157 (MainWindow::showLinkHover):
1158 (MainWindow::zoomIn):
1159 (MainWindow::zoomOut):
1160 (MainWindow::print):
1161 (MainWindow::setEditable):
1162 (MainWindow::dumpHtml):
1163 (MainWindow::selectElements):
1164 (MainWindow::newWindow):
1165 (MainWindow::setupUI):
1166 (WebPage::createWindow):
1167 (WebPage::createPlugin):
1170 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1172 Reviewed by Kenneth Rohde Christiansen.
1174 [Qt] QtLauncher: add a menu to show or hide the web inspector.
1175 https://bugs.webkit.org/show_bug.cgi?id=32149
1177 * QtLauncher/main.cpp:
1178 (WebInspector::WebInspector):
1179 (WebInspector::showEvent):
1180 (WebInspector::hideEvent):
1181 (MainWindow::MainWindow):
1182 (MainWindow::setupUI):
1184 2009-12-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
1186 Reviewed by Antti Koivisto.
1188 Split out the renderPrivate in two methods, one for working on
1189 relative coordinates (relative to the viewport) and one for
1190 working on absolute coordinates. The latter is more effecient
1191 for implementing tiling, as you don't need translate the coords,
1192 and because it avoid clipping to the viewport.
1194 No behaviour changes, so no new tests.
1196 * Api/qwebframe.cpp:
1197 (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
1198 (QWebFramePrivate::renderRelativeCoords):
1199 (QWebFrame::render):
1200 * Api/qwebframe_p.h:
1202 2009-12-04 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1204 Reviewed by Simon Hausmann.
1206 [Qt] Allow removing 'qrc' as a local security origin scheme
1208 * tests/qwebpage/tst_qwebpage.cpp:
1210 2009-12-04 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1212 Reviewed by Simon Hausmann.
1214 [Qt] Clean up argument parsing in the QtLauncher
1216 * QtLauncher/main.cpp:
1218 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1220 Reviewed by Kenneth Rohde Christiansen.
1222 [Qt] Prevent the inspector from closing its wrapping widget.
1223 This is not necessary anymore since we now hide the embedded
1225 https://bugs.webkit.org/show_bug.cgi?id=32149
1227 * WebCoreSupport/InspectorClientQt.cpp:
1228 (WebCore::InspectorClientQt::showWindow):
1229 (WebCore::InspectorClientQt::closeWindow):
1231 2009-12-03 İsmail Dönmez <ismail@namtrac.org>
1233 Reviewed by Eric Seidel.
1235 Fix compilation when SVG is disabled.
1237 * Api/qwebframe.cpp:
1238 (qt_drt_pauseSVGAnimation):
1240 2009-12-03 Brady Eidson <beidson@apple.com>
1242 Reviewed by Sam Weinig.
1244 <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
1246 * WebCoreSupport/FrameLoaderClientQt.cpp:
1247 (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
1248 (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
1249 (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
1250 * WebCoreSupport/FrameLoaderClientQt.h:
1252 2009-12-03 Pavel Feldman <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
1254 Reviewed by Timothy Hatcher.
1256 Web Inspector: Simplify the settings support in inspector controller.
1258 https://bugs.webkit.org/show_bug.cgi?id=32076
1260 * WebCoreSupport/InspectorClientQt.cpp:
1261 (WebCore::InspectorClientQt::populateSetting):
1262 (WebCore::InspectorClientQt::storeSetting):
1263 (WebCore::variantToSetting):
1264 (WebCore::settingToVariant):
1265 * WebCoreSupport/InspectorClientQt.h:
1267 2009-12-03 Ben Murdoch <benm@google.com>
1269 Reviewed by Brady Eidson.
1271 [Android] The FrameLoaderClient is unaware of BackForwardList changes.
1272 https://bugs.webkit.org/show_bug.cgi?id=31914
1274 * WebCoreSupport/FrameLoaderClientQt.cpp:
1275 (WebCore::FrameLoaderClientQt::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
1276 (WebCore::FrameLoaderClientQt::dispatchDidRemoveBackForwardItem): ditto.
1277 (WebCore::FrameLoaderClientQt::dispatchDidChangeBackForwardIndex): ditto.
1278 * WebCoreSupport/FrameLoaderClientQt.h:
1280 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
1282 Not reviewed. Try to fix Qt build.
1284 * Api/qwebframe.cpp:
1285 (qt_drt_pauseSVGAnimation):
1287 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
1289 Reviewed by Simon Fraser.
1291 Add SVG animation test framework with 'snapshot' functionality
1292 https://bugs.webkit.org/show_bug.cgi?id=31897
1294 Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
1295 forwarding the call to SVGDocumentExtensions, if SVG is enabled.
1297 Implemented just like the existing pauseAnimation* methods for CSS animations.
1299 * Api/qwebframe.cpp:
1300 (qt_drt_pauseSVGAnimation):
1302 2009-12-01 Daniel Bates <dbates@webkit.org>
1304 Reviewed by Kenneth Rohde Christiansen.
1306 https://bugs.webkit.org/show_bug.cgi?id=31898
1308 Makes QtLauncher default to the http scheme for URLs.
1310 * QtLauncher/main.cpp:
1311 (MainWindow::MainWindow):
1312 (MainWindow::changeLocation):
1315 2009-11-30 Abhinav Mithal <abhinav.mithal@nokia.com>
1317 Reviewed by Simon Hausmann.
1319 [Qt][Symbian] Report SymbianOS in user agent string for Symbian
1320 https://bugs.webkit.org/show_bug.cgi?id=31961
1323 (QWebPage::userAgentForUrl):
1325 2009-11-30 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1327 Reviewed by Kenneth Rohde Christiansen.
1329 [Qt] Fix minor waning in QtWebKit
1330 https://bugs.webkit.org/show_bug.cgi?id=31963
1332 * tests/qwebpage/tst_qwebpage.cpp:
1333 (ErrorPage::extension): Remove info wariable as it is
1336 2009-11-28 Simon Hausmann <simon.hausmann@nokia.com>
1338 Reviewed by Kenneth Rohde Christiansen.
1340 [Qt] SoftwareInputPanelRequest event sent when clicking in newly loaded page
1342 https://bugs.webkit.org/show_bug.cgi?id=31401
1344 Don't set the event unless there is a focused node we can use
1345 for editing afterwards.
1348 (QWebPagePrivate::handleSoftwareInputPanel):
1349 * tests/qwebpage/tst_qwebpage.cpp:
1350 (tst_QWebPage::inputMethods):
1352 2009-11-26 Simon Hausmann <simon.hausmann@nokia.com>
1354 Rubber-stamped by Holger Freyther.
1356 Removed unused ICO image plugin handler.
1358 * Plugins/ICOHandler.cpp: Removed.
1359 * Plugins/ICOHandler.h: Removed.
1360 * Plugins/Plugins.pro: Removed.
1362 2009-11-12 Holger Hans Peter Freyther <zecke@selfish.org>
1364 Reviewed by Kenneth Rohde Christiansen.
1366 [Qt] Do not show the QWidget when the WebCore::Widget is hidden
1367 https://bugs.webkit.org/show_bug.cgi?id=31203
1369 The clipping code was making a QWidget visible even if the
1370 WebCore::Widget was hidden. Fix the bug by calling setVisible
1371 only if the WebCore::Widget Widget::isSelfVisible.
1373 * WebCoreSupport/FrameLoaderClientQt.cpp:
1374 (WebCore::QtPluginWidget::show): Override WebCore::Widget::show to call handleVisibility
1375 (WebCore::QtPluginWidget::handleVisibility): New method to call setVisible when we are visible
1376 (FrameLoaderClientQt::createPlugin): Hide the QWidget by default
1378 2009-11-23 David Boddie <dboddie@trolltech.com>
1380 Reviewed by Simon Hausmann.
1382 Updated the QWebElement documentation with links to examples and
1384 Fixed the project file for the webelement snippet and tidied up the
1385 markers used for quoting the code.
1387 * Api/qwebelement.cpp:
1388 * docs/webkitsnippets/webelement/main.cpp:
1390 * docs/webkitsnippets/webelement/webelement.pro:
1392 2009-11-23 Simon Hausmann <simon.hausmann@nokia.com>
1394 Reviewed by Kenneth Rohde Christiansen.
1396 [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
1397 the wrapped object died before the gc removed the instance.
1399 https://bugs.webkit.org/show_bug.cgi?id=31681
1401 Added a unit-test to verify that wrapping a QObject with the
1402 same identity as a previously but now dead object works.
1404 * tests/qwebframe/tst_qwebframe.cpp:
1406 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1408 Reviewed by Kenneth Rohde Christiansen.
1410 [Qt] Add instantiation tests for QWebInspector.
1412 * tests/qwebinspector/qwebinspector.pro: Added.
1413 * tests/qwebinspector/tst_qwebinspector.cpp: Added.
1414 (tst_QWebInspector::attachAndDestroy):
1417 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1419 Reviewed by Kenneth Rohde Christiansen.
1421 [Qt] Fix QWebInspector destruction problem.
1422 https://bugs.webkit.org/show_bug.cgi?id=31664
1425 (QWebPage::~QWebPage):
1427 2009-11-19 Olivier Goffart <ogoffart@trolltech.com>
1429 Reviewed by Simon Hausmann.
1431 [Qt] Normalize signal and slot signatures.
1433 * Api/qgraphicswebview.cpp:
1434 (QGraphicsWebView::setPage):
1436 (QWebView::setPage):
1437 * WebCoreSupport/FrameLoaderClientQt.cpp:
1438 (WebCore::FrameLoaderClientQt::setFrame):
1439 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
1441 * tests/qwebframe/tst_qwebframe.cpp:
1442 * tests/qwebpage/tst_qwebpage.cpp:
1443 (tst_QWebPage::modified):
1444 (tst_QWebPage::database):
1446 2009-11-18 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1448 Reviewed by Kenneth Rohde Christiansen.
1450 [Qt] Remove support for Qt v4.3 or older versions
1451 https://bugs.webkit.org/show_bug.cgi?id=29469
1453 * Api/qcookiejar.cpp: Removed.
1454 * Api/qcookiejar.h: Removed.
1455 * Api/qgraphicswebview.cpp:
1456 (QGraphicsWebView::event):
1457 * Api/qwebframe.cpp:
1460 * Api/qwebkitglobal.h:
1461 * Api/qwebnetworkinterface.cpp: Removed.
1462 * Api/qwebnetworkinterface.h: Removed.
1463 * Api/qwebnetworkinterface_p.h: Removed.
1465 (QWebPagePrivate::QWebPagePrivate):
1466 (QWebPagePrivate::acceptNavigationRequest):
1467 (QWebPage::acceptNavigationRequest):
1469 (QWebPage::userAgentForUrl):
1476 * QtLauncher/main.cpp:
1477 (MainWindow::print):
1478 (MainWindow::setupUI):
1480 * WebCoreSupport/FrameLoaderClientQt.cpp:
1481 (WebCore::FrameLoaderClientQt::download):
1482 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1483 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1484 (WebCore::FrameLoaderClientQt::startDownload):
1485 (WebCore::FrameLoaderClientQt::createPlugin):
1487 2009-11-18 Shu Chang <Chang.Shu@nokia.com>
1489 Reviewed by Eric Seidel.
1491 [Qt] Add support for displaying deleteButton.
1492 https://bugs.webkit.org/show_bug.cgi?id=31560
1494 Test: LayoutTests/editing/deleting/5408255.html
1496 * Api/qwebsettings.cpp:
1498 * Api/qwebsettings.h:
1500 2009-11-18 Paul Olav Tvete <paul.tvete@nokia.com>
1502 Reviewed by Simon Hausmann.
1504 [Qt] Make the QWebElement::render() test pass when pixmaps aren't 32 bit.
1506 * tests/qwebelement/tst_qwebelement.cpp:
1507 (tst_QWebElement::render):
1509 2009-11-18 Simon Hausmann <simon.hausmann@nokia.com>
1511 Reviewed by Tor Arne Vestbø.
1513 Clarify and simplify the legal section in the overview documentation,
1514 after review with our legal team.
1516 * docs/qtwebkit.qdoc:
1518 2009-11-18 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1520 Reviewed by Simon Hausmann.
1522 [Qt] Add QtLauncher support for opening links in the default browser
1524 This can be triggered by either the context menu or by clicking a link
1525 while holding down the Alt key. Opening a link in a new windows is
1526 triggered by holding down Shift.
1528 * QtLauncher/main.cpp:
1530 2009-11-17 Yael Aharon <yael.aharon@nokia.com>
1532 Reviewed by Kenneth Rohde Christiansen.
1534 [Qt] QGLLauncher does not support drag&drop of local files
1535 https://bugs.webkit.org/show_bug.cgi?id=31057
1537 Enable accepting files in QGraphicsWebView.
1539 * Api/qgraphicswebview.cpp:
1540 (QGraphicsWebView::QGraphicsWebView):
1541 (QGraphicsWebView::dragEnterEvent):
1543 2009-11-17 Antonio Gomes <tonikitoo@webkit.org>
1545 Reviewed by Kenneth Christiansen.
1547 [Qt] better test coverage for ErrorPageExtension
1548 https://bugs.webkit.org/show_bug.cgi?id=31583
1550 Improved the coverage of current ErrorPageExtension tests by
1551 adding autotests involving frameset and iframes.
1553 * tests/qwebpage/tst_qwebpage.cpp:
1554 (ErrorPage::extension): Make the ErrorPageExtension
1555 to work for all frames, not only the main frame.
1556 (tst_QWebPage::errorPageExtension): Stop using
1557 the 'frameset.html' resouce in this method since
1558 an autotest specific for frameset's is being added.
1559 (tst_QWebPage::errorPageExtensionInIFrames): Added.
1560 (tst_QWebPage::errorPageExtensionInFrameset): Added.
1562 2009-11-16 Simon Hausmann <simon.hausmann@nokia.com>
1564 Reviewed by Kenneth Rohde Christiansen.
1566 API documentation fixes.
1568 * Api/qgraphicswebview.cpp: Removed duplicate docs.
1569 * Api/qwebelement.cpp: Added missing docs.
1570 * Api/qwebsettings.cpp: Ditto.
1572 2009-11-14 Antonio Gomes <tonikitoo@webkit.org>
1574 Reviewed by Antti Koivisto.
1576 [Qt] Broken back/forward after using ErrorPageExtension to set error page
1577 https://bugs.webkit.org/show_bug.cgi?id=30573
1579 Implemented autotests for covering the back/forward
1580 reset problem involving error pages.
1582 * tests/qwebpage/tst_qwebpage.cpp:
1583 (tst_QWebPage::errorPageExtension):
1585 2009-11-13 Adam Roben <aroben@apple.com>
1587 Update for changes to FrameLoaderClient
1589 Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
1590 window objects in isolated worlds are cleared
1592 Reviewed by Dave Hyatt.
1594 * WebCoreSupport/FrameLoaderClientQt.cpp:
1595 (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
1596 * WebCoreSupport/FrameLoaderClientQt.h:
1597 Replaced windowObjectCleared with this function. Does nothing if the
1598 passed-in world is not the mainThreadNormalWorld().
1600 2009-11-13 Andras Becsi <becsi.andras@stud.u-szeged.hu>
1602 Reviewed by Kenneth Rohde Christiansen.
1604 [Qt] Enable Page Cache if setMaximumPagesInCache needs it.
1605 This fixes https://bugs.webkit.org/show_bug.cgi?id=31266.
1607 * Api/qwebsettings.cpp:
1608 (QWebSettingsPrivate::apply):
1609 (QWebSettings::setMaximumPagesInCache):
1611 2009-11-13 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1613 Reviewed by Kenneth Rohde Christiansen.
1615 [Qt] Fix initial QWebView focus behavior.
1617 focusController->setFocused(true) was not always called.
1618 https://bugs.webkit.org/show_bug.cgi?id=31466
1621 (QWebPagePrivate::focusInEvent):
1623 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1625 Reviewed by Simon Hausmann.
1627 Update documentation for the Qt API
1629 * Api/qgraphicswebview.cpp:
1630 * Api/qwebelement.cpp:
1631 * Api/qwebframe.cpp:
1632 * Api/qwebsettings.cpp:
1635 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1637 Reviewed by Simon Hausmann.
1639 Use correct install-path when running qdoc3
1643 2009-11-12 Shinichiro Hamaji <hamaji@chromium.org>
1645 Reviewed by Darin Adler.
1647 externalRepresentation should take Frame as the argument
1648 https://bugs.webkit.org/show_bug.cgi?id=31393
1650 No new tests as this is just a refactoring.
1652 * Api/qwebframe.cpp:
1653 (QWebFrame::renderTreeDump):
1655 2009-11-12 Antonio Gomes <tonikitoo@webkit.org>
1657 Reviewed by Jan Alonzo.
1659 [Qt] Various doc fixes
1660 https://bugs.webkit.org/show_bug.cgi?id=31358
1662 QWebPage's constructor docs are mentioning "QWebView":
1663 "Constructs an empty QWebView with parent".
1667 2009-11-12 Benjamin Poulain <benjamin.poulain@nokia.com>
1669 Reviewed by Kenneth Rohde Christiansen.
1671 Custom printing shrink factors
1672 https://bugs.webkit.org/show_bug.cgi?id=29042
1674 This reverts commit r49769. The public API for this needs to be reviewed
1675 before its inclusion in Qt.
1677 * Api/qwebsettings.cpp:
1678 (QWebSettingsPrivate::apply):
1679 (QWebSettings::QWebSettings):
1680 * Api/qwebsettings.h:
1682 2009-11-11 Antonio Gomes <tonikitoo@webkit.org>
1684 Reviewed by Kenneth Christiansen.
1686 [Qt] Various doc fixes
1687 https://bugs.webkit.org/show_bug.cgi?id=31358
1689 Fixed wrong documentation: item's dimensions do fit to Web page
1692 Kenneth agreed to land this as a followup patch to the
1693 just landed documentation patch.
1695 * Api/qgraphicswebview.cpp:
1697 2009-11-11 David Boddie <dboddie@trolltech.com>
1699 Reviewed by Kenneth Christiansen.
1701 [Qt] Various doc fixes
1702 https://bugs.webkit.org/show_bug.cgi?id=31323
1704 Fixed and synchronized QWebView related documentation.
1706 * Api/qgraphicswebview.cpp:
1709 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
1711 Unreviewed buildbot fix.
1713 Export a method to the DRT to know if the document has a
1716 * Api/qwebframe.cpp:
1717 (qt_drt_hasDocumentElement):
1719 2009-11-11 Liang QI <liang.qi@nokia.com>
1721 [Qt] Fix tst_qwebpage and tst_qwebframe compilation on Symbian.
1723 * tests/qwebframe/qwebframe.pro:
1724 * tests/qwebframe/tst_qwebframe.cpp:
1725 * tests/qwebpage/qwebpage.pro:
1726 * tests/qwebpage/tst_qwebpage.cpp:
1728 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
1730 Reviewed by Simon Hausmann.
1732 Fix a crash in the layout test plugins/document-open.html
1734 * Api/qwebframe.cpp:
1735 (QWebFrame::toPlainText):
1737 2009-11-11 Warwick Allison <warwick.allison@nokia.com>, Simon Hausmann <simon.hausmann@nokia.com>
1739 Reviewed by Tor Arne Vestbø.
1741 [Qt] Regression: Preserve the parent of plugin objects when using
1742 QtWebKit with only a QWebPage.
1744 * WebCoreSupport/FrameLoaderClientQt.cpp:
1745 (WebCore::FrameLoaderClientQt::createPlugin): Don't reparent
1747 * tests/qwebpage/tst_qwebpage.cpp:
1748 (PluginCounterPage::PluginCounterPage): Initialize m_pluginParent to 0.
1749 (PluginCounterPage::~PluginCounterPage): Delete the plugin parent later
1751 (PluginTracerPage::createPlugin): Assign a dummy parent to the plugin.
1752 (PluginTracerPage::PluginTracerPage): Set up the plugin parent.
1753 (tst_QWebPage::createViewlessPlugin): Verify that for viewless pages the
1754 plugin parent remains unchanged.
1756 2009-11-11 David Boddie <dboddie@trolltech.com>
1758 [Qt] Doc: Added internal or hidden placeholder documentation.
1762 2009-11-11 Martin Smith <msmith@trolltech.com>
1764 [Qt] doc: Changed Trolltech to Nokia
1768 2009-11-11 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1770 Reviewed by Kenneth Rohde Christiansen.
1772 https://bugs.webkit.org/show_bug.cgi?id=31323
1773 Fix a few compiler warnings
1775 * tests/qwebframe/tst_qwebframe.cpp: Add extra brackets
1776 to make it explicit where the else case belongs
1778 2009-11-11 Simon Hausmann <simon.hausmann@nokia.com>
1780 Reviewed by Tor Arne Vestbø.
1782 Fix enabling of software input panel when activating editable elements
1783 in QGraphicsWebView.
1785 * Api/qgraphicswebview.cpp:
1786 (QGraphicsWebViewPrivate::inputMethodEnabled): Implement method to
1787 query for input method support.
1789 (QWebPageWidgetClient::inputMethodEnabled): Ditto for QWidget.
1790 (QWebPagePrivate::handleSoftwareInputPanel): Don't use view() to
1791 test for input method support. Instead query using QWebPageClient
1792 and send the SIPR event to the ownerWidget() instead of the view().
1793 The latter is null for QGraphicsWebView.
1794 * tests/qwebpage/tst_qwebpage.cpp:
1795 (EventSpy::EventSpy):
1796 (EventSpy::eventFilter):
1797 (tst_QWebPage::inputMethods): Modify the test to verify that SIPR
1798 events are dispatched when activating focusable content.
1800 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
1802 Unreviewed documentation fixes.
1804 Added a few improvements from Jocelyn Turcotte to the
1809 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
1811 Unreviewed documentation fix.
1813 [Qt] Make qwebpage's createWindow not qwebview dependent.
1814 https://bugs.webkit.org/show_bug.cgi?id=30771
1816 Update documentation to make it clear that a reimplementation
1817 of the createWindow method of the associated QWebPage can
1818 result in the QWebView::createWindow method to never be called.
1822 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1824 Reviewed by Kenneth Rohde Christiansen.
1826 [Qt] Few classes have virtual functions but non-virtual destructor
1827 https://bugs.webkit.org/show_bug.cgi?id=31269
1829 * Api/qgraphicswebview.cpp:
1830 (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): Add virtual
1833 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
1835 Reviewed by Kenneth Rohde Christiansen.
1837 https://bugs.webkit.org/show_bug.cgi?id=30628
1838 Add an API to get all the attributes from a QWebElement.
1840 * Api/qwebelement.cpp:
1841 (QWebElement::attributesName):
1842 * Api/qwebelement.h:
1843 * tests/qwebelement/tst_qwebelement.cpp:
1844 (tst_QWebElement::listAttributes):
1846 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1848 Reviewed by Kenneth Rohde Christiansen.
1850 Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
1851 https://bugs.webkit.org/show_bug.cgi?id=31040
1854 (QWebPagePrivate::handleScrolling):
1856 2009-11-09 Mark Mentovai <mark@chromium.org>
1858 Reviewed by Dan Bernstein.
1860 Track "can have scrollbar" state within FrameView independently of the
1861 individual scrollbar states in ScrollView.
1863 rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
1864 REGRESSION (r48064): mint.com loses scrollbars after coming out of
1867 rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
1868 REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
1870 Test: fast/overflow/scrollbar-restored.html
1872 * Api/qwebframe.cpp:
1873 (QWebFrame::setScrollBarPolicy):
1875 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
1877 Reviewed by Kenneth Rohde Christiansen.
1879 https://bugs.webkit.org/show_bug.cgi?id=30772
1880 Add a non-const iterator to QWebElementCollection.
1881 Move the two attributes of the iterator to private.
1883 * Api/qwebelement.h:
1884 (const_iterator::begin):
1885 (const_iterator::end):
1886 (const_iterator::constBegin):
1887 (const_iterator::constEnd):
1888 (const_iterator::iterator::iterator):
1889 (const_iterator::iterator::operator*):
1890 (const_iterator::iterator::operator==):
1891 (const_iterator::iterator::operator!=):
1892 (const_iterator::iterator::operator<):
1893 (const_iterator::iterator::operator<=):
1894 (const_iterator::iterator::operator>):
1895 (const_iterator::iterator::operator>=):
1896 (const_iterator::iterator::operator++):
1897 (const_iterator::iterator::operator--):
1898 (const_iterator::iterator::operator+=):
1899 (const_iterator::iterator::operator-=):
1900 (const_iterator::iterator::operator+):
1901 (const_iterator::iterator::operator-):
1902 * tests/qwebelement/tst_qwebelement.cpp:
1903 (tst_QWebElement::nonConstIterator):
1904 (tst_QWebElement::constIterator):
1906 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1908 Reviewed by Kenneth Christiansen.
1910 [Qt] Remove the sessionStorage setting (per Page)
1911 https://bugs.webkit.org/show_bug.cgi?id=31249
1913 This setting allows to run sessionStorage on/off on a per page
1914 basis. Remove this prematurely exposed API.
1916 * Api/qwebsettings.cpp:
1917 (QWebSettingsPrivate::apply):
1918 (QWebSettings::QWebSettings):
1919 * tests/qwebpage/tst_qwebpage.cpp:
1920 (tst_QWebPage::database):
1921 (tst_QWebPage::testOptionalJSObjects):
1923 2009-11-09 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1925 Reviewed by Simon Hausmann.
1927 [Qt] Remove the QWebPage:webInspectorTriggered signal.
1928 User customization of the communication between QWebPage
1929 and QWebInspector will be properly designed in the next version.
1930 https://bugs.webkit.org/show_bug.cgi?id=30773
1932 * Api/qwebinspector.cpp:
1934 (QWebPagePrivate::getOrCreateInspector):
1935 (QWebPage::triggerAction):
1937 * QtLauncher/main.cpp:
1938 (MainWindow::MainWindow):
1940 2009-11-05 Simon Hausmann <hausmann@webkit.org>
1942 Reviewed by Tor Arne Vestbø.
1944 Added a missing re-implementation of QGraphicsItem::inputMethodQuery().
1946 * Api/qgraphicswebview.cpp:
1947 (QGraphicsWebView::inputMethodQuery):
1948 * Api/qgraphicswebview.h:
1950 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1952 Reviewed by Tor Arne Vestbø.
1954 Provide a dummy re-implementation of QGraphicsLayoutItem::sizeHint(),
1955 similar to QWebView.
1957 * Api/qgraphicswebview.cpp:
1958 (QGraphicsWebView::sizeHint):
1959 * Api/qgraphicswebview.h:
1961 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1963 Reviewed by Tor Arne Vestbø.
1965 Removed zoomFactoryChanged() signal and added
1966 linkClicked() to QGraphicsWebView, for consistency with
1969 * Api/qgraphicswebview.cpp:
1970 (QGraphicsWebView::setPage):
1971 (QGraphicsWebView::setZoomFactor):
1972 * Api/qgraphicswebview.h:
1974 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1976 Reviewed by Tor Arne Vestbø.
1978 Added QGraphicsWebView::findText() for convenience and consistency
1981 * Api/qgraphicswebview.cpp:
1982 (QGraphicsWebView::findText):
1983 * Api/qgraphicswebview.h:
1985 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1987 Reviewed by Tor Arne Vestbø.
1989 Added QGraphicsWebView::pageAction() and triggerPageAction(), for
1990 consistency with QWebView.
1992 * Api/qgraphicswebview.cpp:
1993 (QGraphicsWebView::pageAction):
1994 (QGraphicsWebView::triggerPageAction):
1995 * Api/qgraphicswebview.h:
1997 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1999 Reviewed by Tor Arne Vestbø.
2001 Removed QGraphicsWebView::toHtml() after API review.
2003 That's consistent with QWebView and also based on the assumption that
2004 toHtml() is called less frequently than setHtml().
2006 * Api/qgraphicswebview.cpp:
2007 * Api/qgraphicswebview.h:
2008 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2009 (tst_QGraphicsWebView::qgraphicswebview):
2011 2009-11-04 Simon Hausmann <hausmann@webkit.org>
2013 Reviewed by Tor Arne Vestbø.
2015 Removed the interactive property of QGraphicsWebView.
2017 There are clearly use-cases for this feature, but it will require
2018 more work to make this fully work with an enum to have fine-grained
2019 control over the interactivity levels. For now it is easy to achieve
2020 in user-code what the boolean property did.
2022 * Api/qgraphicswebview.cpp:
2023 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
2024 (QGraphicsWebView::hoverMoveEvent):
2025 (QGraphicsWebView::mouseMoveEvent):
2026 (QGraphicsWebView::mousePressEvent):
2027 (QGraphicsWebView::mouseReleaseEvent):
2028 (QGraphicsWebView::mouseDoubleClickEvent):
2029 (QGraphicsWebView::keyPressEvent):
2030 (QGraphicsWebView::keyReleaseEvent):
2031 (QGraphicsWebView::dragLeaveEvent):
2032 (QGraphicsWebView::dragMoveEvent):
2033 (QGraphicsWebView::dropEvent):
2034 (QGraphicsWebView::wheelEvent):
2035 (QGraphicsWebView::inputMethodEvent):
2036 * Api/qgraphicswebview.h:
2037 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2038 (tst_QGraphicsWebView::qgraphicswebview):
2040 2009-11-04 Simon Hausmann <hausmann@webkit.org>
2042 Reviewed by Tor Arne Vestbø.
2044 Make the QGraphicsWebView constructor explicit.
2046 * Api/qgraphicswebview.h:
2048 2009-11-05 Shu Chang <Chang.Shu@nokia.com>
2050 Reviewed by Tor Arne Vestbø.
2052 Add support for Shift-PageUp and Shift-PageDown key events.
2053 https://bugs.webkit.org/show_bug.cgi?id=31166
2055 Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html
2057 * WebCoreSupport/EditorClientQt.cpp:
2058 (WebCore::EditorClientQt::handleKeyboardEvent):
2060 2009-11-05 Simon Hausmann <hausmann@webkit.org>
2062 Last Qt 4.5 build fix (*sigh*)
2064 * tests/qwebpage/tst_qwebpage.cpp:
2065 (inputMethodHints): inputMethodHints() is only used for
2066 Qt 4.6, so guard the whole function.
2068 2009-11-05 Simon Hausmann <hausmann@webkit.org>
2070 Another prospective build fix against Qt 4.5 (build bot)
2072 Don't compile & run the QGraphicsWebView portion of the
2073 input methods auto test with Qt 4.5.
2075 * tests/qwebpage/tst_qwebpage.cpp:
2076 (tst_QWebPage::inputMethods_data):
2078 (inputMethodEnabled):
2079 (tst_QWebPage::inputMethods):
2081 2009-11-05 Simon Hausmann <hausmann@webkit.org>
2083 Prospective build fix against Qt 4.5 (build bot)
2085 * Api/qgraphicswebview.cpp:
2086 (QGraphicsWebViewPrivate::setInputMethodEnabled): Guard the
2087 use of Qt 4.6 specific API with #ifdefs.
2089 2009-11-01 Simon Hausmann <hausmann@webkit.org>
2091 Reviewed by Kenneth Christiansen.
2093 [Qt] Fix enabling of input method support on QGraphicsWebView.
2094 https://bugs.webkit.org/show_bug.cgi?id=30605
2096 Instead of setting the unsupported widget attribute on the
2097 QGraphicsWidget in setInputMethodEnabled() set the
2098 ItemAcceptsInputMethod GraphicsItem flag directly.
2100 Changed the existing input method auto test to run once
2101 on a QWebView and once on a QGraphicsWebView.
2103 * Api/qgraphicswebview.cpp:
2104 (QGraphicsWebViewPrivate::setInputMethodEnabled):
2105 * tests/qwebpage/tst_qwebpage.cpp:
2106 (tst_QWebPage::inputMethods_data):
2108 (inputMethodEnabled):
2109 (tst_QWebPage::inputMethods):
2111 2009-11-04 Simon Hausmann <hausmann@webkit.org>
2113 Reviewed by Kenneth Christiansen.
2115 Added QGraphicsWebView::modified property, for consistency
2118 * Api/qgraphicswebview.cpp:
2119 (QGraphicsWebView::isModified):
2120 * Api/qgraphicswebview.h:
2121 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2122 (tst_QGraphicsWebView::qgraphicswebview):
2124 2009-11-04 Simon Hausmann <hausmann@webkit.org>
2126 Reviewed by Kenneth Christiansen.
2128 Removed status and progress properties of QGraphicsWebView.
2129 Added loadProgress and statusBarMessage signals instead,
2132 * Api/qgraphicswebview.cpp:
2133 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
2134 (QGraphicsWebView::setPage):
2135 * Api/qgraphicswebview.h:
2136 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2137 (tst_QGraphicsWebView::qgraphicswebview):
2139 2009-11-04 Yael Aharon <yael.aharon@nokia.com>
2141 Reviewed by Simon Hausmann.
2143 [Qt] REGRESSION: Allow applications to use their own QWidget bypassing QWebView.
2144 https://bugs.webkit.org/show_bug.cgi?id=30979
2146 Decouple QWebViewPrivate from QWebPageClient, and automatically create
2147 QWebPageWidgetClient whenever the view is QWidget based.
2150 (QWebPageWidgetClient::QWebPageWidgetClient):
2151 (QWebPageWidgetClient::scroll):
2152 (QWebPageWidgetClient::update):
2153 (QWebPageWidgetClient::setInputMethodEnabled):
2154 (QWebPageWidgetClient::setInputMethodHint):
2155 (QWebPageWidgetClient::cursor):
2156 (QWebPageWidgetClient::updateCursor):
2157 (QWebPageWidgetClient::palette):
2158 (QWebPageWidgetClient::screenNumber):
2159 (QWebPageWidgetClient::ownerWidget):
2160 (QWebPageWidgetClient::pluginParent):
2161 (QWebPage::setView):
2163 (QWebView::~QWebView):
2164 (QWebView::setPage):
2167 2009-11-03 Andras Becsi <becsi.andras@stud.u-szeged.hu>
2169 Reviewed by Simon Hausmann.
2171 [Qt] Fix build of unit-test after r50454.
2173 * tests/qwebpage/tst_qwebpage.cpp:
2175 2009-11-03 Simon Hausmann <hausmann@webkit.org>
2177 Reviewed by Tor Arne Vestbø.
2179 Make QWebPluginDatabase private API for now.
2181 https://bugs.webkit.org/show_bug.cgi?id=30775
2184 * Api/qwebplugindatabase.cpp:
2185 * Api/qwebplugindatabase_p.h: Renamed from WebKit/qt/Api/qwebplugindatabase.h.
2186 * Api/qwebsettings.cpp:
2187 * Api/qwebsettings.h:
2188 * QtLauncher/main.cpp:
2189 (MainWindow::setupUI):
2192 2009-11-03 Simon Hausmann <hausmann@webkit.org>
2194 Rubber-stamped by Tor Arne Vestbø.
2196 Oops, also remove the API docs of the removed networkRequestStarted() signal.
2200 2009-11-03 Simon Hausmann <hausmann@webkit.org>
2202 Reviewed by Tor Arne Vestbø.
2204 Replace the QWebPage::networkRequestStarted() signal with the originatingObject
2205 property set to the QWebFrame that belongs to the request.
2207 https://bugs.webkit.org/show_bug.cgi?id=29975
2210 * WebCoreSupport/FrameLoaderClientQt.cpp:
2211 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2212 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2213 (WebCore::FrameLoaderClientQt::startDownload):
2214 * tests/qwebpage/tst_qwebpage.cpp:
2215 (tst_QWebPage::loadFinished):
2216 (TestNetworkManager::createRequest):
2217 (tst_QWebPage::originatingObjectInNetworkRequests):
2219 2009-11-02 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2221 Reviewed by Adam Barth.
2225 The QWebView should not crash if the stop() method is called from
2226 a function triggered by the loadProgress signal.
2228 A null pointer protection was added in the ProgressTracker::incrementProgress.
2230 New autotest was created.
2232 https://bugs.webkit.org/show_bug.cgi?id=29425
2234 * tests/qwebview/tst_qwebview.cpp:
2235 (WebViewCrashTest::WebViewCrashTest):
2236 (WebViewCrashTest::loading):
2237 (tst_QWebView::crashTests):
2239 2009-11-01 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2241 Reviewed by Eric Seidel.
2243 Turn on warnings for QtWebKit for gcc
2244 https://bugs.webkit.org/show_bug.cgi?id=30958
2247 (QWebPagePrivate::QWebPagePrivate): Reorder initialization list
2248 to fix compiler warnings.
2249 * WebCoreSupport/FrameLoaderClientQt.cpp:
2250 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto.
2252 2009-10-30 Evan Stade <estade@chromium.org>
2254 Reviewed by David Levin.
2256 Notify the chrome when the focused node has changed.
2257 https://bugs.webkit.org/show_bug.cgi?id=30832
2259 Added stub implementation for new ChromeClient function.
2261 * WebCoreSupport/ChromeClientQt.cpp:
2262 (WebCore::ChromeClientQt::focusedNodeChanged):
2263 * WebCoreSupport/ChromeClientQt.h:
2265 2009-10-30 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2267 Reviewed by Tor Arne Vestbø.
2269 [Qt] Remove the QWebInspector::windowTitleChanged signal,
2270 QEvent::WindowTitleChange can be used to achieve the same.
2271 https://bugs.webkit.org/show_bug.cgi?id=30927
2273 * Api/qwebinspector.cpp:
2274 * Api/qwebinspector.h:
2275 * WebCoreSupport/InspectorClientQt.cpp:
2276 (WebCore::InspectorClientQt::updateWindowTitle):
2278 2009-10-29 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2280 Reviewed by Tor Arne Vestbø.
2282 [Qt] Implement DELETE HTTP method for XmlHttpRequest
2283 https://bugs.webkit.org/show_bug.cgi?id=30894
2285 No new tests as this functionality is already tested by the
2286 xmlhttprequest LayoutTests. As this patch depends on an unreleased
2287 version of the dependent QtNetwork library and the tests will be
2288 enabled later once the dependent library is released (and the
2289 buildbot is updated).
2291 * Api/qwebframe.cpp:
2294 2009-10-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
2296 Reviewed by Tor Arne Vestbø.
2298 Remove QWebView::guessUrlFromString() and replace its use
2299 with the new QUrl::fromUserInput() if using Qt 4.6 or newer.
2303 * QGVLauncher/main.cpp:
2305 (WebPage::applyProxy):
2307 * QtLauncher/main.cpp:
2309 (MainWindow::MainWindow):
2310 (MainWindow::changeLocation):
2311 * tests/qwebview/tst_qwebview.cpp:
2313 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
2315 Reviewed by Tor Arne Vestbø.
2317 Serialize directly to the stream, and not first to an QByteArray,
2318 that is later serialized. That is slower and also uses more bytes.
2320 * Api/qwebhistory.cpp:
2324 2009-10-28 Shinichiro Hamaji <hamaji@chromium.org>
2326 Reviewed by Eric Seidel.
2328 [Qt] WebFrame::counterValueForElementById must not be exposed
2329 https://bugs.webkit.org/show_bug.cgi?id=30882
2331 * Api/qwebframe.cpp:
2332 (qt_drt_counterValueForElementById):
2335 2009-10-27 Shinichiro Hamaji <hamaji@chromium.org>
2337 Reviewed by Darin Adler.
2339 Provide a way to get counter values with layoutTestContoller
2340 https://bugs.webkit.org/show_bug.cgi?id=30555
2342 * Api/qwebframe.cpp:
2343 (QWebFrame::counterValueForElementById):
2344 (QWebHitTestResult::frame):
2347 2009-10-28 Antonio Gomes <tonikitoo@webkit.org>
2349 Pushing missing WebKit/qt/tests/qwebframe/resources/ dir from bug 29248.
2351 [Qt] [API] Make it possible to have 'invisible' loads
2352 https://bugs.webkit.org/show_bug.cgi?id=29248
2354 * tests/qwebframe/resources/image2.png: Copied from WebKit/qt/tests/qwebelement/image.png.
2356 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
2358 Reviewed by Tor Arne Vestbø.
2360 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
2361 https://bugs.webkit.org/show_bug.cgi?id=30710
2363 Make the versioning internal and enforce it in the WebCore
2364 part. Adjust the comments, as well as remove now dead code.
2366 * Api/qwebhistory.cpp:
2369 * Api/qwebhistory.h:
2371 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
2373 Reviewed by Holger Freyther.
2375 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
2376 https://bugs.webkit.org/show_bug.cgi?id=30710
2378 Remove the QWebHistory::saveState() and ::restoreState() as
2379 they are inconsistent with the Qt API.
2381 Update unittests to reflect the change.
2383 * Api/qwebhistory.cpp:
2386 * Api/qwebhistory.h:
2387 * tests/qwebhistory/tst_qwebhistory.cpp:
2390 (tst_QWebHistory::saveAndRestore_crash_1):
2391 (tst_QWebHistory::saveAndRestore_crash_2):
2392 (tst_QWebHistory::saveAndRestore_crash_3):
2393 (tst_QWebHistory::clear):
2395 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
2397 Reviewed by Holger Freyther.
2399 Complementary fix to bug 30779.
2401 By mistake I used QWeakPointer's toStrongRef() method which docs
2402 explicitly say to not be used in this situation (when the tracked
2403 pointer is devired from QObject). Instead QWeakPointer's data()
2409 2009-10-27 Holger Hans Peter Freyther <zecke@selfish.org>
2411 Reviewed by Simon Fraser.
2413 Change HitTestResult methods to use (3d) transformation aware methods
2414 https://bugs.webkit.org/show_bug.cgi?id=27347
2416 The HitTestResult::boundingBox method was removed. The
2417 RenderObject must be used directly. In contrast to the
2418 old HitTestResult::boundingBox method this code must use
2419 a (3d) transformation aware method to not run into an
2420 assert in SVGRenderBase::mapLocalToContainer.
2422 * Api/qwebframe.cpp:
2423 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
2425 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
2427 Rubberstamped by Oliver Hunt.
2429 Change two methods to be internal for DRT use only.
2431 Part of [Qt] Review all new API in Qt 4.6
2432 https://bugs.webkit.org/show_bug.cgi?id=29843#c11
2434 * Api/qwebsecurityorigin.cpp:
2435 (qt_drt_whiteListAccessFromOrigin):
2436 (qt_drt_resetOriginAccessWhiteLists):
2437 (QWebSecurityOrigin::localSchemes):
2438 * Api/qwebsecurityorigin.h:
2440 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
2442 Reviewed by Tor Arne Vestbø.
2444 Make sure that initiating a rotation while rotating won't make
2445 it end up at rotation positions that are not a multiply of
2448 * QGVLauncher/main.cpp:
2449 (MainView::animatedFlip):
2451 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
2453 Unreviewed Qt build fix.
2455 Update the tests as well to the new API change.
2457 * tests/qwebelement/tst_qwebelement.cpp:
2458 (tst_QWebElement::clear):
2460 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
2462 Rubberstamped by Tor Arne Vestbø.
2464 [Qt] QWebElement::removeChildren() should be
2465 QWebElement::removeAllChildren()
2466 https://bugs.webkit.org/show_bug.cgi?id=30630
2468 * Api/qwebelement.cpp:
2469 (QWebElement::removeAllChildren):
2470 * Api/qwebelement.h:
2472 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
2474 Reviewed by Antti Koivisto and Holger Freyther.
2476 Make QWebPagePrivate's (QWidget) view to be a QWeakPointer.
2477 https://bugs.webkit.org/show_bug.cgi?id=30779
2479 The fact that it was been set from external objects of qwebpage
2480 and not being deleted internally can lead to dangling references.
2482 * Api/qgraphicswebview.cpp:
2483 (QGraphicsWebView::~QGraphicsWebView):
2485 (QWebPagePrivate::QWebPagePrivate):
2486 (QWebPagePrivate::createContextMenu):
2487 (QWebPagePrivate::handleSoftwareInputPanel):
2488 (QWebPagePrivate::keyPressEvent):
2489 (QWebPage::setView):
2491 (QWebPage::javaScriptAlert):
2492 (QWebPage::javaScriptConfirm):
2493 (QWebPage::javaScriptPrompt):
2494 (QWebPage::shouldInterruptJavaScript):
2495 (QWebPage::createWindow):
2496 (QWebPage::extension):
2497 (QWebPage::chooseFile):
2498 (QWebPage::userAgentForUrl):
2501 (QWebView::~QWebView):
2503 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
2505 Unreviewed documentation fix from David Boddie (Qt Doc Team)
2507 Removes the check around the RenderHints property documentation
2508 that was clearly added to synchronize the source and header files
2509 when the #if !defined(Q_OS_SYMBIAN) guards was added to the
2512 The documentation has also been updated to ensure that Symbian
2513 users know that there is no actual RenderHints property on their
2518 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
2520 Unreviewed documentation fix from David Boddie (Qt Doc Team)
2522 Ensure that qdoc will always see the RenderHints property.
2524 The property was only defined in the header file if the Q_OS_SYMBIAN
2525 symbol was not defined, resulting in the property not showing up
2526 in the Qt documentation just because one platform doesn't support it.
2528 A follow up commit will improve the documentation for the property
2529 and note that it is not supported on the Symbiam platform.
2533 2009-10-26 Benjamin Poulain <benjamin.poulain@nokia.com>
2535 Reviewed by Tor Arne Vestbø.
2537 [Qt] Reintroduce QWebElementCollection
2539 Revert the patch that has replaced QWebElementCollection
2540 with QList<QWebElement>. Update the tests accordingly.
2542 Remove the constness of the return type of QWebElement operator[].
2544 https://bugs.webkit.org/show_bug.cgi?id=30767
2546 * Api/qwebelement.cpp:
2547 (QWebElement::findAll):
2548 (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
2549 (QWebElementCollectionPrivate::create):
2550 (QWebElementCollection::QWebElementCollection):
2551 (QWebElementCollection::operator=):
2552 (QWebElementCollection::~QWebElementCollection):
2553 (QWebElementCollection::operator+):
2554 (QWebElementCollection::append):
2555 (QWebElementCollection::count):
2556 (QWebElementCollection::at):
2557 (QWebElementCollection::toList):
2558 * Api/qwebelement.h:
2559 (const_iterator::begin):
2560 (const_iterator::end):
2561 (const_iterator::operator[]):
2562 * Api/qwebframe.cpp:
2563 (QWebFrame::findAllElements):
2565 * QtLauncher/main.cpp:
2566 (MainWindow::selectElements):
2567 * tests/qwebelement/tst_qwebelement.cpp:
2568 (tst_QWebElement::simpleCollection):
2569 (tst_QWebElement::iteration):
2570 (tst_QWebElement::emptyCollection):
2571 (tst_QWebElement::appendCollection):
2572 (tst_QWebElement::nullSelect):
2573 (tst_QWebElement::hasSetFocus):
2574 (tst_QWebElement::render):
2575 * tests/qwebpage/tst_qwebpage.cpp:
2576 (tst_QWebPage::inputMethods):
2578 2009-10-24 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2580 Reviewed by Holger Freyther.
2582 [Qt] [Symbian] Set the capability and memory required to run QtWebKit for Symbian
2583 https://bugs.webkit.org/show_bug.cgi?id=30476
2585 Assign ReadUserData WriteUserData NetworkServices Symbian capabilities
2586 to all QtWebkit executables.
2588 * QGVLauncher/QGVLauncher.pro:
2589 * QtLauncher/QtLauncher.pro:
2590 * tests/benchmarks/loading/tst_loading.pro:
2591 * tests/benchmarks/painting/tst_painting.pro:
2592 * tests/qgraphicswebview/qgraphicswebview.pro:
2593 * tests/qwebelement/qwebelement.pro:
2594 * tests/qwebframe/qwebframe.pro:
2595 * tests/qwebhistory/qwebhistory.pro:
2596 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
2597 * tests/qwebpage/qwebpage.pro:
2598 * tests/qwebplugindatabase/qwebplugindatabase.pro:
2599 * tests/qwebview/qwebview.pro:
2601 2009-10-22 Gavin Barraclough <barraclough@apple.com>
2603 Reviewed by NOBODY (speculative build fix - qt is currently already broken!)
2604 Build fix following bug #30696.
2606 * Api/qwebelement.cpp:
2607 (setupScriptContext):
2608 * Api/qwebframe.cpp:
2609 (QWebFrame::evaluateJavaScript):
2611 2009-10-22 Shu Chang <Chang.Shu@nokia.com>
2613 Reviewed by Eric Seidel.
2615 [Qt] Enable track visited links in QWebPage
2616 https://bugs.webkit.org/show_bug.cgi?id=30574
2618 Test: fast/history/clicked-link-is-visited.html
2621 (QWebPagePrivate::QWebPagePrivate):
2623 2009-10-22 Girish Ramakrishnan <girish@forwardbias.in>
2625 Reviewed by Eric Seidel.
2627 [Qt] Add Print Shortcut to QtLauncher
2629 https://bugs.webkit.org/show_bug.cgi?id=30682
2631 * QtLauncher/main.cpp:
2632 (MainWindow::setupUI):
2634 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
2636 Rubberstamped by Tor Arne Vestbø.
2638 Code standarlization for QGVLauncher.
2640 1) Made member initilization lists in constructors
2642 2) Made applyProxy method inline as all other methods in
2645 * QGVLauncher/main.cpp:
2647 (WebPage::applyProxy):
2648 (MainView::MainView):
2649 (MainWindow::MainWindow):
2652 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
2654 Reviewed by Tor Arne Vestbø.
2656 Add a Y-Axis rotation to QGVLauncher.
2658 It uses the QStateMachine API from Qt 4.6.
2660 * QGVLauncher/main.cpp:
2662 (WebView::setYRotation):
2663 (WebView::yRotation):
2665 (MainView::animatedYFlip):
2666 (SharedScene::SharedScene):
2667 (SharedScene::webView):
2669 (MainWindow::animatedYFlip):
2670 (MainWindow::buildUI):
2672 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
2674 Reviewed By Adam Barth.
2676 Add some actions to the menu for cursor debugging.
2678 GraphicsView based launcher only.
2680 * QGVLauncher/main.cpp:
2681 (MainView::setWaitCursor):
2682 (MainView::resetCursor):
2684 (MainWindow::setWaitCursor):
2685 (MainWindow::resetCursor):
2686 (MainWindow::buildUI):
2688 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
2690 Rubberstamped by Adam Barth.
2692 Remove clipRenderToViewport as agreed upon in
2693 https://bugs.webkit.org/show_bug.cgi?id=29843
2695 * Api/qwebframe.cpp:
2697 * Api/qwebframe_p.h:
2698 (QWebFramePrivate::QWebFramePrivate):
2700 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
2702 Reviewed by Adam Barth.
2704 Update the tests to test the new render functionality, and take
2705 into consideration that render() clips to the frame itself as well
2708 QWebFrame::render() now always clips, so the old tests were bogus.
2710 Rendering pure contents (no scrollbars etc) without clipping can now
2711 be accomplished using QWebFrame::documentElement()->render(...)
2713 * Api/qwebframe.cpp:
2715 * Api/qwebframe_p.h:
2716 (QWebFramePrivate::QWebFramePrivate):
2717 * tests/qwebframe/tst_qwebframe.cpp:
2719 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
2721 Rubberstamped by Adam Barth.
2723 As we do not support rendering a QWebFrame without it being clipped
2724 the the frame as well as the viewport, we now set the viewport size
2725 to the size of the contents.
2727 Rendering pure contents (no scrollbars etc) without clipping can be
2728 acomplished using QWebFrame::documentElement()->render(...)
2730 * tests/qwebelement/tst_qwebelement.cpp:
2731 (tst_QWebElement::render):
2733 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
2735 Reviewed by Tor Arne Vestbø.
2737 Add menu item to dump the plugin list to the console,
2738 which can be handy for debugging.
2740 * QtLauncher/main.cpp:
2741 (MainWindow::dumpPlugins):
2742 (MainWindow::setupUI):
2744 2009-10-19 Kenneth Rohde Christiansen <kenneth@webkit.org>
2746 Reviewed by Tor Arne Vestbø.
2748 Introduce new render method on QWebFrame, which supports specifying
2749 which layers to render (scrollbars, contents, pan-icon).
2751 * Api/qwebframe.cpp:
2752 (QWebFramePrivate::renderPrivate):
2753 (QWebFrame::render):
2755 * Api/qwebframe_p.h:
2757 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
2759 Reviewed by Ariya Hidayat.
2761 [Qt] Infinite loop (leading to crash) when setting cursor in QGraphicsWebView
2762 https://bugs.webkit.org/show_bug.cgi?id=30549
2764 Patch reimplements QGraphicsItem's itemChange method, and make
2765 CursorChange event to be emitted after cursor has already been
2768 QWidget::setCursor send the event just after it sets the cursor,
2769 then patch makes both behaviors compatible.
2771 * Api/qgraphicswebview.cpp:
2772 (QGraphicsWebView::itemChange):
2773 * Api/qgraphicswebview.h:
2775 2009-10-19 Nate Chapin <japhet@chromium.org>
2777 Unreviewed, build fix.
2779 Update call to FrameLoader::loadFrameRequest().
2782 (QWebPage::triggerAction):
2784 2009-10-19 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
2786 Reviewed by Ariya Hidayat.
2788 Add QWebElement::render API which allows rendering of single
2791 * Api/qwebelement.cpp:
2792 (QWebElement::render):
2793 * Api/qwebelement.h:
2794 * tests/qwebelement/tst_qwebelement.cpp:
2795 (tst_QWebElement::render):
2796 * tests/qwebelement/qwebelement.qrc:
2797 * tests/qwebelement/image.png: Added.
2799 2009-10-19 Markus Goetz <Markus.Goetz@nokia.com>
2801 Reviewed by Ariya Hidayat.
2803 QWebPage: Doc: setNetworkAccessManager should only be called once.
2807 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
2809 Reviewed by Tor Arne.
2811 Wrong ifdef combination in QGraphicsWebView's event method.
2813 * Api/qgraphicswebview.cpp:
2814 (QGraphicsWebView::event):
2816 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
2818 Reviewed by Holger Freyther.
2820 [Qt] Windowed Plugins: Don't crash when client is 0.
2822 Client is 0 when we use QWebPage without a QWebView or QGraphicsWebView.
2823 In addition, setFrameRect()/updatePluginWidget() is called even if the
2824 plugin was not succesfully loaded. updatePluginWidget() updates the
2825 window rect which is, in theory, useful to draw something that indicates
2826 that we didn't load successfully.
2828 So, a status check is added to setNPWindowIfNeeded.
2830 https://bugs.webkit.org/show_bug.cgi?id=30380
2832 * tests/qwebpage/qwebpage.pro:
2833 * tests/qwebpage/tst_qwebpage.cpp:
2835 (tst_QWebPage::screenshot_data):
2836 (tst_QWebPage::screenshot):
2837 * tests/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf.
2839 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
2841 Reviewed by Holger Freyther.
2843 [Qt] Windowed Plugins: Fix crash when QWebPage is deleted after QWebView.
2845 Fixes various sources of crashes:
2846 1. The PluginContainer is a child of QWebView. When the view gets deleted,
2847 the PluginView is not notified about the deletion of PluginContainer.
2848 2. QWebView destructor does not set client to 0.
2849 3. Sometimes pending paint events are sent after the plugin has died, so add
2850 a check in PluginView::setNPWindowIfNeeded.
2852 https://bugs.webkit.org/show_bug.cgi?id=30354
2855 (QWebView::~QWebView):
2856 * tests/qwebview/qwebview.pro:
2857 * tests/qwebview/tst_qwebview.cpp:
2858 (tst_QWebView::reusePage_data):
2859 (tst_QWebView::reusePage):
2861 2009-10-19 Jakob Truelsen <antialize@gmail.com>
2863 Reviewed by Adam Barth.
2865 https://bugs.webkit.org/show_bug.cgi?id=29042
2867 Allow one to costumize the minimal and maximal shrink factors,
2868 Added methods setPrintingMinimumShrinkFactor, printingMinimumShrinkFactor,
2869 setPrintingMaximumShrinkFactor, printingMaximumShrinkFactor to QWebSettings.
2872 * Api/qwebsettings.cpp:
2873 (QWebSettingsPrivate::apply):
2874 (QWebSettings::QWebSettings):
2875 (QWebSettings::setPrintingMinimumShrinkFactor):
2876 (QWebSettings::printingMinimumShrinkFactor):
2877 (QWebSettings::setPrintingMaximumShrinkFactor):
2878 (QWebSettings::printingMaximumShrinkFactor):
2879 * Api/qwebsettings.h:
2881 2009-10-18 Kenneth Rohde Christiansen <kenneth@webkit.org>
2883 Reviewed by Simon Hausmann.
2885 Rename fixedContentsSize property to preferredContentsSize as
2886 agreed upon with Simon Hausmann and Matthias Ettrich.
2889 (QWebPage::preferredContentsSize):
2890 (QWebPage::setPreferredContentsSize):
2892 * WebCoreSupport/FrameLoaderClientQt.cpp:
2893 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2895 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
2897 Reviewed by Simon Hausmann.
2899 [Qt] QGLauncher leaks WebPage object
2900 https://bugs.webkit.org/show_bug.cgi?id=30465
2902 Make 'SharedScene' to own 'WebPage' reference and delete it at its destructor.
2907 * QGVLauncher/main.cpp:
2908 (SharedScene::SharedScene):
2909 (SharedScene::~SharedScene):
2911 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
2913 Reviewed by Simon Hausmann.
2915 [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash
2916 https://bugs.webkit.org/show_bug.cgi?id=30459
2918 Remove all setView(ev->widget()) calls in QWebPage and QGWV event handling methods,
2919 since QWebPageClient would do the trick.
2921 * Api/qgraphicswebview.cpp:
2922 (QGraphicsWebView::hoverMoveEvent):
2924 (QWebPagePrivate::mouseMoveEvent):
2925 (QWebPagePrivate::mousePressEvent):
2926 (QWebPagePrivate::mouseDoubleClickEvent):
2927 (QWebPagePrivate::mouseReleaseEvent):
2928 (QWebPagePrivate::wheelEvent):
2929 (QWebPagePrivate::dragEnterEvent):
2930 (QWebPagePrivate::dragLeaveEvent):
2931 (QWebPagePrivate::dragMoveEvent):
2933 2009-10-16 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2935 Pull out r49676 as it caused build breakges on Symbian
2939 2009-10-16 Yael Aharon <yael.aharon@nokia.com>
2941 Reviewed by Tor Arne Vestbø.
2943 [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
2944 https://bugs.webkit.org/show_bug.cgi?id=30179
2946 Added "c" style static methods for the application to hook up for
2947 receiving notifications when a plugin is created or destroyed.
2951 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
2953 Rubberstamped by Tor Arne.
2955 Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*).
2957 * QGVLauncher/main.cpp:
2960 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
2962 Reviewed by Tor Arne.
2964 [Qt] QGLauncher crashes while closing a window
2965 https://bugs.webkit.org/show_bug.cgi?id=30385
2967 Set page's pageClient reference to '0' at QGWV deletion.
2969 * Api/qgraphicswebview.cpp:
2970 (QGraphicsWebView::~QGraphicsWebView):
2971 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2973 (WebPage::aborting):
2974 (tst_QGraphicsWebView::crashOnViewlessWebPages):
2976 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
2978 Reviewed by Simon Hausmann.
2980 [Qt] Make context menu to work in QGraphicsWebView
2981 https://bugs.webkit.org/show_bug.cgi?id=30336
2983 * Api/qgraphicswebview.cpp:
2984 (QGraphicsWebView::event):
2986 2009-10-13 Girish Ramakrishnan <girish@forwardbias.in>
2988 Reviewed by Simon Hausmann.
2990 [Qt] Plugins : Remove all traces of winId. Use ownerWidget() instead.
2992 This is a bug for two reasons:
2993 1. Everytime we use winId(), we end up creating a native widget. This causes an
2994 unnecessary copy of contents from the backing store to the native widget.
2995 2. Neither windowed nor windowless plugins require the winId of the QWebView or
2998 Introduce ownerWidget() which returns a QWidget * without creating a native widget
2999 (as opposed to QWidget::find(winId)).
3001 https://bugs.webkit.org/show_bug.cgi?id=30170
3003 * Api/qgraphicswebview.cpp:
3004 (QGraphicsWebViewPrivate::ownerWidget):
3006 (QWebViewPrivate::ownerWidget):
3008 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
3010 Reviewed by Simon Hausmann.
3012 [Qt] Add some initial autotests for QWebPage's ErrorPageExtention
3013 https://bugs.webkit.org/show_bug.cgi?id=30296
3015 * tests/qwebpage/tst_qwebpage.cpp:
3016 (ErrorPage::ErrorPage):
3017 (ErrorPage::supportsExtension):
3018 (ErrorPage::extension):
3019 (tst_QWebPage::errorPageExtension):
3021 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
3023 Reviewed by Simon Hausmann.
3025 [Qt] better handle possible edge cases on qwebframe::requestedUrl use
3026 https://bugs.webkit.org/show_bug.cgi?id=30216
3028 QWebFrame::requestedUrl can be called at any time during the load
3031 * An error handling (whereas an alternate error page for unsuccessful
3033 * A ssl error exception call;
3034 * During navigation notifications/callbacks (titleChanged, urlChanged,
3035 progresses, addHistoryEntry, etc);
3038 This patch makes requestedUrl calls to fallback to FrameLoaderClient
3039 m_loadError's failingURL when an error has occurred, unless it is
3042 Also, m_loadError is now being reset at each the main frame starts a
3043 load, in order to avoid previous load errors footprints.
3045 * Api/qwebframe.cpp:
3046 (QWebFrame::requestedUrl):
3047 * WebCoreSupport/FrameLoaderClientQt.cpp:
3048 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
3050 2009-10-12 Jakub Wieczorek <faw217@gmail.com>
3052 Reviewed by Simon Hausmann.
3054 [Qt] Missing default value for the default text encoding.
3055 https://bugs.webkit.org/show_bug.cgi?id=30311
3057 QtWebKit has provided a default, hardcoded value for default charset but since
3058 the addition of the defaultTextEncoding setting in QWebSettings, that hardcoded
3059 value has had no effect.
3061 Added a regression test and unskipped fast/dom/Document/document-charset.html,
3062 which is passing now.
3065 (QWebPagePrivate::QWebPagePrivate):
3066 * Api/qwebsettings.cpp:
3067 (QWebSettings::QWebSettings):
3068 * tests/qwebpage/tst_qwebpage.cpp:
3069 (tst_QWebPage::defaultTextEncoding):
3071 2009-10-12 Kenneth Rohde Christiansen <kenneth@webkit.org>
3073 Reviewed by Simon Hausmann.
3075 Implement the new palette() methods on the page clients
3077 * Api/qgraphicswebview.cpp:
3078 (QGraphicsWebViewPrivate::palette):
3080 (QWebViewPrivate::palette):
3082 2009-10-12 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3084 Reviewed by Simon Hausmann.
3086 QWebPage's createViewlessPlugin autotest crash fix.
3088 It is possible that plugins that are QWidgets or QGraphicsWidgets
3089 are created before a view has been assigned to a QWebPage. The
3090 plug-ins won't be fully functional, as by design, they should
3091 visualise something, but they won't crash and will stay in memory.
3093 An autotest that covers this use-case, is included.
3095 https://bugs.webkit.org/show_bug.cgi?id=30118
3097 * WebCoreSupport/FrameLoaderClientQt.cpp:
3098 (WebCore::FrameLoaderClientQt::createPlugin):
3099 * tests/qwebpage/tst_qwebpage.cpp:
3100 (PluginTrackedPageWidget::PluginTrackedPageWidget):
3101 (PluginTrackedPageGraphicsWidget::PluginTrackedPageGraphicsWidget):
3102 (PluginTrackedPageGraphicsWidget::createPlugin):
3103 (tst_QWebPage::destroyPlugin):
3104 (tst_QWebPage::createViewlessPlugin):
3106 2009-10-09 Joe Ligman <joseph.ligman@nokia.com>
3108 Reviewed by Simon Hausmann.
3110 Sets Qt::WA_InputMethodEnabled and Qt::ImhHiddenText for password fields in EditorClientQt
3111 setInputMethodState. This change is needed so widgets such as the s60 software
3112 input panel can receive input method events for password fields.
3113 It's up to the Qt platform to determine which widget will receive input method
3114 events when these flags are set.
3115 Also added implementation for setInputMethodEnabled and setInputMethodHint
3116 to QGraphicsWebViewPrivate and QWebViewPrivate. This change removes the direct
3117 dependency on QWebView and uses QWebPageClient.
3118 Added autotest to tst_qwebpage.cpp
3119 https://bugs.webkit.org/show_bug.cgi?id=30023
3121 * Api/qgraphicswebview.cpp:
3122 (QGraphicsWebViewPrivate::setInputMethodEnabled):
3123 (QGraphicsWebViewPrivate::setInputMethodHint):
3125 (QWebViewPrivate::setInputMethodEnabled):
3126 (QWebViewPrivate::setInputMethodHint):
3127 * WebCoreSupport/EditorClientQt.cpp:
3128 (WebCore::EditorClientQt::setInputMethodState):
3129 * tests/qwebpage/tst_qwebpage.cpp:
3130 (tst_QWebPage::inputMethods):
3132 2009-10-08 Adam Barth <abarth@webkit.org>
3134 Reviewed by Eric Seidel.
3136 Move executeScript from FrameLoader to ScriptController
3137 https://bugs.webkit.org/show_bug.cgi?id=30200
3141 * Api/qwebframe.cpp:
3142 (QWebFrame::evaluateJavaScript):
3144 2009-10-08 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3146 Reviewed by Simon Hausmann.
3148 Part of testOptionalJSObjects autotest was marked as "expect to fail".
3150 Two places in tst_QWebPage::testOptionalJSObjects were marked as
3151 expected to fail. The problem concern checking if a feature is enabled
3152 or disabled. According to discussion on webkit dev mailing list
3153 a disabled feature should be invisible from java script level, but
3154 there are exceptions from the rule. So we decided to disable the test
3157 https://bugs.webkit.org/show_bug.cgi?id=29867
3159 * tests/qwebpage/tst_qwebpage.cpp:
3160 (tst_QWebPage::testOptionalJSObjects):
3162 2009-10-07 Adam Barth <abarth@webkit.org>
3164 Reviewed by Darin Adler.
3166 Factor PolicyChecker out of FrameLoader
3167 https://bugs.webkit.org/show_bug.cgi?id=30155
3169 Move the policy callback to the policy object.
3171 * WebCoreSupport/FrameLoaderClientQt.cpp:
3172 (WebCore::FrameLoaderClientQt::callPolicyFunction):
3174 2009-10-07 Antonio Gomes <tonikitoo@webkit.org>
3176 Reviewed by Simon Hausmann.
3178 [Qt] Get rid of useless loadFailed signal in QGraphicsWebView
3179 https://bugs.webkit.org/show_bug.cgi?id=30166
3181 * Api/qgraphicswebview.cpp:
3182 (QGraphicsWebViewPrivate::_q_doLoadFinished):
3183 * Api/qgraphicswebview.h:
3184 * QGVLauncher/main.cpp:
3186 (MainWindow::loadFinished):
3188 2009-10-07 Girish Ramakrishnan <girish@forwardbias.in>
3190 Reviewed by Simon Hausmann.
3192 Add a simple rotation effect to QGVLauncher
3194 https://bugs.webkit.org/show_bug.cgi?id=30162
3196 * QGVLauncher/main.cpp:
3197 (MainView::animatedFlip):
3198 (MainWindow::animatedFlip):
3199 (MainWindow::buildUI):
3201 2009-10-07 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3203 Reviewed by Simon Hausmann.
3205 Doc: Document HTML and status as properties.
3207 * Api/qgraphicswebview.cpp:
3209 2009-10-07 Martin Smith <msmith@trolltech.com>
3211 Reviewed by Simon Hausmann.
3213 Fix qdoc warning about disabled renderHints property
3219 2009-10-06 Adam Barth <abarth@webkit.org>
3221 Reviewed by Eric Seidel.
3223 Move setLocalLoadPolicy and friends to SecurityOrigin
3224 https://bugs.webkit.org/show_bug.cgi?id=30110
3229 (QWebPagePrivate::QWebPagePrivate):
3231 2009-10-06 Benjamin C Meyer <bmeyer@rim.com>
3233 Reviewed by Ariya Hidayat.
3235 When the drag data contains an image set it on the QDrag so it will be visible to the user.
3237 * WebCoreSupport/DragClientQt.cpp:
3238 (WebCore::DragClientQt::startDrag):
3240 2009-10-06 Pavel Feldman <pfeldman@chromium.org>
3242 Reviewed by Timothy Hatcher.
3244 Web Inspector: close inspector client view on
3245 InspectorController::close API call.
3247 In order to run batch web inspector layout tests (and not affect
3248 subsequent tests) we should close inspector client's view upon
3249 InspectorController::close API call.
3251 https://bugs.webkit.org/show_bug.cgi?id=30009
3253 * WebCoreSupport/InspectorClientQt.cpp:
3254 (WebCore::InspectorClientQt::createPage):
3256 2009-10-06 Janne Koskinen <janne.p.koskinen@digia.com>
3258 Reviewed by Simon Hausmann.
3260 [Qt] don't enable input methods on Symbian by default.
3261 https://bugs.webkit.org/show_bug.cgi?id=30117
3263 If input methods are enabled Symbian FEP will be launched on every
3264 pointer event making webpage navigation impossible with QWebView.
3267 (QWebView::QWebView):
3269 2009-10-05 Holger Hans Peter Freyther <zecke@selfish.org>
3271 Reviewed by Simon Hausmann.
3273 QtLauncher: print the number of loaded urls
3275 When using the -r mode print the number of URLs loaded so far. This
3276 is extremly useful when opening the same URL over and over again and
3277 one wants to see the progress.
3279 * QtLauncher/main.cpp:
3280 (URLLoader::URLLoader):
3281 (URLLoader::loadNext):
3283 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
3285 Reviewed by Simon Hausmann.
3287 Add screenshot option to menubar
3289 https://bugs.webkit.org/show_bug.cgi?id=30067
3291 * QtLauncher/main.cpp:
3292 (MainWindow::screenshot):
3293 (MainWindow::setupUI):
3295 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
3297 Reviewed by Simon Hausmann.
3299 Setting the env QTLAUNCHER_USE_ARGB_VISUALS makes Qt use WA_TranslucentWindow.
3301 https://bugs.webkit.org/show_bug.cgi?id=30068
3303 * QtLauncher/main.cpp:
3304 (MainWindow::MainWindow):
3306 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
3308 Rubberstamped by Simon Hausmann.
3310 Add documentation to the ErrorPageExtension.
3314 2009-10-02 Yael Aharon <yael.aharon@nokia.com>
3316 Reviewed by Simon Hausmann.
3318 [Qt] Inform the application when a new request is created
3319 https://bugs.webkit.org/show_bug.cgi?id=29975
3321 Add a signal to QWebPage, to inform the application when a request is created.
3325 * tests/qwebpage/tst_qwebpage.cpp:
3326 (tst_QWebPage::loadFinished):
3328 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
3330 Reviewed by Simon Hausmann.
3332 ErrorPageExtension: Add a pointer to the QWebFrame that had
3336 * WebCoreSupport/FrameLoaderClientQt.cpp:
3337 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
3339 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
3341 Reviewed by Tor Arne Vestbø.
3343 Do not empty the offline web appcache when clearing
3344 memory caches. That one is not in memory, but stored
3347 * Api/qwebsettings.cpp:
3348 (QWebSettings::clearMemoryCaches):
3350 2009-10-05 J-P Nurmi <jpnurmi@gmail.com>
3352 Reviewed by Simon Hausmann.
3354 Added QGraphicsWidget-plugins support to FrameLoaderClientQt.
3356 https://bugs.webkit.org/show_bug.cgi?id=29710
3358 * Api/qgraphicswebview.cpp:
3359 (QGraphicsWebViewPrivate::pluginParent):
3361 (QWebViewPrivate::pluginParent):
3362 * WebCoreSupport/FrameLoaderClientQt.cpp:
3364 (WebCore::FrameLoaderClientQt::createPlugin):
3366 2009-10-03 Adam Barth <abarth@webkit.org>
3368 Unreview build fix. I wish I had a try server...
3371 (QWebPagePrivate::updateAction):
3373 2009-10-02 Norbert Leser <norbert.leser@nokia.com>
3375 Reviewed by Simon Hausmann.
3377 Conditionally guard cursor code (cursor and updateCursor functions) with !QT_NO_CURSOR.
3378 Otherwise, it is inconsistent with class declaration of QCursor.
3380 * Api/qgraphicswebview.cpp:
3383 2009-10-02 Prasanth Ullattil <prasanth.ullattil@nokia.com>
3385 Reviewed by Simon Hausmann.
3387 Fix compiler warnings about unused function arguments.
3389 * Api/qwebframe.cpp:
3390 (QWebFrame::scrollBarMinimum):
3392 (QWebPagePrivate::focusInEvent):
3393 (QWebPagePrivate::focusOutEvent):
3394 (QWebPagePrivate::leaveEvent):
3395 (QWebPage::javaScriptAlert):
3396 (QWebPage::javaScriptConfirm):
3397 (QWebPage::javaScriptPrompt):
3398 (QWebPage::triggerAction):
3399 (QWebPage::acceptNavigationRequest):
3400 (QWebPage::chooseFile):
3401 * WebCoreSupport/ChromeClientQt.cpp:
3402 (WebCore::ChromeClientQt::repaint):
3403 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3404 (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
3405 * WebCoreSupport/ContextMenuClientQt.cpp:
3406 (WebCore::ContextMenuClientQt::downloadURL):
3407 * WebCoreSupport/FrameLoaderClientQt.cpp:
3408 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
3409 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
3410 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
3411 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
3412 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
3413 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
3414 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
3415 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
3416 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
3417 * WebCoreSupport/InspectorClientQt.cpp:
3418 (WebCore::InspectorClientQt::setAttachedWindowHeight):
3419 (WebCore::InspectorClientQt::highlight):
3420 (WebCore::InspectorClientQt::removeSetting):
3422 2009-10-01 Simon Hausmann <simon.hausmann@nokia.com>
3424 Reviewed by Tor Arne Vestbø.
3426 Make Software Input Panel requests work with QGraphicsWebView
3427 _and_ QWebView by sharing the event code in handleSoftwareInputPanel().
3430 (QWebPagePrivate::mouseReleaseEvent):
3431 (QWebPagePrivate::handleSoftwareInputPanel):
3434 2009-10-01 Alexis Menard <alexis.menard@nokia.com>
3436 Reviewed by Tor Arne Vestbø.
3438 Rename QWebGraphicsItem to QGraphicsWebView
3442 * Api/qwebgraphicsitem.cpp: Renamed.
3443 * Api/qwebgraphicsitem.h: Renamed.
3444 * WebKit/qt/QGVLauncher/main.cpp:
3446 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Renamed.
3447 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Renamed.
3449 2009-10-01 Antonio Gomes <tonikitoo@webkit.org>
3451 Reviewed by Simon Hausmann.
3453 https://bugs.webkit.org/show_bug.cgi?id=29248
3454 [Qt] [API] Make it possible to have 'invisible' loads
3456 Make QWebFrame's setHtml and setContent methods to not change
3457 session and global history at all.
3459 * Api/qwebframe.cpp:
3460 (QWebFrame::setHtml):
3461 (QWebFrame::setContent):
3462 * tests/qwebframe/qwebframe.pro:
3463 * tests/qwebframe/tst_qwebframe.cpp:
3465 2009-10-01 Kristian Amlie <kristian.amlie@nokia.com>
3467 Reviewed by Simon Hausmann.
3469 Fixed software input panel support on web input elements.
3471 Send the RequestSoftwareInputPanel event if the element supports focus
3472 and the element is clicked.
3475 (QWebPagePrivate::QWebPagePrivate):
3476 (QWebPagePrivate::mousePressEvent):
3477 (QWebPagePrivate::mouseReleaseEvent):
3480 2009-10-01 Joe Ligman <joseph.ligman@nokia.com>
3482 Reviewed by Simon Hausmann.
3484 Implementation for QWebPage::inputMethodQuery and QWebPagePrivate::inputMethodEvent
3486 https://bugs.webkit.org/show_bug.cgi?id=29681
3488 Some additional changes from Kristian Amlie <kristian.amlie@nokia.com>:
3490 * Fixed surrounding text to exclude preedit string
3491 * Avoid emission of microFocusChanged during setComposition()
3494 (QWebPagePrivate::inputMethodEvent):
3495 (QWebPage::inputMethodQuery):
3496 * WebCoreSupport/EditorClientQt.cpp:
3497 (WebCore::EditorClientQt::respondToChangedSelection):
3498 * tests/qwebpage/tst_qwebpage.cpp:
3499 (tst_QWebPage::inputMethods):
3501 2009-09-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
3503 Reviewed by David Hyatt.
3505 Add the failed URL to the ErrorPageExtension, as it is quite
3506 useful for creating error pages.
3509 * WebCoreSupport/FrameLoaderClientQt.cpp:
3510 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
3512 2009-09-29 Andras Becsi <becsi.andras@stud.u-szeged.hu>
3514 Reviewed by Tor Arne Vestbø.
3516 [Qt] Default font size reconciliation to 16px/13px to match other platform's de-facto standard.
3517 This fixes https://bugs.webkit.org/show_bug.cgi?id=19674.
3519 * Api/qwebsettings.cpp:
3520 (QWebSettings::QWebSettings):
3522 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3524 Reviewed by Simon Hausmann.
3526 https://bugs.webkit.org/show_bug.cgi?id=29844
3528 QWebPage dependency autotest fix.
3530 Fix for database() autotest. All opened databases should be removed at
3533 * tests/qwebpage/tst_qwebpage.cpp:
3534 (tst_QWebPage::database):
3536 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3538 Reviewed by Simon Hausmann.
3540 Some QWebHistory and QWebPage autotest crash fixes.
3542 Some checking for m_mainFrame were added. MainFrame should be created
3543 at some point of QWebPage live cicle.
3545 https://bugs.webkit.org/show_bug.cgi?id=29803
3548 (QWebPage::~QWebPage):
3549 (QWebPage::currentFrame):
3550 (QWebPage::history):
3551 (QWebPage::selectedText):
3552 (QWebPage::updatePositionDependentActions):
3553 * tests/qwebpage/tst_qwebpage.cpp:
3554 (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
3556 2009-09-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
3558 Reviewed by Simon Hausmann and Tor Arne Vestbø.
3560 Implement QWebPage Extension for error pages, incl.
3561 an example on how to use it in QtLauncher.
3563 Correct our use of ResourceError.
3566 (ExtensionOption::):
3567 (ExtensionOption::ErrorPageExtensionReturn::ErrorPageExtensionReturn):
3568 * QtLauncher/main.cpp:
3569 (WebPage::supportsExtension):
3570 (MainWindow::MainWindow):
3571 (MainWindow::selectElements):
3572 (WebPage::extension):
3573 * WebCoreSupport/FrameLoaderClientQt.cpp:
3574 (WebCore::FrameLoaderClientQt::cancelledError):
3575 (WebCore::FrameLoaderClientQt::blockedError):
3576 (WebCore::FrameLoaderClientQt::cannotShowURLError):
3577 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
3578 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
3579 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
3580 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
3581 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3582 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3583 * WebCoreSupport/FrameLoaderClientQt.h:
3585 2009-09-28 Andre Poenitz <andre.poenitz@trolltech.com>
3587 Reviewed by Simon Hausmann.
3589 Compile fix with namespaced Qt.
3591 * Api/qwebinspector_p.h:
3593 2009-09-27 Joe Ligman <joseph.ligman@mindspring.com>
3595 Reviewed by Simon Hausmann.
3597 [Qt] Adding API setFocus and hasFocus to QWebElement. This API is needed for
3598 clients that want to check/set the focus node of the document.
3599 https://bugs.webkit.org/show_bug.cgi?id=29682
3601 * Api/qwebelement.cpp:
3602 (QWebElement::hasFocus):
3603 (QWebElement::setFocus):
3604 * Api/qwebelement.h:
3605 * tests/qwebelement/tst_qwebelement.cpp:
3606 (tst_QWebElement::hasSetFocus):
3608 2009-09-25 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
3610 Reviewed by Simon Hausmann.
3612 [Qt] Make tst_qwebframe work if Qt built without SSL support
3613 https://bugs.webkit.org/show_bug.cgi?id=29735
3615 * tests/qwebframe/tst_qwebframe.cpp: Missing #ifndef blocks added.
3617 2009-09-24 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3619 Reviewed by Simon Hausmann.
3621 [Qt] Update QWebElement API to remove script related methods.
3622 QWebElement::evaluateScript is the only one kept, these are
3623 removed to postpone most of the QtWebKit<->JavaScript API design
3625 https://bugs.webkit.org/show_bug.cgi?id=29708
3627 * Api/qwebelement.cpp:
3628 * Api/qwebelement.h:
3630 - QWebElement::callFunction
3631 - QWebElement::functions
3632 - QWebElement::scriptableProperty
3633 - QWebElement::setScriptableProperty
3634 - QWebElement::scriptableProperties
3635 * tests/qwebelement/tst_qwebelement.cpp:
3636 (tst_QWebElement::evaluateScript):
3638 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3640 Reviewed by Simon Hausmann.
3642 [Qt] Rename QWebElement::evaluateScript
3643 to QWebElement::evaluateJavaScript.
3644 https://bugs.webkit.org/show_bug.cgi?id=29709
3646 * Api/qwebelement.cpp:
3647 (QWebElement::evaluateJavaScript):
3648 * Api/qwebelement.h:
3649 * tests/qwebelement/tst_qwebelement.cpp:
3650 (tst_QWebElement::evaluateJavaScript):
3652 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3654 Reviewed by Simon Hausmann.
3656 [Qt] Update the stypeProperty API of QWebElement.
3657 https://bugs.webkit.org/show_bug.cgi?id=29711
3659 * Api/qwebelement.cpp:
3660 (QWebElement::styleProperty):
3661 - Merge the stypeProperty and the computedStyleProperty methods
3662 - Remove the default value for the style resolving enum
3663 - Rename ResolveRule to StyleResolveStrategy
3664 (QWebElement::setStyleProperty):
3665 - Remove the priority argument since it is possible to control the
3666 behaviour by adding !important or removing in the value.
3667 * Api/qwebelement.h:
3668 * tests/qwebelement/tst_qwebelement.cpp:
3669 (tst_QWebElement::style):
3670 (tst_QWebElement::computedStyle):
3671 * tests/qwebframe/tst_qwebframe.cpp:
3673 2009-09-24 Jon Honeycutt <jhoneycutt@apple.com>
3675 Reviewed by Alice Liu.
3678 (QWebPagePrivate::QWebPagePrivate):
3679 Pass 0 for new Page constructor argument.
3681 2009-09-24 Martin Smith <msmith@trolltech.com>
3683 Reviewed by Simon Hausmann.
3685 qdoc: Added \brief texts to all the since 4.6 functions.
3687 * Api/qwebhistory.cpp:
3689 2009-09-23 J-P Nurmi <jpnurmi@gmail.com>
3691 Reviewed by Simon Hausmann.
3693 Prevent QWebPage::setView() from changing the viewport size on the fly
3694 in case the view doesn't actually change. QWebPage::setView() is
3695 called upon every QWebGraphicsItem::hoverMoveEvent(), which forced
3696 the viewport size to be equal to the size of the whole graphics view.
3698 https://bugs.webkit.org/show_bug.cgi?id=29676
3701 (QWebPage::setView):
3703 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3705 Reviewed by Simon Hausmann.
3707 [Qt] Crash fix in QWebHistory back and forward methods.
3709 QWebHistory::back() and QWebHistory::forward() were crashing on
3710 ASSERT in WebCore::BackForwardList. The methods should check
3711 canGoBack() and canGoForward() at the beginning.
3713 https://bugs.webkit.org/show_bug.cgi?id=29675
3715 * Api/qwebhistory.cpp:
3716 (QWebHistory::back):
3717 (QWebHistory::forward):
3719 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3721 Reviewed by Simon Hausmann.
3723 [Qt] Bug fix. QWebHistory should call QWebPage::updateNavigationActions