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