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