620fa235b8caac50da49455f726fee678f948893
[WebKit-https.git] / WebKit / qt / ChangeLog
1 2010-02-01  Jessie Berlin  <jberlin@webkit.org>
2
3         Reviewed by Holger Freyther.
4
5         [Qt] Enable inspecting the Web Inspector in QtLauncher
6
7         https://bugs.webkit.org/show_bug.cgi?id=34329
8
9         * WebCoreSupport/InspectorClientQt.cpp:
10         (WebCore::InspectorClientWebPage::InspectorClientWebPage):
11         Allow the DeveloperExtrasEnabled setting to default to true for the page containing the Web Inspector.
12
13 2010-02-02  Andreas Kling  <andreas.kling@nokia.com>
14
15         Reviewed by Kenneth Rohde Christiansen.
16
17         [Qt] Display HTML tags verbatim in JS alert/confirm/prompt boxes
18
19         https://bugs.webkit.org/show_bug.cgi?id=34429
20
21         * Api/qwebpage.cpp:
22         (QWebPage::javaScriptAlert):
23         (QWebPage::javaScriptConfirm):
24         (QWebPage::javaScriptPrompt):
25
26 2010-02-02  Noam Rosenthal  <noam.rosenthal@nokia.com>
27
28         Reviewed by Kenneth Rohde Christiansen.
29
30         [Qt] Enable a way to measure FPS in QGVLauncher
31         run QGVLauncher with --show-fps to see ongoing fps measurements
32         This is not meant as accurate FPS, but rather as a way to find
33         improvements/regressions
34         https://bugs.webkit.org/show_bug.cgi?id=34450
35
36         * QGVLauncher/main.cpp:
37         (MainView::MainView): initialize FPS values
38         (MainView::paintEvent): count a painted frame here
39         (MainView::printFps): we print the fps with qDebug every 5 seconds.
40
41 2010-01-29  Ben Murdoch  <benm@google.com>
42
43         Reviewed by Dimitri Glazkov.
44
45         [Android] Android needs functionality in the ChromeClient to be informed when touch events are and are not needed by the webpage.
46         https://bugs.webkit.org/show_bug.cgi?id=34215
47
48         Add needTouchEvents() to the ChromeClient which is called when the page decides it needs or no longer needs to be informed of touch events.
49
50         * WebCoreSupport/ChromeClientQt.h:
51         (WebCore::ChromeClientQt::needTouchEvents): Add an empty implementation.
52
53 2010-01-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
54
55         Reviewed by Simon Hausmann
56
57         Disable auto-uppercase and predictive text on Maemo5, just like the
58         build-in MicroB Browser.
59
60         * WebCoreSupport/EditorClientQt.cpp:
61         (WebCore::EditorClientQt::setInputMethodState):
62
63 2010-01-28  Andreas Kling  <andreas.kling@nokia.com>
64
65         Reviewed by Kenneth Rohde Christiansen.
66
67         [Qt] Support kinetic scrolling on Maemo 5
68
69         https://bugs.webkit.org/show_bug.cgi?id=34267
70
71         Patch by Ralf Engels <ralf.engels@nokia.com> and
72         Robert Griebl <rgriebl@trolltech.com>
73
74         * Api/qwebview.cpp:
75         (QWebViewKineticScroller::QWebViewKineticScroller):
76         (QWebViewKineticScroller::eventFilter):
77         (QWebViewKineticScroller::currentFrame):
78         (QWebViewKineticScroller::scrollingFrameAt):
79         (QWebViewKineticScroller::attachToWidget):
80         (QWebViewKineticScroller::removeFromWidget):
81         (QWebViewKineticScroller::positionRange):
82         (QWebViewKineticScroller::position):
83         (QWebViewKineticScroller::viewportSize):
84         (QWebViewKineticScroller::setPosition):
85         (QWebView::QWebView):
86
87 2010-01-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
88
89         Reviewed by Simon Hausmann.
90
91         Do not set the combobox font on Maemo5 and S60; use the
92         default instead.
93
94         * WebCoreSupport/QtFallbackWebPopup.cpp:
95         (WebCore::QtFallbackWebPopup::populate):
96
97 2010-01-28  Trond Kjernåsen <trond@trolltech.com>
98
99         Reviewed by Simon Hausmann.
100
101         [Qt] Fix for endless print loop when printing web pages
102
103         * Api/qwebframe.cpp:
104         (QWebFrame::print):
105
106 2010-01-27  Diego Gonzalez  <diego.gonzalez@openbossa.org>
107
108         Reviewed by Kenneth Rohde Christiansen.
109
110         [Qt] DRT Provide worker thread ability to track counters
111         https://bugs.webkit.org/show_bug.cgi?id=34221
112
113         Implement workerThreadCount() in LayoutTestController of Qt DRT
114
115         Tests:
116         fast/workers/dedicated-worker-lifecycle.html
117         fast/workers/shared-worker-frame-lifecycle.html
118         fast/workers/shared-worker-lifecycle.html
119         fast/workers/worker-lifecycle.html
120
121         * Api/qwebpage.cpp:
122         (qt_drt_workerThreadCount):
123
124 2010-01-27  Simon Hausmann  <simon.hausmann@nokia.com>
125
126         Reviewed by Laszlo Gombos.
127
128         [Qt] Update the .def files with exported symbols
129
130         * symbian/eabi/QtWebKitu.def: Add two mangled missing new symbols for arm eabi.
131
132 2010-01-27  Kent Hansen  <kent.hansen@nokia.com>
133
134         Reviewed by Simon Hausmann.
135
136         [Qt] Meta-methods can't be introspected using ES5 API
137         https://bugs.webkit.org/show_bug.cgi?id=34087
138
139         Test that Object.getOwnPropertyDescriptor and
140         Object.getOwnPropertyNames work with meta-methods.
141
142         * tests/qwebframe/tst_qwebframe.cpp:
143
144 2010-01-26  Simon Hausmann  <simon.hausmann@nokia.com>
145
146         Reviewed by Kenneth Rohde Christiansen.
147
148         [Qt] Show comboboxes on Maemo 5
149         https://bugs.webkit.org/show_bug.cgi?id=34088
150
151         Don't try to show the combobox by simulating a mouse event from QCursor::pos() to
152         get the combobox position right. The position on Maemo 5 is independent from the mouse
153         and there's no QCursor::pos().
154
155         * WebCoreSupport/QtFallbackWebPopup.cpp:
156         (WebCore::QtFallbackWebPopup::show):
157
158 2010-01-26  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
159
160         Reviewed by Simon Hausmann.
161
162         First steps of the QtScript API.
163         
164         Two new classes were created; QScriptEngine and QScriptValue.
165         The first should encapsulate a javascript context and the second a script
166         value.
167         
168         This API is still in development, so it isn't compiled by default.
169         To trigger compilation, pass --qmakearg="CONFIG+=build-qtscript" to
170         build-webkit.
171
172         https://bugs.webkit.org/show_bug.cgi?id=32565
173
174         * docs/qtwebkit.qdocconf:
175
176 2010-01-26  Holger Hans Peter Freyther  <zecke@selfish.org>
177
178         Reviewed by Simon Hausmann.
179
180         [Qt] JavaScript prompt is currently broken
181         https://bugs.webkit.org/show_bug.cgi?id=30914
182
183         In r52152 a patch was landed to convert a null QString
184         to an empty WebCore::String in case the prompt was accepted
185         but the default implementation returned the null QString.
186
187         The patch tried to avoid assign to result twice and
188         was not checking the QString if it is null but the default
189         value. This lead to always returning an empty string on
190         successful prompts. Fix it by checking the variable 'x'
191         for isNull.
192
193         The manual test case used didn't cover the case of non
194         empty input, replace it with an automatic test case that
195         should cover all cases.
196
197         * WebCoreSupport/ChromeClientQt.cpp:
198         (WebCore::ChromeClientQt::runJavaScriptPrompt): Fix the bug.
199         * tests/qwebpage/tst_qwebpage.cpp: Add automatic test case
200         (JSPromptPage::JSPromptPage):
201         (JSPromptPage::javaScriptPrompt):
202         (tst_QWebPage::testJSPrompt):
203
204 2010-01-25  Simon Hausmann  <hausmann@webkit.org>
205
206         Reviewed by Kenneth Rohde Christiansen.
207
208         [Qt] In RenderThemeQt determine the QStyle from the page client instead of the page's view
209         https://bugs.webkit.org/show_bug.cgi?id=34053
210
211         * Api/qgraphicswebview.cpp:
212         (QGraphicsWebViewPrivate::style): Implement QWebPageClient::style() and return the graphics
213         widget's style.
214         * Api/qwebpage.cpp:
215         (QWebPageWidgetClient::style): Implement QWebPageClient::style() and return the widget's style.
216
217 2010-01-25  Janne Koskinen  <janne.p.koskinen@digia.com>
218
219         Reviewed by Simon Hausmann.
220
221         [Qt] Phone backup support for QtWebkit for Symbian devices.
222         https://bugs.webkit.org/show_bug.cgi?id=34077
223
224         * symbian/backup_registration.xml: Added.
225
226 2010-01-23  Girish Ramakrishnan  <girish@forwardbias.in>
227
228         Reviewed by Kenneth Rohde Christiansen.
229
230         [Qt] Fix positioning of ComboBox popup in QGraphicsWebView.
231         
232         Wrap the popup in a QGraphicsProxyWidget, so that the popup
233         transforms with the item.
234         
235         https://bugs.webkit.org/show_bug.cgi?id=33887
236
237         * WebCoreSupport/QtFallbackWebPopup.cpp:
238         (WebCore::QtFallbackWebPopupCombo::hidePopup):
239         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
240         (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
241         (WebCore::QtFallbackWebPopup::show):
242         * WebCoreSupport/QtFallbackWebPopup.h:
243
244 2010-01-22  Peter Kasting  <pkasting@google.com>
245
246         Not reviewed, backout.
247
248         Back out r52673, which caused several regressions.
249         https://bugs.webkit.org/show_bug.cgi?id=32533
250
251         * WebCoreSupport/QtFallbackWebPopup.cpp:
252         (WebCore::QtFallbackWebPopupCombo::hidePopup):
253
254 2010-01-22  Girish Ramakrishnan  <girish@forwardbias.in>
255
256         Reviewed by Simon Hausmann.
257
258         [Qt] Save the QWebPageClient instead of the ownerWidget in QtAbstractWebPopup
259         
260         The QWebPageClient is required for the QtFallbackWebPopup. QtFallbackWebPopup will
261         need it to create a QGraphicsProxyWidget (in a future commit) for the 
262         QGraphicsWebView's web popup.
263
264         * WebCoreSupport/QtFallbackWebPopup.cpp:
265         (WebCore::QtFallbackWebPopup::show):
266
267 2010-01-22  Girish Ramakrishnan  <girish@forwardbias.in>
268
269         Reviewed by Kenneth Rohde Christiansen.
270
271         QState::polished() was renamed to QState::propertiesAssigned() when
272         Qt 4.6.0 was released.
273
274         * QGVLauncher/main.cpp:
275         (MainWindow::init):
276
277 2010-01-21  Diego Gonzalez  <diego.gonzalez@openbossa.org>
278
279         Reviewed by Kenneth Rohde Christiansen.
280
281         [Qt] add setDomainRelaxationForbiddenForURLScheme in Qt DRT
282         https://bugs.webkit.org/show_bug.cgi?id=33945
283
284         * Api/qwebsecurityorigin.cpp:
285         (qt_drt_setDomainRelaxationForbiddenForURLScheme):
286
287 2010-01-21  No'am Rosenthal  <noam.rosenthal@nokia.com>
288
289         Reviewed by Antti Koivisto.
290
291         [Qt] Implement GraphicsLayer for accelerated layer compositing
292         https://bugs.webkit.org/show_bug.cgi?id=33514
293
294         Here we have the QGraphicsWebView support for accelerated compositing
295
296         * Api/qgraphicswebview.cpp:
297         (QGraphicsWebViewOverlay::q): access to container object
298         (QGraphicsWebViewOverlay::boundingRect): overlay has same rect as the
299         webview
300         (QGraphicsWebViewOverlay::paint): paint everything but the contents
301         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate): some vars needed
302         for accelerated compositing
303         (QGraphicsWebViewPrivate::):
304         (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate):
305         (QGraphicsWebViewPrivate::setRootGraphicsLayer): make sure we have a
306         scrollbar overlay, and that the new graphics layer is parented by the
307         web-view
308         (QGraphicsWebViewPrivate::markForSync): flush changes at earliest
309         convenience or during the next draw
310
311         (QGraphicsWebViewPrivate::updateCompositingScrollPosition): sync the
312         position of the compositing layer with the scroll position
313         (QGraphicsWebViewPrivate::syncLayers): flush changes now
314         (QGraphicsWebViewPrivate::scroll): make sure we also move the
315         compositing layer
316         (QGraphicsWebViewPrivate::update): also update the overlay if needed
317         (QGraphicsWebView::QGraphicsWebView): initialize overlay with 0
318         (QGraphicsWebView::paint): paint only contents if we have an overlay,
319         sync the compositing layers now if needed
320         (QGraphicsWebView::setPage): also clean up the compositing
321         (QGraphicsWebView::updateGeometry): also update overlay geo
322         (QGraphicsWebView::setGeometry): also update overlay geo
323         * Api/qgraphicswebview.h: reimp compositing stuff from QWebPageClient
324         * Api/qwebsettings.cpp: init new settings flag for compositing as
325         false
326         (QWebSettingsPrivate::apply): apply new settings flag for compositing
327         (QWebSettings::QWebSettings):
328         * Api/qwebsettings.h: new settings flag for compositing
329         * Api/qwebview.cpp: 
330         (QWebView::setPage): qwebview doesn't support compositing: always false
331         * QGVLauncher/main.cpp:
332         (WebView::WebView): some more cmdline arguments + compositing
333         (MainWindow::init): some more cmdline arguments
334         (main): ditto
335         * WebCoreSupport/ChromeClientQt.cpp:
336         (WebCore::ChromeClientQt::attachRootGraphicsLayer): reimp for
337         accel-compositing
338         (WebCore::ChromeClientQt::setNeedsOneShotDrawingSynchronization):
339         reimp for accel compositing
340         (WebCore::ChromeClientQt::scheduleCompositingLayerSync): reimp for
341         accel compositing
342         * WebCoreSupport/ChromeClientQt.h: reimps for accel compositing
343
344 2010-01-21  Benjamin Poulain  <benjamin.poulain@nokia.com>
345
346         Reviewed by Simon Hausmann.
347
348         [Qt] Improve the autotests of QtWebkit
349         https://bugs.webkit.org/show_bug.cgi?id=32216
350
351         Remove qWait() of the test when possible.
352
353         * tests/qwebpage/tst_qwebpage.cpp:
354         (tst_QWebPage::loadFinished):
355         (tst_QWebPage::database):
356         (tst_QWebPage::testEnablePersistentStorage):
357         (tst_QWebPage::errorPageExtension):
358         (tst_QWebPage::screenshot):
359
360 2010-01-21  Simon Hausmann  <simon.hausmann@nokia.com>
361
362         Prospective build fix for the Qt build.
363
364         Fix compilation against Qt without WebKit support by not including QtWebKit/QWebView
365         but widget.h instead and instantiating QWebView through a typedef, to ensure we're using
366         our locally built WebKit.
367
368         * tests/hybridPixmap/widget.h:
369         * tests/hybridPixmap/widget.ui:
370
371 2010-01-21  No'am Rosenthal  <noam.rosenthal@nokia.com>
372
373         Reviewed by Simon Hausmann.
374
375         [Qt] Adding QPixmap/QImage support for the Qt hybrid layer
376         https://bugs.webkit.org/show_bug.cgi?id=32461
377
378         * tests/hybridPixmap: Added.
379         * tests/hybridPixmap/hybridPixmap.pro: Added.
380         * tests/hybridPixmap/resources.qrc: Added.
381         * tests/hybridPixmap/test.html: Added.
382         * tests/hybridPixmap/tst_hybridPixmap.cpp: Added.
383         (tst_hybridPixmap::tst_hybridPixmap): tests most of the use cases for
384         hybrid pixmap/image manipulation 
385         (tst_hybridPixmap::init): QTestLib initialization
386         (tst_hybridPixmap::cleanup): QTestLib cleanup
387         (tst_hybridPixmap::hybridPixmap): run the html file
388         * tests/hybridPixmap/widget.cpp: Added.
389         (Widget::Widget):
390         (Widget::refreshJS):
391         (Widget::start):
392         (Widget::completeTest):
393         (Widget::setPixmap):
394         (Widget::pixmap):
395         (Widget::setImage):
396         (Widget::image):
397         (Widget::~Widget):
398         (Widget::changeEvent):
399         (Widget::compare):
400         (Widget::imageSlot):
401         (Widget::pixmapSlot):
402         (Widget::randomSlot):
403         * tests/hybridPixmap/widget.h: Added.
404         * tests/hybridPixmap/widget.ui: Added.
405         * tests/tests.pro:
406
407 2010-01-21  Luiz Agostini  <luiz.agostini@openbossa.org>
408
409         Reviewed by Kenneth Rohde Christiansen.
410
411         [Qt] Custom select popups.
412         https://bugs.webkit.org/show_bug.cgi?id=33418
413
414         Adjusting QtFallbackWebPopupCombo to the changes in WebCore layer.
415
416         * WebCoreSupport/ChromeClientQt.cpp:
417         (WebCore::ChromeClientQt::createSelectPopup):
418         * WebCoreSupport/ChromeClientQt.h:
419         * WebCoreSupport/QtFallbackWebPopup.cpp:
420         (WebCore::QtFallbackWebPopupCombo::QtFallbackWebPopupCombo):
421         (WebCore::QtFallbackWebPopupCombo::showPopup):
422         (WebCore::QtFallbackWebPopupCombo::hidePopup):
423         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
424         (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
425         (WebCore::QtFallbackWebPopup::show):
426         (WebCore::QtFallbackWebPopup::hide):
427         (WebCore::QtFallbackWebPopup::populate):
428         * WebCoreSupport/QtFallbackWebPopup.h:
429
430 2010-01-19  Steve Block  <steveblock@google.com>
431
432         Reviewed by Adam Barth.
433
434         Renames WebCore/bridge/runtime.[cpp|h] to WebCore/bridge/Bridge.[cpp|h]
435         https://bugs.webkit.org/show_bug.cgi?id=33801
436
437         * Api/qwebframe.cpp:
438
439 2010-01-14  Brian Weinstein  <bweinstein@apple.com>
440
441         Reviewed by Adam Roben.
442
443         Drag and Drop source/destination code needs cleanup.
444         <https://bugs.webkit.org/show_bug.cgi?id=33691>.
445         
446         Update to new way of calling sourceOperation.
447
448         * WebCoreSupport/DragClientQt.cpp:
449         (WebCore::DragClientQt::startDrag):
450
451 2010-01-14  Simon Hausmann  <simon.hausmann@nokia.com>
452
453         Reviewed by Tor Arne Vestbø.
454
455         [Qt] Symbian build fixes.
456
457         * tests/qwebpage/tst_qwebpage.cpp: Include util.h
458         * tests/tests.pri: Don't define TESTS_SOURCE_DIR, it doesn't work.
459         * tests/util.h: Define TESTS_SOURCE_DIR here, just like it's done in Qt.
460
461 2010-01-14  Simon Hausmann  <simon.hausmann@nokia.com>
462
463         Reviewed by Kenneth Rohde Christiansen.
464
465         [Qt] Update Symbian .def symbol export files after private API additions.
466
467         * symbian/bwins/QtWebKitu.def:
468         * symbian/eabi/QtWebKitu.def:
469
470 2010-01-13  Darin Adler  <darin@apple.com>
471
472         Reviewed by Dan Bernstein.
473
474         Move more of the selection and caret painting code from Frame to SelectionController.
475         https://bugs.webkit.org/show_bug.cgi?id=33619
476
477         * Api/qwebpage.cpp:
478         (QWebPagePrivate::inputMethodEvent): Seems possibly wrong to be directly invoking this
479         setCaretVisible here, but I updated it to call it in its new location.
480
481 2010-01-11  Simon Hausmann  <simon.hausmann@nokia.com>
482
483         Reviewed by Holger Freyther.
484
485         [Qt] Add private API for QWebFrame scrolling, to maintain binary compatibility with Qt 4.6.
486
487         This is just a temporary addition until we have introduced #ifdefs to allow
488         safely removing the private API again.
489
490         * Api/qwebframe.cpp:
491         (qtwebkit_webframe_scrollRecursively):
492
493 2010-01-10  Robert Hogan  <robert@roberthogan.net>
494
495         Reviewed by Adam Barth.
496
497         [Qt] Add enableXSSAuditor support to QWebSettings and DRT.
498
499         https://bugs.webkit.org/show_bug.cgi?id=33419
500
501         * Api/qwebsettings.cpp:
502         (QWebSettingsPrivate::apply):
503         * Api/qwebsettings.h:
504
505 2010-01-09  Daniel Bates  <dbates@webkit.org>
506
507         No review, rolling out r53044.
508         http://trac.webkit.org/changeset/53044
509         https://bugs.webkit.org/show_bug.cgi?id=33419
510         
511         We need to look into this some more because the Qt
512         bot is failing the XSSAuditor tests. See bug #33419
513         for more details.
514
515         * Api/qwebsettings.cpp:
516         * Api/qwebsettings.h:
517
518 2010-01-09  Daniel Bates  <dbates@webkit.org>
519
520         Reviewed by Adam Barth.
521
522         https://bugs.webkit.org/show_bug.cgi?id=33419
523
524         Adds support for the XSSAuditor to the Qt DRT.
525
526         * Api/qwebsettings.cpp: Updated comment to reflect added key XSSAuditorEnabled.
527         * Api/qwebsettings.h: Adds settings key XSSAuditorEnabled.
528
529 2010-01-08  Luiz Agostini  <luiz.agostini@openbossa.org>
530
531         Reviewed by Kenneth Rohde Christiansen.
532
533         [Qt] Delegation client
534         https://bugs.webkit.org/show_bug.cgi?id=32826
535
536         Added method createPopup to ChromeClientQt used to create popups.
537         QtFallbackWebPopup moved from WebCore/platform/qt to
538         WebKit/qt/WebCoreSupport.
539
540         * WebCoreSupport/ChromeClientQt.cpp:
541         (WebCore::ChromeClientQt::createPopup):
542         * WebCoreSupport/ChromeClientQt.h:
543         * WebCoreSupport/QtFallbackWebPopup.cpp: Added.
544         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
545         (WebCore::QtFallbackWebPopup::show):
546         (WebCore::QtFallbackWebPopup::populate):
547         (WebCore::QtFallbackWebPopup::showPopup):
548         (WebCore::QtFallbackWebPopup::hidePopup):
549         (WebCore::QtFallbackWebPopup::activeChanged):
550         (WebCore::QtFallbackWebPopup::setParent):
551         * WebCoreSupport/QtFallbackWebPopup.h: Added.
552         (WebCore::QtFallbackWebPopup::hide):
553
554 2010-01-07  Yael Aharon  <yael.aharon@nokia.com>
555
556         Reviewed by Kenneth Rohde Christiansen.
557
558         [Qt] Allow the application to override online/offline network status
559         https://bugs.webkit.org/show_bug.cgi?id=32684
560
561         Add a setting so that applications can overide the network status.
562         Applications that use this setting still need to block network access
563         through QNAM.
564
565         * Api/qwebsettings.cpp:
566         (qt_networkAccessAllowed):
567
568 2010-01-07  Yongjun Zhang  <yongjun.zhang@nokia.com>, Laszlo Gombos  <laszlo.1.gombos@nokia.com>
569
570         Reviewed by Simon Hausmann.
571
572         [Qt] need an API to suspend and resume active Javascript DOM objects.
573         https://bugs.webkit.org/show_bug.cgi?id=31673
574
575         Add suspend and resume DOM objects private API to QWebFrame.
576
577         * Api/qwebframe.cpp:
578         (qt_suspendActiveDOMObjects):
579         (qt_resumeActiveDOMObjects):
580
581 2010-01-06  Andreas Kling  <andreas.kling@nokia.com>
582
583         Reviewed by Simon Hausmann.
584
585         [Qt] Return an invalid Qt::ImMicroFocus if queried while the view needs to layout.
586
587         https://bugs.webkit.org/show_bug.cgi?id=33204
588
589         * Api/qwebpage.cpp:
590         (QWebPage::inputMethodQuery):
591
592 2010-01-05  Yael Aharon  <yael.aharon@nokia.com>
593
594         Reviewed by Kenneth Rohde Christiansen.
595
596         Drag & drop layout tests fail even when run manually
597         https://bugs.webkit.org/show_bug.cgi?id=33055
598
599         No new tests. Fix 3 layout tests when run manually.
600         fast/events/drag-and-drop.html
601         fast/events/drag-and-drop-dataTransfer-types-nocrash.html
602         fast/events/drag-and-drop-fire-drag-dragover.html
603         Running these tests in DRT will be fixed in 31332.
604
605         * Api/qwebpage.cpp:
606         (dropActionToDragOp):
607         (dragOpToDropAction):
608         (QWebPagePrivate::dragEnterEvent):
609         (QWebPagePrivate::dragMoveEvent):
610         (QWebPagePrivate::dropEvent):
611         Accept drag events even if they are not over a drop target. 
612         This is to ensure that drag events will continue to be delivered.
613
614         * Api/qwebpage_p.h:
615         * WebCoreSupport/DragClientQt.cpp:
616         (WebCore::dragOperationToDropActions):
617         (WebCore::dropActionToDragOperation):
618         (WebCore::DragClientQt::startDrag):
619         Send dragEnd event.
620
621 2010-01-04  Daniel Bates  <dbates@webkit.org>
622
623         Reviewed by Eric Seidel.
624
625         https://bugs.webkit.org/show_bug.cgi?id=33097
626
627         Cleans up the File menu to better conform to the File menu in Safari
628         both in terms of options and keyboard shortcuts. Adds a "Quit" menu
629         options to close all open windows.
630
631         * QGVLauncher/main.cpp:
632         (MainWindow::buildUI):
633
634 2009-12-31  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
635
636         Reviewed by Kenneth Rohde Christiansen.
637
638         [Qt] Enable all HTML5 persistent features for QGVLauncher
639         https://bugs.webkit.org/show_bug.cgi?id=33086
640
641         * QGVLauncher/main.cpp: Call enablePersistentStorage()
642         (main):
643
644 2009-12-30  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
645
646         Reviewed by Simon Hausmann.
647
648         [Qt] It should be possible to disable inspector
649         https://bugs.webkit.org/show_bug.cgi?id=32724
650
651         This change fixes the build break. Some QtWebKit interfaces
652         will not be fully functional (most notable QWebInspector) if
653         INSPECTOR is disabled.
654
655         * Api/qwebinspector.cpp:
656         (QWebInspector::showEvent):
657         (QWebInspector::closeEvent):
658         * Api/qwebpage.cpp:
659         (webActionForContextMenuAction):
660         (QWebPagePrivate::getOrCreateInspector):
661         (QWebPagePrivate::inspectorController):
662         (QWebPage::triggerAction):
663         (QWebPage::updatePositionDependentActions):
664         * WebCoreSupport/InspectorClientQt.cpp:
665         (WebCore::InspectorClientQt::showWindow):
666         (WebCore::InspectorClientQt::closeWindow):
667
668 2009-12-30  Janne Koskinen  <janne.p.koskinen@digia.com>
669
670         Reviewed by Simon Hausmann.
671
672         Upstream Symbian def files from Qt 4.6.
673
674         These files define the ABI of QtWebKit on Symbian.
675
676         * symbian/bwins/QtWebKitu.def: Added.
677         * symbian/eabi/QtWebKitu.def: Added.
678
679 2009-12-29  Daniel Bates  <dbates@webkit.org>
680
681         Reviewed by Ariya Hidayat.
682
683         https://bugs.webkit.org/show_bug.cgi?id=32925
684
685         Adds an Open File dialog to make it convenient to open a file
686         to view in the browser.
687
688         * QGVLauncher/main.cpp:
689         (MainWindow::load): Modified to call loadURL.
690         (MainWindow::openFile): Added.
691         (MainWindow::loadURL): Added.
692         (MainWindow::buildUI): Added menu item Open File.
693
694 2009-12-29  Robert Hogan  <robert@roberthogan.net>
695
696         Reviewed by Eric Seidel.
697
698         [Qt] Fix crash on LayoutTests/fast/loader/empty-embed-src-attribute.html
699         
700         Related to https://bugs.webkit.org/show_bug.cgi?id=23806
701         
702         If an embedded document is loaded within a page and it has an empty
703         URL, use a blank URL for the load request.
704         
705         https://bugs.webkit.org/show_bug.cgi?id=33017
706
707         * WebCoreSupport/FrameLoaderClientQt.cpp:
708         (WebCore::FrameLoaderClientQt::createFrame):
709
710 2009-12-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
711
712         Rubber-stamped by Simon Hausmann and Holger Freyther.
713
714         [Qt] Remove WebKit/qt/WebKitPart empty directory
715
716         The content of the directory has been removed by r34888.
717
718         * WebKitPart: Removed.
719
720 2009-12-29  Jakub Wieczorek  <faw217@gmail.com>
721
722         Reviewed by Eric Seidel.
723
724         [Qt] DRT: Frame loader callbacks differ from the Mac port
725         https://bugs.webkit.org/show_bug.cgi?id=32989
726
727         Remove messages from the callbacks that should not dump them to match
728         the expected results for the http/loading tests.
729
730         Unskip some http/loading tests which succeed now.
731
732         * WebCoreSupport/FrameLoaderClientQt.cpp:
733         (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
734         (WebCore::FrameLoaderClientQt::dispatchWillClose):
735         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
736         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
737
738 2009-12-29  Robert Hogan  <robert@roberthogan.net>
739
740         Reviewed by Eric Seidel.
741
742         [Qt] fix fast/dom/Window/window-onFocus.html
743         
744         Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
745         window.onblur was getting dispatched twice from QtWebKit.
746         
747         https://bugs.webkit.org/show_bug.cgi?id=32990
748
749         * Api/qwebpage.cpp:
750         (QWebPagePrivate::focusOutEvent):
751
752 2009-12-24  Girish Ramakrishnan  <girish@forwardbias.in>
753
754         Reviewed by Gustavo Noronha.
755
756         Doc : QGraphicsWebView::zoomFactor was introduced in 4.6.
757         
758         * Api/qgraphicswebview.cpp:
759
760 2009-12-22  Simon Hausmann  <simon.hausmann@nokia.com>
761
762         Rubber-stamped by Holger Freyther.
763
764         Moved QtLauncher to WebKitTools/
765
766         * QtLauncher: Removed.
767         * QtLauncher/QtLauncher.pro: Removed.
768         * QtLauncher/main.cpp: Removed.
769
770 2009-12-21  David Boddie  <dboddie@trolltech.com>
771
772         Reviewed by Simon Hausmann.
773
774         Doc: Minor fixes to language.
775
776         * Api/qwebpage.cpp:
777
778 2009-12-21  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
779
780         Reviewed by Simon Hausmann.
781
782         [Qt] Clean up the WebKit layer unit-tests
783
784             - Use tests.pri for common options
785             - Standardize file naming
786             - Move all resources to 'resources' subdir
787             - Standardize how TESTS_SOURCE_DIR is used
788             - Get rid of UID3 for symbian (autogenerated)
789             - Don't build app bundles on Mac OS X
790
791         * tests/benchmarks/loading/loading.pro: Added.
792         * tests/benchmarks/loading/tst_loading.pro: Removed.
793         * tests/benchmarks/painting/painting.pro: Added.
794         * tests/benchmarks/painting/tst_painting.pro: Removed.
795         * tests/qgraphicswebview/qgraphicswebview.pro:
796         * tests/qwebelement/qwebelement.pro:
797         * tests/qwebelement/qwebelement.qrc: Removed.
798         * tests/qwebelement/resources/image.png: Renamed from WebKit/qt/tests/qwebelement/image.png.
799         * tests/qwebelement/resources/style.css: Renamed from WebKit/qt/tests/qwebelement/style.css.
800         * tests/qwebelement/resources/style2.css: Renamed from WebKit/qt/tests/qwebelement/style2.css.
801         * tests/qwebelement/tst_qwebelement.qrc: Added.
802         * tests/qwebframe/qwebframe.pro:
803         * tests/qwebframe/qwebframe.qrc: Removed.
804         * tests/qwebframe/resources/image.png: Renamed from WebKit/qt/tests/qwebframe/image.png.
805         * tests/qwebframe/resources/style.css: Renamed from WebKit/qt/tests/qwebframe/style.css.
806         * tests/qwebframe/resources/test1.html: Renamed from WebKit/qt/tests/qwebframe/test1.html.
807         * tests/qwebframe/resources/test2.html: Renamed from WebKit/qt/tests/qwebframe/test2.html.
808         * tests/qwebframe/resources/testiframe.html: Renamed from WebKit/qt/tests/qwebframe/testiframe.html.
809         * tests/qwebframe/resources/testiframe2.html: Renamed from WebKit/qt/tests/qwebframe/testiframe2.html.
810         * tests/qwebframe/tst_qwebframe.cpp:
811         * tests/qwebframe/tst_qwebframe.qrc: Added.
812         * tests/qwebhistory/qwebhistory.pro:
813         * tests/qwebhistory/resources/page1.html: Renamed from WebKit/qt/tests/qwebhistory/data/page1.html.
814         * tests/qwebhistory/resources/page2.html: Renamed from WebKit/qt/tests/qwebhistory/data/page2.html.
815         * tests/qwebhistory/resources/page3.html: Renamed from WebKit/qt/tests/qwebhistory/data/page3.html.
816         * tests/qwebhistory/resources/page4.html: Renamed from WebKit/qt/tests/qwebhistory/data/page4.html.
817         * tests/qwebhistory/resources/page5.html: Renamed from WebKit/qt/tests/qwebhistory/data/page5.html.
818         * tests/qwebhistory/resources/page6.html: Renamed from WebKit/qt/tests/qwebhistory/data/page6.html.
819         * tests/qwebhistory/tst_qwebhistory.cpp:
820         (tst_QWebHistory::):
821         * tests/qwebhistory/tst_qwebhistory.qrc:
822         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
823         * tests/qwebinspector/qwebinspector.pro:
824         * tests/qwebpage/qwebpage.pro:
825         * tests/qwebpage/resources/frame_a.html: Renamed from WebKit/qt/tests/qwebpage/frametest/frame_a.html.
826         * tests/qwebpage/resources/iframe.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe.html.
827         * tests/qwebpage/resources/iframe2.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe2.html.
828         * tests/qwebpage/resources/iframe3.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe3.html.
829         * tests/qwebpage/resources/index.html: Renamed from WebKit/qt/tests/qwebpage/frametest/index.html.
830         * tests/qwebpage/tst_qwebpage.cpp:
831         (tst_QWebPage::backActionUpdate):
832         (tst_QWebPage::frameAt):
833         (tst_QWebPage::errorPageExtensionInFrameset):
834         (tst_QWebPage::screenshot):
835         * tests/qwebpage/tst_qwebpage.qrc:
836         * tests/qwebplugindatabase/qwebplugindatabase.pro:
837         * tests/qwebview/qwebview.pro:
838         * tests/qwebview/resources/frame_a.html: Renamed from WebKit/qt/tests/qwebview/data/frame_a.html.
839         * tests/qwebview/resources/index.html: Renamed from WebKit/qt/tests/qwebview/data/index.html.
840         * tests/qwebview/tst_qwebview.cpp:
841         (tst_QWebView::reusePage):
842         (tst_QWebView::crashTests):
843         * tests/qwebview/tst_qwebview.qrc:
844         * tests/resources/image2.png: Renamed from WebKit/qt/tests/qwebframe/resources/image2.png.
845         * tests/tests.pri: Added.
846         * tests/tests.pro:
847
848 2009-12-18  Ariya Hidayat  <ariya.hidayat@gmail.com>
849
850         Build fix, not reviewed.
851
852         * QtLauncher/main.cpp:
853         (MainWindow::setTouchMocking): Leave setTouchMocking as an empty
854         function for Qt < 4.6 so that moc still creates a slot for that.
855         Otherwise, it would have generated a linker error.
856
857 2009-12-18  Adam Roben  <aroben@apple.com>
858
859         Qt build fix
860
861         * Api/qwebpage.cpp: Added #include.
862
863 2009-12-18  Adam Roben  <aroben@apple.com>
864
865         Qt build fix
866
867         * Api/qwebpage.cpp:
868         Added #includes.
869
870 2009-12-18  Joe Ligman  <joseph.ligman@nokia.com>
871
872         Reviewed by Kenneth Rohde Christiansen.
873
874         [Qt] Add new API to QWebFrame to scrollRecursively starting with any css overflow 
875         then checking current frame and then ancestors
876         https://bugs.webkit.org/show_bug.cgi?id=32668
877
878         * Api/qwebframe.cpp:
879         (QWebFramePrivate::scrollOverflow):
880         (QWebFrame::scrollRecursively):
881         * Api/qwebframe.h:
882         * Api/qwebframe_p.h:
883         * tests/qwebframe/qwebframe.qrc:
884         * tests/qwebframe/testiframe.html: Added.
885         * tests/qwebframe/testiframe2.html: Added.
886         * tests/qwebframe/tst_qwebframe.cpp:
887
888 2009-12-18  Simon Hausmann  <simon.hausmann@nokia.com>
889
890         Reviewed by Tor Arne Vestbø.
891
892         [Qt] Fix infinite recursion in touch mocking.
893
894         Don't send the fake touch events to the view, as that'll trigger the
895         event filter again.
896
897         * QtLauncher/main.cpp:
898         (MainWindow::sendTouchEvent):
899
900 2009-12-17  Benjamin Poulain  <benjamin.poulain@nokia.com>
901
902         Reviewed by Simon Hausmann.
903
904         [Qt] Add support for mocking touch events with Q(GV)Launcher
905         https://bugs.webkit.org/show_bug.cgi?id=32434
906
907         The event delivery should go through QCoreApplication::sendEvent()
908
909         * QtLauncher/main.cpp:
910         (MainWindow::sendTouchEvent):
911
912 2009-12-17  Kim Grönholm  <kim.gronholm@nomovok.com>
913
914         Reviewed by Simon Hausmann.
915
916         [Qt] Add support for touch events in QWebView and QGraphicsWebView
917         https://bugs.webkit.org/show_bug.cgi?id=32432
918
919         * Api/qgraphicswebview.cpp:
920         (QGraphicsWebView::QGraphicsWebView):
921         (QGraphicsWebView::sceneEvent):
922         * Api/qwebview.cpp:
923         (QWebView::QWebView):
924         (QWebView::event):
925
926 2009-12-17  Kim Grönholm  <kim.gronholm@nomovok.com>
927
928         Reviewed by Simon Hausmann.
929
930         [Qt] Add support for mocking touch events with QtLauncher
931         https://bugs.webkit.org/show_bug.cgi?id=32434
932
933         * QtLauncher/main.cpp:
934         (MainWindow::MainWindow):
935         (MainWindow::sendTouchEvent):
936         (MainWindow::eventFilter):
937         (MainWindow::setTouchMocking):
938         (MainWindow::setupUI):
939
940 2009-12-14  Holger Hans Peter Freyther  <zecke@selfish.org>
941
942         Reviewed by Kenneth Rohde Christiansen.
943
944         [Qt] Fix JavaScript prompt behavior for empty/null strings.
945         https://bugs.webkit.org/show_bug.cgi?id=30914
946
947         The patch is based on the work done by Gupta Manish.
948
949         In the default implementation of the JavaScript prompt
950         we are using a QInputDialog to get the text and this has
951         one quirk with regard to not entering any text.
952
953         In other WebKit ports and in Firefox an empty string is
954         returned but in the Qt case it is a null string.
955
956         Change the API documentation in QWebPage to mention we want to
957         have a non null string but do the fixup in the ChromeClientQt
958         to support existing code.
959
960         * Api/qwebpage.cpp:
961         (QWebPage::javaScriptPrompt): Change API documentation
962         * WebCoreSupport/ChromeClientQt.cpp:
963         (WebCore::ChromeClientQt::runJavaScriptPrompt): Fixup null QString
964
965 2009-11-24  Holger Hans Peter Freyther  <zecke@selfish.org>
966
967         Reviewed by Simon Hausmann.
968
969         [Qt] Do not disable the inspector on show and hide
970         https://bugs.webkit.org/show_bug.cgi?id=31851
971
972         On Qt/X11 with some window managers the window will be
973         hidden when switching windows. In this case all the results
974         are gone when coming back to the window.
975
976         Attempt to use the CloseEvent to figure out if the window
977         was closed and withdrawn as this is more friendly to the
978         user of the inspector client.
979
980         * Api/qwebinspector.cpp:
981         (QWebInspector::hideEvent):
982         (QWebInspector::closeEvent):
983         * Api/qwebinspector.h:
984
985 2009-12-14  Benjamin Poulain  <benjamin.poulain@nokia.com>
986
987         Reviewed by Kenneth Rohde Christiansen.
988
989         [Qt] Improve the autotests of QtWebkit
990         https://bugs.webkit.org/show_bug.cgi?id=32216
991
992         Refactor tst_qwebelement to remove the qWait()
993
994         * tests/qwebelement/tst_qwebelement.cpp:
995         (tst_QWebElement::style):
996
997 2009-12-14  Andreas Kling  <andreas.kling@nokia.com>
998
999         Reviewed by Simon Hausmann.
1000
1001         Fix the QWebPage inputMethods() autotest after r51758
1002         to compare the Qt::ImFont property's family against an explicitly
1003         previously configured family.
1004
1005         https://bugs.webkit.org/show_bug.cgi?id=32491
1006
1007         * tests/qwebpage/tst_qwebpage.cpp:
1008         (tst_QWebPage::inputMethods):
1009
1010 2009-12-13  Sam Weinig  <sam@webkit.org>
1011
1012         Reviewed by Dan Bernstein.
1013
1014         Fix for https://bugs.webkit.org/show_bug.cgi?id=32499
1015         Add client based Geolocation provider
1016
1017         Add first cut of a client based Geolocation provider. This is guarded by
1018         ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a
1019         GeolocationControllerClient interface that no-one currently implements,
1020         but will in a subsequent patch.
1021
1022         * Api/qwebpage.cpp:
1023         (QWebPagePrivate::QWebPagePrivate):
1024
1025 2009-12-13  Benjamin Poulain  <benjamin.poulain@nokia.com>
1026
1027         Reviewed by Simon Hausmann.
1028
1029         Add a test in Qt for https://bugs.webkit.org/show_bug.cgi?id=29005
1030         https://bugs.webkit.org/show_bug.cgi?id=29008
1031
1032         * tests/qwebframe/tst_qwebframe.cpp:
1033
1034 2009-12-13  Simon Hausmann  <hausmann@webkit.org>
1035
1036         Reviewed by Holger Freyther.
1037
1038         [Qt] Re-enable QWebView::renderHints property for Qt for Symbian
1039
1040         https://bugs.webkit.org/show_bug.cgi?id=28273
1041
1042         The bug in Qt's moc that triggered a linking error when declaring this
1043         property has been fixed and we can remove the workaround.
1044
1045         * Api/qwebview.h:
1046
1047 2009-12-11  Yael Aharon  <yael.aharon@nokia.com>
1048
1049         Unreviewed build fix for Qt versions < 4.6.
1050
1051         * tests/qwebframe/tst_qwebframe.cpp:
1052         * tests/qwebview/tst_qwebview.cpp:
1053         (tst_QWebView::reusePage):
1054
1055 2009-12-11  Girish Ramakrishnan  <girish@forwardbias.in>
1056
1057         Reviewed by Tor Arne Vestbø.
1058
1059         [Qt] Updated QWebElement documentation
1060         
1061         findAll() returns a QWebElementCollection, not QList<QWebElement>.
1062
1063         * docs/webkitsnippets/webelement/main.cpp:
1064         (findAll):
1065
1066 2009-12-11  Simon Hausmann  <hausmann@webkit.org>, Kim Grönholm  <kim.gronholm@nomovok.com>
1067
1068         Reviewed by Antti Koivisto.
1069
1070         Forward Qt touch events to the event handler as platform touch events.
1071
1072         https://bugs.webkit.org/show_bug.cgi?id=32114
1073
1074         * Api/qwebpage.cpp:
1075         (QWebPagePrivate::touchEvent):
1076         (QWebPage::event):
1077         * Api/qwebpage_p.h:
1078
1079 2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
1080
1081         Reviewed by Kenneth Rohde Christiansen.
1082
1083         [Qt] Improve the autotests of QtWebkit
1084         https://bugs.webkit.org/show_bug.cgi?id=32216
1085
1086         Remove the calls to qWait() of the autotest of QWebView
1087
1088         * tests/qwebview/tst_qwebview.cpp:
1089         (tst_QWebView::reusePage):
1090
1091 2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
1092
1093         Reviewed by Kenneth Rohde Christiansen.
1094
1095         [Qt] Improve the autotests of QtWebkit
1096         https://bugs.webkit.org/show_bug.cgi?id=32216
1097
1098         Refactor tst_qwebframe to remove qWait() and use
1099         the function waitForSignal() from util.h
1100
1101         * tests/qwebframe/tst_qwebframe.cpp:
1102
1103 2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
1104
1105         Reviewed by Kenneth Rohde Christiansen.
1106
1107         [Qt] Improve the autotests of QtWebkit
1108         https://bugs.webkit.org/show_bug.cgi?id=32216
1109
1110         Refactor the test of QGraphicsWebView:
1111         -make waitForSignal() available to all the tests.
1112         -remove QTest::qWait()
1113
1114         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1115         (tst_QGraphicsWebView::crashOnViewlessWebPages):
1116         * tests/util.h:
1117         (waitForSignal):
1118
1119 2009-12-07  Girish Ramakrishnan  <girish@forwardbias.in>
1120
1121         Reviewed by Simon Hausmann.
1122
1123         [Qt] Plugins: Force windowless mode when there is no native window handle
1124         
1125         Inject wmode=opaque while instantiating the plugin for the case when the
1126         webpage is not backed by a native window handle.
1127         
1128         https://bugs.webkit.org/show_bug.cgi?id=32059
1129
1130         * WebCoreSupport/FrameLoaderClientQt.cpp:
1131         (WebCore::FrameLoaderClientQt::createPlugin):
1132
1133 2009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1134
1135         Reviewed by Kenneth Rohde Christiansen.
1136
1137         [Qt] Corrects QtLauncher style
1138
1139         * QtLauncher/main.cpp:
1140         (WebPage::acceptNavigationRequest):
1141         (MainWindow::MainWindow):
1142         (MainWindow::webPage):
1143         (MainWindow::webView):
1144         (MainWindow::changeLocation):
1145         (MainWindow::loadFinished):
1146         (MainWindow::showLinkHover):
1147         (MainWindow::zoomIn):
1148         (MainWindow::zoomOut):
1149         (MainWindow::print):
1150         (MainWindow::setEditable):
1151         (MainWindow::dumpHtml):
1152         (MainWindow::selectElements):
1153         (MainWindow::newWindow):
1154         (MainWindow::setupUI):
1155         (WebPage::createWindow):
1156         (WebPage::createPlugin):
1157         (main):
1158
1159 2009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1160
1161         Reviewed by Kenneth Rohde Christiansen.
1162
1163         [Qt] QtLauncher: add a menu to show or hide the web inspector.
1164         https://bugs.webkit.org/show_bug.cgi?id=32149
1165
1166         * QtLauncher/main.cpp:
1167         (WebInspector::WebInspector):
1168         (WebInspector::showEvent):
1169         (WebInspector::hideEvent):
1170         (MainWindow::MainWindow):
1171         (MainWindow::setupUI):
1172
1173 2009-12-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1174
1175         Reviewed by Antti Koivisto.
1176
1177         Split out the renderPrivate in two methods, one for working on
1178         relative coordinates (relative to the viewport) and one for
1179         working on absolute coordinates. The latter is more effecient
1180         for implementing tiling, as you don't need translate the coords,
1181         and because it avoid clipping to the viewport.
1182
1183         No behaviour changes, so no new tests.
1184
1185         * Api/qwebframe.cpp:
1186         (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
1187         (QWebFramePrivate::renderRelativeCoords):
1188         (QWebFrame::render):
1189         * Api/qwebframe_p.h:
1190
1191 2009-12-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1192
1193         Reviewed by Simon Hausmann.
1194
1195         [Qt] Allow removing 'qrc' as a local security origin scheme
1196
1197         * tests/qwebpage/tst_qwebpage.cpp:
1198
1199 2009-12-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1200
1201         Reviewed by Simon Hausmann.
1202
1203         [Qt] Clean up argument parsing in the QtLauncher
1204
1205         * QtLauncher/main.cpp:
1206
1207 2009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1208
1209         Reviewed by Kenneth Rohde Christiansen.
1210
1211         [Qt] Prevent the inspector from closing its wrapping widget.
1212         This is not necessary anymore since we now hide the embedded
1213         close button.
1214         https://bugs.webkit.org/show_bug.cgi?id=32149
1215
1216         * WebCoreSupport/InspectorClientQt.cpp:
1217         (WebCore::InspectorClientQt::showWindow):
1218         (WebCore::InspectorClientQt::closeWindow):
1219
1220 2009-12-03  İsmail Dönmez  <ismail@namtrac.org>
1221
1222         Reviewed by Eric Seidel.
1223
1224         Fix compilation when SVG is disabled.
1225
1226         * Api/qwebframe.cpp:
1227         (qt_drt_pauseSVGAnimation):
1228
1229 2009-12-03  Brady Eidson  <beidson@apple.com>
1230
1231         Reviewed by Sam Weinig.
1232
1233         <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
1234
1235         * WebCoreSupport/FrameLoaderClientQt.cpp:
1236         (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
1237         (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
1238         (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
1239         * WebCoreSupport/FrameLoaderClientQt.h:
1240
1241 2009-12-03  Pavel Feldman  <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
1242
1243         Reviewed by Timothy Hatcher.
1244
1245         Web Inspector: Simplify the settings support in inspector controller.
1246
1247         https://bugs.webkit.org/show_bug.cgi?id=32076
1248
1249         * WebCoreSupport/InspectorClientQt.cpp:
1250         (WebCore::InspectorClientQt::populateSetting):
1251         (WebCore::InspectorClientQt::storeSetting):
1252         (WebCore::variantToSetting):
1253         (WebCore::settingToVariant):
1254         * WebCoreSupport/InspectorClientQt.h:
1255
1256 2009-12-03  Ben Murdoch  <benm@google.com>
1257
1258         Reviewed by Brady Eidson.
1259
1260         [Android] The FrameLoaderClient is unaware of BackForwardList changes.
1261         https://bugs.webkit.org/show_bug.cgi?id=31914
1262
1263         * WebCoreSupport/FrameLoaderClientQt.cpp:
1264         (WebCore::FrameLoaderClientQt::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
1265         (WebCore::FrameLoaderClientQt::dispatchDidRemoveBackForwardItem): ditto.
1266         (WebCore::FrameLoaderClientQt::dispatchDidChangeBackForwardIndex): ditto.
1267         * WebCoreSupport/FrameLoaderClientQt.h:
1268
1269 2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
1270
1271         Not reviewed. Try to fix Qt build.
1272
1273         * Api/qwebframe.cpp:
1274         (qt_drt_pauseSVGAnimation):
1275
1276 2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
1277
1278         Reviewed by Simon Fraser.
1279
1280         Add SVG animation test framework with 'snapshot' functionality
1281         https://bugs.webkit.org/show_bug.cgi?id=31897
1282
1283         Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
1284         forwarding the call to SVGDocumentExtensions, if SVG is enabled.
1285
1286         Implemented just like the existing pauseAnimation* methods for CSS animations.
1287
1288         * Api/qwebframe.cpp:
1289         (qt_drt_pauseSVGAnimation):
1290
1291 2009-12-01  Daniel Bates  <dbates@webkit.org>
1292
1293         Reviewed by Kenneth Rohde Christiansen.
1294
1295         https://bugs.webkit.org/show_bug.cgi?id=31898
1296
1297         Makes QtLauncher default to the http scheme for URLs.
1298
1299         * QtLauncher/main.cpp:
1300         (MainWindow::MainWindow):
1301         (MainWindow::changeLocation):
1302         (main):
1303
1304 2009-11-30  Abhinav Mithal  <abhinav.mithal@nokia.com>
1305
1306         Reviewed by Simon Hausmann.
1307
1308         [Qt][Symbian] Report SymbianOS in user agent string for Symbian
1309         https://bugs.webkit.org/show_bug.cgi?id=31961
1310
1311         * Api/qwebpage.cpp:
1312         (QWebPage::userAgentForUrl):
1313
1314 2009-11-30  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1315
1316         Reviewed by Kenneth Rohde Christiansen.
1317
1318         [Qt] Fix minor waning in QtWebKit
1319         https://bugs.webkit.org/show_bug.cgi?id=31963
1320
1321         * tests/qwebpage/tst_qwebpage.cpp:
1322         (ErrorPage::extension): Remove info wariable as it is
1323         not used.
1324
1325 2009-11-28  Simon Hausmann  <simon.hausmann@nokia.com>
1326
1327         Reviewed by Kenneth Rohde Christiansen.
1328
1329         [Qt] SoftwareInputPanelRequest event sent when clicking in newly loaded page
1330
1331         https://bugs.webkit.org/show_bug.cgi?id=31401
1332
1333         Don't set the event unless there is a focused node we can use
1334         for editing afterwards.
1335
1336         * Api/qwebpage.cpp:
1337         (QWebPagePrivate::handleSoftwareInputPanel):
1338         * tests/qwebpage/tst_qwebpage.cpp:
1339         (tst_QWebPage::inputMethods):
1340
1341 2009-11-26  Simon Hausmann  <simon.hausmann@nokia.com>
1342
1343         Rubber-stamped by Holger Freyther.
1344
1345         Removed unused ICO image plugin handler.
1346
1347         * Plugins/ICOHandler.cpp: Removed.
1348         * Plugins/ICOHandler.h: Removed.
1349         * Plugins/Plugins.pro: Removed.
1350
1351 2009-11-12  Holger Hans Peter Freyther  <zecke@selfish.org>
1352
1353         Reviewed by Kenneth Rohde Christiansen.
1354
1355         [Qt] Do not show the QWidget when the WebCore::Widget is hidden
1356         https://bugs.webkit.org/show_bug.cgi?id=31203
1357
1358         The clipping code was making a QWidget visible even if the
1359         WebCore::Widget was hidden. Fix the bug by calling setVisible
1360         only if the WebCore::Widget Widget::isSelfVisible.
1361
1362         * WebCoreSupport/FrameLoaderClientQt.cpp:
1363         (WebCore::QtPluginWidget::show): Override WebCore::Widget::show to call handleVisibility
1364         (WebCore::QtPluginWidget::handleVisibility): New method to call setVisible when we are visible
1365         (FrameLoaderClientQt::createPlugin): Hide the QWidget by default
1366
1367 2009-11-23  David Boddie  <dboddie@trolltech.com>
1368
1369         Reviewed by Simon Hausmann.
1370
1371         Updated the QWebElement documentation with links to examples and
1372         external resources.
1373         Fixed the project file for the webelement snippet and tidied up the
1374         markers used for quoting the code.
1375
1376         * Api/qwebelement.cpp:
1377         * docs/webkitsnippets/webelement/main.cpp:
1378         (findAll):
1379         * docs/webkitsnippets/webelement/webelement.pro:
1380
1381 2009-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
1382
1383         Reviewed by Kenneth Rohde Christiansen.
1384
1385         [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
1386         the wrapped object died before the gc removed the instance.
1387
1388         https://bugs.webkit.org/show_bug.cgi?id=31681
1389
1390         Added a unit-test to verify that wrapping a QObject with the
1391         same identity as a previously but now dead object works.
1392
1393         * tests/qwebframe/tst_qwebframe.cpp:
1394
1395 2009-11-19  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1396
1397         Reviewed by Kenneth Rohde Christiansen.
1398
1399         [Qt] Add instantiation tests for QWebInspector.
1400
1401         * tests/qwebinspector/qwebinspector.pro: Added.
1402         * tests/qwebinspector/tst_qwebinspector.cpp: Added.
1403         (tst_QWebInspector::attachAndDestroy):
1404         * tests/tests.pro:
1405
1406 2009-11-19  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1407
1408         Reviewed by Kenneth Rohde Christiansen.
1409
1410         [Qt] Fix QWebInspector destruction problem.
1411         https://bugs.webkit.org/show_bug.cgi?id=31664
1412
1413         * Api/qwebpage.cpp:
1414         (QWebPage::~QWebPage):
1415
1416 2009-11-19  Olivier Goffart  <ogoffart@trolltech.com>
1417
1418         Reviewed by Simon Hausmann.
1419
1420         [Qt] Normalize signal and slot signatures.
1421
1422         * Api/qgraphicswebview.cpp:
1423         (QGraphicsWebView::setPage):
1424         * Api/qwebview.cpp:
1425         (QWebView::setPage):
1426         * WebCoreSupport/FrameLoaderClientQt.cpp:
1427         (WebCore::FrameLoaderClientQt::setFrame):
1428         * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
1429         (wrapInFunction):
1430         * tests/qwebframe/tst_qwebframe.cpp:
1431         * tests/qwebpage/tst_qwebpage.cpp:
1432         (tst_QWebPage::modified):
1433         (tst_QWebPage::database):
1434
1435 2009-11-18  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1436
1437         Reviewed by Kenneth Rohde Christiansen.
1438
1439         [Qt] Remove support for Qt v4.3 or older versions
1440         https://bugs.webkit.org/show_bug.cgi?id=29469
1441
1442         * Api/qcookiejar.cpp: Removed.
1443         * Api/qcookiejar.h: Removed.
1444         * Api/qgraphicswebview.cpp:
1445         (QGraphicsWebView::event):
1446         * Api/qwebframe.cpp:
1447         (QWebFrame::load):
1448         * Api/qwebframe.h:
1449         * Api/qwebkitglobal.h:
1450         * Api/qwebnetworkinterface.cpp: Removed.
1451         * Api/qwebnetworkinterface.h: Removed.
1452         * Api/qwebnetworkinterface_p.h: Removed.
1453         * Api/qwebpage.cpp:
1454         (QWebPagePrivate::QWebPagePrivate):
1455         (QWebPagePrivate::acceptNavigationRequest):
1456         (QWebPage::acceptNavigationRequest):
1457         (QWebPage::action):
1458         (QWebPage::userAgentForUrl):
1459         * Api/qwebpage.h:
1460         * Api/qwebpage_p.h:
1461         * Api/qwebview.cpp:
1462         (QWebView::load):
1463         (QWebView::event):
1464         * Api/qwebview.h:
1465         * QtLauncher/main.cpp:
1466         (MainWindow::print):
1467         (MainWindow::setupUI):
1468         (main):
1469         * WebCoreSupport/FrameLoaderClientQt.cpp:
1470         (WebCore::FrameLoaderClientQt::download):
1471         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1472         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1473         (WebCore::FrameLoaderClientQt::startDownload):
1474         (WebCore::FrameLoaderClientQt::createPlugin):
1475
1476 2009-11-18  Shu Chang  <Chang.Shu@nokia.com>
1477
1478         Reviewed by Eric Seidel.
1479
1480         [Qt] Add support for displaying deleteButton.
1481         https://bugs.webkit.org/show_bug.cgi?id=31560
1482
1483         Test: LayoutTests/editing/deleting/5408255.html
1484
1485         * Api/qwebsettings.cpp:
1486         (graphics):
1487         * Api/qwebsettings.h:
1488
1489 2009-11-18  Paul Olav Tvete  <paul.tvete@nokia.com>
1490
1491         Reviewed by Simon Hausmann.
1492
1493         [Qt] Make the QWebElement::render() test pass when pixmaps aren't 32 bit.
1494
1495         * tests/qwebelement/tst_qwebelement.cpp:
1496         (tst_QWebElement::render):
1497
1498 2009-11-18  Simon Hausmann  <simon.hausmann@nokia.com>
1499
1500         Reviewed by Tor Arne Vestbø.
1501
1502         Clarify and simplify the legal section in the overview documentation,
1503         after review with our legal team.
1504
1505         * docs/qtwebkit.qdoc:
1506
1507 2009-11-18  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1508
1509         Reviewed by Simon Hausmann.
1510
1511         [Qt] Add QtLauncher support for opening links in the default browser
1512
1513         This can be triggered by either the context menu or by clicking a link
1514         while holding down the Alt key. Opening a link in a new windows is
1515         triggered by holding down Shift.
1516
1517         * QtLauncher/main.cpp:
1518
1519 2009-11-17  Yael Aharon  <yael.aharon@nokia.com>
1520
1521         Reviewed by Kenneth Rohde Christiansen.
1522
1523         [Qt] QGLLauncher does not support drag&drop of local files
1524         https://bugs.webkit.org/show_bug.cgi?id=31057
1525
1526         Enable accepting files in QGraphicsWebView.
1527
1528         * Api/qgraphicswebview.cpp:
1529         (QGraphicsWebView::QGraphicsWebView):
1530         (QGraphicsWebView::dragEnterEvent):
1531
1532 2009-11-17  Antonio Gomes  <tonikitoo@webkit.org>
1533
1534         Reviewed by Kenneth Christiansen.
1535
1536         [Qt] better test coverage for ErrorPageExtension
1537         https://bugs.webkit.org/show_bug.cgi?id=31583
1538
1539         Improved the coverage of current ErrorPageExtension tests by
1540         adding autotests involving frameset and iframes.
1541
1542         * tests/qwebpage/tst_qwebpage.cpp:
1543         (ErrorPage::extension): Make the ErrorPageExtension
1544         to work for all frames, not only the main frame.
1545         (tst_QWebPage::errorPageExtension): Stop using
1546         the 'frameset.html' resouce in this method since
1547         an autotest specific for frameset's is being added.
1548         (tst_QWebPage::errorPageExtensionInIFrames): Added.
1549         (tst_QWebPage::errorPageExtensionInFrameset): Added.
1550
1551 2009-11-16  Simon Hausmann  <simon.hausmann@nokia.com>
1552
1553         Reviewed by Kenneth Rohde Christiansen.
1554
1555         API documentation fixes.
1556
1557         * Api/qgraphicswebview.cpp: Removed duplicate docs.
1558         * Api/qwebelement.cpp: Added missing docs.
1559         * Api/qwebsettings.cpp: Ditto.
1560
1561 2009-11-14  Antonio Gomes  <tonikitoo@webkit.org>
1562
1563         Reviewed by Antti Koivisto.
1564
1565         [Qt] Broken back/forward after using ErrorPageExtension to set error page
1566         https://bugs.webkit.org/show_bug.cgi?id=30573
1567
1568         Implemented autotests for covering the back/forward
1569         reset problem involving error pages.
1570
1571         * tests/qwebpage/tst_qwebpage.cpp:
1572         (tst_QWebPage::errorPageExtension):
1573
1574 2009-11-13  Adam Roben  <aroben@apple.com>
1575
1576         Update for changes to FrameLoaderClient
1577
1578         Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
1579         window objects in isolated worlds are cleared
1580
1581         Reviewed by Dave Hyatt.
1582
1583         * WebCoreSupport/FrameLoaderClientQt.cpp:
1584         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
1585         * WebCoreSupport/FrameLoaderClientQt.h:
1586         Replaced windowObjectCleared with this function. Does nothing if the
1587         passed-in world is not the mainThreadNormalWorld().
1588
1589 2009-11-13  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
1590
1591         Reviewed by Kenneth Rohde Christiansen.
1592
1593         [Qt] Enable Page Cache if setMaximumPagesInCache needs it.
1594         This fixes https://bugs.webkit.org/show_bug.cgi?id=31266.
1595
1596         * Api/qwebsettings.cpp:
1597         (QWebSettingsPrivate::apply):
1598         (QWebSettings::setMaximumPagesInCache):
1599
1600 2009-11-13  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1601
1602         Reviewed by Kenneth Rohde Christiansen.
1603
1604         [Qt] Fix initial QWebView focus behavior.
1605
1606         focusController->setFocused(true) was not always called.
1607         https://bugs.webkit.org/show_bug.cgi?id=31466
1608
1609         * Api/qwebpage.cpp:
1610         (QWebPagePrivate::focusInEvent):
1611
1612 2009-11-13  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1613
1614         Reviewed by Simon Hausmann.
1615
1616         Update documentation for the Qt API
1617
1618         * Api/qgraphicswebview.cpp:
1619         * Api/qwebelement.cpp:
1620         * Api/qwebframe.cpp:
1621         * Api/qwebsettings.cpp:
1622         * Api/qwebview.cpp:
1623
1624 2009-11-13  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1625
1626         Reviewed by Simon Hausmann.
1627
1628         Use correct install-path when running qdoc3
1629
1630         * docs/docs.pri:
1631
1632 2009-11-12  Shinichiro Hamaji  <hamaji@chromium.org>
1633
1634         Reviewed by Darin Adler.
1635
1636         externalRepresentation should take Frame as the argument
1637         https://bugs.webkit.org/show_bug.cgi?id=31393
1638
1639         No new tests as this is just a refactoring.
1640
1641         * Api/qwebframe.cpp:
1642         (QWebFrame::renderTreeDump):
1643
1644 2009-11-12  Antonio Gomes  <tonikitoo@webkit.org>
1645
1646         Reviewed by Jan Alonzo.
1647
1648         [Qt] Various doc fixes
1649         https://bugs.webkit.org/show_bug.cgi?id=31358
1650
1651         QWebPage's constructor docs are mentioning "QWebView":
1652         "Constructs an empty QWebView with parent".
1653
1654         * Api/qwebpage.cpp:
1655
1656 2009-11-12  Benjamin Poulain  <benjamin.poulain@nokia.com>
1657
1658         Reviewed by Kenneth Rohde Christiansen.
1659
1660         Custom printing shrink factors
1661         https://bugs.webkit.org/show_bug.cgi?id=29042
1662
1663         This reverts commit r49769. The public API for this needs to be reviewed
1664         before its inclusion in Qt.
1665
1666         * Api/qwebsettings.cpp:
1667         (QWebSettingsPrivate::apply):
1668         (QWebSettings::QWebSettings):
1669         * Api/qwebsettings.h:
1670
1671 2009-11-11  Antonio Gomes  <tonikitoo@webkit.org>
1672
1673         Reviewed by Kenneth Christiansen.
1674
1675         [Qt] Various doc fixes
1676         https://bugs.webkit.org/show_bug.cgi?id=31358
1677
1678         Fixed wrong documentation: item's dimensions do fit to Web page
1679         content by default.
1680
1681         Kenneth agreed to land this as a followup patch to the
1682         just landed documentation patch.
1683
1684         * Api/qgraphicswebview.cpp:
1685
1686 2009-11-11  David Boddie  <dboddie@trolltech.com>
1687
1688         Reviewed by Kenneth Christiansen.
1689
1690         [Qt] Various doc fixes
1691         https://bugs.webkit.org/show_bug.cgi?id=31323
1692
1693         Fixed and synchronized QWebView related documentation.
1694
1695         * Api/qgraphicswebview.cpp:
1696         * Api/qwebview.cpp:
1697
1698 2009-11-11  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1699
1700         Unreviewed buildbot fix.
1701
1702         Export a method to the DRT to know if the document has a
1703         document element.
1704
1705         * Api/qwebframe.cpp:
1706         (qt_drt_hasDocumentElement):
1707
1708 2009-11-11  Liang QI  <liang.qi@nokia.com>
1709
1710         [Qt] Fix tst_qwebpage and tst_qwebframe compilation on Symbian.
1711
1712         * tests/qwebframe/qwebframe.pro:
1713         * tests/qwebframe/tst_qwebframe.cpp:
1714         * tests/qwebpage/qwebpage.pro:
1715         * tests/qwebpage/tst_qwebpage.cpp:
1716
1717 2009-11-11  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1718
1719         Reviewed by Simon Hausmann.
1720
1721         Fix a crash in the layout test plugins/document-open.html
1722
1723         * Api/qwebframe.cpp:
1724         (QWebFrame::toPlainText):
1725
1726 2009-11-11  Warwick Allison  <warwick.allison@nokia.com>, Simon Hausmann  <simon.hausmann@nokia.com>
1727
1728         Reviewed by Tor Arne Vestbø.
1729
1730         [Qt] Regression: Preserve the parent of plugin objects when using
1731         QtWebKit with only a QWebPage.
1732
1733         * WebCoreSupport/FrameLoaderClientQt.cpp:
1734         (WebCore::FrameLoaderClientQt::createPlugin): Don't reparent
1735         plugins to 0.
1736         * tests/qwebpage/tst_qwebpage.cpp:
1737         (PluginCounterPage::PluginCounterPage): Initialize m_pluginParent to 0.
1738         (PluginCounterPage::~PluginCounterPage): Delete the plugin parent later
1739         (after the page)
1740         (PluginTracerPage::createPlugin): Assign a dummy parent to the plugin.
1741         (PluginTracerPage::PluginTracerPage): Set up the plugin parent.
1742         (tst_QWebPage::createViewlessPlugin): Verify that for viewless pages the
1743         plugin parent remains unchanged.
1744
1745 2009-11-11  David Boddie  <dboddie@trolltech.com>
1746
1747         [Qt] Doc: Added internal or hidden placeholder documentation.
1748
1749         * Api/qwebpage.cpp:
1750
1751 2009-11-11  Martin Smith  <msmith@trolltech.com>
1752
1753         [Qt] doc: Changed Trolltech to Nokia
1754
1755         * Api/qwebview.cpp:
1756
1757 2009-11-11  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1758
1759         Reviewed by Kenneth Rohde Christiansen.
1760
1761         https://bugs.webkit.org/show_bug.cgi?id=31323
1762         Fix a few compiler warnings
1763
1764         * tests/qwebframe/tst_qwebframe.cpp: Add extra brackets 
1765         to make it explicit where the else case belongs
1766
1767 2009-11-11  Simon Hausmann  <simon.hausmann@nokia.com>
1768
1769         Reviewed by Tor Arne Vestbø.
1770
1771         Fix enabling of software input panel when activating editable elements
1772         in QGraphicsWebView.
1773
1774         * Api/qgraphicswebview.cpp:
1775         (QGraphicsWebViewPrivate::inputMethodEnabled): Implement method to
1776         query for input method support.
1777         * Api/qwebpage.cpp:
1778         (QWebPageWidgetClient::inputMethodEnabled): Ditto for QWidget.
1779         (QWebPagePrivate::handleSoftwareInputPanel): Don't use view() to
1780         test for input method support. Instead query using QWebPageClient
1781         and send the SIPR event to the ownerWidget() instead of the view().
1782         The latter is null for QGraphicsWebView.
1783         * tests/qwebpage/tst_qwebpage.cpp:
1784         (EventSpy::EventSpy):
1785         (EventSpy::eventFilter):
1786         (tst_QWebPage::inputMethods): Modify the test to verify that SIPR
1787         events are dispatched when activating focusable content.
1788
1789 2009-11-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1790
1791         Unreviewed documentation fixes.
1792
1793         Added a few improvements from Jocelyn Turcotte to the
1794         createWindow docs.
1795
1796         * Api/qwebview.cpp:
1797
1798 2009-11-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1799
1800         Unreviewed documentation fix.
1801
1802         [Qt] Make qwebpage's createWindow not qwebview dependent.
1803         https://bugs.webkit.org/show_bug.cgi?id=30771
1804
1805         Update documentation to make it clear that a reimplementation
1806         of the createWindow method of the associated QWebPage can
1807         result in the QWebView::createWindow method to never be called.
1808
1809         * Api/qwebview.cpp:
1810
1811 2009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1812
1813         Reviewed by Kenneth Rohde Christiansen.
1814
1815         [Qt] Few classes have virtual functions but non-virtual destructor
1816         https://bugs.webkit.org/show_bug.cgi?id=31269
1817
1818         * Api/qgraphicswebview.cpp:
1819         (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): Add virtual
1820         destructor.
1821
1822 2009-11-09  Benjamin Poulain  <benjamin.poulain@nokia.com>
1823
1824         Reviewed by Kenneth Rohde Christiansen.
1825
1826         https://bugs.webkit.org/show_bug.cgi?id=30628
1827         Add an API to get all the attributes from a QWebElement.
1828
1829         * Api/qwebelement.cpp:
1830         (QWebElement::attributesName):
1831         * Api/qwebelement.h:
1832         * tests/qwebelement/tst_qwebelement.cpp:
1833         (tst_QWebElement::listAttributes):
1834
1835 2009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1836
1837         Reviewed by Kenneth Rohde Christiansen.
1838
1839         Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
1840         https://bugs.webkit.org/show_bug.cgi?id=31040
1841
1842         * Api/qwebpage.cpp:
1843         (QWebPagePrivate::handleScrolling):
1844
1845 2009-11-09  Mark Mentovai  <mark@chromium.org>
1846
1847         Reviewed by Dan Bernstein.
1848
1849         Track "can have scrollbar" state within FrameView independently of the
1850         individual scrollbar states in ScrollView.
1851
1852         rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
1853         REGRESSION (r48064): mint.com loses scrollbars after coming out of
1854         edit mode.
1855
1856         rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
1857         REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
1858
1859         Test: fast/overflow/scrollbar-restored.html
1860
1861         * Api/qwebframe.cpp:
1862         (QWebFrame::setScrollBarPolicy):
1863
1864 2009-11-09  Benjamin Poulain  <benjamin.poulain@nokia.com>
1865
1866         Reviewed by Kenneth Rohde Christiansen.
1867
1868         https://bugs.webkit.org/show_bug.cgi?id=30772
1869         Add a non-const iterator to QWebElementCollection.
1870         Move the two attributes of the iterator to private.
1871
1872         * Api/qwebelement.h:
1873         (const_iterator::begin):
1874         (const_iterator::end):
1875         (const_iterator::constBegin):
1876         (const_iterator::constEnd):
1877         (const_iterator::iterator::iterator):
1878         (const_iterator::iterator::operator*):
1879         (const_iterator::iterator::operator==):
1880         (const_iterator::iterator::operator!=):
1881         (const_iterator::iterator::operator<):
1882         (const_iterator::iterator::operator<=):
1883         (const_iterator::iterator::operator>):
1884         (const_iterator::iterator::operator>=):
1885         (const_iterator::iterator::operator++):
1886         (const_iterator::iterator::operator--):
1887         (const_iterator::iterator::operator+=):
1888         (const_iterator::iterator::operator-=):
1889         (const_iterator::iterator::operator+):
1890         (const_iterator::iterator::operator-):
1891         * tests/qwebelement/tst_qwebelement.cpp:
1892         (tst_QWebElement::nonConstIterator):
1893         (tst_QWebElement::constIterator):
1894
1895 2009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1896
1897         Reviewed by Kenneth Christiansen.
1898
1899         [Qt] Remove the sessionStorage setting (per Page)
1900         https://bugs.webkit.org/show_bug.cgi?id=31249
1901
1902         This setting allows to run sessionStorage on/off on a per page
1903         basis. Remove this prematurely exposed API.
1904
1905         * Api/qwebsettings.cpp:
1906         (QWebSettingsPrivate::apply):
1907         (QWebSettings::QWebSettings):
1908         * tests/qwebpage/tst_qwebpage.cpp:
1909         (tst_QWebPage::database):
1910         (tst_QWebPage::testOptionalJSObjects):
1911
1912 2009-11-09  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1913
1914         Reviewed by Simon Hausmann.
1915
1916         [Qt] Remove the QWebPage:webInspectorTriggered signal.
1917         User customization of the communication between QWebPage
1918         and QWebInspector will be properly designed in the next version.
1919         https://bugs.webkit.org/show_bug.cgi?id=30773
1920
1921         * Api/qwebinspector.cpp:
1922         * Api/qwebpage.cpp:
1923         (QWebPagePrivate::getOrCreateInspector):
1924         (QWebPage::triggerAction):
1925         * Api/qwebpage.h:
1926         * QtLauncher/main.cpp:
1927         (MainWindow::MainWindow):
1928
1929 2009-11-05  Simon Hausmann  <hausmann@webkit.org>
1930
1931         Reviewed by Tor Arne Vestbø.
1932
1933         Added a missing re-implementation of QGraphicsItem::inputMethodQuery().
1934
1935         * Api/qgraphicswebview.cpp:
1936         (QGraphicsWebView::inputMethodQuery):
1937         * Api/qgraphicswebview.h:
1938
1939 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
1940
1941         Reviewed by Tor Arne Vestbø.
1942
1943         Provide a dummy re-implementation of QGraphicsLayoutItem::sizeHint(),
1944         similar to QWebView.
1945
1946         * Api/qgraphicswebview.cpp:
1947         (QGraphicsWebView::sizeHint):
1948         * Api/qgraphicswebview.h:
1949
1950 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
1951
1952         Reviewed by Tor Arne Vestbø.
1953
1954         Removed zoomFactoryChanged() signal and added
1955         linkClicked() to QGraphicsWebView, for consistency with
1956         QWebView.
1957
1958         * Api/qgraphicswebview.cpp:
1959         (QGraphicsWebView::setPage):
1960         (QGraphicsWebView::setZoomFactor):
1961         * Api/qgraphicswebview.h:
1962
1963 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
1964
1965         Reviewed by Tor Arne Vestbø.
1966
1967         Added QGraphicsWebView::findText() for convenience and consistency
1968         with QWebView.
1969
1970         * Api/qgraphicswebview.cpp:
1971         (QGraphicsWebView::findText):
1972         * Api/qgraphicswebview.h:
1973
1974 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
1975
1976         Reviewed by Tor Arne Vestbø.
1977
1978         Added QGraphicsWebView::pageAction() and triggerPageAction(), for
1979         consistency with QWebView.
1980
1981         * Api/qgraphicswebview.cpp:
1982         (QGraphicsWebView::pageAction):
1983         (QGraphicsWebView::triggerPageAction):
1984         * Api/qgraphicswebview.h:
1985
1986 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
1987
1988         Reviewed by Tor Arne Vestbø.
1989
1990         Removed QGraphicsWebView::toHtml() after API review.
1991
1992         That's consistent with QWebView and also based on the assumption that
1993         toHtml() is called less frequently than setHtml().
1994
1995         * Api/qgraphicswebview.cpp:
1996         * Api/qgraphicswebview.h:
1997         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1998         (tst_QGraphicsWebView::qgraphicswebview):
1999
2000 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
2001
2002         Reviewed by Tor Arne Vestbø.
2003
2004         Removed the interactive property of QGraphicsWebView.
2005
2006         There are clearly use-cases for this feature, but it will require
2007         more work to make this fully work with an enum to have fine-grained
2008         control over the interactivity levels. For now it is easy to achieve
2009         in user-code what the boolean property did.
2010
2011         * Api/qgraphicswebview.cpp:
2012         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
2013         (QGraphicsWebView::hoverMoveEvent):
2014         (QGraphicsWebView::mouseMoveEvent):
2015         (QGraphicsWebView::mousePressEvent):
2016         (QGraphicsWebView::mouseReleaseEvent):
2017         (QGraphicsWebView::mouseDoubleClickEvent):
2018         (QGraphicsWebView::keyPressEvent):
2019         (QGraphicsWebView::keyReleaseEvent):
2020         (QGraphicsWebView::dragLeaveEvent):
2021         (QGraphicsWebView::dragMoveEvent):
2022         (QGraphicsWebView::dropEvent):
2023         (QGraphicsWebView::wheelEvent):
2024         (QGraphicsWebView::inputMethodEvent):
2025         * Api/qgraphicswebview.h:
2026         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2027         (tst_QGraphicsWebView::qgraphicswebview):
2028
2029 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
2030
2031         Reviewed by Tor Arne Vestbø.
2032
2033         Make the QGraphicsWebView constructor explicit.
2034
2035         * Api/qgraphicswebview.h:
2036
2037 2009-11-05  Shu Chang  <Chang.Shu@nokia.com>
2038
2039         Reviewed by Tor Arne Vestbø.
2040
2041         Add support for Shift-PageUp and Shift-PageDown key events.
2042         https://bugs.webkit.org/show_bug.cgi?id=31166
2043
2044         Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html
2045
2046         * WebCoreSupport/EditorClientQt.cpp:
2047         (WebCore::EditorClientQt::handleKeyboardEvent):
2048
2049 2009-11-05  Simon Hausmann  <hausmann@webkit.org>
2050
2051         Last Qt 4.5 build fix (*sigh*)
2052
2053         * tests/qwebpage/tst_qwebpage.cpp:
2054         (inputMethodHints): inputMethodHints() is only used for 
2055         Qt 4.6, so guard the whole function.
2056
2057 2009-11-05  Simon Hausmann  <hausmann@webkit.org>
2058
2059         Another prospective build fix against Qt 4.5 (build bot)
2060
2061         Don't compile & run the QGraphicsWebView portion of the
2062         input methods auto test with Qt 4.5.
2063
2064         * tests/qwebpage/tst_qwebpage.cpp:
2065         (tst_QWebPage::inputMethods_data):
2066         (inputMethodHints):
2067         (inputMethodEnabled):
2068         (tst_QWebPage::inputMethods):
2069
2070 2009-11-05  Simon Hausmann  <hausmann@webkit.org>
2071
2072         Prospective build fix against Qt 4.5 (build bot)
2073
2074         * Api/qgraphicswebview.cpp:
2075         (QGraphicsWebViewPrivate::setInputMethodEnabled): Guard the
2076         use of Qt 4.6 specific API with #ifdefs.
2077
2078 2009-11-01  Simon Hausmann  <hausmann@webkit.org>
2079
2080         Reviewed by Kenneth Christiansen.
2081
2082         [Qt] Fix enabling of input method support on QGraphicsWebView.
2083         https://bugs.webkit.org/show_bug.cgi?id=30605
2084
2085         Instead of setting the unsupported widget attribute on the
2086         QGraphicsWidget in setInputMethodEnabled() set the 
2087         ItemAcceptsInputMethod GraphicsItem flag directly.
2088
2089         Changed the existing input method auto test to run once
2090         on a QWebView and once on a QGraphicsWebView.
2091
2092         * Api/qgraphicswebview.cpp:
2093         (QGraphicsWebViewPrivate::setInputMethodEnabled):
2094         * tests/qwebpage/tst_qwebpage.cpp:
2095         (tst_QWebPage::inputMethods_data):
2096         (inputMethodHints):
2097         (inputMethodEnabled):
2098         (tst_QWebPage::inputMethods):
2099
2100 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
2101
2102         Reviewed by Kenneth Christiansen.
2103
2104         Added QGraphicsWebView::modified property, for consistency
2105         with QWebView.
2106
2107         * Api/qgraphicswebview.cpp:
2108         (QGraphicsWebView::isModified):
2109         * Api/qgraphicswebview.h:
2110         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2111         (tst_QGraphicsWebView::qgraphicswebview):
2112
2113 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
2114
2115         Reviewed by Kenneth Christiansen.
2116
2117         Removed status and progress properties of QGraphicsWebView.
2118         Added loadProgress and statusBarMessage signals instead,
2119         after API review.
2120
2121         * Api/qgraphicswebview.cpp:
2122         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
2123         (QGraphicsWebView::setPage):
2124         * Api/qgraphicswebview.h:
2125         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2126         (tst_QGraphicsWebView::qgraphicswebview):
2127
2128 2009-11-04  Yael Aharon  <yael.aharon@nokia.com>
2129
2130         Reviewed by Simon Hausmann.
2131
2132         [Qt] REGRESSION: Allow applications to use their own QWidget bypassing QWebView.
2133         https://bugs.webkit.org/show_bug.cgi?id=30979
2134
2135         Decouple QWebViewPrivate from QWebPageClient, and automatically create
2136         QWebPageWidgetClient whenever the view is QWidget based.
2137
2138         * Api/qwebpage.cpp:
2139         (QWebPageWidgetClient::QWebPageWidgetClient):
2140         (QWebPageWidgetClient::scroll):
2141         (QWebPageWidgetClient::update):
2142         (QWebPageWidgetClient::setInputMethodEnabled):
2143         (QWebPageWidgetClient::setInputMethodHint):
2144         (QWebPageWidgetClient::cursor):
2145         (QWebPageWidgetClient::updateCursor):
2146         (QWebPageWidgetClient::palette):
2147         (QWebPageWidgetClient::screenNumber):
2148         (QWebPageWidgetClient::ownerWidget):
2149         (QWebPageWidgetClient::pluginParent):
2150         (QWebPage::setView):
2151         * Api/qwebview.cpp:
2152         (QWebView::~QWebView):
2153         (QWebView::setPage):
2154         (QWebView::event):
2155
2156 2009-11-03  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
2157
2158         Reviewed by Simon Hausmann.
2159
2160         [Qt] Fix build of unit-test after r50454.
2161
2162         * tests/qwebpage/tst_qwebpage.cpp:
2163
2164 2009-11-03  Simon Hausmann  <hausmann@webkit.org>
2165
2166         Reviewed by Tor Arne Vestbø.
2167
2168         Make QWebPluginDatabase private API for now.
2169
2170         https://bugs.webkit.org/show_bug.cgi?id=30775
2171
2172         * Api/headers.pri:
2173         * Api/qwebplugindatabase.cpp:
2174         * Api/qwebplugindatabase_p.h: Renamed from WebKit/qt/Api/qwebplugindatabase.h.
2175         * Api/qwebsettings.cpp:
2176         * Api/qwebsettings.h:
2177         * QtLauncher/main.cpp:
2178         (MainWindow::setupUI):
2179         * tests/tests.pro:
2180
2181 2009-11-03  Simon Hausmann  <hausmann@webkit.org>
2182
2183         Rubber-stamped by Tor Arne Vestbø.
2184
2185         Oops, also remove the API docs of the removed networkRequestStarted() signal.
2186
2187         * Api/qwebpage.cpp:
2188
2189 2009-11-03  Simon Hausmann  <hausmann@webkit.org>
2190
2191         Reviewed by Tor Arne Vestbø.
2192
2193         Replace the QWebPage::networkRequestStarted() signal with the originatingObject
2194         property set to the QWebFrame that belongs to the request.
2195
2196         https://bugs.webkit.org/show_bug.cgi?id=29975
2197
2198         * Api/qwebpage.h:
2199         * WebCoreSupport/FrameLoaderClientQt.cpp:
2200         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2201         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2202         (WebCore::FrameLoaderClientQt::startDownload):
2203         * tests/qwebpage/tst_qwebpage.cpp:
2204         (tst_QWebPage::loadFinished):
2205         (TestNetworkManager::createRequest):
2206         (tst_QWebPage::originatingObjectInNetworkRequests):
2207
2208 2009-11-02  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
2209
2210         Reviewed by Adam Barth.
2211
2212         QWebView crash fix.
2213
2214         The QWebView should not crash if the stop() method is called from
2215         a function triggered by the loadProgress signal.
2216
2217         A null pointer protection was added in the ProgressTracker::incrementProgress.
2218
2219         New autotest was created.
2220
2221         https://bugs.webkit.org/show_bug.cgi?id=29425
2222
2223         * tests/qwebview/tst_qwebview.cpp:
2224         (WebViewCrashTest::WebViewCrashTest):
2225         (WebViewCrashTest::loading):
2226         (tst_QWebView::crashTests):
2227
2228 2009-11-01  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2229
2230         Reviewed by Eric Seidel.
2231
2232         Turn on warnings for QtWebKit for gcc
2233         https://bugs.webkit.org/show_bug.cgi?id=30958
2234
2235         * Api/qwebpage.cpp:
2236         (QWebPagePrivate::QWebPagePrivate): Reorder initialization list 
2237         to fix compiler warnings.
2238         * WebCoreSupport/FrameLoaderClientQt.cpp:
2239         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto.
2240
2241 2009-10-30  Evan Stade  <estade@chromium.org>
2242
2243         Reviewed by David Levin.
2244
2245         Notify the chrome when the focused node has changed.
2246         https://bugs.webkit.org/show_bug.cgi?id=30832
2247
2248         Added stub implementation for new ChromeClient function.
2249
2250         * WebCoreSupport/ChromeClientQt.cpp:
2251         (WebCore::ChromeClientQt::focusedNodeChanged):
2252         * WebCoreSupport/ChromeClientQt.h:
2253
2254 2009-10-30  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2255
2256         Reviewed by Tor Arne Vestbø.
2257
2258         [Qt] Remove the QWebInspector::windowTitleChanged signal,
2259         QEvent::WindowTitleChange can be used to achieve the same.
2260         https://bugs.webkit.org/show_bug.cgi?id=30927
2261
2262         * Api/qwebinspector.cpp:
2263         * Api/qwebinspector.h:
2264         * WebCoreSupport/InspectorClientQt.cpp:
2265         (WebCore::InspectorClientQt::updateWindowTitle):
2266
2267 2009-10-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2268
2269         Reviewed by Tor Arne Vestbø.
2270
2271         [Qt] Implement DELETE HTTP method for XmlHttpRequest
2272         https://bugs.webkit.org/show_bug.cgi?id=30894
2273
2274         No new tests as this functionality is already tested by the
2275         xmlhttprequest LayoutTests. As this patch depends on an unreleased
2276         version of the dependent QtNetwork library and the tests will be
2277         enabled later once the dependent library is released (and the
2278         buildbot is updated).
2279
2280         * Api/qwebframe.cpp:
2281         (QWebFrame::load):
2282
2283 2009-10-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2284
2285         Reviewed by Tor Arne Vestbø.
2286
2287         Remove QWebView::guessUrlFromString() and replace its use
2288         with the new QUrl::fromUserInput() if using Qt 4.6 or newer.
2289
2290         * Api/qwebview.cpp:
2291         * Api/qwebview.h:
2292         * QGVLauncher/main.cpp:
2293         (urlFromUserInput):
2294         (WebPage::applyProxy):
2295         (MainWindow::load):
2296         * QtLauncher/main.cpp:
2297         (urlFromUserInput):
2298         (MainWindow::MainWindow):
2299         (MainWindow::changeLocation):
2300         * tests/qwebview/tst_qwebview.cpp:
2301
2302 2009-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2303
2304         Reviewed by Tor Arne Vestbø.
2305
2306         Serialize directly to the stream, and not first to an QByteArray,
2307         that is later serialized. That is slower and also uses more bytes.
2308
2309         * Api/qwebhistory.cpp:
2310         (operator<<):
2311         (operator>>):
2312
2313 2009-10-28  Shinichiro Hamaji  <hamaji@chromium.org>
2314
2315         Reviewed by Eric Seidel.
2316
2317         [Qt] WebFrame::counterValueForElementById must not be exposed
2318         https://bugs.webkit.org/show_bug.cgi?id=30882
2319
2320         * Api/qwebframe.cpp:
2321         (qt_drt_counterValueForElementById):
2322         * Api/qwebframe.h:
2323
2324 2009-10-27  Shinichiro Hamaji  <hamaji@chromium.org>
2325
2326         Reviewed by Darin Adler.
2327
2328         Provide a way to get counter values with layoutTestContoller
2329         https://bugs.webkit.org/show_bug.cgi?id=30555
2330
2331         * Api/qwebframe.cpp:
2332         (QWebFrame::counterValueForElementById):
2333         (QWebHitTestResult::frame):
2334         * Api/qwebframe.h:
2335
2336 2009-10-28  Antonio Gomes  <tonikitoo@webkit.org>
2337
2338         Pushing missing WebKit/qt/tests/qwebframe/resources/ dir from bug 29248.
2339
2340         [Qt] [API] Make it possible to have 'invisible' loads
2341         https://bugs.webkit.org/show_bug.cgi?id=29248
2342
2343         * tests/qwebframe/resources/image2.png: Copied from WebKit/qt/tests/qwebelement/image.png.
2344
2345 2009-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2346
2347         Reviewed by Tor Arne Vestbø.
2348
2349         [Qt] QWebHistory::saveState() is inconsistent with the Qt API
2350         https://bugs.webkit.org/show_bug.cgi?id=30710
2351
2352         Make the versioning internal and enforce it in the WebCore
2353         part. Adjust the comments, as well as remove now dead code.
2354
2355         * Api/qwebhistory.cpp:
2356         (operator<<):
2357         (operator>>):
2358         * Api/qwebhistory.h:
2359
2360 2009-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2361
2362         Reviewed by Holger Freyther.
2363
2364         [Qt] QWebHistory::saveState() is inconsistent with the Qt API
2365         https://bugs.webkit.org/show_bug.cgi?id=30710
2366
2367         Remove the QWebHistory::saveState() and ::restoreState() as
2368         they are inconsistent with the Qt API.
2369
2370         Update unittests to reflect the change.
2371
2372         * Api/qwebhistory.cpp:
2373         (operator<<):
2374         (operator>>):
2375         * Api/qwebhistory.h:
2376         * tests/qwebhistory/tst_qwebhistory.cpp:
2377         (saveHistory):
2378         (restoreHistory):
2379         (tst_QWebHistory::saveAndRestore_crash_1):
2380         (tst_QWebHistory::saveAndRestore_crash_2):
2381         (tst_QWebHistory::saveAndRestore_crash_3):
2382         (tst_QWebHistory::clear):
2383
2384 2009-10-27  Antonio Gomes  <tonikitoo@webkit.org>
2385
2386         Reviewed by Holger Freyther.
2387
2388         Complementary fix to bug 30779.
2389
2390         By mistake I used QWeakPointer's toStrongRef() method which docs
2391         explicitly say to not be used in this situation (when the tracked
2392         pointer is devired from QObject). Instead QWeakPointer's data()
2393         is recommended.
2394
2395         * Api/qwebpage.cpp:
2396         (QWebPage::view):
2397
2398 2009-10-27  Holger Hans Peter Freyther  <zecke@selfish.org>
2399
2400         Reviewed by Simon Fraser.
2401
2402         Change HitTestResult methods to use (3d) transformation aware methods
2403         https://bugs.webkit.org/show_bug.cgi?id=27347
2404
2405         The HitTestResult::boundingBox method was removed. The
2406         RenderObject must be used directly. In contrast to the
2407         old HitTestResult::boundingBox method this code must use
2408         a (3d) transformation aware method to not run into an
2409         assert in SVGRenderBase::mapLocalToContainer.
2410
2411         * Api/qwebframe.cpp:
2412         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
2413
2414 2009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2415
2416         Rubberstamped by Oliver Hunt.
2417
2418         Change two methods to be internal for DRT use only.
2419
2420         Part of [Qt] Review all new API in Qt 4.6
2421         https://bugs.webkit.org/show_bug.cgi?id=29843#c11
2422
2423         * Api/qwebsecurityorigin.cpp:
2424         (qt_drt_whiteListAccessFromOrigin):
2425         (qt_drt_resetOriginAccessWhiteLists):
2426         (QWebSecurityOrigin::localSchemes):
2427         * Api/qwebsecurityorigin.h:
2428
2429 2009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2430
2431         Reviewed by Tor Arne Vestbø.
2432
2433         Make sure that initiating a rotation while rotating won't make
2434         it end up at rotation positions that are not a multiply of
2435         180 degrees.
2436
2437         * QGVLauncher/main.cpp:
2438         (MainView::animatedFlip):
2439
2440 2009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2441
2442         Unreviewed Qt build fix.
2443
2444         Update the tests as well to the new API change.
2445
2446         * tests/qwebelement/tst_qwebelement.cpp:
2447         (tst_QWebElement::clear):
2448
2449 2009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2450
2451         Rubberstamped by Tor Arne Vestbø.
2452
2453         [Qt] QWebElement::removeChildren() should be
2454         QWebElement::removeAllChildren()
2455         https://bugs.webkit.org/show_bug.cgi?id=30630
2456
2457         * Api/qwebelement.cpp:
2458         (QWebElement::removeAllChildren):
2459         * Api/qwebelement.h:
2460
2461 2009-10-27  Antonio Gomes  <tonikitoo@webkit.org>
2462
2463         Reviewed by Antti Koivisto and Holger Freyther.
2464
2465         Make QWebPagePrivate's (QWidget) view to be a QWeakPointer.
2466         https://bugs.webkit.org/show_bug.cgi?id=30779
2467
2468         The fact that it was been set from external objects of qwebpage
2469         and not being deleted internally can lead to dangling references.
2470
2471         * Api/qgraphicswebview.cpp:
2472         (QGraphicsWebView::~QGraphicsWebView):
2473         * Api/qwebpage.cpp:
2474         (QWebPagePrivate::QWebPagePrivate):
2475         (QWebPagePrivate::createContextMenu):
2476         (QWebPagePrivate::handleSoftwareInputPanel):
2477         (QWebPagePrivate::keyPressEvent):
2478         (QWebPage::setView):
2479         (QWebPage::view):
2480         (QWebPage::javaScriptAlert):
2481         (QWebPage::javaScriptConfirm):
2482         (QWebPage::javaScriptPrompt):
2483         (QWebPage::shouldInterruptJavaScript):
2484         (QWebPage::createWindow):
2485         (QWebPage::extension):
2486         (QWebPage::chooseFile):
2487         (QWebPage::userAgentForUrl):
2488         * Api/qwebpage_p.h:
2489         * Api/qwebview.cpp:
2490         (QWebView::~QWebView):
2491
2492 2009-10-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2493
2494         Unreviewed documentation fix from David Boddie (Qt Doc Team)
2495
2496         Removes the check around the RenderHints property documentation
2497         that was clearly added to synchronize the source and header files
2498         when the #if !defined(Q_OS_SYMBIAN) guards was added to the
2499         property.
2500
2501         The documentation has also been updated to ensure that Symbian
2502         users know that there is no actual RenderHints property on their
2503         platform.
2504
2505         * Api/qwebview.cpp:
2506
2507 2009-10-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2508
2509         Unreviewed documentation fix from David Boddie (Qt Doc Team)
2510
2511         Ensure that qdoc will always see the RenderHints property.
2512
2513         The property was only defined in the header file if the Q_OS_SYMBIAN
2514         symbol was not defined, resulting in the property not showing up
2515         in the Qt documentation just because one platform doesn't support it.
2516
2517         A follow up commit will improve the documentation for the property
2518         and note that it is not supported on the Symbiam platform.
2519
2520         * Api/qwebview.h:
2521
2522 2009-10-26  Benjamin Poulain  <benjamin.poulain@nokia.com>
2523
2524         Reviewed by Tor Arne Vestbø.
2525
2526         [Qt] Reintroduce QWebElementCollection
2527
2528         Revert the patch that has replaced QWebElementCollection 
2529         with QList<QWebElement>. Update the tests accordingly.
2530
2531         Remove the constness of the return type of QWebElement operator[]. 
2532
2533         https://bugs.webkit.org/show_bug.cgi?id=30767
2534
2535         * Api/qwebelement.cpp:
2536         (QWebElement::findAll):
2537         (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
2538         (QWebElementCollectionPrivate::create):
2539         (QWebElementCollection::QWebElementCollection):
2540         (QWebElementCollection::operator=):
2541         (QWebElementCollection::~QWebElementCollection):
2542         (QWebElementCollection::operator+):
2543         (QWebElementCollection::append):
2544         (QWebElementCollection::count):
2545         (QWebElementCollection::at):
2546         (QWebElementCollection::toList):
2547         * Api/qwebelement.h:
2548         (const_iterator::begin):
2549         (const_iterator::end):
2550         (const_iterator::operator[]):
2551         * Api/qwebframe.cpp:
2552         (QWebFrame::findAllElements):
2553         * Api/qwebframe.h:
2554         * QtLauncher/main.cpp:
2555         (MainWindow::selectElements):
2556         * tests/qwebelement/tst_qwebelement.cpp:
2557         (tst_QWebElement::simpleCollection):
2558         (tst_QWebElement::iteration):
2559         (tst_QWebElement::emptyCollection):
2560         (tst_QWebElement::appendCollection):
2561         (tst_QWebElement::nullSelect):
2562         (tst_QWebElement::hasSetFocus):
2563         (tst_QWebElement::render):
2564         * tests/qwebpage/tst_qwebpage.cpp:
2565         (tst_QWebPage::inputMethods):
2566
2567 2009-10-24  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2568
2569         Reviewed by Holger Freyther.
2570
2571         [Qt] [Symbian] Set the capability and memory required to run QtWebKit for Symbian
2572         https://bugs.webkit.org/show_bug.cgi?id=30476
2573
2574         Assign ReadUserData WriteUserData NetworkServices Symbian capabilities
2575         to all QtWebkit executables.
2576
2577         * QGVLauncher/QGVLauncher.pro:
2578         * QtLauncher/QtLauncher.pro:
2579         * tests/benchmarks/loading/tst_loading.pro:
2580         * tests/benchmarks/painting/tst_painting.pro:
2581         * tests/qgraphicswebview/qgraphicswebview.pro:
2582         * tests/qwebelement/qwebelement.pro:
2583         * tests/qwebframe/qwebframe.pro:
2584         * tests/qwebhistory/qwebhistory.pro:
2585         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
2586         * tests/qwebpage/qwebpage.pro:
2587         * tests/qwebplugindatabase/qwebplugindatabase.pro:
2588         * tests/qwebview/qwebview.pro:
2589
2590 2009-10-22  Gavin Barraclough  <barraclough@apple.com>
2591
2592         Reviewed by NOBODY (speculative build fix - qt is currently already broken!)
2593         Build fix following bug #30696.
2594
2595         * Api/qwebelement.cpp:
2596         (setupScriptContext):
2597         * Api/qwebframe.cpp:
2598         (QWebFrame::evaluateJavaScript):
2599
2600 2009-10-22  Shu Chang  <Chang.Shu@nokia.com>
2601
2602         Reviewed by Eric Seidel.
2603
2604         [Qt] Enable track visited links in QWebPage
2605         https://bugs.webkit.org/show_bug.cgi?id=30574
2606
2607         Test: fast/history/clicked-link-is-visited.html
2608
2609         * Api/qwebpage.cpp:
2610         (QWebPagePrivate::QWebPagePrivate):
2611
2612 2009-10-22  Girish Ramakrishnan  <girish@forwardbias.in>
2613
2614         Reviewed by Eric Seidel.
2615
2616         [Qt] Add Print Shortcut to QtLauncher
2617
2618         https://bugs.webkit.org/show_bug.cgi?id=30682
2619
2620         * QtLauncher/main.cpp:
2621         (MainWindow::setupUI):
2622
2623 2009-10-22  Antonio Gomes  <tonikitoo@webkit.org>
2624
2625         Rubberstamped by Tor Arne Vestbø.
2626
2627         Code standarlization for QGVLauncher.
2628
2629         1) Made member initilization lists in constructors
2630            to be per line.
2631         2) Made applyProxy method inline as all other methods in
2632            WebPage class.
2633
2634         * QGVLauncher/main.cpp:
2635         (WebPage::WebPage):
2636         (WebPage::applyProxy):
2637         (MainView::MainView):
2638         (MainWindow::MainWindow):
2639         (MainWindow::init):
2640
2641 2009-10-22  Antonio Gomes  <tonikitoo@webkit.org>
2642
2643         Reviewed by Tor Arne Vestbø.
2644
2645         Add a Y-Axis rotation to QGVLauncher.
2646
2647         It uses the QStateMachine API from Qt 4.6.
2648
2649         * QGVLauncher/main.cpp:
2650         (WebView::WebView):
2651         (WebView::setYRotation):
2652         (WebView::yRotation):
2653         (MainView::flip):
2654         (MainView::animatedYFlip):
2655         (SharedScene::SharedScene):
2656         (SharedScene::webView):
2657         (MainWindow::init):
2658         (MainWindow::animatedYFlip):
2659         (MainWindow::buildUI):
2660
2661 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2662
2663         Reviewed By Adam Barth.
2664
2665         Add some actions to the menu for cursor debugging.
2666
2667         GraphicsView based launcher only.
2668
2669         * QGVLauncher/main.cpp:
2670         (MainView::setWaitCursor):
2671         (MainView::resetCursor):
2672         (MainView::flip):
2673         (MainWindow::setWaitCursor):
2674         (MainWindow::resetCursor):
2675         (MainWindow::buildUI):
2676
2677 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2678
2679         Rubberstamped by Adam Barth.
2680
2681         Remove clipRenderToViewport as agreed upon in
2682         https://bugs.webkit.org/show_bug.cgi?id=29843
2683
2684         * Api/qwebframe.cpp:
2685         * Api/qwebframe.h:
2686         * Api/qwebframe_p.h:
2687         (QWebFramePrivate::QWebFramePrivate):
2688
2689 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2690
2691         Reviewed by Adam Barth.
2692
2693         Update the tests to test the new render functionality, and take
2694         into consideration that render() clips to the frame itself as well
2695         as the viewport.
2696
2697         QWebFrame::render() now always clips, so the old tests were bogus.
2698
2699         Rendering pure contents (no scrollbars etc) without clipping can now
2700         be accomplished using QWebFrame::documentElement()->render(...)
2701
2702         * Api/qwebframe.cpp:
2703         * Api/qwebframe.h:
2704         * Api/qwebframe_p.h:
2705         (QWebFramePrivate::QWebFramePrivate):
2706         * tests/qwebframe/tst_qwebframe.cpp:
2707
2708 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2709
2710         Rubberstamped by Adam Barth.
2711
2712         As we do not support rendering a QWebFrame without it being clipped
2713         the the frame as well as the viewport, we now set the viewport size
2714         to the size of the contents.
2715
2716         Rendering pure contents (no scrollbars etc) without clipping can be
2717         acomplished using QWebFrame::documentElement()->render(...)
2718
2719         * tests/qwebelement/tst_qwebelement.cpp:
2720         (tst_QWebElement::render):
2721
2722 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2723
2724         Reviewed by Tor Arne Vestbø.
2725
2726         Add menu item to dump the plugin list to the console,
2727         which can be handy for debugging.
2728
2729         * QtLauncher/main.cpp:
2730         (MainWindow::dumpPlugins):
2731         (MainWindow::setupUI):
2732
2733 2009-10-19  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2734
2735         Reviewed by Tor Arne Vestbø.
2736
2737         Introduce new render method on QWebFrame, which supports specifying
2738         which layers to render (scrollbars, contents, pan-icon).
2739
2740         * Api/qwebframe.cpp:
2741         (QWebFramePrivate::renderPrivate):
2742         (QWebFrame::render):
2743         * Api/qwebframe.h:
2744         * Api/qwebframe_p.h:
2745
2746 2009-10-19  Antonio Gomes  <tonikitoo@webkit.org>
2747
2748         Reviewed by Ariya Hidayat.
2749
2750         [Qt] Infinite loop (leading to crash) when setting cursor in QGraphicsWebView
2751         https://bugs.webkit.org/show_bug.cgi?id=30549
2752
2753         Patch reimplements QGraphicsItem's itemChange method, and make
2754         CursorChange event to be emitted after cursor has already been
2755         set.
2756
2757         QWidget::setCursor send the event just after it sets the cursor,
2758         then patch makes both behaviors compatible.
2759
2760         * Api/qgraphicswebview.cpp:
2761         (QGraphicsWebView::itemChange):
2762         * Api/qgraphicswebview.h:
2763
2764 2009-10-19  Nate Chapin  <japhet@chromium.org>
2765
2766         Unreviewed, build fix.
2767
2768         Update call to FrameLoader::loadFrameRequest().
2769
2770         * Api/qwebpage.cpp:
2771         (QWebPage::triggerAction):
2772
2773 2009-10-19  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
2774
2775         Reviewed by Ariya Hidayat.
2776
2777         Add QWebElement::render API which allows rendering of single
2778         element.
2779
2780         * Api/qwebelement.cpp:
2781         (QWebElement::render):
2782         * Api/qwebelement.h:
2783         * tests/qwebelement/tst_qwebelement.cpp:
2784         (tst_QWebElement::render):
2785         * tests/qwebelement/qwebelement.qrc:
2786         * tests/qwebelement/image.png: Added.
2787
2788 2009-10-19  Markus Goetz <Markus.Goetz@nokia.com>
2789
2790         Reviewed by Ariya Hidayat.
2791
2792         QWebPage: Doc: setNetworkAccessManager should only be called once.
2793
2794         * Api/qwebpage.cpp:
2795
2796 2009-10-19  Antonio Gomes  <tonikitoo@webkit.org>
2797
2798         Reviewed by Tor Arne.
2799
2800         Wrong ifdef combination in QGraphicsWebView's event method.
2801
2802         * Api/qgraphicswebview.cpp:
2803         (QGraphicsWebView::event):
2804
2805 2009-10-19  Girish Ramakrishnan  <girish@forwardbias.in>
2806
2807         Reviewed by Holger Freyther.
2808
2809         [Qt] Windowed Plugins: Don't crash when client is 0.
2810         
2811         Client is 0 when we use QWebPage without a QWebView or QGraphicsWebView.
2812         In addition, setFrameRect()/updatePluginWidget() is called even if the
2813         plugin was not succesfully loaded. updatePluginWidget() updates the
2814         window rect which is, in theory, useful to draw something that indicates
2815         that we didn't load successfully.
2816         
2817         So, a status check is added to setNPWindowIfNeeded.
2818
2819         https://bugs.webkit.org/show_bug.cgi?id=30380
2820
2821         * tests/qwebpage/qwebpage.pro:
2822         * tests/qwebpage/tst_qwebpage.cpp:
2823         (takeScreenshot):
2824         (tst_QWebPage::screenshot_data):
2825         (tst_QWebPage::screenshot):
2826         * tests/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf.
2827
2828 2009-10-19  Girish Ramakrishnan  <girish@forwardbias.in>
2829
2830         Reviewed by Holger Freyther.
2831
2832         [Qt] Windowed Plugins: Fix crash when QWebPage is deleted after QWebView.
2833         
2834         Fixes various sources of crashes:
2835         1. The PluginContainer is a child of QWebView. When the view gets deleted,
2836         the PluginView is not notified about the deletion of PluginContainer.
2837         2. QWebView destructor does not set client to 0.
2838         3. Sometimes pending paint events are sent after the plugin has died, so add
2839         a check in PluginView::setNPWindowIfNeeded.
2840
2841         https://bugs.webkit.org/show_bug.cgi?id=30354
2842
2843         * Api/qwebview.cpp:
2844         (QWebView::~QWebView):
2845         * tests/qwebview/qwebview.pro:
2846         * tests/qwebview/tst_qwebview.cpp:
2847         (tst_QWebView::reusePage_data):
2848         (tst_QWebView::reusePage):
2849
2850 2009-10-19  Jakob Truelsen  <antialize@gmail.com>
2851
2852         Reviewed by Adam Barth.
2853
2854         https://bugs.webkit.org/show_bug.cgi?id=29042
2855
2856         Allow one to costumize the minimal and maximal shrink factors,
2857         Added methods setPrintingMinimumShrinkFactor, printingMinimumShrinkFactor,
2858         setPrintingMaximumShrinkFactor, printingMaximumShrinkFactor to QWebSettings.
2859
2860
2861         * Api/qwebsettings.cpp:
2862         (QWebSettingsPrivate::apply):
2863         (QWebSettings::QWebSettings):
2864         (QWebSettings::setPrintingMinimumShrinkFactor):
2865         (QWebSettings::printingMinimumShrinkFactor):
2866         (QWebSettings::setPrintingMaximumShrinkFactor):
2867         (QWebSettings::printingMaximumShrinkFactor):
2868         * Api/qwebsettings.h:
2869
2870 2009-10-18  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2871
2872         Reviewed by Simon Hausmann.
2873
2874         Rename fixedContentsSize property to preferredContentsSize as
2875         agreed upon with Simon Hausmann and Matthias Ettrich.
2876
2877         * Api/qwebpage.cpp:
2878         (QWebPage::preferredContentsSize):
2879         (QWebPage::setPreferredContentsSize):
2880         * Api/qwebpage.h:
2881         * WebCoreSupport/FrameLoaderClientQt.cpp:
2882         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2883
2884 2009-10-16  Antonio Gomes  <tonikitoo@webkit.org>
2885
2886         Reviewed by Simon Hausmann.
2887
2888         [Qt] QGLauncher leaks WebPage object
2889         https://bugs.webkit.org/show_bug.cgi?id=30465
2890
2891         Make 'SharedScene' to own 'WebPage' reference and delete it at its destructor.
2892
2893         * Api/qwebpage.cpp:
2894         (QWebPage::view):
2895         * Api/qwebpage_p.h:
2896         * QGVLauncher/main.cpp:
2897         (SharedScene::SharedScene):
2898         (SharedScene::~SharedScene):
2899
2900 2009-10-16  Antonio Gomes  <tonikitoo@webkit.org>
2901
2902         Reviewed by Simon Hausmann.
2903
2904         [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash
2905         https://bugs.webkit.org/show_bug.cgi?id=30459
2906
2907         Remove all setView(ev->widget()) calls in QWebPage and QGWV event handling methods,
2908         since QWebPageClient would do the trick.
2909
2910         * Api/qgraphicswebview.cpp:
2911         (QGraphicsWebView::hoverMoveEvent):
2912         * Api/qwebpage.cpp:
2913         (QWebPagePrivate::mouseMoveEvent):
2914         (QWebPagePrivate::mousePressEvent):
2915         (QWebPagePrivate::mouseDoubleClickEvent):
2916         (QWebPagePrivate::mouseReleaseEvent):
2917         (QWebPagePrivate::wheelEvent):
2918         (QWebPagePrivate::dragEnterEvent):
2919         (QWebPagePrivate::dragLeaveEvent):
2920         (QWebPagePrivate::dragMoveEvent):
2921
2922 2009-10-16  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2923
2924         Pull out r49676 as it caused build breakges on Symbian
2925
2926         * Api/qwebpage.cpp:
2927
2928 2009-10-16  Yael Aharon  <yael.aharon@nokia.com>
2929
2930         Reviewed by Tor Arne Vestbø.
2931
2932         [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
2933         https://bugs.webkit.org/show_bug.cgi?id=30179
2934
2935         Added "c" style static methods for the application to hook up for
2936         receiving notifications when a plugin is created or destroyed.
2937
2938         * Api/qwebpage.cpp:
2939
2940 2009-10-15  Antonio Gomes  <tonikitoo@webkit.org>
2941
2942         Rubberstamped by Tor Arne.
2943
2944         Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*).
2945
2946         * QGVLauncher/main.cpp:
2947         (WebPage::WebPage):
2948
2949 2009-10-15  Antonio Gomes  <tonikitoo@webkit.org>
2950
2951         Reviewed by Tor Arne.
2952
2953         [Qt] QGLauncher crashes while closing a window
2954         https://bugs.webkit.org/show_bug.cgi?id=30385
2955
2956         Set page's pageClient reference to '0' at QGWV deletion.
2957
2958         * Api/qgraphicswebview.cpp:
2959         (QGraphicsWebView::~QGraphicsWebView):
2960         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2961         (WebPage::WebPage):
2962         (WebPage::aborting):
2963         (tst_QGraphicsWebView::crashOnViewlessWebPages):
2964
2965 2009-10-13  Antonio Gomes  <tonikitoo@webkit.org>
2966
2967         Reviewed by Simon Hausmann.
2968
2969         [Qt] Make context menu to work in QGraphicsWebView
2970         https://bugs.webkit.org/show_bug.cgi?id=30336
2971
2972         * Api/qgraphicswebview.cpp:
2973         (QGraphicsWebView::event):
2974
2975 2009-10-13  Girish Ramakrishnan  <girish@forwardbias.in>
2976
2977         Reviewed by Simon Hausmann.
2978
2979         [Qt] Plugins : Remove all traces of winId. Use ownerWidget() instead.
2980         
2981         This is a bug for two reasons:
2982         1. Everytime we use winId(), we end up creating a native widget. This causes an
2983         unnecessary copy of contents from the backing store to the native widget.
2984         2. Neither windowed nor windowless plugins require the winId of the QWebView or
2985         QGraphicsView.
2986         
2987         Introduce ownerWidget() which returns a QWidget * without creating a native widget
2988         (as opposed to QWidget::find(winId)).
2989
2990         https://bugs.webkit.org/show_bug.cgi?id=30170
2991
2992         * Api/qgraphicswebview.cpp:
2993         (QGraphicsWebViewPrivate::ownerWidget):
2994         * Api/qwebview.cpp:
2995         (QWebViewPrivate::ownerWidget):
2996
2997 2009-10-13  Antonio Gomes  <tonikitoo@webkit.org>
2998
2999         Reviewed by Simon Hausmann.
3000
3001         [Qt] Add some initial autotests for QWebPage's ErrorPageExtention
3002         https://bugs.webkit.org/show_bug.cgi?id=30296
3003
3004         * tests/qwebpage/tst_qwebpage.cpp:
3005         (ErrorPage::ErrorPage):
3006         (ErrorPage::supportsExtension):
3007         (ErrorPage::extension):
3008         (tst_QWebPage::errorPageExtension):
3009
3010 2009-10-13  Antonio Gomes  <tonikitoo@webkit.org>
3011
3012         Reviewed by Simon Hausmann.
3013
3014         [Qt] better handle possible edge cases on qwebframe::requestedUrl use
3015         https://bugs.webkit.org/show_bug.cgi?id=30216
3016
3017         QWebFrame::requestedUrl can be called at any time during the load
3018         process, including:
3019
3020         * An error handling (whereas an alternate error page for unsuccessful
3021           load is being set);
3022         * A ssl error exception call;
3023         * During navigation notifications/callbacks (titleChanged, urlChanged,
3024           progresses, addHistoryEntry, etc);
3025         * Among others.
3026
3027         This patch makes requestedUrl calls to fallback to FrameLoaderClient
3028         m_loadError's failingURL when an error has occurred, unless it is
3029         null/empty.
3030
3031         Also, m_loadError is now being reset at each the main frame starts a
3032         load, in order to avoid previous load errors footprints.
3033
3034         * Api/qwebframe.cpp:
3035         (QWebFrame::requestedUrl):
3036         * WebCoreSupport/FrameLoaderClientQt.cpp:
3037         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
3038
3039 2009-10-12  Jakub Wieczorek  <faw217@gmail.com>
3040
3041         Reviewed by Simon Hausmann.
3042
3043         [Qt] Missing default value for the default text encoding.
3044         https://bugs.webkit.org/show_bug.cgi?id=30311
3045
3046         QtWebKit has provided a default, hardcoded value for default charset but since
3047         the addition of the defaultTextEncoding setting in QWebSettings, that hardcoded
3048         value has had no effect.
3049
3050         Added a regression test and unskipped fast/dom/Document/document-charset.html,
3051         which is passing now.
3052
3053         * Api/qwebpage.cpp:
3054         (QWebPagePrivate::QWebPagePrivate):
3055         * Api/qwebsettings.cpp:
3056         (QWebSettings::QWebSettings):
3057         * tests/qwebpage/tst_qwebpage.cpp:
3058         (tst_QWebPage::defaultTextEncoding):
3059
3060 2009-10-12  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3061
3062         Reviewed by Simon Hausmann.
3063
3064         Implement the new palette() methods on the page clients
3065
3066         * Api/qgraphicswebview.cpp:
3067         (QGraphicsWebViewPrivate::palette):
3068         * Api/qwebview.cpp:
3069         (QWebViewPrivate::palette):
3070
3071 2009-10-12  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
3072
3073         Reviewed by Simon Hausmann.
3074
3075         QWebPage's createViewlessPlugin autotest crash fix.
3076         
3077         It is possible that plugins that are QWidgets or QGraphicsWidgets
3078         are created before a view has been assigned to a QWebPage. The
3079         plug-ins won't be fully functional, as by design, they should
3080         visualise something, but they won't crash and will stay in memory.
3081
3082         An autotest that covers this use-case, is included.
3083
3084         https://bugs.webkit.org/show_bug.cgi?id=30118
3085
3086         * WebCoreSupport/FrameLoaderClientQt.cpp:
3087         (WebCore::FrameLoaderClientQt::createPlugin):
3088         * tests/qwebpage/tst_qwebpage.cpp:
3089         (PluginTrackedPageWidget::PluginTrackedPageWidget):
3090         (PluginTrackedPageGraphicsWidget::PluginTrackedPageGraphicsWidget):
3091         (PluginTrackedPageGraphicsWidget::createPlugin):
3092         (tst_QWebPage::destroyPlugin):
3093         (tst_QWebPage::createViewlessPlugin):
3094
3095 2009-10-09  Joe Ligman  <joseph.ligman@nokia.com>
3096
3097         Reviewed by Simon Hausmann.
3098
3099         Sets Qt::WA_InputMethodEnabled and Qt::ImhHiddenText for password fields in EditorClientQt
3100         setInputMethodState. This change is needed so widgets such as the s60 software 
3101         input panel can receive input method events for password fields.
3102         It's up to the Qt platform to determine which widget will receive input method 
3103         events when these flags are set.
3104         Also added implementation for setInputMethodEnabled and setInputMethodHint 
3105         to QGraphicsWebViewPrivate and QWebViewPrivate. This change removes the direct
3106         dependency on QWebView and uses QWebPageClient.
3107         Added autotest to tst_qwebpage.cpp
3108         https://bugs.webkit.org/show_bug.cgi?id=30023
3109
3110         * Api/qgraphicswebview.cpp:
3111         (QGraphicsWebViewPrivate::setInputMethodEnabled):
3112         (QGraphicsWebViewPrivate::setInputMethodHint):
3113         * Api/qwebview.cpp:
3114         (QWebViewPrivate::setInputMethodEnabled):
3115         (QWebViewPrivate::setInputMethodHint):
3116         * WebCoreSupport/EditorClientQt.cpp:
3117         (WebCore::EditorClientQt::setInputMethodState):
3118         * tests/qwebpage/tst_qwebpage.cpp:
3119         (tst_QWebPage::inputMethods):
3120
3121 2009-10-08  Adam Barth  <abarth@webkit.org>
3122
3123         Reviewed by Eric Seidel.
3124
3125         Move executeScript from FrameLoader to ScriptController
3126         https://bugs.webkit.org/show_bug.cgi?id=30200
3127
3128         Update API call.
3129
3130         * Api/qwebframe.cpp:
3131         (QWebFrame::evaluateJavaScript):
3132
3133 2009-10-08  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
3134
3135         Reviewed by Simon Hausmann.
3136
3137         Part of testOptionalJSObjects autotest was marked as "expect to fail".
3138
3139         Two places in tst_QWebPage::testOptionalJSObjects were marked as
3140         expected to fail. The problem concern checking if a feature is enabled
3141         or disabled. According to discussion on webkit dev mailing list
3142         a disabled feature should be invisible from java script level, but
3143         there are exceptions from the rule. So we decided to disable the test
3144         for now.
3145
3146         https://bugs.webkit.org/show_bug.cgi?id=29867
3147
3148         * tests/qwebpage/tst_qwebpage.cpp:
3149         (tst_QWebPage::testOptionalJSObjects):
3150
3151 2009-10-07  Adam Barth  <abarth@webkit.org>
3152
3153         Reviewed by Darin Adler.
3154
3155         Factor PolicyChecker out of FrameLoader
3156         https://bugs.webkit.org/show_bug.cgi?id=30155
3157
3158         Move the policy callback to the policy object.
3159
3160         * WebCoreSupport/FrameLoaderClientQt.cpp:
3161         (WebCore::FrameLoaderClientQt::callPolicyFunction):
3162
3163 2009-10-07  Antonio Gomes  <tonikitoo@webkit.org>
3164
3165         Reviewed by Simon Hausmann.
3166
3167         [Qt] Get rid of useless loadFailed signal in QGraphicsWebView
3168         https://bugs.webkit.org/show_bug.cgi?id=30166
3169
3170         * Api/qgraphicswebview.cpp:
3171         (QGraphicsWebViewPrivate::_q_doLoadFinished):
3172         * Api/qgraphicswebview.h:
3173         * QGVLauncher/main.cpp:
3174         (MainWindow::init):
3175         (MainWindow::loadFinished):
3176
3177 2009-10-07  Girish Ramakrishnan  <girish@forwardbias.in>
3178
3179         Reviewed by Simon Hausmann.
3180
3181         Add a simple rotation effect to QGVLauncher
3182
3183         https://bugs.webkit.org/show_bug.cgi?id=30162
3184
3185         * QGVLauncher/main.cpp:
3186         (MainView::animatedFlip):
3187         (MainWindow::animatedFlip):
3188         (MainWindow::buildUI):
3189
3190 2009-10-07  Volker Hilsheimer  <volker.hilsheimer@nokia.com>
3191
3192         Reviewed by Simon Hausmann.
3193
3194         Doc: Document HTML and status as properties.
3195
3196         * Api/qgraphicswebview.cpp:
3197
3198 2009-10-07  Martin Smith  <msmith@trolltech.com>
3199
3200         Reviewed by Simon Hausmann.
3201
3202         Fix qdoc warning about disabled renderHints property
3203         on Symbian.
3204
3205         * Api/qwebview.cpp:
3206         * Api/qwebview.h:
3207
3208 2009-10-06  Adam Barth  <abarth@webkit.org>
3209
3210         Reviewed by Eric Seidel.
3211
3212         Move setLocalLoadPolicy and friends to SecurityOrigin
3213         https://bugs.webkit.org/show_bug.cgi?id=30110
3214
3215         Call the new API.
3216
3217         * Api/qwebpage.cpp:
3218         (QWebPagePrivate::QWebPagePrivate):
3219
3220 2009-10-06  Benjamin C Meyer  <bmeyer@rim.com>
3221
3222         Reviewed by Ariya Hidayat.
3223         
3224         When the drag data contains an image set it on the QDrag so it will be visible to the user.
3225         
3226         * WebCoreSupport/DragClientQt.cpp:
3227         (WebCore::DragClientQt::startDrag):
3228
3229 2009-10-06  Pavel Feldman  <pfeldman@chromium.org>
3230
3231         Reviewed by Timothy Hatcher.
3232
3233         Web Inspector: close inspector client view on
3234         InspectorController::close API call.
3235
3236         In order to run batch web inspector layout tests (and not affect
3237         subsequent tests) we should close inspector client's view upon
3238         InspectorController::close API call.
3239
3240         https://bugs.webkit.org/show_bug.cgi?id=30009
3241
3242         * WebCoreSupport/InspectorClientQt.cpp:
3243         (WebCore::InspectorClientQt::createPage):
3244
3245 2009-10-06  Janne Koskinen  <janne.p.koskinen@digia.com>
3246
3247         Reviewed by Simon Hausmann.
3248
3249         [Qt] don't enable input methods on Symbian by default.
3250         https://bugs.webkit.org/show_bug.cgi?id=30117
3251
3252         If input methods are enabled Symbian FEP will be launched on every
3253         pointer event making webpage navigation impossible with QWebView.
3254
3255         * Api/qwebview.cpp:
3256         (QWebView::QWebView):
3257
3258 2009-10-05  Holger Hans Peter Freyther  <zecke@selfish.org>
3259
3260         Reviewed by Simon Hausmann.
3261
3262         QtLauncher: print the number of loaded urls
3263         
3264         When using the -r mode print the number of URLs loaded so far. This
3265         is extremly useful when opening the same URL over and over again and
3266         one wants to see the progress.
3267
3268         * QtLauncher/main.cpp:
3269         (URLLoader::URLLoader):
3270         (URLLoader::loadNext):
3271
3272 2009-10-05  Girish Ramakrishnan  <girish@forwardbias.in>
3273
3274         Reviewed by Simon Hausmann.
3275
3276         Add screenshot option to menubar
3277
3278         https://bugs.webkit.org/show_bug.cgi?id=30067
3279
3280         * QtLauncher/main.cpp:
3281         (MainWindow::screenshot):
3282         (MainWindow::setupUI):
3283
3284 2009-10-05  Girish Ramakrishnan  <girish@forwardbias.in>
3285
3286         Reviewed by Simon Hausmann.
3287
3288         Setting the env QTLAUNCHER_USE_ARGB_VISUALS makes Qt use WA_TranslucentWindow.
3289
3290         https://bugs.webkit.org/show_bug.cgi?id=30068
3291
3292         * QtLauncher/main.cpp:
3293         (MainWindow::MainWindow):
3294
3295 2009-10-05  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3296
3297         Rubberstamped by Simon Hausmann.
3298
3299         Add documentation to the ErrorPageExtension.
3300
3301         * Api/qwebpage.cpp:
3302
3303 2009-10-02  Yael Aharon  <yael.aharon@nokia.com>
3304
3305         Reviewed by Simon Hausmann.
3306
3307         [Qt] Inform the application when a new request is created
3308         https://bugs.webkit.org/show_bug.cgi?id=29975
3309
3310         Add a signal to QWebPage, to inform the application when a request is created.
3311
3312         * Api/qwebpage.cpp:
3313         * Api/qwebpage.h:
3314         * tests/qwebpage/tst_qwebpage.cpp:
3315         (tst_QWebPage::loadFinished):
3316
3317 2009-10-05  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3318
3319         Reviewed by Simon Hausmann.
3320
3321         ErrorPageExtension: Add a pointer to the QWebFrame that had
3322         an error.
3323
3324         * Api/qwebpage.h:
3325         * WebCoreSupport/FrameLoaderClientQt.cpp:
3326         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
3327
3328 2009-10-05  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3329
3330         Reviewed by Tor Arne Vestbø.
3331
3332         Do not empty the offline web appcache when clearing
3333         memory caches. That one is not in memory, but stored
3334         in sqlite.
3335
3336         * Api/qwebsettings.cpp:
3337         (QWebSettings::clearMemoryCaches):
3338
3339 2009-10-05  J-P Nurmi  <jpnurmi@gmail.com>
3340
3341         Reviewed by Simon Hausmann.
3342
3343         Added QGraphicsWidget-plugins support to FrameLoaderClientQt.
3344
3345         https://bugs.webkit.org/show_bug.cgi?id=29710
3346
3347         * Api/qgraphicswebview.cpp:
3348         (QGraphicsWebViewPrivate::pluginParent):
3349         * Api/qwebview.cpp:
3350         (QWebViewPrivate::pluginParent):
3351         * WebCoreSupport/FrameLoaderClientQt.cpp:
3352         (WebCore::):
3353         (WebCore::FrameLoaderClientQt::createPlugin):
3354
3355 2009-10-03  Adam Barth  <abarth@webkit.org>
3356
3357         Unreview build fix.  I wish I had a try server...
3358
3359         * Api/qwebpage.cpp:
3360         (QWebPagePrivate::updateAction):
3361
3362 2009-10-02  Norbert Leser  <norbert.leser@nokia.com>
3363
3364         Reviewed by Simon Hausmann.
3365
3366         Conditionally guard cursor code (cursor and updateCursor functions) with !QT_NO_CURSOR.
3367         Otherwise, it is inconsistent with class declaration of QCursor.
3368
3369         * Api/qgraphicswebview.cpp:
3370         * Api/qwebview.cpp:
3371
3372 2009-10-02  Prasanth Ullattil  <prasanth.ullattil@nokia.com>
3373
3374         Reviewed by Simon Hausmann.
3375
3376         Fix compiler warnings about unused function arguments.
3377
3378         * Api/qwebframe.cpp:
3379         (QWebFrame::scrollBarMinimum):
3380         * Api/qwebpage.cpp:
3381         (QWebPagePrivate::focusInEvent):
3382         (QWebPagePrivate::focusOutEvent):
3383         (QWebPagePrivate::leaveEvent):
3384         (QWebPage::javaScriptAlert):
3385         (QWebPage::javaScriptConfirm):
3386         (QWebPage::javaScriptPrompt):
3387         (QWebPage::triggerAction):
3388         (QWebPage::acceptNavigationRequest):
3389         (QWebPage::chooseFile):
3390         * WebCoreSupport/ChromeClientQt.cpp:
3391         (WebCore::ChromeClientQt::repaint):
3392         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3393         (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
3394         * WebCoreSupport/ContextMenuClientQt.cpp:
3395         (WebCore::ContextMenuClientQt::downloadURL):
3396         * WebCoreSupport/FrameLoaderClientQt.cpp:
3397         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
3398         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
3399         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
3400         (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
3401         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
3402         (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
3403         (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
3404         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
3405         (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
3406         * WebCoreSupport/InspectorClientQt.cpp:
3407         (WebCore::InspectorClientQt::setAttachedWindowHeight):
3408         (WebCore::InspectorClientQt::highlight):
3409         (WebCore::InspectorClientQt::removeSetting):
3410
3411 2009-10-01  Simon Hausmann  <simon.hausmann@nokia.com>
3412
3413         Reviewed by Tor Arne Vestbø.
3414
3415         Make Software Input Panel requests work with QGraphicsWebView
3416         _and_ QWebView by sharing the event code in handleSoftwareInputPanel().
3417
3418         * Api/qwebpage.cpp:
3419         (QWebPagePrivate::mouseReleaseEvent):
3420         (QWebPagePrivate::handleSoftwareInputPanel):
3421         * Api/qwebpage_p.h:
3422
3423 2009-10-01  Alexis Menard  <alexis.menard@nokia.com>
3424
3425         Reviewed by Tor Arne Vestbø.
3426
3427         Rename QWebGraphicsItem to QGraphicsWebView
3428
3429         * Api/headers.pri:
3430         * Api/qwebpage.h:
3431         * Api/qwebgraphicsitem.cpp: Renamed.
3432         * Api/qwebgraphicsitem.h: Renamed.
3433         * WebKit/qt/QGVLauncher/main.cpp:
3434         * tests/tests.pro:
3435         * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Renamed.
3436         * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Renamed.
3437
3438 2009-10-01  Antonio Gomes   <tonikitoo@webkit.org>
3439
3440         Reviewed by Simon Hausmann.
3441
3442         https://bugs.webkit.org/show_bug.cgi?id=29248
3443         [Qt] [API] Make it possible to have 'invisible' loads
3444
3445         Make QWebFrame's setHtml and setContent methods to not change
3446         session and global history at all.
3447
3448         * Api/qwebframe.cpp:
3449         (QWebFrame::setHtml):
3450         (QWebFrame::setContent):
3451         * tests/qwebframe/qwebframe.pro:
3452         * tests/qwebframe/tst_qwebframe.cpp:
3453
3454 2009-10-01  Kristian Amlie  <kristian.amlie@nokia.com>
3455
3456         Reviewed by Simon Hausmann.
3457
3458         Fixed software input panel support on web input elements.
3459
3460         Send the RequestSoftwareInputPanel event if the element supports focus
3461         and the element is clicked.
3462
3463         * Api/qwebpage.cpp:
3464         (QWebPagePrivate::QWebPagePrivate):
3465         (QWebPagePrivate::mousePressEvent):
3466         (QWebPagePrivate::mouseReleaseEvent):
3467         * Api/qwebpage_p.h:
3468
3469 2009-10-01  Joe Ligman  <joseph.ligman@nokia.com>
3470
3471         Reviewed by Simon Hausmann.
3472
3473         Implementation for QWebPage::inputMethodQuery and QWebPagePrivate::inputMethodEvent
3474
3475         https://bugs.webkit.org/show_bug.cgi?id=29681
3476
3477         Some additional changes from Kristian Amlie <kristian.amlie@nokia.com>:
3478
3479             * Fixed surrounding text to exclude preedit string
3480             * Avoid emission of microFocusChanged during setComposition()
3481
3482         * Api/qwebpage.cpp:
3483         (QWebPagePrivate::inputMethodEvent):
3484         (QWebPage::inputMethodQuery):
3485         * WebCoreSupport/EditorClientQt.cpp:
3486         (WebCore::EditorClientQt::respondToChangedSelection):
3487         * tests/qwebpage/tst_qwebpage.cpp:
3488         (tst_QWebPage::inputMethods):
3489
3490 2009-09-30  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3491
3492         Reviewed by David Hyatt.
3493
3494         Add the failed URL to the ErrorPageExtension, as it is quite
3495         useful for creating error pages.
3496
3497         * Api/qwebpage.h:
3498         * WebCoreSupport/FrameLoaderClientQt.cpp:
3499         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
3500
3501 2009-09-29  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
3502
3503         Reviewed by Tor Arne Vestbø.
3504
3505         [Qt] Default font size reconciliation to 16px/13px to match other platform's de-facto standard.
3506         This fixes https://bugs.webkit.org/show_bug.cgi?id=19674.
3507
3508         * Api/qwebsettings.cpp:
3509         (QWebSettings::QWebSettings):
3510
3511 2009-09-29  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
3512
3513         Reviewed by Simon Hausmann.
3514
3515         https://bugs.webkit.org/show_bug.cgi?id=29844
3516
3517         QWebPage dependency autotest fix.
3518
3519         Fix for database() autotest. All opened databases should be removed at
3520         end of test.
3521
3522         * tests/qwebpage/tst_qwebpage.cpp:
3523         (tst_QWebPage::database):
3524
3525 2009-09-29  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
3526
3527         Reviewed by Simon Hausmann.
3528
3529         Some QWebHistory and QWebPage autotest crash fixes.
3530
3531         Some checking for m_mainFrame were added. MainFrame should be created
3532         at some point of QWebPage live cicle.
3533
3534         https://bugs.webkit.org/show_bug.cgi?id=29803
3535
3536         * Api/qwebpage.cpp:
3537         (QWebPage::~QWebPage):
3538         (QWebPage::currentFrame):
3539         (QWebPage::history):
3540         (QWebPage::selectedText):
3541         (QWebPage::updatePositionDependentActions):
3542         * tests/qwebpage/tst_qwebpage.cpp:
3543         (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
3544
3545 2009-09-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3546
3547         Reviewed by Simon Hausmann and Tor Arne Vestbø.
3548
3549         Implement QWebPage Extension for error pages, incl.
3550         an example on how to use it in QtLauncher.
3551
3552         Correct our use of ResourceError.
3553
3554         * Api/qwebpage.h:
3555         (ExtensionOption::):
3556         (ExtensionOption::ErrorPageExtensionReturn::ErrorPageExtensionReturn):
3557         * QtLauncher/main.cpp:
3558         (WebPage::supportsExtension):
3559         (MainWindow::MainWindow):
3560         (MainWindow::selectElements):
3561         (WebPage::extension):
3562         * WebCoreSupport/FrameLoaderClientQt.cpp:
3563         (WebCore::FrameLoaderClientQt::cancelledError):
3564         (WebCore::FrameLoaderClientQt::blockedError):
3565         (WebCore::FrameLoaderClientQt::cannotShowURLError):
3566         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
3567         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
3568         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
3569         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
3570         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3571         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3572         * WebCoreSupport/FrameLoaderClientQt.h:
3573
3574 2009-09-28  Andre Poenitz  <andre.poenitz@trolltech.com>
3575
3576         Reviewed by Simon Hausmann.
3577
3578         Compile fix with namespaced Qt.
3579
3580         * Api/qwebinspector_p.h:
3581
3582 2009-09-27  Joe Ligman  <joseph.ligman@mindspring.com>
3583
3584         Reviewed by Simon Hausmann.
3585
3586         [Qt] Adding API setFocus and hasFocus to QWebElement. This API is needed for
3587         clients that want to check/set the focus node of the document.
3588         https://bugs.webkit.org/show_bug.cgi?id=29682
3589
3590         * Api/qwebelement.cpp:
3591         (QWebElement::hasFocus):
3592         (QWebElement::setFocus):
3593         * Api/qwebelement.h:
3594         * tests/qwebelement/tst_qwebelement.cpp:
3595         (tst_QWebElement::hasSetFocus):
3596
3597 2009-09-25  Csaba Osztrogonac  <oszi@inf.u-szeged.hu>
3598
3599         Reviewed by Simon Hausmann.
3600
3601         [Qt] Make tst_qwebframe work if Qt built without SSL support
3602         https://bugs.webkit.org/show_bug.cgi?id=29735
3603
3604         * tests/qwebframe/tst_qwebframe.cpp: Missing #ifndef blocks added.
3605
3606 2009-09-24  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3607
3608         Reviewed by Simon Hausmann.
3609
3610         [Qt] Update QWebElement API to remove script related methods.
3611         QWebElement::evaluateScript is the only one kept, these are
3612         removed to postpone most of the QtWebKit<->JavaScript API design
3613         after 4.6.
3614         https://bugs.webkit.org/show_bug.cgi?id=29708
3615
3616         * Api/qwebelement.cpp:
3617         * Api/qwebelement.h:
3618         Methods removed:
3619         - QWebElement::callFunction
3620         - QWebElement::functions
3621         - QWebElement::scriptableProperty
3622         - QWebElement::setScriptableProperty
3623         - QWebElement::scriptableProperties
3624         * tests/qwebelement/tst_qwebelement.cpp:
3625         (tst_QWebElement::evaluateScript):
3626
3627 2009-09-25  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3628
3629         Reviewed by Simon Hausmann.
3630
3631         [Qt] Rename QWebElement::evaluateScript
3632         to QWebElement::evaluateJavaScript.
3633         https://bugs.webkit.org/show_bug.cgi?id=29709
3634
3635         * Api/qwebelement.cpp:
3636         (QWebElement::evaluateJavaScript):
3637         * Api/qwebelement.h:
3638         * tests/qwebelement/tst_qwebelement.cpp:
3639         (tst_QWebElement::evaluateJavaScript):
3640
3641 2009-09-25  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3642
3643         Reviewed by Simon Hausmann.
3644
3645         [Qt] Update the stypeProperty API of QWebElement.
3646         https://bugs.webkit.org/show_bug.cgi?id=29711
3647
3648         * Api/qwebelement.cpp:
3649         (QWebElement::styleProperty):
3650         - Merge the stypeProperty and the computedStyleProperty methods
3651         - Remove the default value for the style resolving enum
3652         - Rename ResolveRule to StyleResolveStrategy
3653         (QWebElement::setStyleProperty):
3654         - Remove the priority argument since it is possible to control the
3655           behaviour by adding !important or removing in the value.
3656         * Api/qwebelement.h:
3657         * tests/qwebelement/tst_qwebelement.cpp:
3658         (tst_QWebElement::style):
3659         (tst_QWebElement::computedStyle):
3660         * tests/qwebframe/tst_qwebframe.cpp:
3661
3662 2009-09-24  Jon Honeycutt  <jhoneycutt@apple.com>
3663
3664         Reviewed by Alice Liu.
3665
3666         * Api/qwebpage.cpp:
3667         (QWebPagePrivate::QWebPagePrivate):
3668         Pass 0 for new Page constructor argument.
3669
3670 2009-09-24  Martin Smith  <msmith@trolltech.com>
3671
3672         Reviewed by Simon Hausmann.
3673
3674         qdoc: Added \brief texts to all the since 4.6 functions.
3675
3676         * Api/qwebhistory.cpp:
3677
3678 2009-09-23  J-P Nurmi  <jpnurmi@gmail.com>
3679
3680         Reviewed by Simon Hausmann.
3681
3682         Prevent QWebPage::setView() from changing the viewport size on the fly
3683         in case the view doesn't actually change. QWebPage::setView() is
3684         called upon every QWebGraphicsItem::hoverMoveEvent(), which forced
3685         the viewport size to be equal to the size of the whole graphics view.
3686
3687         https://bugs.webkit.org/show_bug.cgi?id=29676
3688
3689         * Api/qwebpage.cpp:
3690         (QWebPage::setView):
3691
3692 2009-09-23  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
3693
3694         Reviewed by Simon Hausmann.
3695
3696         [Qt] Crash fix in QWebHistory back and forward methods.
3697         
3698         QWebHistory::back() and QWebHistory::forward() were crashing on
3699         ASSERT in WebCore::BackForwardList. The methods should check
3700         canGoBack() and canGoForward() at the beginning.
3701
3702         https://bugs.webkit.org/show_bug.cgi?id=29675
3703
3704         * Api/qwebhistory.cpp:
3705         (QWebHistory::back):
3706         (QWebHistory::forward):
3707
3708 2009-09-23  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
3709
3710         Reviewed by Simon Hausmann.
3711
3712         [Qt] Bug fix. QWebHistory should call QWebPage::updateNavigationActions
3713         
3714         In QWebHistory's methods that change item count or current item call
3715         to QWebPage::updateNavigationActions should be executed.
3716         QWebHistory::clear() and QWebHistory::restorState() were changed.
3717         New helper method, QWebPagePrivate accesor, were created in
3718         QWebHistoryPrivate class.
3719         Two autotest were developed.
3720
3721         https://bugs.webkit.org/show_bug.cgi?id=29246
3722
3723         * Api/qwebhistory.cpp:
3724         (QWebHistory::clear):
3725         (QWebHistory::restoreState):
3726         (QWebHistoryPrivate::page):
3727         * Api/qwebhistory_p.h:
3728         * tests/qwebhistory/tst_qwebhistory.cpp:
3729         (tst_QWebHistory::saveAndRestore_1):
3730         (tst_QWebHistory::clear):
3731
3732 2009-09-23  Norbert Leser  <norbert.leser@nokia.com>
3733
3734         Reviewed by Tor Arne Vestbø.
3735
3736         Need to guard QX11Info include with Q_WS_X11.
3737         That class may not be available (in QT 4.5 for Symbian, for instance).
3738         Completes fixes in r48627 and r48604.
3739
3740         * Api/qwebgraphicsitem.cpp:
3741         * Api/qwebview.cpp:
3742
3743 2009-09-22  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3744
3745         Reviewed by Simon Hausmann.
3746
3747         [Qt] Add default timeout while waiting for signals in QWebPage auto
3748         tests.
3749         https://bugs.webkit.org/show_bug.cgi?id=29637
3750
3751         * tests/qwebpage/tst_qwebpage.cpp:
3752         (waitForSignal):
3753
3754 2009-09-22  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3755
3756         Reivewed by Simon Hausmann.
3757
3758         Fix the Qt/Mac build after r48604 (Implement new QWebPageClient class)
3759
3760         There's no QWidget::x11Info() on Mac, and setPlatformPluginWidget()
3761         takes a QWidget*, not a QWebPageClient*
3762
3763         * Api/qwebgraphicsitem.cpp:
3764         (QWebGraphicsItemPrivate::screenNumber):
3765         * Api/qwebview.cpp:
3766         (QWebViewPrivate::screenNumber):
3767
3768 2009-09-21  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3769
3770         Reviewed by Simon Hausmann.
3771
3772         For Qt, platformPageClient() will now return a class derived from
3773         the QWebPageClient, so the patch adapts our Qt hooks to go though
3774         this class and not depend on the QWebView.
3775
3776         * Api/qwebgraphicsitem.cpp:
3777         (QWebGraphicsItemPrivate::scroll):
3778         (QWebGraphicsItemPrivate::update):
3779         (QWebGraphicsItemPrivate::cursor):
3780         (QWebGraphicsItemPrivate::updateCursor):
3781         (QWebGraphicsItemPrivate::screenNumber):
3782         (QWebGraphicsItemPrivate::winId):
3783         (QWebGraphicsItem::event):
3784         (QWebGraphicsItem::setPage):
3785         * Api/qwebgraphicsitem.h:
3786         * Api/qwebpage.cpp:
3787         (QWebPagePrivate::QWebPagePrivate):
3788         * Api/qwebpage_p.h:
3789         * Api/qwebview.cpp:
3790         (QWebViewPrivate::scroll):
3791         (QWebViewPrivate::update):
3792         (QWebViewPrivate::cursor):
3793         (QWebViewPrivate::updateCursor):
3794         (QWebViewPrivate::screenNumber):
3795         (QWebViewPrivate::winId):
3796         (QWebView::setPage):
3797         (QWebView::event):
3798         * WebCoreSupport/ChromeClientQt.cpp:
3799         (WebCore::ChromeClientQt::repaint):
3800         (WebCore::ChromeClientQt::scroll):
3801         (WebCore::ChromeClientQt::platformPageClient):
3802
3803 2009-09-21  Yael Aharon  <yael.aharon@nokia.com>
3804
3805         Reviewed by Simon Hausmann.
3806
3807         https://bugs.webkit.org/show_bug.cgi?id=29609
3808         Build fix for windows when using Qt 4.5.0.
3809
3810         * Api/qwebpage.cpp:
3811         (QWebPage::userAgentForUrl):
3812
3813 2009-09-19  Benjamin Poulain  <benjamin.poulain@nokia.com>
3814
3815         Reviewed by Simon Hausmann.
3816
3817         https://bugs.webkit.org/show_bug.cgi?id=29345
3818         The tests of QWebFrame did not use QTRY_VERIFY for
3819         tests involving the event loop.
3820
3821         * tests/qwebframe/tst_qwebframe.cpp:
3822         * tests/util.h: Added. Copy of tests/shared/util.h of Qt
3823
3824 2009-09-19  Jakub Wieczorek  <faw217@gmail.com>
3825
3826         Reviewed by Simon Hausmann.
3827
3828         [Qt] Add an autotest stub for QWebGraphicsItem.
3829
3830         It just calls all the functions and makes sure they don't crash.
3831
3832         * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Added.
3833         * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Added.
3834         (tst_QWebGraphicsItem::qwebgraphicsitem):
3835         * tests/tests.pro:
3836
3837 2009-09-18  Norbert Leser  <norbert.leser@nokia.com>
3838
3839         Reviewed by Eric Seidel.
3840
3841         Corrected the Symbian specific UID3 values to be assigned
3842         from the "unprotected" pool that permits self-signing of
3843         those test and demo executables. (Added new UID3 values
3844         where they were missing for new components.)
3845
3846         * QGVLauncher/QGVLauncher.pro:
3847         * QtLauncher/QtLauncher.pro:
3848         * tests/benchmarks/loading/tst_loading.pro:
3849         * tests/benchmarks/painting/tst_painting.pro:
3850         * tests/qwebelement/qwebelement.pro:
3851         * tests/qwebframe/qwebframe.pro:
3852         * tests/qwebhistory/qwebhistory.pro:
3853         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
3854         * tests/qwebpage/qwebpage.pro:
3855         * tests/qwebplugindatabase/qwebplugindatabase.pro:
3856         * tests/qwebview/qwebview.pro:
3857
3858 2009-09-17  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3859
3860         Reviewed by Simon Hausmann.
3861
3862         Make PlatformWindow return something else than PlatformWidget
3863         https://bugs.webkit.org/show_bug.cgi?id=29085
3864
3865         Reflect the rename of platformWindow and it's return type.
3866
3867         * WebCoreSupport/ChromeClientQt.cpp:
3868         (WebCore::ChromeClientQt::platformPageClient):
3869         * WebCoreSupport/ChromeClientQt.h:
3870
3871 2009-09-18  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3872
3873         Reviewed by Simon Hausmann.
3874
3875         [Qt] Add persistence support for configuration options in the
3876         inspector.
3877
3878         * Api/qwebinspector.cpp:
3879         * QtLauncher/main.cpp:
3880         (main):
3881         * WebCoreSupport/InspectorClientQt.cpp:
3882         (WebCore::InspectorClientQt::populateSetting):
3883         (WebCore::InspectorClientQt::storeSetting):
3884         (WebCore::variantToSetting):
3885         (WebCore::settingToVariant):
3886
3887 2009-09-18  Simon Hausmann  <simon.hausmann@nokia.com>
3888
3889         Reviewed by Ariya Hidayat.
3890
3891         Fixed a bunch of documentation warnings.
3892
3893         * Api/qwebgraphicsitem.cpp:
3894         * Api/qwebplugindatabase.cpp:
3895         * Api/qwebpluginfactory.cpp:
3896         * Api/qwebsecurityorigin.cpp:
3897
3898 2009-09-18  Warwick Allison  <warwick.allison@nokia.com>
3899
3900         Reviewed by Simon Hausmann.
3901
3902         Added a test that console output works.
3903
3904         * tests/qwebpage/tst_qwebpage.cpp:
3905         (ConsolePage::ConsolePage):
3906         (ConsolePage::javaScriptConsoleMessage):
3907         (tst_QWebPage::consoleOutput):
3908
3909 2009-09-17  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3910
3911         Reviewed by Simon Hausmann.
3912
3913         Improve documentation for Page Cache.
3914
3915         * Api/qwebsettings.cpp:
3916
3917 2009-09-17  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3918
3919         Reviewed by Simon Hausmann.
3920
3921         [Qt] Update QWebSettings::setUserStyleSheetUrl() docs and test
3922
3923         https://bugs.webkit.org/show_bug.cgi?id=29081
3924
3925         The documentation now specifies that the URL has to be a local file
3926         or a a data-URL (with utf-8 and base64-encoded data), as these are the
3927         only two schemes that the current code path accepts.
3928
3929         The auto-test has been updated to reflect this limitation.
3930
3931         At a later point we should concider adding API for the new way of
3932         doing both user defined stylesheets and scripts.
3933
3934         * Api/qwebsettings.cpp:
3935         * tests/qwebpage/tst_qwebpage.cpp:
3936
3937 2009-09-17  Janne Koskinen  <janne.p.koskinen@digia.com>
3938
3939         Reviewed by Simon Hausmann.
3940
3941         Symbian build fix.
3942
3943         Moved the #ifdefs around _q_cleanupLeakMessages() into the function
3944         definition.
3945
3946         QMake is not being able to distinguish between release and debug builds
3947         in Symbian build. This is a Symbian toolchain issue.
3948
3949         * Api/qwebpage.cpp:
3950         (QWebPagePrivate::_q_cleanupLeakMessages):
3951         * Api/qwebpage.h:
3952         * Api/qwebpage_p.h:
3953
3954 2009-09-17  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3955
3956         Reviewed by Simon Hausmann.
3957
3958         Small cosmetic documentation fixlet in the QWebInspector.
3959
3960         * Api/qwebinspector.cpp:
3961
3962 2009-09-16  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
3963
3964         Reviewed by Eric Seidel.
3965
3966         Detect and add Windows7 properly to the user agent.
3967
3968         * Api/qwebpage.cpp:
3969         (QWebPage::userAgentForUrl):
3970
3971 2009-09-16  Andras Becsi  <andrewbecsi@yahoo.co.uk>
3972
3973         Rubberstamped by Kenneth Christiansen.
3974
3975         [Qt] Build fix for previous changes.
3976
3977         * QGVLauncher/main.cpp:
3978         (MainView::flip):
3979
3980 2009-09-16  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3981
3982         Unreviewed potential Qt < 4.6 build fix.
3983
3984         * QGVLauncher/main.cpp:
3985         (MainView::flip):
3986
3987 2009-09-16  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3988
3989         Reviewed by Simon Hausmann.
3990
3991         Add a "Flip effect" to our GraphicsView based launcher.
3992
3993         * QGVLauncher/main.cpp:
3994         (MainView::resizeEvent):
3995         (MainView::flip):
3996         (MainWindow::flip):
3997         (MainWindow::buildUI):
3998
3999 2009-09-16  Zoltan Herczeg  <zherczeg@inf.u-szeged.hu>
4000
4001         Rubber-stamped by Simon Hausmann.
4002
4003         [Qt] Typo fix. Pass the window object to the Format
4004         menu. In this way Qt can free its internal graphical
4005         objects during exit.
4006
4007         * QtLauncher/main.cpp:
4008         (MainWindow::setupUI):
4009
4010 2009-09-16  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
4011
4012         Reviewed by Tor Arne Vestbø.
4013
4014         [Qt] Build break fix on gcc ARM.
4015
4016         * Api/qwebgraphicsitem.cpp:
4017         (QWebGraphicsItemPrivate::_q_doLoadProgress):
4018
4019 2009-09-16  Warwick Allison  <warwick.allison@nokia.com>
4020
4021         Reviewed by Simon Hausmann.
4022
4023         Fix a crash in QWebFrame::hasFocus() with a simple null pointer check
4024         when the focused frame is null. We do the same check in other places
4025         where we call kit().
4026
4027         * Api/qwebframe.cpp:
4028         (QWebFrame::hasFocus):
4029
4030 2009-09-16  Jure Repinc  <jlp@holodeck1.com>
4031
4032         Reviewed by Simon Hausmann.
4033
4034         Fixed a typo found during translation.
4035
4036         * WebCoreSupport/FrameLoaderClientQt.cpp:
4037         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
4038
4039 2009-09-14  Jakub Wieczorek  <faw217@gmail.com>
4040
4041         Reviewed by Simon Hausmann.
4042
4043         [Qt] QWebGraphicsItem should check for null QWebPage.
4044         https://bugs.webkit.org/show_bug.cgi?id=29185
4045
4046         Don't crash in QWebGraphicsItem when the page is still null, by
4047         either checking if it's the case or constructing the default one.
4048
4049         * Api/qwebgraphicsitem.cpp:
4050         (QWebGraphicsItem::icon):
4051         (QWebGraphicsItem::setZoomFactor):
4052         (QWebGraphicsItem::zoomFactor):
4053         (QWebGraphicsItem::setGeometry):
4054         (QWebGraphicsItem::load):
4055         (QWebGraphicsItem::setHtml):
4056         (QWebGraphicsItem::toHtml):
4057         (QWebGraphicsItem::setContent):
4058         (QWebGraphicsItem::history):
4059         (QWebGraphicsItem::settings):
4060
4061 2009-09-11  David Boddie  <dboddie@trolltech.com>
4062
4063         Reviewed by Simon Hausmann.
4064
4065         Doc: Note that Netscape plugins are only available on desktop platforms.
4066
4067         * docs/qtwebkit.qdoc:
4068
4069 2009-09-11  Martin Smith  <msmith@trolltech.com>
4070
4071         Reviewed by Simon Hausmann.
4072
4073         Adjust the name of the contentspage for the documentation
4074         to the new name used in Qt 4.6.
4075
4076         * docs/qtwebkit.qdoc:
4077
4078 2009-09-11  Ariya Hidayat  <ariya.hidayat@nokia.com>
4079
4080         Reviewed by Simon Hausmann.
4081
4082         Changed URLs from qtsoftware.com to qt.nokia.com, as part of a general
4083         renaming.
4084
4085         * Api/qwebpluginfactory.cpp:
4086         * docs/webkitsnippets/simple/main.cpp:
4087         (main):
4088         * docs/webkitsnippets/webpage/main.cpp:
4089         (main):
4090
4091 2009-09-11  Volker Hilsheimer  <volker.hilsheimer@nokia.com>
4092
4093         Reviewed by Simon Hausmann.
4094
4095         Restructure the documentation, both on a file and on a content level.
4096
4097         * Api/qwebdatabase.cpp:
4098         * Api/qwebelement.cpp:
4099         * Api/qwebframe.cpp:
4100         * Api/qwebhistory.cpp:
4101         * Api/qwebhistoryinterface.cpp:
4102         * Api/qwebpage.cpp:
4103         * Api/qwebpluginfactory.cpp:
4104         * Api/qwebsecurityorigin.cpp:
4105         * Api/qwebsettings.cpp:
4106         * Api/qwebview.cpp:
4107         * docs/qtwebkit.qdoc:
4108
4109 2009-09-11  Yongjun Zhang  <yongjun.zhang@nokia.com>
4110
4111         Reviewed by Simon Hausmann.
4112         
4113         https://bugs.webkit.org/show_bug.cgi?id=29136
4114         [Qt] emit microFocusChanged() signal when no QWidget-based view is present.
4115
4116         emit microFocusChange() signal regardless of view.
4117
4118         * WebCoreSupport/EditorClientQt.cpp:
4119         (WebCore::EditorClientQt::setInputMethodState):
4120
4121 2009-09-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
4122
4123         Reviewed by Simon Hausmann.
4124
4125         https://bugs.webkit.org/show_bug.cgi?id=28806
4126
4127         [Qt] Make the WebInspector available as a QWidget.
4128
4129         * Api/headers.pri:
4130         * Api/qwebelement.cpp:
4131         (QWebElement::enclosingElement):
4132         * Api/qwebelement.h:
4133         * Api/qwebinspector.cpp: Added.
4134         * Api/qwebinspector.h: Added.
4135         * Api/qwebinspector_p.h: Added.
4136         * Api/qwebpage.cpp:
4137         (QWebPagePrivate::QWebPagePrivate):
4138         (QWebPagePrivate::setInspector):
4139         (QWebPagePrivate::getOrCreateInspector):
4140         (QWebPagePrivate::inspectorController):
4141         (QWebPage::~QWebPage):
4142         (QWebPage::triggerAction):
4143         * Api/qwebpage.h:
4144         * Api/qwebpage_p.h:
4145         * Api/qwebsettings.cpp:
4146         * QtLauncher/main.cpp:
4147         (MainWindow::MainWindow):
4148         * WebCoreSupport/InspectorClientQt.cpp:
4149         (WebCore::InspectorClientWebPage::InspectorClientWebPage):
4150         (WebCore::InspectorClientWebPage::createWindow):
4151         (WebCore::InspectorClientQt::createPage):
4152         (WebCore::InspectorClientQt::showWindow):
4153         (WebCore::InspectorClientQt::closeWindow):
4154         (WebCore::InspectorClientQt::attachWindow):
4155         (WebCore::InspectorClientQt::detachWindow):
4156         (WebCore::InspectorClientQt::updateWindowTitle):
4157         * WebCoreSupport/InspectorClientQt.h:
4158         * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp: Added.
4159
4160 2009-09-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
4161
4162         Reviewed by Eric Seidel.
4163
4164         [Qt] Fix comparison between signed and unsigned integer warnings
4165         https://bugs.webkit.org/show_bug.cgi?id=29162
4166
4167         No functional change.
4168
4169         * Api/qwebelement.cpp:
4170         (QWebElement::findAll):
4171         * Api/qwebhistory.cpp:
4172         (QWebHistory::items):
4173         (QWebHistory::backItems):
4174         (QWebHistory::forwardItems):
4175         (QWebHistory::saveState):
4176         * Api/qwebplugindatabase.cpp:
4177         (QWebPluginDatabase::setSearchPaths):
4178         * WebCoreSupport/ChromeClientQt.cpp:
4179         (WebCore::ChromeClientQt::runOpenPanel):
4180         * WebCoreSupport/FrameLoaderClientQt.cpp:
4181         (WebCore::FrameLoaderClientQt::createPlugin):
4182
4183 2009-09-10  Simon Hausmann  <hausmann@webkit.org>
4184
4185         Rubber-stamped by Ariya Hidayat.
4186
4187         Fix a bunch of qdoc warnings: Invalid references, non-standard
4188         wording, etc.
4189
4190         * Api/qwebelement.cpp:
4191         * Api/qwebgraphicsitem.cpp:
4192         * Api/qwebsecurityorigin.cpp:
4193
4194 2009-09-10  Simon Hausmann  <hausmann@webkit.org>
4195
4196         Reviewed by Ariya Hidayat.
4197
4198         Fix context menu event delivery with QWebGraphicsItem.
4199
4200         Re-implement the correct context menu virtual function using
4201         a QGraphicsSceneContextMenuEvent and forward & handle it in
4202         QWebPage.
4203
4204         * Api/qwebgraphicsitem.cpp:
4205         (QWebGraphicsItem::contextMenuEvent):
4206         * Api/qwebgraphicsitem.h:
4207         * Api/qwebpage.cpp:
4208         (QWebPagePrivate::contextMenuEvent):
4209         (QWebPage::event):
4210         * Api/qwebpage_p.h:
4211
4212 2009-09-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
4213
4214         Unreviewed.
4215
4216         Build fix for QtWebKit for Mac after r48219.
4217
4218         qevent and qstyleoption are QtGui interfaces.
4219
4220         * Api/qwebgraphicsitem.cpp:
4221         * Api/qwebgraphicsitem.h:
4222
4223 2009-09-09  Simon Hausmann  <hausmann@webkit.org>
4224
4225         Reviewed by Tor Arne Vestbø.
4226
4227         Call the right base class function QGraphicsWidget::event() instead
4228         of skipping it and using QObject::event() instead.
4229
4230         * Api/qwebgraphicsitem.cpp:
4231         (QWebGraphicsItem::event):
4232
4233 2009-09-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>
4234
4235         Unreviewed.
4236
4237         Fix comment at Tor Arne Vestbø's request.
4238
4239         * Api/qwebgraphicsitem.cpp:
4240         (QWebGraphicsItem::sceneEvent):
4241         (QWebGraphicsItem::event):
4242
4243 2009-09-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>
4244
4245         Reviewed by Tor Arne Vestbø.
4246
4247         Implement some virtual event methods so that we can fix
4248         event-related bugs in Qt patch releases.
4249
4250         * Api/qwebgraphicsitem.cpp:
4251         (QWebGraphicsItem::sceneEvent):
4252         (QWebGraphicsItem::event):
4253         * Api/qwebgraphicsitem.h:
4254
4255 2009-09-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>, Antonio Gomes  <antonio.gomes@openbossa.org>
4256
4257         Reviewed by Simon Hausmann.
4258
4259         Add a new QGraphicsWidget based version of the "QWebView"
4260         under the name "QWebGraphicsItem".
4261
4262         https://bugs.webkit.org/show_bug.cgi?id=28862
4263
4264         Includes an alternative Qt launcher using the QGraphicsView.
4265
4266         * Api/headers.pri:
4267         * Api/qwebgraphicsitem.cpp: Added.
4268         * Api/qwebgraphicsitem.h: Added.
4269         * Api/qwebpage.h:
4270         * QGVLauncher/QGVLauncher.pro: Copied from WebKit/qt/QtLauncher/QtLauncher.pro.
4271         * QGVLauncher/main.cpp: Added.
4272         * WebCoreSupport/ChromeClientQt.cpp:
4273         (WebCore::ChromeClientQt::repaint):
4274         (WebCore::ChromeClientQt::scroll):
4275
4276 2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
4277
4278         Unreviewed build fix.
4279
4280         Potential build fix for Qt 4.5
4281
4282         * Api/qwebpage.cpp:
4283         (QWebPagePrivate::mousePressEvent):
4284
4285 2009-09-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
4286
4287         Reviewed by Simon Hausmann.
4288
4289         https://bugs.webkit.org/show_bug.cgi?id=29007
4290         Add a test for the signal QWebFrame::javaScriptWindowObjectCleared()
4291
4292         * tests/qwebframe/tst_qwebframe.cpp:
4293
4294 2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
4295
4296         Reviewed by Simon Hausmann.
4297
4298         [Qt] Fix unused variable warnings
4299         https://bugs.webkit.org/show_bug.cgi?id=29018
4300
4301         * Api/qwebpage.cpp:
4302         (QWebPagePrivate::keyPressEvent):
4303         * WebCoreSupport/FrameLoaderClientQt.cpp:
4304         (WebCore::FrameLoaderClientQt::startDownload):
4305         (WebCore::FrameLoaderClientQt::createFrame):
4306
4307 2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
4308
4309         Reviewed by Ariya Hidayat.
4310
4311         [Qt] Use the declaration order in initializer lists
4312         https://bugs.webkit.org/show_bug.cgi?id=29017
4313
4314         * Api/qwebframe_p.h:
4315
4316 2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
4317
4318         Reviewed by Simon Hausmann.
4319
4320         Add support for handling QGraphicsScene events.
4321
4322         * Api/qwebpage.cpp:
4323         (QWebPagePrivate::mouseMoveEvent):
4324         (QWebPagePrivate::mousePressEvent):
4325         (QWebPagePrivate::mouseDoubleClickEvent):
4326         (QWebPagePrivate::mouseTripleClickEvent):
4327         (QWebPagePrivate::handleClipboard):
4328         (QWebPagePrivate::mouseReleaseEvent):
4329         (QWebPagePrivate::wheelEvent):
4330         (QWebPagePrivate::dragEnterEvent):
4331         (QWebPagePrivate::dragLeaveEvent):
4332         (QWebPagePrivate::dragMoveEvent):
4333         (QWebPagePrivate::dropEvent):
4334         (QWebPage::event):
4335         * Api/qwebpage_p.h:
4336
4337 2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
4338
4339         Reviewed by Simon Hausmann.
4340
4341         [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
4342         https://bugs.webkit.org/show_bug.cgi?id=28865
4343
4344         Clean up the unserCursor hack to use the QCursor set
4345         as a property of the QWidget by WebCore::WidgetQt.
4346
4347         Remove all code that are no longer necessary for getting
4348         cursor change events.
4349
4350         Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
4351                  Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07
4352
4353         * Api/qwebpage.cpp:
4354         * Api/qwebpage_p.h:
4355         * Api/qwebview.cpp:
4356         (QWebViewPrivate::QWebViewPrivate):
4357         (QWebView::event):
4358
4359 2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
4360
4361         Reviewed by Simon Hausmann.
4362
4363         [Qt] QtWebKit single API to enable persistency
4364         https://bugs.webkit.org/show_bug.cgi?id=28682
4365
4366         Disable LocalStorage, ApplicationCache, HTML5 offline storage by
4367         default.
4368
4369         If persistency is enabled the default directory for LocalStorage and
4370         ApplicationCache is now based on QDesktopServices::DataLocation and not
4371         QDesktopServices::CacheLocation (as it is expected to keep this data
4372         around after a reboot).
4373
4374         If persistency is enabled initialize HTML5 offline storage as well - this
4375         fixed offline Storage for QtLauncher.
4376
4377         * Api/qwebpage.cpp:
4378         (QWebPagePrivate::QWebPagePrivate):
4379         * Api/qwebsettings.cpp:
4380         (QWebSettings::QWebSettings):
4381         (QWebSettings::enablePersistentStorage):
4382         * Api/qwebsettings.h: Add a new API called enablePersistentStorage
4383         * QtLauncher/main.cpp: Use the new enablePersistentStorage API
4384         (main):
4385
4386 2009-09-07  Jakub Wieczorek  <faw217@gmail.com>
4387
4388         Reviewed by Simon Hausmann.
4389
4390         Speed up the QWebPluginInfo::supportsMimeType() function.
4391         https://bugs.webkit.org/show_bug.cgi?id=27651
4392
4393         Instead of going through the MIME types list constructed with
4394         mimeTypes() function, look up the internal mimeToDescriptions map.
4395
4396         * Api/qwebplugindatabase.cpp:
4397         (QWebPluginInfo::supportsMimeType):
4398
4399 2009-09-07  Jakub Wieczorek  <faw217@gmail.com>
4400
4401         Reviewed by Simon Hausmann.
4402
4403         Speed up the QWebPluginInfo::mimeTypes() function.
4404         https://bugs.webkit.org/show_bug.cgi?id=27651
4405
4406         Instead of constructing a list of MIME types every time it is called,
4407         do this only once.
4408
4409         * Api/qwebplugindatabase.cpp:
4410         (QWebPluginInfo::mimeTypes):
4411         (QWebPluginInfo::operator=):
4412         * Api/qwebplugindatabase.h:
4413         * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
4414         (tst_QWebPluginDatabase::operatorassign_data):
4415         (tst_QWebPluginDatabase::operatorassign):
4416
4417 2009-09-07  Jakub Wieczorek  <faw217@gmail.com>
4418
4419         Reviewed by Simon Hausmann.
4420
4421         Remove the private classes from QWebPluginDatabase.
4422         https://bugs.webkit.org/show_bug.cgi?id=27651
4423
4424         Instead, hold the PluginDatabase and PluginPackage objects as class
4425         members and take care of refcounting on our own instead of using RefPtr.
4426
4427         This way we not only made the code cleaner but also got rid of
4428         redundant allocations when constructing null QWebPluginInfo objects.
4429