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