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