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