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