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