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