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