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