OSDN Git Service

am 53e1af87: am 2eb76d0b: Add logging for all plugin events and their return values.
[android-x86/external-webkit.git] / WebKit / qt / ChangeLog
1 2010-01-19  Steve Block  <steveblock@google.com>
2
3         Reviewed by Adam Barth.
4
5         Renames WebCore/bridge/runtime.[cpp|h] to WebCore/bridge/Bridge.[cpp|h]
6         https://bugs.webkit.org/show_bug.cgi?id=33801
7
8         * Api/qwebframe.cpp:
9
10 2009-12-13  Sam Weinig  <sam@webkit.org>
11
12         Reviewed by Dan Bernstein.
13
14         Fix for https://bugs.webkit.org/show_bug.cgi?id=32499
15         Add client based Geolocation provider
16
17         Add first cut of a client based Geolocation provider. This is guarded by
18         ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a
19         GeolocationControllerClient interface that no-one currently implements,
20         but will in a subsequent patch.
21
22         * Api/qwebpage.cpp:
23         (QWebPagePrivate::QWebPagePrivate):
24
25 2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
26
27         Reviewed by Kenneth Rohde Christiansen.
28
29         [Qt] Improve the autotests of QtWebkit
30         https://bugs.webkit.org/show_bug.cgi?id=32216
31
32         Remove the calls to qWait() of the autotest of QWebView
33
34         * tests/qwebview/tst_qwebview.cpp:
35         (tst_QWebView::reusePage):
36
37 2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
38
39         Reviewed by Kenneth Rohde Christiansen.
40
41         [Qt] Improve the autotests of QtWebkit
42         https://bugs.webkit.org/show_bug.cgi?id=32216
43
44         Refactor tst_qwebframe to remove qWait() and use
45         the function waitForSignal() from util.h
46
47         * tests/qwebframe/tst_qwebframe.cpp:
48
49 2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
50
51         Reviewed by Kenneth Rohde Christiansen.
52
53         [Qt] Improve the autotests of QtWebkit
54         https://bugs.webkit.org/show_bug.cgi?id=32216
55
56         Refactor the test of QGraphicsWebView:
57         -make waitForSignal() available to all the tests.
58         -remove QTest::qWait()
59
60         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
61         (tst_QGraphicsWebView::crashOnViewlessWebPages):
62         * tests/util.h:
63         (waitForSignal):
64
65 2009-12-07  Girish Ramakrishnan  <girish@forwardbias.in>
66
67         Reviewed by Simon Hausmann.
68
69         [Qt] Plugins: Force windowless mode when there is no native window handle
70         
71         Inject wmode=opaque while instantiating the plugin for the case when the
72         webpage is not backed by a native window handle.
73         
74         https://bugs.webkit.org/show_bug.cgi?id=32059
75
76         * WebCoreSupport/FrameLoaderClientQt.cpp:
77         (WebCore::FrameLoaderClientQt::createPlugin):
78
79 2009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
80
81         Reviewed by Kenneth Rohde Christiansen.
82
83         [Qt] Corrects QtLauncher style
84
85         * QtLauncher/main.cpp:
86         (WebPage::acceptNavigationRequest):
87         (MainWindow::MainWindow):
88         (MainWindow::webPage):
89         (MainWindow::webView):
90         (MainWindow::changeLocation):
91         (MainWindow::loadFinished):
92         (MainWindow::showLinkHover):
93         (MainWindow::zoomIn):
94         (MainWindow::zoomOut):
95         (MainWindow::print):
96         (MainWindow::setEditable):
97         (MainWindow::dumpHtml):
98         (MainWindow::selectElements):
99         (MainWindow::newWindow):
100         (MainWindow::setupUI):
101         (WebPage::createWindow):
102         (WebPage::createPlugin):
103         (main):
104
105 2009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
106
107         Reviewed by Kenneth Rohde Christiansen.
108
109         [Qt] QtLauncher: add a menu to show or hide the web inspector.
110         https://bugs.webkit.org/show_bug.cgi?id=32149
111
112         * QtLauncher/main.cpp:
113         (WebInspector::WebInspector):
114         (WebInspector::showEvent):
115         (WebInspector::hideEvent):
116         (MainWindow::MainWindow):
117         (MainWindow::setupUI):
118
119 2009-12-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
120
121         Reviewed by Antti Koivisto.
122
123         Split out the renderPrivate in two methods, one for working on
124         relative coordinates (relative to the viewport) and one for
125         working on absolute coordinates. The latter is more effecient
126         for implementing tiling, as you don't need translate the coords,
127         and because it avoid clipping to the viewport.
128
129         No behaviour changes, so no new tests.
130
131         * Api/qwebframe.cpp:
132         (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
133         (QWebFramePrivate::renderRelativeCoords):
134         (QWebFrame::render):
135         * Api/qwebframe_p.h:
136
137 2009-12-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
138
139         Reviewed by Simon Hausmann.
140
141         [Qt] Allow removing 'qrc' as a local security origin scheme
142
143         * tests/qwebpage/tst_qwebpage.cpp:
144
145 2009-12-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
146
147         Reviewed by Simon Hausmann.
148
149         [Qt] Clean up argument parsing in the QtLauncher
150
151         * QtLauncher/main.cpp:
152
153 2009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
154
155         Reviewed by Kenneth Rohde Christiansen.
156
157         [Qt] Prevent the inspector from closing its wrapping widget.
158         This is not necessary anymore since we now hide the embedded
159         close button.
160         https://bugs.webkit.org/show_bug.cgi?id=32149
161
162         * WebCoreSupport/InspectorClientQt.cpp:
163         (WebCore::InspectorClientQt::showWindow):
164         (WebCore::InspectorClientQt::closeWindow):
165
166 2009-12-03  İsmail Dönmez  <ismail@namtrac.org>
167
168         Reviewed by Eric Seidel.
169
170         Fix compilation when SVG is disabled.
171
172         * Api/qwebframe.cpp:
173         (qt_drt_pauseSVGAnimation):
174
175 2009-12-03  Brady Eidson  <beidson@apple.com>
176
177         Reviewed by Sam Weinig.
178
179         <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
180
181         * WebCoreSupport/FrameLoaderClientQt.cpp:
182         (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
183         (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
184         (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
185         * WebCoreSupport/FrameLoaderClientQt.h:
186
187 2009-12-03  Pavel Feldman  <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
188
189         Reviewed by Timothy Hatcher.
190
191         Web Inspector: Simplify the settings support in inspector controller.
192
193         https://bugs.webkit.org/show_bug.cgi?id=32076
194
195         * WebCoreSupport/InspectorClientQt.cpp:
196         (WebCore::InspectorClientQt::populateSetting):
197         (WebCore::InspectorClientQt::storeSetting):
198         (WebCore::variantToSetting):
199         (WebCore::settingToVariant):
200         * WebCoreSupport/InspectorClientQt.h:
201
202 2009-12-03  Ben Murdoch  <benm@google.com>
203
204         Reviewed by Brady Eidson.
205
206         [Android] The FrameLoaderClient is unaware of BackForwardList changes.
207         https://bugs.webkit.org/show_bug.cgi?id=31914
208
209         * WebCoreSupport/FrameLoaderClientQt.cpp:
210         (WebCore::FrameLoaderClientQt::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
211         (WebCore::FrameLoaderClientQt::dispatchDidRemoveBackForwardItem): ditto.
212         (WebCore::FrameLoaderClientQt::dispatchDidChangeBackForwardIndex): ditto.
213         * WebCoreSupport/FrameLoaderClientQt.h:
214
215 2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
216
217         Not reviewed. Try to fix Qt build.
218
219         * Api/qwebframe.cpp:
220         (qt_drt_pauseSVGAnimation):
221
222 2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
223
224         Reviewed by Simon Fraser.
225
226         Add SVG animation test framework with 'snapshot' functionality
227         https://bugs.webkit.org/show_bug.cgi?id=31897
228
229         Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
230         forwarding the call to SVGDocumentExtensions, if SVG is enabled.
231
232         Implemented just like the existing pauseAnimation* methods for CSS animations.
233
234         * Api/qwebframe.cpp:
235         (qt_drt_pauseSVGAnimation):
236
237 2009-12-01  Daniel Bates  <dbates@webkit.org>
238
239         Reviewed by Kenneth Rohde Christiansen.
240
241         https://bugs.webkit.org/show_bug.cgi?id=31898
242
243         Makes QtLauncher default to the http scheme for URLs.
244
245         * QtLauncher/main.cpp:
246         (MainWindow::MainWindow):
247         (MainWindow::changeLocation):
248         (main):
249
250 2009-11-30  Abhinav Mithal  <abhinav.mithal@nokia.com>
251
252         Reviewed by Simon Hausmann.
253
254         [Qt][Symbian] Report SymbianOS in user agent string for Symbian
255         https://bugs.webkit.org/show_bug.cgi?id=31961
256
257         * Api/qwebpage.cpp:
258         (QWebPage::userAgentForUrl):
259
260 2009-11-30  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
261
262         Reviewed by Kenneth Rohde Christiansen.
263
264         [Qt] Fix minor waning in QtWebKit
265         https://bugs.webkit.org/show_bug.cgi?id=31963
266
267         * tests/qwebpage/tst_qwebpage.cpp:
268         (ErrorPage::extension): Remove info wariable as it is
269         not used.
270
271 2009-11-28  Simon Hausmann  <simon.hausmann@nokia.com>
272
273         Reviewed by Kenneth Rohde Christiansen.
274
275         [Qt] SoftwareInputPanelRequest event sent when clicking in newly loaded page
276
277         https://bugs.webkit.org/show_bug.cgi?id=31401
278
279         Don't set the event unless there is a focused node we can use
280         for editing afterwards.
281
282         * Api/qwebpage.cpp:
283         (QWebPagePrivate::handleSoftwareInputPanel):
284         * tests/qwebpage/tst_qwebpage.cpp:
285         (tst_QWebPage::inputMethods):
286
287 2009-11-26  Simon Hausmann  <simon.hausmann@nokia.com>
288
289         Rubber-stamped by Holger Freyther.
290
291         Removed unused ICO image plugin handler.
292
293         * Plugins/ICOHandler.cpp: Removed.
294         * Plugins/ICOHandler.h: Removed.
295         * Plugins/Plugins.pro: Removed.
296
297 2009-11-12  Holger Hans Peter Freyther  <zecke@selfish.org>
298
299         Reviewed by Kenneth Rohde Christiansen.
300
301         [Qt] Do not show the QWidget when the WebCore::Widget is hidden
302         https://bugs.webkit.org/show_bug.cgi?id=31203
303
304         The clipping code was making a QWidget visible even if the
305         WebCore::Widget was hidden. Fix the bug by calling setVisible
306         only if the WebCore::Widget Widget::isSelfVisible.
307
308         * WebCoreSupport/FrameLoaderClientQt.cpp:
309         (WebCore::QtPluginWidget::show): Override WebCore::Widget::show to call handleVisibility
310         (WebCore::QtPluginWidget::handleVisibility): New method to call setVisible when we are visible
311         (FrameLoaderClientQt::createPlugin): Hide the QWidget by default
312
313 2009-11-23  David Boddie  <dboddie@trolltech.com>
314
315         Reviewed by Simon Hausmann.
316
317         Updated the QWebElement documentation with links to examples and
318         external resources.
319         Fixed the project file for the webelement snippet and tidied up the
320         markers used for quoting the code.
321
322         * Api/qwebelement.cpp:
323         * docs/webkitsnippets/webelement/main.cpp:
324         (findAll):
325         * docs/webkitsnippets/webelement/webelement.pro:
326
327 2009-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
328
329         Reviewed by Kenneth Rohde Christiansen.
330
331         [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
332         the wrapped object died before the gc removed the instance.
333
334         https://bugs.webkit.org/show_bug.cgi?id=31681
335
336         Added a unit-test to verify that wrapping a QObject with the
337         same identity as a previously but now dead object works.
338
339         * tests/qwebframe/tst_qwebframe.cpp:
340
341 2009-11-19  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
342
343         Reviewed by Kenneth Rohde Christiansen.
344
345         [Qt] Add instantiation tests for QWebInspector.
346
347         * tests/qwebinspector/qwebinspector.pro: Added.
348         * tests/qwebinspector/tst_qwebinspector.cpp: Added.
349         (tst_QWebInspector::attachAndDestroy):
350         * tests/tests.pro:
351
352 2009-11-19  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
353
354         Reviewed by Kenneth Rohde Christiansen.
355
356         [Qt] Fix QWebInspector destruction problem.
357         https://bugs.webkit.org/show_bug.cgi?id=31664
358
359         * Api/qwebpage.cpp:
360         (QWebPage::~QWebPage):
361
362 2009-11-19  Olivier Goffart  <ogoffart@trolltech.com>
363
364         Reviewed by Simon Hausmann.
365
366         [Qt] Normalize signal and slot signatures.
367
368         * Api/qgraphicswebview.cpp:
369         (QGraphicsWebView::setPage):
370         * Api/qwebview.cpp:
371         (QWebView::setPage):
372         * WebCoreSupport/FrameLoaderClientQt.cpp:
373         (WebCore::FrameLoaderClientQt::setFrame):
374         * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
375         (wrapInFunction):
376         * tests/qwebframe/tst_qwebframe.cpp:
377         * tests/qwebpage/tst_qwebpage.cpp:
378         (tst_QWebPage::modified):
379         (tst_QWebPage::database):
380
381 2009-11-18  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
382
383         Reviewed by Kenneth Rohde Christiansen.
384
385         [Qt] Remove support for Qt v4.3 or older versions
386         https://bugs.webkit.org/show_bug.cgi?id=29469
387
388         * Api/qcookiejar.cpp: Removed.
389         * Api/qcookiejar.h: Removed.
390         * Api/qgraphicswebview.cpp:
391         (QGraphicsWebView::event):
392         * Api/qwebframe.cpp:
393         (QWebFrame::load):
394         * Api/qwebframe.h:
395         * Api/qwebkitglobal.h:
396         * Api/qwebnetworkinterface.cpp: Removed.
397         * Api/qwebnetworkinterface.h: Removed.
398         * Api/qwebnetworkinterface_p.h: Removed.
399         * Api/qwebpage.cpp:
400         (QWebPagePrivate::QWebPagePrivate):
401         (QWebPagePrivate::acceptNavigationRequest):
402         (QWebPage::acceptNavigationRequest):
403         (QWebPage::action):
404         (QWebPage::userAgentForUrl):
405         * Api/qwebpage.h:
406         * Api/qwebpage_p.h:
407         * Api/qwebview.cpp:
408         (QWebView::load):
409         (QWebView::event):
410         * Api/qwebview.h:
411         * QtLauncher/main.cpp:
412         (MainWindow::print):
413         (MainWindow::setupUI):
414         (main):
415         * WebCoreSupport/FrameLoaderClientQt.cpp:
416         (WebCore::FrameLoaderClientQt::download):
417         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
418         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
419         (WebCore::FrameLoaderClientQt::startDownload):
420         (WebCore::FrameLoaderClientQt::createPlugin):
421
422 2009-11-18  Shu Chang  <Chang.Shu@nokia.com>
423
424         Reviewed by Eric Seidel.
425
426         [Qt] Add support for displaying deleteButton.
427         https://bugs.webkit.org/show_bug.cgi?id=31560
428
429         Test: LayoutTests/editing/deleting/5408255.html
430
431         * Api/qwebsettings.cpp:
432         (graphics):
433         * Api/qwebsettings.h:
434
435 2009-11-18  Paul Olav Tvete  <paul.tvete@nokia.com>
436
437         Reviewed by Simon Hausmann.
438
439         [Qt] Make the QWebElement::render() test pass when pixmaps aren't 32 bit.
440
441         * tests/qwebelement/tst_qwebelement.cpp:
442         (tst_QWebElement::render):
443
444 2009-11-18  Simon Hausmann  <simon.hausmann@nokia.com>
445
446         Reviewed by Tor Arne Vestbø.
447
448         Clarify and simplify the legal section in the overview documentation,
449         after review with our legal team.
450
451         * docs/qtwebkit.qdoc:
452
453 2009-11-18  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
454
455         Reviewed by Simon Hausmann.
456
457         [Qt] Add QtLauncher support for opening links in the default browser
458
459         This can be triggered by either the context menu or by clicking a link
460         while holding down the Alt key. Opening a link in a new windows is
461         triggered by holding down Shift.
462
463         * QtLauncher/main.cpp:
464
465 2009-11-17  Yael Aharon  <yael.aharon@nokia.com>
466
467         Reviewed by Kenneth Rohde Christiansen.
468
469         [Qt] QGLLauncher does not support drag&drop of local files
470         https://bugs.webkit.org/show_bug.cgi?id=31057
471
472         Enable accepting files in QGraphicsWebView.
473
474         * Api/qgraphicswebview.cpp:
475         (QGraphicsWebView::QGraphicsWebView):
476         (QGraphicsWebView::dragEnterEvent):
477
478 2009-11-17  Antonio Gomes  <tonikitoo@webkit.org>
479
480         Reviewed by Kenneth Christiansen.
481
482         [Qt] better test coverage for ErrorPageExtension
483         https://bugs.webkit.org/show_bug.cgi?id=31583
484
485         Improved the coverage of current ErrorPageExtension tests by
486         adding autotests involving frameset and iframes.
487
488         * tests/qwebpage/tst_qwebpage.cpp:
489         (ErrorPage::extension): Make the ErrorPageExtension
490         to work for all frames, not only the main frame.
491         (tst_QWebPage::errorPageExtension): Stop using
492         the 'frameset.html' resouce in this method since
493         an autotest specific for frameset's is being added.
494         (tst_QWebPage::errorPageExtensionInIFrames): Added.
495         (tst_QWebPage::errorPageExtensionInFrameset): Added.
496
497 2009-11-16  Simon Hausmann  <simon.hausmann@nokia.com>
498
499         Reviewed by Kenneth Rohde Christiansen.
500
501         API documentation fixes.
502
503         * Api/qgraphicswebview.cpp: Removed duplicate docs.
504         * Api/qwebelement.cpp: Added missing docs.
505         * Api/qwebsettings.cpp: Ditto.
506
507 2009-11-14  Antonio Gomes  <tonikitoo@webkit.org>
508
509         Reviewed by Antti Koivisto.
510
511         [Qt] Broken back/forward after using ErrorPageExtension to set error page
512         https://bugs.webkit.org/show_bug.cgi?id=30573
513
514         Implemented autotests for covering the back/forward
515         reset problem involving error pages.
516
517         * tests/qwebpage/tst_qwebpage.cpp:
518         (tst_QWebPage::errorPageExtension):
519
520 2009-11-13  Adam Roben  <aroben@apple.com>
521
522         Update for changes to FrameLoaderClient
523
524         Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
525         window objects in isolated worlds are cleared
526
527         Reviewed by Dave Hyatt.
528
529         * WebCoreSupport/FrameLoaderClientQt.cpp:
530         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
531         * WebCoreSupport/FrameLoaderClientQt.h:
532         Replaced windowObjectCleared with this function. Does nothing if the
533         passed-in world is not the mainThreadNormalWorld().
534
535 2009-11-13  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
536
537         Reviewed by Kenneth Rohde Christiansen.
538
539         [Qt] Enable Page Cache if setMaximumPagesInCache needs it.
540         This fixes https://bugs.webkit.org/show_bug.cgi?id=31266.
541
542         * Api/qwebsettings.cpp:
543         (QWebSettingsPrivate::apply):
544         (QWebSettings::setMaximumPagesInCache):
545
546 2009-11-13  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
547
548         Reviewed by Kenneth Rohde Christiansen.
549
550         [Qt] Fix initial QWebView focus behavior.
551
552         focusController->setFocused(true) was not always called.
553         https://bugs.webkit.org/show_bug.cgi?id=31466
554
555         * Api/qwebpage.cpp:
556         (QWebPagePrivate::focusInEvent):
557
558 2009-11-13  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
559
560         Reviewed by Simon Hausmann.
561
562         Update documentation for the Qt API
563
564         * Api/qgraphicswebview.cpp:
565         * Api/qwebelement.cpp:
566         * Api/qwebframe.cpp:
567         * Api/qwebsettings.cpp:
568         * Api/qwebview.cpp:
569
570 2009-11-13  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
571
572         Reviewed by Simon Hausmann.
573
574         Use correct install-path when running qdoc3
575
576         * docs/docs.pri:
577
578 2009-11-12  Shinichiro Hamaji  <hamaji@chromium.org>
579
580         Reviewed by Darin Adler.
581
582         externalRepresentation should take Frame as the argument
583         https://bugs.webkit.org/show_bug.cgi?id=31393
584
585         No new tests as this is just a refactoring.
586
587         * Api/qwebframe.cpp:
588         (QWebFrame::renderTreeDump):
589
590 2009-11-12  Antonio Gomes  <tonikitoo@webkit.org>
591
592         Reviewed by Jan Alonzo.
593
594         [Qt] Various doc fixes
595         https://bugs.webkit.org/show_bug.cgi?id=31358
596
597         QWebPage's constructor docs are mentioning "QWebView":
598         "Constructs an empty QWebView with parent".
599
600         * Api/qwebpage.cpp:
601
602 2009-11-12  Benjamin Poulain  <benjamin.poulain@nokia.com>
603
604         Reviewed by Kenneth Rohde Christiansen.
605
606         Custom printing shrink factors
607         https://bugs.webkit.org/show_bug.cgi?id=29042
608
609         This reverts commit r49769. The public API for this needs to be reviewed
610         before its inclusion in Qt.
611
612         * Api/qwebsettings.cpp:
613         (QWebSettingsPrivate::apply):
614         (QWebSettings::QWebSettings):
615         * Api/qwebsettings.h:
616
617 2009-11-11  Antonio Gomes  <tonikitoo@webkit.org>
618
619         Reviewed by Kenneth Christiansen.
620
621         [Qt] Various doc fixes
622         https://bugs.webkit.org/show_bug.cgi?id=31358
623
624         Fixed wrong documentation: item's dimensions do fit to Web page
625         content by default.
626
627         Kenneth agreed to land this as a followup patch to the
628         just landed documentation patch.
629
630         * Api/qgraphicswebview.cpp:
631
632 2009-11-11  David Boddie  <dboddie@trolltech.com>
633
634         Reviewed by Kenneth Christiansen.
635
636         [Qt] Various doc fixes
637         https://bugs.webkit.org/show_bug.cgi?id=31323
638
639         Fixed and synchronized QWebView related documentation.
640
641         * Api/qgraphicswebview.cpp:
642         * Api/qwebview.cpp:
643
644 2009-11-11  Kenneth Rohde Christiansen  <kenneth@webkit.org>
645
646         Unreviewed buildbot fix.
647
648         Export a method to the DRT to know if the document has a
649         document element.
650
651         * Api/qwebframe.cpp:
652         (qt_drt_hasDocumentElement):
653
654 2009-11-11  Liang QI  <liang.qi@nokia.com>
655
656         [Qt] Fix tst_qwebpage and tst_qwebframe compilation on Symbian.
657
658         * tests/qwebframe/qwebframe.pro:
659         * tests/qwebframe/tst_qwebframe.cpp:
660         * tests/qwebpage/qwebpage.pro:
661         * tests/qwebpage/tst_qwebpage.cpp:
662
663 2009-11-11  Kenneth Rohde Christiansen  <kenneth@webkit.org>
664
665         Reviewed by Simon Hausmann.
666
667         Fix a crash in the layout test plugins/document-open.html
668
669         * Api/qwebframe.cpp:
670         (QWebFrame::toPlainText):
671
672 2009-11-11  Warwick Allison  <warwick.allison@nokia.com>, Simon Hausmann  <simon.hausmann@nokia.com>
673
674         Reviewed by Tor Arne Vestbø.
675
676         [Qt] Regression: Preserve the parent of plugin objects when using
677         QtWebKit with only a QWebPage.
678
679         * WebCoreSupport/FrameLoaderClientQt.cpp:
680         (WebCore::FrameLoaderClientQt::createPlugin): Don't reparent
681         plugins to 0.
682         * tests/qwebpage/tst_qwebpage.cpp:
683         (PluginCounterPage::PluginCounterPage): Initialize m_pluginParent to 0.
684         (PluginCounterPage::~PluginCounterPage): Delete the plugin parent later
685         (after the page)
686         (PluginTracerPage::createPlugin): Assign a dummy parent to the plugin.
687         (PluginTracerPage::PluginTracerPage): Set up the plugin parent.
688         (tst_QWebPage::createViewlessPlugin): Verify that for viewless pages the
689         plugin parent remains unchanged.
690
691 2009-11-11  David Boddie  <dboddie@trolltech.com>
692
693         [Qt] Doc: Added internal or hidden placeholder documentation.
694
695         * Api/qwebpage.cpp:
696
697 2009-11-11  Martin Smith  <msmith@trolltech.com>
698
699         [Qt] doc: Changed Trolltech to Nokia
700
701         * Api/qwebview.cpp:
702
703 2009-11-11  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
704
705         Reviewed by Kenneth Rohde Christiansen.
706
707         https://bugs.webkit.org/show_bug.cgi?id=31323
708         Fix a few compiler warnings
709
710         * tests/qwebframe/tst_qwebframe.cpp: Add extra brackets 
711         to make it explicit where the else case belongs
712
713 2009-11-11  Simon Hausmann  <simon.hausmann@nokia.com>
714
715         Reviewed by Tor Arne Vestbø.
716
717         Fix enabling of software input panel when activating editable elements
718         in QGraphicsWebView.
719
720         * Api/qgraphicswebview.cpp:
721         (QGraphicsWebViewPrivate::inputMethodEnabled): Implement method to
722         query for input method support.
723         * Api/qwebpage.cpp:
724         (QWebPageWidgetClient::inputMethodEnabled): Ditto for QWidget.
725         (QWebPagePrivate::handleSoftwareInputPanel): Don't use view() to
726         test for input method support. Instead query using QWebPageClient
727         and send the SIPR event to the ownerWidget() instead of the view().
728         The latter is null for QGraphicsWebView.
729         * tests/qwebpage/tst_qwebpage.cpp:
730         (EventSpy::EventSpy):
731         (EventSpy::eventFilter):
732         (tst_QWebPage::inputMethods): Modify the test to verify that SIPR
733         events are dispatched when activating focusable content.
734
735 2009-11-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
736
737         Unreviewed documentation fixes.
738
739         Added a few improvements from Jocelyn Turcotte to the
740         createWindow docs.
741
742         * Api/qwebview.cpp:
743
744 2009-11-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
745
746         Unreviewed documentation fix.
747
748         [Qt] Make qwebpage's createWindow not qwebview dependent.
749         https://bugs.webkit.org/show_bug.cgi?id=30771
750
751         Update documentation to make it clear that a reimplementation
752         of the createWindow method of the associated QWebPage can
753         result in the QWebView::createWindow method to never be called.
754
755         * Api/qwebview.cpp:
756
757 2009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
758
759         Reviewed by Kenneth Rohde Christiansen.
760
761         [Qt] Few classes have virtual functions but non-virtual destructor
762         https://bugs.webkit.org/show_bug.cgi?id=31269
763
764         * Api/qgraphicswebview.cpp:
765         (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): Add virtual
766         destructor.
767
768 2009-11-09  Benjamin Poulain  <benjamin.poulain@nokia.com>
769
770         Reviewed by Kenneth Rohde Christiansen.
771
772         https://bugs.webkit.org/show_bug.cgi?id=30628
773         Add an API to get all the attributes from a QWebElement.
774
775         * Api/qwebelement.cpp:
776         (QWebElement::attributesName):
777         * Api/qwebelement.h:
778         * tests/qwebelement/tst_qwebelement.cpp:
779         (tst_QWebElement::listAttributes):
780
781 2009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
782
783         Reviewed by Kenneth Rohde Christiansen.
784
785         Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
786         https://bugs.webkit.org/show_bug.cgi?id=31040
787
788         * Api/qwebpage.cpp:
789         (QWebPagePrivate::handleScrolling):
790
791 2009-11-09  Mark Mentovai  <mark@chromium.org>
792
793         Reviewed by Dan Bernstein.
794
795         Track "can have scrollbar" state within FrameView independently of the
796         individual scrollbar states in ScrollView.
797
798         rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
799         REGRESSION (r48064): mint.com loses scrollbars after coming out of
800         edit mode.
801
802         rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
803         REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
804
805         Test: fast/overflow/scrollbar-restored.html
806
807         * Api/qwebframe.cpp:
808         (QWebFrame::setScrollBarPolicy):
809
810 2009-11-09  Benjamin Poulain  <benjamin.poulain@nokia.com>
811
812         Reviewed by Kenneth Rohde Christiansen.
813
814         https://bugs.webkit.org/show_bug.cgi?id=30772
815         Add a non-const iterator to QWebElementCollection.
816         Move the two attributes of the iterator to private.
817
818         * Api/qwebelement.h:
819         (const_iterator::begin):
820         (const_iterator::end):
821         (const_iterator::constBegin):
822         (const_iterator::constEnd):
823         (const_iterator::iterator::iterator):
824         (const_iterator::iterator::operator*):
825         (const_iterator::iterator::operator==):
826         (const_iterator::iterator::operator!=):
827         (const_iterator::iterator::operator<):
828         (const_iterator::iterator::operator<=):
829         (const_iterator::iterator::operator>):
830         (const_iterator::iterator::operator>=):
831         (const_iterator::iterator::operator++):
832         (const_iterator::iterator::operator--):
833         (const_iterator::iterator::operator+=):
834         (const_iterator::iterator::operator-=):
835         (const_iterator::iterator::operator+):
836         (const_iterator::iterator::operator-):
837         * tests/qwebelement/tst_qwebelement.cpp:
838         (tst_QWebElement::nonConstIterator):
839         (tst_QWebElement::constIterator):
840
841 2009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
842
843         Reviewed by Kenneth Christiansen.
844
845         [Qt] Remove the sessionStorage setting (per Page)
846         https://bugs.webkit.org/show_bug.cgi?id=31249
847
848         This setting allows to run sessionStorage on/off on a per page
849         basis. Remove this prematurely exposed API.
850
851         * Api/qwebsettings.cpp:
852         (QWebSettingsPrivate::apply):
853         (QWebSettings::QWebSettings):
854         * tests/qwebpage/tst_qwebpage.cpp:
855         (tst_QWebPage::database):
856         (tst_QWebPage::testOptionalJSObjects):
857
858 2009-11-09  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
859
860         Reviewed by Simon Hausmann.
861
862         [Qt] Remove the QWebPage:webInspectorTriggered signal.
863         User customization of the communication between QWebPage
864         and QWebInspector will be properly designed in the next version.
865         https://bugs.webkit.org/show_bug.cgi?id=30773
866
867         * Api/qwebinspector.cpp:
868         * Api/qwebpage.cpp:
869         (QWebPagePrivate::getOrCreateInspector):
870         (QWebPage::triggerAction):
871         * Api/qwebpage.h:
872         * QtLauncher/main.cpp:
873         (MainWindow::MainWindow):
874
875 2009-11-05  Simon Hausmann  <hausmann@webkit.org>
876
877         Reviewed by Tor Arne Vestbø.
878
879         Added a missing re-implementation of QGraphicsItem::inputMethodQuery().
880
881         * Api/qgraphicswebview.cpp:
882         (QGraphicsWebView::inputMethodQuery):
883         * Api/qgraphicswebview.h:
884
885 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
886
887         Reviewed by Tor Arne Vestbø.
888
889         Provide a dummy re-implementation of QGraphicsLayoutItem::sizeHint(),
890         similar to QWebView.
891
892         * Api/qgraphicswebview.cpp:
893         (QGraphicsWebView::sizeHint):
894         * Api/qgraphicswebview.h:
895
896 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
897
898         Reviewed by Tor Arne Vestbø.
899
900         Removed zoomFactoryChanged() signal and added
901         linkClicked() to QGraphicsWebView, for consistency with
902         QWebView.
903
904         * Api/qgraphicswebview.cpp:
905         (QGraphicsWebView::setPage):
906         (QGraphicsWebView::setZoomFactor):
907         * Api/qgraphicswebview.h:
908
909 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
910
911         Reviewed by Tor Arne Vestbø.
912
913         Added QGraphicsWebView::findText() for convenience and consistency
914         with QWebView.
915
916         * Api/qgraphicswebview.cpp:
917         (QGraphicsWebView::findText):
918         * Api/qgraphicswebview.h:
919
920 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
921
922         Reviewed by Tor Arne Vestbø.
923
924         Added QGraphicsWebView::pageAction() and triggerPageAction(), for
925         consistency with QWebView.
926
927         * Api/qgraphicswebview.cpp:
928         (QGraphicsWebView::pageAction):
929         (QGraphicsWebView::triggerPageAction):
930         * Api/qgraphicswebview.h:
931
932 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
933
934         Reviewed by Tor Arne Vestbø.
935
936         Removed QGraphicsWebView::toHtml() after API review.
937
938         That's consistent with QWebView and also based on the assumption that
939         toHtml() is called less frequently than setHtml().
940
941         * Api/qgraphicswebview.cpp:
942         * Api/qgraphicswebview.h:
943         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
944         (tst_QGraphicsWebView::qgraphicswebview):
945
946 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
947
948         Reviewed by Tor Arne Vestbø.
949
950         Removed the interactive property of QGraphicsWebView.
951
952         There are clearly use-cases for this feature, but it will require
953         more work to make this fully work with an enum to have fine-grained
954         control over the interactivity levels. For now it is easy to achieve
955         in user-code what the boolean property did.
956
957         * Api/qgraphicswebview.cpp:
958         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
959         (QGraphicsWebView::hoverMoveEvent):
960         (QGraphicsWebView::mouseMoveEvent):
961         (QGraphicsWebView::mousePressEvent):
962         (QGraphicsWebView::mouseReleaseEvent):
963         (QGraphicsWebView::mouseDoubleClickEvent):
964         (QGraphicsWebView::keyPressEvent):
965         (QGraphicsWebView::keyReleaseEvent):
966         (QGraphicsWebView::dragLeaveEvent):
967         (QGraphicsWebView::dragMoveEvent):
968         (QGraphicsWebView::dropEvent):
969         (QGraphicsWebView::wheelEvent):
970         (QGraphicsWebView::inputMethodEvent):
971         * Api/qgraphicswebview.h:
972         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
973         (tst_QGraphicsWebView::qgraphicswebview):
974
975 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
976
977         Reviewed by Tor Arne Vestbø.
978
979         Make the QGraphicsWebView constructor explicit.
980
981         * Api/qgraphicswebview.h:
982
983 2009-11-05  Shu Chang  <Chang.Shu@nokia.com>
984
985         Reviewed by Tor Arne Vestbø.
986
987         Add support for Shift-PageUp and Shift-PageDown key events.
988         https://bugs.webkit.org/show_bug.cgi?id=31166
989
990         Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html
991
992         * WebCoreSupport/EditorClientQt.cpp:
993         (WebCore::EditorClientQt::handleKeyboardEvent):
994
995 2009-11-05  Simon Hausmann  <hausmann@webkit.org>
996
997         Last Qt 4.5 build fix (*sigh*)
998
999         * tests/qwebpage/tst_qwebpage.cpp:
1000         (inputMethodHints): inputMethodHints() is only used for 
1001         Qt 4.6, so guard the whole function.
1002
1003 2009-11-05  Simon Hausmann  <hausmann@webkit.org>
1004
1005         Another prospective build fix against Qt 4.5 (build bot)
1006
1007         Don't compile & run the QGraphicsWebView portion of the
1008         input methods auto test with Qt 4.5.
1009
1010         * tests/qwebpage/tst_qwebpage.cpp:
1011         (tst_QWebPage::inputMethods_data):
1012         (inputMethodHints):
1013         (inputMethodEnabled):
1014         (tst_QWebPage::inputMethods):
1015
1016 2009-11-05  Simon Hausmann  <hausmann@webkit.org>
1017
1018         Prospective build fix against Qt 4.5 (build bot)
1019
1020         * Api/qgraphicswebview.cpp:
1021         (QGraphicsWebViewPrivate::setInputMethodEnabled): Guard the
1022         use of Qt 4.6 specific API with #ifdefs.
1023
1024 2009-11-01  Simon Hausmann  <hausmann@webkit.org>
1025
1026         Reviewed by Kenneth Christiansen.
1027
1028         [Qt] Fix enabling of input method support on QGraphicsWebView.
1029         https://bugs.webkit.org/show_bug.cgi?id=30605
1030
1031         Instead of setting the unsupported widget attribute on the
1032         QGraphicsWidget in setInputMethodEnabled() set the 
1033         ItemAcceptsInputMethod GraphicsItem flag directly.
1034
1035         Changed the existing input method auto test to run once
1036         on a QWebView and once on a QGraphicsWebView.
1037
1038         * Api/qgraphicswebview.cpp:
1039         (QGraphicsWebViewPrivate::setInputMethodEnabled):
1040         * tests/qwebpage/tst_qwebpage.cpp:
1041         (tst_QWebPage::inputMethods_data):
1042         (inputMethodHints):
1043         (inputMethodEnabled):
1044         (tst_QWebPage::inputMethods):
1045
1046 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
1047
1048         Reviewed by Kenneth Christiansen.
1049
1050         Added QGraphicsWebView::modified property, for consistency
1051         with QWebView.
1052
1053         * Api/qgraphicswebview.cpp:
1054         (QGraphicsWebView::isModified):
1055         * Api/qgraphicswebview.h:
1056         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1057         (tst_QGraphicsWebView::qgraphicswebview):
1058
1059 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
1060
1061         Reviewed by Kenneth Christiansen.
1062
1063         Removed status and progress properties of QGraphicsWebView.
1064         Added loadProgress and statusBarMessage signals instead,
1065         after API review.
1066
1067         * Api/qgraphicswebview.cpp:
1068         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
1069         (QGraphicsWebView::setPage):
1070         * Api/qgraphicswebview.h:
1071         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1072         (tst_QGraphicsWebView::qgraphicswebview):
1073
1074 2009-11-04  Yael Aharon  <yael.aharon@nokia.com>
1075
1076         Reviewed by Simon Hausmann.
1077
1078         [Qt] REGRESSION: Allow applications to use their own QWidget bypassing QWebView.
1079         https://bugs.webkit.org/show_bug.cgi?id=30979
1080
1081         Decouple QWebViewPrivate from QWebPageClient, and automatically create
1082         QWebPageWidgetClient whenever the view is QWidget based.
1083
1084         * Api/qwebpage.cpp:
1085         (QWebPageWidgetClient::QWebPageWidgetClient):
1086         (QWebPageWidgetClient::scroll):
1087         (QWebPageWidgetClient::update):
1088         (QWebPageWidgetClient::setInputMethodEnabled):
1089         (QWebPageWidgetClient::setInputMethodHint):
1090         (QWebPageWidgetClient::cursor):
1091         (QWebPageWidgetClient::updateCursor):
1092         (QWebPageWidgetClient::palette):
1093         (QWebPageWidgetClient::screenNumber):
1094         (QWebPageWidgetClient::ownerWidget):
1095         (QWebPageWidgetClient::pluginParent):
1096         (QWebPage::setView):
1097         * Api/qwebview.cpp:
1098         (QWebView::~QWebView):
1099         (QWebView::setPage):
1100         (QWebView::event):
1101
1102 2009-11-03  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
1103
1104         Reviewed by Simon Hausmann.
1105
1106         [Qt] Fix build of unit-test after r50454.
1107
1108         * tests/qwebpage/tst_qwebpage.cpp:
1109
1110 2009-11-03  Simon Hausmann  <hausmann@webkit.org>
1111
1112         Reviewed by Tor Arne Vestbø.
1113
1114         Make QWebPluginDatabase private API for now.
1115
1116         https://bugs.webkit.org/show_bug.cgi?id=30775
1117
1118         * Api/headers.pri:
1119         * Api/qwebplugindatabase.cpp:
1120         * Api/qwebplugindatabase_p.h: Renamed from WebKit/qt/Api/qwebplugindatabase.h.
1121         * Api/qwebsettings.cpp:
1122         * Api/qwebsettings.h:
1123         * QtLauncher/main.cpp:
1124         (MainWindow::setupUI):
1125         * tests/tests.pro:
1126
1127 2009-11-03  Simon Hausmann  <hausmann@webkit.org>
1128
1129         Rubber-stamped by Tor Arne Vestbø.
1130
1131         Oops, also remove the API docs of the removed networkRequestStarted() signal.
1132
1133         * Api/qwebpage.cpp:
1134
1135 2009-11-03  Simon Hausmann  <hausmann@webkit.org>
1136
1137         Reviewed by Tor Arne Vestbø.
1138
1139         Replace the QWebPage::networkRequestStarted() signal with the originatingObject
1140         property set to the QWebFrame that belongs to the request.
1141
1142         https://bugs.webkit.org/show_bug.cgi?id=29975
1143
1144         * Api/qwebpage.h:
1145         * WebCoreSupport/FrameLoaderClientQt.cpp:
1146         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1147         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1148         (WebCore::FrameLoaderClientQt::startDownload):
1149         * tests/qwebpage/tst_qwebpage.cpp:
1150         (tst_QWebPage::loadFinished):
1151         (TestNetworkManager::createRequest):
1152         (tst_QWebPage::originatingObjectInNetworkRequests):
1153
1154 2009-11-02  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
1155
1156         Reviewed by Adam Barth.
1157
1158         QWebView crash fix.
1159
1160         The QWebView should not crash if the stop() method is called from
1161         a function triggered by the loadProgress signal.
1162
1163         A null pointer protection was added in the ProgressTracker::incrementProgress.
1164
1165         New autotest was created.
1166
1167         https://bugs.webkit.org/show_bug.cgi?id=29425
1168
1169         * tests/qwebview/tst_qwebview.cpp:
1170         (WebViewCrashTest::WebViewCrashTest):
1171         (WebViewCrashTest::loading):
1172         (tst_QWebView::crashTests):
1173
1174 2009-11-01  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1175
1176         Reviewed by Eric Seidel.
1177
1178         Turn on warnings for QtWebKit for gcc
1179         https://bugs.webkit.org/show_bug.cgi?id=30958
1180
1181         * Api/qwebpage.cpp:
1182         (QWebPagePrivate::QWebPagePrivate): Reorder initialization list 
1183         to fix compiler warnings.
1184         * WebCoreSupport/FrameLoaderClientQt.cpp:
1185         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto.
1186
1187 2009-10-30  Evan Stade  <estade@chromium.org>
1188
1189         Reviewed by David Levin.
1190
1191         Notify the chrome when the focused node has changed.
1192         https://bugs.webkit.org/show_bug.cgi?id=30832
1193
1194         Added stub implementation for new ChromeClient function.
1195
1196         * WebCoreSupport/ChromeClientQt.cpp:
1197         (WebCore::ChromeClientQt::focusedNodeChanged):
1198         * WebCoreSupport/ChromeClientQt.h:
1199
1200 2009-10-30  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1201
1202         Reviewed by Tor Arne Vestbø.
1203
1204         [Qt] Remove the QWebInspector::windowTitleChanged signal,
1205         QEvent::WindowTitleChange can be used to achieve the same.
1206         https://bugs.webkit.org/show_bug.cgi?id=30927
1207
1208         * Api/qwebinspector.cpp:
1209         * Api/qwebinspector.h:
1210         * WebCoreSupport/InspectorClientQt.cpp:
1211         (WebCore::InspectorClientQt::updateWindowTitle):
1212
1213 2009-10-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1214
1215         Reviewed by Tor Arne Vestbø.
1216
1217         [Qt] Implement DELETE HTTP method for XmlHttpRequest
1218         https://bugs.webkit.org/show_bug.cgi?id=30894
1219
1220         No new tests as this functionality is already tested by the
1221         xmlhttprequest LayoutTests. As this patch depends on an unreleased
1222         version of the dependent QtNetwork library and the tests will be
1223         enabled later once the dependent library is released (and the
1224         buildbot is updated).
1225
1226         * Api/qwebframe.cpp:
1227         (QWebFrame::load):
1228
1229 2009-10-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1230
1231         Reviewed by Tor Arne Vestbø.
1232
1233         Remove QWebView::guessUrlFromString() and replace its use
1234         with the new QUrl::fromUserInput() if using Qt 4.6 or newer.
1235
1236         * Api/qwebview.cpp:
1237         * Api/qwebview.h:
1238         * QGVLauncher/main.cpp:
1239         (urlFromUserInput):
1240         (WebPage::applyProxy):
1241         (MainWindow::load):
1242         * QtLauncher/main.cpp:
1243         (urlFromUserInput):
1244         (MainWindow::MainWindow):
1245         (MainWindow::changeLocation):
1246         * tests/qwebview/tst_qwebview.cpp:
1247
1248 2009-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1249
1250         Reviewed by Tor Arne Vestbø.
1251
1252         Serialize directly to the stream, and not first to an QByteArray,
1253         that is later serialized. That is slower and also uses more bytes.
1254
1255         * Api/qwebhistory.cpp:
1256         (operator<<):
1257         (operator>>):
1258
1259 2009-10-28  Shinichiro Hamaji  <hamaji@chromium.org>
1260
1261         Reviewed by Eric Seidel.
1262
1263         [Qt] WebFrame::counterValueForElementById must not be exposed
1264         https://bugs.webkit.org/show_bug.cgi?id=30882
1265
1266         * Api/qwebframe.cpp:
1267         (qt_drt_counterValueForElementById):
1268         * Api/qwebframe.h:
1269
1270 2009-10-27  Shinichiro Hamaji  <hamaji@chromium.org>
1271
1272         Reviewed by Darin Adler.
1273
1274         Provide a way to get counter values with layoutTestContoller
1275         https://bugs.webkit.org/show_bug.cgi?id=30555
1276
1277         * Api/qwebframe.cpp:
1278         (QWebFrame::counterValueForElementById):
1279         (QWebHitTestResult::frame):
1280         * Api/qwebframe.h:
1281
1282 2009-10-28  Antonio Gomes  <tonikitoo@webkit.org>
1283
1284         Pushing missing WebKit/qt/tests/qwebframe/resources/ dir from bug 29248.
1285
1286         [Qt] [API] Make it possible to have 'invisible' loads
1287         https://bugs.webkit.org/show_bug.cgi?id=29248
1288
1289         * tests/qwebframe/resources/image2.png: Copied from WebKit/qt/tests/qwebelement/image.png.
1290
1291 2009-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1292
1293         Reviewed by Tor Arne Vestbø.
1294
1295         [Qt] QWebHistory::saveState() is inconsistent with the Qt API
1296         https://bugs.webkit.org/show_bug.cgi?id=30710
1297
1298         Make the versioning internal and enforce it in the WebCore
1299         part. Adjust the comments, as well as remove now dead code.
1300
1301         * Api/qwebhistory.cpp:
1302         (operator<<):
1303         (operator>>):
1304         * Api/qwebhistory.h:
1305
1306 2009-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1307
1308         Reviewed by Holger Freyther.
1309
1310         [Qt] QWebHistory::saveState() is inconsistent with the Qt API
1311         https://bugs.webkit.org/show_bug.cgi?id=30710
1312
1313         Remove the QWebHistory::saveState() and ::restoreState() as
1314         they are inconsistent with the Qt API.
1315
1316         Update unittests to reflect the change.
1317
1318         * Api/qwebhistory.cpp:
1319         (operator<<):
1320         (operator>>):
1321         * Api/qwebhistory.h:
1322         * tests/qwebhistory/tst_qwebhistory.cpp:
1323         (saveHistory):
1324         (restoreHistory):
1325         (tst_QWebHistory::saveAndRestore_crash_1):
1326         (tst_QWebHistory::saveAndRestore_crash_2):
1327         (tst_QWebHistory::saveAndRestore_crash_3):
1328         (tst_QWebHistory::clear):
1329
1330 2009-10-27  Antonio Gomes  <tonikitoo@webkit.org>
1331
1332         Reviewed by Holger Freyther.
1333
1334         Complementary fix to bug 30779.
1335
1336         By mistake I used QWeakPointer's toStrongRef() method which docs
1337         explicitly say to not be used in this situation (when the tracked
1338         pointer is devired from QObject). Instead QWeakPointer's data()
1339         is recommended.
1340
1341         * Api/qwebpage.cpp:
1342         (QWebPage::view):
1343
1344 2009-10-27  Holger Hans Peter Freyther  <zecke@selfish.org>
1345
1346         Reviewed by Simon Fraser.
1347
1348         Change HitTestResult methods to use (3d) transformation aware methods
1349         https://bugs.webkit.org/show_bug.cgi?id=27347
1350
1351         The HitTestResult::boundingBox method was removed. The
1352         RenderObject must be used directly. In contrast to the
1353         old HitTestResult::boundingBox method this code must use
1354         a (3d) transformation aware method to not run into an
1355         assert in SVGRenderBase::mapLocalToContainer.
1356
1357         * Api/qwebframe.cpp:
1358         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1359
1360 2009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1361
1362         Rubberstamped by Oliver Hunt.
1363
1364         Change two methods to be internal for DRT use only.
1365
1366         Part of [Qt] Review all new API in Qt 4.6
1367         https://bugs.webkit.org/show_bug.cgi?id=29843#c11
1368
1369         * Api/qwebsecurityorigin.cpp:
1370         (qt_drt_whiteListAccessFromOrigin):
1371         (qt_drt_resetOriginAccessWhiteLists):
1372         (QWebSecurityOrigin::localSchemes):
1373         * Api/qwebsecurityorigin.h:
1374
1375 2009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1376
1377         Reviewed by Tor Arne Vestbø.
1378
1379         Make sure that initiating a rotation while rotating won't make
1380         it end up at rotation positions that are not a multiply of
1381         180 degrees.
1382
1383         * QGVLauncher/main.cpp:
1384         (MainView::animatedFlip):
1385
1386 2009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1387
1388         Unreviewed Qt build fix.
1389
1390         Update the tests as well to the new API change.
1391
1392         * tests/qwebelement/tst_qwebelement.cpp:
1393         (tst_QWebElement::clear):
1394
1395 2009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1396
1397         Rubberstamped by Tor Arne Vestbø.
1398
1399         [Qt] QWebElement::removeChildren() should be
1400         QWebElement::removeAllChildren()
1401         https://bugs.webkit.org/show_bug.cgi?id=30630
1402
1403         * Api/qwebelement.cpp:
1404         (QWebElement::removeAllChildren):
1405         * Api/qwebelement.h:
1406
1407 2009-10-27  Antonio Gomes  <tonikitoo@webkit.org>
1408
1409         Reviewed by Antti Koivisto and Holger Freyther.
1410
1411         Make QWebPagePrivate's (QWidget) view to be a QWeakPointer.
1412         https://bugs.webkit.org/show_bug.cgi?id=30779
1413
1414         The fact that it was been set from external objects of qwebpage
1415         and not being deleted internally can lead to dangling references.
1416
1417         * Api/qgraphicswebview.cpp:
1418         (QGraphicsWebView::~QGraphicsWebView):
1419         * Api/qwebpage.cpp:
1420         (QWebPagePrivate::QWebPagePrivate):
1421         (QWebPagePrivate::createContextMenu):
1422         (QWebPagePrivate::handleSoftwareInputPanel):
1423         (QWebPagePrivate::keyPressEvent):
1424         (QWebPage::setView):
1425         (QWebPage::view):
1426         (QWebPage::javaScriptAlert):
1427         (QWebPage::javaScriptConfirm):
1428         (QWebPage::javaScriptPrompt):
1429         (QWebPage::shouldInterruptJavaScript):
1430         (QWebPage::createWindow):
1431         (QWebPage::extension):
1432         (QWebPage::chooseFile):
1433         (QWebPage::userAgentForUrl):
1434         * Api/qwebpage_p.h:
1435         * Api/qwebview.cpp:
1436         (QWebView::~QWebView):
1437
1438 2009-10-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1439
1440         Unreviewed documentation fix from David Boddie (Qt Doc Team)
1441
1442         Removes the check around the RenderHints property documentation
1443         that was clearly added to synchronize the source and header files
1444         when the #if !defined(Q_OS_SYMBIAN) guards was added to the
1445         property.
1446
1447         The documentation has also been updated to ensure that Symbian
1448         users know that there is no actual RenderHints property on their
1449         platform.
1450
1451         * Api/qwebview.cpp:
1452
1453 2009-10-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1454
1455         Unreviewed documentation fix from David Boddie (Qt Doc Team)
1456
1457         Ensure that qdoc will always see the RenderHints property.
1458
1459         The property was only defined in the header file if the Q_OS_SYMBIAN
1460         symbol was not defined, resulting in the property not showing up
1461         in the Qt documentation just because one platform doesn't support it.
1462
1463         A follow up commit will improve the documentation for the property
1464         and note that it is not supported on the Symbiam platform.
1465
1466         * Api/qwebview.h:
1467
1468 2009-10-26  Benjamin Poulain  <benjamin.poulain@nokia.com>
1469
1470         Reviewed by Tor Arne Vestbø.
1471
1472         [Qt] Reintroduce QWebElementCollection
1473
1474         Revert the patch that has replaced QWebElementCollection 
1475         with QList<QWebElement>. Update the tests accordingly.
1476
1477         Remove the constness of the return type of QWebElement operator[]. 
1478
1479         https://bugs.webkit.org/show_bug.cgi?id=30767
1480
1481         * Api/qwebelement.cpp:
1482         (QWebElement::findAll):
1483         (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
1484         (QWebElementCollectionPrivate::create):
1485         (QWebElementCollection::QWebElementCollection):
1486         (QWebElementCollection::operator=):
1487         (QWebElementCollection::~QWebElementCollection):
1488         (QWebElementCollection::operator+):
1489         (QWebElementCollection::append):
1490         (QWebElementCollection::count):
1491         (QWebElementCollection::at):
1492         (QWebElementCollection::toList):
1493         * Api/qwebelement.h:
1494         (const_iterator::begin):
1495         (const_iterator::end):
1496         (const_iterator::operator[]):
1497         * Api/qwebframe.cpp:
1498         (QWebFrame::findAllElements):
1499         * Api/qwebframe.h:
1500         * QtLauncher/main.cpp:
1501         (MainWindow::selectElements):
1502         * tests/qwebelement/tst_qwebelement.cpp:
1503         (tst_QWebElement::simpleCollection):
1504         (tst_QWebElement::iteration):
1505         (tst_QWebElement::emptyCollection):
1506         (tst_QWebElement::appendCollection):
1507         (tst_QWebElement::nullSelect):
1508         (tst_QWebElement::hasSetFocus):
1509         (tst_QWebElement::render):
1510         * tests/qwebpage/tst_qwebpage.cpp:
1511         (tst_QWebPage::inputMethods):
1512
1513 2009-10-24  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1514
1515         Reviewed by Holger Freyther.
1516
1517         [Qt] [Symbian] Set the capability and memory required to run QtWebKit for Symbian
1518         https://bugs.webkit.org/show_bug.cgi?id=30476
1519
1520         Assign ReadUserData WriteUserData NetworkServices Symbian capabilities
1521         to all QtWebkit executables.
1522
1523         * QGVLauncher/QGVLauncher.pro:
1524         * QtLauncher/QtLauncher.pro:
1525         * tests/benchmarks/loading/tst_loading.pro:
1526         * tests/benchmarks/painting/tst_painting.pro:
1527         * tests/qgraphicswebview/qgraphicswebview.pro:
1528         * tests/qwebelement/qwebelement.pro:
1529         * tests/qwebframe/qwebframe.pro:
1530         * tests/qwebhistory/qwebhistory.pro:
1531         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
1532         * tests/qwebpage/qwebpage.pro:
1533         * tests/qwebplugindatabase/qwebplugindatabase.pro:
1534         * tests/qwebview/qwebview.pro:
1535
1536 2009-10-22  Gavin Barraclough  <barraclough@apple.com>
1537
1538         Reviewed by NOBODY (speculative build fix - qt is currently already broken!)
1539         Build fix following bug #30696.
1540
1541         * Api/qwebelement.cpp:
1542         (setupScriptContext):
1543         * Api/qwebframe.cpp:
1544         (QWebFrame::evaluateJavaScript):
1545
1546 2009-10-22  Shu Chang  <Chang.Shu@nokia.com>
1547
1548         Reviewed by Eric Seidel.
1549
1550         [Qt] Enable track visited links in QWebPage
1551         https://bugs.webkit.org/show_bug.cgi?id=30574
1552
1553         Test: fast/history/clicked-link-is-visited.html
1554
1555         * Api/qwebpage.cpp:
1556         (QWebPagePrivate::QWebPagePrivate):
1557
1558 2009-10-22  Girish Ramakrishnan  <girish@forwardbias.in>
1559
1560         Reviewed by Eric Seidel.
1561
1562         [Qt] Add Print Shortcut to QtLauncher
1563
1564         https://bugs.webkit.org/show_bug.cgi?id=30682
1565
1566         * QtLauncher/main.cpp:
1567         (MainWindow::setupUI):
1568
1569 2009-10-22  Antonio Gomes  <tonikitoo@webkit.org>
1570
1571         Rubberstamped by Tor Arne Vestbø.
1572
1573         Code standarlization for QGVLauncher.
1574
1575         1) Made member initilization lists in constructors
1576            to be per line.
1577         2) Made applyProxy method inline as all other methods in
1578            WebPage class.
1579
1580         * QGVLauncher/main.cpp:
1581         (WebPage::WebPage):
1582         (WebPage::applyProxy):
1583         (MainView::MainView):
1584         (MainWindow::MainWindow):
1585         (MainWindow::init):
1586
1587 2009-10-22  Antonio Gomes  <tonikitoo@webkit.org>
1588
1589         Reviewed by Tor Arne Vestbø.
1590
1591         Add a Y-Axis rotation to QGVLauncher.
1592
1593         It uses the QStateMachine API from Qt 4.6.
1594
1595         * QGVLauncher/main.cpp:
1596         (WebView::WebView):
1597         (WebView::setYRotation):
1598         (WebView::yRotation):
1599         (MainView::flip):
1600         (MainView::animatedYFlip):
1601         (SharedScene::SharedScene):
1602         (SharedScene::webView):
1603         (MainWindow::init):
1604         (MainWindow::animatedYFlip):
1605         (MainWindow::buildUI):
1606
1607 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1608
1609         Reviewed By Adam Barth.
1610
1611         Add some actions to the menu for cursor debugging.
1612
1613         GraphicsView based launcher only.
1614
1615         * QGVLauncher/main.cpp:
1616         (MainView::setWaitCursor):
1617         (MainView::resetCursor):
1618         (MainView::flip):
1619         (MainWindow::setWaitCursor):
1620         (MainWindow::resetCursor):
1621         (MainWindow::buildUI):
1622
1623 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1624
1625         Rubberstamped by Adam Barth.
1626
1627         Remove clipRenderToViewport as agreed upon in
1628         https://bugs.webkit.org/show_bug.cgi?id=29843
1629
1630         * Api/qwebframe.cpp:
1631         * Api/qwebframe.h:
1632         * Api/qwebframe_p.h:
1633         (QWebFramePrivate::QWebFramePrivate):
1634
1635 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1636
1637         Reviewed by Adam Barth.
1638
1639         Update the tests to test the new render functionality, and take
1640         into consideration that render() clips to the frame itself as well
1641         as the viewport.
1642
1643         QWebFrame::render() now always clips, so the old tests were bogus.
1644
1645         Rendering pure contents (no scrollbars etc) without clipping can now
1646         be accomplished using QWebFrame::documentElement()->render(...)
1647
1648         * Api/qwebframe.cpp:
1649         * Api/qwebframe.h:
1650         * Api/qwebframe_p.h:
1651         (QWebFramePrivate::QWebFramePrivate):
1652         * tests/qwebframe/tst_qwebframe.cpp:
1653
1654 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1655
1656         Rubberstamped by Adam Barth.
1657
1658         As we do not support rendering a QWebFrame without it being clipped
1659         the the frame as well as the viewport, we now set the viewport size
1660         to the size of the contents.
1661
1662         Rendering pure contents (no scrollbars etc) without clipping can be
1663         acomplished using QWebFrame::documentElement()->render(...)
1664
1665         * tests/qwebelement/tst_qwebelement.cpp:
1666         (tst_QWebElement::render):
1667
1668 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1669
1670         Reviewed by Tor Arne Vestbø.
1671
1672         Add menu item to dump the plugin list to the console,
1673         which can be handy for debugging.
1674
1675         * QtLauncher/main.cpp:
1676         (MainWindow::dumpPlugins):
1677         (MainWindow::setupUI):
1678
1679 2009-10-19  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1680
1681         Reviewed by Tor Arne Vestbø.
1682
1683         Introduce new render method on QWebFrame, which supports specifying
1684         which layers to render (scrollbars, contents, pan-icon).
1685
1686         * Api/qwebframe.cpp:
1687         (QWebFramePrivate::renderPrivate):
1688         (QWebFrame::render):
1689         * Api/qwebframe.h:
1690         * Api/qwebframe_p.h:
1691
1692 2009-10-19  Antonio Gomes  <tonikitoo@webkit.org>
1693
1694         Reviewed by Ariya Hidayat.
1695
1696         [Qt] Infinite loop (leading to crash) when setting cursor in QGraphicsWebView
1697         https://bugs.webkit.org/show_bug.cgi?id=30549
1698
1699         Patch reimplements QGraphicsItem's itemChange method, and make
1700         CursorChange event to be emitted after cursor has already been
1701         set.
1702
1703         QWidget::setCursor send the event just after it sets the cursor,
1704         then patch makes both behaviors compatible.
1705
1706         * Api/qgraphicswebview.cpp:
1707         (QGraphicsWebView::itemChange):
1708         * Api/qgraphicswebview.h:
1709
1710 2009-10-19  Nate Chapin  <japhet@chromium.org>
1711
1712         Unreviewed, build fix.
1713
1714         Update call to FrameLoader::loadFrameRequest().
1715
1716         * Api/qwebpage.cpp:
1717         (QWebPage::triggerAction):
1718
1719 2009-10-19  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
1720
1721         Reviewed by Ariya Hidayat.
1722
1723         Add QWebElement::render API which allows rendering of single
1724         element.
1725
1726         * Api/qwebelement.cpp:
1727         (QWebElement::render):
1728         * Api/qwebelement.h:
1729         * tests/qwebelement/tst_qwebelement.cpp:
1730         (tst_QWebElement::render):
1731         * tests/qwebelement/qwebelement.qrc:
1732         * tests/qwebelement/image.png: Added.
1733
1734 2009-10-19  Markus Goetz <Markus.Goetz@nokia.com>
1735
1736         Reviewed by Ariya Hidayat.
1737
1738         QWebPage: Doc: setNetworkAccessManager should only be called once.
1739
1740         * Api/qwebpage.cpp:
1741
1742 2009-10-19  Antonio Gomes  <tonikitoo@webkit.org>
1743
1744         Reviewed by Tor Arne.
1745
1746         Wrong ifdef combination in QGraphicsWebView's event method.
1747
1748         * Api/qgraphicswebview.cpp:
1749         (QGraphicsWebView::event):
1750
1751 2009-10-19  Girish Ramakrishnan  <girish@forwardbias.in>
1752
1753         Reviewed by Holger Freyther.
1754
1755         [Qt] Windowed Plugins: Don't crash when client is 0.
1756         
1757         Client is 0 when we use QWebPage without a QWebView or QGraphicsWebView.
1758         In addition, setFrameRect()/updatePluginWidget() is called even if the
1759         plugin was not succesfully loaded. updatePluginWidget() updates the
1760         window rect which is, in theory, useful to draw something that indicates
1761         that we didn't load successfully.
1762         
1763         So, a status check is added to setNPWindowIfNeeded.
1764
1765         https://bugs.webkit.org/show_bug.cgi?id=30380
1766
1767         * tests/qwebpage/qwebpage.pro:
1768         * tests/qwebpage/tst_qwebpage.cpp:
1769         (takeScreenshot):
1770         (tst_QWebPage::screenshot_data):
1771         (tst_QWebPage::screenshot):
1772         * tests/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf.
1773
1774 2009-10-19  Girish Ramakrishnan  <girish@forwardbias.in>
1775
1776         Reviewed by Holger Freyther.
1777
1778         [Qt] Windowed Plugins: Fix crash when QWebPage is deleted after QWebView.
1779         
1780         Fixes various sources of crashes:
1781         1. The PluginContainer is a child of QWebView. When the view gets deleted,
1782         the PluginView is not notified about the deletion of PluginContainer.
1783         2. QWebView destructor does not set client to 0.
1784         3. Sometimes pending paint events are sent after the plugin has died, so add
1785         a check in PluginView::setNPWindowIfNeeded.
1786
1787         https://bugs.webkit.org/show_bug.cgi?id=30354
1788
1789         * Api/qwebview.cpp:
1790         (QWebView::~QWebView):
1791         * tests/qwebview/qwebview.pro:
1792         * tests/qwebview/tst_qwebview.cpp:
1793         (tst_QWebView::reusePage_data):
1794         (tst_QWebView::reusePage):
1795
1796 2009-10-19  Jakob Truelsen  <antialize@gmail.com>
1797
1798         Reviewed by Adam Barth.
1799
1800         https://bugs.webkit.org/show_bug.cgi?id=29042
1801
1802         Allow one to costumize the minimal and maximal shrink factors,
1803         Added methods setPrintingMinimumShrinkFactor, printingMinimumShrinkFactor,
1804         setPrintingMaximumShrinkFactor, printingMaximumShrinkFactor to QWebSettings.
1805
1806
1807         * Api/qwebsettings.cpp:
1808         (QWebSettingsPrivate::apply):
1809         (QWebSettings::QWebSettings):
1810         (QWebSettings::setPrintingMinimumShrinkFactor):
1811         (QWebSettings::printingMinimumShrinkFactor):
1812         (QWebSettings::setPrintingMaximumShrinkFactor):
1813         (QWebSettings::printingMaximumShrinkFactor):
1814         * Api/qwebsettings.h:
1815
1816 2009-10-18  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1817
1818         Reviewed by Simon Hausmann.
1819
1820         Rename fixedContentsSize property to preferredContentsSize as
1821         agreed upon with Simon Hausmann and Matthias Ettrich.
1822
1823         * Api/qwebpage.cpp:
1824         (QWebPage::preferredContentsSize):
1825         (QWebPage::setPreferredContentsSize):
1826         * Api/qwebpage.h:
1827         * WebCoreSupport/FrameLoaderClientQt.cpp:
1828         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1829
1830 2009-10-16  Antonio Gomes  <tonikitoo@webkit.org>
1831
1832         Reviewed by Simon Hausmann.
1833
1834         [Qt] QGLauncher leaks WebPage object
1835         https://bugs.webkit.org/show_bug.cgi?id=30465
1836
1837         Make 'SharedScene' to own 'WebPage' reference and delete it at its destructor.
1838
1839         * Api/qwebpage.cpp:
1840         (QWebPage::view):
1841         * Api/qwebpage_p.h:
1842         * QGVLauncher/main.cpp:
1843         (SharedScene::SharedScene):
1844         (SharedScene::~SharedScene):
1845
1846 2009-10-16  Antonio Gomes  <tonikitoo@webkit.org>
1847
1848         Reviewed by Simon Hausmann.
1849
1850         [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash
1851         https://bugs.webkit.org/show_bug.cgi?id=30459
1852
1853         Remove all setView(ev->widget()) calls in QWebPage and QGWV event handling methods,
1854         since QWebPageClient would do the trick.
1855
1856         * Api/qgraphicswebview.cpp:
1857         (QGraphicsWebView::hoverMoveEvent):
1858         * Api/qwebpage.cpp:
1859         (QWebPagePrivate::mouseMoveEvent):
1860         (QWebPagePrivate::mousePressEvent):
1861         (QWebPagePrivate::mouseDoubleClickEvent):
1862         (QWebPagePrivate::mouseReleaseEvent):
1863         (QWebPagePrivate::wheelEvent):
1864         (QWebPagePrivate::dragEnterEvent):
1865         (QWebPagePrivate::dragLeaveEvent):
1866         (QWebPagePrivate::dragMoveEvent):
1867
1868 2009-10-16  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1869
1870         Pull out r49676 as it caused build breakges on Symbian
1871
1872         * Api/qwebpage.cpp:
1873
1874 2009-10-16  Yael Aharon  <yael.aharon@nokia.com>
1875
1876         Reviewed by Tor Arne Vestbø.
1877
1878         [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
1879         https://bugs.webkit.org/show_bug.cgi?id=30179
1880
1881         Added "c" style static methods for the application to hook up for
1882         receiving notifications when a plugin is created or destroyed.
1883
1884         * Api/qwebpage.cpp:
1885
1886 2009-10-15  Antonio Gomes  <tonikitoo@webkit.org>
1887
1888         Rubberstamped by Tor Arne.
1889
1890         Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*).
1891
1892         * QGVLauncher/main.cpp:
1893         (WebPage::WebPage):
1894
1895 2009-10-15  Antonio Gomes  <tonikitoo@webkit.org>
1896
1897         Reviewed by Tor Arne.
1898
1899         [Qt] QGLauncher crashes while closing a window
1900         https://bugs.webkit.org/show_bug.cgi?id=30385
1901
1902         Set page's pageClient reference to '0' at QGWV deletion.
1903
1904         * Api/qgraphicswebview.cpp:
1905         (QGraphicsWebView::~QGraphicsWebView):
1906         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1907         (WebPage::WebPage):
1908         (WebPage::aborting):
1909         (tst_QGraphicsWebView::crashOnViewlessWebPages):
1910
1911 2009-10-13  Antonio Gomes  <tonikitoo@webkit.org>
1912
1913         Reviewed by Simon Hausmann.
1914
1915         [Qt] Make context menu to work in QGraphicsWebView
1916         https://bugs.webkit.org/show_bug.cgi?id=30336
1917
1918         * Api/qgraphicswebview.cpp:
1919         (QGraphicsWebView::event):
1920
1921 2009-10-13  Girish Ramakrishnan  <girish@forwardbias.in>
1922
1923         Reviewed by Simon Hausmann.
1924
1925         [Qt] Plugins : Remove all traces of winId. Use ownerWidget() instead.
1926         
1927         This is a bug for two reasons:
1928         1. Everytime we use winId(), we end up creating a native widget. This causes an
1929         unnecessary copy of contents from the backing store to the native widget.
1930         2. Neither windowed nor windowless plugins require the winId of the QWebView or
1931         QGraphicsView.
1932         
1933         Introduce ownerWidget() which returns a QWidget * without creating a native widget
1934         (as opposed to QWidget::find(winId)).
1935
1936         https://bugs.webkit.org/show_bug.cgi?id=30170
1937
1938         * Api/qgraphicswebview.cpp:
1939         (QGraphicsWebViewPrivate::ownerWidget):
1940         * Api/qwebview.cpp:
1941         (QWebViewPrivate::ownerWidget):
1942
1943 2009-10-13  Antonio Gomes  <tonikitoo@webkit.org>
1944
1945         Reviewed by Simon Hausmann.
1946
1947         [Qt] Add some initial autotests for QWebPage's ErrorPageExtention
1948         https://bugs.webkit.org/show_bug.cgi?id=30296
1949
1950         * tests/qwebpage/tst_qwebpage.cpp:
1951         (ErrorPage::ErrorPage):
1952         (ErrorPage::supportsExtension):
1953         (ErrorPage::extension):
1954         (tst_QWebPage::errorPageExtension):
1955
1956 2009-10-13  Antonio Gomes  <tonikitoo@webkit.org>
1957
1958         Reviewed by Simon Hausmann.
1959
1960         [Qt] better handle possible edge cases on qwebframe::requestedUrl use
1961         https://bugs.webkit.org/show_bug.cgi?id=30216
1962
1963         QWebFrame::requestedUrl can be called at any time during the load
1964         process, including:
1965
1966         * An error handling (whereas an alternate error page for unsuccessful
1967           load is being set);
1968         * A ssl error exception call;
1969         * During navigation notifications/callbacks (titleChanged, urlChanged,
1970           progresses, addHistoryEntry, etc);
1971         * Among others.
1972
1973         This patch makes requestedUrl calls to fallback to FrameLoaderClient
1974         m_loadError's failingURL when an error has occurred, unless it is
1975         null/empty.
1976
1977         Also, m_loadError is now being reset at each the main frame starts a
1978         load, in order to avoid previous load errors footprints.
1979
1980         * Api/qwebframe.cpp:
1981         (QWebFrame::requestedUrl):
1982         * WebCoreSupport/FrameLoaderClientQt.cpp:
1983         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
1984
1985 2009-10-12  Jakub Wieczorek  <faw217@gmail.com>
1986
1987         Reviewed by Simon Hausmann.
1988
1989         [Qt] Missing default value for the default text encoding.
1990         https://bugs.webkit.org/show_bug.cgi?id=30311
1991
1992         QtWebKit has provided a default, hardcoded value for default charset but since
1993         the addition of the defaultTextEncoding setting in QWebSettings, that hardcoded
1994         value has had no effect.
1995
1996         Added a regression test and unskipped fast/dom/Document/document-charset.html,
1997         which is passing now.
1998
1999         * Api/qwebpage.cpp:
2000         (QWebPagePrivate::QWebPagePrivate):
2001         * Api/qwebsettings.cpp:
2002         (QWebSettings::QWebSettings):
2003         * tests/qwebpage/tst_qwebpage.cpp:
2004         (tst_QWebPage::defaultTextEncoding):
2005
2006 2009-10-12  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2007
2008         Reviewed by Simon Hausmann.
2009
2010         Implement the new palette() methods on the page clients
2011
2012         * Api/qgraphicswebview.cpp:
2013         (QGraphicsWebViewPrivate::palette):
2014         * Api/qwebview.cpp:
2015         (QWebViewPrivate::palette):
2016
2017 2009-10-12  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
2018
2019         Reviewed by Simon Hausmann.
2020
2021         QWebPage's createViewlessPlugin autotest crash fix.
2022         
2023         It is possible that plugins that are QWidgets or QGraphicsWidgets
2024         are created before a view has been assigned to a QWebPage. The
2025         plug-ins won't be fully functional, as by design, they should
2026         visualise something, but they won't crash and will stay in memory.
2027
2028         An autotest that covers this use-case, is included.
2029
2030         https://bugs.webkit.org/show_bug.cgi?id=30118
2031
2032         * WebCoreSupport/FrameLoaderClientQt.cpp:
2033         (WebCore::FrameLoaderClientQt::createPlugin):
2034         * tests/qwebpage/tst_qwebpage.cpp:
2035         (PluginTrackedPageWidget::PluginTrackedPageWidget):
2036         (PluginTrackedPageGraphicsWidget::PluginTrackedPageGraphicsWidget):
2037         (PluginTrackedPageGraphicsWidget::createPlugin):
2038         (tst_QWebPage::destroyPlugin):
2039         (tst_QWebPage::createViewlessPlugin):
2040
2041 2009-10-09  Joe Ligman  <joseph.ligman@nokia.com>
2042
2043         Reviewed by Simon Hausmann.
2044
2045         Sets Qt::WA_InputMethodEnabled and Qt::ImhHiddenText for password fields in EditorClientQt
2046         setInputMethodState. This change is needed so widgets such as the s60 software 
2047         input panel can receive input method events for password fields.
2048         It's up to the Qt platform to determine which widget will receive input method 
2049         events when these flags are set.
2050         Also added implementation for setInputMethodEnabled and setInputMethodHint 
2051         to QGraphicsWebViewPrivate and QWebViewPrivate. This change removes the direct
2052         dependency on QWebView and uses QWebPageClient.
2053         Added autotest to tst_qwebpage.cpp
2054         https://bugs.webkit.org/show_bug.cgi?id=30023
2055
2056         * Api/qgraphicswebview.cpp:
2057         (QGraphicsWebViewPrivate::setInputMethodEnabled):
2058         (QGraphicsWebViewPrivate::setInputMethodHint):
2059         * Api/qwebview.cpp:
2060         (QWebViewPrivate::setInputMethodEnabled):
2061         (QWebViewPrivate::setInputMethodHint):
2062         * WebCoreSupport/EditorClientQt.cpp:
2063         (WebCore::EditorClientQt::setInputMethodState):
2064         * tests/qwebpage/tst_qwebpage.cpp:
2065         (tst_QWebPage::inputMethods):
2066
2067 2009-10-08  Adam Barth  <abarth@webkit.org>
2068
2069         Reviewed by Eric Seidel.
2070
2071         Move executeScript from FrameLoader to ScriptController
2072         https://bugs.webkit.org/show_bug.cgi?id=30200
2073
2074         Update API call.
2075
2076         * Api/qwebframe.cpp:
2077         (QWebFrame::evaluateJavaScript):
2078
2079 2009-10-08  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
2080
2081         Reviewed by Simon Hausmann.
2082
2083         Part of testOptionalJSObjects autotest was marked as "expect to fail".
2084
2085         Two places in tst_QWebPage::testOptionalJSObjects were marked as
2086         expected to fail. The problem concern checking if a feature is enabled
2087         or disabled. According to discussion on webkit dev mailing list
2088         a disabled feature should be invisible from java script level, but
2089         there are exceptions from the rule. So we decided to disable the test
2090         for now.
2091
2092         https://bugs.webkit.org/show_bug.cgi?id=29867
2093
2094         * tests/qwebpage/tst_qwebpage.cpp:
2095         (tst_QWebPage::testOptionalJSObjects):
2096
2097 2009-10-07  Adam Barth  <abarth@webkit.org>
2098
2099         Reviewed by Darin Adler.
2100
2101         Factor PolicyChecker out of FrameLoader
2102         https://bugs.webkit.org/show_bug.cgi?id=30155
2103
2104         Move the policy callback to the policy object.
2105
2106         * WebCoreSupport/FrameLoaderClientQt.cpp:
2107         (WebCore::FrameLoaderClientQt::callPolicyFunction):
2108
2109 2009-10-07  Antonio Gomes  <tonikitoo@webkit.org>
2110
2111         Reviewed by Simon Hausmann.
2112
2113         [Qt] Get rid of useless loadFailed signal in QGraphicsWebView
2114         https://bugs.webkit.org/show_bug.cgi?id=30166
2115
2116         * Api/qgraphicswebview.cpp:
2117         (QGraphicsWebViewPrivate::_q_doLoadFinished):
2118         * Api/qgraphicswebview.h:
2119         * QGVLauncher/main.cpp:
2120         (MainWindow::init):
2121         (MainWindow::loadFinished):
2122
2123 2009-10-07  Girish Ramakrishnan  <girish@forwardbias.in>
2124
2125         Reviewed by Simon Hausmann.
2126
2127         Add a simple rotation effect to QGVLauncher
2128
2129         https://bugs.webkit.org/show_bug.cgi?id=30162
2130
2131         * QGVLauncher/main.cpp:
2132         (MainView::animatedFlip):
2133         (MainWindow::animatedFlip):
2134         (MainWindow::buildUI):
2135
2136 2009-10-07  Volker Hilsheimer  <volker.hilsheimer@nokia.com>
2137
2138         Reviewed by Simon Hausmann.
2139
2140         Doc: Document HTML and status as properties.
2141
2142         * Api/qgraphicswebview.cpp:
2143
2144 2009-10-07  Martin Smith  <msmith@trolltech.com>
2145
2146         Reviewed by Simon Hausmann.
2147
2148         Fix qdoc warning about disabled renderHints property
2149         on Symbian.
2150
2151         * Api/qwebview.cpp:
2152         * Api/qwebview.h:
2153
2154 2009-10-06  Adam Barth  <abarth@webkit.org>
2155
2156         Reviewed by Eric Seidel.
2157
2158         Move setLocalLoadPolicy and friends to SecurityOrigin
2159         https://bugs.webkit.org/show_bug.cgi?id=30110
2160
2161         Call the new API.
2162
2163         * Api/qwebpage.cpp:
2164         (QWebPagePrivate::QWebPagePrivate):
2165
2166 2009-10-06  Benjamin C Meyer  <bmeyer@rim.com>
2167
2168         Reviewed by Ariya Hidayat.
2169         
2170         When the drag data contains an image set it on the QDrag so it will be visible to the user.
2171         
2172         * WebCoreSupport/DragClientQt.cpp:
2173         (WebCore::DragClientQt::startDrag):
2174
2175 2009-10-06  Pavel Feldman  <pfeldman@chromium.org>
2176
2177         Reviewed by Timothy Hatcher.
2178
2179         Web Inspector: close inspector client view on
2180         InspectorController::close API call.
2181
2182         In order to run batch web inspector layout tests (and not affect
2183         subsequent tests) we should close inspector client's view upon
2184         InspectorController::close API call.
2185
2186         https://bugs.webkit.org/show_bug.cgi?id=30009
2187
2188         * WebCoreSupport/InspectorClientQt.cpp:
2189         (WebCore::InspectorClientQt::createPage):
2190
2191 2009-10-06  Janne Koskinen  <janne.p.koskinen@digia.com>
2192
2193         Reviewed by Simon Hausmann.
2194
2195         [Qt] don't enable input methods on Symbian by default.
2196         https://bugs.webkit.org/show_bug.cgi?id=30117
2197
2198         If input methods are enabled Symbian FEP will be launched on every
2199         pointer event making webpage navigation impossible with QWebView.
2200
2201         * Api/qwebview.cpp:
2202         (QWebView::QWebView):
2203
2204 2009-10-05  Holger Hans Peter Freyther  <zecke@selfish.org>
2205
2206         Reviewed by Simon Hausmann.
2207
2208         QtLauncher: print the number of loaded urls
2209         
2210         When using the -r mode print the number of URLs loaded so far. This
2211         is extremly useful when opening the same URL over and over again and
2212         one wants to see the progress.
2213
2214         * QtLauncher/main.cpp:
2215         (URLLoader::URLLoader):
2216         (URLLoader::loadNext):
2217
2218 2009-10-05  Girish Ramakrishnan  <girish@forwardbias.in>
2219
2220         Reviewed by Simon Hausmann.
2221
2222         Add screenshot option to menubar
2223
2224         https://bugs.webkit.org/show_bug.cgi?id=30067
2225
2226         * QtLauncher/main.cpp:
2227         (MainWindow::screenshot):
2228         (MainWindow::setupUI):
2229
2230 2009-10-05  Girish Ramakrishnan  <girish@forwardbias.in>
2231
2232         Reviewed by Simon Hausmann.
2233
2234         Setting the env QTLAUNCHER_USE_ARGB_VISUALS makes Qt use WA_TranslucentWindow.
2235
2236         https://bugs.webkit.org/show_bug.cgi?id=30068
2237
2238         * QtLauncher/main.cpp:
2239         (MainWindow::MainWindow):
2240
2241 2009-10-05  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2242
2243         Rubberstamped by Simon Hausmann.
2244
2245         Add documentation to the ErrorPageExtension.
2246
2247         * Api/qwebpage.cpp:
2248
2249 2009-10-02  Yael Aharon  <yael.aharon@nokia.com>
2250
2251         Reviewed by Simon Hausmann.
2252
2253         [Qt] Inform the application when a new request is created
2254         https://bugs.webkit.org/show_bug.cgi?id=29975
2255
2256         Add a signal to QWebPage, to inform the application when a request is created.
2257
2258         * Api/qwebpage.cpp:
2259         * Api/qwebpage.h:
2260         * tests/qwebpage/tst_qwebpage.cpp:
2261         (tst_QWebPage::loadFinished):
2262
2263 2009-10-05  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2264
2265         Reviewed by Simon Hausmann.
2266
2267         ErrorPageExtension: Add a pointer to the QWebFrame that had
2268         an error.
2269
2270         * Api/qwebpage.h:
2271         * WebCoreSupport/FrameLoaderClientQt.cpp:
2272         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2273
2274 2009-10-05  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2275
2276         Reviewed by Tor Arne Vestbø.
2277
2278         Do not empty the offline web appcache when clearing
2279         memory caches. That one is not in memory, but stored
2280         in sqlite.
2281
2282         * Api/qwebsettings.cpp:
2283         (QWebSettings::clearMemoryCaches):
2284
2285 2009-10-05  J-P Nurmi  <jpnurmi@gmail.com>
2286
2287         Reviewed by Simon Hausmann.
2288
2289         Added QGraphicsWidget-plugins support to FrameLoaderClientQt.
2290
2291         https://bugs.webkit.org/show_bug.cgi?id=29710
2292
2293         * Api/qgraphicswebview.cpp:
2294         (QGraphicsWebViewPrivate::pluginParent):
2295         * Api/qwebview.cpp:
2296         (QWebViewPrivate::pluginParent):
2297         * WebCoreSupport/FrameLoaderClientQt.cpp:
2298         (WebCore::):
2299         (WebCore::FrameLoaderClientQt::createPlugin):
2300
2301 2009-10-03  Adam Barth  <abarth@webkit.org>
2302
2303         Unreview build fix.  I wish I had a try server...
2304
2305         * Api/qwebpage.cpp:
2306         (QWebPagePrivate::updateAction):
2307
2308 2009-10-02  Norbert Leser  <norbert.leser@nokia.com>
2309
2310         Reviewed by Simon Hausmann.
2311
2312         Conditionally guard cursor code (cursor and updateCursor functions) with !QT_NO_CURSOR.
2313         Otherwise, it is inconsistent with class declaration of QCursor.
2314
2315         * Api/qgraphicswebview.cpp:
2316         * Api/qwebview.cpp:
2317
2318 2009-10-02  Prasanth Ullattil  <prasanth.ullattil@nokia.com>
2319
2320         Reviewed by Simon Hausmann.
2321
2322         Fix compiler warnings about unused function arguments.
2323
2324         * Api/qwebframe.cpp:
2325         (QWebFrame::scrollBarMinimum):
2326         * Api/qwebpage.cpp:
2327         (QWebPagePrivate::focusInEvent):
2328         (QWebPagePrivate::focusOutEvent):
2329         (QWebPagePrivate::leaveEvent):
2330         (QWebPage::javaScriptAlert):
2331         (QWebPage::javaScriptConfirm):
2332         (QWebPage::javaScriptPrompt):
2333         (QWebPage::triggerAction):
2334         (QWebPage::acceptNavigationRequest):
2335         (QWebPage::chooseFile):
2336         * WebCoreSupport/ChromeClientQt.cpp:
2337         (WebCore::ChromeClientQt::repaint):
2338         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2339         (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
2340         * WebCoreSupport/ContextMenuClientQt.cpp:
2341         (WebCore::ContextMenuClientQt::downloadURL):
2342         * WebCoreSupport/FrameLoaderClientQt.cpp:
2343         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2344         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
2345         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
2346         (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
2347         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2348         (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
2349         (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2350         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
2351         (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
2352         * WebCoreSupport/InspectorClientQt.cpp:
2353         (WebCore::InspectorClientQt::setAttachedWindowHeight):
2354         (WebCore::InspectorClientQt::highlight):
2355         (WebCore::InspectorClientQt::removeSetting):
2356
2357 2009-10-01  Simon Hausmann  <simon.hausmann@nokia.com>
2358
2359         Reviewed by Tor Arne Vestbø.
2360
2361         Make Software Input Panel requests work with QGraphicsWebView
2362         _and_ QWebView by sharing the event code in handleSoftwareInputPanel().
2363
2364         * Api/qwebpage.cpp:
2365         (QWebPagePrivate::mouseReleaseEvent):
2366         (QWebPagePrivate::handleSoftwareInputPanel):
2367         * Api/qwebpage_p.h:
2368
2369 2009-10-01  Alexis Menard  <alexis.menard@nokia.com>
2370
2371         Reviewed by Tor Arne Vestbø.
2372
2373         Rename QWebGraphicsItem to QGraphicsWebView
2374
2375         * Api/headers.pri:
2376         * Api/qwebpage.h:
2377         * Api/qwebgraphicsitem.cpp: Renamed.
2378         * Api/qwebgraphicsitem.h: Renamed.
2379         * WebKit/qt/QGVLauncher/main.cpp:
2380         * tests/tests.pro:
2381         * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Renamed.
2382         * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Renamed.
2383
2384 2009-10-01  Antonio Gomes   <tonikitoo@webkit.org>
2385
2386         Reviewed by Simon Hausmann.
2387
2388         https://bugs.webkit.org/show_bug.cgi?id=29248
2389         [Qt] [API] Make it possible to have 'invisible' loads
2390
2391         Make QWebFrame's setHtml and setContent methods to not change
2392         session and global history at all.
2393
2394         * Api/qwebframe.cpp:
2395         (QWebFrame::setHtml):
2396         (QWebFrame::setContent):
2397         * tests/qwebframe/qwebframe.pro:
2398         * tests/qwebframe/tst_qwebframe.cpp:
2399
2400 2009-10-01  Kristian Amlie  <kristian.amlie@nokia.com>
2401
2402         Reviewed by Simon Hausmann.
2403
2404         Fixed software input panel support on web input elements.
2405
2406         Send the RequestSoftwareInputPanel event if the element supports focus
2407         and the element is clicked.
2408
2409         * Api/qwebpage.cpp:
2410         (QWebPagePrivate::QWebPagePrivate):
2411         (QWebPagePrivate::mousePressEvent):
2412         (QWebPagePrivate::mouseReleaseEvent):
2413         * Api/qwebpage_p.h:
2414
2415 2009-10-01  Joe Ligman  <joseph.ligman@nokia.com>
2416
2417         Reviewed by Simon Hausmann.
2418
2419         Implementation for QWebPage::inputMethodQuery and QWebPagePrivate::inputMethodEvent
2420
2421         https://bugs.webkit.org/show_bug.cgi?id=29681
2422
2423         Some additional changes from Kristian Amlie <kristian.amlie@nokia.com>:
2424
2425             * Fixed surrounding text to exclude preedit string
2426             * Avoid emission of microFocusChanged during setComposition()
2427
2428         * Api/qwebpage.cpp:
2429         (QWebPagePrivate::inputMethodEvent):
2430         (QWebPage::inputMethodQuery):
2431         * WebCoreSupport/EditorClientQt.cpp:
2432         (WebCore::EditorClientQt::respondToChangedSelection):
2433         * tests/qwebpage/tst_qwebpage.cpp:
2434         (tst_QWebPage::inputMethods):
2435
2436 2009-09-30  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2437
2438         Reviewed by David Hyatt.
2439
2440         Add the failed URL to the ErrorPageExtension, as it is quite
2441         useful for creating error pages.
2442
2443         * Api/qwebpage.h:
2444         * WebCoreSupport/FrameLoaderClientQt.cpp:
2445         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2446
2447 2009-09-29  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
2448
2449         Reviewed by Tor Arne Vestbø.
2450
2451         [Qt] Default font size reconciliation to 16px/13px to match other platform's de-facto standard.
2452         This fixes https://bugs.webkit.org/show_bug.cgi?id=19674.
2453
2454         * Api/qwebsettings.cpp:
2455         (QWebSettings::QWebSettings):
2456
2457 2009-09-29  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
2458
2459         Reviewed by Simon Hausmann.
2460
2461         https://bugs.webkit.org/show_bug.cgi?id=29844
2462
2463         QWebPage dependency autotest fix.
2464
2465         Fix for database() autotest. All opened databases should be removed at
2466         end of test.
2467
2468         * tests/qwebpage/tst_qwebpage.cpp:
2469         (tst_QWebPage::database):
2470
2471 2009-09-29  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
2472
2473         Reviewed by Simon Hausmann.
2474
2475         Some QWebHistory and QWebPage autotest crash fixes.
2476
2477         Some checking for m_mainFrame were added. MainFrame should be created
2478         at some point of QWebPage live cicle.
2479
2480         https://bugs.webkit.org/show_bug.cgi?id=29803
2481
2482         * Api/qwebpage.cpp:
2483         (QWebPage::~QWebPage):
2484         (QWebPage::currentFrame):
2485         (QWebPage::history):
2486         (QWebPage::selectedText):
2487         (QWebPage::updatePositionDependentActions):
2488         * tests/qwebpage/tst_qwebpage.cpp:
2489         (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
2490
2491 2009-09-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2492
2493         Reviewed by Simon Hausmann and Tor Arne Vestbø.
2494
2495         Implement QWebPage Extension for error pages, incl.
2496         an example on how to use it in QtLauncher.
2497
2498         Correct our use of ResourceError.
2499
2500         * Api/qwebpage.h:
2501         (ExtensionOption::):
2502         (ExtensionOption::ErrorPageExtensionReturn::ErrorPageExtensionReturn):
2503         * QtLauncher/main.cpp:
2504         (WebPage::supportsExtension):
2505         (MainWindow::MainWindow):
2506         (MainWindow::selectElements):
2507         (WebPage::extension):
2508         * WebCoreSupport/FrameLoaderClientQt.cpp:
2509         (WebCore::FrameLoaderClientQt::cancelledError):
2510         (WebCore::FrameLoaderClientQt::blockedError):
2511         (WebCore::FrameLoaderClientQt::cannotShowURLError):
2512         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2513         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2514         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2515         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2516         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
2517         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
2518         * WebCoreSupport/FrameLoaderClientQt.h:
2519
2520 2009-09-28  Andre Poenitz  <andre.poenitz@trolltech.com>
2521
2522         Reviewed by Simon Hausmann.
2523
2524         Compile fix with namespaced Qt.
2525
2526         * Api/qwebinspector_p.h:
2527
2528 2009-09-27  Joe Ligman  <joseph.ligman@mindspring.com>
2529
2530         Reviewed by Simon Hausmann.
2531
2532         [Qt] Adding API setFocus and hasFocus to QWebElement. This API is needed for
2533         clients that want to check/set the focus node of the document.
2534         https://bugs.webkit.org/show_bug.cgi?id=29682
2535
2536         * Api/qwebelement.cpp:
2537         (QWebElement::hasFocus):
2538         (QWebElement::setFocus):
2539         * Api/qwebelement.h:
2540         * tests/qwebelement/tst_qwebelement.cpp:
2541         (tst_QWebElement::hasSetFocus):
2542
2543 2009-09-25  Csaba Osztrogonac  <oszi@inf.u-szeged.hu>
2544
2545         Reviewed by Simon Hausmann.
2546
2547         [Qt] Make tst_qwebframe work if Qt built without SSL support
2548         https://bugs.webkit.org/show_bug.cgi?id=29735
2549
2550         * tests/qwebframe/tst_qwebframe.cpp: Missing #ifndef blocks added.
2551
2552 2009-09-24  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2553
2554         Reviewed by Simon Hausmann.
2555
2556         [Qt] Update QWebElement API to remove script related methods.
2557         QWebElement::evaluateScript is the only one kept, these are
2558         removed to postpone most of the QtWebKit<->JavaScript API design
2559         after 4.6.
2560         https://bugs.webkit.org/show_bug.cgi?id=29708
2561
2562         * Api/qwebelement.cpp:
2563         * Api/qwebelement.h:
2564         Methods removed:
2565         - QWebElement::callFunction
2566         - QWebElement::functions
2567         - QWebElement::scriptableProperty
2568         - QWebElement::setScriptableProperty
2569         - QWebElement::scriptableProperties
2570         * tests/qwebelement/tst_qwebelement.cpp:
2571         (tst_QWebElement::evaluateScript):
2572
2573 2009-09-25  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2574
2575         Reviewed by Simon Hausmann.
2576
2577         [Qt] Rename QWebElement::evaluateScript
2578         to QWebElement::evaluateJavaScript.
2579         https://bugs.webkit.org/show_bug.cgi?id=29709
2580
2581         * Api/qwebelement.cpp:
2582         (QWebElement::evaluateJavaScript):
2583         * Api/qwebelement.h:
2584         * tests/qwebelement/tst_qwebelement.cpp:
2585         (tst_QWebElement::evaluateJavaScript):
2586
2587 2009-09-25  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2588
2589         Reviewed by Simon Hausmann.
2590
2591         [Qt] Update the stypeProperty API of QWebElement.
2592         https://bugs.webkit.org/show_bug.cgi?id=29711
2593
2594         * Api/qwebelement.cpp:
2595         (QWebElement::styleProperty):
2596         - Merge the stypeProperty and the computedStyleProperty methods
2597         - Remove the default value for the style resolving enum
2598         - Rename ResolveRule to StyleResolveStrategy
2599         (QWebElement::setStyleProperty):
2600         - Remove the priority argument since it is possible to control the
2601           behaviour by adding !important or removing in the value.
2602         * Api/qwebelement.h:
2603         * tests/qwebelement/tst_qwebelement.cpp:
2604         (tst_QWebElement::style):
2605         (tst_QWebElement::computedStyle):
2606         * tests/qwebframe/tst_qwebframe.cpp:
2607
2608 2009-09-24  Jon Honeycutt  <jhoneycutt@apple.com>
2609
2610         Reviewed by Alice Liu.
2611
2612         * Api/qwebpage.cpp:
2613         (QWebPagePrivate::QWebPagePrivate):
2614         Pass 0 for new Page constructor argument.
2615
2616 2009-09-24  Martin Smith  <msmith@trolltech.com>
2617
2618         Reviewed by Simon Hausmann.
2619
2620         qdoc: Added \brief texts to all the since 4.6 functions.
2621
2622         * Api/qwebhistory.cpp:
2623
2624 2009-09-23  J-P Nurmi  <jpnurmi@gmail.com>
2625
2626         Reviewed by Simon Hausmann.
2627
2628         Prevent QWebPage::setView() from changing the viewport size on the fly
2629         in case the view doesn't actually change. QWebPage::setView() is
2630         called upon every QWebGraphicsItem::hoverMoveEvent(), which forced
2631         the viewport size to be equal to the size of the whole graphics view.
2632
2633         https://bugs.webkit.org/show_bug.cgi?id=29676
2634
2635         * Api/qwebpage.cpp:
2636         (QWebPage::setView):
2637
2638 2009-09-23  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
2639
2640         Reviewed by Simon Hausmann.
2641
2642         [Qt] Crash fix in QWebHistory back and forward methods.
2643         
2644         QWebHistory::back() and QWebHistory::forward() were crashing on
2645         ASSERT in WebCore::BackForwardList. The methods should check
2646         canGoBack() and canGoForward() at the beginning.
2647
2648         https://bugs.webkit.org/show_bug.cgi?id=29675
2649
2650         * Api/qwebhistory.cpp:
2651         (QWebHistory::back):
2652         (QWebHistory::forward):
2653
2654 2009-09-23  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
2655
2656         Reviewed by Simon Hausmann.
2657
2658         [Qt] Bug fix. QWebHistory should call QWebPage::updateNavigationActions
2659         
2660         In QWebHistory's methods that change item count or current item call
2661         to QWebPage::updateNavigationActions should be executed.
2662         QWebHistory::clear() and QWebHistory::restorState() were changed.
2663         New helper method, QWebPagePrivate accesor, were created in
2664         QWebHistoryPrivate class.
2665         Two autotest were developed.
2666
2667         https://bugs.webkit.org/show_bug.cgi?id=29246
2668
2669         * Api/qwebhistory.cpp:
2670         (QWebHistory::clear):
2671         (QWebHistory::restoreState):
2672         (QWebHistoryPrivate::page):
2673         * Api/qwebhistory_p.h:
2674         * tests/qwebhistory/tst_qwebhistory.cpp:
2675         (tst_QWebHistory::saveAndRestore_1):
2676         (tst_QWebHistory::clear):
2677
2678 2009-09-23  Norbert Leser  <norbert.leser@nokia.com>
2679
2680         Reviewed by Tor Arne Vestbø.
2681
2682         Need to guard QX11Info include with Q_WS_X11.
2683         That class may not be available (in QT 4.5 for Symbian, for instance).
2684         Completes fixes in r48627 and r48604.
2685
2686         * Api/qwebgraphicsitem.cpp:
2687         * Api/qwebview.cpp:
2688
2689 2009-09-22  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2690
2691         Reviewed by Simon Hausmann.
2692
2693         [Qt] Add default timeout while waiting for signals in QWebPage auto
2694         tests.
2695         https://bugs.webkit.org/show_bug.cgi?id=29637
2696
2697         * tests/qwebpage/tst_qwebpage.cpp:
2698         (waitForSignal):
2699
2700 2009-09-22  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2701
2702         Reivewed by Simon Hausmann.
2703
2704         Fix the Qt/Mac build after r48604 (Implement new QWebPageClient class)
2705
2706         There's no QWidget::x11Info() on Mac, and setPlatformPluginWidget()
2707         takes a QWidget*, not a QWebPageClient*
2708
2709         * Api/qwebgraphicsitem.cpp:
2710         (QWebGraphicsItemPrivate::screenNumber):
2711         * Api/qwebview.cpp:
2712         (QWebViewPrivate::screenNumber):
2713
2714 2009-09-21  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2715
2716         Reviewed by Simon Hausmann.
2717
2718         For Qt, platformPageClient() will now return a class derived from
2719         the QWebPageClient, so the patch adapts our Qt hooks to go though
2720         this class and not depend on the QWebView.
2721
2722         * Api/qwebgraphicsitem.cpp:
2723         (QWebGraphicsItemPrivate::scroll):
2724         (QWebGraphicsItemPrivate::update):
2725         (QWebGraphicsItemPrivate::cursor):
2726         (QWebGraphicsItemPrivate::updateCursor):
2727         (QWebGraphicsItemPrivate::screenNumber):
2728         (QWebGraphicsItemPrivate::winId):
2729         (QWebGraphicsItem::event):
2730         (QWebGraphicsItem::setPage):
2731         * Api/qwebgraphicsitem.h:
2732         * Api/qwebpage.cpp:
2733         (QWebPagePrivate::QWebPagePrivate):
2734         * Api/qwebpage_p.h:
2735         * Api/qwebview.cpp:
2736         (QWebViewPrivate::scroll):
2737         (QWebViewPrivate::update):
2738         (QWebViewPrivate::cursor):
2739         (QWebViewPrivate::updateCursor):
2740         (QWebViewPrivate::screenNumber):
2741         (QWebViewPrivate::winId):
2742         (QWebView::setPage):
2743         (QWebView::event):
2744         * WebCoreSupport/ChromeClientQt.cpp:
2745         (WebCore::ChromeClientQt::repaint):
2746         (WebCore::ChromeClientQt::scroll):
2747         (WebCore::ChromeClientQt::platformPageClient):
2748
2749 2009-09-21  Yael Aharon  <yael.aharon@nokia.com>
2750
2751         Reviewed by Simon Hausmann.
2752
2753         https://bugs.webkit.org/show_bug.cgi?id=29609
2754         Build fix for windows when using Qt 4.5.0.
2755
2756         * Api/qwebpage.cpp:
2757         (QWebPage::userAgentForUrl):
2758
2759 2009-09-19  Benjamin Poulain  <benjamin.poulain@nokia.com>
2760
2761         Reviewed by Simon Hausmann.
2762
2763         https://bugs.webkit.org/show_bug.cgi?id=29345
2764         The tests of QWebFrame did not use QTRY_VERIFY for
2765         tests involving the event loop.
2766
2767         * tests/qwebframe/tst_qwebframe.cpp:
2768         * tests/util.h: Added. Copy of tests/shared/util.h of Qt
2769
2770 2009-09-19  Jakub Wieczorek  <faw217@gmail.com>
2771
2772         Reviewed by Simon Hausmann.
2773
2774         [Qt] Add an autotest stub for QWebGraphicsItem.
2775
2776         It just calls all the functions and makes sure they don't crash.
2777
2778         * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Added.
2779         * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Added.
2780         (tst_QWebGraphicsItem::qwebgraphicsitem):
2781         * tests/tests.pro:
2782
2783 2009-09-18  Norbert Leser  <norbert.leser@nokia.com>
2784
2785         Reviewed by Eric Seidel.
2786
2787         Corrected the Symbian specific UID3 values to be assigned
2788         from the "unprotected" pool that permits self-signing of
2789         those test and demo executables. (Added new UID3 values
2790         where they were missing for new components.)
2791
2792         * QGVLauncher/QGVLauncher.pro:
2793         * QtLauncher/QtLauncher.pro:
2794         * tests/benchmarks/loading/tst_loading.pro:
2795         * tests/benchmarks/painting/tst_painting.pro:
2796         * tests/qwebelement/qwebelement.pro:
2797         * tests/qwebframe/qwebframe.pro:
2798         * tests/qwebhistory/qwebhistory.pro:
2799         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
2800         * tests/qwebpage/qwebpage.pro:
2801         * tests/qwebplugindatabase/qwebplugindatabase.pro:
2802         * tests/qwebview/qwebview.pro:
2803
2804 2009-09-17  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2805
2806         Reviewed by Simon Hausmann.
2807
2808         Make PlatformWindow return something else than PlatformWidget
2809         https://bugs.webkit.org/show_bug.cgi?id=29085
2810
2811         Reflect the rename of platformWindow and it's return type.
2812
2813         * WebCoreSupport/ChromeClientQt.cpp:
2814         (WebCore::ChromeClientQt::platformPageClient):
2815         * WebCoreSupport/ChromeClientQt.h:
2816
2817 2009-09-18  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2818
2819         Reviewed by Simon Hausmann.
2820
2821         [Qt] Add persistence support for configuration options in the
2822         inspector.
2823
2824         * Api/qwebinspector.cpp:
2825         * QtLauncher/main.cpp:
2826         (main):
2827         * WebCoreSupport/InspectorClientQt.cpp:
2828         (WebCore::InspectorClientQt::populateSetting):
2829         (WebCore::InspectorClientQt::storeSetting):
2830         (WebCore::variantToSetting):
2831         (WebCore::settingToVariant):
2832
2833 2009-09-18  Simon Hausmann  <simon.hausmann@nokia.com>
2834
2835         Reviewed by Ariya Hidayat.
2836
2837         Fixed a bunch of documentation warnings.
2838
2839         * Api/qwebgraphicsitem.cpp:
2840         * Api/qwebplugindatabase.cpp:
2841         * Api/qwebpluginfactory.cpp:
2842         * Api/qwebsecurityorigin.cpp:
2843
2844 2009-09-18  Warwick Allison  <warwick.allison@nokia.com>
2845
2846         Reviewed by Simon Hausmann.
2847
2848         Added a test that console output works.
2849
2850         * tests/qwebpage/tst_qwebpage.cpp:
2851         (ConsolePage::ConsolePage):
2852         (ConsolePage::javaScriptConsoleMessage):
2853         (tst_QWebPage::consoleOutput):
2854
2855 2009-09-17  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2856
2857         Reviewed by Simon Hausmann.
2858
2859         Improve documentation for Page Cache.
2860
2861         * Api/qwebsettings.cpp:
2862
2863 2009-09-17  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2864
2865         Reviewed by Simon Hausmann.
2866
2867         [Qt] Update QWebSettings::setUserStyleSheetUrl() docs and test
2868
2869         https://bugs.webkit.org/show_bug.cgi?id=29081
2870
2871         The documentation now specifies that the URL has to be a local file
2872         or a a data-URL (with utf-8 and base64-encoded data), as these are the
2873         only two schemes that the current code path accepts.
2874
2875         The auto-test has been updated to reflect this limitation.
2876
2877         At a later point we should concider adding API for the new way of
2878         doing both user defined stylesheets and scripts.
2879
2880         * Api/qwebsettings.cpp:
2881         * tests/qwebpage/tst_qwebpage.cpp:
2882
2883 2009-09-17  Janne Koskinen  <janne.p.koskinen@digia.com>
2884
2885         Reviewed by Simon Hausmann.
2886
2887         Symbian build fix.
2888
2889         Moved the #ifdefs around _q_cleanupLeakMessages() into the function
2890         definition.
2891
2892         QMake is not being able to distinguish between release and debug builds
2893         in Symbian build. This is a Symbian toolchain issue.
2894
2895         * Api/qwebpage.cpp:
2896         (QWebPagePrivate::_q_cleanupLeakMessages):
2897         * Api/qwebpage.h:
2898         * Api/qwebpage_p.h:
2899
2900 2009-09-17  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2901
2902         Reviewed by Simon Hausmann.
2903
2904         Small cosmetic documentation fixlet in the QWebInspector.
2905
2906         * Api/qwebinspector.cpp:
2907
2908 2009-09-16  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
2909
2910         Reviewed by Eric Seidel.
2911
2912         Detect and add Windows7 properly to the user agent.
2913
2914         * Api/qwebpage.cpp:
2915         (QWebPage::userAgentForUrl):
2916
2917 2009-09-16  Andras Becsi  <andrewbecsi@yahoo.co.uk>
2918
2919         Rubberstamped by Kenneth Christiansen.
2920
2921         [Qt] Build fix for previous changes.
2922
2923         * QGVLauncher/main.cpp:
2924         (MainView::flip):
2925
2926 2009-09-16  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2927
2928         Unreviewed potential Qt < 4.6 build fix.
2929
2930         * QGVLauncher/main.cpp:
2931         (MainView::flip):
2932
2933 2009-09-16  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2934
2935         Reviewed by Simon Hausmann.
2936
2937         Add a "Flip effect" to our GraphicsView based launcher.
2938
2939         * QGVLauncher/main.cpp:
2940         (MainView::resizeEvent):
2941         (MainView::flip):
2942         (MainWindow::flip):
2943         (MainWindow::buildUI):
2944
2945 2009-09-16  Zoltan Herczeg  <zherczeg@inf.u-szeged.hu>
2946
2947         Rubber-stamped by Simon Hausmann.
2948
2949         [Qt] Typo fix. Pass the window object to the Format
2950         menu. In this way Qt can free its internal graphical
2951         objects during exit.
2952
2953         * QtLauncher/main.cpp:
2954         (MainWindow::setupUI):
2955
2956 2009-09-16  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2957
2958         Reviewed by Tor Arne Vestbø.
2959
2960         [Qt] Build break fix on gcc ARM.
2961
2962         * Api/qwebgraphicsitem.cpp:
2963         (QWebGraphicsItemPrivate::_q_doLoadProgress):
2964
2965 2009-09-16  Warwick Allison  <warwick.allison@nokia.com>
2966
2967         Reviewed by Simon Hausmann.
2968
2969         Fix a crash in QWebFrame::hasFocus() with a simple null pointer check
2970         when the focused frame is null. We do the same check in other places
2971         where we call kit().
2972
2973         * Api/qwebframe.cpp:
2974         (QWebFrame::hasFocus):
2975
2976 2009-09-16  Jure Repinc  <jlp@holodeck1.com>
2977
2978         Reviewed by Simon Hausmann.
2979
2980         Fixed a typo found during translation.
2981
2982         * WebCoreSupport/FrameLoaderClientQt.cpp:
2983         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2984
2985 2009-09-14  Jakub Wieczorek  <faw217@gmail.com>
2986
2987         Reviewed by Simon Hausmann.
2988
2989         [Qt] QWebGraphicsItem should check for null QWebPage.
2990         https://bugs.webkit.org/show_bug.cgi?id=29185
2991
2992         Don't crash in QWebGraphicsItem when the page is still null, by
2993         either checking if it's the case or constructing the default one.
2994
2995         * Api/qwebgraphicsitem.cpp:
2996         (QWebGraphicsItem::icon):
2997         (QWebGraphicsItem::setZoomFactor):
2998         (QWebGraphicsItem::zoomFactor):
2999         (QWebGraphicsItem::setGeometry):
3000         (QWebGraphicsItem::load):
3001         (QWebGraphicsItem::setHtml):
3002         (QWebGraphicsItem::toHtml):
3003         (QWebGraphicsItem::setContent):
3004         (QWebGraphicsItem::history):
3005         (QWebGraphicsItem::settings):
3006
3007 2009-09-11  David Boddie  <dboddie@trolltech.com>
3008
3009         Reviewed by Simon Hausmann.
3010
3011         Doc: Note that Netscape plugins are only available on desktop platforms.
3012
3013         * docs/qtwebkit.qdoc:
3014
3015 2009-09-11  Martin Smith  <msmith@trolltech.com>
3016
3017         Reviewed by Simon Hausmann.
3018
3019         Adjust the name of the contentspage for the documentation
3020         to the new name used in Qt 4.6.
3021
3022         * docs/qtwebkit.qdoc:
3023
3024 2009-09-11  Ariya Hidayat  <ariya.hidayat@nokia.com>
3025
3026         Reviewed by Simon Hausmann.
3027
3028         Changed URLs from qtsoftware.com to qt.nokia.com, as part of a general
3029         renaming.
3030
3031         * Api/qwebpluginfactory.cpp:
3032         * docs/webkitsnippets/simple/main.cpp:
3033         (main):
3034         * docs/webkitsnippets/webpage/main.cpp:
3035         (main):
3036
3037 2009-09-11  Volker Hilsheimer  <volker.hilsheimer@nokia.com>
3038
3039         Reviewed by Simon Hausmann.
3040
3041         Restructure the documentation, both on a file and on a content level.
3042
3043         * Api/qwebdatabase.cpp:
3044         * Api/qwebelement.cpp:
3045         * Api/qwebframe.cpp:
3046         * Api/qwebhistory.cpp:
3047         * Api/qwebhistoryinterface.cpp:
3048         * Api/qwebpage.cpp:
3049         * Api/qwebpluginfactory.cpp:
3050         * Api/qwebsecurityorigin.cpp:
3051         * Api/qwebsettings.cpp:
3052         * Api/qwebview.cpp:
3053         * docs/qtwebkit.qdoc:
3054
3055 2009-09-11  Yongjun Zhang  <yongjun.zhang@nokia.com>
3056
3057         Reviewed by Simon Hausmann.
3058         
3059         https://bugs.webkit.org/show_bug.cgi?id=29136
3060         [Qt] emit microFocusChanged() signal when no QWidget-based view is present.
3061
3062         emit microFocusChange() signal regardless of view.
3063
3064         * WebCoreSupport/EditorClientQt.cpp:
3065         (WebCore::EditorClientQt::setInputMethodState):
3066
3067 2009-09-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3068
3069         Reviewed by Simon Hausmann.
3070
3071         https://bugs.webkit.org/show_bug.cgi?id=28806
3072
3073         [Qt] Make the WebInspector available as a QWidget.
3074
3075         * Api/headers.pri:
3076         * Api/qwebelement.cpp:
3077         (QWebElement::enclosingElement):
3078         * Api/qwebelement.h:
3079         * Api/qwebinspector.cpp: Added.
3080         * Api/qwebinspector.h: Added.
3081         * Api/qwebinspector_p.h: Added.
3082         * Api/qwebpage.cpp:
3083         (QWebPagePrivate::QWebPagePrivate):
3084         (QWebPagePrivate::setInspector):
3085         (QWebPagePrivate::getOrCreateInspector):
3086         (QWebPagePrivate::inspectorController):
3087         (QWebPage::~QWebPage):
3088         (QWebPage::triggerAction):
3089         * Api/qwebpage.h:
3090         * Api/qwebpage_p.h:
3091         * Api/qwebsettings.cpp:
3092         * QtLauncher/main.cpp:
3093         (MainWindow::MainWindow):
3094         * WebCoreSupport/InspectorClientQt.cpp:
3095         (WebCore::InspectorClientWebPage::InspectorClientWebPage):
3096         (WebCore::InspectorClientWebPage::createWindow):
3097         (WebCore::InspectorClientQt::createPage):
3098         (WebCore::InspectorClientQt::showWindow):
3099         (WebCore::InspectorClientQt::closeWindow):
3100         (WebCore::InspectorClientQt::attachWindow):
3101         (WebCore::InspectorClientQt::detachWindow):
3102         (WebCore::InspectorClientQt::updateWindowTitle):
3103         * WebCoreSupport/InspectorClientQt.h:
3104         * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp: Added.
3105
3106 2009-09-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3107
3108         Reviewed by Eric Seidel.
3109
3110         [Qt] Fix comparison between signed and unsigned integer warnings
3111         https://bugs.webkit.org/show_bug.cgi?id=29162
3112
3113         No functional change.
3114
3115         * Api/qwebelement.cpp:
3116         (QWebElement::findAll):
3117         * Api/qwebhistory.cpp:
3118         (QWebHistory::items):
3119         (QWebHistory::backItems):
3120         (QWebHistory::forwardItems):
3121         (QWebHistory::saveState):
3122         * Api/qwebplugindatabase.cpp:
3123         (QWebPluginDatabase::setSearchPaths):
3124         * WebCoreSupport/ChromeClientQt.cpp:
3125         (WebCore::ChromeClientQt::runOpenPanel):
3126         * WebCoreSupport/FrameLoaderClientQt.cpp:
3127         (WebCore::FrameLoaderClientQt::createPlugin):
3128
3129 2009-09-10  Simon Hausmann  <hausmann@webkit.org>
3130
3131         Rubber-stamped by Ariya Hidayat.
3132
3133         Fix a bunch of qdoc warnings: Invalid references, non-standard
3134         wording, etc.
3135
3136         * Api/qwebelement.cpp:
3137         * Api/qwebgraphicsitem.cpp:
3138         * Api/qwebsecurityorigin.cpp:
3139
3140 2009-09-10  Simon Hausmann  <hausmann@webkit.org>
3141
3142         Reviewed by Ariya Hidayat.
3143
3144         Fix context menu event delivery with QWebGraphicsItem.
3145
3146         Re-implement the correct context menu virtual function using
3147         a QGraphicsSceneContextMenuEvent and forward & handle it in
3148         QWebPage.
3149
3150         * Api/qwebgraphicsitem.cpp:
3151         (QWebGraphicsItem::contextMenuEvent):
3152         * Api/qwebgraphicsitem.h:
3153         * Api/qwebpage.cpp:
3154         (QWebPagePrivate::contextMenuEvent):
3155         (QWebPage::event):
3156         * Api/qwebpage_p.h:
3157
3158 2009-09-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3159
3160         Unreviewed.
3161
3162         Build fix for QtWebKit for Mac after r48219.
3163
3164         qevent and qstyleoption are QtGui interfaces.
3165
3166         * Api/qwebgraphicsitem.cpp:
3167         * Api/qwebgraphicsitem.h:
3168
3169 2009-09-09  Simon Hausmann  <hausmann@webkit.org>
3170
3171         Reviewed by Tor Arne Vestbø.
3172
3173         Call the right base class function QGraphicsWidget::event() instead
3174         of skipping it and using QObject::event() instead.
3175
3176         * Api/qwebgraphicsitem.cpp:
3177         (QWebGraphicsItem::event):
3178
3179 2009-09-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3180
3181         Unreviewed.
3182
3183         Fix comment at Tor Arne Vestbø's request.
3184
3185         * Api/qwebgraphicsitem.cpp:
3186         (QWebGraphicsItem::sceneEvent):
3187         (QWebGraphicsItem::event):
3188
3189 2009-09-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3190
3191         Reviewed by Tor Arne Vestbø.
3192
3193         Implement some virtual event methods so that we can fix
3194         event-related bugs in Qt patch releases.
3195
3196         * Api/qwebgraphicsitem.cpp:
3197         (QWebGraphicsItem::sceneEvent):
3198         (QWebGraphicsItem::event):
3199         * Api/qwebgraphicsitem.h:
3200
3201 2009-09-09  Kenneth Rohde Christiansen  <kenneth@webkit.org>, Antonio Gomes  <antonio.gomes@openbossa.org>
3202
3203         Reviewed by Simon Hausmann.
3204
3205         Add a new QGraphicsWidget based version of the "QWebView"
3206         under the name "QWebGraphicsItem".
3207
3208         https://bugs.webkit.org/show_bug.cgi?id=28862
3209
3210         Includes an alternative Qt launcher using the QGraphicsView.
3211
3212         * Api/headers.pri:
3213         * Api/qwebgraphicsitem.cpp: Added.
3214         * Api/qwebgraphicsitem.h: Added.
3215         * Api/qwebpage.h:
3216         * QGVLauncher/QGVLauncher.pro: Copied from WebKit/qt/QtLauncher/QtLauncher.pro.
3217         * QGVLauncher/main.cpp: Added.
3218         * WebCoreSupport/ChromeClientQt.cpp:
3219         (WebCore::ChromeClientQt::repaint):
3220         (WebCore::ChromeClientQt::scroll):
3221
3222 2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3223
3224         Unreviewed build fix.
3225
3226         Potential build fix for Qt 4.5
3227
3228         * Api/qwebpage.cpp:
3229         (QWebPagePrivate::mousePressEvent):
3230
3231 2009-09-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
3232
3233         Reviewed by Simon Hausmann.
3234
3235         https://bugs.webkit.org/show_bug.cgi?id=29007
3236         Add a test for the signal QWebFrame::javaScriptWindowObjectCleared()
3237
3238         * tests/qwebframe/tst_qwebframe.cpp:
3239
3240 2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3241
3242         Reviewed by Simon Hausmann.
3243
3244         [Qt] Fix unused variable warnings
3245         https://bugs.webkit.org/show_bug.cgi?id=29018
3246
3247         * Api/qwebpage.cpp:
3248         (QWebPagePrivate::keyPressEvent):
3249         * WebCoreSupport/FrameLoaderClientQt.cpp:
3250         (WebCore::FrameLoaderClientQt::startDownload):
3251         (WebCore::FrameLoaderClientQt::createFrame):
3252
3253 2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3254
3255         Reviewed by Ariya Hidayat.
3256
3257         [Qt] Use the declaration order in initializer lists
3258         https://bugs.webkit.org/show_bug.cgi?id=29017
3259
3260         * Api/qwebframe_p.h:
3261
3262 2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3263
3264         Reviewed by Simon Hausmann.
3265
3266         Add support for handling QGraphicsScene events.
3267
3268         * Api/qwebpage.cpp:
3269         (QWebPagePrivate::mouseMoveEvent):
3270         (QWebPagePrivate::mousePressEvent):
3271         (QWebPagePrivate::mouseDoubleClickEvent):
3272         (QWebPagePrivate::mouseTripleClickEvent):
3273         (QWebPagePrivate::handleClipboard):
3274         (QWebPagePrivate::mouseReleaseEvent):
3275         (QWebPagePrivate::wheelEvent):
3276         (QWebPagePrivate::dragEnterEvent):
3277         (QWebPagePrivate::dragLeaveEvent):
3278         (QWebPagePrivate::dragMoveEvent):
3279         (QWebPagePrivate::dropEvent):
3280         (QWebPage::event):
3281         * Api/qwebpage_p.h:
3282
3283 2009-09-08  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3284
3285         Reviewed by Simon Hausmann.
3286
3287         [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
3288         https://bugs.webkit.org/show_bug.cgi?id=28865
3289
3290         Clean up the unserCursor hack to use the QCursor set
3291         as a property of the QWidget by WebCore::WidgetQt.
3292
3293         Remove all code that are no longer necessary for getting
3294         cursor change events.
3295
3296         Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
3297                  Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07
3298
3299         * Api/qwebpage.cpp:
3300         * Api/qwebpage_p.h:
3301         * Api/qwebview.cpp:
3302         (QWebViewPrivate::QWebViewPrivate):
3303         (QWebView::event):
3304
3305 2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3306
3307         Reviewed by Simon Hausmann.
3308
3309         [Qt] QtWebKit single API to enable persistency
3310         https://bugs.webkit.org/show_bug.cgi?id=28682
3311
3312         Disable LocalStorage, ApplicationCache, HTML5 offline storage by
3313         default.
3314
3315         If persistency is enabled the default directory for LocalStorage and
3316         ApplicationCache is now based on QDesktopServices::DataLocation and not
3317         QDesktopServices::CacheLocation (as it is expected to keep this data
3318         around after a reboot).
3319
3320         If persistency is enabled initialize HTML5 offline storage as well - this
3321         fixed offline Storage for QtLauncher.
3322
3323         * Api/qwebpage.cpp:
3324         (QWebPagePrivate::QWebPagePrivate):
3325         * Api/qwebsettings.cpp:
3326         (QWebSettings::QWebSettings):
3327         (QWebSettings::enablePersistentStorage):
3328         * Api/qwebsettings.h: Add a new API called enablePersistentStorage
3329         * QtLauncher/main.cpp: Use the new enablePersistentStorage API
3330         (main):
3331
3332 2009-09-07  Jakub Wieczorek  <faw217@gmail.com>
3333
3334         Reviewed by Simon Hausmann.
3335
3336         Speed up the QWebPluginInfo::supportsMimeType() function.
3337         https://bugs.webkit.org/show_bug.cgi?id=27651
3338
3339         Instead of going through the MIME types list constructed with
3340         mimeTypes() function, look up the internal mimeToDescriptions map.
3341
3342         * Api/qwebplugindatabase.cpp:
3343         (QWebPluginInfo::supportsMimeType):
3344
3345 2009-09-07  Jakub Wieczorek  <faw217@gmail.com>
3346
3347         Reviewed by Simon Hausmann.
3348
3349         Speed up the QWebPluginInfo::mimeTypes() function.
3350         https://bugs.webkit.org/show_bug.cgi?id=27651
3351
3352         Instead of constructing a list of MIME types every time it is called,
3353         do this only once.
3354
3355         * Api/qwebplugindatabase.cpp:
3356         (QWebPluginInfo::mimeTypes):
3357         (QWebPluginInfo::operator=):
3358         * Api/qwebplugindatabase.h:
3359         * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
3360         (tst_QWebPluginDatabase::operatorassign_data):
3361         (tst_QWebPluginDatabase::operatorassign):
3362
3363 2009-09-07  Jakub Wieczorek  <faw217@gmail.com>
3364
3365         Reviewed by Simon Hausmann.
3366
3367         Remove the private classes from QWebPluginDatabase.
3368         https://bugs.webkit.org/show_bug.cgi?id=27651
3369
3370         Instead, hold the PluginDatabase and PluginPackage objects as class
3371         members and take care of refcounting on our own instead of using RefPtr.
3372
3373         This way we not only made the code cleaner but also got rid of
3374         redundant allocations when constructing null QWebPluginInfo objects.
3375
3376         The private classes have been forward-declared and the d-pointers left
3377         to be on the safe side.
3378
3379         * Api/qwebplugindatabase.cpp:
3380         (QWebPluginInfo::QWebPluginInfo):
3381         (QWebPluginInfo::~QWebPluginInfo):
3382         (QWebPluginInfo::name):
3383         (QWebPluginInfo::description):
3384         (QWebPluginInfo::mimeTypes):
3385         (QWebPluginInfo::path):
3386         (QWebPluginInfo::isNull):
3387         (QWebPluginInfo::setEnabled):
3388         (QWebPluginInfo::isEnabled):
3389         (QWebPluginInfo::operator==):
3390         (QWebPluginInfo::operator!=):
3391         (QWebPluginInfo::operator=):
3392         (QWebPluginDatabase::QWebPluginDatabase):
3393         (QWebPluginDatabase::~QWebPluginDatabase):
3394         (QWebPluginDatabase::plugins):
3395         (QWebPluginDatabase::searchPaths):
3396         (QWebPluginDatabase::setSearchPaths):
3397         (QWebPluginDatabase::addSearchPath):
3398         (QWebPluginDatabase::refresh):
3399         (QWebPluginDatabase::pluginForMimeType):
3400         (QWebPluginDatabase::setPreferredPluginForMimeType):
3401         * Api/qwebplugindatabase.h:
3402         * Api/qwebplugindatabase_p.h: Removed.
3403
3404 2009-09-05  Jakub Wieczorek  <faw217@gmail.com>
3405
3406         Reviewed by Eric Seidel.
3407
3408         [Qt] r47424 broke binary compatibility
3409         https://bugs.webkit.org/show_bug.cgi?id=28996
3410
3411         Append the new DnsPrefetchEnabled attribute at the end of the enum.
3412
3413         * Api/qwebsettings.h:
3414
3415 2009-09-04  Mark Mentovai  <mark@chromium.org>
3416
3417         Reviewed by Dave Hyatt.
3418
3419         https://bugs.webkit.org/show_bug.cgi?id=28614
3420
3421         Account for scrollbar state changes that occur during layout.
3422
3423         * Api/qwebframe.cpp:
3424         (QWebFrame::setScrollBarPolicy):
3425
3426         Eliminate duplicated (and incorrect) scrollbar mode tracking between
3427         FrameView and ScrollView.
3428
3429 2009-09-04  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3430
3431         Reviewed by Eric Seidel.
3432
3433         [Qt] Fix tst_QWebPage::database autotest failure
3434         https://bugs.webkit.org/show_bug.cgi?id=28961
3435
3436         Make sure that the test case enables the feature before 
3437         the feature gets tested
3438
3439         * tests/qwebpage/tst_qwebpage.cpp:
3440         (tst_QWebPage::database):
3441
3442 2009-09-04  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
3443
3444         Reviewed by Eric Seidel.
3445         
3446         Any QtWebKit application crashes on exit if the inspector is
3447         used during the session rather then exiting.
3448         
3449         If a QWebView has a QWebPage that is destroyed the QWebView
3450         does not update its pointer and will crash the next time
3451         it access the page pointers (such as in its destructor).
3452         
3453         InspectorClientView should not call deleteLater when the page
3454         is destroyed because it does not have a parent and is a top
3455         level widget.  close() needs to be called so that QApplication
3456         can exit the application if quitOnLastWindowClosed is set
3457         and a InspectorClientView is the last window, otherwise
3458         the application will never exit.
3459         
3460         * Api/qwebview.cpp:
3461         (QWebViewPrivate::_q_pageDestroyed):
3462         (QWebView::setPage):
3463         * Api/qwebview.h:
3464         * WebCoreSupport/InspectorClientQt.cpp:
3465         (WebCore::InspectorClientView::InspectorClientView):
3466
3467 2009-09-03  Adam Barth  <abarth@webkit.org>
3468
3469         Reviewed by eric@webkit.org.
3470
3471         https://bugs.webkit.org/show_bug.cgi?id=24696
3472
3473         Stub implementations of mixed content methods of FrameLoaderClient. 
3474
3475         * WebCoreSupport/FrameLoaderClientQt.cpp:
3476         (WebCore::FrameLoaderClientQt::didDisplayInsecureContent):
3477         (WebCore::FrameLoaderClientQt::didRunInsecureContent):
3478         * WebCoreSupport/FrameLoaderClientQt.h:
3479
3480 2009-09-03  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3481
3482         Reviewed by Eric Seidel.
3483
3484         [Qt] Add a setting to turn SessionStorage on/off
3485         https://bugs.webkit.org/show_bug.cgi?id=28836
3486
3487         * Api/qwebsettings.cpp:
3488         (QWebSettingsPrivate::apply):
3489         (QWebSettings::QWebSettings):
3490         * Api/qwebsettings.h:
3491         * tests/qwebpage/tst_qwebpage.cpp:
3492         (testFlag):
3493         (tst_QWebPage::testOptionalJSObjects):
3494
3495 2009-09-02  Richard Moore  <rich@kde.org>
3496
3497         Reviewed by Tor Arne Vestbø.
3498
3499         [Qt] Make sure we relayout the page after evaluating JS
3500
3501         https://bugs.webkit.org/show_bug.cgi?id=28235
3502
3503         QtWebKit does not always seem to reflow the page when evaluating
3504         javascript. This patch changes the way evaluateJavaScript works to
3505         use the frameloader which ensures that this is done properly.
3506
3507         * Api/qwebframe.cpp:
3508         (QWebFrame::evaluateJavaScript):
3509         * tests/qwebframe/tst_qwebframe.cpp:
3510
3511 2009-08-28  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>
3512
3513         Reviewed by Holger Freyther.
3514
3515         https://bugs.webkit.org/show_bug.cgi?id=25889
3516         [GTK] scrollbar policy for main frame is not implementable
3517
3518         Add empty implementation for new ChromeClient method.
3519
3520         * WebCoreSupport/ChromeClientQt.h:
3521         (WebCore::ChromeClientQt::scrollbarsModeDidChange):
3522
3523 2009-08-27  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
3524
3525         Reviewed by Ariya Hidayat.
3526
3527         QWebHistory::clear() modifications.
3528
3529         Clear() method was changed. If QWebHistory is empty (there is no
3530         elements even current) clear() do nothing. If there at least one
3531         element clear() will delete everything apart of current.
3532
3533         New autotests in QWebHistory
3534
3535         New autotests were added to QWebHistory. They should check some crashes
3536         in save and restore state process and clear() method and general
3537         behavior on where QWebHistory::count() == 0 or QWebHistory::count() == 1
3538
3539         Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=28711
3540
3541         * Api/qwebhistory.cpp:
3542         (QWebHistory::clear):
3543         * tests/qwebhistory/tst_qwebhistory.cpp:
3544         (tst_QWebHistory::back):
3545         (tst_QWebHistory::forward):
3546         (tst_QWebHistory::saveAndRestore_crash_1):
3547         (tst_QWebHistory::saveAndRestore_crash_2):
3548         (tst_QWebHistory::saveAndRestore_crash_3):
3549         (tst_QWebHistory::clear):
3550
3551 2009-08-27  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
3552
3553         Reviewed by Ariya Hidayat.
3554
3555         [Qt] Cleanup, old and commented part of source code was removed.
3556         Fix some formatting problems.
3557
3558         https://bugs.webkit.org/show_bug.cgi?id=28712
3559
3560         * Api/qwebhistory_p.h:
3561         (QWebHistoryPrivate::QWebHistoryPrivate):
3562
3563 2009-08-26  Adam Barth  <abarth@webkit.org>
3564
3565         Reviewed by Oliver Hunt.
3566
3567         Don't let local files access web URLs
3568         https://bugs.webkit.org/show_bug.cgi?id=28480
3569
3570         * Api/qwebsettings.cpp:
3571         (QWebSettings::QWebSettings):
3572
3573 2009-08-25  Antonio Gomes   <antonio.gomes@openbossa.org>
3574
3575         Reviewed by Ariya Hidayat.
3576
3577         Bug 28708 - Make possible to better use ResourceError in FrameLoaderClientQt class.
3578
3579         * Api/qwebframe.cpp:
3580         (QWebFrame::requestedUrl):
3581         * WebCoreSupport/FrameLoaderClientQt.cpp:
3582         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3583         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3584         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
3585         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3586         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3587         * WebCoreSupport/FrameLoaderClientQt.h:
3588
3589 2009-08-22  Adam Barth  <abarth@webkit.org>
3590
3591         Revert 47684.  We're going to do this later once clients have had a
3592         chance to opt into the setting they like.
3593
3594         * Api/qwebsettings.cpp:
3595         (QWebSettings::QWebSettings):
3596
3597 2009-08-22  Adam Barth  <abarth@webkit.org>
3598
3599         Reviewed by Eric Seidel.
3600
3601         Don't let local files access web URLs
3602         https://bugs.webkit.org/show_bug.cgi?id=28480
3603
3604         * Api/qwebsettings.cpp:
3605         (QWebSettings::QWebSettings):
3606
3607 2009-08-19  Aaron Boodman  <aa@chromium.org>
3608
3609         Speculative build break fix for qt.
3610
3611         * Api/qwebsecurityorigin.cpp:
3612         (QWebSecurityOrigin::whiteListAccessFromOrigin):
3613         * Api/qwebsecurityorigin.h:
3614
3615 2009-08-19  Aaron Boodman  <aa@chromium.org>
3616
3617         Reviewed by David Levin.
3618
3619         https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
3620         specify a more granular policy for cross-origin XHR access.
3621
3622         * Api/qwebsecurityorigin.cpp: Add API to manipulate origin access whitelists.
3623         (QWebSecurityOrigin::whiteListAccessFromOrigin): Ditto.
3624         (QWebSecurityOrigin::resetOriginAccessWhiteLists): Ditto.
3625         * Api/qwebsecurityorigin.h: Ditto.
3626
3627 2009-08-18  Markus Goetz <Markus.Goetz@nokia.com>
3628
3629         Reviwed by Ariya Hidayat.
3630
3631         [Qt] For prefecthDNS, the pre-fetching has to be enabled in the
3632         WebSettings.
3633
3634         * Api/qwebsettings.cpp:
3635         (QWebSettings::QWebSettings):
3636         * Api/qwebsettings.h:
3637
3638 2009-08-17  Darin Adler  <darin@apple.com>
3639
3640         Try to fix Qt build again.
3641
3642         * WebCoreSupport/EditorClientQt.cpp: Move "using namespace".
3643
3644 2009-08-17  Darin Adler  <darin@apple.com>
3645
3646         Try to fix Qt build.
3647
3648         * WebCoreSupport/EditorClientQt.cpp:
3649         (WebCore::EditorClientQt::shouldShowDeleteInterface):
3650         Use getAttribute(classAttr) instead of className() function.
3651
3652 2009-08-14  Yongjun Zhang  <yongjun.zhang@nokia.com>
3653
3654         Reviewed by Simon Hausmann.
3655
3656         RVCT elftran fails to resolve QPainter::staticMetaObject coming with 
3657         QWebView::RenderHints property.
3658
3659         This is a temporary fix and will be revereted when the right symbols
3660         exported from Qt lib in S60.
3661
3662         https://bugs.webkit.org/show_bug.cgi?id=28181
3663
3664         * Api/qwebview.h:
3665
3666 2009-08-14  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3667
3668         Reviewed by Simon Hausmann.
3669
3670         [Qt] Public API to configure the storage path for HTML5 localStorage
3671         https://bugs.webkit.org/show_bug.cgi?id=28036
3672
3673         Disables LocalStorage for QtWebKit by default by setting
3674         QWebSettings::LocalStorageEnabled to false.
3675
3676         Sets up a default for the LocalStorage path so that clients would only
3677         need to enable the LocalStorageEnabled setting to turn on LocalStoragre
3678         support.
3679
3680         Turn on LocalStorage support for QtLauncher and the relevant test
3681         since LocalStorage is now disabled by default for QtWebkit.
3682
3683         * Api/qwebpage.cpp:
3684         (defaultCachePath):
3685         (initializeApplicationCachePathIfNecessary):
3686         (QWebPagePrivate::QWebPagePrivate):
3687         * Api/qwebsettings.cpp:
3688         (QWebSettingsPrivate::apply):
3689         (QWebSettings::QWebSettings):
3690         (QWebSettings::setLocalStoragePath):
3691         (QWebSettings::localStoragePath):
3692         * Api/qwebsettings.h:
3693         * QtLauncher/main.cpp:
3694         (main):
3695         * tests/qwebpage/tst_qwebpage.cpp:
3696         (tst_QWebPage::multiplePageGroupsAndLocalStorage):
3697
3698 2009-08-14  Yael Aharon  <yael.aharon@nokia.com>
3699
3700         Reviewed by Simon Hausmann.
3701
3702         [Qt] Allow applications to register their own local URL scheme.
3703         https://bugs.webkit.org/show_bug.cgi?id=28240
3704
3705         * Api/qwebsecurityorigin.cpp:
3706         (QWebSecurityOrigin::addLocalScheme):
3707         (QWebSecurityOrigin::removeLocalScheme):
3708         (QWebSecurityOrigin::localSchemes):
3709         * Api/qwebsecurityorigin.h:
3710         * tests/qwebpage/tst_qwebpage.cpp:
3711         (tst_QWebPage::localURLSchemes):
3712
3713 2009-08-13  Mark Rowe  <mrowe@apple.com>
3714
3715         Try and fix the Qt build.
3716
3717         * Api/qwebelement.cpp:
3718
3719 2009-08-13  Kavindra Devi Palaraja  <kavindra.palaraja@nokia.com>
3720
3721         Reviewed by Simon Hausmann.
3722
3723         Doc - Some cleanup on the documentation of QWebElement
3724
3725         * Api/qwebelement.cpp:
3726
3727 2009-08-13  Norbert Leser  <norbert.leser@nokia.com>
3728
3729         Reviewed by Simon Hausmann.
3730
3731         Symbian target components (library and executable files)
3732         require Unique Identifiers (i.e., UID3).
3733         These identifiers are defined in the respective project
3734         files, conditionally for "symbian" platform.
3735
3736         * QtLauncher/QtLauncher.pro:
3737         * tests/qwebelement/qwebelement.pro:
3738         * tests/qwebframe/qwebframe.pro:
3739         * tests/qwebhistory/qwebhistory.pro:
3740         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
3741         * tests/qwebpage/qwebpage.pro:
3742         * tests/qwebview/qwebview.pro:
3743
3744 2009-08-12  George Wright  <george.wright@torchmobile.com>
3745
3746         Reviewed by Adam Treat.
3747
3748         Initialise zoom levels independent of whether a URL is valid or not to
3749         fix https://bugs.webkit.org/show_bug.cgi?id=28162
3750
3751         * QtLauncher/main.cpp:
3752         (MainWindow::MainWindow):
3753
3754 2009-08-12  Joerg Bornemann  <joerg.bornemann@trolltech.com>
3755
3756         Reviewed by Simon Hausmann.
3757
3758         QtWebKit compile fix for Windows CE
3759
3760         There's no getenv on Windows CE, use qgetenv instead.
3761
3762         * Api/qwebpage.cpp:
3763         (qt_drt_overwritePluginDirectories):
3764
3765 2009-08-10  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
3766
3767         Reviewed by Simon Hausmann.
3768
3769         Various fixes and improvements to the QWebPluginInfo, QWebPluginDatabase and QWebSettings documentation.
3770
3771         * Api/qwebplugindatabase.cpp:
3772         * Api/qwebsettings.cpp:
3773
3774 2009-08-08  Volker Hilsheimer  <volker.hilsheimer@nokia.com>
3775
3776         Reviewed by Simon Hausmann.
3777
3778         Doc: there is no group of explicitly shared classes, only one class uses this.
3779
3780         Explain the implications in the QWebHistoryItem documentation, and get rid
3781         of the "group".
3782
3783         * Api/qwebhistory.cpp:
3784
3785 2009-08-05  Csaba Osztrogonac  <oszi@inf.u-szeged.hu>
3786
3787         Reviewed by Simon Hausmann.
3788
3789         [Qt] Fix build error caused by http://trac.webkit.org/changeset/46763
3790
3791         * Api/qwebpluginfactory.h: Export macro added.
3792
3793 2009-08-04  Antonio Gomes   <antonio.gomes@openbossa.org>
3794
3795         Reviewed by Simon Hausmann.
3796
3797         [Qt] QWebFrame::requestedUrl method can mis-behave in case of unhandled sslErrors.
3798         https://bugs.webkit.org/show_bug.cgi?id=27804
3799
3800         * Api/qwebframe.cpp:
3801         (QWebFrame::requestedUrl):
3802         * tests/qwebframe/tst_qwebframe.cpp:
3803
3804 2009-08-04  Simon Hausmann  <simon.hausmann@nokia.com>
3805
3806         Reviewed by Tor Arne Vestbø.
3807
3808         Rename QWebPlugin to QWebPluginInfo, as discussed on IRC.
3809
3810         * Api/qwebplugindatabase.cpp:
3811         (QWebPluginInfoPrivate::QWebPluginInfoPrivate):
3812         (QWebPluginInfo::QWebPluginInfo):
3813         (QWebPluginInfo::~QWebPluginInfo):
3814         (QWebPluginInfo::name):
3815         (QWebPluginInfo::description):
3816         (QWebPluginInfo::mimeTypes):
3817         (QWebPluginInfo::supportsMimeType):
3818         (QWebPluginInfo::path):
3819         (QWebPluginInfo::isNull):
3820         (QWebPluginInfo::setEnabled):
3821         (QWebPluginInfo::isEnabled):
3822         (QWebPluginInfo::operator==):
3823         (QWebPluginInfo::operator!=):
3824         (QWebPluginInfo::operator=):
3825         (QWebPluginDatabase::plugins):
3826         (QWebPluginDatabase::pluginForMimeType):
3827         (QWebPluginDatabase::setPreferredPluginForMimeType):
3828         * Api/qwebplugindatabase.h:
3829         * Api/qwebplugindatabase_p.h:
3830         * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
3831         (tst_QWebPluginDatabase::installedPlugins):
3832         (tst_QWebPluginDatabase::searchPaths):
3833         (tst_QWebPluginDatabase::null_data):
3834         (tst_QWebPluginDatabase::null):
3835         (tst_QWebPluginDatabase::pluginForMimeType):
3836         (tst_QWebPluginDatabase::enabled):
3837         (tst_QWebPluginDatabase::operatorequal_data):
3838         (tst_QWebPluginDatabase::operatorequal):
3839         (tst_QWebPluginDatabase::preferredPlugin):
3840
3841 2009-08-04  Simon Hausmann  <simon.hausmann@nokia.com>
3842
3843         Reviewed by Adam Treat.
3844
3845         Replace QWebPlugin::MimeType with a typedef to
3846         QWebPluginFactory::MimeType.
3847
3848         * Api/qwebplugindatabase.cpp:
3849         * Api/qwebplugindatabase.h:
3850         * Api/qwebpluginfactory.cpp:
3851         (QWebPluginFactory::MimeType::operator==):
3852         * Api/qwebpluginfactory.h:
3853
3854 2009-08-04  Jakub Wieczorek  <faw217@gmail.com>
3855
3856         Reviewed by Simon Hausmann.
3857
3858         Add QWebPluginDatabase API to the Qt API.
3859         
3860         https://bugs.webkit.org/show_bug.cgi?id=27651
3861
3862         * Api/headers.pri:
3863         * Api/qwebplugindatabase.cpp: Added.
3864         (QWebPluginPrivate::QWebPluginPrivate):
3865         (QWebPluginDatabasePrivate::QWebPluginDatabasePrivate):
3866         (QWebPlugin::MimeType::operator==):
3867         (QWebPlugin::QWebPlugin):
3868         (QWebPlugin::~QWebPlugin):
3869         (QWebPlugin::name):
3870         (QWebPlugin::description):
3871         (QWebPlugin::mimeTypes):
3872         (QWebPlugin::supportsMimeType):
3873         (QWebPlugin::path):
3874         (QWebPlugin::isNull):
3875         (QWebPlugin::setEnabled):
3876         (QWebPlugin::isEnabled):
3877         (QWebPlugin::operator==):
3878         (QWebPlugin::operator!=):
3879         (QWebPlugin::operator=):
3880         (QWebPluginDatabase::QWebPluginDatabase):
3881         (QWebPluginDatabase::~QWebPluginDatabase):
3882         (QWebPluginDatabase::plugins):
3883         (QWebPluginDatabase::defaultSearchPaths):
3884         (QWebPluginDatabase::searchPaths):
3885         (QWebPluginDatabase::setSearchPaths):
3886         (QWebPluginDatabase::addSearchPath):
3887         (QWebPluginDatabase::refresh):
3888         (QWebPluginDatabase::pluginForMimeType):
3889         (QWebPluginDatabase::setPreferredPluginForMimeType):
3890         * Api/qwebplugindatabase.h: Added.
3891         * Api/qwebplugindatabase_p.h: Added.
3892         * Api/qwebsettings.cpp:
3893         (QWebSettings::pluginDatabase):
3894         * Api/qwebsettings.h:
3895         * tests/qwebplugindatabase/qwebplugindatabase.pro: Added.
3896         * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp: Added.
3897         (tst_QWebPluginDatabase::installedPlugins):
3898         (tst_QWebPluginDatabase::searchPaths):
3899         (tst_QWebPluginDatabase::null_data):
3900         (tst_QWebPluginDatabase::null):
3901         (tst_QWebPluginDatabase::pluginForMimeType):
3902         (tst_QWebPluginDatabase::enabled):
3903         (tst_QWebPluginDatabase::operatorequal_data):
3904         (tst_QWebPluginDatabase::operatorequal):
3905         (tst_QWebPluginDatabase::preferredPlugin):
3906         * tests/tests.pro:
3907
3908 2009-08-03  Balazs Kelemen  <kelemen.balazs.3@stud.u-szeged.hu>
3909
3910         Reviewed by Simon Hausmann.
3911
3912         Do memory cleanup when running robotized QtLauncher in debug as well.
3913
3914         * QtLauncher/main.cpp:
3915         (launcherMain):
3916         (main):
3917
3918 2009-07-30  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3919
3920         Reviewed by Tor Arne Vestbø.
3921
3922         [Qt] Initialize HTML5 Application Cache for QtWebKit to a sensible default
3923         https://bugs.webkit.org/show_bug.cgi?id=27866
3924
3925         * Api/qwebpage.cpp:
3926         (initializeApplicationCachePathIfNecessary):
3927         (QWebPagePrivate::QWebPagePrivate):
3928
3929 2009-07-31  Jakob Petsovits  <jakob.petsovits@torchmobile.com>
3930
3931         Reviewed by Adam Treat.
3932
3933         Build QtWebKit without benchmark tests for Qt < 4.5.
3934         https://bugs.webkit.org/show_bug.cgi?id=27886
3935
3936         The QBENCHMARK macro is only available from 4.5 on,
3937         so builds for Qt < 4.5 shouldn't try to build those.
3938
3939         * tests/tests.pro:
3940
3941 2009-07-31  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3942
3943         Reviewed by Adam Treat.
3944
3945         Fix warning by migrating use of QString.sprintf(...) to
3946         QString.arg().arg()...
3947
3948         * WebCoreSupport/EditorClientQt.cpp:
3949         (dumpRange):
3950
3951 2009-07-31  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3952
3953         Reviewed by Tor Arne Vestbø.
3954
3955         Expose the Offline Web Application Cache in the Qt API.
3956
3957         * Api/qwebsettings.cpp:
3958         (QWebSettings::QWebSettings):
3959         (QWebSettings::setOfflineWebApplicationCachePath):
3960         (QWebSettings::offlineWebApplicationCachePath):
3961         (QWebSettings::setOfflineWebApplicationCacheQuota):
3962         (QWebSettings::offlineWebApplicationCacheQuota):
3963         * Api/qwebsettings.h:
3964
3965 2009-07-30  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3966
3967         Reviewed by Adam Treat.
3968
3969         Add missing Q_OBJECT to class inheriting from QObject.
3970
3971         * tests/qwebframe/tst_qwebframe.cpp:
3972
3973 2009-07-30  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3974
3975         Reviewed by Adam Treat.
3976
3977         Fix indentation.
3978
3979         * tests/qwebframe/tst_qwebframe.cpp:
3980
3981 2009-07-30  Volker Hilsheimer <volker.hilsheimer@nokia.com>
3982
3983         Reviewed by Simon Hausmann.
3984
3985         Fix documentation links to examples.
3986
3987         * Api/qwebview.cpp:
3988
3989 2009-07-30  Balazs Kelemen  <kelemen.balazs.3@stud.u-szeged.hu>
3990
3991         Reviewed by Simon Hausmann.
3992
3993         Allocate MainWindow on heap in robotized QtLauncher as well.
3994
3995         * QtLauncher/main.cpp:
3996         (main):
3997
3998 2009-07-29  Kevin McCullough  <kmccullough@apple.com>
3999
4000         Reviewed by Darin Adler.
4001
4002         Added foundation work to allow a testing infrastructure for the Web
4003         Inspector.
4004
4005         * WebCoreSupport/InspectorClientQt.cpp:
4006         (WebCore::InspectorClientQt::inspectorWindowObjectCleared):
4007         * WebCoreSupport/InspectorClientQt.h:
4008
4009 2009-07-29  Zoltan Herczeg  <zherczeg@inf.u-szeged.hu>
4010
4011         Reviewed by Simon Hausmann.
4012
4013         [Qt] In debug mode, this fix frees cached resources
4014         and other unreferenced objects (by calling the
4015         garbage collector) to remove the LEAK messages.
4016         https://bugs.webkit.org/show_bug.cgi?id=27767
4017
4018         * Api/qwebframe.cpp:
4019         (qt_drt_cache_clear):
4020         * QtLauncher/main.cpp:
4021         (main):
4022
4023 2009-07-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
4024
4025         Fix the Qt build by adapting to the changes of ScriptObject.
4026
4027         * Api/qwebelement.cpp:
4028         (setupScriptObject):
4029
4030 2009-07-28  Robert Hogan  <robert@roberthogan.net>
4031
4032         Reviewed by Simon Hausmann.
4033
4034         Add WebKit version API to Qt.
4035
4036         Get the current version of WebKit from WebKit/mac/Configurations/Version.xcconfig
4037         at compile time and make it available to Qt applications through
4038         qWebKitVersion().
4039
4040         Also amend the User Agent string to place the Safari clause outside
4041         the final bracket and to the end of the UA string.
4042
4043         https://bugs.webkit.org/show_bug.cgi?id=27158
4044
4045         Minor build tweak by Simon Hausmann (adding export macros to new functions).
4046
4047         * Api/headers.pri:
4048         * Api/qwebkitversion.cpp: Added.
4049         (webKitVersion):
4050         (webKitMajorVersion):
4051         (webKitMinorVersion):
4052         * Api/qwebkitversion.h: Added.
4053         * Api/qwebpage.cpp:
4054         (QWebPage::userAgentForUrl):
4055         * tests/qwebview/tst_qwebview.cpp:
4056         (tst_QWebView::getWebKitVersion):
4057
4058 2009-07-28  Simon Hausmann  <simon.hausmann@nokia.com>
4059
4060         Rubber-stamped by Ariya Hidayat.
4061
4062         Fix compilation with the precompiled header.
4063
4064         * WebKit_pch.h: Don't include JSDOMBinding.h and MathObject.h,
4065         as they include AtomicString.h. AtomicString.cpp needs to enable
4066         a #define before including AtomicString.h, which breaks if the PCH
4067         forces the inclusion beforehand.
4068
4069 2009-07-28  Ariya Hidayat  <ariya.hidayat@nokia.com>
4070
4071         Reviewed by Simon Hausmann.
4072
4073         Added tests to ensure that scroll position can be changed
4074         programmatically, even when the scroll bar policy is set to off.
4075
4076         * tests/qwebframe/tst_qwebframe.cpp:
4077
4078 2009-07-28  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
4079
4080         Reviewed by Simon Hausmann.
4081         
4082         Fix a few compilation warnings in the QWebFrame tests.
4083
4084         * tests/qwebframe/tst_qwebframe.cpp:
4085
4086 2009-07-28  Andre Pedralho  <andre.pedralho@openbossa.org>
4087
4088          Reviewed by Simon Hausmann.
4089
4090          Fixed tst_QWebFrame::hasSetFocus test which was using
4091          an undefined resource.
4092          https://bugs.webkit.org/show_bug.cgi?id=27512
4093
4094          * tests/qwebframe/tst_qwebframe.cpp:
4095
4096 2009-07-28  Simon Hausmann  <simon.hausmann@nokia.com>
4097
4098         Reviewed by Ariya Hidayat.
4099
4100         Make it possible to pass relative file names to QtLauncher.
4101
4102         * QtLauncher/main.cpp:
4103         (MainWindow::MainWindow):
4104
4105 2009-07-27  Alexey Proskuryakov  <ap@webkit.org>
4106
4107         Reviewed by Darin Adler.
4108
4109         https://bugs.webkit.org/show_bug.cgi?id=27735
4110         Give a helpful name to JSLock constructor argument
4111
4112         * Api/qwebframe.cpp:
4113         (QWebFrame::addToJavaScriptWindowObject):
4114
4115 2009-07-27  Volker Hilsheimer <volker.hilsheimer@nokia.com>
4116
4117         Reviewed by Simon Hausmann.
4118
4119         QWebView's "enabled" parameter should default to true, as with QGraphicsView and
4120         QPainter.
4121
4122         * Api/qwebview.cpp: Add reference to QPainter::renderHints().
4123         * Api/qwebview.h: Add default for enabled argument.
4124
4125 2009-07-26  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
4126
4127         Reviewed by Simon Hausmann.
4128
4129         More documentation cleanups in the QWebElement class overview.
4130
4131         * Api/qwebelement.cpp:
4132
4133 2009-07-26  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
4134
4135         Reviewed by Simon Hausmann.
4136
4137         Clean up documentation of QWebElement's findFirst and findAll functions,
4138         as well as their QWebFrame counterparts.
4139
4140         * Api/qwebelement.cpp:
4141         * Api/qwebframe.cpp:
4142
4143 2009-07-26  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
4144
4145         Reviewed by Simon Hausmann.
4146
4147         Various documentation cleanups
4148
4149         * Fixed qdoc warnings
4150         * Hide QWebNetworkInterface from the class overview
4151         * Mention QWebElement in the module overview
4152         * More cleanups
4153
4154         * Api/qwebframe.cpp:
4155         * Api/qwebnetworkinterface.cpp:
4156         * Api/qwebview.cpp:
4157         * docs/qtwebkit.qdoc:
4158
4159 2009-07-26  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
4160
4161         Reviewed by Simon Hausmann.
4162
4163         Added missing class diagram referenced from the docs, taken from the Qt
4164         documentation.
4165
4166         * docs/qtwebkit.qdocconf: Register the image directory with
4167         qdoc.
4168         * docs/qwebview-diagram.png: Added.
4169
4170 2009-07-24  Antonio Gomes   <antonio.gomes@openbossa.org>
4171
4172         Reviewed by Adam Treat.
4173
4174         As per discussion on IRC, changed originalUrl by requestedUrl.
4175
4176         * Api/qwebframe.cpp:
4177         (QWebFrame::requestedUrl):
4178         * Api/qwebframe.h:
4179         * tests/qwebframe/tst_qwebframe.cpp:
4180
4181 2009-07-24  Andre Pedralho  <andre.pedralho@openbossa.org>
4182
4183         Reviewed by Adam Treat.
4184
4185         Removed void QWebFrame::renderContents(...) and added the Q_PROPERTY
4186         clipRenderToViewport to control whether QWebFrame::render would call
4187         FrameView::paintContents rather than FrameView::paint and do not clip
4188         the frame content to viewport.
4189
4190
4191         * Api/qwebframe.cpp:
4192         (QWebFramePrivate::renderPrivate):
4193         (QWebFrame::clipRenderToViewport):
4194         (QWebFrame::setClipRenderToViewport):
4195         * Api/qwebframe.h:
4196         * Api/qwebframe_p.h:
4197         (QWebFramePrivate::QWebFramePrivate):
4198         * tests/qwebframe/tst_qwebframe.cpp:
4199
4200 2009-07-24  Antonio Gomes   <antonio.gomes@openbossa.org>
4201
4202         Reviewed by Simon Hausmann.
4203
4204         [QT] Implement originalUrl getter method to the API
4205         https://bugs.webkit.org/show_bug.cgi?id=25867
4206
4207         * Api/qwebframe.cpp:
4208         (QWebFrame::originalUrl):
4209         * Api/qwebframe.h:
4210         * tests/qwebframe/qwebframe.qrc:
4211         * tests/qwebframe/test1.html: Added.
4212         * tests/qwebframe/test2.html: Added.
4213         * tests/qwebframe/tst_qwebframe.cpp:
4214
4215 2009-07-24  Kenneth Rohde Christiansen  <kenneth@webkit.org>
4216
4217         Build fix for Qt.
4218
4219         Fix build issue introduced in 46344
4220         ([Bug 22700] ApplicationCache should have size limit)
4221
4222         Remove method only added to the Qt ChromeClient.
4223
4224         * WebCoreSupport/ChromeClientQt.h:
4225
4226 2009-07-24  Andrei Popescu  <andreip@google.com>
4227
4228         Reviewed by Anders Carlsson.
4229
4230         ApplicationCache should have size limit
4231         https://bugs.webkit.org/show_bug.cgi?id=22700
4232
4233         * WebCoreSupport/ChromeClientQt.cpp:
4234         (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
4235         Adds empty implementation of the reachedMaxAppCacheSize callback.
4236         * WebCoreSupport/ChromeClientQt.h:
4237
4238 2009-07-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
4239
4240         Reviewed by Simon Hausmann.
4241
4242         [Qt] Add simple proxy support for QtLauncher
4243         https://bugs.webkit.org/show_bug.cgi?id=27495
4244
4245         Picks up proxy settings from the http_proxy environment
4246         variable.
4247
4248         * QtLauncher/QtLauncher.pro: Add QtNetwork dependency for all 
4249         platforms.
4250         * QtLauncher/main.cpp:
4251         (MainWindow::MainWindow):
4252
4253 2009-07-23  Simon Hausmann  <simon.hausmann@nokia.com>
4254
4255         Reviewed by Holger Freyther.
4256
4257         Added a testcase to verify that cached methods in the QOBject bindings
4258         remain alife even after garbage collection.
4259
4260         * tests/qwebpage/tst_qwebpage.cpp:
4261         (tst_QWebPage::protectBindingsRuntimeObjectsFromCollector):
4262
4263 2009-07-23  Zoltan Herczeg  <zherczeg@inf.u-szeged.hu>
4264
4265         Reviewed by Simon Hausmann.
4266
4267         Fixing two issues related to QtLauncher
4268           - MainWindow objects are not always freed after close
4269           - JavaScript window.close() sometimes crashes
4270         https://bugs.webkit.org/show_bug.cgi?id=27601
4271
4272         * QtLauncher/main.cpp:
4273         (MainWindow::MainWindow):
4274         (main):
4275
4276 2009-07-21  Volker Hilsheimer <volker.hilsheimer@nokia.com>
4277
4278         Reviewed by Simon Hausmann.
4279
4280         Various improvements to the API documentation.
4281
4282         * Updated link to W3c Database spec
4283         * Formatting fixes, cleanups
4284         * Add missing \since 4.6 tags to QWebPage::frameAt
4285         * Extend QWebDatabase and QWebSecurityOrigin docs.
4286
4287         * Api/qwebdatabase.cpp: 
4288         * Api/qwebpage.cpp:
4289         * Api/qwebsecurityorigin.cpp:
4290         * Api/qwebview.cpp:
4291
4292 2009-07-21  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
4293
4294         Rubber-stamped by Simon Hausmann.
4295
4296         Remove preliminary-tag from QWebElement
4297
4298         * Api/qwebelement.cpp:
4299
4300 2009-07-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
4301
4302         Reviewed by Eric Seidel.
4303
4304         Fix Qt code to follow the WebKit Coding Style.
4305
4306         * Api/qcookiejar.cpp:
4307         (QCookieJar::setCookieJar):
4308         (QCookieJar::cookieJar):
4309         * Api/qcookiejar.h:
4310         * Api/qwebdatabase.cpp:
4311         (QWebDatabase::QWebDatabase):
4312         (QWebDatabase::removeDatabase):
4313         * Api/qwebdatabase.h:
4314         * Api/qwebdatabase_p.h:
4315         * Api/qwebelement.h:
4316         * Api/qwebframe.cpp:
4317         (QWebFrame::title):
4318         (QWebFrame::print):
4319         * Api/qwebframe.h:
4320         * Api/qwebframe_p.h:
4321         * Api/qwebhistory.cpp:
4322         (QWebHistory::clear):
4323         * Api/qwebhistory.h:
4324         * Api/qwebhistory_p.h:
4325         * Api/qwebhistoryinterface.cpp:
4326         (gCleanupInterface):
4327         (QWebHistoryInterface::setDefaultInterface):
4328         (QWebHistoryInterface::defaultInterface):
4329         (QWebHistoryInterface::QWebHistoryInterface):
4330         * Api/qwebhistoryinterface.h:
4331         * Api/qwebnetworkinterface.cpp:
4332         (QWebNetworkManager::started):
4333         (QWebNetworkManager::finished):
4334         (QWebNetworkInterfacePrivate::parseDataUrl):
4335         (QWebNetworkInterface::addJob):
4336         (WebCoreHttp::onResponseHeaderReceived):
4337         (WebCoreHttp::onReadyRead):
4338         * Api/qwebnetworkinterface.h:
4339         * Api/qwebnetworkinterface_p.h:
4340         * Api/qwebpage.cpp:
4341         (QWebPagePrivate::editorCommandForWebActions):
4342         (QWebPagePrivate::createContextMenu):
4343         (QWebPagePrivate::focusInEvent):
4344         (QWebPage::fixedContentsSize):
4345         (QWebPage::setContentEditable):
4346         (QWebPage::swallowContextMenuEvent):
4347         (QWebPage::findText):
4348         * Api/qwebpage.h:
4349         * Api/qwebpage_p.h:
4350         * Api/qwebpluginfactory.h:
4351         * Api/qwebsecurityorigin.h:
4352         * Api/qwebsecurityorigin_p.h:
4353         * Api/qwebsettings.cpp:
4354         (QWebSettingsPrivate::QWebSettingsPrivate):
4355         (QWebSettingsPrivate::apply):
4356         (QWebSettings::globalSettings):
4357         (QWebSettings::QWebSettings):
4358         (QWebSettings::fontSize):
4359         (QWebSettings::setUserStyleSheetUrl):
4360         (QWebSettings::setDefaultTextEncoding):
4361         (QWebSettings::setIconDatabasePath):
4362         (QWebSettings::iconDatabasePath):
4363         (QWebSettings::iconForUrl):
4364         (QWebSettings::setWebGraphic):
4365         (QWebSettings::setFontFamily):
4366         (QWebSettings::fontFamily):
4367         (QWebSettings::testAttribute):
4368         (qt_websettings_setLocalStorageDatabasePath):
4369         * Api/qwebsettings.h:
4370         * Api/qwebview.cpp:
4371         (QWebView::setPage):
4372         (QWebView::event):
4373         * Api/qwebview.h:
4374
4375 2009-07-20  Holger Hans Peter Freyther  <zecke@selfish.org>
4376
4377         Reviewed by Simon Hausmann.
4378
4379         [Qt] Add test for loading webpages...
4380
4381         Performance test for loading webpages. Wait for the loadFinished
4382         signal to be fired. This should include a non empty layout.
4383
4384         * tests/benchmarks/loading/tst_loading.cpp: Added.
4385         (waitForSignal):
4386         (tst_Loading::init):
4387         (tst_Loading::cleanup):
4388         (tst_Loading::load_data):
4389         (tst_Loading::load):
4390         * tests/benchmarks/loading/tst_loading.pro: Added.
4391         * tests/tests.pro:
4392
4393 2009-07-20  Holger Hans Peter Freyther  <zecke@selfish.org>
4394
4395         Reviewed by Simon Hausmann.
4396
4397         [Qt] Add a test case for drawing a simple viewrect to a QPixmap
4398
4399         * tests/benchmarks/painting/tst_painting.cpp: Added.
4400         (waitForSignal):
4401         (tst_Painting::init):
4402         (tst_Painting::cleanup):
4403         (tst_Painting::paint_data):
4404         (tst_Painting::paint):
4405         * tests/benchmarks/painting/tst_painting.pro: Added.
4406         * tests/tests.pro:
4407
4408 2009-07-20  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
4409
4410         Reviewed by Holger Freyther.
4411
4412         [Qt] Add an option for QtLauncher to build without QtUiTools dependency
4413         https://bugs.webkit.org/show_bug.cgi?id=27438
4414
4415         Based on Norbert Leser's work.
4416
4417         * QtLauncher/main.cpp:
4418         (WebPage::createPlugin):
4419
4420 2009-07-17  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
4421
4422         Reviewed by Adam Treat.
4423
4424         Coding style fixes.
4425
4426         * Api/qcookiejar.cpp:
4427         (QCookieJarPrivate::QCookieJarPrivate):
4428         (qHash):
4429         (QCookieJar::cookieJar):
4430         * Api/qwebelement.cpp:
4431         (QWebElement::functions):
4432         (QWebElement::scriptableProperties):
4433         * Api/qwebframe.cpp:
4434         (QWebFrame::metaData):
4435         (QWebFrame::scrollBarValue):
4436         (QWebFrame::scroll):
4437         (QWebFrame::scrollPosition):
4438         (QWebFrame::print):
4439         * Api/qwebnetworkinterface.cpp:
4440         (decodePercentEncoding):
4441         (QWebNetworkRequestPrivate::init):
4442         (QWebNetworkRequestPrivate::setURL):
4443         (QWebNetworkRequest::QWebNetworkRequest):
4444         (QWebNetworkRequest::operator=):
4445         (QWebNetworkRequest::setUrl):
4446         (QWebNetworkRequest::setHttpHeader):
4447         (QWebNetworkRequest::httpHeaderField):
4448         (QWebNetworkRequest::setHttpHeaderField):
4449         (QWebNetworkRequest::setPostData):
4450         (QWebNetworkJob::setResponse):
4451         (QWebNetworkJob::frame):
4452         (QWebNetworkManager::add):
4453         (QWebNetworkManager::cancel):
4454         (QWebNetworkManager::started):
4455         (QWebNetworkManager::data):
4456         (QWebNetworkManager::finished):
4457         (QWebNetworkManager::addHttpJob):
4458         (QWebNetworkManager::cancelHttpJob):
4459         (QWebNetworkManager::httpConnectionClosed):
4460         (QWebNetworkInterfacePrivate::sendFileData):
4461         (QWebNetworkInterfacePrivate::parseDataUrl):
4462         (QWebNetworkManager::doWork):
4463         (QWebNetworkInterface::setDefaultInterface):
4464         (QWebNetworkInterface::defaultInterface):
4465         (QWebNetworkInterface::QWebNetworkInterface):
4466         (QWebNetworkInterface::addJob):
4467         (QWebNetworkInterface::cancelJob):
4468         (WebCoreHttp::WebCoreHttp):
4469         (WebCoreHttp::request):
4470         (WebCoreHttp::scheduleNextRequest):
4471         (WebCoreHttp::getConnection):
4472         (WebCoreHttp::onResponseHeaderReceived):
4473         (WebCoreHttp::onReadyRead):
4474         (WebCoreHttp::onRequestFinished):
4475         (WebCoreHttp::onAuthenticationRequired):
4476         (WebCoreHttp::onProxyAuthenticationRequired):
4477         * Api/qwebpage.cpp:
4478         (QWebPagePrivate::QWebPagePrivate):
4479         (QWebPagePrivate::mouseReleaseEvent):
4480         (QWebPagePrivate::inputMethodEvent):
4481         (QWebPagePrivate::shortcutOverrideEvent):
4482         (QWebPage::inputMethodQuery):
4483         (QWebPage::javaScriptPrompt):
4484         (QWebPage::updatePositionDependentActions):
4485         (QWebPage::userAgentForUrl):
4486         (QWebPagePrivate::_q_onLoadProgressChanged):
4487         (QWebPage::totalBytes):
4488         (QWebPage::bytesReceived):
4489         * Api/qwebsettings.cpp:
4490         (QWebSettings::iconForUrl):
4491         (QWebSettings::setObjectCacheCapacities):
4492         * Api/qwebview.cpp:
4493         (QWebView::paintEvent):
4494         (QWebView::changeEvent):
4495
4496 2009-07-17  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
4497
4498         Reviewed by Simon Hausmann.
4499
4500         Overwrite the plugin directories for the DRT.
4501         Part of https://bugs.webkit.org/show_bug.cgi?id=27215
4502
4503         * Api/qwebpage.cpp:
4504         (qt_drt_overwritePluginDirectories): Only set the plugin directories
4505         to the ones in the QTWEBKIT_PLUGIN_PATH environment variable.
4506
4507 2009-07-16  Xiaomei Ji  <xji@chromium.org>
4508
4509         Reviewed by Dan Bernstein.
4510
4511         This is the 2nd part of fixing "RTL: tooltip does not get its directionlity from its element's."
4512         https://bugs.webkit.org/show_bug.cgi?id=24187 
4513
4514         Add one extra parameter to the callee of HitTestResult::title() due to the signature change.
4515
4516         * Api/qwebframe.cpp:
4517         (QWebHitTestResultPrivate::QWebHitTestResultPrivate): Add direction as a parameter to the callee of HitTestResult::title().
4518         * WebCoreSupport/ChromeClientQt.cpp:
4519         (WebCore::ChromeClientQt::mouseDidMoveOverElement): Add direction as a parameter to the callee of HitTestResult::title().
4520
4521 2009-07-16  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
4522
4523         Reviewed by Adam Treat.
4524
4525         Add new action to qwebpage to reload without cache.
4526
4527         * Api/qwebpage.cpp:
4528         (QWebPagePrivate::updateAction):
4529         (QWebPagePrivate::updateNavigationActions):
4530         (QWebPage::triggerAction):
4531         * Api/qwebpage.h:
4532
4533 2009-07-16  Xiaomei Ji  <xji@chromium.org>
4534
4535         Reviewed by Darin Adler.
4536
4537         Fix tooltip does not get its directionality from its element's directionality.
4538         https://bugs.webkit.org/show_bug.cgi?id=24187
4539
4540         Per mitz's suggestion in comment #6, while getting the plain-text 
4541         title, we also get the directionality of the title. How to handle 
4542         the directionality is up to clients. Clients could ignore it, 
4543         or use attribute or unicode control characters to display the title
4544         as what they want.
4545
4546
4547         * WebCoreSupport/ChromeClientQt.cpp:
4548         (WebCore::ChromeClientQt::setToolTip): Add directionality as 2nd parameter to setToopTip() (without handling it yet).
4549         * WebCoreSupport/ChromeClientQt.h: Add directionality as 2nd parameter to setToolTip().
4550
4551 2009-07-15  Yael Aharon  <yael.aharon@nokia.com>
4552
4553         Reviewed by Simon Hausmann.
4554
4555         https://bugs.webkit.org/show_bug.cgi?id=27285
4556
4557         When the user clicks a link with a target attribute, the newly created window should be visible.
4558         Make new windows created in Qtlauncher visible.
4559
4560         * QtLauncher/main.cpp:
4561         (WebPage::createWindow):
4562
4563 2009-07-14  Adam Treat  <adam.treat@torchmobile.com>
4564
4565         Reviewed by Zack Rusin.
4566
4567         https://bugs.webkit.org/show_bug.cgi?id=26983
4568
4569         The default constructed values for QSize and WebCore::IntSize are different.  The former
4570         produces an invalid size whereas the latter produces a size of zero.  This was causing
4571         a layout to be triggered when constructing a view and an assert to be hit.  This patch fixes
4572         the crash by taking care not to cause an unnecessary layout triggered by ScrollView::setFixedLayoutSize.
4573
4574         * WebCoreSupport/FrameLoaderClientQt.cpp:
4575         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
4576
4577 2009-07-13  Simon Hausmann  <simon.hausmann@nokia.com>
4578
4579         Reviewed by Ariya Hidayat.
4580
4581         Fix qdoc warnings for QWebPage::shouldInterruptJavaScript() and mention
4582         how to re-implement it.
4583
4584         * Api/qwebpage.cpp:
4585
4586 2009-07-13  Simon Hausmann  <hausmann@webkit.org>
4587
4588         Reviewed by Ariya Hidayat.
4589
4590         Fix crash with plugins when the plugin stream is cancelled.
4591
4592         Similar to r26667 handle the case where didReceiveResponse on the
4593         plugin view results in failure to set up the stream and
4594         setMainDocumentError being called instead. This will set the
4595         m_pluginView back to 0 and we need check for it before calling
4596         didReceiveData.
4597
4598         This was triggered by consecutive execution of
4599         LayoutTests/plugins/return-error-from-new-stream-callback-in-full-frame-plugin.html
4600         followed by LayoutTests/scrollbars/scrollbar-crash-on-refresh.html
4601
4602         * WebCoreSupport/FrameLoaderClientQt.cpp:
4603         (WebCore::FrameLoaderClientQt::committedLoad):
4604
4605 2009-07-13  Simon Hausmann  <hausmann@webkit.org>
4606
4607         Reviewed by Ariya Hidayat.
4608
4609         Added QWebDatabase::removeAllDatabases, as a way to delete all
4610         databases from the offline storage path.
4611
4612         Used by the Qt DRT.
4613
4614         * Api/qwebdatabase.cpp:
4615         (QWebDatabase::removeAllDatabases):
4616         * Api/qwebdatabase.h:
4617
4618 2009-07-13  Simon Hausmann  <hausmann@webkit.org>
4619
4620         Reviewed by Ariya Hidayat.
4621
4622         Added loadStarted() and loadFinished() signals to QWebFrame,
4623         to allow load tracking of individual frames, as opposed to
4624         QWebPage's loadStarted/loadFinished signals that are emitted
4625         whenever _any_ child frame loads/finishes.
4626
4627         * Api/qwebframe.cpp: Document new signals.
4628         * Api/qwebframe.h: Add new signals.
4629         * WebCoreSupport/FrameLoaderClientQt.cpp:
4630         (WebCore::FrameLoaderClientQt::setFrame): Connect new signals.
4631
4632 2009-07-13  Simon Hausmann  <hausmann@webkit.org>
4633
4634         Reviewed by Ariya Hidayat.
4635
4636         Add hooks for the GCController JavaScript interface needed by the
4637         Qt DRT.
4638
4639         Fixed sort order of includes in qwebframe.cpp.
4640
4641         * Api/qwebframe.cpp:
4642         (qt_drt_javaScriptObjectsCount):
4643         (qt_drt_garbageCollector_collect):
4644         (qt_drt_garbageCollector_collectOnAlternateThread):
4645
4646 2009-07-13  Simon Hausmann  <hausmann@webkit.org>
4647
4648         Reviewed by Ariya Hidayat.
4649
4650         Add hooks for the GCController JavaScript interface needed by the
4651         Qt DRT.
4652
4653         Fixed sort order of includes in qwebframe.cpp.
4654
4655         * Api/qwebframe.cpp:
4656         (qt_drt_javaScriptObjectsCount):
4657         (qt_drt_garbageCollector_collect):
4658         (qt_drt_garbageCollector_collectOnAlternateThread):
4659
4660 2009-07-12  Brent Fulgham  <bfulgham@gmail.com>
4661
4662         Speculative build fix after http://trac.webkit.org/changeset/45786.
4663
4664         * WebCoreSupport/ChromeClientQt.cpp:
4665         (WebCore::ChromeClientQt::addMessageToConsole):
4666         * WebCoreSupport/ChromeClientQt.h:
4667
4668 2009-07-10  Yael Aharon  <yael.aharon@nokia.com>
4669
4670         Reviewed by Holger Freyther.
4671
4672         https://bugs.webkit.org/show_bug.cgi?id=27136
4673
4674         Fix a bug where webkit hangs when executing infinite JavaScript loop.
4675
4676         * Api/qwebpage.cpp:
4677         (QWebPage::shouldInterruptJavaScript):
4678         * Api/qwebpage.h:
4679         * WebCoreSupport/ChromeClientQt.cpp:
4680         (WebCore::ChromeClientQt::shouldInterruptJavaScript):
4681         * tests/qwebpage/tst_qwebpage.cpp:
4682         (JSTestPage::JSTestPage):
4683         (JSTestPage::shouldInterruptJavaScript):
4684         (tst_QWebPage::infiniteLoopJS):
4685
4686 2009-07-10  Simon Hausmann  <simon.hausmann@nokia.com>
4687
4688         Reviewed by Holger Freyther.
4689
4690         https://bugs.webkit.org/show_bug.cgi?id=27108
4691
4692         Fix crash when in frame tree of a new frame before the new frame
4693         has been installed in the frame tree, similar to r35088.
4694
4695         After calling Frame::init() the frame it may have been removed from the
4696         frame tree again through JavaScript. Detect this by checking the page()
4697         afterwards.
4698
4699         To make this check safe the Frame::init() code was moved into
4700         QWebFrameData's constructor, where a RefPtr holds a reference to the frame.
4701         After the check back in FrameLoaderClientQt we would hold the single
4702         reference left and after release() the frame, its frame loader, its
4703         client as well as the QWebFrame should have disappeared then.
4704
4705         * Api/qwebframe.cpp:
4706         (QWebFramePrivate::init): Only call Frame::init here, the rest is
4707         done in QWebFrameData's constructor.
4708         (QWebFrame::QWebFrame):
4709         * Api/qwebframe_p.h: Adjust declaration.
4710         (QWebFrameData::QWebFrameData): Create the Frame here.
4711         * Api/qwebpage.cpp:
4712         (QWebPagePrivate::createMainFrame): Adjust and simplify
4713         to new QWebFrame constructor.
4714         * WebCoreSupport/FrameLoaderClientQt.cpp:
4715         (WebCore::FrameLoaderClientQt::createFrame): Adjust to
4716         new QWebFrame construction using QWebFrameData and add the
4717         check like in r35088.
4718
4719 2009-07-09  Beth Dakin  <bdakin@apple.com>
4720
4721         Reviewed by Dave Hyatt.
4722
4723         Make Widget RefCounted to fix:
4724
4725         <rdar://problem/7038831> REGRESSION (TOT): In Mail, a crash occurs 
4726         at WebCore::Widget::afterMouseDown() after clicking To Do's close 
4727         box
4728         <rdar://problem/6978804> WER #16: Repro Access Violation in 
4729         WebCore::PluginView::bindingInstance (1310178023)
4730         -and-
4731         <rdar://problem/6991251> WER #13: Crash in WebKit!
4732         WebCore::PluginView::performRequest+203 (1311461169) 
4733
4734         * WebCoreSupport/FrameLoaderClientQt.cpp:
4735         (WebCore::FrameLoaderClientQt::createPlugin):
4736         (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
4737         * WebCoreSupport/FrameLoaderClientQt.h:
4738
4739 2009-07-08  Pradeepto Bhattacharya  <pradeepto@kde.org>
4740
4741         Reviewed by Ariya Hidayat.
4742
4743         Build fix.
4744
4745         * WebCoreSupport/FrameLoaderClientQt.h: Removed the slot slotCallPolicyFunction().
4746
4747 2009-07-08  Simon Hausmann  <hausmann@webkit.org>
4748
4749         Reviewed by Tor Arne Vestbø.
4750
4751         https://bugs.webkit.org/show_bug.cgi?id=27080
4752
4753         Fix DRT instability issues with fast/loader/submit-form-while-parsing-2.html
4754
4755         When the form is submitted we call the policy function in the frame
4756         loader delayed with a queued connection. That queued connection
4757         sometimes interferes with the javascript timeout set in the testcase.
4758
4759         Eliminate the entire delayed policy function mechanism and instead always
4760         call back directly, like in the other ports. In most other places we called
4761         the slot directly anyway.
4762
4763         * WebCoreSupport/FrameLoaderClientQt.cpp:
4764         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Remove m_policyFunction.
4765         (WebCore::FrameLoaderClientQt::callPolicyFunction): Call the policy function directly instead
4766         of emitting the queued signal.
4767         (WebCore::FrameLoaderClientQt::cancelPolicyCheck): Call callPolicyFunction directly.
4768         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): Ditto.
4769         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): Ditto.
4770         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): Ditto.
4771         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): Ditto.
4772         * WebCoreSupport/FrameLoaderClientQt.h: Remove m_policyFunction as well as the associated
4773         signal.
4774
4775 2009-07-07  Simon Hausmann  <hausmann@webkit.org>
4776
4777         Reviewed by Holger Freyther.
4778
4779         Add Qt DRT hook for clearing the frame name.
4780
4781         * Api/qwebframe.cpp:
4782         (qt_drt_clearFrameName):
4783
4784 2009-07-05  Simon Hausmann  <hausmann@webkit.org>
4785
4786         Reviewed by Holger Freyther.
4787
4788         Fix two qdoc warnings.
4789
4790         Added missing \property for QWebFrame::hasFocus and added \a
4791         tag for pos of QWebPage::frameAt.
4792
4793         * Api/qwebframe.cpp:
4794         * Api/qwebpage.cpp:
4795
4796 2009-07-04  Holger Hans Peter Freyther  <zecke@selfish.org>
4797
4798         Reviewed by Simon Hausmann.
4799
4800         Use the recently introduced FocusController::setFocused
4801
4802         Use the recently introduced FocusController::setFocused
4803         in the Qt platform. The SelectionController will be updated
4804         from within the FocusController now.
4805
4806         * Api/qwebpage.cpp:
4807         (QWebPagePrivate::focusInEvent):
4808         (QWebPagePrivate::focusOutEvent):
4809
4810 2009-07-02  Simon Hausmann  <simon.hausmann@nokia.com>
4811
4812         Reviewed by Ariya Hidayat.
4813
4814         Improve documentation of QWebFrame::setFocus and hasFocus()
4815         Added missing Q_PROPERTY for QWebFrame::hasFocus.
4816
4817         * Api/qwebframe.cpp: Clarify the docs.
4818         * Api/qwebframe.h: add Q_PROPERTY(focus).
4819
4820 2009-07-02  Joe Ligman  <joseph.ligman@nokia.com>
4821
4822         Reviewed by Simon Hausmann.
4823
4824         Bug 26855: [Qt] New methods for QWebFrame to check and set focus.
4825
4826         Added new public methods QWebFrame::hasFocus() and QWebFrame::setFocus()
4827         Added auto test.
4828
4829         * Api/qwebframe.cpp:
4830         (QWebFrame::hasFocus):
4831         (QWebFrame::setFocus):
4832         * Api/qwebframe.h:
4833         * tests/qwebframe/tst_qwebframe.cpp:
4834
4835 2009-07-01  Robert Hogan <robert@roberthogan.net>
4836
4837         Reviewed by NOBODY.
4838         
4839         Fix Qt segfault when javascript disabled.
4840         If clients call addToJavaScriptWindowObject even though JavascriptEnabled is false
4841         webkit will segfault on the assert:
4842           ASSERTION FAILED: _rootObject
4843           (../../../WebCore/bridge/runtime.cpp:52
4844           JSC::Bindings::Instance::Instance(WTF::PassRefPtr<JSC::Bindings::RootObject>))
4845         Fix is to ensure JavaScript is enabled when client calls addToJavaScriptWindowObject.
4846
4847         https://bugs.webkit.org/show_bug.cgi?id=26906
4848
4849         * Api/qwebframe.cpp:
4850         (QWebFrame::addToJavaScriptWindowObject):
4851
4852 2009-07-01  Jakub Wieczorek  <faw217@gmail.com>
4853
4854         Reviewed by Simon Hausmann.
4855
4856         [Qt] Move some API headers from WebCore.pro to headers.pri so that they
4857         get installed when running make install from the build directory.
4858
4859         * Api/headers.pri:
4860
4861 2009-07-01  Balazs Kelemen  <kelemen.balazs.3@stud.u-szeged.hu>
4862
4863         Reviewed by Simon Hausmann.
4864
4865         Fixed robotized QtLauncher to work when there is no index.html in the user's home.
4866
4867         * QtLauncher/main.cpp:
4868         (main):
4869
4870 2009-06-30  Brian Weinstein  <bweinstein@apple.com>
4871
4872         Reviewed by Adam Roben.
4873         
4874         Renamed scrollbarUnderPoint to scrollbarAtPoint to follow conventions.
4875
4876         * Api/qwebpage.cpp:
4877         (QWebPage::swallowContextMenuEvent):
4878
4879 2009-06-30  Joe Ligman  <joseph.ligman@nokia.com>
4880
4881         Reviewed by Adam Treat.
4882
4883         Bug 26422: [Qt] QWebPagePrivate::frameAt calculates wrong frame
4884
4885         Added a public method QWebPage::frameAt
4886         Removed QWebPagePrivate::frameAt, which calcuated the wrong frame
4887         Modified QWebPage::swallowContextMenuEvent to use the new frameAt method
4888         New test case for frameAt added to tst_qwebpage.cpp
4889
4890         * Api/qwebpage.cpp:
4891         (QWebPage::frameAt):
4892         (QWebPage::swallowContextMenuEvent):
4893         * Api/qwebpage.h:
4894         * Api/qwebpage_p.h:
4895         * tests/qwebpage/frametest/iframe.html: Added.
4896         * tests/qwebpage/frametest/iframe2.html: Added.
4897         * tests/qwebpage/frametest/iframe3.html: Added.
4898         * tests/qwebpage/tst_qwebpage.cpp:
4899         (frameAtHelper):
4900         (tst_QWebPage::frameAt):
4901         * tests/qwebpage/tst_qwebpage.qrc:
4902
4903 2009-06-30  Jakub Wieczorek  <faw217@gmail.com>
4904
4905         Reviewed by Simon Hausmann.
4906
4907         Add QWebFrame::baseUrl() function that exposes the base URL of a frame.
4908         Autotests included.
4909
4910         * Api/qwebframe.cpp:
4911         (QWebFrame::baseUrl):
4912         * Api/qwebframe.h:
4913         * tests/qwebframe/tst_qwebframe.cpp:
4914
4915 2009-06-29  Simon Hausmann  <simon.hausmann@nokia.com>
4916
4917         Fix the Qt build, add missing isSpeaking() implementation to
4918         ContextMenuClient.
4919
4920         * WebCoreSupport/ContextMenuClientQt.cpp:
4921         (WebCore::ContextMenuClientQt::isSpeaking):
4922         * WebCoreSupport/ContextMenuClientQt.h:
4923
4924 2009-06-28  Sriram Yadavalli  <sriram.yadavalli@nokia.com>
4925
4926         Reviewed by Eric Seidel.
4927
4928         [Qt] Fix build break for Qt
4929         https://bugs.webkit.org/show_bug.cgi?id=26779
4930
4931         * Api/qwebpage.cpp:
4932         (QWebPage::swallowContextMenuEvent):
4933
4934 2009-06-27  Simon Hausmann  <simon.hausmann@nokia.com>
4935
4936         Build fix for Qt under Windows.
4937
4938         * Api/qwebhistory.h: Use consistent export linkage for the datastream operators.
4939
4940 2009-06-26  Brian Weinstein  <bweinstein@apple.com>
4941
4942         Reviewed by Simon Fraser.
4943         
4944         Changed call of scrollbarUnderMouse to scrollbarUnderPoint to match new API.
4945
4946         * Api/qwebpage.cpp:
4947         (QWebPage::swallowContextMenuEvent):
4948
4949 2009-06-26  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
4950
4951         Reviewed by Simon Hausmann.
4952
4953         Add support for saving and loading of QWebHistory to and from a QByteArray.
4954
4955         This includes streaming operators for QWebHistory. for convenience.
4956
4957         New autotests that test QWebHistory and QWebHistoryItem serialization.
4958
4959         * Api/qwebhistory.cpp:
4960         (QWebHistory::restoreState):
4961         (QWebHistory::saveState):
4962         (operator<<):
4963         (operator>>):
4964         * Api/qwebhistory.h:
4965         * Api/qwebhistory_p.h:
4966         * tests/qwebhistory/tst_qwebhistory.cpp:
4967         (tst_QWebHistory::):
4968         (tst_QWebHistory::init):
4969         (tst_QWebHistory::title):
4970         (tst_QWebHistory::count):
4971         (tst_QWebHistory::back):
4972         (tst_QWebHistory::forward):
4973         (tst_QWebHistory::itemAt):
4974         (tst_QWebHistory::goToItem):
4975         (tst_QWebHistory::items):
4976         (tst_QWebHistory::serialize_1):
4977         (tst_QWebHistory::serialize_2):
4978         (tst_QWebHistory::serialize_3):
4979         (tst_QWebHistory::saveAndRestore_1):
4980         (tst_QWebHistory::saveAndRestore_2):
4981         (tst_QWebHistory::saveAndRestore_3):
4982
4983 2009-06-26  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
4984
4985         Reviewed by Simon Hausmann.
4986
4987         Fix the behaviour of QWebHistory::itemAt to interpret the specified index as absolute index.
4988
4989         Returns an invalid QWebHistoryItem if the index is out of range.
4990
4991         * Api/qwebhistory.cpp:
4992         (QWebHistory::itemAt):
4993         * tests/qwebhistory/tst_qwebhistory.cpp:
4994         (tst_QWebHistory::itemAt):
4995
4996 2009-06-26  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
4997
4998         Reviewed by Simon Hausmann.
4999
5000         Added a few autotest to QWebHistory.
5001
5002         * tests/qwebhistory/data/page1.html: Added.
5003         * tests/qwebhistory/data/page2.html: Added.
5004         * tests/qwebhistory/data/page3.html: Added.
5005         * tests/qwebhistory/data/page4.html: Added.
5006         * tests/qwebhistory/data/page5.html: Added.
5007         * tests/qwebhistory/data/page6.html: Added.
5008         * tests/qwebhistory/qwebhistory.pro: Added.
5009         * tests/qwebhistory/tst_qwebhistory.cpp: Added.
5010         (tst_QWebHistory::):
5011         (tst_QWebHistory::tst_QWebHistory):
5012         (tst_QWebHistory::~tst_QWebHistory):
5013         (tst_QWebHistory::init):
5014         (tst_QWebHistory::cleanup):
5015         (tst_QWebHistory::title):
5016         (tst_QWebHistory::count):
5017         (tst_QWebHistory::back):
5018         (tst_QWebHistory::forward):
5019         (tst_QWebHistory::goToItem):
5020         (tst_QWebHistory::items):
5021         * tests/qwebhistory/tst_qwebhistory.qrc: Added.
5022         * tests/tests.pro:
5023
5024 2009-06-26  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
5025
5026         Reviewed by Simon Hausmann.
5027
5028         Fix support for documenting functions prefixed with QWEBKIT_EXPORT
5029
5030         Add QWEBKIT_EXPORT to the list of macros to ignore by qdoc.
5031
5032         * docs/qtwebkit.qdocconf:
5033
5034 2009-06-26  Yongjun Zhang  <yongjun.zhang@nokia.com>
5035
5036         Reviewed by Eric Seidel.
5037
5038         Bug 20303: [Qt] Key events are not working in frames.
5039
5040         Send scrolling events to current focused frame, bubble the event
5041         up to parent frame if it is not handled.  Use EventHandler's new
5042         shared scrolling code.
5043
5044         * Api/qwebpage.cpp:
5045         (QWebPagePrivate::keyPressEvent):
5046         (QWebPagePrivate::handleScrolling):
5047         * Api/qwebpage_p.h:
5048
5049 2009-06-25  Jakub Wieczorek  <faw217@gmail.com>
5050
5051         Reviewed by Adam Treat.
5052
5053         Add highlight functionality to the QWebPage::findText() method. Introduced is
5054         new HighlightAllOccurrences flag which passed to the function will make it mark
5055         all existing occurrences of specified string in the page.
5056
5057         * Api/qwebpage.cpp:
5058         (QWebPage::findText):
5059         * Api/qwebpage.h:
5060         * Api/qwebview.cpp:
5061
5062 2009-06-19  Daniel Teske <qt-info@nokia.com>
5063
5064         Reviewed by Simon Hausmann.
5065
5066         Remove warnings for QString() constructions from const char *
5067
5068         By explicitly wrapping it with QLatin1String() / QLatin1Char()
5069
5070         * Api/qwebelement.cpp:
5071         (QWebElement::classes): Use QLatin1String.
5072         (QWebElement::addClass): Ditto.
5073         (QWebElement::removeClass): Ditto.
5074         (QWebElement::toggleClass): Ditto.
5075
5076 2009-06-18  Friedemann Kleint  <Friedemann.Kleint@nokia.com>
5077
5078         Reviewed by Simon Hausmann.
5079
5080         Fixed MinGW compilation.
5081
5082         * Api/qwebelement.cpp:
5083         (QWebElement::evaluateScript):
5084
5085 2009-06-18  Markus Goetz <Markus.Goetz@nokia.com>
5086
5087         Reviewed by Simon Hausman.
5088
5089         Clarify in docs how to compile with debug information.
5090
5091         * docs/qtwebkit.qdoc:
5092
5093 2009-06-17  Markus Goetz <Markus.Goetz@nokia.com>
5094
5095         Reviewed by Simon Hausmann.
5096
5097         QWebPage: Don't call supportsSsl()
5098
5099         This stops QWebPage from loading the OpenSSL libs,
5100         certificates etc. when they are not needed for the non-HTTPS case.
5101
5102         Loading the SSL libraries can be a very slow operation.
5103
5104         * Api/qwebpage.cpp:
5105         (QWebPage::userAgentForUrl):
5106
5107 2009-06-16  David Boddie  <dboddie@trolltech.com>
5108
5109         Reviewed by Simon Hausmann.
5110
5111         Doc: Fixed QWebPage::forwardUnsupportedContent documentation and added
5112         more information about Web plugins.
5113
5114         * Api/qwebpage.cpp:
5115         * Api/qwebsettings.cpp:
5116         * docs/qtwebkit.qdoc:
5117
5118 2009-06-16  Morten Engvoldsen  <morten.engvoldsen@nokia.com>
5119
5120         Reviewed by Ariya Hidayat.
5121
5122         Clearifying QWebFrame docs
5123
5124         Adding docs to toHtml() and toPlainText()
5125
5126         * Api/qwebframe.cpp:
5127
5128 2009-06-15  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
5129
5130         Reviewed by Adam Treat.
5131
5132         Support the back/forward/stop/refresh multimedia keys and accept the
5133         event when handling backspace and shift backspace as we should.
5134
5135         * Api/qwebpage.cpp:
5136         (QWebPagePrivate::keyPressEvent):
5137
5138 2009-06-15  Andre Pedralho  <andre.pedralho@openbossa.org>
5139
5140         Reviewed by Adam Treat.
5141
5142         https://bugs.webkit.org/show_bug.cgi?id=26351
5143         Remove bool QWebHitTestResult::isScrollBar() const and make sure a null QWebHitTestResult is returned instead.
5144
5145         * Api/qwebframe.cpp:
5146         (QWebFrame::hitTestContent):
5147         * Api/qwebframe.h:
5148         * Api/qwebpage.cpp:
5149         (QWebPage::updatePositionDependentActions):
5150
5151 2009-06-15  Simon Hausmann  <simon.hausmann@nokia.com>
5152
5153         Reviewed by Adam Treat.
5154
5155         Fix the logic for disabling the fixed layout feature, when an invalid
5156         QSize is set.
5157
5158         * Api/qwebpage.cpp:
5159         (QWebPage::setFixedContentsSize):
5160
5161 2009-06-13  Adam Barth  <abarth@webkit.org>
5162
5163         Reviewed by Darin Fisher.
5164
5165         https://bugs.webkit.org/show_bug.cgi?id=24492
5166
5167         Move registerURLSchemeAsLocal from FrameLoader to SecurityOrigin.
5168
5169         * Api/qwebpage.cpp:
5170         (QWebPage::acceptNavigationRequest):
5171
5172 2009-06-10  Antonio Gomes   <antonio.gomes@openbossa.org>
5173
5174         Reviewed by Ariya Hidayat.
5175
5176         Documented ResolveRule and StylePriority enum values as well as their use in
5177         QWebElement::styleProperty and QWebElement::setStyleProperty methods.
5178
5179         Based on the work of Simon Hausmann.
5180
5181         * Api/qwebelement.cpp:
5182         (QWebElement::styleProperty):
5183         (QWebElement::setStyleProperty):
5184         * Api/qwebelement.h:
5185
5186 2009-06-09  Ariya Hidayat  <ariya.hidayat@nokia.com>
5187
5188         Rubber-stamped by Simon Hausmann.
5189
5190         Fix qdoc warning, function parameter string must be referred.
5191
5192         * Api/qwebview.cpp:
5193
5194 2009-06-09  Simon Hausmann  <simon.hausmann@nokia.com>
5195
5196         Reviewed by Ariya Hidayat.
5197
5198         Renamed QWebSettings::AllowUniversalAccessFromFileUrls to
5199         LocalContentCanAccessRemoteUrls, as discussed in the API review.
5200
5201         * Api/qwebsettings.cpp:
5202         (QWebSettingsPrivate::apply):
5203         (QWebSettings::QWebSettings):
5204         * Api/qwebsettings.h:
5205
5206 2009-06-09  Simon Hausmann  <simon.hausmann@nokia.com>
5207
5208         Reviewed by Ariya Hidayat.
5209
5210         Merged useFixedLayout property with fixedLayoutSize and
5211         renamed the latter to fixedContentsSize.
5212
5213         * Api/qwebpage.cpp:
5214         (QWebPage::fixedContentsSize):
5215         (QWebPage::setFixedContentsSize):
5216         * Api/qwebpage.h:
5217         * WebCoreSupport/FrameLoaderClientQt.cpp:
5218         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
5219
5220 2009-06-09  Simon Hausmann  <simon.hausmann@nokia.com>
5221
5222         Reviewed by Ariya Hidayat.
5223
5224         Renamed QWebHitTestResult::linkTarget to linkElement() and made it return
5225         a QWebElement. The link target itself is always the target DOM attribute.
5226
5227         * Api/qwebframe.cpp:
5228         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
5229         (QWebHitTestResult::linkElement):
5230         * Api/qwebframe.h:
5231         * Api/qwebframe_p.h:
5232         * tests/qwebframe/tst_qwebframe.cpp:
5233
5234 2009-06-08  Simon Hausmann  <simon.hausmann@nokia.com>
5235
5236         Reviewed by Holger Freyther.
5237
5238         Renamed QWebElement::enclosingBlock to enclosingBlockElement
5239         and changed the return type to QWebElement, as discussed in
5240         the API review. This API is more generic and through
5241         QWebElement's geometry() it is possible to retrieve the
5242         same information.
5243
5244         * Api/qwebelement.cpp:
5245         (QWebElement::QWebElement):
5246         * Api/qwebelement.h:
5247         * Api/qwebframe.cpp:
5248         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
5249         (QWebHitTestResult::enclosingBlockElement):
5250         * Api/qwebframe.h:
5251         * Api/qwebframe_p.h:
5252
5253 2009-06-05  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
5254
5255         Reviewed by Simon Hausmann.
5256
5257         [Qt] Add missing includes of config.h
5258
5259         * Api/qcookiejar.cpp:
5260         * Api/qwebnetworkinterface.cpp:
5261         * Plugins/ICOHandler.cpp:
5262         * WebCoreSupport/DragClientQt.cpp:
5263         * WebCoreSupport/EditCommandQt.cpp:
5264
5265 2009-06-03  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
5266
5267         Reviewed by Simon Hausmann.
5268
5269         Add API to make it possible to clear all memory caches used by
5270         QtWebKit.
5271
5272         * Api/qwebsettings.cpp:
5273         (QWebSettings::clearMemoryCaches):
5274         * Api/qwebsettings.h:
5275
5276 2009-06-01  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
5277
5278         Rubber-stamped by Gustavo Noronha.
5279
5280         Before guessing the url trim the string to remove whitespace added to the start/end by the user.
5281
5282         * Api/qwebview.cpp:
5283         (QWebView::guessUrlFromString):
5284         * tests/qwebview/tst_qwebview.cpp:
5285         (tst_QWebView::guessUrlFromString_data):
5286
5287 2009-06-01  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
5288
5289         Rubber-stamped by Gustavo Noronha.
5290
5291         Use QLatin1Char() to compile when QT_NO_CAST_FROM_ASCII and QT_NO_CAST_TO_ASCII is defined
5292
5293         * Api/qwebview.cpp:
5294         (QWebView::guessUrlFromString):
5295
5296 2009-06-01  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
5297
5298         Rubber-stamped by Gustavo Noronha.
5299
5300         Cleanup autotest file
5301         - use proper includes
5302         - remove useless constructor and destructor
5303         - add missing newline at the end of the file
5304
5305         * tests/qwebview/tst_qwebview.cpp:
5306
5307 2009-06-01  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
5308
5309         Rubber-stamped by Gustavo Noronha.
5310
5311         Add a missing space between two words in the documentation.
5312
5313         * Api/qwebview.cpp:
5314
5315 2009-05-26  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
5316
5317         Reviewed by Holger Freyther.
5318
5319         https://bugs.webkit.org/show_bug.cgi?id=25823
5320
5321         Add an API to generate a QUrl out of a string correcting for errors and missing information.
5322         See the API documentation for more details about the function.
5323
5324         Autotests: included
5325
5326         * Api/qwebview.cpp:
5327         (QWebView::guessUrlFromString):
5328         * Api/qwebview.h:
5329         * QtLauncher/main.cpp:
5330         (MainWindow::MainWindow):
5331         (MainWindow::changeLocation):
5332         * tests/qwebview/.gitignore: Added.
5333         * tests/qwebview/qwebview.pro:
5334         (tst_QWebView::initTestCase):
5335         (tst_QWebView::cleanupTestCase):
5336         (tst_QWebView::init):
5337         (tst_QWebView::cleanup):
5338         (tst_QWebView::guessUrlFromString_data):
5339         (tst_QWebView::guessUrlFromString):
5340
5341 2009-05-23  David Kilzer  <ddkilzer@apple.com>
5342
5343         Part 2 of 2: Bug 25495: Implement PassOwnPtr and replace uses of std::auto_ptr
5344
5345         <https://bugs.webkit.org/show_bug.cgi?id=25495>
5346
5347         Reviewed by Oliver Hunt.
5348
5349         * WebCoreSupport/ChromeClientQt.h:
5350         (WebCore::ChromeClientQt::createHTMLParserQuirks): Return a
5351         PassOwnPtr<> instead of a raw HTMLParserQuirks pointer.
5352
5353 2009-05-23  Jakob Truelsen  <antialize@gmail.com>
5354
5355         Reviewed by Holger Freyther.
5356
5357         https://bugs.webkit.org/show_bug.cgi?id=25863
5358
5359         Expose the default text encoding property to Qt.
5360
5361         * Api/qwebsettings.cpp:
5362         (QWebSettingsPrivate::apply):
5363         (QWebSettings::setDefaultTextEncoding):
5364         (QWebSettings::defaultTextEncoding):
5365         * Api/qwebsettings.h:
5366
5367 2009-05-21  Antonio Gomes   <antonio.gomes@openbossa.org>
5368
5369         Reviewed by Simon Hausmann.
5370
5371         [Qt] Additional test for resource load (CSS file) for QWebFrame.
5372
5373         * tests/qwebframe/qwebframe.qrc:
5374         * tests/qwebframe/style.css: Added.
5375         * tests/qwebframe/tst_qwebframe.cpp:
5376
5377 2009-05-22  Simon Hausmann  <simon.hausmann@nokia.com>
5378
5379         Unreviewed Qt build fix.
5380
5381         Provide dummy implementation of pure virtual EditorClient method.
5382
5383         * WebCoreSupport/EditorClientQt.cpp:
5384         (WebCore::EditorClientQt::getAutoCorrectSuggestionForMisspelledWord):
5385         * WebCoreSupport/EditorClientQt.h:
5386
5387 2009-05-20  Ariya Hidayat  <ariya.hidayat@nokia.com>
5388
5389         Reviewed by Simon Hausmann and Holger Freyther.
5390
5391         [Qt] Add renderHints property to QWebView.
5392
5393         * Api/qwebview.cpp:
5394         (QWebViewPrivate::QWebViewPrivate):
5395         (QWebView::renderHints):
5396         (QWebView::setRenderHints):
5397         (QWebView::setRenderHint):
5398         (QWebView::paintEvent):
5399         * Api/qwebview.h:
5400         * tests/qwebview/qwebview.pro: Added.
5401         * tests/qwebview/tst_qwebview.cpp: Added.
5402         (tst_QWebView::tst_QWebView):
5403         (tst_QWebView::~tst_QWebView):
5404         (tst_QWebView::init):
5405         (tst_QWebView::cleanup):
5406         (tst_QWebView::renderHints):
5407         * tests/tests.pro:
5408
5409 2009-05-20  Holger Hans Peter Freyther  <zecke@selfish.org>
5410
5411         Reviewed by Darin Adler.
5412
5413         https://bugs.webkit.org/show_bug.cgi?id=25834
5414
5415         Make ChromeClient a interface again
5416
5417         With recent additions to ChromeClient.h empty defaults were
5418         added. This is bad for porters as these changes go unnoticed
5419         and at runtime no notImplemented warning is logged and grepping
5420         for notImplemented will not show anything. Change this Client
5421         to be like the other Clients again and always have pure virtuals
5422         (but for stuff inside #ifdef PLATFORM(MAC)).
5423
5424         Update the various WebKit/* implementations to compile again.
5425
5426         * WebCoreSupport/ChromeClientQt.cpp:
5427         (WebCore::ChromeClientQt::setCursor):
5428         (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
5429         * WebCoreSupport/ChromeClientQt.h:
5430         (WebCore::ChromeClientQt::scrollRectIntoView):
5431
5432 2009-05-19  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
5433
5434         Reviewed by Simon Hausmann.
5435
5436         Fix a plugin bug in the WebKit code, similar to the one in WebCore.
5437
5438         The problem is when a non visible QtPluginWidget would show it self
5439         in a sibling frame. The problem was due to our clipping. In Qt,
5440         if setMask is set with an empty QRegion, no clipping will
5441         be performed, so in that case we hide the PluginContainer
5442
5443         * WebCoreSupport/FrameLoaderClientQt.cpp:
5444         (WebCore::):
5445
5446 2009-05-18  Zoltan Horvath <horvath.zoltan.6@stud.u-szeged.hu>
5447
5448         Reviewed by Ariya Hidayat.
5449
5450         Makes QtLauncher to accept multiple urls in command line and opens these in separate windows.
5451
5452         * QtLauncher/main.cpp:
5453         (MainWindow::newWindow):
5454         (main):
5455
5456 2009-05-14  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
5457
5458         Reviewed by Ariya Hidayat.
5459
5460         Add a comment to QWebView::iconChanged(), mentioning that you will
5461         need to set the icon database path for icons to be loaded, and thus
5462         receive the signal.
5463
5464         * Api/qwebview.cpp:
5465
5466 2009-05-14  Yael Aharon  <yael.aharon@nokia.com>
5467
5468         Reviewed by Ariya Hidayat.
5469
5470         Fix setHtml test case by adding <head> tag to the expected result. This tag is automatically added by WebKit.
5471
5472         * tests/qwebframe/tst_qwebframe.cpp:
5473
5474 2009-05-14  Yael Aharon  <yael.aharon@nokia.com>
5475
5476         Reviewed by Ariya Hidayat.
5477
5478         Add a test case for the signal urlChanged().
5479         * tests/qwebframe/tst_qwebframe.cpp:
5480
5481 2009-05-13  Yael Aharon <yael.aharon@nokia.com>
5482
5483         Reviewed by Ariya Hidayat.
5484
5485         Move emitting the signal QWebFrame::urlChanged to FrameLoaderClientQt::dispatchDidCommitLoad().
5486         This is to ensure that urlChanged() is emitted even if the frame has no title.
5487
5488         * WebCoreSupport/FrameLoaderClientQt.cpp:
5489         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
5490         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
5491
5492 2009-05-13  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
5493
5494         Rubberstamped by Ariya Hidayat.
5495
5496         Fix coding style: Add {} to contents of if, containing a for loop.
5497
5498         * Api/qwebelement.cpp:
5499         (QWebElement::styleProperty):
5500
5501 2009-05-12  Antonio Gomes   <antonio.gomes@openbossa.org>
5502
5503         Reviewed by Ariya Hidayat.
5504
5505         Fixed a possible crash @styleProperty when there is no embedded/external CSS set.
5506
5507         * Api/qwebelement.cpp:
5508         (QWebElement::styleProperty):
5509         * tests/qwebelement/tst_qwebelement.cpp:
5510         (tst_QWebElement::style):
5511
5512 2009-05-12  Antonio Gomes   <antonio.gomes@openbossa.org>
5513
5514         Reviewed by Ariya Hidayat.
5515
5516         Added external CSS test cases to QWebElement::styleProperty() method.
5517
5518         Also some ::styleProperty() tests cleanup.
5519
5520         * tests/qwebelement/tst_qwebelement.cpp:
5521         (tst_QWebElement::style):
5522
5523 2009-05-12  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
5524
5525         Reviewed by Ariya Hidayat.
5526
5527         Many methods were not considering the case of the element not having
5528         siblings or children when inserting nodes, and thus broke in some
5529         situations. This patch fixes that.
5530
5531         * Api/qwebelement.cpp:
5532         (QWebElement::prependInside):
5533         (QWebElement::appendOutside):
5534         (QWebElement::encloseWith):
5535
5536 2009-05-08  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
5537
5538         Reviewed by Ariya Hidayat.
5539
5540         Make is possible to mark a style property as important while setting
5541         it. Also support the normal CSS property syntax "!important", while
5542         accepting spaces between the ! and the important keyword.
5543
5544         * Api/qwebelement.cpp:
5545         (QWebElement::setStyleProperty):
5546         * Api/qwebelement.h:
5547         * tests/qwebelement/tst_qwebelement.cpp:
5548         (tst_QWebElement::style):
5549
5550 2009-05-08  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
5551
5552         Reviewed by Ariya Hidayat.
5553
5554         Working with Antonio Gomes.
5555
5556         Add support for finding the style property actually applied to the element.
5557
5558         * Api/qwebelement.cpp:
5559         (QWebElement::styleProperty):
5560         * Api/qwebelement.h:
5561         * tests/qwebelement/tst_qwebelement.cpp:
5562         (tst_QWebElement::style):
5563
5564 2009-05-11  Norbert Leser  <norbert.leser@nokia.com>
5565
5566         Reviewed by Darin Adler.
5567
5568         Bug 24538: class/struct mixup in forward declarations
5569         https://bugs.webkit.org/show_bug.cgi?id=24538
5570
5571         * Api/qwebpage.h:
5572
5573 2009-05-11  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
5574
5575         Reviewed by Holger Freyther.
5576
5577         Fix Qt build when ENABLE_DATABASE is turned off
5578
5579         https://bugs.webkit.org/show_bug.cgi?id=25587
5580
5581         * Api/qwebdatabase.cpp:
5582         (QWebDatabase::displayName):
5583         (QWebDatabase::expectedSize):
5584         (QWebDatabase::size):
5585         (QWebDatabase::fileName):
5586         (QWebDatabase::removeDatabase):
5587         * Api/qwebdatabase_p.h:
5588         * Api/qwebsecurityorigin.cpp:
5589         (QWebSecurityOrigin::allOrigins):
5590         (QWebSecurityOrigin::databases):
5591
5592 2009-05-05  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
5593
5594         Reviewed by Simon Hausmann.
5595
5596         Improve behaviour of the QWebElement enclose* functions, to work
5597         similar to the jQuery wrap functions. We now enclose the contents
5598         of the element in the child of the deepest descendant element
5599         within the structure of the enclose element structure given.
5600
5601         * Api/qwebelement.cpp:
5602         (findInsertionPoint):
5603         (QWebElement::encloseContentsWith):
5604         (QWebElement::encloseWith):
5605         (QWebElement::replace):
5606         * tests/qwebelement/tst_qwebelement.cpp:
5607         (tst_QWebElement::encloseContentsWith):
5608         (tst_QWebElement::encloseWith):
5609
5610 2009-05-06  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
5611
5612         Reviewed by Simon Hausmann.
5613
5614         After commit rev @43215, setHtml() without a <head> tag,
5615         automatically adds it, so update our test case to respect this.
5616
5617         * tests/qwebelement/tst_qwebelement.cpp:
5618         (tst_QWebElement::textHtml):
5619
5620 2009-05-06  Simon Hausmann  <simon.hausmann@nokia.com>
5621
5622         Unreviewed Qt build fix.
5623
5624         Dont' use ENABLE() in Qt API headers, as they are not available when building
5625         against the API.
5626
5627         * Api/qwebdatabase.h:
5628         * Api/qwebsecurityorigin.h:
5629
5630 2009-05-05  Ben Murdoch  <benm@google.com>
5631
5632         Reviewed by Eric Seidel.
5633         
5634         Add #if ENABLE(DATABASE) guards around database code so toggling ENABLE_DATABASE off does not break builds.
5635         https://bugs.webkit.org/show_bug.cgi?id=24776
5636
5637         * Api/qwebdatabase.cpp:
5638         * Api/qwebdatabase.h:
5639         * Api/qwebdatabase_p.h:
5640         * Api/qwebsecurityorigin.cpp:
5641         (QWebSecurityOrigin::databaseUsage):
5642         (QWebSecurityOrigin::databaseQuota):
5643         (QWebSecurityOrigin::setDatabaseQuota):
5644         * Api/qwebsecurityorigin.h:
5645         * WebCoreSupport/ChromeClientQt.cpp:
5646         (WebCore::ChromeClientQt::exceededDatabaseQuota):
5647         * WebCoreSupport/ChromeClientQt.h:
5648
5649 2009-05-05  Simon Hausmann  <simon.hausmann@nokia.com>
5650
5651         Reviewed by Tor Arne Vestbø.
5652
5653         Various improvements to the class documentation, including a simple snippet for QWebElement.
5654
5655         * Api/qwebelement.cpp:
5656         * Api/qwebframe.cpp:
5657         * docs/webkitsnippets/webelement/main.cpp: Added.
5658         * docs/webkitsnippets/webelement/webelement.pro: Added.
5659
5660 2009-05-05  Simon Hausmann  <simon.hausmann@nokia.com>
5661
5662         Reviewed by Ariya Hidayat.
5663
5664         Simplify variant conversion by moving the null check into
5665         convertValueToQVariant.
5666
5667         * Api/qwebframe.cpp:
5668         (QWebFrame::evaluateJavaScript): Moved null check into conversion function.
5669         * tests/qwebframe/tst_qwebframe.cpp:
5670         Added test to verify the correct conversion of null values to QVariant.
5671
5672 2009-05-01  Geoffrey Garen  <ggaren@apple.com>
5673
5674         Rubber Stamped by Sam Weinig.
5675         
5676         Renamed JSValuePtr => JSValue.
5677
5678         * Api/qwebelement.cpp:
5679         (setupScriptContext):
5680         (setupScriptObject):
5681         (QWebElement::evaluateScript):
5682         (QWebElement::functions):
5683         (QWebElement::scriptableProperty):
5684         (QWebElement::setScriptableProperty):
5685         (QWebElement::scriptableProperties):
5686
5687 2009-05-01  Pavel Feldman  <pfeldman@chromium.org>
5688
5689         Reviewed by Timothy Hatcher.
5690
5691         Add a FrameLoaderClient callback for the ResourceRetrievedByXMLHttpRequest.
5692
5693         https://bugs.webkit.org/show_bug.cgi?id=25347
5694
5695         * WebCoreSupport/FrameLoaderClientQt.cpp:
5696         (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceByXMLHttpRequest):
5697         * WebCoreSupport/FrameLoaderClientQt.h:
5698
5699 2009-04-30  David Kilzer  <ddkilzer@apple.com>
5700
5701         Provide a mechanism to create a quirks delegate for HTMLParser
5702
5703         Reviewed by David Hyatt.
5704
5705         * WebCoreSupport/ChromeClientQt.h:
5706         (WebCore::ChromeClientQt::createHTMLParserQuirks): Added.  The
5707         default implementation of this factory method returns 0.
5708
5709 2009-04-30  Ariya Hidayat  <ariya.hidayat@nokia.com>
5710
5711         Unreviewed build fix after r43072.
5712
5713         * Api/qwebframe.cpp:
5714         (qt_drt_setJavaScriptProfilingEnabled): Enclose with JAVASCRIPT_DEBUGGER.
5715
5716 2009-04-30  Ariya Hidayat  <ariya.hidayat@nokia.com>
5717
5718         Unreviewed build fix after r43063.
5719
5720         * WebCoreSupport/ChromeClientQt.cpp:
5721         (WebCore::ChromeClientQt::addMessageToConsole):
5722         * WebCoreSupport/ChromeClientQt.h:
5723
5724 2009-04-30  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
5725
5726         Reviewed by Simon Hausmann.
5727
5728         Implement encloseContentsWith and rename wrap to encloseWith.
5729
5730         Also in encloseWith, make sure that you cannot enclose with
5731         non-enclosable elements.
5732
5733         * Api/qwebelement.cpp:
5734         (QWebElement::encloseContentsWith):
5735         (QWebElement::encloseWith):
5736         * Api/qwebelement.h:
5737         * tests/qwebelement/tst_qwebelement.cpp:
5738         (tst_QWebElement::encloseContentsWith):
5739         (tst_QWebElement::encloseWith):
5740
5741 2009-04-30  Holger Hans Peter Freyther  <zecke@selfish.org>
5742
5743         Reviewed by Darin Adler.
5744
5745         The Qt API exposes a global history patch CSSStyleSelector to make API consumers work again
5746
5747         https://bugs.webkit.org/show_bug.cgi?id=20952
5748
5749         The QtWebKit port made the mistake of exposing a global history. This broke
5750         with the addition of PageGroup and LinkHash. This needs to be repaired
5751         for Qt4.5.
5752
5753         Add a function to LinkHash.cpp that is resolving a URL. Use this
5754         function from within CSSStyleSelector to forward the url to the
5755         QWebHistoryInterface API.
5756
5757         It is sad that there is a path within visitedLinkHash which is now
5758         doing a memcpy, it is sad to add a PLATFORM(QT) define to CSSStyleSelector
5759         and using QtWebKit types within WebCore is a layering violation as well.
5760
5761         PageGroup::setShouldTrackVisitedLinks is currently not enabled. For
5762         Qt4.6 a second version of the QWebHistoryInterface is going to be
5763         added which will fix things up.
5764
5765         * Api/qwebhistoryinterface.cpp:
5766         (QWebHistoryInterface::setDefaultInterface): Add note for Qt4.6
5767         * Api/qwebpage.cpp: Remove PageGroup::setShouldTrackVisitedLinks(true)
5768         (QWebPagePrivate::QWebPagePrivate):
5769         * tests/qwebhistoryinterface/qwebhistoryinterface.pro: Added unit test.
5770         * tests/qwebhistoryinterface/tst_qwebhistoryinterface.cpp: Added unit test.
5771         (tst_QWebHistoryInterface::tst_QWebHistoryInterface):
5772         (tst_QWebHistoryInterface::~tst_QWebHistoryInterface):
5773         (tst_QWebHistoryInterface::init):
5774         (tst_QWebHistoryInterface::cleanup):
5775         (FakeHistoryImplementation::addHistoryEntry):
5776         (FakeHistoryImplementation::historyContains):
5777         (tst_QWebHistoryInterface::visitedLinks): Check the Qt4.4 behaviour.
5778         * tests/tests.pro:
5779
5780 2009-04-30  Ariya Hidayat  <ariya.hidayat@nokia.com>
5781
5782         Unreviewed build fix, after r43035.
5783
5784         Temporarily use Position::deprecatedEditingOffset().
5785
5786         * Api/qwebpage.cpp:
5787         (QWebPage::inputMethodQuery):
5788
5789 2009-03-27  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
5790
5791         Reviewed by Simon Hausmann.
5792
5793         Update the page actions when a finishing loading even if the frame is
5794         not the top frame such as when browsing inside of a website with frames.
5795         https://bugs.webkit.org/show_bug.cgi?id=24890
5796
5797         * WebCoreSupport/FrameLoaderClientQt.cpp:
5798         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
5799         * tests/qwebpage/frametest/frame_a.html: Added.
5800         * tests/qwebpage/frametest/index.html: Added.
5801         * tests/qwebpage/tst_qwebpage.cpp:
5802         (tst_QWebPage::backActionUpdate):
5803
5804 2009-04-29  Ariya Hidayat  <ariya.hidayat@nokia.com>
5805
5806         Reviewed by Simon Hausmann.
5807
5808         Implement QWebElement::evaluateScript.
5809
5810         * Api/qwebelement.cpp:
5811         (setupScriptContext):
5812         (QWebElement::evaluateScript):
5813         * Api/qwebelement.h:
5814         * tests/qwebelement/tst_qwebelement.cpp:
5815         (tst_QWebElement::evaluateScript):
5816
5817 2009-04-29  Simon Hausmann  <simon.hausmann@nokia.com>
5818
5819         Reviewed by Ariya Hidayat.
5820
5821         Replaced QWebElementCollection with QList<QWebElement>.
5822
5823         * Api/qwebelement.cpp:
5824         (QWebElement::findAll):
5825         * Api/qwebelement.h:
5826         * Api/qwebframe.cpp:
5827         (QWebFrame::findAllElements):
5828         * Api/qwebframe.h:
5829         * QtLauncher/main.cpp:
5830         (MainWindow::selectElements):
5831         * tests/qwebelement/tst_qwebelement.cpp:
5832         (tst_QWebElement::simpleCollection):
5833         (tst_QWebElement::namespaceURI):
5834         (tst_QWebElement::nullSelect):
5835
5836 2009-04-28  Simon Hausmann  <simon.hausmann@nokia.com>
5837
5838         Reviewed by Tor Arne Vestbø.
5839
5840         QWebElement API changes after another round of API review:
5841
5842         * Fix argument names of findAll/findFirst
5843         * Split up toXml into innerXml and outerXml
5844         * Removed confusing toggleClass overload
5845         * Fixed casing of namespaceUri to follow QXmlStreamReader
5846         * Removed tagName from firstChild/nextSibling/etc.
5847         * Renamed append/prepend/insertAfter/insertBefore to [append|prepend][Inside|Outside]
5848         * Renamed wrapWith() back to wrap()
5849         * Made clone() const
5850         * Renamed remove() to takeFromDocument(), added removeFromDocument()
5851         * Renamed clear() to removeChildren()
5852         * Renamed scriptsFunctions/callScriptFunction to functions()/callFunction()
5853         * Renamed scriptProperty to scriptableProperty
5854
5855         * Api/qwebelement.cpp:
5856         (QWebElement::findAll):
5857         (QWebElement::findFirst):
5858         (QWebElement::setOuterXml):
5859         (QWebElement::toOuterXml):
5860         (QWebElement::setInnerXml):
5861         (QWebElement::toInnerXml):
5862         (QWebElement::namespaceUri):
5863         (QWebElement::firstChild):
5864         (QWebElement::lastChild):
5865         (QWebElement::nextSibling):
5866         (QWebElement::previousSibling):
5867         (QWebElement::callFunction):
5868         (QWebElement::functions):
5869         (QWebElement::scriptableProperty):
5870         (QWebElement::setScriptableProperty):
5871         (QWebElement::scriptableProperties):
5872         (QWebElement::appendInside):
5873         (QWebElement::prependInside):
5874         (QWebElement::prependOutside):
5875         (QWebElement::appendOutside):
5876         (QWebElement::clone):
5877         (QWebElement::takeFromDocument):
5878         (QWebElement::removeFromDocument):
5879         (QWebElement::removeChildren):
5880         (QWebElement::wrap):
5881         (QWebElement::replace):
5882         * Api/qwebelement.h:
5883         * Api/qwebframe.cpp:
5884         (QWebFrame::findAllElements):
5885         (QWebFrame::findFirstElement):
5886         * Api/qwebframe.h:
5887         * tests/qwebelement/tst_qwebelement.cpp:
5888         (tst_QWebElement::textHtml):
5889         (tst_QWebElement::classes):
5890         (tst_QWebElement::namespaceURI):
5891         (tst_QWebElement::foreachManipulation):
5892         (tst_QWebElement::callFunction):
5893         (tst_QWebElement::callFunctionSubmitForm):
5894         (tst_QWebElement::functionNames):
5895         (tst_QWebElement::properties):
5896         (tst_QWebElement::appendAndPrepend):
5897         (tst_QWebElement::insertBeforeAndAfter):
5898         (tst_QWebElement::remove):
5899         (tst_QWebElement::clear):
5900         (tst_QWebElement::replaceWith):
5901
5902 2009-04-28  Simon Hausmann  <simon.hausmann@nokia.com>
5903
5904         Reviewed by Tor Arne Vestbø.
5905
5906         Fix some qdoc warnings.
5907
5908         * Api/qwebframe.cpp: Fix links.
5909         * Api/qwebnetworkinterface.cpp: Make docs internal.
5910         * Api/qwebnetworkinterface.h: Ditto.
5911         * Api/qwebpage.cpp: Fix property name in \property.
5912
5913 2009-04-24  Simon Hausmann  <simon.hausmann@nokia.com>
5914
5915         Rubber-stamped by Ariya Hidayat.
5916
5917         Fix qdoc warning about link to QAction::isEnabled.
5918
5919         * Api/qwebpage.cpp:
5920
5921 2009-04-24  Simon Hausmann  <simon.hausmann@nokia.com>
5922
5923         Reviewed by Ariya Hidayat.
5924
5925         Added support for generating API docs in the Qt build using "make docs"
5926
5927         Added code snippets and overview from the Qt sources references in the API docs.
5928
5929         * Api/qwebpage.cpp: Adjust paths to snippets.
5930         * Api/qwebview.cpp: Ditto.
5931         * docs/docs.pri: Added.
5932         * docs/qtwebkit.qdoc: Added.
5933         * docs/qtwebkit.qdocconf: Added.
5934         * docs/webkitsnippets/qtwebkit_build_snippet.qdoc: Added.
5935         * docs/webkitsnippets/qtwebkit_qwebview_snippet.cpp: Added.
5936         * docs/webkitsnippets/simple/main.cpp: Added.
5937         * docs/webkitsnippets/simple/simple.pro: Added.
5938         * docs/webkitsnippets/webpage/main.cpp: Added.
5939         * docs/webkitsnippets/webpage/webpage.pro: Added.
5940
5941 2009-04-23  Antonio Gomes   <antonio.gomes@openbossa.org>
5942
5943         Reviewed by Ariya Hidayat.
5944
5945         [Qt] Added QWebElement::computedStyleProperty method.
5946
5947         * Api/qwebelement.cpp:
5948         (QWebElement::computedStyleProperty):
5949         * Api/qwebelement.h:
5950         * tests/qwebelement/tst_qwebelement.cpp:
5951         (tst_QWebElement::computedStyle):
5952
5953 2009-04-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
5954
5955         Rubber-stamped by Ariya Hidayat.
5956
5957         [Qt] Rename QWebElement arguments from html to markup
5958
5959         * Api/qwebelement.cpp:
5960         (QWebElement::append):
5961         (QWebElement::prepend):
5962         (QWebElement::insertBefore):
5963         (QWebElement::insertAfter):
5964         * Api/qwebelement.h:
5965
5966 2009-04-21  Antonio Gomes   <antonio.gomes@openbossa.org>
5967
5968         Reviewed by Ariya Hidayat.
5969
5970         QWebElementSelection renamed to QWebElementCollection.
5971
5972         * Api/qwebelement.cpp:
5973         (QWebElement::findAll):
5974         (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
5975         (QWebElementCollectionPrivate::create):
5976         (QWebElementCollection::QWebElementCollection):
5977         (QWebElementCollection::operator=):
5978         (QWebElementCollection::~QWebElementCollection):
5979         (QWebElementCollection::operator+):
5980         (QWebElementCollection::append):
5981         (QWebElementCollection::count):
5982         (QWebElementCollection::at):
5983         (QWebElementCollection::toList):
5984         * Api/qwebelement.h:
5985         * Api/qwebframe.cpp:
5986         (QWebFrame::findAllElements):
5987         * Api/qwebframe.h:
5988         * QtLauncher/main.cpp:
5989         (MainWindow::selectElements):
5990         * tests/qwebelement/tst_qwebelement.cpp:
5991         (tst_QWebElement::simpleCollection):
5992         (tst_QWebElement::iteration):
5993         (tst_QWebElement::emptyCollection):
5994         (tst_QWebElement::appendCollection):
5995         (tst_QWebElement::nullSelect):
5996
5997 2009-04-17  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
5998
5999         Reviewed by Simon Hausmann.
6000
6001         https://bugs.webkit.org/show_bug.cgi?id=25242
6002
6003         Remove QtCore 4.5 dependency from QWebElement test
6004
6005         * tests/qwebelement/tst_qwebelement.cpp:
6006         (tst_QWebElement::iteration): Use QList::count() instead of QList::length()
6007
6008 2009-04-16  Holger Hans Peter Freyther  <zecke@selfish.org>
6009
6010         Rubber-stamped by Simon Hausmann.
6011
6012         Make the operator== and operator!= non inline to
6013         allow looking at the d-pointer in the future.
6014
6015         * Api/qwebelement.cpp:
6016         (QWebElement::operator==):
6017         (QWebElement::operator!=):
6018         * Api/qwebelement.h:
6019
6020 2009-04-15  Antonio Gomes   <antonio.gomes@openbossa.org>
6021
6022         Reviewed by Ariya Hidayat.
6023
6024         Rename extend() method in QWebElementSelection to append().
6025
6026         * Api/qwebelement.cpp:
6027         (QWebElementSelection::append):
6028         * Api/qwebelement.h:
6029         * tests/qwebelement/tst_qwebelement.cpp:
6030         (tst_QWebElement::appendSelection):
6031
6032 2009-04-15  Antonio Gomes   <antonio.gomes@openbossa.org>
6033
6034         Reviewed by Simon Hausmann.
6035
6036         Fixed nit/typo in QWebElement documentation.
6037
6038         * Api/qwebelement.cpp:
6039
6040 2009-04-14  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
6041
6042         Reviewed by Simon Hausmann.
6043
6044         https://bugs.webkit.org/show_bug.cgi?id=24841
6045
6046         Fix linking against QtWebKit for Symbian and other platforms
6047         where the OS ABI distinguishes between an import or an export situation.
6048
6049         * Api/qwebkitglobal.h: Instead of white-listing Win, remove the test.
6050
6051 2009-04-14  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
6052
6053         Reviewed by Tor Arne Vestbø.
6054
6055         Rename QWebElement::setHtml and html to setXml and toXml respectivily.
6056         
6057         Also add a mean to define the scope (inner or other).
6058
6059         * Api/qwebelement.cpp:
6060         (QWebElement::setXml):
6061         (QWebElement::toXml):
6062         * Api/qwebelement.h:
6063         * tests/qwebelement/tst_qwebelement.cpp:
6064         (tst_QWebElement::textHtml):
6065         (tst_QWebElement::foreachManipulation):
6066
6067 2009-04-14  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
6068
6069         Reviewed by Tor Arne Vestbø.
6070
6071         Rename QWebElement::setText() and text() to ::setPlainText and
6072         ::toPlainText, respectively.
6073
6074         * Api/qwebelement.cpp:
6075         (QWebElement::setPlainText):
6076         (QWebElement::toPlainText):
6077         * Api/qwebelement.h:
6078         * tests/qwebelement/tst_qwebelement.cpp:
6079         (tst_QWebElement::textHtml):
6080         (tst_QWebElement::simpleSelection):
6081         (tst_QWebElement::appendAndPrepend):
6082         (tst_QWebElement::insertBeforeAndAfter):
6083         (tst_QWebElement::replaceWith):
6084         (tst_QWebElement::wrap):
6085         (tst_QWebElement::firstChildNextSiblingWithTag):
6086         (tst_QWebElement::lastChildPreviousSiblingWithTag):
6087
6088 2009-04-06  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
6089
6090         Reviewed by Simon Hausmann.
6091
6092         [Qt] Rename DOM API select function to findFirst, findAll, etc.
6093
6094         * Api/qwebelement.cpp:
6095         (QWebElement::findAll):
6096         (QWebElement::findFirst):
6097         * Api/qwebelement.h:
6098         * Api/qwebframe.cpp:
6099         (QWebFrame::findAllElements):
6100         (QWebFrame::findFirstElement):
6101         * Api/qwebframe.h:
6102         * QtLauncher/main.cpp:
6103         (MainWindow::selectElements):
6104         * tests/qwebelement/tst_qwebelement.cpp:
6105         (tst_QWebElement::simpleSelection):
6106         (tst_QWebElement::attributesNS):
6107         (tst_QWebElement::classes):
6108         (tst_QWebElement::namespaceURI):
6109         (tst_QWebElement::iteration):
6110         (tst_QWebElement::foreachManipulation):
6111         (tst_QWebElement::callFunctionSubmitForm):
6112         (tst_QWebElement::documentElement):
6113         (tst_QWebElement::frame):
6114         (tst_QWebElement::style):
6115         (tst_QWebElement::extendSelection):
6116         (tst_QWebElement::properties):
6117         (tst_QWebElement::appendAndPrepend):
6118         (tst_QWebElement::insertBeforeAndAfter):
6119         (tst_QWebElement::remove):
6120         (tst_QWebElement::clear):
6121         (tst_QWebElement::replaceWith):
6122         (tst_QWebElement::wrap):
6123         (tst_QWebElement::nullSelect):
6124         (tst_QWebElement::firstChildNextSibling):
6125         (tst_QWebElement::firstChildNextSiblingWithTag):
6126         (tst_QWebElement::lastChildPreviousSibling):
6127         (tst_QWebElement::lastChildPreviousSiblingWithTag):
6128
6129 2009-04-06  Simon Hausmann  <simon.hausmann@nokia.com>
6130             Ariya Hidayat <ariya.hidayat@nokia.com>
6131             Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
6132             Genevieve Mak <gen@staikos.net>
6133
6134         Reviewed by Tor Arne Vestbø, Simon Hausmann
6135
6136         First revision of new API in the Qt port to access the DOM.
6137
6138         * Api/headers.pri: Added qwebelement.h to the API headers.
6139         * Api/qwebelement.cpp: Added.
6140         * Api/qwebelement.h: Added.
6141         * Api/qwebframe.cpp:
6142         (QWebFrame::documentElement): Added accessor for the document element.
6143         (QWebFrame::selectElements): Added convenienc query method.
6144         (QWebFrame::selectElement): Ditto.
6145         (QWebHitTestResult::element): Added accessor for underlying DOM element.
6146         * Api/qwebframe.h:
6147         * QtLauncher/main.cpp: Simple test gui for element selections.
6148         * tests/qwebelement/qwebelement.pro: Added.
6149         * tests/qwebelement/tst_qwebelement.cpp: Added.
6150         * tests/tests.pro: Added QWebElement & QWebElementSelection unit tests.
6151
6152 2009-04-02  Simon Hausmann  <simon.hausmann@nokia.com>
6153
6154         Fix the Qt build.
6155
6156         * Api/qwebpage.cpp:
6157         (QWebPage::triggerAction): Adapted code to renamed loadFrameRequest function.
6158
6159 2009-04-02  Takumi Asaki <takumi.asaki@nokia.com>
6160
6161         Reviewed by Simon Hausmann.
6162
6163         Fix pre-edit handling of text fields with input methods.
6164
6165         The input method sends an empty preeditString() if all characters of
6166         the preedit should be deleted. So inputMethodEvent() has to use
6167         preeditString() if it's empty.
6168
6169         * Api/qwebpage.cpp:
6170         (QWebPagePrivate::inputMethodEvent):
6171
6172 2009-03-30  Simon Hausmann  <simon.hausmann@nokia.com>
6173
6174         Rubber-stamped by Tor Arne Vestbø.
6175
6176         Document that setHtml/setContent loads only the html/data immediately, not external objects.
6177
6178         * Api/qwebframe.cpp:
6179         * Api/qwebview.cpp:
6180
6181 2009-03-29  Darin Adler  <darin@apple.com>
6182
6183         Try to fix Qt build.
6184
6185         * WebCoreSupport/EditorClientQt.cpp: Added include of HTMLElement.h.
6186
6187         * WebCoreSupport/FrameLoaderClientQt.cpp: Added include of FormState.h.
6188         (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
6189         Removed unneeded call to detachChildren, which is called by FrameLoader
6190         right after this.
6191         (WebCore::FrameLoaderClientQt::createFrame): Use loadURLIntoChildFrame
6192         as other platforms do in the corresponding functions.
6193
6194 2009-03-27  Erik L. Bunce  <elbunce@xendom.com>
6195
6196         Reviewed by Simon Hausmann.
6197
6198         https://bugs.webkit.org/show_bug.cgi?id=24869
6199
6200         Fixes an incorrect case in tst_qwebpage.
6201
6202         * tests/qwebpage/tst_qwebpage.cpp:
6203         (tst_QWebPage::cursorMovements):
6204
6205 2009-03-27  Erik L. Bunce  <elbunce@xendom.com>
6206
6207         Reviewed by Simon Hausmann.
6208
6209         https://bugs.webkit.org/show_bug.cgi?id=24746
6210
6211         Add new editing related QWebPage::WebActions
6212         * Clipboard: PasteAndMatchStyle
6213         * Formatting: RemoveFormat, ToggleStrikethrough, ToggleSubscript, and
6214           ToggleSuperscript
6215         * List Editing: InsertUnorderedList, InsertOrderedList, Indent, Outdent
6216         * Paragraph Justification: AlignCenter, AlignJustified, AlignLeft, AlignRight 
6217
6218         Improved selection and editing tests.
6219
6220         * Api/qwebpage.cpp:
6221         (QWebPagePrivate::updateEditorActions):
6222         (QWebPage::action):
6223         * Api/qwebpage.h:
6224         * tests/qwebpage/tst_qwebpage.cpp:
6225         (tst_QWebPage::textSelection):
6226         (tst_QWebPage::textEditing):
6227
6228 2009-03-26  Simon Hausmann  <simon.hausmann@nokia.com>
6229
6230         Rubber-stamped by Tor Arne Vestbø.
6231
6232         Fix the documentation of the QLocale usage in userAgentForUrl.
6233
6234         * Api/qwebpage.cpp:
6235
6236 2009-03-20  Erik L. Bunce  <elbunce@xendom.com>
6237
6238         Reviewed by Simon Hausmann.
6239
6240         Fix for InsertParagraphSeparator and InsertLineSeparator so that
6241         QWebPage::action() creates QActions for them. Also make sure they get
6242         updated appropriately.
6243
6244         * Api/qwebpage.cpp:
6245         (QWebPagePrivate::updateEditorActions):
6246         (QWebPage::action):
6247         * tests/qwebpage/tst_qwebpage.cpp:
6248         (tst_QWebPage::textEditing):
6249
6250 2009-03-20  Erik L. Bunce  <elbunce@xendom.com>
6251
6252         Reviewed by Tor Arne Vestbø.
6253
6254         Fix QWebPage::WebActions action states to more closely match when they are
6255         actually applicable and remove erroneous documentation.
6256
6257         * Most WebActions implemented using editor commands now use the
6258           Editor::Command::isEnabled() to control their availability.
6259         * SelectAll is always enabled (since it's editor command is).
6260         * SetTextDirection{} family of WebActions are available when canEdit() is true
6261           and not just canEditRichly().
6262
6263         Fix and clarify documentation about the availability of various web actions.
6264
6265         * Api/qwebpage.cpp:
6266         (QWebPagePrivate::updateAction):
6267         (QWebPagePrivate::updateEditorActions):
6268         * tests/qwebpage/tst_qwebpage.cpp:
6269         (tst_QWebPage::textSelection):
6270
6271 2009-03-19  Ariya Hidayat <ariya.hidayat@trolltech.com>
6272
6273         Reviewed by Simon Hausmann.
6274
6275         Fixes pedantic compilation in QtWebKit.
6276
6277         There are no semi-colons after namespace declarations.
6278
6279         * Api/qwebdatabase.h:
6280         * Api/qwebsecurityorigin.h:
6281
6282 2009-03-19  David Boddie  <dboddie@trolltech.com>
6283
6284         Reviewed by Simon Hausmann.
6285
6286         Doc: Removed obsolete warning about Flash and other plugins.
6287
6288         * Api/qwebsettings.cpp:
6289
6290 2009-03-19  Paul Olav Tvete  <paul.tvete@nokia.com>
6291
6292         Reviewed by Simon Hausmann.
6293
6294         Properly escape tooltip text
6295
6296         ManualTest: http://xkcd.com/554/
6297
6298         * WebCoreSupport/ChromeClientQt.cpp:
6299         (WebCore::ChromeClientQt::setToolTip):
6300
6301 2009-03-10  Adam Treat  <adam.treat@torchmobile.com>
6302
6303         Build fix for Qt after r41555.
6304
6305         * Api/qwebpage.cpp:
6306         (QWebPage::acceptNavigationRequest):
6307
6308 2009-03-10  Xan Lopez  <xlopez@igalia.com>
6309
6310         Build fix, no review.
6311
6312         * Api/qwebpage.cpp:
6313         (QWebPage::inputMethodQuery):
6314
6315 2009-03-07  Adam Treat  <adam.treat@torchmobile.com>
6316
6317         Reviewed by Cameron Zwarich.
6318
6319         These methods are clearly returning the wrong values as the two were
6320         returning swapped information.
6321
6322         * Api/qwebpage.cpp:
6323         (QWebPage::totalBytes):
6324         (QWebPage::bytesReceived):
6325
6326 2009-03-05  Ariya Hidayat  <ariya.hidayat@nokia.com>
6327
6328         Rubber-stamped by Simon Hausmann.
6329
6330         [Qt] NPAPI plugins are supported, adjust the API documentation.
6331
6332         * Api/qwebsettings.cpp:
6333
6334 2009-03-04  Adam Barth  <abath@webkit.org>
6335
6336         Reviewed by Alexey Proskuryakov.
6337
6338         https://bugs.webkit.org/show_bug.cgi?id=24356
6339
6340         Fix WebKit style for allowUniversalAccessFromFileURLs.
6341
6342         * Api/qwebsettings.cpp:
6343         (QWebSettingsPrivate::apply):
6344
6345 2009-03-03  Adam Barth  <abarth@webkit.org>
6346
6347         Reviewed by Alexey Proskuryakov.
6348
6349         https://bugs.webkit.org/show_bug.cgi?id=24340
6350
6351         Expose AllowUniversalAccessFromFileUrls to Qt clients.
6352
6353         * Api/qwebsettings.cpp:
6354         (QWebSettingsPrivate::apply):
6355         (QWebSettings::QWebSettings):
6356         * Api/qwebsettings.h:
6357
6358 2009-03-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
6359
6360         Rubber-stamped by Simon Hausmann.
6361
6362         [Qt] Create and update the action for SelectAll.
6363
6364         * Api/qwebpage.cpp:
6365         (QWebPagePrivate::updateAction):
6366         (QWebPagePrivate::updateEditorActions):
6367         (QWebPage::action):
6368         * tests/qwebpage/tst_qwebpage.cpp:
6369         (tst_QWebPage::textSelection):
6370
6371 2009-03-02  Adam Treat  <adam.treat@torchmobile.com>
6372
6373         Reviewed by Eric Seidel.
6374
6375         Add three new drt helper functions that enable all of the tests in
6376         LayoutTests/animation/* and LayoutTests/transitions/* to now pass.
6377
6378         * Api/qwebframe.cpp:
6379         (qt_drt_pauseAnimation):
6380         (qt_drt_pauseTransitionOfProperty):
6381         (qt_drt_numberOfActiveAnimations):
6382
6383 2009-03-02  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
6384
6385         Reviewed by George Staikos.
6386
6387         https://bugs.webkit.org/show_bug.cgi?id=21230
6388         On X11 match the behavior of Firefox and also copy the url to the
6389         clipboard selection when the action Copy Link Location is executed.
6390
6391         * Api/qwebpage.cpp:
6392         (QWebPage::triggerAction):
6393
6394 2009-02-25  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
6395
6396         Reviewed by Simon Hausmann.
6397
6398         Fix the documentation for the linkHovered signal.
6399
6400         * Api/qwebpage.cpp:
6401
6402 2009-02-23  Adam Treat  <adam.treat@torchmobile.com>
6403
6404         Reviewed by Darin Adler.
6405
6406         https://bugs.webkit.org/show_bug.cgi?id=24094
6407         Make sure to empty the cache on exit to get rid of superfluous leak messages
6408         for CachedResource's in order to keep the leak messages accurate.  This
6409         is analagous to what the Mac port is doing on application exit when all
6410         WebView's have been closed.
6411
6412         * Api/qwebpage.cpp:
6413         (QWebPagePrivate::_q_cleanupLeakMessages):
6414         (QWebPage::QWebPage):
6415         * Api/qwebpage.h:
6416         * Api/qwebpage_p.h:
6417
6418 2009-02-23  Thiago Macieira  <thiago.macieira@nokia.com>
6419
6420         Reviewed by Simon Hausmann.
6421
6422         Fix the Copyright notices in a few files
6423
6424         * WebKit_pch.h:
6425
6426 2009-02-16  Simon Hausmann  <simon.hausmann@nokia.com>
6427
6428         Reviewed by Tor Arne Vestbø.
6429
6430         Avoid loading plugins when they're disabled in the settings.
6431
6432         * WebCoreSupport/FrameLoaderClientQt.cpp:
6433         (WebCore::FrameLoaderClientQt::canShowMIMEType): Don't call into the
6434         PluginDatabase if plugins are disabled in the settings.
6435
6436 2009-02-13  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
6437
6438         Reviewed by Nikolas Zimmermann.
6439
6440         https://bugs.webkit.org/show_bug.cgi?id=23738
6441         Expose the url elements target frame string.  This is the sister function
6442         to the existing linkTargetFrame which returns the QWebFrame*.  When the
6443         linkTargetFrame is 0 it is useful to know what the target was to be.
6444
6445         * Api/qwebframe.cpp:
6446         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
6447         (QWebHitTestResult::linkTarget):
6448         * Api/qwebframe.h:
6449         * Api/qwebframe_p.h:
6450         * tests/qwebframe/tst_qwebframe.cpp:
6451
6452 2009-02-13  David Boddie  <dboddie@trolltech.com>
6453
6454         Reviewed by Simon Hausmann.
6455
6456         Removed documentation for internal functions.
6457
6458         * Api/qwebsettings.cpp:
6459
6460 2009-02-13  Martin Smith  <msmith@trolltech.com>
6461
6462         Reviewed by Simon Hausmann.
6463
6464         Corrected some minor qdoc errors.
6465
6466         * Api/qwebsettings.cpp:
6467
6468 2009-02-11  Dimitri Dupuis-latour  <dupuislatour@apple.com>
6469
6470         Stub out InspectorClientQt::hiddenPanels.
6471
6472         Reviewed by Timothy Hatcher.
6473
6474         * WebCoreSupport/InspectorClientQt.cpp:
6475         (WebCore::InspectorClientQt::hiddenPanels):
6476         * WebCoreSupport/InspectorClientQt.h:
6477
6478 2009-02-10  Karsten Heimrich  <kheimric@trolltech.com>
6479
6480         Reviewed by Simon Hausmann.
6481
6482         Fixes missing navigation/url update while clicking on anchor inside
6483         webpage.
6484
6485         * WebCoreSupport/FrameLoaderClientQt.cpp:
6486         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
6487         update and emit in case we navigate inside a webpage
6488
6489 2009-02-10  Adam Treat  <adam.treat@torchmobile.com>
6490
6491         Fix the Qt build as class Selection is now VisibleSelection.
6492
6493         * Api/qwebpage.cpp:
6494         (QWebPage::inputMethodQuery):
6495
6496 2009-02-06  Geoffrey Garen  <ggaren@apple.com>
6497
6498         Build fix.
6499
6500         * WebCoreSupport/FrameLoaderClientQt.cpp:
6501         (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks):
6502         * WebCoreSupport/FrameLoaderClientQt.h:
6503
6504 2009-02-06  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
6505
6506         Reviewed by Simon Hausmann.
6507
6508         Doc - made 2 functions internal as they are not part of the API anymore (and this fixes 2 qdoc warnings)
6509
6510         * Api/qwebsettings.cpp:
6511
6512 2009-02-06  Simon Hausmann  <simon.hausmann@nokia.com>
6513
6514         Reviewed by Tor Arne Vestbø.
6515
6516         Added an overload of QWebFrame::addToJavaScriptWindowObject that takes a QScriptEngine::ValueOwnership parameter.
6517
6518         * Api/qwebframe.cpp:
6519         (QWebFrame::addToJavaScriptWindowObject): New overload.
6520         * Api/qwebframe.h:
6521         * tests/qwebframe/tst_qwebframe.cpp: Added unit tests for ownership
6522         models.
6523
6524 2009-02-06  Aaron Boodman  <aa@chromium.org>
6525
6526         Reviewed by Holger Freyther.
6527
6528         * WebCoreSupport/FrameLoaderClientQt.cpp:
6529         (WebCore::FrameLoaderClientQt::documentElementAvailable):)
6530         Fix compile error in Qt build introduced by the below change (r40694).
6531
6532 2009-02-05  Aaron Boodman  <aa@chromium.org>
6533
6534         Reviewed by Dave Hyatt.
6535
6536         https://bugs.webkit.org/show_bug.cgi?id=23708
6537         Adds documentElementAvailable() callback to FrameLoaderClient.
6538
6539         * WebCoreSupport/FrameLoaderClientQt.cpp:
6540         (WebCore::FrameLoaderClient::documentElementAvailable):
6541         Stub out documentElementAvailable().
6542         * WebCoreSupport/FrameLoaderClientQt.h:
6543         Ditto.
6544
6545 2009-02-04  David Boddie  <dboddie@trolltech.com>
6546
6547         Reviewed by Simon Hausmann.
6548
6549         Doc: Documented the return value of the evaluateJavaScript() function.
6550
6551         * Api/qwebframe.cpp:
6552
6553 2009-02-03  Simon Hausmann  <simon.hausmann@nokia.com>
6554
6555         Reviewed by Tor Arne Vestbø.
6556
6557         Added a unit test to verify the succesful conversion from QByteArray to
6558         JSByteArray and back to QByteArray.
6559
6560         * tests/qwebframe/tst_qwebframe.cpp:
6561
6562 2009-02-02  Geoffrey Garen  <ggaren@apple.com>
6563
6564         Build fix.
6565
6566         * Api/qwebframe.cpp:
6567         (QWebFrame::QWebFrame):
6568         (QWebFrame::load):
6569         (QWebFrame::setHtml):
6570         (QWebFrame::setContent):
6571
6572 2009-02-02  Geoffrey Garen  <ggaren@apple.com>
6573
6574         Build fix.
6575
6576         * WebCoreSupport/FrameLoaderClientQt.cpp:
6577         (WebCore::FrameLoaderClientQt::createFrame):
6578
6579 2009-02-02  Geoffrey Garen  <ggaren@apple.com>
6580
6581         Reviewed by Sam Weinig.
6582
6583         Track redirects in global history.
6584
6585         Keep Qt building.
6586
6587         * WebCoreSupport/FrameLoaderClientQt.cpp:
6588         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForRedirectWithoutHistoryItem):
6589         (WebCore::FrameLoaderClientQt::createFrame):
6590         * WebCoreSupport/FrameLoaderClientQt.h:
6591
6592 2009-02-02  Anders Carlsson  <andersca@apple.com>
6593
6594         Reviewed by Dan Bernstein.
6595
6596         Update for changes to WebCore.
6597
6598         * WebCoreSupport/FrameLoaderClientQt.cpp:
6599         (WebCore::FrameLoaderClientQt::createPlugin):
6600         (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
6601         * WebCoreSupport/FrameLoaderClientQt.h:
6602
6603 2009-02-02  Adam Treat  <adam.treat@torchmobile.com>
6604
6605         Reviewed by Nikolas Zimmermann.
6606
6607         https://bugs.webkit.org/show_bug.cgi?id=23587
6608         Refactor HitTestRequest to eliminate all the ugly boolean arguments and
6609         use an enum bitflag instead.  Cleanup all the code that constructs the
6610         various HitTestRequests to make the code more readable.
6611
6612         * Api/qwebframe.cpp:
6613         (QWebFrame::hitTestContent):
6614
6615 2009-02-02  Adam Treat  <adam.treat@torchmobile.com>
6616
6617         Fix the Qt build to call forceLayout on the view instead.
6618
6619         * Api/qwebpage.cpp:
6620         (QWebPage::setFixedLayoutSize):
6621         (QWebPage::setUseFixedLayout):
6622
6623 2009-02-02  Holger Hans Peter Freyther  <zecke@selfish.org>
6624
6625         Reviewed by Darin Adler.
6626
6627         Move Frame::forceLayout, Frame::adjustPageHeight and Frame::forceLayoutWithPageWidthRange to FrameView
6628
6629         https://bugs.webkit.org/show_bug.cgi?id=23428
6630
6631         FrameView::forceLayout could be killed but the comment might
6632         contain a value over the the plain FrameView::layout...
6633
6634         Adjust the WebCore/WebKit consumers of these methods.
6635
6636         * Api/qwebpage.cpp:
6637         (QWebPage::setViewportSize):
6638         * WebCoreSupport/FrameLoaderClientQt.cpp:
6639         (WebCore::FrameLoaderClientQt::forceLayout):
6640
6641 2009-01-30  Geoffrey Garen  <ggaren@apple.com>
6642
6643         Build fix.
6644
6645         * WebCoreSupport/FrameLoaderClientQt.cpp:
6646         (WebCore::FrameLoaderClientQt::createFrame):
6647
6648 2009-01-30  Holger Hans Peter Freyther  <zecke@selfish.org>
6649
6650         Reviewed by Simon Hausmann.
6651
6652         https://bugs.webkit.org/show_bug.cgi?id=22056
6653
6654         Kill FrameLoaderClient.cpp, move the code over to Frame::createView
6655
6656         FrameLoaderClient is supposed to be an interface, move the
6657         to be shared code to Frame which is a controller and is
6658         allowed to create a FrameView.
6659
6660         * WebCoreSupport/FrameLoaderClientQt.cpp:
6661         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
6662
6663 2009-01-30  Geoffrey Garen  <ggaren@apple.com>
6664
6665         Reviewed by Sam Weinig.
6666
6667         Split "lockHistory" into "lockHistory" and "lockBackForwardList" in
6668         preparation for setting them differently during a redirect.
6669
6670         * Api/qwebpage.cpp:
6671         (QWebPage::triggerAction):
6672
6673 2009-01-30  Brady Eidson  <beidson@apple.com>
6674
6675         Reviewed by Sam Weinig
6676
6677         Remove FrameLoaderClient code that is now handled by FrameLoader itself
6678
6679         * WebCoreSupport/FrameLoaderClientQt.cpp:
6680         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
6681
6682 2009-01-30  Simon Hausmann  <simon.hausmann@nokia.com>
6683
6684         Reviewed by Tor Arne Vestbø.
6685
6686         Hide the Offline Web Application Cache path API from the public API
6687         for now.
6688
6689         * Api/qwebsettings.cpp:
6690         (qt_websettings_setOfflineWebApplicationCachePath):
6691         (qt_websettings_offlineWebApplicationCachePath):
6692         * Api/qwebsettings.h:
6693
6694 2009-01-28  Adam Treat  <adam.treat@torchmobile.com>
6695
6696         Reviewed by Nikolas Zimmermann and George Staikos.
6697
6698         https://bugs.webkit.org/show_bug.cgi?id=23557
6699         Do not clip the QWebFrame::hitTestContent method to the visible viewport
6700         and add a regression test to make sure it works.
6701
6702         * Api/qwebframe.cpp:
6703         (QWebFrame::hitTestContent):
6704         * tests/qwebframe/tst_qwebframe.cpp:
6705
6706 2009-01-28  Ariya Hidayat  <ariya.hidayat@trolltech.com>
6707
6708         Rubber-stamped by Simon Hausmann.
6709
6710         Provide default implementations of JavaScript dialog boxes like in
6711         most web browsers, i.e. indicate that is from JavaScript and show the
6712         frame URL.
6713
6714         * Api/qwebpage.cpp:
6715         (QWebPage::javaScriptAlert):
6716         (QWebPage::javaScriptConfirm):
6717         (QWebPage::javaScriptPrompt):
6718
6719 2009-01-27  Ariya Hidayat  <ariya.hidayat@trolltech.com>
6720
6721         Reviewed by Simon Hausmann.
6722
6723         http://qt.nokia.com/developer/task-tracker/index_html?id=238391&method=entry
6724
6725         [Qt] If QPainter fails to start on a QPrinter instance, do not
6726         continue printing.
6727
6728         * Api/qwebframe.cpp:
6729         (QWebFrame::print):
6730
6731 2009-01-27  Brady Eidson  <beidson@apple.com>
6732
6733         Reviewed by Dan Bernstein
6734
6735         Rework FrameLoaderClient to work on a CachedFrame basis instead of CachedPage
6736
6737         * WebCoreSupport/FrameLoaderClientQt.cpp:
6738         (WebCore::FrameLoaderClientQt::savePlatformDataToCachedFrame):
6739         (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedFrame):
6740         * WebCoreSupport/FrameLoaderClientQt.h:
6741
6742 2009-01-26  Simon Fraser  <simon.fraser@apple.com>
6743
6744         Reviewed by David Hyatt
6745         
6746         Back out r40285, because it was checked in with no bug number, no
6747         testcase, is rendering change that did not get thorough review,
6748         and broke the Mac build.
6749
6750         * Api/qwebframe.cpp:
6751         (QWebFrame::hitTestContent):
6752
6753 2009-01-26  Adam Treat  <adam.treat@torchmobile.com>
6754
6755         Reviewed by Nikolas Zimmermann.
6756
6757         Do not clip the QWebFrame::hitTestContent method to the visible viewport.
6758
6759         * Api/qwebframe.cpp:
6760         (QWebFrame::hitTestContent):
6761
6762 2009-01-26  David Boddie  <dboddie@trolltech.com>
6763
6764         Reviewed by Simon Hausmann.
6765
6766         Doc: qdoc fix for a link to a property and added a basic description of the offline caching and storage features from HTML 5.
6767
6768         * Api/qwebpage.cpp:
6769         * Api/qwebsettings.cpp:
6770
6771 2009-01-25  Urs Wolfer  <uwolfer@kde.org>
6772
6773         Reviewed by Simon Hausmann.
6774
6775         Add QWebPage::SelectAll to WebAction enum to select all content.
6776
6777         https://bugs.webkit.org/show_bug.cgi?id=22946
6778
6779         * Api/qwebpage.cpp:
6780         (QWebPagePrivate::editorActionForKeyEvent):
6781         * Api/qwebpage.h:
6782
6783 2009-01-25  David Boddie  <dboddie@trolltech.com>
6784
6785         Reviewed by Simon Hausmann.
6786
6787         Doc: Fixed the terminology used.
6788
6789         * Api/qwebpage.cpp:
6790
6791 2009-01-25  Thiago Macieira  <thiago.macieira@nokia.com>
6792
6793         Reviewed by Simon Hausmann.
6794
6795         Rename links from trolltech.com to qtsoftware.com
6796
6797         * Api/qwebpluginfactory.cpp:
6798
6799 2009-01-25  Tor Arne Vestbø  <tavestbo@trolltech.com>
6800
6801         Reviewed by Simon Hausmann.
6802
6803         Make QWebPage auto-test more robust by cleaning up generated files
6804
6805         Sometimes the auto-test may segfault, leaving behind files because the
6806         call to cleanupTestCase() never happens, so we also clean up the files
6807         at initTestCase() just to make sure we're running in a clean environment.
6808
6809         * tests/qwebpage/tst_qwebpage.cpp:
6810         (tst_QWebPage::cleanupFiles):
6811         (tst_QWebPage::initTestCase):
6812         (tst_QWebPage::cleanupTestCase):
6813
6814 2008-12-20  Urs Wolfer  <uwolfer@kde.org>
6815
6816         Reviewed by Simon Hausmann.
6817
6818         Fix: compile qwebhistory.h with pendantic comiler flag.
6819
6820         https://bugs.webkit.org/show_bug.cgi?id=22947
6821
6822         * Api/qwebhistory.h:
6823
6824 2009-01-24  Adam Treat  <adam.treat@torchmobile.com>
6825
6826         Oops, fix the Qt build.
6827
6828         * Api/qwebframe.cpp:
6829         (QWebFrame::render):
6830
6831 2009-01-24  Adam Treat  <adam.treat@torchmobile.com>
6832
6833         Reviewed by Nikolas Zimmermann.
6834
6835         Add QWebFrame::renderContents() method which allows arbitary rendering
6836         of any content region within the QWebFrame.  It also does not draw any
6837         scrollbars.
6838
6839         * Api/qwebframe.cpp:
6840         (QWebFrame::renderContents):
6841         * Api/qwebframe.h:
6842
6843 2009-01-23  Ariya Hidayat  <ariya.hidayat@trolltech.com>
6844
6845         Reviewed by Simon Hausmann.
6846
6847         Make the test more robust by taking into account the platform-specific
6848         cursor flashing time.
6849
6850         * tests/qwebframe/tst_qwebframe.cpp:
6851
6852 2009-01-20  Friedemann Kleint  <Friedemann.Kleint@nokia.com>
6853
6854         Reviewed by Simon Hausmann.
6855
6856         Fix spelling error in QWebPage
6857
6858         * Api/qwebpage.cpp:
6859         (QWebPage::action):
6860
6861 2009-01-19  Simon Hausmann  <simon.hausmann@nokia.com>
6862
6863         Reviewed by Tor Arne Vestbø.
6864
6865         Fix calling of onkeypress event handlers on input elements when pressing enter
6866         and other text insertion commands in the Qt port.
6867
6868         Similar to the win and mac ports don't execute text inserting editor
6869         commands on RawKeyDown but continue processing the event first in
6870         WebCore, i.e. also get a keypress event sent. If unhandled it will
6871         come back to EditorClientQt::handleKeyboardEvent later and we execute
6872         it then.
6873
6874         This also fixes search by pressing enter on www.trafikanten.no.
6875
6876         * Api/qwebpage.cpp:
6877         (QWebPagePrivate::editorCommandForWebActions): Make function
6878         accessible from other files.
6879         (QWebPage::triggerAction): Adjust to new function visibility.
6880         * Api/qwebpage_p.h: Ditto.
6881         * WebCoreSupport/EditorClientQt.cpp:
6882         (WebCore::EditorClientQt::handleKeyboardEvent): Don't execute
6883         text inserting commands on RawKeyPressDown.
6884
6885 2009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
6886
6887         Rubber-stamped by Simon Hausmann.
6888
6889         [Qt] Increase popup focus delay time to a sensible 500 ms.
6890
6891         * tests/qwebframe/tst_qwebframe.cpp:
6892
6893 2009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
6894
6895          Reviewed by Adam Roben.
6896
6897          [Qt] Prevent crash if plugin data is NULL.
6898
6899          * WebCoreSupport/FrameLoaderClientQt.cpp: NULL check.
6900          (WebCore::FrameLoaderClientQt::objectContentType):
6901
6902 2009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
6903
6904         Rubber-stamped by Simon Hausmann.
6905
6906         [Qt] Per-line cursor movement tests depend on platform-specific font
6907         metrics. Remove them to avoid test failures on different platforms.
6908
6909         * tests/qwebpage/tst_qwebpage.cpp:
6910         (tst_QWebPage::cursorMovements):
6911
6912 2009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
6913
6914         Rubber-stamped by Simon Hausmann.
6915
6916         http://qt.nokia.com/developer/task-tracker/index_html?id=219344&method=entry
6917
6918         [Qt] API documentation for QWebPage::WebAction enum.
6919
6920         * Api/qwebpage.cpp:
6921
6922 2009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
6923
6924         Another attempt at fixing the Qt build.
6925
6926         * Api/qwebframe.cpp:
6927         (QWebFrame::addToJavaScriptWindowObject):
6928
6929 2009-01-14  Ariya Hidayat  <ariya.hidayat@trolltech.com>
6930
6931         Reviewed by Tor Arne Vestbø.
6932
6933         [Qt] Unit tests for text selection and editing actions of QWebPage.
6934         The following are tested:
6935             - the actions are not NULL
6936             - the actions are disabled when contentEditable is false
6937             - the actions are enabled when contentEditable is true
6938
6939         * tests/qwebpage/tst_qwebpage.cpp:
6940         (tst_QWebPage::textSelection):
6941         (tst_QWebPage::textEditing):
6942
6943 2009-01-14  Simon Hausmann  <simon.hausmann@nokia.com>
6944
6945         Reviewed by Tor Arne Vestbø.
6946
6947         Fix failing assertion when pressing an extra mouse button on a
6948         QWebView.
6949
6950         Mice with more than three buttons - for example with a dedicated
6951         "back" button - can generate Qt::XButton1 or Button2.
6952         WebCore::MouseButton contains only Left, Middle and Right, so in
6953         Qt's PlatformMouseEvent we map to NoButton, resulting in a mouse
6954         press or release even with no button set. That triggers an assertion
6955         in EventTargetNode::dispatchMouseEvent requiring that either a button
6956         is set or it is just a mouse move event, which is correct.
6957
6958         In QWebPage decide not to dispatch such mouse events where we cannot
6959         map the mouse button to a WebCore::MouseButton.
6960
6961         * Api/qwebpage.cpp:
6962         (QWebPagePrivate::mousePressEvent):
6963         (QWebPagePrivate::mouseDoubleClickEvent):
6964         (QWebPagePrivate::mouseTripleClickEvent):
6965         (QWebPagePrivate::mouseReleaseEvent):
6966
6967 2009-01-14  Ariya Hidayat  <ariya.hidayat@trolltech.com>
6968
6969         Reviewed by Simon Hausmann.
6970
6971         http://qt.nokia.com/developer/task-tracker/index_html?id=241144&method=entry
6972
6973         [Qt] Create actions for text selection and editing for QWebPage.
6974         Also properly disable and enable them when contentEditable is toggled.
6975
6976         * Api/qwebpage.cpp:
6977         (QWebPagePrivate::updateAction):
6978         (QWebPagePrivate::updateEditorActions):
6979         (QWebPage::action):
6980
6981 2009-01-14  Ariya Hidayat  <ariya.hidayat@trolltech.com>
6982
6983         Reviewed by Simon Hausmann.
6984
6985         [Qt] Unit tests for cursor movements. The following are tested:
6986             - the actions are not NULL
6987             - the actions are disabled when contentEditable is false
6988             - the actions are enabled when contentEditable is true
6989             - the cursor moves properly when the actions are triggered
6990
6991         * tests/qwebpage/tst_qwebpage.cpp:
6992         (CursorTrackedPage::CursorTrackedPage):
6993         (CursorTrackedPage::selectedText):
6994         (CursorTrackedPage::selectionStartOffset):
6995         (CursorTrackedPage::selectionEndOffset):
6996         (CursorTrackedPage::isSelectionCollapsed):
6997         (tst_QWebPage::cursorMovements):
6998
6999 2009-01-08  Yongjun Zhang  <yongjun.zhang@nokia.com>
7000
7001         Reviewed by Simon Hausmann.
7002
7003         https://bugs.webkit.org/show_bug.cgi?id=23187
7004
7005         Update webview with the intersected rect.
7006
7007         In ChromeClientQt::repaint, view should be updated with the
7008         intersected rect, not the whole windowRect;
7009
7010         This generally is not a problem for normal viewport setup where
7011         viewport size is the same as the qwebview widget size.  However, if we
7012         set the viewport size smaller than qwebkit widget, we will see
7013         unwanted painting outside the viewport.
7014
7015         * WebCoreSupport/ChromeClientQt.cpp:
7016         (WebCore::ChromeClientQt::repaint):
7017
7018 2009-01-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7019
7020         Rubber-stamped by Tor Arne Vestbø.
7021
7022         [Qt] Missing piece from my previous commit:
7023         Disable and enable the cursor navigation actions when contentEditable
7024         is changed.
7025
7026         * Api/qwebpage.cpp:
7027         (QWebPagePrivate::updateEditorActions):
7028
7029 2009-01-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7030
7031         Reviewed by Tor Arne Vestbø.
7032
7033         [Qt] Create actions for cursor navigation for QWebPage. 
7034         Also properly disable and enable them when contentEditable is toggled.
7035
7036         * Api/qwebpage.cpp:
7037         (QWebPagePrivate::updateAction):
7038         (QWebPage::action):
7039
7040 2009-01-13  Simon Hausmann  <simon.hausmann@nokia.com>
7041
7042         Reviewed by Tor Arne Vestbø.
7043
7044         https://bugs.webkit.org/show_bug.cgi?id=23171
7045
7046         Based on patch by Yael Aharon  <yael.aharon@nokia.com>
7047
7048         Make the QWebSettings functions for setting the path for the local
7049         storage database private QtWebkit API, including the ability to
7050         associated a QWebPage with a named page group.
7051
7052         * Api/qwebpage.cpp:
7053         (qt_webpage_setGroupName): Added.
7054         (qt_webpage_groupName): Added.
7055         * Api/qwebpage.h:
7056         (ExtensionOption::handle): Added internal helper function.
7057         * Api/qwebsettings.cpp:
7058         (qt_websettings_setLocalStorageDatabasePath): Made private API.
7059         (qt_websettings_localStorageDatabasePath): Made private API.
7060         * Api/qwebsettings.h:
7061         * tests/qwebpage/tst_qwebpage.cpp:
7062         (tst_QWebPage::database): Small cleanup.
7063         (tst_QWebPage::multiplePageGroupsAndLocalStorage): New test for the
7064         page group handling, written by Yael.
7065
7066 2009-01-12  Tor Arne Vestbø  <tavestbo@trolltech.com>
7067
7068         Reviewed by Simon Hausmann.
7069
7070         [Qt] Ensure that we're always notified of navigation actions for local anchors
7071         
7072         FrameLoader::checkNavigationPolicy() does not notify us if the request has
7073         been checked before (which happens for local anchors), but in the case of
7074         our clients not accepting the navigation request we do want to be notified
7075         again later on, so we clear the lastCheckedRequest flag.
7076
7077         * WebCoreSupport/FrameLoaderClientQt.cpp:
7078         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
7079         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
7080
7081 2009-01-12  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7082
7083         Rubber-stamped by Tor Arne Vestbø.
7084
7085         Build fix: use qobject_cast which does not rely on RTTI. This fixes the
7086         unit test when building it with a version of Qt (e.g. Qt/Embedded)
7087         configured without RTTI.
7088
7089         * tests/qwebframe/tst_qwebframe.cpp:
7090
7091 2009-01-12  Simon Hausmann  <simon.hausmann@nokia.com>
7092
7093         Rubber-stamped by Tor Arne Vestbø.
7094
7095         When the QWebView is disabled context menus implemented in JavaScript should not pop up.
7096
7097         Just like in QWidget::event() we have to check for the disabled state and
7098         ignore context menu events.
7099
7100         * Api/qwebview.cpp:
7101
7102 2009-01-12  Simon Hausmann  <simon.hausmann@nokia.com
7103
7104         Reviewed by Tor Arne Vestbø.
7105
7106         Fix QWebView appearance when showed uninitialized without page.
7107
7108         Only set WA_OpaquePaintEvent if we have a page set that will actually
7109         paint the entire contents, otherwise the optimization does not apply
7110         as we do not have a paintEvent() implementation and Qt has to fill the
7111         view with its default background instead.
7112
7113         * Api/qwebview.cpp:
7114         (QWebView::QWebView):
7115         (QWebView::setPage):
7116
7117 2009-01-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7118
7119         Rubber-stamped by Tor Arne Vestbø.
7120
7121         Do not create a QVariant from QObject* directly, use the
7122         template-specialized function.
7123
7124         * tests/qwebframe/tst_qwebframe.cpp:
7125         (MyQObject::myOverloadedSlot):
7126
7127 2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
7128
7129         Rubber-stamped by Tor Arne Vestbø.
7130
7131         Documentation fixes, remove duplicated docs, document missing
7132         parameters and return values.
7133
7134         * Api/qwebdatabase.cpp:
7135         * Api/qwebpage.cpp:
7136
7137 2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
7138
7139         Reviewed by Tor Arne Vestbø.
7140
7141         Fix linking against QtWebKit on Windows, by defining the EXPORT macros
7142         _exactly_ the same way as in qglobal.h, depending on QT_NODLL,
7143         QT_MAKEDLL and QT_SHARED.
7144
7145         * Api/qwebkitglobal.h:
7146
7147 2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
7148
7149         Reviewed by Tor Arne Vestbø.
7150
7151         Remove qwebnetworkinterface.h from WEBKIT_API_HEADERS as it's not
7152         public Qt 4.4/4.5 API.
7153
7154         * Api/headers.pri:
7155
7156 2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
7157
7158         Unreviewed Qt build fix, remove qcookiejar.h from the API headers and
7159         therefore HEADERS. It's not part of the API and it moc shouldn't be
7160         called on it.
7161
7162         * Api/headers.pri:
7163
7164 2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
7165
7166         Rubber-stamped by Tor Arne Vestbø.
7167
7168         Remove files not present anymore from the WEBKIT_API_HEADERS variable.
7169
7170         * Api/headers.pri:
7171
7172 2009-01-08  Adam Treat  <adam.treat@torchmobile.com>
7173
7174         Reviewed by Simon Hausmann.
7175
7176         Don't set the minimumFontSize and minimumLogicalFontSize as these are
7177         just for accessibility and should be left up to the client application.
7178
7179         * Api/qwebsettings.cpp:
7180         (QWebSettings::QWebSettings):
7181
7182 2009-01-08  Kavindra Palaraja  <kdpalara@trolltech.com>
7183
7184         Reviewed by Simon Hausmann.
7185
7186         Small fixes to the API documentation, missing 4.5 tags and
7187         undocumented parameters.
7188
7189         * Api/qwebhistory.cpp:
7190         * Api/qwebpage.cpp:
7191         * Api/qwebsettings.cpp:
7192
7193 2009-01-07  Adam Treat  <adam.treat@torchmobile.com>
7194
7195         Reviewed by George Staikos.
7196
7197         Add Qt API to QWebHitTestResult::isScrollBar method
7198
7199         * Api/qwebframe.cpp:
7200         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
7201         (QWebHitTestResult::isScrollBar):
7202         * Api/qwebframe.h:
7203         * Api/qwebframe_p.h:
7204         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
7205
7206 2009-01-07  Adam Treat  <adam.treat@torchmobile.com>
7207
7208         Reviewed by George Staikos.
7209
7210         Add Qt API for QWebFrame::scrollBarGeometry method
7211
7212         * Api/qwebframe.cpp:
7213         (QWebFrame::scrollBarGeometry):
7214         * Api/qwebframe.h:
7215
7216 2009-01-07  Adam Treat  <adam.treat@torchmobile.com>
7217
7218         Reviewed by George Staikos.
7219
7220         Fix unused variable warnings
7221
7222         * tests/qwebpage/tst_qwebpage.cpp:
7223         (TestPage::createWindow):
7224
7225 2009-01-07  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7226
7227         Rubber-stamped by Simon Hausmann.
7228
7229         Qt build fix after r39670.
7230
7231         * Api/qwebframe.cpp:
7232         (QWebFrame::evaluateJavaScript):
7233
7234 2009-01-06  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7235
7236         Reviewed by Holger Freyther.
7237
7238         Allow building QtWebKit statically (within Qt).
7239
7240         http://trolltech.com/developer/task-tracker/index_html?id=211273&method=entry
7241
7242         * Api/qwebkitglobal.h:
7243
7244 2009-01-06  Adam Treat  <adam.treat@torchmobile.com>
7245
7246         Reviewed by Simon Hausmann.
7247
7248         Update the documentation to reflect when these API changes will land in
7249         upstream Qt
7250
7251         * Api/qwebframe.cpp:
7252         * Api/qwebpage.cpp:
7253
7254 2009-01-05  Adam Treat  <adam.treat@torchmobile.com>
7255
7256         Reviewed by George Staikos.
7257
7258         Add Qt API for QWebFrame::contentsSizeChanged signal
7259
7260         * Api/qwebframe.cpp:
7261         * Api/qwebframe.h:
7262         * WebCoreSupport/ChromeClientQt.cpp:
7263         (WebCore::ChromeClientQt::contentsSizeChanged):
7264         * WebCoreSupport/ChromeClientQt.h:
7265
7266 2009-01-05  Adam Treat  <adam.treat@torchmobile.com>
7267
7268         Reviewed by George Staikos.
7269
7270         Fixes QWebFrame::setScrollBarPolicy(..) to actually work.  Also happens
7271         to fix 192 layout tests that were previously failing for Qt.
7272
7273         * Api/qwebframe.cpp:
7274         (QWebFrame::setScrollBarPolicy):
7275         * WebCoreSupport/FrameLoaderClientQt.cpp:
7276         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
7277
7278 2009-01-04  Adam Treat  <adam.treat@torchmobile.com>
7279
7280         Reviewed by George Staikos.
7281
7282         Add new API to QWebHitTestResult to return a rect for the smallest enclosing
7283         block element of the hit test
7284
7285         * Api/qwebframe.cpp:
7286         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
7287         (QWebHitTestResult::enclosingBlock):
7288         * Api/qwebframe.h:
7289         * Api/qwebframe_p.h:
7290
7291 2008-12-30  Adam Treat  <adam.treat@torchmobile.com>
7292
7293         Reviewed by George Staikos.
7294
7295         Make the qt port build and work with the new fixedLayoutSize feature
7296
7297         * Api/qwebpage.cpp:
7298         (QWebPagePrivate::QWebPagePrivate):
7299         (QWebPage::fixedLayoutSize):
7300         (QWebPage::setFixedLayoutSize):
7301         (QWebPage::useFixedLayout):
7302         (QWebPage::setUseFixedLayout):
7303         * Api/qwebpage.h:
7304         * Api/qwebpage_p.h:
7305         * WebCoreSupport/FrameLoaderClientQt.cpp:
7306         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
7307
7308 2008-12-19  Jade Han <jade.han@nokia.com>
7309
7310         Reviewed by Tor Arne Vestbø.
7311
7312         [Qt] Allow conversion of JavaScript Number and Boolean types to Qt types
7313
7314         https://bugs.webkit.org/show_bug.cgi?id=22880
7315
7316         * tests/qwebframe/tst_qwebframe.cpp:
7317         (MyQObject::myInvokableWithBoolArg):
7318
7319 2008-12-18  Yael Aharon  <yael.aharon@nokia.com>
7320
7321         Reviewed by Tor Arne Vestbø.
7322
7323         When Web Inspector is launched without an associated node,
7324         call show() instead of inspect().
7325
7326         * Api/qwebpage.cpp:
7327         (QWebPage::triggerAction):
7328
7329 2008-12-18  Dan Bernstein  <mitz@apple.com>
7330
7331         Reviewed by Sam Weinig.
7332
7333         - stub out FrameLoaderClient::shouldUseCredentialStorage().
7334
7335         * WebCoreSupport/FrameLoaderClientQt.cpp:
7336         (WebCore::FrameLoaderClientQt::shouldUseCredentialStorage):
7337         * WebCoreSupport/FrameLoaderClientQt.h:
7338
7339 2008-12-18  Sam Weinig  <sam@webkit.org>
7340
7341         Reviewed by John Sullivan.
7342
7343         Stub out FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout()
7344
7345         * WebCoreSupport/FrameLoaderClientQt.cpp:
7346         (WebCore::FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout):
7347         * WebCoreSupport/FrameLoaderClientQt.h:
7348
7349 2008-12-16  Simon Hausmann  <hausmann@webkit.org>
7350
7351         Reviewed by Holger Freyther.
7352
7353         Added support for unload event counting to the Qt DRT.
7354
7355         * Api/qwebpage.cpp:
7356         (qt_drt_run): Moved function here.
7357         * Api/qwebpage_p.h: Moved drt run boolean here.
7358         * WebCoreSupport/EditorClientQt.cpp: Moved drt run boolean.
7359         (WebCore::EditorClientQt::shouldShowDeleteInterface): Use the new drt
7360         run variable.
7361         * WebCoreSupport/FrameLoaderClientQt.cpp:
7362         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): Add DRT
7363         output for unload event handler counting.
7364
7365 2008-12-15  Holger Hans Peter Freyther  <zecke@selfish.org>
7366
7367         Reviewed by Simon Hausmann.
7368
7369         Change the order of sub frame initialisation to avoid crashes
7370
7371         Add the newly created frame to the FrameTree before calling
7372         WebCore::Frame::init to not segfault on
7373         LayoutTests/fast/loader/frame-creation-removal.html.
7374
7375         * Api/qwebframe.cpp:
7376         (QWebFramePrivate::init):
7377         * WebCoreSupport/FrameLoaderClientQt.cpp:
7378         (WebCore::FrameLoaderClientQt::createFrame):
7379
7380 2008-12-15  Simon Hausmann  <hausmann@webkit.org>
7381
7382         Reviewed by Holger Freyther.
7383
7384         Implement setJavaScriptProfilingEnabled in the Qt DRT to pass fast/profiler.
7385
7386         * Api/qwebframe.cpp:
7387         (qt_drt_setJavaScriptProfilingEnabled):
7388
7389 2008-12-12  Simon Hausmann  <hausmann@webkit.org>
7390
7391         Reviewed by Tor Arne Vestbø.
7392
7393         Fix pressing return/enter not triggering any action on web sites
7394         that define event handlers, such as the JS console in the web
7395         inspector.
7396
7397         Process the key events in the DOM first and if not handled map them
7398         to editor actions.
7399
7400         * Api/qwebpage.cpp:
7401         (QWebPagePrivate::editorActionForKeyEvent): Made a class method.
7402         (QWebPagePrivate::keyPressEvent): Pass the key event first to the DOM.
7403         * WebCoreSupport/EditorClientQt.cpp:
7404         (WebCore::EditorClientQt::handleKeyboardEvent): Map the key event to
7405         actions and trigger them.
7406
7407 2008-12-12  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7408
7409         Reviewed by Simon Hausmann.
7410
7411         Create the plugin widget even though the web page has no associated
7412         view. This prevents the plugin to be uselessly constructed more than once.
7413
7414         * WebCoreSupport/FrameLoaderClientQt.cpp:
7415         (WebCore::FrameLoaderClientQt::createPlugin):
7416         * tests/qwebpage/tst_qwebpage.cpp:
7417         (tst_QWebPage::createViewlessPlugin):
7418
7419 2008-12-11  Enrico Ros  <enrico.ros@m31.com>
7420
7421         Reviewed by Simon Hausmann.
7422
7423         Fix the broken focus behavior that happened when QWebPage lost
7424         focus to a popup menu.
7425
7426         The previous code didn't notify the QWebPage at all when the
7427         focus was back in (breaking focus rects, caret blinking, ...).
7428         By the way when a popup is show, 2 FocusOut events are delivered
7429         to the QWebPage, but this doesn't seem to hurt.
7430
7431         Added a test to check popup opening, closing a lineedit blinks.
7432
7433         * Api/qwebpage.cpp:
7434         (QWebPagePrivate::focusInEvent):
7435         (QWebPagePrivate::focusOutEvent):
7436         * tests/qwebframe/tst_qwebframe.cpp:
7437         (tst_QWebFrame::):
7438
7439 2008-12-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7440
7441         Reviewed by Tor Arne Vestbø.
7442
7443         When the web page is navigated away, delete the instance
7444         of the native plugin.
7445
7446         http://trolltech.com/developer/task-tracker/index_html?id=214946&method=entry
7447
7448         * WebCoreSupport/FrameLoaderClientQt.cpp:
7449         (WebCore::):
7450         * tests/qwebpage/tst_qwebpage.cpp:
7451         (PluginTrackedPage::PluginTrackedPage):
7452         (PluginTrackedPage::createPlugin):
7453         (tst_QWebPage::destroyPlugin):
7454
7455 2008-12-11  Yael Aharon  <yael.aharon@nokia.com>
7456
7457         Reviewed by Simon Hausmann.
7458
7459         Allow applications to save and restore their state between loads.
7460
7461         * Api/qwebframe.cpp:
7462         * Api/qwebframe.h:
7463         * WebCoreSupport/FrameLoaderClientQt.cpp:
7464         (WebCore::FrameLoaderClientQt::restoreViewState):
7465         (WebCore::FrameLoaderClientQt::saveViewStateToItem):
7466         * tests/qwebpage/tst_qwebpage.cpp:
7467         (tst_QWebPage::modified):
7468
7469 2008-12-08  Tor Arne Vestbø  <tavestbo@trolltech.com>
7470
7471         Reviewed by Darin Adler and Holger Freyther.
7472
7473         Make Widget::frameRectsChanged() and overrides non-const
7474
7475         This will hopefully allow us to get rid of some of the mutables in
7476         the classes that react to the callback by changing their own state.
7477
7478         * WebCoreSupport/FrameLoaderClientQt.cpp:
7479         (WebCore::):
7480
7481 2008-12-10  Holger Hans Peter Freyther  <zecke@selfish.org>
7482
7483         Reviewed by Simon Hausmann.
7484
7485         API changes discussed with Simon Hausmann, Tor Arne
7486         Vestbø, Ariya Hidayat...
7487
7488         * Api/qwebdatabase.cpp:
7489         (QWebDatabase::fileName):
7490         (QWebDatabase::removeDatabase):
7491         * Api/qwebdatabase.h:
7492         * Api/qwebframe.cpp:
7493         (QWebFrame::scroll):
7494         (QWebFrame::scrollPosition):
7495         (QWebFrame::setScrollPosition):
7496         * Api/qwebframe.h:
7497         * Api/qwebpage.cpp:
7498         (QWebPage::setContentEditable):
7499         (QWebPage::isContentEditable):
7500         (QWebPage::extension):
7501         * Api/qwebpage.h:
7502         * Api/qwebsecurityorigin.cpp:
7503         * Api/qwebsettings.cpp:
7504         (QWebSettingsPrivate::apply):
7505         (QWebSettings::QWebSettings):
7506         * Api/qwebsettings.h:
7507         * QtLauncher/main.cpp:
7508         (MainWindow::setEditable):
7509         * WebCoreSupport/ChromeClientQt.cpp:
7510         (WebCore::ChromeClientQt::exceededDatabaseQuota):
7511         (WebCore::ChromeClientQt::runOpenPanel):
7512         * WebCoreSupport/EditorClientQt.cpp:
7513         (WebCore::EditorClientQt::isEditable):
7514         * tests/qwebpage/tst_qwebpage.cpp:
7515         (tst_QWebPage::database):
7516
7517 2008-12-09  Balazs Kelemen  <Kelemen.Balazs.3@stud.u-szeged.hu>
7518
7519         Reviewed by Simon Hausmann.
7520
7521         Extended QtLauncher so now it can load pages from an url list
7522         one by one. This can be useful for testing purposes (eq. leak hunting).
7523         The -r option activates this feature.
7524
7525         https://bugs.webkit.org/show_bug.cgi?id=20932
7526
7527         * QtLauncher/main.cpp:
7528         (MainWindow::webPage):
7529         Just a coding style repairing (* written with no space between the return type name)
7530         (MainWindow::webView):
7531         I need the webView to connect it with the URLLoader object.
7532         (URLLoader::URLLoader):
7533         (URLLoader::loadNext):
7534         (URLLoader::init):
7535         (URLLoader::getUrl):
7536         (main):
7537
7538 2008-12-10  Simon Hausmann  <hausmann@webkit.org>
7539
7540         Fix the Qt build, added const to Node* parameter after change
7541         in signature.
7542
7543         * WebCoreSupport/ChromeClientQt.h:
7544         (WebCore::ChromeClientQt::formStateDidChange):
7545
7546 2008-12-09  Brett Wilson  <brettw@chromium.org>
7547
7548         Reviewed by Dave Hyatt.
7549
7550         https://bugs.webkit.org/show_bug.cgi?id=22177
7551
7552         Add a callback on ChromeClient that the state of form elements on
7553         the page has changed. This is to allow clients implementing session
7554         saving to know when the current state is dirty.
7555
7556         * WebCoreSupport/ChromeClientQt.h:
7557         (WebCore::ChromeClientQt::formStateDidChange):
7558
7559 2008-12-09  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7560
7561         Reviewed by Simon Hausmann.
7562
7563         Fix the documentation of the localStorageDatabasePath setters/getters.
7564
7565         * Api/qwebsettings.cpp:
7566
7567 2008-12-08  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7568
7569         Reviewed by Simon Hausmann.
7570
7571         Multiple files support for the file chooser.
7572
7573         * Api/qwebpage.cpp:
7574         (QWebPage::chooseFiles):
7575         * Api/qwebpage.h:
7576         * WebCoreSupport/ChromeClientQt.cpp:
7577         (WebCore::ChromeClientQt::runOpenPanel):
7578
7579 2008-12-06  Simon Fraser  <simon.fraser@apple.com>
7580
7581         Reviewed by Dave Hyatt
7582
7583         https://bugs.webkit.org/show_bug.cgi?id=15671
7584
7585         Renderer::caretRect() is now localCaretRect(), which needs
7586         converting to absolute coordinates (taking transforms into account).
7587
7588         * Api/qwebpage.cpp:
7589         (QWebPage::inputMethodQuery):
7590
7591 2008-12-03  Tor Arne Vestbø  <tavestbo@trolltech.com>
7592
7593         Reviewed by Simon Hausmann.
7594
7595         Allow passing jsNull and jsUndefined to Qt plugins
7596
7597         Currently limited to functions with QString and QVariant arguments,
7598         and properties of these types. Both jsNull and jsUndefined ends up
7599         as default-constructed QStrings and QVariants, which means you can
7600         check for isEmpty() and isValid() in the native plugin code.
7601
7602         Based on patches by Jade Han <jade.han@nokia.com>
7603
7604         * tests/qwebframe/tst_qwebframe.cpp:
7605
7606 2008-12-02  Simon Hausmann  <hausmann@webkit.org>
7607
7608         Rubber-stamped by Tor Arne Vestbø.
7609
7610         Initial API documentation for QWebDatabase, QWebSecurityOrigin and
7611         QWebFrame::securityOrigin().
7612
7613         * Api/qwebdatabase.cpp:
7614         * Api/qwebframe.cpp:
7615         * Api/qwebsecurityorigin.cpp:
7616
7617 2008-11-27  Kent Hansen  <khansen@trolltech.com>
7618
7619         Reviewed by Simon Hausmann.
7620
7621         Added auto tests for making JavaScript bindings for Qt plugin widgets
7622         work again.
7623
7624         * tests/qwebpage/tst_qwebpage.cpp:
7625         (PluginPage::PluginPage):
7626         (PluginPage::CallInfo::CallInfo):
7627         (PluginPage::createPlugin):
7628         (tst_QWebPage::createPlugin):
7629
7630 2008-11-25  Holger Hans Peter Freyther  <zecke@selfish.org>
7631
7632         Build fix. Use WebCore::Frame::loader instead of QWebFrame
7633
7634         * WebCoreSupport/FrameLoaderClientQt.cpp:
7635         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
7636
7637 2008-11-24  Darin Fisher  <darin@chromium.org>
7638
7639         Fix bustage.
7640
7641         http://bugs.webkit.org/show_bug.cgi?id=15643
7642
7643         * WebCoreSupport/EditorClientQt.cpp:
7644         (WebCore::EditorClientQt::isSelectTrailingWhitespaceEnabled):
7645         * WebCoreSupport/EditorClientQt.h:
7646
7647 2008-11-24  Darin Adler  <darin@apple.com>
7648
7649         Reviewed by Dan Bernstein.
7650
7651         - https://bugs.webkit.org/show_bug.cgi?id=22470
7652           remove unneeded URL argument from FrameLoaderClient::updateGlobalHistory
7653
7654         * WebCoreSupport/FrameLoaderClientQt.cpp:
7655         (WebCore::FrameLoaderClientQt::updateGlobalHistory): Get the URL from the
7656         DocumentLoader.
7657         * WebCoreSupport/FrameLoaderClientQt.h: Remove argument.
7658
7659 2008-11-24  Darin Fisher  <darin@chromium.org>
7660
7661         Fix bustage.
7662
7663         https://bugs.webkit.org/show_bug.cgi?id=22448
7664
7665         * Api/qwebframe.cpp:
7666         (QWebFrame::evaluateJavaScript):
7667
7668 2008-11-20  Sam Weinig  <sam@webkit.org>
7669
7670         Fix Qt build.
7671
7672         * Api/qwebframe.cpp:
7673         (QWebFrame::evaluateJavaScript):
7674
7675 2008-11-19  Darin Fisher  <darin@chromium.org>
7676
7677         Fix bustage.
7678
7679         https://bugs.webkit.org/show_bug.cgi?id=22373
7680         Ports busted by addition of ScriptValue.{h,cpp}
7681
7682         * Api/qwebframe.cpp:
7683         (QWebFrame::evaluateJavaScript):
7684
7685 2008-11-19  Darin Fisher  <darin@chromium.org>
7686
7687         Fix bustage.
7688
7689         https://bugs.webkit.org/show_bug.cgi?id=22373
7690         Ports busted by addition of ScriptValue.{h,cpp}
7691
7692         * Api/qwebframe.cpp:
7693
7694 2008-11-19  Simon Hausmann  <hausmann@webkit.org>
7695
7696         Fix the Qt build, remove file referenced in the qrc file that does not
7697         exist and is not needed.
7698
7699         * tests/qwebframe/qwebframe.qrc:
7700
7701 2008-11-18  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7702
7703         Rubber-stamped by Tor Arne Vestbø.
7704
7705         Missing file in new unit test for QWebFrame (r38493).
7706
7707         * tests/qwebframe/qwebframe.pro:
7708         * tests/qwebframe/qwebframe.qrc: Added.
7709
7710 2008-11-18  Tor Arne Vestbø  <tavestbo@trolltech.com>
7711
7712         Rubber-stamped by Simon Hausmann.
7713
7714         Make sure QWidget based plugins are invisible until placed into the layout
7715
7716         * WebCoreSupport/FrameLoaderClientQt.cpp:
7717         (WebCore::FrameLoaderClientQt::createPlugin):
7718
7719 2008-11-18  Tor Arne Vestbø  <tavestbo@trolltech.com>
7720
7721         Reviewed by Simon Hausmann.
7722
7723         React properly to frame rect changes for QWidget based plugins
7724
7725         We now set the geometry of the QWidget in frameRectsChanged,
7726         intead of setFrameRect, which means we pick up the changes to
7727         the frame rect when scrolling. We also set a mask on the
7728         widget to keep it from painting over scrollbars and the like
7729
7730         * WebCoreSupport/FrameLoaderClientQt.cpp:
7731         (WebCore::):
7732
7733 2008-11-18  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7734
7735         Reviewed by Tor Arne Vestbø.
7736
7737         Fix crash when trying to pick a file using the file chooser.
7738
7739         * WebCoreSupport/ChromeClientQt.cpp:
7740         (WebCore::ChromeClientQt::runOpenPanel):
7741
7742 2008-11-18  Holger Hans Peter Freyther  <zecke@selfish.org>
7743
7744         Reviewed by Simon Hausmann.
7745
7746         Attempt to share transitionToCommittedForNewPage of FrameLoaderClient with the different ports
7747
7748         After Hyatt's work on Widget and ScrollView there is little difference
7749         between the implementation of Qt, Gtk+ and Win. In fact any kind of
7750         difference is mostly a bug. Alp has fixed two of such errors for the Gtk+
7751         port and the Qt port has at least one of them left.
7752
7753         The only difference between the implementations is in getting the the
7754         IntSize for the new FrameView, the background color to be applied and
7755         eventually some post processing.
7756
7757         Unify the implementations by providing a static helper function that
7758         takes a Frame, IntSize, color and transparency bit and calling it from
7759         the Gtk+, the Qt and the Windows port.
7760
7761         * Api/qwebframe.cpp:
7762         * Api/qwebframe_p.h:
7763         * Api/qwebpage.cpp:
7764         (QWebPage::setPalette):
7765         * WebCoreSupport/FrameLoaderClientQt.cpp:
7766         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
7767
7768 2008-11-17  Geoffrey Garen  <ggaren@apple.com>
7769
7770         Not reviewed.
7771         
7772         Try to fix qt build.
7773
7774         * Api/qwebframe.cpp:
7775
7776 2008-11-17  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7777
7778         Reviewed by Tor Arne Vestbø and Simon Hausmann.
7779
7780         Fix regression when loading resources from Qt resource system using qrc:/.
7781
7782         Added a unit test to catch future regression.
7783
7784         * Api/qwebpage.cpp:
7785         (QWebPagePrivate::QWebPagePrivate):
7786         * tests/qwebframe/image.png: Added.
7787         * tests/qwebframe/tst_qwebframe.cpp:
7788
7789 2008-11-16  Darin Adler  <darin@apple.com>
7790
7791         - try to fix build
7792
7793         * Api/qwebhistory.cpp: Added include of "KURL.h".
7794
7795 2008-10-24  Yael Aharon <yael.aharon@nokia.com>
7796
7797         Reviewed by Simon Hausmann.
7798
7799         Added some basic unit tests for the public database API.
7800
7801         * tests/qwebpage/tst_qwebpage.cpp:
7802         (tst_QWebPage::initTestCase):
7803         (tst_QWebPage::cleanupTestCase):
7804         (tst_QWebPage::database):
7805
7806 2008-11-14  Simon Hausmann  <hausmann@webkit.org>
7807
7808         Fix the Qt build, add missing export macros for the new classes.
7809
7810         * Api/qwebdatabase.h:
7811         * Api/qwebsecurityorigin.h:
7812
7813 2008-10-24  Yael Aharon <yael.aharon@nokia.com>
7814
7815         Reviewed by Simon Hausmann.
7816
7817         Adding public API to provide access to the security origin
7818         (QWebSecurityOrigin) and the databases used for the offline
7819         storage (QWebDatabase).
7820
7821         In addition QWebSettings gains configuration functions for
7822         enabling/disabling offline storage, web application cache
7823         and DOM local storage.
7824
7825         This commits lands the core feature(s), the unit tests and the
7826         documentation are going to follow in the comming days/weeks.
7827
7828         Note: The API is not frozen yet.
7829
7830         * Api/headers.pri:
7831         * Api/qwebdatabase.cpp: Added.
7832         (QWebDatabase::QWebDatabase):
7833         (QWebDatabase::operator=):
7834         (QWebDatabase::name):
7835         (QWebDatabase::displayName):
7836         (QWebDatabase::expectedSize):
7837         (QWebDatabase::size):
7838         (QWebDatabase::absoluteFilePath):
7839         (QWebDatabase::origin):
7840         (QWebDatabase::remove):
7841         (QWebDatabase::~QWebDatabase):
7842         * Api/qwebdatabase.h: Added.
7843         * Api/qwebdatabase_p.h: Added.
7844         * Api/qwebframe.cpp:
7845         (QWebFrame::securityOrigin):
7846         * Api/qwebframe.h:
7847         * Api/qwebpage.cpp:
7848         * Api/qwebpage.h:
7849         * Api/qwebsecurityorigin.cpp: Added.
7850         (QWebSecurityOrigin::QWebSecurityOrigin):
7851         (QWebSecurityOrigin::operator=):
7852         (QWebSecurityOrigin::scheme):
7853         (QWebSecurityOrigin::host):
7854         (QWebSecurityOrigin::port):
7855         (QWebSecurityOrigin::databaseUsage):
7856         (QWebSecurityOrigin::databaseQuota):
7857         (QWebSecurityOrigin::setDatabaseQuota):
7858         (QWebSecurityOrigin::~QWebSecurityOrigin):
7859         (QWebSecurityOrigin::allOrigins):
7860         (QWebSecurityOrigin::databases):
7861         * Api/qwebsecurityorigin.h: Added.
7862         * Api/qwebsecurityorigin_p.h: Added.
7863         (QWebSecurityOriginPrivate::QWebSecurityOriginPrivate):
7864         (QWebSecurityOriginPrivate::~QWebSecurityOriginPrivate):
7865         * Api/qwebsettings.cpp:
7866         (QWebSettingsPrivate::apply):
7867         (QWebSettings::QWebSettings):
7868         (QWebSettings::setOfflineStoragePath):
7869         (QWebSettings::offlineStoragePath):
7870         (QWebSettings::setOfflineStorageDefaultQuota):
7871         (QWebSettings::offlineStorageDefaultQuota):
7872         (QWebSettings::setOfflineWebApplicationCachePath):
7873         (QWebSettings::offlineWebApplicationCachePath):
7874         (QWebSettings::setLocalStorageDatabasePath):
7875         (QWebSettings::localStorageDatabasePath):
7876         * Api/qwebsettings.h:
7877         * WebCoreSupport/ChromeClientQt.cpp:
7878         (WebCore::ChromeClientQt::exceededDatabaseQuota):
7879
7880 2008-11-12  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7881
7882         Rubber-stamped by Tor Arne Vestbø.
7883
7884         Mention the color role change (r38331) in the API doc.
7885
7886         * Api/qwebpage.cpp:
7887
7888 2008-11-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7889
7890         Reviewed by Tor Arne Vestbø and Simon Hausmann.
7891
7892         Use QPalette::Base (instead of QPalette::Background) for the page
7893         background.
7894
7895         * Api/qwebframe.cpp:
7896         (QWebFramePrivate::updateBackground):
7897         * Api/qwebview.cpp:
7898         (QWebView::QWebView):
7899
7900 2008-11-11  Cameron Zwarich  <zwarich@apple.com>
7901
7902         Reviewed by Geoff Garen.
7903
7904         Remove pointless dependencies on the now-deleted kjs directory.
7905
7906         * WebKit_pch.h:
7907
7908 2008-11-10  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7909
7910         Rubber-stamped by Simon Hausmann.
7911
7912         To fit Qt API, scroll offset is a QPoint instead of a QSize.
7913
7914         * Api/qwebframe.cpp:
7915         (QWebFrame::scrollOffset):
7916         (QWebFrame::setScrollOffset):
7917         * Api/qwebframe.h:
7918
7919 2008-11-10  David Boddie  <dboddie@trolltech.com>
7920
7921         Reviewed by Simon Hausmann.
7922
7923         Doc: Fixed qdoc warnings by supplying function documentation.
7924
7925         * Api/qwebframe.cpp:
7926         * Api/qwebview.cpp:
7927
7928 2008-11-10  Tobias Koenig <tobias.koenig@trolltech.com>
7929
7930         Reviewed by Simon Hausmann.
7931
7932         Removed old and stale prf file that breaks the MingW build.
7933
7934         * Api/qtwebkit.prf: Removed.
7935
7936 2008-11-10  Kavindra Palaraja  <kdpalara@trolltech.com>
7937
7938         Reviewed by Simon Hausmann.
7939
7940         Clarify QWebFrame/View::setHTML docs with regards to relative URLs
7941
7942         * Api/qwebframe.cpp:
7943         * Api/qwebview.cpp:
7944
7945 2008-11-10  Joerg Bornemann  <joerg.bornemann@nokia.com>
7946
7947         Reviewed by Simon Hausmann
7948
7949         Don't define _CRT_RAND_S on Windows CE in the precompiled
7950         header, to fix the CE build.
7951
7952         * WebKit_pch.h:
7953
7954 2008-11-07  Ariya Hidayat  <ariya.hidayat@trolltech.com>
7955
7956         Reviewed by Tor Arne Vestbø and Simon Hausmann.
7957
7958         Added an option to allow printing the background color and images.
7959         Mostly reworked from a patch by Holger.
7960         This setting is enabled by default.
7961
7962         * Api/qwebsettings.cpp:
7963         (QWebSettingsPrivate::apply):
7964         (QWebSettings::QWebSettings):
7965         * Api/qwebsettings.h:
7966
7967 2008-11-06  Simon Hausmann  <hausmann@webkit.org>
7968
7969         Reviewed by Tor Arne Vestbø.
7970
7971         Added a unit tests for QWebFrame::metaData().
7972
7973         * tests/qwebframe/tst_qwebframe.cpp:
7974
7975 2008-11-06  Simon Hausmann  <hausmann@webkit.org>
7976
7977         Reviewed by Tor Arne Vestbø.
7978
7979         Improved documentation for QWebFrame::metaData().
7980
7981         * Api/qwebframe.cpp:
7982
7983 2008-11-05  Sriram Yadavalli <sriram.yadavalli@nokia.com>
7984
7985         Reviewed by Simon Hausmann.
7986
7987         Added QWebFrame::metaData() to provide a way in the public API
7988         to retrieve the values of the <meta> tags.
7989
7990         See https://bugs.webkit.org/show_bug.cgi?id=22071
7991
7992         * Api/qwebframe.cpp:
7993         (QWebFrame::metaData):
7994         * Api/qwebframe.h:
7995
7996 2008-10-24  Yael Aharon <yael.aharon@nokia.com>
7997
7998         Reviewed by Simon Hausmann.
7999
8000         Add userData() and setUserData() to QWebHistoryItem.
8001         Add setMaximumItemCount() and maximumItemCount() to QWebHistory.
8002         Add currentItemIndex() to QWebHistory.
8003
8004         See also https://bugs.webkit.org/show_bug.cgi?id=21864
8005
8006         Small cleanup by Simon (docs and forward declaration of QWebHistoryItem in qwebframe.h)
8007
8008         * Api/qwebframe.h:
8009         * Api/qwebhistory.cpp:
8010         (QWebHistoryItem::userData):
8011         (QWebHistoryItem::setUserData):
8012         (QWebHistory::currentItemIndex):
8013         (QWebHistory::maximumItemCount):
8014         (QWebHistory::setMaximumItemCount):
8015         * Api/qwebhistory.h:
8016         * WebCoreSupport/FrameLoaderClientQt.cpp:
8017         (WebCore::FrameLoaderClientQt::saveViewStateToItem):
8018         * tests/qwebpage/tst_qwebpage.cpp:
8019         (tst_QWebPage::modified):
8020
8021 2008-11-03  Cameron Zwarich  <zwarich@apple.com>
8022
8023         Rubber-stamped by Maciej Stachowiak.
8024
8025         Move more files into the runtime subdirectory of JavaScriptCore.
8026
8027         * Api/qwebpage.cpp:
8028
8029 2008-10-25  Jade Han  <jade.han@nokia.com>
8030
8031         Reviewed by Anders. 
8032
8033         Enable custom properties for Qt runtime objects in QtWebKit
8034
8035         https://bugs.webkit.org/show_bug.cgi?id=21813
8036
8037         * tests/qwebframe/tst_qwebframe.cpp:
8038
8039 2008-10-24  Sam Weinig  <sam@webkit.org>
8040
8041         Another Qt build fix.
8042
8043         * WebCoreSupport/ChromeClientQt.cpp:
8044
8045 2008-10-24  Sam Weinig  <sam@webkit.org>
8046
8047         Reviewed by Dan Bernstein.
8048
8049         Fix https://bugs.webkit.org/show_bug.cgi?id=21759
8050         Layering violation: FileChooser should not depend on Document/Frame/Page
8051
8052         * WebCoreSupport/ChromeClientQt.cpp:
8053         (WebCore::ChromeClientQt::runOpenPanel):
8054         * WebCoreSupport/ChromeClientQt.h:
8055
8056 2008-10-24  Timothy Hatcher  <timothy@apple.com>
8057
8058         Stub out new InspectorClient methods.
8059
8060         https://bugs.webkit.org/show_bug.cgi?id=21856
8061
8062         Reviewed by Darin Adler.
8063
8064         * WebCoreSupport/InspectorClientQt.cpp:
8065         (WebCore::InspectorClientQt::populateSetting): Not implemented.
8066         (WebCore::InspectorClientQt::storeSetting): Ditto.
8067         (WebCore::InspectorClientQt::removeSetting): Ditto.
8068         * WebCoreSupport/InspectorClientQt.h:
8069
8070 2008-10-24  Darin Adler  <darin@apple.com>
8071
8072         - finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732
8073
8074         * Api/qwebframe.cpp:
8075         (QWebFrame::evaluateJavaScript): Use JSValue* instead of JSValuePtr.
8076
8077 2008-10-23  Yael Aharon <yael.aharon@nokia.com>
8078
8079         Reviewed by Simon Hausmann.
8080
8081         Invalid history entries could cause a crash in QT Webkit
8082
8083         * Api/qwebhistory.cpp:
8084         (QWebHistoryItem::originalUrl):
8085         (QWebHistoryItem::url):
8086         (QWebHistoryItem::title):
8087         (QWebHistoryItem::lastVisited):
8088         (QWebHistoryItem::icon):
8089         (QWebHistoryItem::isValid):
8090         * Api/qwebhistory.h:
8091         * Api/qwebhistory_p.h:
8092         (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
8093         (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
8094         * tests/qwebpage/tst_qwebpage.cpp:
8095         (tst_QWebPage::modified):
8096
8097 2008-10-22  Yael Aharon <yael.aharon@nokia.com>
8098
8099         Reviewed by Simon Hausmann.
8100
8101         emit scrollRequested unconditionally when scrolling.
8102
8103         See https://bugs.webkit.org/show_bug.cgi?id=21790
8104
8105         * WebCoreSupport/ChromeClientQt.cpp:
8106         (WebCore::ChromeClientQt::scroll):
8107
8108 2008-10-23  Simon Hausmann  <hausmann@webkit.org>
8109
8110         Reviewed by Tor Arne.
8111
8112         Fix handling of mouse events when embedding QWebView into the
8113         QGraphicsView.
8114
8115         QWebPage accepts or ignores events to indicate whether the web page
8116         handled the event. However for QWebView to behave like a good widget
8117         it should always accept the mouse events to indicate that it handled
8118         them and that they should not be subject to event propagation.
8119
8120         The graphics view relies on acceptance of the initial mouse click to
8121         make the embedded widget the focus item.
8122
8123         * Api/qwebview.cpp:
8124         (QWebView::mouseMoveEvent):
8125         (QWebView::mousePressEvent):
8126         (QWebView::mouseDoubleClickEvent):
8127         (QWebView::mouseReleaseEvent):
8128         (QWebView::contextMenuEvent):
8129         (QWebView::wheelEvent):
8130
8131 2008-10-22  Ariya Hidayat  <ariya.hidayat@trolltech.com>
8132
8133         Reviewed by Simon Hausmann.
8134
8135         For public API, use the term boundingRect instead of boundingBox.
8136
8137         * Api/qwebframe.cpp:
8138         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
8139         (QWebHitTestResult::boundingRect):
8140         * Api/qwebframe.h:
8141         * Api/qwebframe_p.h:
8142
8143 2008-06-03  Siraj Razick  <siraj.razick@collabora.co.uk>
8144
8145         Reviewed by Simon Hausmann.
8146
8147         https://bugs.webkit.org/show_bug.cgi?id=19374
8148
8149         Expose boundingBox value in QWebHitTestResult
8150
8151         Add API function QRect QWebHitResult::boundingBox() const
8152
8153         API docs by Ariya.
8154
8155         * Api/qwebframe.cpp:
8156         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
8157         (QWebHitTestResult::boundingBox):
8158         * Api/qwebframe.h:
8159         * Api/qwebframe_p.h:
8160
8161 2008-10-21  Yael Aharon <yael.aharon@nokia.com>
8162
8163         Reviewed by Simon Hausmann.
8164
8165         emit repaintRequested unconditionally when repaint is requested.
8166
8167         * WebCoreSupport/ChromeClientQt.cpp:
8168         (WebCore::ChromeClientQt::repaint):
8169
8170 2008-10-20  Sam Weinig  <sam@webkit.org>
8171
8172         Reviewed by Anders Carlsson.
8173
8174         Remove FrameLoaderClient::detachedFromParent4.  It is no longer used by any port.
8175
8176         * WebCoreSupport/FrameLoaderClientQt.cpp:
8177         * WebCoreSupport/FrameLoaderClientQt.h:
8178
8179 2008-10-19  Darin Adler  <darin@apple.com>
8180
8181         Reviewed by Oliver Hunt.
8182
8183         - next step of https://bugs.webkit.org/show_bug.cgi?id=21732
8184           improve performance by eliminating JSValue as a base class for JSCell
8185
8186         Remove most uses of JSValue, which will be removed in a future patch.
8187
8188         * Api/qwebframe.cpp:
8189         (QWebFrame::evaluateJavaScript): Use JSValuePtr.
8190
8191 2008-10-14  Tor Arne Vestbø  <tavestbo@trolltech.com>
8192
8193         Reviewed by Simon.
8194
8195         Clip painter to dirty rect before passing on to WebKit
8196         
8197         This was previously done in ScrollViewQt, but after the
8198         refactoring of ScrollView we need to do it in QWebFrame
8199         instead, similar to Safari/Win.
8200
8201         * Api/qwebframe.cpp:
8202         (QWebFrame::render):
8203
8204 2008-10-08  Matthias Ettrich <ettrich@nokia.com>
8205
8206         Reviewed by Simon.
8207
8208         Make QWebView ignore focus changes with PopupFocusReason to avoid
8209         massive updates when menus open and close.
8210
8211         * Api/qwebview.cpp:
8212         (QWebView::focusInEvent):
8213         (QWebView::focusOutEvent):
8214
8215 2008-10-08  Kavindra Palaraja  <kdpalara@trolltech.com>
8216
8217         Reviewed by Simon.
8218
8219         Fixed a qdoc warning and adjusted some spacing
8220
8221         * Api/qwebframe.cpp:
8222
8223 2008-10-08  Rhys Weatherley  <rhys.weatherley@nokia.com>
8224
8225         Reviewed by Simon.
8226
8227         Compile for platforms without context menus.
8228
8229         * Api/qwebpage.cpp:
8230         (QWebPage::createStandardContextMenu):
8231
8232 2008-10-08  André Pönitz  <apoenitz@trolltech.com>
8233
8234         Reviewed by Simon.
8235
8236         Fix compilation with Qt namespaces.
8237
8238         * WebCoreSupport/EditCommandQt.h:
8239
8240 2008-10-07  Tor Arne Vestbø  <tavestbo@trolltech.com>
8241
8242         QtWebKit build fix after changes to FrameLoaderClient.h in r37371
8243
8244         * WebCoreSupport/FrameLoaderClientQt.h:
8245
8246 2008-10-07  Holger Hans Peter Freyther  <zecke@selfish.org>
8247
8248         [qt] Build fix after Scrollbar.h and Widget.h changes.
8249
8250         * Api/qwebpage.cpp:
8251         (QWebPage::swallowContextMenuEvent):
8252
8253 2008-10-06  David Hyatt  <hyatt@apple.com>
8254
8255         Enable viewless Mac WebKit to paint some basic pages.
8256         
8257         Reviewed by Sam Weinig
8258
8259         * WebCoreSupport/FrameLoaderClientQt.cpp:
8260         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
8261
8262 2008-10-03  David Hyatt  <hyatt@apple.com>
8263
8264         Fix scroll method on Qt.  The delta was supposed to use .width()/.height() and not .x()/.y().
8265
8266         Fix the QtPluginWidget to do an invalidate properly.
8267
8268         Reviewed by ggaren
8269
8270         * WebCoreSupport/ChromeClientQt.cpp:
8271         (WebCore::ChromeClientQt::scroll):
8272         * WebCoreSupport/FrameLoaderClientQt.cpp:
8273         (WebCore::):
8274
8275 2008-10-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
8276
8277         Build fix. Remove addToDirtyRegion from the header file.
8278
8279         * WebCoreSupport/ChromeClientQt.h:
8280
8281 2008-10-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
8282
8283         Build fix.
8284
8285         * WebCoreSupport/ChromeClientQt.cpp:
8286         (WebCore::ChromeClientQt::scroll):
8287         * WebCoreSupport/FrameLoaderClientQt.cpp:
8288         (WebCore::):
8289         (WebCore::FrameLoaderClientQt::createPlugin):
8290
8291 2008-10-03  David Hyatt  <hyatt@apple.com>
8292
8293         Remove addToDirtyRegion.
8294         
8295         Reviewed by Oliver Hunt
8296
8297         * WebCoreSupport/ChromeClientQt.cpp:
8298
8299 2008-10-02  David Hyatt  <hyatt@apple.com>
8300
8301         https://bugs.webkit.org/show_bug.cgi?id=21314
8302         
8303         Make scrollBackingStore cross-platform.
8304
8305         Reviewed by Sam Weinig
8306
8307         * WebCoreSupport/ChromeClientQt.cpp:
8308         (WebCore::ChromeClientQt::repaint):
8309         (WebCore::ChromeClientQt::scroll):
8310         * WebCoreSupport/ChromeClientQt.h:
8311
8312 2008-10-01  David Hyatt  <hyatt@apple.com>
8313         
8314         https://bugs.webkit.org/show_bug.cgi?id=21282
8315         
8316         Make contentsToScreen/screenToContents cross-platform.  Only implemented by Mac/Win right now.
8317         
8318         Reviewed by Adam Roben
8319
8320         * WebCoreSupport/ChromeClientQt.cpp:
8321         (WebCore::ChromeClientQt::windowToScreen):
8322         (WebCore::ChromeClientQt::screenToWindow):
8323         * WebCoreSupport/ChromeClientQt.h:
8324
8325 2008-09-30  Dave Hyatt  <hyatt@apple.com>
8326
8327         http://bugs.webkit.org/show_bug.cgi?id=21250
8328         
8329         Rename updateContents to repaintContentRectangle and make it cross-platform by always sending
8330         repaints up through the ChromeClient.
8331
8332         Reviewed by Darin Adler
8333
8334         * WebCoreSupport/ChromeClientQt.cpp:
8335         (WebCore::ChromeClientQt::repaint):
8336         * WebCoreSupport/ChromeClientQt.h:
8337
8338 2008-09-29  Gunnar Sletta  <gunnar@trolltech.com>
8339
8340         Reviewed by Simon
8341
8342         Compile on windows using MSVC 2005
8343
8344         For the PCH We need to define _WIN32_WINNT and include windows.h early on,
8345         otherwise we'll miss several functions.
8346
8347         * WebKit_pch.h:
8348
8349 2008-09-29  Thiago Macieira  <thiago.macieira@nokia.com>
8350
8351         Reviewed by Simon.
8352
8353         Changed copyright from Trolltech ASA to Nokia.
8354         
8355         Nokia acquired Trolltech ASA, assets were transferred on September 26th 2008.
8356         
8357
8358         * Api/qwebframe.cpp:
8359         * Api/qwebframe.h:
8360         * Api/qwebframe_p.h:
8361         * Api/qwebhistory.cpp:
8362         * Api/qwebhistory.h:
8363         * Api/qwebhistory_p.h:
8364         * Api/qwebkitglobal.h:
8365         * Api/qwebnetworkinterface.cpp:
8366         * Api/qwebnetworkinterface.h:
8367         * Api/qwebnetworkinterface_p.h:
8368         * Api/qwebpage.cpp:
8369         * Api/qwebpage.h:
8370         * Api/qwebpage_p.h:
8371         * Api/qwebpluginfactory.cpp:
8372         * Api/qwebpluginfactory.h:
8373         * Api/qwebsettings.cpp:
8374         * Api/qwebsettings.h:
8375         * Api/qwebview.cpp:
8376         * Api/qwebview.h:
8377         * Plugins/ICOHandler.cpp:
8378         * QtLauncher/main.cpp:
8379         * WebCoreSupport/FrameLoaderClientQt.cpp:
8380         * WebCoreSupport/FrameLoaderClientQt.h:
8381         * WebCoreSupport/InspectorClientQt.cpp:
8382         * WebCoreSupport/InspectorClientQt.h:
8383         * tests/qwebframe/tst_qwebframe.cpp:
8384         * tests/qwebpage/tst_qwebpage.cpp:
8385
8386 2008-09-28  Simon Hausmann  <hausmann@webkit.org>
8387
8388         Reviewed by David Hyatt.
8389
8390         Ensure the mainThreadIdentifier is set as well as other bits and pieces of
8391         the threading machinery, by calling JSC::initializeThreading().
8392
8393         * Api/qwebpage.cpp:
8394         (QWebPagePrivate::QWebPagePrivate):
8395
8396 2008-09-27  David Hyatt  <hyatt@apple.com>
8397
8398         Forgot to land renaming changes in WebKit.
8399
8400         * Api/qwebframe.cpp:
8401         (QWebFrame::render):
8402         (QWebFrame::pos):
8403         (QWebFrame::geometry):
8404         * Api/qwebpage.cpp:
8405         (QWebPage::viewportSize):
8406         (QWebPage::setViewportSize):
8407
8408 2008-09-27  Simon Hausmann  <hausmann@webkit.org>
8409
8410         Qt build fix - use frameRect instead of frameGeometry, adapt
8411         to renamed scrollbar frameview methods.
8412
8413         * Api/qwebpage.cpp:
8414         (QWebPage::viewportSize):
8415         (QWebPage::setViewportSize):
8416         * WebCoreSupport/FrameLoaderClientQt.cpp:
8417         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
8418
8419 2008-09-27  Jan Michael Alonzo  <jmalonzo@webkit.org>
8420
8421         Qt build fix - rename frameGeometry to frameRect per r36995.
8422
8423         * Api/qwebframe.cpp:
8424         (QWebFrame::render):
8425         (QWebFrame::pos):
8426         (QWebFrame::geometry):
8427
8428 2008-09-26  Ariya Hidayat  <ahidayat@trolltech.com>
8429
8430         Reviewed by Simon.
8431
8432         Fixed potential crash when deleting QWebView instance.
8433
8434         When deleting the view, sets the page's view to NULL.
8435         The reason is that the page is smart and its destructor might lead to a call
8436         that operates on a view (which is in the process of being deleted).
8437
8438         * Api/qwebpage.h:
8439         * Api/qwebview.cpp:
8440         (QWebView::~QWebView):
8441
8442 2008-09-26  Ariya Hidayat  <ahidayat@trolltech.com>
8443
8444         Reviewed by Simon.
8445
8446         Fixed using modifiers to type special symbols (e.g '@','$') does not work on Mac OS X.
8447
8448         * WebCoreSupport/EditorClientQt.cpp:
8449         (WebCore::EditorClientQt::handleKeyboardEvent):
8450
8451 2008-09-26  Håvard Wall  <hwall@trolltech.com>
8452
8453         Reviewed by Simon.
8454
8455         Fix compilation with QT_NO_MESSAGEBOX
8456
8457         * Api/qwebpage.cpp:
8458         (QWebPage::javaScriptAlert):
8459         (QWebPage::javaScriptConfirm):
8460
8461 2008-09-23  Tor Arne Vestbø  <tavestbo@trolltech.com>
8462
8463         Reviewed by Simon.
8464
8465         Remove deprecated JS Qt bindings object call/construct code and fix autotests
8466
8467         * tests/qwebframe/tst_qwebframe.cpp:
8468
8469 2008-09-16  Alp Toker  <alp@nuanti.com>
8470
8471         Prospective Qt build fix. ScrollBar.h -> Scrollbar.h
8472
8473         * Api/qwebframe.cpp:
8474         * Api/qwebpage.cpp:
8475
8476 2008-09-15  Eli Fidler  <eli@staikos.net>
8477
8478         Reviewed by Simon.
8479
8480         Yahoo assumes non-RFC compliant HTTP redirect behaviour. QtWebKit is (more)
8481         compliant, so broken. I think the Yahoo-assumed behaviour is real-world standard.
8482
8483         Basically, Yahoo's login procedure for flickr looks like this:
8484         1. load flickr.com, click "sign in"
8485         2. this is a Yahoo page with a form
8486         (https://login.yahoo.com/config/login?.src=flickr...)
8487         when you click the "Sign In" button, the form submits to a yahoo.com POST URL
8488         3. The POST returns with a 302 (redirect) to another yahoo.com URL
8489         4. If you POST the redirected Location:, it all breaks. Yahoo assumes you will
8490         convert the method to GET, which works fine but is definitely not
8491         RFC-compliant. It would be compliant for 303, and the RFC says that many
8492         implementations treat 302 and 303 the same way (for HTTP/1.0 compliance), but
8493         converting to GET is explicitly wrong for 302.
8494
8495         * Api/qwebnetworkinterface.cpp:
8496         (QWebNetworkManager::started):
8497
8498 2008-09-15  Tor Arne Vestbø  <tavestbo@trolltech.com>
8499
8500         Reviewed by Simon.
8501
8502         Make QtInstance::create() private and fix caching
8503
8504         * Api/qwebframe.cpp:
8505         (QWebFrame::addToJavaScriptWindowObject):
8506
8507 2008-09-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
8508
8509         Rubber-stamped by Simon.
8510
8511         Prevent leaking pages and frames in QWebKit autotest
8512
8513         * tests/qwebpage/tst_qwebpage.cpp:
8514
8515 2008-09-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
8516
8517         Reviewed by Simon
8518
8519         Fix QtWebKit autotest
8520
8521         * tests/qwebpage/tst_qwebpage.cpp:
8522         (tst_QWebPage::userStyleSheet):
8523
8524 2008-09-09  Joerg Bornemann  <joerg.bornemann@trolltech.com>
8525
8526         Reviewed by Simon.
8527
8528         Added missing WebCore prefix to ResourceRequest
8529
8530         This is needed for Windows/CE compilation where there is a conflict
8531         with a global ResourceRequest type. Elsewhere in this file ResourceRequest
8532         is also prefixed with WebCore::
8533
8534         * Api/qwebframe.cpp:
8535         (QWebFrame::QWebFrame):
8536
8537 2008-09-07  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
8538
8539         Reviewed by Maciej Stachowiak.
8540
8541         Bug 20704: Replace the KJS namespace
8542         <https://bugs.webkit.org/show_bug.cgi?id=20704>
8543
8544         Rename the KJS namespace to JSC.
8545
8546         * Api/qwebframe.cpp:
8547         (QWebFrame::addToJavaScriptWindowObject):
8548         (QWebFrame::evaluateJavaScript):
8549
8550 2008-09-04  Tor Arne Vestbø  <tavestbo@trolltech.com>
8551
8552         Reviewed by Simon
8553
8554         Fix the QtWebKit build to match changes in r36016
8555
8556         * Api/qwebframe.cpp:
8557         (QWebFrame::addToJavaScriptWindowObject):
8558
8559 2008-09-04  Tor Arne Vestbø  <tavestbo@trolltech.com>
8560
8561         Reviewed by Simon.
8562
8563         Re-enable support for user stylesheets in QtWebKit
8564         
8565         QtWebKit now follows the FRAME_LOADS_USER_STYLESHEET
8566         code path, which allows us to keep API support for
8567         loading user style sheets from remote URLs.
8568         
8569         As part of the change UserStyleSheetLoader.cpp/h was
8570         moved from WebCore/loader/mac to WebCore/loader.
8571
8572         * tests/qwebpage/tst_qwebpage.cpp:
8573         (tst_QWebPage::userStyleSheet):
8574
8575 2008-08-29  Holger Hans Peter Freyther  <zecke@selfish.org>
8576
8577         Reviewed by Eric Seidel.
8578
8579         [janitor/qt] Start replacing port specific getters with the generic native getter
8580         To get the native presentation of an image we currently have platform
8581         specific #ifdef's and a generic getter using NativeImagePtr. This patch
8582         extends this to the ImageBuffer and updates the Qt platform to get rid
8583         of the special #ifdefs.
8584
8585         https://bugs.webkit.org/attachment.cgi?id=22861
8586
8587         * Api/qwebframe.cpp:
8588         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
8589         * Api/qwebhistory.cpp:
8590         * Api/qwebsettings.cpp:
8591         (QWebSettings::iconForUrl):
8592
8593 2008-08-29  Holger Hans Peter Freyther  <zecke@selfish.org>
8594
8595         Reviewed by Simon.
8596
8597         Catch up with the introduction of PageGroup in r30840. Enable tracking of
8598         visited links, enable this in QWebPage next to the other WebCore init call.
8599         Calling this more than once is no issue and a cheap operation, we also do not
8600         reset the state. When clearing the history of a page, clear the link state.
8601
8602         * Api/qwebhistory.cpp:
8603         (QWebHistory::clear):
8604         * Api/qwebhistoryinterface.cpp:
8605         (QWebHistoryInterface::setDefaultInterface):
8606         * Api/qwebpage.cpp:
8607         (QWebPagePrivate::QWebPagePrivate):
8608
8609 2008-08-29  Holger Hans Peter Freyther  <zecke@selfish.org>
8610
8611         Reviewed by Simon.
8612
8613         Revert revision 34348 which removed the global historyContains() function.
8614
8615         This function was needed to implement the public API of QWebHistoryInterface
8616         and will be used again in the near future.
8617
8618         * Api/qwebhistoryinterface.cpp:
8619         (WebCore::historyContains):
8620
8621 2008-08-27  Erik Bunce  <elbunce@thehive.com>
8622
8623         Reviewed by Eric Seidel.
8624
8625         https://bugs.webkit.org/show_bug.cgi?id=20223
8626
8627         Add QWebPage::contentsChanged() signal to notify of content changes.
8628
8629         * Api/qwebpage.cpp:
8630         * Api/qwebpage.h:
8631         * WebCoreSupport/EditorClientQt.cpp:
8632         (WebCore::EditorClientQt::respondToChangedContents):
8633
8634 2008-08-27  Brady Eidson  <beidson@apple.com>
8635
8636         Reviewed by Anders
8637
8638         <rdar://problem/6134133> - Crash when loading large movie as a standalone document
8639
8640         * WebCoreSupport/FrameLoaderClientQt.cpp:
8641         (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError): Stubbed for now
8642         * WebCoreSupport/FrameLoaderClientQt.h:
8643
8644 2008-08-25  Holger Hans Peter Freyther  <zecke@selfish.org>
8645
8646         Reviewed by Simon.
8647
8648         [inspector] Emit signals from attachWindow and detachWindow in the Qt platform
8649         Allow the user of the API to honor the attachWindow and detachWindow
8650         requests and attach the QWebPage/QWebView wherever it is wanted. This needs
8651         some more API in QWebPage to be properly exposed.
8652
8653         * WebCoreSupport/InspectorClientQt.cpp:
8654         (WebCore::InspectorClientQt::createPage):
8655         (WebCore::InspectorClientQt::attachWindow):
8656         (WebCore::InspectorClientQt::detachWindow):
8657         * WebCoreSupport/InspectorClientQt.h:
8658
8659 2008-08-19  Alexey Proskuryakov  <ap@webkit.org>
8660
8661         Reviewed by Geoff Garen.
8662
8663         Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.
8664
8665         * Api/qwebframe.cpp:
8666         (QWebFrame::addToJavaScriptWindowObject):
8667
8668 2008-08-15  Håvard Wall  <hwall@trolltech.com>
8669
8670         Reviewed by Simon.
8671
8672         Fixes: compile with QT_NO_UNDOCOMMAND/STACK
8673         
8674
8675         * Api/qwebpage.cpp:
8676         (SetCursorEvent::SetCursorEvent):
8677         (QWebPagePrivate::createContextMenu):
8678         (QWebPage::action):
8679         * Api/qwebpage.h:
8680         * Api/qwebpage_p.h:
8681         * WebCoreSupport/EditCommandQt.cpp:
8682         (EditCommandQt::EditCommandQt):
8683         * WebCoreSupport/EditCommandQt.h:
8684         * WebCoreSupport/EditorClientQt.cpp:
8685         (dumpPath):
8686         (WebCore::EditorClientQt::shouldInsertText):
8687         (WebCore::EditorClientQt::shouldChangeSelectedRange):
8688         (WebCore::EditorClientQt::isEditable):
8689         (WebCore::EditorClientQt::registerCommandForUndo):
8690         (WebCore::EditorClientQt::clearUndoRedoOperations):
8691         (WebCore::EditorClientQt::canUndo):
8692         (WebCore::EditorClientQt::canRedo):
8693         (WebCore::EditorClientQt::undo):
8694         (WebCore::EditorClientQt::redo):
8695         (WebCore::EditorClientQt::shouldInsertNode):
8696
8697 2008-08-15  Håvard Wall  <hwall@trolltech.com>
8698
8699         Reviewed by Simon.
8700
8701         Fixes: compile with QT_NO_STYLE_STYLESHEET
8702         
8703
8704         * WebCoreSupport/FrameLoaderClientQt.cpp:
8705         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
8706         (WebCore::FrameLoaderClientQt::createPlugin):
8707
8708 2008-08-15  Håvard Wall  <hwall@trolltech.com>
8709
8710         Reviewed by Simon.
8711
8712         Fixes: compile with QT_NO_SHORTCUT
8713         
8714
8715         * Api/qwebpage.cpp:
8716         (QWebPagePrivate::mouseMoveEvent):
8717         (QWebPagePrivate::mouseReleaseEvent):
8718         (QWebPagePrivate::dragMoveEvent):
8719
8720 2008-08-15  Håvard Wall  <hwall@trolltech.com>
8721
8722         Reviewed by Simon.
8723
8724         Fixes:    compile with QT_NO_CONTEXTMENU
8725         
8726
8727         * Api/qwebpage.cpp:
8728         (editorCommandForWebActions):
8729         (QWebPagePrivate::QWebPagePrivate):
8730         (QWebPagePrivate::createMainFrame):
8731         (QWebPagePrivate::updateEditorActions):
8732         (QWebPage::setEditable):
8733         * Api/qwebpage.h:
8734         * Api/qwebpage_p.h:
8735         * Api/qwebview.cpp:
8736         * Api/qwebview.h:
8737
8738 2008-08-15  Håvard Wall  <hwall@trolltech.com>
8739
8740         Reviewed by Simon.
8741
8742         Fixes: compile with QT_NO_WHEELEVENT
8743         
8744
8745         * Api/qwebpage.cpp:
8746         (QWebPagePrivate::updateEditorActions):
8747         (QWebPage::event):
8748         * Api/qwebpage_p.h:
8749         * Api/qwebview.cpp:
8750         * Api/qwebview.h:
8751
8752 2008-08-15  Håvard Wall  <hwall@trolltech.com>
8753
8754         Reviewed by Simon.
8755
8756         Fixes: compile with QT_NO_PRINTER
8757         
8758
8759         * Api/qwebframe.cpp:
8760         (QWebFrame::print):
8761         * Api/qwebframe.h:
8762
8763 2008-08-15  David Boddie  <dboddie@trolltech.com>
8764
8765         Reviewed by Simon.
8766
8767         Doc: Added documentation for default property values.
8768         
8769
8770         * Api/qwebpage.cpp:
8771         (QWebPagePrivate::keyPressEvent):
8772         (QWebPage::triggerAction):
8773         (QWebPage::acceptNavigationRequest):
8774         (QWebPage::action):
8775         * Api/qwebview.cpp:
8776
8777 2008-08-15  David Boddie  <dboddie@trolltech.com>
8778
8779         Reviewed by Simon.
8780
8781         Doc: Renamed snippets that appear in the code directory.
8782         
8783
8784         * Api/qwebview.cpp:
8785         (QWebView::event):
8786         (QWebView::print):
8787
8788 2008-08-12  Timothy Hatcher  <timothy@apple.com>
8789
8790         Add a stub for InspectorClient::setAttachedWindowHeight.
8791
8792         * WebCoreSupport/InspectorClientQt.cpp:
8793         (WebCore::InspectorClientQt::setAttachedWindowHeight):
8794         Call notImplemented().
8795         * WebCoreSupport/InspectorClientQt.h:
8796
8797 2008-08-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
8798
8799         Reviewed by Simon.
8800
8801         Use full-page zoom in QtLauncher.
8802
8803         * QtLauncher/main.cpp:
8804         (MainWindow::zoomIn):
8805         (MainWindow::zoomOut):
8806         (MainWindow::resetZoom):
8807         (MainWindow::setupUI):
8808
8809 2008-08-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
8810
8811         Reviewed by Simon.
8812
8813         Fix linking with QtWebKit.
8814
8815         * Api/qwebframe.h: remove non-existing function/property.
8816
8817 2008-08-13  Simon Hausmann  <hausmann@webkit.org>
8818
8819         Reviewed by Holger.
8820
8821         Based on patch by Siraj razick <siraj.razick@collabora.co.uk>
8822
8823         https://bugs.webkit.org/show_bug.cgi?id=19125
8824
8825         Added functions to get/set the zoom factor.
8826
8827         Added a QWebFrame/QWebView::zoomFactor as well as a boolean
8828         ZoomTextOnly attribute in QWebSettings.
8829
8830         * Api/qwebframe.cpp:
8831         (QWebFrame::setZoomFactor):
8832         (QWebFrame::zoomFactor):
8833         * Api/qwebframe.h:
8834         * Api/qwebsettings.cpp:
8835         (QWebSettingsPrivate::apply):
8836         (QWebSettings::QWebSettings):
8837         * Api/qwebsettings.h:
8838         * Api/qwebview.cpp:
8839         (QWebView::setZoomFactor):
8840         (QWebView::zoomFactor):
8841         * Api/qwebview.h:
8842
8843 2008-08-13  Simon Hausmann  <hausmann@webkit.org>
8844
8845         Reviewed by Lars.
8846
8847         Fix QWebFrame::setHtml() not setting the new contents immediately.
8848
8849         Added a setter to the DocumentLoader to toggle the deferred loading of the main
8850         resource when it comes from substitute data.
8851
8852         Disable deferred loading of the main resource when we have valid substitute data,
8853         as used by QWebFrame::setHtml.
8854
8855         * WebCoreSupport/FrameLoaderClientQt.cpp:
8856         (WebCore::FrameLoaderClientQt::download):
8857
8858 2008-08-13  Simon Hausmann  <hausmann@webkit.org>
8859
8860         Rubber-stamped by Holger.
8861
8862         Fix QWebPage::isModified().
8863
8864         isModified() would return true after loading a new page or it would continue to
8865         return true after undoing modifications. Fix this by eliminating the
8866         QWebPagePrivate::modified variable and use the undoStack's canUndo() property
8867         instead.
8868
8869         https://bugs.webkit.org/show_bug.cgi?id=19252
8870
8871         * Api/qwebpage.cpp:
8872         (QWebPage::action):
8873         * Api/qwebpage_p.h:
8874         * WebCoreSupport/EditorClientQt.cpp:
8875         (WebCore::EditorClientQt::respondToChangedContents):
8876
8877 2008-08-13  David Boddie  <dboddie@trolltech.com>
8878
8879         Reviewed by Simon.
8880
8881         Updated docs with the signal emission behavior of urlChanged()
8882
8883         * Api/qwebframe.cpp:
8884
8885 2008-08-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
8886
8887         Reviewed by Simon.
8888
8889         Fix Ctrl+Y to work again when editing text in contextEditable mode.
8890
8891         This fixes regression in LayoutTests/editing/pasteboard/emacs-cntl-y-001.html
8892
8893         * WebCoreSupport/EditorClientQt.cpp:
8894         (WebCore::EditorClientQt::handleKeyboardEvent):
8895
8896 2008-08-13  Thiago Macieira  <tjmaciei@trolltech.com>
8897
8898         Reviewed by Simon.
8899
8900         Fix encoding of [ and ] in the host part of the URL
8901
8902         Until QUrl is fixed (making QUrl's tolerant parser more tolerant), we have to
8903         add this workaround to the QUrl <> WebCore::KURL conversion operator so that it
8904         doesn't encode [ and ] when they are found in the host part. That is, the
8905         following URL:
8906         http://[::1]/
8907         is valid and should not be reencoded to:
8908         http://%5b::1%5d/
8909
8910         This change adds the automatic test for it.
8911
8912         * tests/qwebframe/tst_qwebframe.cpp:
8913
8914 2008-08-12  Urs Wolfer  <uwolfer@kde.org>
8915
8916         Reviewed by Simon.
8917
8918         https://bugs.webkit.org/show_bug.cgi?id=20357
8919
8920         Fix crash in QWebPage in case contextMenuEvent has been overwritten
8921         because context menu has the view as parent and thus is deleted too early.
8922
8923         Add testcase for this crash.
8924
8925         * Api/qwebpage_p.h:
8926         * tests/qwebpage/tst_qwebpage.cpp:
8927         (tst_QWebPage::contextMenuCrash):
8928
8929 2008-08-07  Simon Hausmann  <hausmann@webkit.org>
8930
8931         Rubber-stamped by Lars.
8932
8933         Added API tests for QWebPage/QWebFrame based on QTestLib.
8934
8935         * tests/qwebframe/qwebframe.pro: Added.
8936         * tests/qwebframe/tst_qwebframe.cpp: Added.
8937         * tests/qwebpage/qwebpage.pro: Added.
8938         * tests/qwebpage/tst_qwebpage.cpp: Added.
8939         * tests/tests.pro: Added.
8940
8941 2008-08-06  Benjamin C Meyer  <ben@meyerhome.net>
8942
8943         Reviewed by Simon.
8944
8945         During the drag operation only accept the event if the action is not ignore action.
8946
8947         * Api/qwebpage.cpp:
8948         (QWebPagePrivate::dragEnterEvent):
8949         (QWebPagePrivate::dragMoveEvent):
8950         (QWebPagePrivate::dropEvent):
8951
8952 2008-08-06  Ariya Hidayat  <ariya.hidayat@trolltech.com>
8953
8954         Fix the Qt build due to recent ScriptController refactoring.
8955
8956         * Api/qwebframe.cpp:
8957         (QWebFrame::addToJavaScriptWindowObject):
8958
8959 2008-08-05  Tor Arne Vestbø  <tavestbo@trolltech.com>
8960
8961         Reviewed by Simon.
8962
8963         Move event handling of the return-key from EditorClientQt to QWebPage.
8964         
8965         https://bugs.webkit.org/show_bug.cgi?id=20191
8966         
8967         This is a first step in refactoring the big switch block
8968         in EditorClientQt::handleKeyboardEvent to using WebActions
8969         instead.
8970         
8971         The new logic uses two new StandardKeys from QKeySequence:
8972         
8973         - InsertParagraphSeparator
8974         - InsertLineSeparator
8975         
8976         Which translate to the commands InsertNewline and InsertLineBreak
8977         respectivly. On Windows/X11 pressing the shift modifier will invoke
8978         the latter action. For Mac this is triggered by pressing the meta
8979         modifier (Ctrl).
8980         
8981         Initial patch by: Erik Bunce
8982
8983         * Api/qwebpage.cpp:
8984         (editorActionForKeyEvent):
8985         * Api/qwebpage.h:
8986         * WebCoreSupport/EditorClientQt.cpp:
8987         (WebCore::EditorClientQt::handleKeyboardEvent):
8988
8989 2008-08-04  Erik Bunce  <elbunce@thehive.com>
8990
8991         Reviewed by Simon.
8992
8993         https://bugs.webkit.org/show_bug.cgi?id=20221
8994
8995         Add updateAction() support to ToggleBold, ToggleItalic, and ToggleUnderline.
8996         Add lookup table for mapping web actions to editor commands.
8997
8998         * Api/qwebpage.cpp:
8999         (editorCommandForWebActions):
9000         (QWebPagePrivate::updateAction):
9001         (QWebPagePrivate::updateEditorActions):
9002         (QWebPage::triggerAction):
9003         (QWebPage::setEditable):
9004
9005 2008-08-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
9006
9007         Reviewed by Simon.
9008
9009         A bunch of improvements to the QtLauncher.
9010
9011         Among others:
9012         - Unify and unclutter the toolbar, use menu for addition actions
9013         - Simplify URL edit, just use QLineEdit (no fancy close button etc)
9014         - Guess the URL from the command line so now we can run ./QtLauncher www.google.com
9015         - Shortcut keys for most actions
9016         - Simple autocomplete for the URL edit
9017         - Actions for zooming, New Window and Close Window
9018         - Show Format menu only when the content is set to editable
9019
9020         * QtLauncher/main.cpp:
9021         (MainWindow::MainWindow):
9022         (MainWindow::webPage):
9023         (MainWindow::changeLocation):
9024         (MainWindow::loadFinished):
9025         (MainWindow::showLinkHover):
9026         (MainWindow::newWindow):
9027         (MainWindow::zoomIn):
9028         (MainWindow::zoomOut):
9029         (MainWindow::resetZoom):
9030         (MainWindow::print):
9031         (MainWindow::setEditable):
9032         (MainWindow::dumpHtml):
9033         (MainWindow::setupUI):
9034         (main):
9035
9036 2008-08-04  Erik Bunce  <elbunce@thehive.com>
9037
9038         Reviewed by Simon.
9039
9040         https://bugs.webkit.org/show_bug.cgi?id=20198
9041
9042         Allow Copy key sequence to work in non-editable areas.
9043
9044         * Api/qwebpage.cpp:
9045         (QWebPagePrivate::keyPressEvent):
9046
9047 2008-07-31  Erik Bunce  <elbunce@thehive.com>
9048
9049         Reviewed by Simon.
9050
9051         Make sure edit actions get updated when the contents change.
9052
9053         * WebCoreSupport/EditorClientQt.cpp:
9054         (WebCore::EditorClientQt::respondToChangedContents):
9055
9056 2008-07-31  Erik Bunce  <elbunce@thehive.com>
9057
9058         Reviewed by Simon.
9059
9060         Add simple edit test abilities to QtLauncher.
9061
9062         * QtLauncher/main.cpp:
9063         (MainWindow::MainWindow):
9064         (MainWindow::setEditable):
9065         (MainWindow::dumpHtml):
9066
9067 2008-07-31  Alexey Proskuryakov  <ap@webkit.org>
9068
9069         Rubber-stamped by Maciej.
9070
9071         Eliminate JSLock (it was already disabled, removing the stub implementaion and all
9072         call sites now).
9073
9074         * Api/qwebframe.cpp:
9075         (QWebFrame::addToJavaScriptWindowObject):
9076
9077 2008-07-27  David Kilzer  <ddkilzer@apple.com>
9078
9079         Fix Qt build failure.
9080
9081         * Api/qwebframe.h:
9082         (QWebFrame::setScrollOffset): Make argument const.
9083
9084 2008-07-26  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
9085
9086         Reviewed by Simon Hausmann.
9087
9088         https://bugs.webkit.org/show_bug.cgi?id=20010
9089         [Qt] Add API access to scrolling
9090
9091         * Api/qwebframe.cpp: Added access to a frame scroll offset.
9092         (QWebFrame::scroll):
9093         (QWebFrame::scrollOffset):
9094         (QWebFrame::setScrollOffset):
9095         * Api/qwebframe.h:
9096
9097 2008-07-26  Daniel Jalkut  <jalkut@red-sweater.com>
9098
9099         Build fix.  Adjust to updated WebCore FrameLoader method names & signatures.
9100
9101         * Api/qwebpage.cpp:
9102         (QWebPage::triggerAction):
9103         * WebCoreSupport/FrameLoaderClientQt.cpp:
9104         (WebCore::FrameLoaderClientQt::createFrame):
9105
9106 2008-07-25  Joerg Bornemann  <joerg.bornemann@trolltech.com>
9107
9108         Reviewed by Simon.
9109
9110         Compile with QT_NO_PRINTER.
9111
9112         * QtLauncher/main.cpp:
9113         (MainWindow::MainWindow):
9114
9115 2008-07-24  Tor Arne Vestbø  <tavestbo@trolltech.com>
9116
9117         Reviewed by Simon
9118
9119         Don't insert text on keyDown event in EditorClientQt.
9120
9121         * WebCoreSupport/EditorClientQt.cpp:
9122         (WebCore::EditorClientQt::handleKeyboardEvent):
9123
9124 2008-07-04  Benjamin C Meyer  <ben@meyerhome.net>
9125
9126         Reviewed by Simon.
9127
9128         Update the webkit version in the QtWebKit useragent string to match trunk
9129
9130         * Api/qwebpage.cpp:
9131
9132 2008-07-02  Simon Hausmann  <hausmann@webkit.org>
9133
9134         Build fix.
9135
9136         * Api/qwebpage.cpp:
9137         (QWebPage::triggerAction): The signature of setBaseWritingDirection
9138         changed to take an enum instead of a string.
9139
9140 2008-07-01  Alexey Proskuryakov  <ap@webkit.org>
9141
9142         Reviewed by Darin Adler.
9143
9144         Disable JSLock for per-thread contexts.
9145
9146         * Api/qwebframe.cpp:
9147         (QWebFrame::addToJavaScriptWindowObject):
9148         Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking.
9149         Include JSLock.h, as it is no longer brought in implicitly.
9150
9151 2008-07-01  Tor Arne Vestbø  <tavestbo@trolltech.com>
9152
9153         Reviewed by Simon.
9154
9155         Don't show the tooltip instantly in the QtLauncher.
9156         
9157         Let the QWebView handle tooltips by itself, so we get
9158         the expected delay as everywhere else.
9159
9160         * QtLauncher/main.cpp:
9161
9162 2008-06-30  Simon Hausmann  <hausmann@webkit.org>
9163
9164         Rubber-stamped by Niko.
9165
9166         Removed the obsolete and unmaintained WebKitPart. The integration of
9167         QtWebKit into KDE is now done in the webkitkde component inside KDE.
9168
9169         * WebKitPart/WebKitFactory.cpp: Removed.
9170         * WebKitPart/WebKitFactory.h: Removed.
9171         * WebKitPart/WebKitPart.cpp: Removed.
9172         * WebKitPart/WebKitPart.desktop: Removed.
9173         * WebKitPart/WebKitPart.h: Removed.
9174         * WebKitPart/WebKitPart.rc: Removed.
9175         * WebKitPart/WebKitPartBrowser.rc: Removed.
9176         * WebKitPart/WebKitPartBrowserExtension.cpp: Removed.
9177         * WebKitPart/WebKitPartBrowserExtension.h: Removed.
9178         * WebKitPart/WebKitPartClient.cpp: Removed.
9179         * WebKitPart/WebKitPartClient.h: Removed.
9180         * WebKitPart/WebKitPartInterface.cpp: Removed.
9181         * WebKitPart/WebKitPartInterface.h: Removed.
9182         * WebKitPart/org.kde.WebKitPart.xml: Removed.
9183
9184 2008-06-24  Simon Hausmann  <hausmann@webkit.org>
9185
9186         Fix the Qt build, added missing include for RuntimeObjectImp.
9187
9188         * Api/qwebframe.cpp:
9189
9190 2008-06-23  Benjamin C Meyer  <ben@meyerhome.net>
9191
9192         Reviewed by Simon.
9193
9194         Add function to retrieve the standard context menu
9195
9196 2008-06-20  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
9197
9198         Reviewed by Simon.
9199
9200         https://bugs.webkit.org/show_bug.cgi?id=19082
9201         [Qt] Full-page plugins not activated
9202
9203         * WebCoreSupport/FrameLoaderClientQt.cpp:
9204         (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a
9205         plugin present, as it can be created during the function.
9206
9207 2008-06-20  Marco Barisione  <marco.barisione@collabora.co.uk>
9208
9209         Reviewed by Simon.
9210
9211         https://bugs.webkit.org/show_bug.cgi?id=19082
9212         [Qt] Full-page plugins not activated
9213
9214         * WebCoreSupport/FrameLoaderClientQt.cpp:
9215         (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the
9216         MIME type is supported by a plugin.
9217
9218 2008-06-18  Alexey Proskuryakov  <ap@webkit.org>
9219
9220         Reviewed by Darin Adler.
9221
9222         Prepare JavaScript heap for being per-thread.
9223
9224         * Api/qwebframe.cpp:
9225         (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build.
9226
9227 2008-06-18  Julien Chaffraix  <jchaffraix@webkit.org>
9228
9229         Qt Build fix after r34627.
9230
9231         * WebCoreSupport/FrameLoaderClientQt.cpp:
9232         (WebCore::FrameLoaderClientQt::createPlugin):
9233
9234 2008-06-15  Darin Adler  <darin@apple.com>
9235
9236         - give Frame object functions shorter names: scriptProxy() -> script(),
9237           selectionController() -> selection(), animationController() -> animation()
9238
9239         * Api/qwebframe.cpp:
9240         (QWebFrame::evaluateJavaScript):
9241         * Api/qwebpage.cpp:
9242         (QWebPagePrivate::focusInEvent):
9243         (QWebPagePrivate::focusOutEvent):
9244         (QWebPage::inputMethodQuery):
9245         * WebCoreSupport/EditorClientQt.cpp:
9246         (WebCore::EditorClientQt::handleKeyboardEvent):
9247
9248 2008-06-15  Darin Adler  <darin@apple.com>
9249
9250         - new names for more JavaScriptCore files
9251
9252         * WebKit_pch.h:
9253
9254 2008-06-15  Darin Adler  <darin@apple.com>
9255
9256         - new names for a few key JavaScriptCore files
9257
9258         * Api/qwebframe.cpp:
9259
9260 2008-06-14  Darin Adler  <darin@apple.com>
9261
9262         Rubber stamped by Sam.
9263
9264         - new names for kjs_binding.h and kjs_proxy.h
9265
9266         * Api/qwebframe.cpp:
9267         (QWebFrame::evaluateJavaScript):
9268         * WebKit_pch.h:
9269
9270 2008-06-14  Darin Adler  <darin@apple.com>
9271
9272         - fix build
9273
9274         * Api/qwebframe.cpp:
9275         (QWebFramePrivate::init): Added a missing semicolon.
9276
9277 2008-06-14  Darin Adler  <darin@apple.com>
9278
9279         Reviewed by Sam.
9280
9281         - more https://bugs.webkit.org/show_bug.cgi?id=17257
9282           start ref counts at 1 instead of 0 for speed
9283
9284         * Api/qwebframe.cpp:
9285         (QWebFramePrivate::init): Use create instead of new.
9286         * WebCoreSupport/FrameLoaderClientQt.cpp:
9287         (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto.
9288
9289 2008-06-13  Darin Adler  <darin@apple.com>
9290
9291         - try to fix build
9292
9293         * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument.
9294
9295 2008-06-13  Darin Adler  <darin@apple.com>
9296
9297         Reviewed by John Sullivan.
9298
9299         - updated for addition of FormState argument to action policy functions
9300
9301         * WebCoreSupport/FrameLoaderClientQt.cpp:
9302         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
9303         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
9304
9305 2008-06-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
9306
9307         Reviewed by Simon.
9308
9309         Fix left-click and middle-click mouse event are not properly accepted.
9310         
9311         When copying or pasting text using left or middle-click, the event must be
9312         accepted so that it will not be potentially processed further by the parent
9313         and/or sub-classed widget.
9314         
9315
9316         * Api/qwebpage.cpp:
9317         (QWebPagePrivate::mouseReleaseEvent):
9318
9319 2008-06-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
9320
9321         Reviewed by Simon.
9322
9323         Fix input element does not accept character typed in using AltGr.
9324
9325         EditorClient is modified to catch AltGr and Ctrl+Alt key combination.
9326         This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry
9327
9328         * WebCoreSupport/EditorClientQt.cpp:
9329         (WebCore::EditorClientQt::handleKeyboardEvent):
9330
9331 2008-05-26  Jonathon Jongsma  <jonathon.jongsma@collabora.co.uk>
9332
9333         Reviewed by Simon.
9334
9335         https://bugs.webkit.org/show_bug.cgi?id=19323
9336
9337         Implemented the QWebPage::editable property.
9338
9339         Small documentation fixes by Simon.
9340
9341         * Api/qwebpage.cpp:
9342         (QWebPagePrivate::QWebPagePrivate):
9343         (QWebPage::setEditable):
9344         (QWebPage::isEditable):
9345         * Api/qwebpage.h:
9346         * Api/qwebpage_p.h: implement the editable property and add API so that
9347         applications can switch edit mode on and off for a particular QWebPage
9348         * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the
9349         QWebPage instead of always returning false
9350
9351 2008-06-09  Tor Arne Vestbø  <tavestbo@trolltech.com>
9352
9353         Reviewed by Simon
9354
9355         Make sure web action in context menus have the right enablement,
9356         while not messing up other web actions not included in the menu.
9357
9358         * Api/qwebpage.cpp:
9359         (QWebPagePrivate::createContextMenu):
9360         (QWebPage::updatePositionDependentActions):
9361         * Api/qwebpage_p.h:
9362
9363 2008-06-09  Benjamin C Meyer  <ben@meyerhome.net>
9364
9365         Reviewed by Simon
9366
9367         Add Shift-Space shortcut to go up one screen, the opposite of Space
9368         which goes down one screen.
9369
9370         * Api/qwebpage.cpp:
9371         (QWebPagePrivate::handleScrolling):
9372
9373 2008-06-04  Tor Arne Vestbø  <tavestbo@trolltech.com>
9374
9375         Reviewed by Simon.
9376
9377         Fix a failing assertion when calling QWebFrame::evaluateJavaScript.
9378
9379         The starting line number has to be 1 instead of 0.
9380
9381         * Api/qwebframe.cpp:
9382         (QWebFrame::evaluateJavaScript):
9383
9384 2008-06-03  Jonathon Jongsma  <jonathon.jongsma@collabora.co.uk>
9385
9386         Reviewed by Darin Adler.
9387
9388         * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains().  This
9389         function is not used anywhere internally and is only a convenience
9390         function that can still be accomplished using
9391         QWebHistoryInterface::historyContains();
9392
9393 2008-05-29  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
9394
9395         Reviewed by Simon.
9396
9397         Doc: Mention the requirement of a QApplication with QtWebKit
9398         
9399
9400         * Api/qwebview.cpp:
9401
9402 2008-05-29  David Boddie  <dboddie@trolltech.com>
9403
9404         Reviewed by Simon.
9405
9406         Some clarifications for the documentation.
9407         
9408
9409         * Api/qwebpage.cpp:
9410         * Api/qwebpluginfactory.cpp:
9411
9412 2008-05-27  Ariya Hidayat  <ariya.hidayat@trolltech.com>
9413
9414         Reviewed by Simon.
9415
9416         Fix web inspector does not returns its state properly after its window is minimized.
9417
9418         As hinted by Holger, InspectorClientView::hideEvent is not needed.
9419         This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967
9420
9421         * WebCoreSupport/InspectorClientQt.cpp:
9422
9423 2008-05-21  Siraj Razick  <siraj.razick@collabora.co.uk>
9424
9425         Reviewed by Simon.
9426
9427         Add <param name="classid"/> support for application/x-qt-object plugins
9428
9429         * WebCoreSupport/FrameLoaderClientQt.cpp:
9430         (WebCore::FrameLoaderClientQt::createPlugin):
9431
9432 2008-05-13  Andy Shaw  <andy@trolltech.com>
9433
9434         Reviewed by Simon.
9435
9436         Fixes: QWebHistory::forward() should go forwards and not back
9437
9438         * Api/qwebhistory.cpp:
9439
9440 2008-05-12  Alexey Proskuryakov  <ap@webkit.org>
9441
9442         Roll out recent  threading changes (r32807, r32810, r32819, r32822) to simplify
9443         SquirrelFish merging.
9444
9445         * Api/qwebframe.cpp:
9446         (QWebFrame::addToJavaScriptWindowObject):
9447
9448 2008-05-09  Thiago Macieira  <tjmaciei@trolltech.com>
9449
9450         Reviewed by Simon.
9451
9452         Fix bad includes in QtWebKit public headers.
9453         
9454         Make sure to include qglobal.h using the QtCore prefix so that an explicit
9455         include/QtCore is not needed in the application's build system. Also make sure
9456         that qwebsettings.h includes the local qwebkitglobal.h.
9457         
9458
9459         * Api/qwebkitglobal.h:
9460         * Api/qwebsettings.h:
9461
9462 2008-05-08  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
9463
9464         Reviewed by Simon.
9465
9466         https://bugs.webkit.org/show_bug.cgi?id=18935
9467
9468         Based on work by Sriram Neelakandan for the Gtk port.
9469
9470         * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize
9471         m_hasSentResponseToPlugin.
9472         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
9473         (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
9474
9475 2008-05-08  Warwick Allison  <warwick@trolltech.com>
9476
9477         Reviewed by Simon.
9478
9479         Fixes: WebKit expects initial input method state to be *disabled*.
9480         
9481         At least QWS does not need the initial input method state to be forced to
9482         enabled, but other platforms (esp. X11) do. Until fixed/tested on those
9483         platforms, this is specific to QWS.
9484         
9485
9486         * Api/qwebview.cpp:
9487         (QWebView::QWebView):
9488
9489 2008-05-06  Simon Hausmann  <hausmann@webkit.org>
9490
9491         Reviewed by Holger.
9492
9493         Fix logic error in QWebHitTestResult::isNull().
9494
9495         * Api/qwebframe.cpp:
9496
9497 2008-05-02  Benjamin Meyer  <bmeyer@trolltech.com>
9498
9499         Reviewed by Simon.
9500
9501         Doc: Mention that you have to enable plugins in QWebSettings for them to work.
9502
9503         * Api/qwebpage.cpp:
9504
9505 2008-05-02  Simon Hausmann  <hausmann@webkit.org>
9506
9507         Fix the Qt build, ExecState is required here.
9508
9509         * Api/qwebframe.cpp:
9510         (QWebFrame::addToJavaScriptWindowObject):
9511
9512 2008-05-01  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
9513
9514         Reviewed by Alp Toker.
9515         Qt parts OK'ed by Simon Hausmann.
9516
9517         https://bugs.webkit.org/show_bug.cgi?id=14750
9518         Added support for NPAPI plugins on Gtk and Qt-x11 ports.
9519
9520         * WebCoreSupport/FrameLoaderClientQt.cpp:
9521         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
9522         (WebCore::FrameLoaderClientQt::finishedLoading):
9523         (WebCore::FrameLoaderClientQt::setMainDocumentError):
9524         (WebCore::FrameLoaderClientQt::committedLoad):
9525         (WebCore::FrameLoaderClientQt::objectContentType):
9526         (WebCore::FrameLoaderClientQt::createPlugin):
9527         (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
9528         * WebCoreSupport/FrameLoaderClientQt.h:
9529
9530 2008-04-30  Julien Chaffraix  <jchaffraix@webkit.org>
9531
9532         Qt 4.3 build fix.
9533
9534         Fixes a brace error that made Qt 4.4 build but not Qt 4.3.
9535  
9536         * Api/qwebview.cpp:
9537         (QWebView::event):
9538
9539 2008-04-30  Tor Arne Vestbø  <tavestbo@trolltech.com>
9540
9541         Reviewed by Simon.
9542
9543         In focusIn and focusOut event always update the active state of the
9544         focus controller. Fixes ~400 failing layout tests due to missing
9545         editing callbacks that relied on the correct focus.
9546
9547         * Api/qwebpage.cpp:
9548         (QWebPagePrivate::focusInEvent):
9549         (QWebPagePrivate::focusOutEvent):
9550
9551 2008-04-29  Lincoln Ramsay  <lincoln.ramsay@trolltech.com>
9552
9553         Reviewed by Simon.
9554
9555         Fix compilation with QT_NO_PRINTER
9556         
9557
9558         * Api/qwebview.cpp:
9559         (QWebView::print):
9560
9561 2008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
9562
9563         Reviewed by Simon.
9564
9565         Ensure that relative URL is converted to absolute URL.
9566         
9567         This is necessary because loading a relative URL is not really supported
9568         (the web page may load, but the subsequent URLs for images and links will
9569         not be resolved properly).
9570         This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484
9571         
9572
9573         * Api/qwebframe.cpp:
9574         (ensureAbsoluteUrl):
9575         (QWebFrame::setUrl):
9576         (QWebFrame::load):
9577
9578 2008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
9579
9580         Reviewed by Simon.
9581
9582         Simplification of Qt Launcher (no animation and use standard progress bar widget)
9583         
9584         Status bar shows the hovered link without any animation. Progress bar just uses the standard QProgressBar (no custom widget). The launcher is leaner and faster to use under the debugger and/or valgrind.
9585         
9586
9587         * QtLauncher/main.cpp:
9588         (MainWindow::MainWindow):
9589
9590 2008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
9591
9592         Reviewed by Simon.
9593
9594         Update the cursor when the frame/page loading is finished.
9595         
9596         This fixes https://bugs.webkit.org/show_bug.cgi?id=18712
9597         
9598
9599         * WebCoreSupport/FrameLoaderClientQt.cpp:
9600         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
9601         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
9602
9603 2008-04-29  Simon Hausmann  <shausman@trolltech.com>
9604
9605         Reviewed by Holger.
9606
9607         Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links.
9608         
9609         Call QWebPage::acceptNavigationRequest when the creation of a new window with
9610         URL is requested. The frame pointer is set to null in this case.
9611         
9612
9613         * Api/qwebpage.cpp:
9614         (QWebPage::setViewportSize):
9615         * WebCoreSupport/FrameLoaderClientQt.cpp:
9616         (WebCore::FrameLoaderClientQt::startDownload):
9617         (WebCore::FrameLoaderClientQt::createFrame):
9618
9619 2008-04-29  Holger Hans Peter Freyther  <zecke@selfish.org>
9620
9621         Reviewed by Simon.
9622
9623         Use the WebCore facility to do the scrolling. Move some code around.
9624
9625         * Api/qwebpage.cpp:
9626         (QWebPagePrivate::keyPressEvent):
9627         (QWebPagePrivate::shortcutOverrideEvent):
9628         (QWebPagePrivate::handleScrolling):
9629         * Api/qwebpage_p.h:
9630
9631 2008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
9632
9633         Reviewed by Simon.
9634
9635         fix potential crash when loading image(s)
9636
9637         Crash may occur. If compiled with 4.3, the variable is not initialized.
9638
9639         * Api/qwebpage.cpp:
9640         (QWebPagePrivate::QWebPagePrivate):
9641
9642 2008-04-29  Holger Hans Peter Freyther  <zecke@selfish.org>
9643
9644         Reviewed by Simon.
9645
9646         Calling QWebView::setCursor will override the WebCore Cursor.
9647         Calling QWebView::setCursor will override the WebCore Cursor using
9648         QWidget::unsetCursor will revert to the WebCore Cursor.
9649
9650         For detecting the unset we have to compare the shape of the
9651         cursor to the default arrow. Qt::WA_SetCursor can not be used
9652         as it is set unconditionally but conditionally removed.
9653
9654         Calling QWidget::setCursor will immediately send the CursorChange
9655         event. We listen to this event to decide if we currently use a
9656         WebCore cursor, got a cursor from outside, or revert to the default.
9657
9658         This should be race free and work reliable, the manual test for this
9659         is WebCore/manual-tests/cursor.html
9660
9661         * Api/qwebpage.cpp:
9662         (SetCursorEvent::SetCursorEvent):
9663         * Api/qwebpage_p.h:
9664         * Api/qwebview.cpp:
9665         (QWebViewPrivate::QWebViewPrivate):
9666         (QWebViewPrivate::setCursor):
9667         (QWebView::QWebView):
9668         (QWebView::event):
9669
9670 2008-04-29  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
9671
9672         Reviewed by Simon.
9673
9674         Documentation fixes:
9675
9676         - Fixed a qdoc warning
9677         - Mention that fav icons can be of arbitrary size
9678         - Fix signature of QWebPage::acceptNavigationRequest show in the documentation
9679
9680         * Api/qwebframe.cpp:
9681         * Api/qwebpage.cpp:
9682         * Api/qwebpage.h:
9683         * Api/qwebsettings.cpp:
9684         * Api/qwebview.cpp:
9685
9686 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
9687
9688         Reviewed by Simon.
9689
9690         Fix QWebView::loadFinished isn't always emitted
9691
9692         Replaced loadDone() with loadFinished(bool) and moved the signals for progress
9693         tracking (start, progres, and finish) to the page instead of the frame. This
9694         ensures that we emit loadFinished even when a subframe started the actual load.
9695
9696         This causes a few regressions in the layout tests that we for now accept for
9697         the sake of the correct API. Layout tests we can fix any time though, including
9698         patch release, the API however we can't change anymore in patch releases.
9699
9700         * Api/qwebframe.cpp:
9701         * Api/qwebframe.h:
9702         * Api/qwebpage.cpp:
9703         (QWebPage::totalBytes):
9704         * Api/qwebpage.h:
9705         * Api/qwebview.cpp:
9706         (QWebView::setPage):
9707         * Api/qwebview.h:
9708         * QtLauncher/main.cpp:
9709         (MainWindow::MainWindow):
9710         * WebCoreSupport/FrameLoaderClientQt.cpp:
9711         (drtDescriptionSuitableForTestResult):
9712         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
9713         (WebCore::FrameLoaderClientQt::setFrame):
9714         (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
9715         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
9716         (WebCore::FrameLoaderClientQt::willChangeTitle):
9717         (WebCore::FrameLoaderClientQt::createDocumentLoader):
9718         (WebCore::FrameLoaderClientQt::download):
9719         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
9720         * WebCoreSupport/FrameLoaderClientQt.h:
9721
9722 2008-04-28  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
9723
9724         Reviewed by Simon.
9725
9726         Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame
9727
9728         * Api/qwebframe.cpp:
9729         * Api/qwebpluginfactory.cpp:
9730         * Api/qwebsettings.cpp:
9731         (QWebSettings::QWebSettings):
9732         (QWebSettings::setUserStyleSheetUrl):
9733         (QWebSettings::iconForUrl):
9734         (QWebSettings::webGraphic):
9735         (QWebSettings::maximumPagesInCache):
9736         (QWebSettings::setFontFamily):
9737         (QWebSettings::resetFontFamily):
9738         (QWebSettings::testAttribute):
9739         (QWebSettings::resetAttribute):
9740
9741 2008-04-28  Ariya Hidayat  <ahidayat@trolltech.com>
9742
9743         Reviewed by Simon.
9744
9745         Fix document/frame title not reset when loading a new URI
9746         
9747         We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle()
9748         will be called very soon with the correct title.
9749         This properly resets the title when we navigate to a URI without a title.
9750         
9751
9752         * WebCoreSupport/FrameLoaderClientQt.cpp:
9753
9754 2008-04-28  David Boddie  <dboddie@trolltech.com>
9755
9756         Reviewed by Simon.
9757
9758         Minor documentation changes.
9759
9760         * Api/qwebview.cpp:
9761
9762 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
9763
9764         Reviewed by Simon.
9765
9766         Prevent middle-click from triggering open URL from clipboard when the event has already been accepted.
9767         
9768
9769         * Api/qwebpage.cpp:
9770         (QWebPagePrivate::mouseMoveEvent):
9771         (QWebPagePrivate::mousePressEvent):
9772         (QWebPagePrivate::mouseDoubleClickEvent):
9773         (QWebPagePrivate::mouseTripleClickEvent):
9774         (QWebPagePrivate::mouseReleaseEvent):
9775
9776 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
9777
9778         Reviewed by Simon.
9779
9780         Fix scrollbar behavior in QtWebKit to match QScrollBar.
9781         
9782         Right click context menu is now supported, along with
9783         middle click to center slider thumb over mouse cursor.
9784         
9785
9786         * Api/qwebpage.cpp:
9787         (QWebPage::linkDelegationPolicy):
9788
9789 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
9790
9791         Reviewed by Simon.
9792
9793         Implemented channel-based logging for QtWebKit.
9794
9795         Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable.
9796         Warnings for notImplemented() is still output by default, but can be disabled
9797         by setting DISABLE_NI_WARNINGS=1.
9798
9799         * Api/qwebpage.cpp:
9800         (QWebPagePrivate::QWebPagePrivate):
9801
9802 2008-04-28  Simon Hausmann  <shausman@trolltech.com>
9803
9804         Rubber-stamped by Lars
9805
9806         Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API.
9807
9808         * Api/qwebframe.cpp:
9809         * Api/qwebframe.h:
9810         * Api/qwebview.cpp:
9811         * Api/qwebview.h:
9812
9813 2008-04-28  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
9814
9815         Reviewed by Simon.
9816
9817         Doc - adding more documentation to QWebFrame, QWebPage and QWebView
9818         
9819
9820         * Api/qwebframe.cpp:
9821         * Api/qwebpage.cpp:
9822         * Api/qwebview.cpp:
9823         (QWebView::stop):
9824         (QWebView::back):
9825         (QWebView::changeEvent):
9826
9827 2008-04-28  Simon Hausmann  <shausman@trolltech.com>
9828
9829         Reviewed by Holger.
9830
9831         Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens
9832         
9833         Give the popups the right parent widget and the right coordinates relative within the parent.
9834         
9835
9836         * Api/qwebpage.cpp:
9837
9838 2008-04-28  Benjamin Meyer  <bmeyer@trolltech.com>
9839
9840         Reviewed by Simon.
9841
9842         Doc: Add see also's (and a few minor whitespace/typo corrections)
9843         
9844
9845         * Api/qwebframe.cpp:
9846         (QWebFrame::~QWebFrame):
9847         (QWebFrame::setHtml):
9848         (QWebFrame::setContent):
9849         (QWebFrame::parentFrame):
9850         (QWebFrame::childFrames):
9851         (QWebFrame::setScrollBarValue):
9852         (QWebFrame::scrollBarValue):
9853         (QWebFrame::scrollBarMaximum):
9854         (QWebFrame::scrollBarMinimum):
9855         (QWebFrame::render):
9856         (QWebFrame::pos):
9857         (QWebFrame::geometry):
9858         (QWebFrame::print):
9859         (QWebFrame::evaluateJavaScript):
9860         * Api/qwebpage.cpp:
9861         (QWebPagePrivate::mousePressEvent):
9862         (QWebPagePrivate::mouseDoubleClickEvent):
9863         (QWebPage::~QWebPage):
9864         (QWebPage::javaScriptPrompt):
9865         (openNewWindow):
9866         (QWebPage::setViewportSize):
9867         (QWebPage::acceptNavigationRequest):
9868         (QWebPage::action):
9869         (QWebPage::userAgentForUrl):
9870         (QWebPagePrivate::_q_onLoadProgressChanged):
9871         * Api/qwebview.cpp:
9872         (QWebView::event):
9873
9874 2008-04-28  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
9875
9876         Reviewed by Simon.
9877
9878         Submitting more documentation for QWebPage
9879         
9880
9881         * Api/qwebpage.cpp:
9882
9883 2008-04-28  Lincoln Ramsay  <lincoln.ramsay@trolltech.com>
9884
9885         Reviewed by Simon.
9886
9887         Compile when QT_NO_CLIPBOARD is defined.
9888         
9889
9890         * Api/qwebpage.cpp:
9891         (QWebPage::triggerAction):
9892
9893 2008-04-28  David Boddie  <dboddie@trolltech.com>
9894
9895         Reviewed by Simon.
9896
9897         Minor documentation fix.
9898         
9899
9900         * Api/qwebhistory.cpp:
9901
9902 2008-04-28  Holger Hans Peter Freyther  <zecke@selfish.org>
9903
9904         Reviewed by Simon.
9905
9906         Implement QWebPage::createPlugin
9907         
9908         The code is coming from the demo browser and needed here
9909         for some manual tests.
9910         
9911
9912         * QtLauncher/QtLauncher.pro:
9913         * QtLauncher/main.cpp:
9914         (WebPage::createPlugin):
9915
9916 2008-04-28  Simon Hausmann  <hausmann@webkit.org>
9917
9918         Qt/Win build fix. Include config.h to get the implicit MathExtras.h
9919         inclusion correct with regards to rand_s.
9920
9921         * Api/qwebhistory.cpp:
9922
9923 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
9924
9925         Reviewed by Simon.
9926
9927         https://bugs.webkit.org/show_bug.cgi?id=18713
9928
9929         Fix scrollbar painting issues in QtWebKit.
9930
9931         Hovering and click-draging outside of the scrollbar would
9932         produce unexpected and inconcistent results. We also didn't
9933         pass on leave-events to the underlying WebKit code, which
9934         was nessecary to implement the paint fix.
9935
9936         Note: The event handling of the Leave event should be moved
9937         out of QWebView::event() and into a proper override for 4.5.
9938
9939         * Api/qwebpage.cpp:
9940         (QWebPagePrivate::leaveEvent):
9941         * Api/qwebpage_p.h:
9942         * Api/qwebview.cpp:
9943         (QWebView::event):
9944
9945 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
9946
9947         Reviewed by Simon, Holger.
9948
9949         Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus.
9950
9951         * Correctly de- and reactivate the focused frame in focusOut/focusInEvent
9952         without telling the focus controller. We don't want to change the focused frame
9953         - the controller has to remember it in fact - but instead just deactivate the
9954         frame for correct painting as RenderTheme::isFocused() uses the activation
9955         state of the frame.
9956
9957         * Api/qwebpage.cpp:
9958         (QWebPagePrivate::focusInEvent):
9959         (QWebPagePrivate::focusOutEvent):
9960
9961 2008-04-25  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
9962
9963         Reviewed by Simon.
9964
9965         completed documentation for the Detailed Description section for QWebView
9966         
9967
9968         * Api/qwebview.cpp:
9969
9970 2008-04-25  Denis Dzyubenko  <denis.dzyubenko@trolltech.com>
9971
9972         Reviewed by Simon.
9973
9974         Fixed the way QWebHistory works - when you call back(), forward() or goToItem() functions it changes the current item in history *and* loads the corresponding page.
9975         
9976
9977         * Api/qwebhistory.cpp:
9978         (QWebHistory::back):
9979         (QWebHistory::forward):
9980         (QWebHistory::goToItem):
9981
9982 2008-04-25  Tor Arne Vestbø  <tavestbo@trolltech.com>
9983
9984         Reviewed by Simon.
9985
9986         Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest().
9987         
9988
9989         * WebCoreSupport/FrameLoaderClientQt.cpp:
9990         (WebCore::FrameLoaderClientQt::createFrame):
9991
9992 2008-04-25  Simon Hausmann  <hausmann@webkit.org>
9993
9994         Reviewed by Holger.
9995
9996         When pressing backspace in a line edit in a webpage we should not go back to the previous page.
9997         
9998         The shortcut for back on Windows is backspace. Implemented shortcut override
9999         handling in QWebView/QWebPage to prevent this.
10000         
10001
10002         * Api/qwebpage.cpp:
10003         (QWebPagePrivate::wheelEvent):
10004         (editorActionForKeyEvent):
10005         (QWebPagePrivate::keyPressEvent):
10006         (QWebPagePrivate::inputMethodEvent):
10007         (QWebPagePrivate::shortcutOverrideEvent):
10008         (QWebPage::event):
10009         * Api/qwebpage_p.h:
10010         * Api/qwebview.cpp:
10011         (QWebView::event):
10012
10013 2008-04-25  Ariya Hidayat  <ariya.hidayat@trolltech.com>
10014
10015         Reviewed by Simon.
10016
10017         Fix triple-clicking does not work in a web page
10018         
10019
10020         * Api/qwebpage.cpp:
10021         (QWebPagePrivate::updateEditorActions):
10022         (QWebPagePrivate::timerEvent):
10023         (QWebPagePrivate::mousePressEvent):
10024         (QWebPagePrivate::mouseDoubleClickEvent):
10025         (QWebPage::undoStack):
10026         * Api/qwebpage_p.h:
10027
10028 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
10029
10030         Reviewed by Simon.
10031
10032         When pressing Ctrl-Up the keyboard modifiers could include other modifiers
10033         
10034
10035         * Api/qwebpage.cpp:
10036         (QWebPagePrivate::keyPressEvent):
10037
10038 2008-04-25  Tor Arne Vestbø  <tavestbo@trolltech.com>
10039
10040         Reviewed by Simon.
10041
10042         Fix handling of Javascript's confirm() function in QtWebKit.
10043         
10044
10045         * Api/qwebpage.cpp:
10046
10047 2008-04-25  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
10048
10049         Reviewed by Simon.
10050
10051         Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity
10052         
10053
10054         * Api/qwebview.cpp:
10055
10056 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
10057
10058         Reviewed by Simon.
10059
10060         QWebPage: missing signal when window.print() is requested from javascript
10061         
10062
10063         * Api/qwebpage.cpp:
10064         * Api/qwebpage.h:
10065         * WebCoreSupport/ChromeClientQt.cpp:
10066
10067 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
10068
10069         Reviewed by Simon.
10070
10071         Fixes: "Save Image" action wasn't doing anything.
10072         
10073
10074         * Api/qwebpage.cpp:
10075         (QWebPage::triggerAction):
10076
10077 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
10078
10079         Reviewed by Simon.
10080
10081         Apply key event changes to the current frame, not the main frame.
10082         
10083         Example: hitting space bar should scroll current frame, not the main frame
10084         which doesn't even have a scrollbar.
10085         
10086
10087         * Api/qwebpage.cpp:
10088         (QWebPagePrivate::keyPressEvent):
10089
10090 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
10091
10092         Reviewed by Simon.
10093
10094         Fixes: QWebFrame crash when fetching the icon
10095
10096         Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock.
10097
10098         * Api/qwebframe.cpp:
10099
10100 2008-04-25  Warwick Allison  <warwick@trolltech.com>
10101
10102         Reviewed by Simon.
10103
10104         Fixes: Scrollbars did not report correct maximum.
10105
10106         * Api/qwebframe.cpp:
10107
10108 2008-04-25  David Boddie <dboddie@trolltech.com>
10109
10110         Reviewed by Simon.
10111
10112         Documentation updates for some of the QWeb classes
10113
10114         * Api/qwebframe.cpp:
10115         * Api/qwebhistory.cpp:
10116         * Api/qwebsettings.cpp:
10117         * Api/qwebview.cpp:
10118
10119 2008-04-25  Holger Hans Peter Freyther  <zecke@selfish.org>
10120
10121         Reviewed by Simon.
10122
10123         Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html
10124         
10125         Similar to Editing and Frameloading we do the dumping within WebCore
10126         
10127
10128         * WebCoreSupport/FrameLoaderClientQt.cpp:
10129         (qt_dump_frame_loader):
10130         (qt_dump_resource_load_callbacks):
10131         (drtDescriptionSuitableForTestResult):
10132         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
10133         (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
10134         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
10135
10136 2008-04-24  Anders Carlsson  <andersca@apple.com>
10137
10138         Reviewed by Sam.
10139
10140         Change some String arguments to be const references instead.
10141
10142         * WebCoreSupport/EditorClientQt.cpp:
10143         (WebCore::EditorClientQt::shouldInsertText):
10144         * WebCoreSupport/EditorClientQt.h:
10145
10146 2008-04-24  Holger Hans Peter Freyther  <zecke@selfish.org>
10147
10148         Reviewed by Simon.
10149
10150         Cosmetic changes to make the code more readable.
10151         -Early exit if we don't have a webview
10152         -handle the empty tooltip and non-empty tooltip case separately
10153         
10154
10155         * WebCoreSupport/ChromeClientQt.cpp:
10156         (WebCore::ChromeClientQt::setToolTip):
10157         (WebCore::ChromeClientQt::print):
10158
10159 2008-04-24  Paul Olav Tvete  <paul@trolltech.com>
10160
10161         Reviewed by Simon.
10162
10163         Automatically wrap tooltip text and hide a shown tooltip when it is empty.
10164
10165         QWidget::setTooltip("") will still show the old tooltip for up to 10 seconds.
10166         Workaround as discussed with Matthias.
10167
10168         * WebCoreSupport/ChromeClientQt.cpp:
10169         (WebCore::ChromeClientQt::setToolTip):
10170
10171 2008-04-24  Holger Hans Peter Freyther  <zecke@selfish.org>
10172
10173         Reviewed by Simon.
10174
10175         Allow to disable caching completeley by calling setObjectCacheCapacities(0, 0, 0)
10176
10177         * Api/qwebsettings.cpp:
10178         (QWebSettings::setObjectCacheCapacities):
10179
10180 2008-04-24  Benjamin Meyer  <bmeyer@trolltech.com>
10181
10182         Reviewed by Simon.
10183
10184         Improve keyboard scrolling
10185         
10186         Match Down/Up keys scroll distance with Safari (i.e. faster) and add Home and End shortcuts to scroll to the top/botom.
10187         
10188
10189         * Api/qwebpage.cpp:
10190         (QWebPagePrivate::keyPressEvent):
10191
10192 2008-04-24  Olivier Goffart  <ogoffart@trolltech.com>
10193
10194         Reviewed by Simon.
10195
10196         Fix various compiler warnings in the Qt port.
10197
10198         * Api/qwebframe.cpp:
10199         (QWebFrame::print):
10200         * Api/qwebsettings.cpp:
10201         (graphics):
10202         * WebCoreSupport/FrameLoaderClientQt.cpp:
10203         (WebCore::FrameLoaderClientQt::createPlugin):
10204
10205 2008-04-24  Tor Arne Vestbø  <tavestbo@trolltech.com>
10206
10207         Reviewed by Simon.
10208
10209         Cleaned up copyright headers (removed misplaced class descriptions and
10210         fixed inconsistent whitespace and indentation).
10211
10212         * Api/qwebframe.cpp:
10213         * Api/qwebframe.h:
10214         * Api/qwebframe_p.h:
10215         * Api/qwebhistory.cpp:
10216         * Api/qwebhistory.h:
10217         * Api/qwebhistory_p.h:
10218         * Api/qwebhistoryinterface.cpp:
10219         * Api/qwebhistoryinterface.h:
10220         * Api/qwebkitglobal.h:
10221         * Api/qwebnetworkinterface.cpp:
10222         * Api/qwebnetworkinterface.h:
10223         * Api/qwebnetworkinterface_p.h:
10224         * Api/qwebpage.cpp:
10225         * Api/qwebpage.h:
10226         * Api/qwebpage_p.h:
10227         * Api/qwebpluginfactory.cpp:
10228         * Api/qwebpluginfactory.h:
10229         * Api/qwebsettings.cpp:
10230         * Api/qwebsettings.h:
10231         * Api/qwebview.h:
10232         * QtLauncher/main.cpp:
10233
10234 2008-04-24  Tor Arne Vestbø  <tavestbo@trolltech.com>
10235
10236         Reviewed by Simon.
10237
10238         Added basic URL guessing to QtLauncher (same as in the demo browser).
10239         
10240
10241         * QtLauncher/main.cpp:
10242         (MainWindow::changeLocation):
10243         (MainWindow::guessUrlFromString):
10244
10245 2008-04-24  Benjamin Meyer  <bmeyer@trolltech.com>
10246
10247         Reviewed by Simon Hausmann <hausmann@webkit.org>.
10248
10249         Prevent double deletions of the default web interface.
10250         
10251
10252         * Api/qwebhistoryinterface.cpp:
10253         (gCleanupInterface):
10254         (QWebHistoryInterface::QWebHistoryInterface):
10255
10256 2008-04-23  Simon Hausmann  <hausmann@webkit.org>
10257
10258         Fix compilation against Qt 4.3
10259
10260         * Api/qwebpage.cpp:
10261         (QWebPage::userAgentForUrl):
10262         * QtLauncher/main.cpp:
10263         (main):
10264
10265 2008-04-23  Holger Hans Peter Freyther  <zecke@selfish.org>
10266
10267         Reviewed by Simon.
10268
10269         * Make sure the "Inspect Element" item gets added to the ContextMenu, a call
10270         to ContextMenu::populate() is not adding it, the ContextMenuController does
10271         add it after the call to populate(). Do that as well.
10272         
10273
10274         * Api/qwebpage.cpp:
10275         (QWebPage::updatePositionDependentActions):
10276
10277 2008-04-23  Simon Hausmann  <hausmann@webkit.org>
10278
10279         Reviewed by Holger.
10280
10281         Fix crashes on window.close().
10282
10283         We should not delete the QWebPage object in the ChromeClient but leave it up to
10284         the application when and whether to delete a browser window. For this we now
10285         emit the windowCloseRequested() signal.
10286
10287         Done with Tor Arne.
10288
10289         * Api/qwebpage.cpp:
10290         * Api/qwebpage.h:
10291         * QtLauncher/main.cpp:
10292         (MainWindow::MainWindow):
10293         * WebCoreSupport/ChromeClientQt.cpp:
10294
10295 2008-04-23  Simon Hausmann  <hausmann@webkit.org>
10296
10297         Reviewed by Holger.
10298
10299         Fix parsing of external scripts/stylesheets when using setHtml(const QString &html).
10300
10301         We used to pass the html string to the frameloader in utf-16, which also meant that the default
10302         encoding of external scripts/stylesheets became utf-16. That doesn't make sense, so assume utf-8
10303         by default. This is now also documented.
10304
10305         * Api/qwebframe.cpp:
10306         (QWebFrame::setHtml):
10307         * Api/qwebview.cpp:
10308
10309 2008-04-23  Benjamin Meyer  <bmeyer@trolltech.com>
10310
10311         Reviewed by Simon.
10312
10313         Fixes background color propagation when using a custom QWebPage
10314         
10315         Set the palette in setPage(), not during the creation on-demand.
10316         
10317
10318         * Api/qwebview.cpp:
10319         (QWebView::page):
10320         (QWebView::setPage):
10321
10322 2008-04-23  Benjamin Meyer  <bmeyer@trolltech.com>
10323
10324         Reviewed by Simon.
10325
10326         Fix the user agent on the mac to be BSD4
10327         
10328         Put Q_OS_DARWIN before Q_OS_BSD4 sense they are both defined on the mac
10329         
10330
10331         * Api/qwebpage.cpp:
10332         (QWebPage::userAgentForUrl):
10333
10334 2008-04-23  Simon Hausmann  <shausman@trolltech.com>
10335
10336         Reviewed by Holger.
10337
10338         Added missing copyright notice.
10339         Small fixes to the documentation.
10340
10341         * Api/qwebpluginfactory.cpp:
10342
10343 2008-04-23  Zack Rusin  <zack@tungstengraphics.com>
10344
10345         Reviewed by Simon.
10346
10347         Added a contentsSize() property.
10348
10349         * Api/qwebframe.cpp:
10350         (QWebFrame::contentsSize):
10351         (QWebFrame::hitTestContent):
10352         * Api/qwebframe.h:
10353
10354 2008-04-22  Benjamin Meyer  <bmeyer@trolltech.com>
10355
10356         Reviewed by Simon.
10357
10358         Fixes: QWebPage's QNetworkManager's can be shared among webpages.
10359
10360         Don't force the deletion of the object, but let QObject take care of it.
10361
10362         * Api/qwebpage.cpp:
10363
10364 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
10365
10366         Reviewed by Holger.
10367
10368         Documentation for QWebPluginFactory and documentation updates for QWebPage.
10369
10370         * Api/qwebpage.cpp:
10371         (QWebPage::setLinkDelegationPolicy):
10372         (QWebPage::linkDelegationPolicy):
10373         (QWebPage::swallowContextMenuEvent):
10374         (QWebPage::updatePositionDependentActions):
10375         (QWebPage::extension):
10376         (QWebPage::networkAccessManager):
10377         * Api/qwebpluginfactory.cpp:
10378         (QWebPluginFactory::QWebPluginFactory):
10379         (QWebPluginFactory::~QWebPluginFactory):
10380         (QWebPluginFactory::refreshPlugins):
10381
10382 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
10383
10384         Reviewed by Holger.
10385
10386         Added QWebPage::swallowContextMenuEvent and QWebPage::updatePositionDependentActions.
10387         
10388
10389         * Api/qwebpage.cpp:
10390         (QWebPagePrivate::QWebPagePrivate):
10391         (QWebPagePrivate::mouseReleaseEvent):
10392         (QWebPage::setLinkDelegationPolicy):
10393         (QWebPage::linkDelegationPolicy):
10394         (QWebPage::swallowContextMenuEvent):
10395         (QWebPage::updatePositionDependentActions):
10396         * Api/qwebpage.h:
10397         * Api/qwebpage_p.h:
10398         * Api/qwebview.cpp:
10399         (QWebView::event):
10400
10401 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
10402
10403         Reviewed by Holger.
10404
10405         Added Extension APIs for QWebPage.
10406
10407         * Api/qwebpage.cpp:
10408         (QWebPage::setLinkDelegationPolicy):
10409         (QWebPage::linkDelegationPolicy):
10410         (QWebPage::extension):
10411         * Api/qwebpage.h:
10412         * Api/qwebpluginfactory.cpp:
10413         (QWebPluginFactory::extension):
10414
10415 2008-04-22  Tor Arne Vestbø  <tavestbo@trolltech.com>
10416
10417         Reviewed by Simon.
10418
10419         Emit loadProgress() signal on loadStarted().
10420         
10421
10422         * WebCoreSupport/FrameLoaderClientQt.cpp:
10423         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
10424
10425 2008-04-22  Zack Rusin  <zack@kde.org>
10426
10427         Reviewed by Simon.
10428
10429         Fix background propagation from the QWebView's palette.
10430
10431         The background brush of the palette needs to be propagated to the WebCore::FrameView.
10432
10433         * Api/qwebframe.cpp:
10434         (QWebFramePrivate::updateBackground):
10435         * Api/qwebframe_p.h:
10436         * Api/qwebpage.cpp:
10437         (QWebPagePrivate::dropEvent):
10438         (QWebPage::setPalette):
10439         * Api/qwebpage.h:
10440         * Api/qwebpage_p.h:
10441         * Api/qwebview.cpp:
10442         (QWebView::page):
10443         (QWebView::changeEvent):
10444         * Api/qwebview.h:
10445         * WebCoreSupport/FrameLoaderClientQt.cpp:
10446
10447 2008-04-22  Benjamin Meyer  <bmeyer@trolltech.com>
10448
10449         Reviewed by Simon.
10450
10451         Fix maps.google.com
10452
10453         We have to include a version in the Safari tag in the user-agent.
10454
10455         * Api/qwebpage.cpp:
10456         (QWebPage::userAgentForUrl):
10457
10458 2008-04-22  Tor Arne Vestbø  <tavestbo@trolltech.com>
10459
10460         Reviewed by Simon.
10461
10462         Add visual focusing hint for clear button and
10463         change focus to web page after user enters new URL.
10464
10465         * QtLauncher/main.cpp:
10466         (ClearButton::paintEvent):
10467         (MainWindow::changeLocation):
10468
10469 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
10470
10471         Reviewed by Holger.
10472
10473         Added QWebFrame::hitTestContent() and QWebHitTestResult.
10474
10475         * Api/qwebframe.cpp:
10476         (QWebFrame::hitTestContent):
10477         (QWebFrame::event):
10478         (QWebHitTestResult::QWebHitTestResult):
10479         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
10480         (QWebHitTestResult::operator=):
10481         (QWebHitTestResult::~QWebHitTestResult):
10482         (QWebHitTestResult::isNull):
10483         (QWebHitTestResult::pos):
10484         (QWebHitTestResult::title):
10485         (QWebHitTestResult::linkText):
10486         (QWebHitTestResult::linkUrl):
10487         (QWebHitTestResult::linkTitle):
10488         (QWebHitTestResult::linkTargetFrame):
10489         (QWebHitTestResult::alternateText):
10490         (QWebHitTestResult::imageUrl):
10491         (QWebHitTestResult::pixmap):
10492         (QWebHitTestResult::isContentEditable):
10493         (QWebHitTestResult::isContentSelected):
10494         (QWebHitTestResult::frame):
10495         * Api/qwebframe.h:
10496         * Api/qwebframe_p.h:
10497         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
10498         * Api/qwebpage.cpp:
10499         (QWebPagePrivate::contextMenuEvent):
10500         (QWebPage::triggerAction):
10501         * Api/qwebpage.h:
10502         * Api/qwebpage_p.h:
10503
10504 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
10505
10506         Reviewed by Holger.
10507
10508         Don't crash if an input method query is done without a page.
10509         
10510
10511         * Api/qwebview.cpp:
10512         (QWebView::inputMethodQuery):
10513
10514 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
10515
10516         Reviewed by Holger.
10517
10518         Added re-implementations of QObject::event for future safety.
10519         
10520         This makes it easier to fix bugs with the event handling even in patch releases
10521         and is a general style we follow in Qt.
10522         
10523
10524         * Api/qwebframe.cpp:
10525         * Api/qwebframe.h:
10526         * Api/qwebview.cpp:
10527         (QWebView::event):
10528         * Api/qwebview.h:
10529
10530 2008-04-22  Benjamin Meyer  <bmeyer@trolltech.com>
10531
10532         Reviewed by Simon.
10533
10534         Fix construction of the user agent.
10535         
10536         The user-agent is now composed of
10537         * the platform and subplatform
10538         * the Qt version or application name and version (if set)
10539         * the locale
10540         * the SSL settings
10541         
10542
10543         * Api/qwebpage.cpp:
10544         (QWebPage::networkAccessManager):
10545         (QWebPage::setPluginFactory):
10546         (QWebPage::pluginFactory):
10547         (QWebPage::userAgentForUrl):
10548         * QtLauncher/main.cpp:
10549
10550 2008-04-22  Thiago Macieira  <tjmaciei@trolltech.com>
10551
10552         Reviewed by Simon.
10553
10554         Fixes: Pedantic compilation fix
10555
10556         Don't put semi-colons after braces closing namespaces.
10557
10558         * Api/qwebsettings.h:
10559
10560 2008-04-21  Simon Hausmann  <hausmann@webkit.org>
10561
10562         Reviewed by Lars.
10563
10564         Changed the return type of QWebFrame::evaluateJavaScript from a QString to a QVariant.
10565
10566         * Api/qwebframe.cpp:
10567         (QWebFrame::evaluateJavaScript):
10568         * Api/qwebframe.h:
10569
10570 2008-04-21  Simon Hausmann  <hausmann@webkit.org>
10571
10572         Reviewed by Holger.
10573
10574         Fixes redundant "Fonts" submenu in default lineedits that has only disabled items.
10575
10576         Don't show sub-menus that have only actions that are disabled.
10577
10578         * Api/qwebpage.cpp:
10579         (QWebPagePrivate::createContextMenu):
10580
10581 2008-04-21  Kavindra Devi Palaraja <kdpalara@trolltech.com>.
10582
10583         Reviewed by Simon.
10584
10585         Lots of documentation fixes, fixed all qdoc warnings.
10586
10587         * Api/qwebframe.cpp:
10588         (QWebFrame::setTextSizeMultiplier):
10589         * Api/qwebhistoryinterface.cpp:
10590         (gCleanupInterface):
10591         (QWebHistoryInterface::QWebHistoryInterface):
10592         (QWebHistoryInterface::~QWebHistoryInterface):
10593         * Api/qwebpage.cpp:
10594         (QWebPage::inputMethodQuery):
10595         (QWebPage::view):
10596         (QWebPage::javaScriptConsoleMessage):
10597         (QWebPage::javaScriptAlert):
10598         (QWebPage::javaScriptConfirm):
10599         (QWebPage::javaScriptPrompt):
10600         (QWebPage::viewportSize):
10601         (QWebPage::acceptNavigationRequest):
10602         (QWebPage::action):
10603         (QWebPage::event):
10604         (QWebPage::focusNextPrevChild):
10605         (QWebPage::setForwardUnsupportedContent):
10606         (QWebPage::setLinkDelegationPolicy):
10607         (QWebPage::findText):
10608         (QWebPage::settings):
10609         (QWebPage::networkProxy):
10610         (QWebPage::setNetworkAccessManager):
10611         * Api/qwebpage.h:
10612         * Api/qwebsettings.cpp:
10613         (QWebSettings::QWebSettings):
10614         (QWebSettings::setIconDatabasePath):
10615         (QWebSettings::iconForUrl):
10616         (QWebSettings::fontFamily):
10617         * Api/qwebview.cpp:
10618         (QWebView::load):
10619         * Api/qwebview.h:
10620
10621 2008-04-21  Marius Bugge Monsen  <mmonsen@trolltech.com>
10622
10623         Reviewed by Simon.
10624
10625         Fix compile failure on solaris-cc
10626
10627         * Api/qwebpage.h: Removed trailing semicolons and moved the private
10628         d-pointer to not confuse the compiler
10629
10630 2008-04-21  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
10631
10632         Reviewed by Simon.
10633
10634         Build fix for Qt 4.3
10635
10636         * When building WebCore/internal make sure the QT_[BEGIN,END]_NAMESPACE is
10637         always defined. Do this by adding defines to the compiler line
10638         * For users of our API this is not feasible. Every public header file should
10639         include qwebkitglobal.h. Define the QT_BEGIN_NAMESPACE and QT_END_NAMESPACE
10640         when we are building everything < 4.4.0 and don't have them defined.
10641
10642         * Api/qwebkitglobal.h:
10643
10644 2008-04-21  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
10645
10646         Reviewed by Simon.
10647
10648         * Initialize the WebGraphics with the one found in WebCore
10649         
10650
10651         * Api/qwebsettings.cpp:
10652         (QWebSettingsPrivate::apply):
10653
10654 2008-04-21  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
10655
10656         Reviewed by Simon.
10657
10658         * Allow TextAreas to be resized.
10659         * No QWebSettings for this is introduced.
10660         
10661
10662         * Api/qwebsettings.cpp:
10663         (QWebSettingsPrivate::apply):
10664
10665 2008-04-21  Simon Hausmann  <shausman@trolltech.com>
10666
10667         Reviewed by Holger.
10668
10669         Fixes: QWebView::url property behaviour strange in designer
10670
10671         Added QWebView/QWebFrame::setUrl, which unlike load() clears the view immediately, schedules a load of the url but also makes sure url() returns the set url. This setter is now also used for the url property.
10672
10673         * Api/qwebframe.cpp:
10674         (QWebFrame::setUrl):
10675         * Api/qwebframe.h:
10676         * Api/qwebview.cpp:
10677         (QWebView::setUrl):
10678         * Api/qwebview.h:
10679
10680 2008-04-21  Andre Poenitz  <andre.poenitz@trolltech.com>
10681
10682         Reviewed by Simon Hausmann <hausmann@webkit.org>.
10683
10684         Fix compilation with Qt namespaces
10685
10686         * Api/qwebframe.cpp:
10687         (QWebFrame::print):
10688         * Api/qwebview.h:
10689
10690 2008-04-21  Simon Hausmann  <hausmann@webkit.org>
10691
10692         Reviewed by Holger.
10693
10694         When printing on high resolution printers we need to scale the painter accordingly (for now).
10695
10696         * Api/qwebframe.cpp:
10697         (QWebFrame::print):
10698
10699 2008-04-21  Simon Hausmann  <hausmann@webkit.org>
10700
10701         Reviewed by Holger.
10702
10703         Provide a print preview in the QtLauncher
10704
10705         * QtLauncher/main.cpp:
10706         (MainWindow::MainWindow):
10707         (MainWindow::showLinkHover):
10708         (MainWindow::print):
10709
10710 2008-04-20  Simon Hausmann  <hausmann@webkit.org>
10711
10712         Reviewed by Alp Toker.
10713
10714         Share the printing code between the Gtk and the Qt port
10715         and added printing to the Qt WebKit API.
10716
10717         * Api/qwebframe.cpp:
10718         (QWebFrame::print):
10719         * Api/qwebframe.h:
10720         * Api/qwebview.cpp:
10721         (QWebView::print):
10722         * Api/qwebview.h:
10723
10724 2008-04-19  Julien Chaffraix  <jchaffraix@webkit.org>
10725
10726         Qt build fix (renderer() -> contentRenderer()).
10727
10728         * Api/qwebframe.cpp:
10729         (QWebFrame::renderTreeDump):
10730         (QWebFrame::render):
10731
10732 2008-04-18  Simon Hausmann  <hausmann@webkit.org>
10733
10734         Reviewed by Holger.
10735
10736         Many API changes and additions after a full review with Jasmin Blanchette <jasmin@trolltech.com>
10737
10738         The diff is too big to mention the changes individually, but most of the changes were of cosmetic
10739         nature where methods or enums have been renamed or prefixed/suffixed according to the consistency
10740         rules of the Qt API.
10741
10742         * Api/qwebframe.cpp:
10743         (QWebFrame::addToJavaScriptWindowObject):
10744         (QWebFrame::toHtml):
10745         (QWebFrame::toPlainText):
10746         (QWebFrame::icon):
10747         (QWebFrame::setContent):
10748         (QWebFrame::setScrollBarPolicy):
10749         (QWebFrame::render):
10750         (QWebFrame::setTextSizeMultiplier):
10751         (QWebFrame::textSizeMultiplier):
10752         (QWebFrame::pos):
10753         * Api/qwebframe.h:
10754         * Api/qwebhistory.cpp:
10755         * Api/qwebhistory.h:
10756         * Api/qwebpage.cpp:
10757         (QWebPagePrivate::QWebPagePrivate):
10758         (QWebPagePrivate::~QWebPagePrivate):
10759         (QWebPagePrivate::acceptNavigationRequest):
10760         (webActionForContextMenuAction):
10761         (QWebPagePrivate::updateAction):
10762         (QWebPagePrivate::keyPressEvent):
10763         (QWebPage::view):
10764         (QWebPage::javaScriptPrompt):
10765         (QWebPage::createWindow):
10766         (QWebPage::triggerAction):
10767         (QWebPage::setViewportSize):
10768         (QWebPage::acceptNavigationRequest):
10769         (QWebPage::action):
10770         (QWebPage::focusNextPrevChild):
10771         (QWebPage::setForwardUnsupportedContent):
10772         (QWebPage::forwardUnsupportedContent):
10773         (QWebPage::setLinkDelegationPolicy):
10774         (QWebPage::findText):
10775         (QWebPage::networkAccessManager):
10776         (QWebPageContext::imageUrl):
10777         (QWebPageContext::image):
10778         * Api/qwebpage.h:
10779         * Api/qwebpage_p.h:
10780         * Api/qwebsettings.cpp:
10781         (QWebSettingsPrivate::apply):
10782         (QWebSettings::QWebSettings):
10783         (QWebSettings::setIconDatabasePath):
10784         (QWebSettings::iconDatabasePath):
10785         (QWebSettings::clearIconDatabase):
10786         (QWebSettings::iconForUrl):
10787         (QWebSettings::setWebGraphic):
10788         (QWebSettings::fontFamily):
10789         (QWebSettings::setAttribute):
10790         (QWebSettings::testAttribute):
10791         (QWebSettings::resetAttribute):
10792         * Api/qwebsettings.h:
10793         * Api/qwebview.cpp:
10794         (QWebView::setPage):
10795         (QWebView::icon):
10796         (QWebView::setTextSizeMultiplier):
10797         (QWebView::textSizeMultiplier):
10798         (QWebView::findText):
10799         (QWebView::reload):
10800         (QWebView::mouseMoveEvent):
10801         * Api/qwebview.h:
10802         * QtLauncher/main.cpp:
10803         (MainWindow::MainWindow):
10804         (main):
10805         * WebCoreSupport/ChromeClientQt.cpp:
10806         (WebCore::ChromeClientQt::ChromeClientQt):
10807         (WebCore::ChromeClientQt::setWindowRect):
10808         (WebCore::ChromeClientQt::toolbarsVisible):
10809         (WebCore::ChromeClientQt::setStatusbarVisible):
10810         (WebCore::ChromeClientQt::statusbarVisible):
10811         (WebCore::ChromeClientQt::setScrollbarsVisible):
10812         (WebCore::ChromeClientQt::setResizable):
10813         (WebCore::ChromeClientQt::scrollBackingStore):
10814         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
10815         (WebCore::ChromeClientQt::setToolTip):
10816         * WebCoreSupport/ChromeClientQt.h:
10817         * WebCoreSupport/FrameLoaderClientQt.cpp:
10818         (WebCore::FrameLoaderClientQt::setFrame):
10819         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
10820         (WebCore::FrameLoaderClientQt::setMainDocumentError):
10821         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
10822         (WebCore::FrameLoaderClientQt::createFrame):
10823         (WebCore::FrameLoaderClientQt::objectContentType):
10824         * WebCoreSupport/FrameLoaderClientQt.h:
10825         * WebCoreSupport/InspectorClientQt.cpp:
10826
10827 2008-04-18  Simon Hausmann  <hausmann@webkit.org>
10828
10829         Reviewed by Holger.
10830
10831         Added QWebView::find/QWebFrame::find.
10832
10833         * Api/qwebpage.cpp:
10834         (QWebPage::focusNextPrevChild):
10835         (QWebPage::find):
10836         * Api/qwebpage.h:
10837         * Api/qwebview.cpp:
10838         (QWebView::find):
10839         * Api/qwebview.h:
10840
10841 2008-04-15  Ariya Hidayat  <ariya.hidayat@trolltech.com>
10842
10843         Reviewed by Simon.
10844
10845         fix potential crash when loading image(s)
10846
10847         Crash may occur. If compiled with 4.3, the variable is not initialized.
10848         This fix solves https://bugs.webkit.org/show_bug.cgi?id=17174
10849
10850         * Api/qwebpage.cpp:
10851         (QWebPagePrivate::QWebPagePrivate):
10852
10853 2008-04-15  Simon Hausmann  <hausmann@webkit.org>
10854
10855         Reviewed by Holger.
10856
10857         Update the micro focus for input methods as soon as the composition mode changes
10858         or the caret/selection changes.
10859         
10860
10861         * Api/qwebpage.cpp:
10862         * Api/qwebpage.h:
10863         * Api/qwebview.cpp:
10864         (QWebView::setPage):
10865         * WebCoreSupport/EditorClientQt.cpp:
10866         (WebCore::EditorClientQt::respondToChangedSelection):
10867         (WebCore::EditorClientQt::setInputMethodState):
10868
10869 2008-04-15  Simon Hausmann  <hausmann@webkit.org>
10870
10871         Reviewed by Holger.
10872
10873         Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application,
10874         it yields undefined behaviour or wrong default codec initialization.
10875         
10876
10877         * QtLauncher/main.cpp:
10878         (WebPage::createWindow):
10879
10880 2008-04-15  Olivier Goffart  <ogoffart@trolltech.com>
10881
10882         Reviewed by Simon.
10883
10884         Fixes: copy to clipboard when selecting, and paste when clicking with the middle button
10885
10886         * Api/qwebpage.cpp:
10887         (QWebPagePrivate::mouseReleaseEvent): If the clipboard supports
10888         selections then we support copy & paste into the selection.
10889
10890 2008-04-15  Michael Brasser  <michael.brasser@trolltech.com>
10891
10892         Reviewed by Simon.
10893
10894         Add basic input method support.
10895         
10896
10897         * Api/qwebpage.cpp:
10898         (QWebPagePrivate::dropEvent):
10899         (QWebPagePrivate::inputMethodEvent):
10900         (QWebPage::inputMethodQuery):
10901         (QWebPage::event):
10902         * Api/qwebpage.h:
10903         * Api/qwebpage_p.h:
10904         * Api/qwebview.cpp:
10905         (QWebView::QWebView):
10906         (QWebView::inputMethodQuery):
10907         (QWebView::inputMethodEvent):
10908         * Api/qwebview.h:
10909         * WebCoreSupport/EditorClientQt.cpp:
10910         (WebCore::EditorClientQt::setInputMethodState):
10911
10912 2008-04-15  Simon Hausmann  <hausmann@webkit.org>
10913
10914         Reviewed by Holger.
10915
10916         Added (QWebFrame|QWebView)::textZoomFactor.
10917         
10918
10919         * Api/qwebframe.cpp:
10920         (QWebFrame::setTextZoomFactor):
10921         (QWebFrame::textZoomFactor):
10922         * Api/qwebframe.h:
10923         * Api/qwebview.cpp:
10924         (QWebView::setTextZoomFactor):
10925         (QWebView::textZoomFactor):
10926         * Api/qwebview.h:
10927
10928 2008-04-15  Michael Brasser  <michael.brasser@trolltech.com>
10929
10930         Reviewed by Simon.
10931
10932         Added simple scrolling API to QWebFrame.
10933         
10934         The intent is that it works similar to QAbstractScrollArea.
10935         
10936
10937         * Api/qwebframe.cpp:
10938         (QWebFrame::setScrollBarValue):
10939         (QWebFrame::scrollBarValue):
10940         (QWebFrame::scrollBarMaximum):
10941         (QWebFrame::scrollBarMinimum):
10942         * Api/qwebframe.h:
10943
10944 2008-04-15  Olivier Goffart  <ogoffart@trolltech.com>
10945
10946         Reviewed by Holger.
10947
10948         Fixes: implement the OpenFrameInNewWindow action.
10949         
10950
10951         * Api/qwebpage.cpp:
10952         (QWebPage::triggerAction):
10953
10954 2008-04-15  Andre Poenitz  <andre.poenitz@trolltech.com>
10955
10956         Reviewed by Simon.
10957
10958         Fix compilation with Qt namespaces
10959
10960         Qt can be configured to have all of its classes inside a specified namespaces.
10961         This is for example used in plugin/component environments like Eclipse.
10962
10963         This change makes it possible to let the Qt port compile against a namespaced
10964         Qt by the use of macros Qt provides to properly forward declare Qt classes in
10965         the namespace.
10966
10967         * Api/qwebframe.h:
10968         * Api/qwebpage.h:
10969         * Api/qwebpage_p.h:
10970         * Api/qwebpluginfactory.h:
10971         * Api/qwebsettings.h:
10972         * Api/qwebview.h:
10973
10974 2008-04-05  Olivier Goffart  <ogoffart@trolltech.com>
10975
10976         Reviewed by Holger.
10977
10978         Fixes: Right clicking an image and choosing "copy image" doesnt put anything in the clipboard.
10979         
10980
10981         * Api/qwebpage.cpp:
10982         (QWebPage::triggerAction):
10983
10984 2008-04-05  Olivier Goffart  <ogoffart@trolltech.com>
10985
10986         Reviewed by Simon.
10987
10988         Fixes: Right click, and "Open image" open the link instead of the image.
10989         
10990
10991         * Api/qwebpage.cpp:
10992
10993 2008-04-05  Benjamin Meyer  <bmeyer@trolltech.com>
10994
10995         Reviewed by Simon.
10996
10997         Added doc stub for QWebSettings so class docs are generated
10998         
10999
11000         * Api/qwebsettings.cpp:
11001         (QWebSettings::QWebSettings):
11002
11003 2008-04-05  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11004
11005         Reviewed by Simon.
11006
11007         * Propose the addition of updateRequest and scrollRequest to the QWebPage.
11008         
11009         * The question is if these signals belong to QWebPage or  QWebFrame.
11010         -It is more easy to have them in QWebPage because ScrollView is invoking
11011         the ChromeClient with the right coordinates
11012         -On the other hand someone wants to render frames separately. But this is partly
11013         doomed as you can have overlapping frames and what you paint would not relate to
11014         what you normally see on webpages.
11015         
11016
11017         * Api/qwebpage.cpp:
11018         * Api/qwebpage.h:
11019         * WebCoreSupport/ChromeClientQt.cpp:
11020         (WebCore::ChromeClientQt::scrollBackingStore):
11021         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
11022
11023 2008-04-03  Simon Hausmann  <hausmann@webkit.org>
11024
11025         Reviewed by Mark Rowe.
11026
11027         Roll out r31599 and r31605 again after discussion with Mark Rowe.
11028
11029         * Api/qwebframe.cpp:
11030         (QWebFrame::icon):
11031         * Api/qwebsettings.cpp:
11032         (QWebSettings::iconForUrl):
11033
11034 2008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11035
11036         Reviewed by Simon.
11037
11038         * Change IconDatabase::iconForPageURL to return more information. E.g. if
11039         an image has been found, or if the loading of an image has been scheduled.
11040         * Update FrameLoader to use another method to trigger reading from disk
11041         * Update the QWebFrame and QWebSettings
11042
11043         * Api/qwebframe.cpp:
11044         (QWebFrame::icon):
11045         * Api/qwebsettings.cpp:
11046         (QWebSettings::iconForUrl):
11047
11048 2008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11049
11050         Reviewed by Simon.
11051
11052         * Safari is using the IconDatabase the following way (assumption). Before they
11053         call iconDatabase()->open they "retain" all URLs they are interested in, these
11054         could come from the history.
11055         * When opening the iconDatabase() a thread will be started that is going to import
11056         the URLs, all none manually retained URLs are scheduled for removal. The removal
11057         is going to happen when the next icon gets stored in the database.
11058         * We do not have any IconDatabase code, we can not retain the URLs before opening the
11059         database. To disable the automatic pruning of the icons we will ask the IconDatabase
11060         to delay this operation. This means our IconDatabase, when used, will grow, so we should
11061         try to have a IconDatabase class in 4.4.
11062         * The only way to counter the growth is a call to QWebSettings::clearIconDatabase
11063         
11064
11065         * Api/qwebsettings.cpp:
11066         (QWebSettings::clearIconDatabase):
11067         * Api/qwebsettings.h:
11068
11069 2008-04-03  Benjamin Meyer  <bmeyer@trolltech.com>
11070
11071         Reviewed by Simon.
11072
11073         Add a way to get the site icon for a url
11074         static QPixmap iconForUrl(const QUrl &url);
11075         
11076
11077         * Api/qwebsettings.cpp:
11078         (QWebSettings::iconForUrl):
11079         * Api/qwebsettings.h:
11080
11081 2008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11082
11083         Reviewed by Simon.
11084
11085         * Update the Copyright info in QWebSettings
11086         
11087
11088         * Api/qwebsettings.cpp:
11089         * Api/qwebsettings.h:
11090
11091 2008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11092
11093         Reviewed by Simon.
11094
11095         * The isEmpty check is not needed anymore with the earlier backport
11096         
11097
11098         * Api/qwebframe.cpp:
11099         (QWebFrame::icon):
11100
11101 2008-04-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11102
11103         Reviewed by Simon.
11104
11105         * For the http tests we need the output of the FrameLoaderClient. The QtWebKit API
11106         is not exporting enough to create the output in DRT itself. Settle with the approach
11107         Lars has taken for the Editing support and add branches to our FrameLoaderClient code.
11108         * run-webkit-tests http/tests(/loading) can now be executed.
11109         * For tests in loading/ directories we are going to throw away the dirty
11110         QWebPage to start with something clean.
11111         
11112
11113         * WebCoreSupport/FrameLoaderClientQt.cpp:
11114         (qt_dump_frame_loader):
11115         (drtDescriptionSuitableForTestResult):
11116         (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
11117         (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
11118         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
11119         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
11120         (WebCore::FrameLoaderClientQt::dispatchWillClose):
11121         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
11122         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
11123         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
11124         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
11125         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
11126         (WebCore::FrameLoaderClientQt::registerForIconNotification):
11127         (WebCore::FrameLoaderClientQt::setMainDocumentError):
11128         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
11129
11130 2008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11131
11132         Reviewed by Simon.
11133
11134         * Export the PageCache and Cache capacity call one to one. This is only there
11135         to allow the QtLauncher to play with caching.
11136         * TODO: make API decisions and consider following the windows Api to set a WebCacheModel
11137         and determine certain values automatically.
11138         
11139
11140         * Api/qwebsettings.cpp:
11141         (QWebSettings::setPageCacheCapacity):
11142         (QWebSettings::setObjectCacheCapacities):
11143         * Api/qwebsettings.h:
11144         * QtLauncher/main.cpp:
11145
11146 2008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11147
11148         Reviewed by Simon.
11149
11150         Prepapre everything for enabling the PageCache for the Qt Platform:
11151         * Claim that we can cache pages
11152         * Create the FrameView FrameLoaderClientQt::transitionToCommittedForNewPage using
11153         the initial size of the viewport and stop creating it in the QWebFramePrivate::init
11154         
11155         Differences to the Windows port:
11156         * attachToWindow/detachFromWindow is not called and is not (yet) part
11157         of Widget/ScrollView of the Qt platform. We might need that for plugin
11158         support in the future.
11159         * We store the margin's and scrolling flag inside QWebFrame and use it when
11160         creating the FrameView.
11161         
11162         What is missing:
11163         * API to call pageCache()->setCapacity(XYZ);
11164         
11165
11166         * Api/qwebframe.cpp:
11167         (QWebFramePrivate::init):
11168         * Api/qwebframe_p.h:
11169         (QWebFramePrivate::QWebFramePrivate):
11170         * Api/qwebpage.cpp:
11171         (QWebPagePrivate::createMainFrame):
11172         * WebCoreSupport/FrameLoaderClientQt.cpp:
11173         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
11174         (WebCore::FrameLoaderClientQt::blockedError):
11175
11176 2008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11177
11178         Reviewed by Simon.
11179
11180         * For the PageCache support we do not want to create a FrameView in the constructor
11181         of QWebFrame. In QWegPage::viewportSize() we currently call mainFrame() and that will
11182         create a QWebFrame if no mainFrame is present and this gets called when we try to
11183         create a FrameView...
11184         * Keep a copy of the initial viewportSize around and use it if we do not have a Frame
11185         or FrameView.
11186         
11187
11188         * Api/qwebpage.cpp:
11189         (QWebPagePrivate::QWebPagePrivate):
11190         (QWebPage::triggerAction):
11191         * Api/qwebpage_p.h:
11192
11193 2008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11194
11195         Reviewed by Simon.
11196
11197         * Always return true in FrameLoaderClientQt::shouldGoToHistoryItem, like the windows port
11198
11199         * WebCoreSupport/FrameLoaderClientQt.cpp:
11200         (WebCore::):
11201
11202 2008-04-02  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11203
11204         Reviewed by Simon.
11205
11206         * Attempt to make the m_webFrame null pointer checking consistent. Always check for
11207         m_webFrame. It should get set by the QWebFrame with the FramerLoaderClientQt::setFrame
11208         call and should stay valid until the destruction of the QWebFrame.
11209         * Currently the same checking is not needed for m_frame as it will only set to 0 in
11210         FrameLoaderClientQt::frameLoaderDestroyed and should be not 0 because of the setFrame
11211         initialisation.
11212         
11213
11214         * WebCoreSupport/FrameLoaderClientQt.cpp:
11215         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
11216         (WebCore::FrameLoaderClientQt::setMainDocumentError):
11217         (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
11218         (WebCore::FrameLoaderClientQt::objectContentType):
11219         (WebCore::FrameLoaderClientQt::createPlugin):
11220
11221 2008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11222
11223         Reviewed by Simon.
11224
11225         * Get the RefCounting of WebCore::Frame right and make sure that both QWebFrame
11226         and WebCore::Frame get destroyed if we leave site with subframes and on the
11227         end of the application.
11228         * Use adoptRef in FrameLoaderClientQt::createFrame to get the refs right for subframes. We
11229         do not want to add an extra reference. Without this we are leaking subframes.
11230         * Assume that the lifetime of a Frame and FrameLoader are the same, when the Frame is gone
11231         we want to destroy the QWebFrame (e.g. on a page with subframes). Add delete m_webFrame
11232         in the frameLoaderDestroyed method to do that.
11233         * If we happen to delete the QWebFrame before the FrameLoaderClientQt we set m_webFrame to
11234         zero in the FrameLoaderClientQt to avoid bad things.
11235         
11236
11237         * Api/qwebframe.cpp:
11238         (QWebFrame::~QWebFrame):
11239         * WebCoreSupport/FrameLoaderClientQt.cpp:
11240         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
11241         (WebCore::FrameLoaderClientQt::objectContentType):
11242         * WebCoreSupport/FrameLoaderClientQt.h:
11243
11244 2008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11245
11246         Reviewed by Simon.
11247
11248         * Do not save a RefPtr to the frame. The FrameLoaderClient, Frame and
11249         QWebFrame should have the same lifetime everything else is a leak
11250         or issue.
11251
11252         * Api/qwebframe.cpp:
11253         (QWebFramePrivate::init):
11254         * Api/qwebframe_p.h:
11255         * WebCoreSupport/FrameLoaderClientQt.cpp:
11256
11257 2008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11258
11259         Reviewed by Simon.
11260
11261         * Do not store the QWebFrame associated with a ScrollView/FrameView
11262         in the WebCore::Widget.
11263         * Instead of asking the Widget for the QWebFrame use the QWebFramePrivate::core
11264         and QWebFramePrivate::kit function to convert from and to QWebFrame.
11265         
11266
11267         * Api/qwebframe.cpp:
11268         (QWebFramePrivate::init):
11269         * Api/qwebpage.cpp:
11270         (QWebPagePrivate::createMainFrame):
11271
11272 2008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11273
11274         Reviewed by Simon.
11275
11276         * Do not store the FrameView in the QWebFrame and cope with the situation when
11277         a WebCore::Frame has no WebCore::FrameView.
11278         
11279
11280         * Api/qwebframe.cpp:
11281         (QWebFramePrivate::init):
11282         (QWebFramePrivate::horizontalScrollBar):
11283         (QWebFramePrivate::verticalScrollBar):
11284         (QWebFrame::innerText):
11285         (QWebFrame::renderTreeDump):
11286         (QWebFrame::setVerticalScrollBarPolicy):
11287         (QWebFrame::setHorizontalScrollBarPolicy):
11288         (QWebFrame::render):
11289         (QWebFrame::layout):
11290         (QWebFrame::pos):
11291         * Api/qwebframe_p.h:
11292         (QWebFramePrivate::QWebFramePrivate):
11293         * Api/qwebpage.cpp:
11294         (QWebPagePrivate::updateEditorActions):
11295         (QWebPagePrivate::mouseMoveEvent):
11296         (QWebPagePrivate::mousePressEvent):
11297         (QWebPagePrivate::mouseDoubleClickEvent):
11298         (QWebPagePrivate::contextMenuEvent):
11299         (QWebPagePrivate::wheelEvent):
11300         (QWebPage::triggerAction):
11301         * WebCoreSupport/FrameLoaderClientQt.cpp:
11302
11303 2008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11304
11305         Reviewed by Simon.
11306
11307         * Change the order of the methods to match with the FrameLoaderClient.h to ease
11308         removing methods in the future.
11309
11310         * WebCoreSupport/FrameLoaderClientQt.h:
11311
11312 2008-04-01  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11313
11314         Reviewed by Simon.
11315
11316         * Remove virtuals in the FrameLoaderClientQt that don't exist in the base class.
11317
11318         * WebCoreSupport/FrameLoaderClientQt.cpp:
11319         (WebCore::FrameLoaderClientQt::detachedFromParent4):
11320         * WebCoreSupport/FrameLoaderClientQt.h:
11321
11322 2008-03-25  Brady Eidson  <beidson@apple.com>
11323
11324         Reviewed by Darin
11325
11326         Remove newly obsolete FrameLoaderClient methods
11327
11328         * WebCoreSupport/FrameLoaderClientQt.cpp:
11329         * WebCoreSupport/FrameLoaderClientQt.h:
11330
11331 2008-03-22  Mark Rowe  <mrowe@apple.com>
11332
11333         Qt build fix.
11334
11335         * WebCoreSupport/FrameLoaderClientQt.cpp:
11336         (WebCore::):
11337
11338 2008-03-18  Simon Hausmann  <hausmann@webkit.org>
11339
11340         Reviewed by Holger.
11341
11342         Fix the Qt build. Don't return void in non-void functions.
11343
11344         * Api/qwebpluginfactory.cpp:
11345         (QWebPluginFactory::extension):
11346
11347 2008-03-16  Thiago Macieira  <thiago.macieira@trolltech.com>
11348
11349         Reviewed by Simon.
11350
11351         Don't use RefPtr in classes you haven't seen the implementation of.
11352         
11353         Forward-declaration and declaration of RefPtr<Foo> is ok. But you
11354         cannot *use* said objects until Foo is defined. This is true even for
11355         initialisation with a 0.
11356         
11357         Seems the HP aCC compiler is more strict here than gcc.
11358
11359         * Api/qwebframe_p.h:
11360
11361 2008-03-14  Simon Hausmann  <hausmann@webkit.org>
11362
11363         Fix the Qt build.
11364
11365         * Api/qwebframe.cpp:
11366         (QWebFrame::setHtml):
11367         (QWebFrame::setContent):
11368
11369 2008-03-13  Simon Hausmann  <hausmann@webkit.org>
11370
11371         Fix the Qt build.
11372
11373         * Api/qwebframe.cpp:
11374         (QWebFrame::addToJSWindowObject):
11375
11376 2008-03-12  Simon Hausmann  <hausmann@webkit.org>
11377
11378         Fix compilation against Qt 4.3
11379
11380         * Api/qwebpage.cpp:
11381         * Api/qwebpage.h:
11382         * Api/qwebpage_p.h:
11383
11384 2008-03-11  Rodney Dawes  <dobey@wayofthemonkey.com>
11385
11386         Fix the Qt build.
11387
11388         * WebCoreSupport/FrameLoaderClientQt.cpp:
11389         (FrameLoaderClientQt::CreatePlugin):
11390
11391 2008-03-11  Simon Hausmann  <hausmann@webkit.org>
11392
11393         Fix the Qt build (silly typo).
11394
11395         * QtLauncher/main.cpp:
11396         (MainWindow::MainWindow):
11397
11398 2008-03-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
11399
11400         Reviewed by Simon.
11401
11402         Moved obscuring progress bar to the lower right corner.
11403
11404         * QtLauncher/main.cpp:
11405         (MainWindow::MainWindow):
11406         (MainWindow::resizeEvent):
11407
11408 2008-03-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
11409
11410         Reviewed by Simon.
11411
11412         Added reload action and grouped stop and reload actions together.
11413
11414         * QtLauncher/main.cpp:
11415         (MainWindow::MainWindow):
11416
11417 2008-03-11  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11418
11419         Reviewed by Simon.
11420
11421         * Set a Icon on the QAction if we have one.
11422
11423         * Api/qwebpage.cpp:
11424         (QWebPage::action):
11425
11426 2008-03-11  Simon Hausmann  <hausmann@webkit.org>
11427
11428         Fix the Qt build.
11429
11430         * Api/qwebframe.cpp:
11431         (QWebFrame::addToJSWindowObject):
11432
11433 2008-03-07  Simon Hausmann  <hausmann@webkit.org>
11434
11435         Reviewed by Darin Adler.
11436
11437         Done with Lars.
11438
11439         Replaced the QWebObjectPlugin interfaces with QWebPluginFactory.
11440
11441         * Api/qwebnetworkinterface.cpp:
11442         (QWebNetworkManager::add):
11443         (QWebNetworkManager::cancel):
11444         (QWebNetworkManager::started):
11445         (QWebNetworkManager::data):
11446         (QWebNetworkManager::finished):
11447         * Api/qwebnetworkinterface_p.h:
11448         (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
11449         * Api/qwebobjectplugin.cpp: Removed.
11450         * Api/qwebobjectplugin.h: Removed.
11451         * Api/qwebobjectplugin_p.h: Removed.
11452         * Api/qwebobjectpluginconnector.cpp: Removed.
11453         * Api/qwebobjectpluginconnector.h: Removed.
11454         * Api/qwebpage.cpp:
11455         (QWebPagePrivate::QWebPagePrivate):
11456         (QWebPage::setPluginFactory):
11457         (QWebPage::pluginFactory):
11458         * Api/qwebpage.h:
11459         * Api/qwebpage_p.h:
11460         * Api/qwebpluginfactory.cpp: Added.
11461         (QWebPluginFactory::QWebPluginFactory):
11462         (QWebPluginFactory::~QWebPluginFactory):
11463         (QWebPluginFactory::refreshPlugins):
11464         (QWebPluginFactory::extension):
11465         * Api/qwebpluginfactory.h: Added.
11466         (MimeType::):
11467         * WebCoreSupport/FrameLoaderClientQt.cpp:
11468         (WebCore::FrameLoaderClientQt::objectContentType):
11469         (WebCore::FrameLoaderClientQt::createPlugin):
11470
11471 2008-03-07  Simon Hausmann  <hausmann@webkit.org>
11472
11473         Fix the Qt build.
11474
11475         * Api/qwebframe.cpp:
11476
11477 2008-03-04  Sam Weinig  <sam@webkit.org>
11478
11479         Reviewed by Mark Rowe.
11480
11481         - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
11482           JSDOMWindow.h
11483
11484         * Api/qwebframe.cpp:
11485         (QWebFrame::addToJSWindowObject):
11486
11487 2008-03-04  Mark Rowe  <mrowe@apple.com>
11488
11489         Another go at fixing the Qt build.
11490
11491         * Api/qwebframe.cpp:
11492         (QWebFrame::addToJSWindowObject):
11493
11494 2008-02-24  Darin Adler  <darin@apple.com>
11495
11496         Reviewed by Sam.
11497
11498         - remove separate client calls for "standard" and "reload' history
11499
11500         * WebCoreSupport/FrameLoaderClientQt.cpp:
11501         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
11502         * WebCoreSupport/FrameLoaderClientQt.h:
11503
11504 2008-02-24  Darin Adler  <darin@apple.com>
11505
11506         - another try at fixing the build
11507
11508         * Api/qwebframe.cpp:
11509         (QWebFrame::load): Replace new FormData with FormData::create.
11510
11511 2008-02-22  Sam Weinig  <sam@webkit.org>
11512
11513         Fix Qt build.
11514
11515         * Api/qwebhistoryinterface.cpp:
11516
11517 2008-02-22  Sam Weinig  <sam@webkit.org>
11518
11519         Rubber-stamped by Adam Roben.
11520
11521         Rid the project of the Devil known as DeprecatedString!
11522
11523         * Api/qwebhistory.cpp:
11524         * Api/qwebhistoryinterface.cpp:
11525
11526 2008-02-18  Darin Adler  <darin@apple.com>
11527
11528         Reviewed by Sam.
11529
11530         * Api/qwebnetworkinterface.cpp:
11531         (QWebNetworkRequestPrivate::init): Removed use of DeprecatedString.
11532
11533 2008-01-24  David Boddie  <dboddie@trolltech.com>
11534
11535         Reviewed by Simon.
11536
11537         Documentation tidying.
11538         
11539
11540         * Api/qwebframe.cpp:
11541         * Api/qwebhistoryinterface.cpp:
11542         * Api/qwebview.cpp:
11543
11544 2008-01-24  Jarek Kobus  <jkobus@trolltech.com>
11545
11546         Reviewed by Simon.
11547
11548         Text for translations were used wrongly as comments
11549         
11550
11551         * WebCoreSupport/FrameLoaderClientQt.cpp:
11552         (WebCore::):
11553         (WebCore::FrameLoaderClientQt::cannotShowURLError):
11554         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
11555         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
11556         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
11557         (WebCore::FrameLoaderClientQt::shouldFallBack):
11558
11559 2008-01-24  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11560
11561         Reviewed by Simon.
11562
11563         * We have a KURL->QUrl conversion on KURL itself, make use of it.
11564         * This conversion is supposed to be loss-free
11565         
11566
11567         * Api/qwebframe.cpp:
11568
11569 2008-01-23  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11570
11571         * Rubber stamped by Simon
11572
11573         * Fix leaking of sub frames (WebCore::Frame). We keep one reference too many.
11574         This was found while working on the page-cache, other ports are not affected.
11575
11576         * WebCoreSupport/FrameLoaderClientQt.cpp:
11577         (WebCore::FrameLoaderClientQt::createFrame):
11578
11579 2008-01-23  Rohan McGovern  <rohan.mcgovern@trolltech.com>
11580
11581         Reviewed by Simon Hausmann <hausmann@webkit.org>.
11582
11583         Fix Qtopia compilation with QT_NO_TOOLTIP
11584         
11585
11586         * WebCoreSupport/ChromeClientQt.cpp:
11587         (WebCore::ChromeClientQt::print):
11588
11589 2008-01-23  Geir Vattekar  <gvatteka@trolltech.com>
11590
11591         Reviewed by Simon.
11592
11593         Doc: Replaced \code with snippets in the docs
11594         
11595
11596         * Api/qwebview.cpp:
11597
11598 2008-01-23  Benjamin Meyer  <bmeyer@trolltech.com>
11599
11600         Reviewed by Simon.
11601
11602         Tweak key presses even to match commonly expected behavior
11603         - space key == page down
11604         - page down moved down not a page, but slightly less then a page so you don't loose your spot when reading.
11605         - Use font height rather then a hard coded "10" for left, right, up, down
11606         - Ctrl-Up moves to the top of the page
11607         - Ctrl-Down move to the bottom of the page
11608         - Backspace == GoBack
11609         - Shift-Backspace == GoForward
11610         
11611
11612         * Api/qwebpage.cpp:
11613         (dropActionToDragOp):
11614         (dragOpToDropAction):
11615         (QWebPagePrivate::keyPressEvent):
11616
11617 2008-01-23  Simon Hausmann  <hausmann@webkit.org>
11618
11619         Reviewed by Lars.
11620
11621         Implemented FrameLoaderClient::startDownload() and FrameLoaderClient::download().
11622         
11623         Added two signals to QWebPage to handle downloading of links and handling of
11624         unsupported content.
11625         
11626
11627         * Api/qwebpage.cpp:
11628         (QWebPage::triggerAction):
11629         * Api/qwebpage.h:
11630         * WebCoreSupport/FrameLoaderClientQt.cpp:
11631         (WebCore::FrameLoaderClientQt::download):
11632         (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
11633         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
11634         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
11635         (WebCore::FrameLoaderClientQt::willUseArchive):
11636
11637 2008-01-22  Lars Knoll  <lars@trolltech.com>
11638
11639         Reviewed by Simon.
11640
11641         setup a family for cursive and fantasy fonts as well.
11642         
11643
11644         * Api/qwebsettings.cpp:
11645         (QWebSettings::QWebSettings):
11646
11647 2008-01-22  Benjamin Meyer  <bmeyer@trolltech.com>
11648
11649         Reviewed by Simon.
11650
11651         Implement ChromeClientQt::setToolTip
11652         Implement ChromeClientQt::mouseDidMoveOverElement
11653         
11654
11655         * Api/qwebpage.cpp:
11656         * Api/qwebpage_p.h:
11657         * WebCoreSupport/ChromeClientQt.cpp:
11658         (WebCore::ChromeClientQt::ChromeClientQt):
11659         (WebCore::ChromeClientQt::focus):
11660         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
11661         (WebCore::ChromeClientQt::setToolTip):
11662         (WebCore::ChromeClientQt::print):
11663         * WebCoreSupport/ChromeClientQt.h:
11664
11665 2008-01-21  Darin Adler  <darin@apple.com>
11666
11667         Reviewed by John Sullivan.
11668
11669         - updated for changes to ChromeClient database functions
11670
11671         * WebCoreSupport/ChromeClientQt.cpp:
11672         (WebCore::ChromeClientQt::exceededDatabaseQuota):
11673         * WebCoreSupport/ChromeClientQt.h:
11674
11675 2008-01-21  Benjamin Meyer  <bmeyer@trolltech.com>
11676
11677         Reviewed by Simon.
11678
11679         Change QWebHistoryInterface::addHistoryEntry() from const to non-const
11680         
11681
11682         * Api/qwebhistoryinterface.h:
11683
11684 2008-01-21  Adam Treat  <adam.treat@torchmobile.com>
11685
11686         Reviewed by Simon.
11687
11688         * Don't leak the d-pointer in QWebSettings.
11689         
11690
11691         * Api/qwebsettings.cpp:
11692         (QWebSettings::~QWebSettings):
11693
11694 2008-01-21  Simon Hausmann  <hausmann@webkit.org>
11695
11696         Reviewed by Holger.
11697
11698         Update the WebKit version number from WebKit/win/WebKit.vcproj/VERSION.
11699         
11700         This has the fortunate side-effect that gmail sends us sensible HTML/JS again :)
11701         
11702
11703         * Api/qwebpage.cpp:
11704
11705 2008-01-21  Simon Hausmann  <hausmann@webkit.org>
11706
11707         Reviewed by Holger.
11708
11709         Fix focus chain handling and cycling through focusable objects (links) using tab/backtab.
11710         
11711         * Fix GraphicsContext::drawFocusRing to also draw single focus rects.
11712         * Implemented QWebPage::focusNextPrevChild by sending fake tab/shift-tab events
11713         and make the return value depend on whether we successfully determined a focusable
11714         node or not.
11715         * Changed QWebView::focusNextPrevChild() to call the base QWidget implementation correctly
11716         if we could not handle the focus chain ourselves.
11717         * Changed the focus policy of QWebView to correctly use WheelFocus instead of ClickFocus.
11718         * Made ChromeClientQt::canTakeFocus() and takeFocus() dummy method since they are only
11719         used to control the situation of stepping out of the focus chain inside the page.
11720         * Made inclusion of links in the focus chain configurable through QWebSettings::LinksIncludedInFocusChain.
11721         The layout tests expect this to be disabled but for the user it seems sensible to have it
11722         on by default, hence the default in qwebsettings.cpp
11723         
11724
11725         * Api/qwebpage.cpp:
11726         (QWebPage::focusNextPrevChild):
11727         * Api/qwebsettings.cpp:
11728         (QWebSettings::QWebSettings):
11729         * Api/qwebsettings.h:
11730         * Api/qwebview.cpp:
11731         (QWebView::QWebView):
11732         (QWebView::focusNextPrevChild):
11733         * WebCoreSupport/ChromeClientQt.cpp:
11734         (WebCore::ChromeClientQt::canTakeFocus):
11735         (WebCore::ChromeClientQt::takeFocus):
11736
11737 2008-01-18  Simon Hausmann  <hausmann@webkit.org>
11738
11739         Reviewed by Holger.
11740
11741         Coding style fixes and added a comment about the include order.
11742
11743         * WebKit_pch.h:
11744
11745 2008-01-18  Marius Storm-Olsen  <marius@trolltech.com>
11746
11747         Reviewed by Simon Hausmann <hausmann@webkit.org>.
11748
11749         Add use of precompiled header, when building inside Qt.
11750         
11751         Compiling WebKit was taking forever; 17 minutes on my machine for _one_ build! Adding the PCH at least brings it down to 12 minutes for one build, for me.
11752         
11753
11754         * WebKit_pch.h: Added.
11755
11756 2008-01-18  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
11757
11758         Reviewed by Simon.
11759
11760         * Ask the WebCore::IconDatabase only if our URL is not empty. Otherwise
11761         we will see a crash in a HashSet.
11762         * It is crashing there because the StringImpl of an empty String is 0.
11763         * We avoid this crash by checking for isEmpty() in WebKit as there is no
11764         use to ask the iconDatabase for an empty string. We will fallback to the
11765         defaultIcon.
11766         
11767
11768         * Api/qwebframe.cpp:
11769         (QWebFrame::icon):
11770
11771 2008-01-17  Simon Hausmann  <hausmann@webkit.org>
11772
11773         Reviewed by Holger.
11774
11775         Minor documentation fixes
11776         
11777
11778         * Api/qwebframe.cpp:
11779         * Api/qwebview.cpp:
11780
11781 2008-01-17  Simon Hausmann  <shausman@trolltech.com>
11782
11783         Reviewed by Lars.
11784
11785         Fix form elements not focusing correctly after the qt widget lost its focus.
11786         
11787         When receiving a focus out event notify the focus controller. Otherwise its
11788         m_focusedFrame variable remains unchanged and setFocusedFrame on a focusIn
11789         event shortcuts and doesn't call setActive(true).
11790         
11791
11792         * Api/qwebpage.cpp:
11793
11794 2008-01-17  Simon Hausmann  <shausman@trolltech.com>
11795
11796         Reviewed by Holger.
11797
11798         Lots of updates to the documentation.
11799         
11800
11801         * Api/qwebframe.cpp:
11802         * Api/qwebhistory.cpp:
11803         * Api/qwebpage.cpp:
11804         (QWebPagePrivate::dropEvent):
11805         (QWebPage::history):
11806         (openNewWindow):
11807         (QWebPage::triggerAction):
11808         (QWebPage::viewportSize):
11809         (QWebPage::navigationRequested):
11810         (QWebPage::action):
11811         (QWebPage::event):
11812         (QWebPageContext::targetFrame):
11813         * Api/qwebpage.h:
11814         * Api/qwebview.cpp:
11815
11816 2008-01-17  Simon Hausmann  <shausman@trolltech.com>
11817
11818         Reviewed by Lars.
11819
11820         Added a urlChanged signals to QWebFrame and QWebView.
11821         
11822
11823         * Api/qwebframe.cpp:
11824         * Api/qwebframe.h:
11825         * Api/qwebview.cpp:
11826         (QWebView::setPage):
11827         * Api/qwebview.h:
11828         * WebCoreSupport/FrameLoaderClientQt.cpp:
11829
11830 2008-01-17  Simon Hausmann  <shausman@trolltech.com>
11831
11832         Reviewed by Lars.
11833
11834         Fixed docs and sanity checks in QWebSettings::setIconDatabaseEnabled
11835         
11836
11837         * Api/qwebsettings.cpp:
11838         (QWebSettings::setIconDatabaseEnabled):
11839
11840 2008-01-17  Simon Hausmann  <shausman@trolltech.com>
11841
11842         Reviewed by Lars.
11843
11844         Added QWebView::createWindow() which is forwarded from QWebPage::createWindow() for convenience.
11845         
11846
11847         * Api/qwebpage.cpp:
11848         (QWebPage::createWindow):
11849         * Api/qwebview.cpp:
11850         (QWebView::createWindow):
11851         * Api/qwebview.h:
11852
11853 2008-01-17  Lars Knoll  <lars@trolltech.com>
11854
11855         Reviewed by Lars.
11856
11857         add a 0 pointer check.
11858
11859         Fixes a crash in the demo web browser.
11860
11861         * WebCoreSupport/FrameLoaderClientQt.cpp:
11862         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
11863
11864 2008-01-17  Simon Hausmann  <hausmann@webkit.org>
11865
11866         Reviewed by Holger.
11867
11868         Fix QWebFrame::title().
11869         
11870         For the titleChanged() signal we use the documentloader's title. For the property we have to use the same
11871         instead of Document::title() as the latter is not trimmed and not suited for a window caption.
11872         
11873
11874         * Api/qwebframe.cpp:
11875         (QWebFrame::title):
11876
11877 2008-01-17  Simon Hausmann  <hausmann@webkit.org>
11878
11879         Reviewed by Maciej, Lars, Holger.
11880
11881         http://bugs.webkit.org/show_bug.cgi?id=16589
11882
11883         Add a document parameter to WebCore::cookies, setCookies and cookiesEnabled.
11884
11885         * Api/qwebnetworkinterface.cpp:
11886         (QWebNetworkRequestPrivate::init):
11887         (QWebNetworkManager::started):
11888
11889 2008-01-17  Warwick Allison  <warwick@trolltech.com>
11890
11891         Reviewed by Simon Hausmann <hausmann@webkit.org>.
11892
11893         Follow QWidget::keyPressEvent advice and call parents.
11894         
11895         Without this, Back does not work in Qtopia, for example.
11896         
11897
11898         * Api/qwebview.cpp:
11899         (QWebView::keyPressEvent):
11900         (QWebView::keyReleaseEvent):
11901
11902 2008-01-17  Simon Hausmann  <hausmann@webkit.org>
11903
11904         Reviewed by Lars.
11905
11906         Fix compilation against Qt 4.3 after the recent KURL <> QUrl conversion fixes.
11907
11908         * Api/qwebnetworkinterface.cpp:
11909         (QWebNetworkManager::started):
11910
11911 2008-01-17  Simon Hausmann  <shausman@trolltech.com>
11912
11913         Reviewed by Holger.
11914
11915         Fix compilation against Qt 4.4 without files that are specific for the Qt 4.3 build.
11916         
11917
11918         * Api/qwebframe.cpp:
11919         * Api/qwebpage.cpp:
11920         * WebCoreSupport/FrameLoaderClientQt.cpp:
11921
11922 2008-01-17  Lincoln Ramsay  <lincoln.ramsay@trolltech.com>
11923
11924         Reviewed by Simon Hausmann <hausmann@webkit.org>.
11925
11926         Fixes compilation with QT_NO_DRAGANDDROP
11927         
11928
11929         * Api/qwebpage.cpp:
11930         (QWebPage::event):
11931         * Api/qwebview.cpp:
11932         (QWebView::dragEnterEvent):
11933         (QWebView::dragLeaveEvent):
11934         (QWebView::dragMoveEvent):
11935         (QWebView::dropEvent):
11936
11937 2008-01-17  Simon Hausmann  <hausmann@webkit.org>
11938
11939         Reviewed by Lars.
11940
11941         Fix compilation, removed obsolete privateBrowsingEnabled() method.
11942
11943         * WebCoreSupport/FrameLoaderClientQt.cpp:
11944
11945 2008-01-16  Lars Knoll  <lars@trolltech.com>
11946
11947         Reviewed by Simon Hausmann <simon.hausmann@trolltech.com>.
11948
11949         Removed a whole bunch of notImplemented() warnings.
11950         
11951         I don't want to hide the real warnings in lots of things that
11952         I am by now pretty certain we won't need.
11953         
11954
11955         * WebCoreSupport/FrameLoaderClientQt.cpp:
11956         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
11957         (WebCore::FrameLoaderClientQt::canShowMIMEType):
11958
11959 2008-01-16  Simon Hausmann  <hausmann@webkit.org>
11960
11961         Reviewed by Holger.
11962
11963         Fix crash when bringing up the context menu on maps.google.com.
11964         
11965         If the website provides its own context menu then we don't have a ContextMenu pointer.
11966         
11967
11968         * Api/qwebpage.cpp:
11969         (QWebPagePrivate::contextMenuEvent):
11970
11971 2008-01-16  Simon Hausmann  <hausmann@webkit.org>
11972
11973         Reviewed by Holger.
11974
11975         Don't crash when receiving all sorts of events on a default constructed QWebView without a page.
11976
11977         * Api/qwebview.cpp:
11978         (QWebView::mouseMoveEvent):
11979         (QWebView::mousePressEvent):
11980         (QWebView::mouseDoubleClickEvent):
11981         (QWebView::mouseReleaseEvent):
11982         (QWebView::contextMenuEvent):
11983         (QWebView::wheelEvent):
11984         (QWebView::keyPressEvent):
11985         (QWebView::keyReleaseEvent):
11986         (QWebView::focusInEvent):
11987         (QWebView::focusOutEvent):
11988         (QWebView::dragEnterEvent):
11989         (QWebView::dragLeaveEvent):
11990         (QWebView::dragMoveEvent):
11991         (QWebView::dropEvent):
11992         (QWebView::focusNextPrevChild):
11993
11994 2008-01-16  Simon Hausmann  <hausmann@webkit.org>
11995
11996         Reviewed by Lars.
11997
11998         Made the url property read-write.
11999
12000         * Api/qwebview.h:
12001
12002 2008-01-16  Simon Hausmann  <hausmann@webkit.org>
12003
12004         Reviewed by Lars.
12005
12006         Don't crash when showing a default initialized QWebView that has no page/frame yet.
12007
12008         * Api/qwebview.cpp:
12009         (QWebView::paintEvent):
12010
12011 2008-01-16  Holger Freyther  <holger.freyther@trolltech.com>
12012
12013         Reviewed by Simon.
12014
12015         Change hoveringOverLink implementation to have less issues.
12016         
12017         * Currently we only compare a pointer. In the worst case we
12018         could delete the Element we have pointed to and a new one
12019         gets the same address. But even if that doesn't happen the
12020         WebCore::Element is mutable and JavaScript could change the
12021         URL, Title or Content. So we have to compare all these three
12022         attributes.
12023         * This does not seem to be a performance impact.
12024         
12025
12026         * Api/qwebpage.cpp:
12027         (QWebPagePrivate::mouseMoveEvent):
12028         * Api/qwebpage_p.h:
12029
12030 2008-01-16  Holger Freyther  <holger.freyther@trolltech.com>
12031
12032         Reviewed by Simon.
12033
12034         * Move the hoverElement from QWebFrame to QWebPage. As it is
12035         only used there.
12036         
12037
12038         * Api/qwebframe_p.h:
12039         (QWebFramePrivate::QWebFramePrivate):
12040         * Api/qwebpage.cpp:
12041         (QWebPagePrivate::mouseMoveEvent):
12042         * Api/qwebpage_p.h:
12043
12044 2008-01-16  Holger Freyther  <holger.freyther@trolltech.com>
12045
12046         Reviewed by Simon.
12047
12048         EventHandler changes/fixes in QWebPage:
12049         -mouse{Press,Move,Release}Event:
12050         Send the event always to the mainFrame of the QWebPage.
12051         
12052         -contextMenuEvent, key{Press,Release}Event:
12053         Send the event to the focused frame.
12054         
12055         This is following the Windows port and fixes a issue with the
12056         Web Inspector where we were sending the events to a wrong frame.
12057         
12058         It is guaranteed that the mainFrame will always have an eventHandler
12059         and frameView set. There is no need to check for this in QWebPage.
12060         
12061
12062         * Api/qwebframe.cpp:
12063         (QWebFramePrivate::init):
12064         * Api/qwebframe_p.h:
12065         (QWebFramePrivate::QWebFramePrivate):
12066         * Api/qwebpage.cpp:
12067         (QWebPagePrivate::updateEditorActions):
12068         (QWebPagePrivate::mouseMoveEvent):
12069         (QWebPagePrivate::mousePressEvent):
12070         (QWebPagePrivate::mouseDoubleClickEvent):
12071         (QWebPagePrivate::mouseReleaseEvent):
12072         (QWebPagePrivate::contextMenuEvent):
12073         (QWebPagePrivate::wheelEvent):
12074         (QWebPagePrivate::keyPressEvent):
12075         (QWebPagePrivate::keyReleaseEvent):
12076         (QWebPagePrivate::focusInEvent):
12077         * Api/qwebpage_p.h:
12078
12079 2008-01-16  Holger Freyther  <holger.freyther@trolltech.com>
12080
12081         Reviewed by Simon.
12082
12083         * Add core and kit functions to QWebFramePrivate to convert from
12084         QWebFrame to WebCore::Frame and vice versa.
12085         
12086
12087         * Api/qwebframe.cpp:
12088         (QWebFramePrivate::core):
12089         (QWebFramePrivate::kit):
12090         * Api/qwebframe.h:
12091         * Api/qwebframe_p.h:
12092
12093 2008-01-16  Lars Knoll  <lars@trolltech.com>
12094
12095         Reviewed by Simon.
12096
12097         add conversion methods from and to QUrl to KURL.
12098         
12099         Use them in the places I found at the moment. Fixes a bug
12100         where form data was encoded twice.
12101         Also fix QWebSettings to take a QUrl for the user style sheet
12102         location.
12103         
12104
12105         * Api/qwebframe.cpp:
12106         (QWebFrame::load):
12107         * Api/qwebpage.cpp:
12108         (QWebPage::createPlugin):
12109         (frameLoadRequest):
12110         (QWebPage::triggerAction):
12111         * Api/qwebsettings.cpp:
12112         (QWebSettingsPrivate::apply):
12113         * Api/qwebsettings.h:
12114         * WebCoreSupport/ChromeClientQt.cpp:
12115         (WebCore::ChromeClientQt::createWindow):
12116         (WebCore::ChromeClientQt::show):
12117
12118 2008-01-16  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
12119
12120         Reviewed by Lars.
12121
12122         * Make the InspectorClientView inherit from QWebView instead of QWidget. This
12123         way paintEvent, mouse{Press,Release}Event and other events get forwarded to
12124         the QWebPage/WebInspector automatically.
12125         
12126
12127         * WebCoreSupport/InspectorClientQt.cpp:
12128         (WebCore::InspectorClientWebPage::createWindow):
12129         (WebCore::InspectorClientView::InspectorClientView):
12130
12131 2008-01-10  Maciej Stachowiak  <mjs@apple.com>
12132
12133         Reviewed by Sam.
12134
12135         - remove SecurityOriginData and fold its functionality into SecurityOrigin
12136
12137         * WebCoreSupport/ChromeClientQt.cpp:
12138         (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
12139         (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
12140         * WebCoreSupport/ChromeClientQt.h:
12141
12142 2008-01-10  Lars Knoll  <lars@trolltech.com>
12143
12144         Reviewed by Simon.
12145
12146         document QWebHistory
12147         
12148
12149         * Api/qwebhistory.cpp:
12150         (QWebHistoryItem::QWebHistoryItem):
12151         (QWebHistoryItem::operator=):
12152         (QWebHistoryItem::~QWebHistoryItem):
12153         (QWebHistoryItem::originalUrl):
12154         (QWebHistoryItem::currentUrl):
12155         (QWebHistoryItem::title):
12156         (QWebHistoryItem::icon):
12157         (QWebHistory::canGoBack):
12158         (QWebHistory::canGoForward):
12159         (QWebHistory::goBack):
12160         (QWebHistory::goForward):
12161         (QWebHistory::goToItem):
12162         * Api/qwebhistory.h:
12163
12164 2008-01-10  Simon Hausmann  <hausmann@webkit.org>
12165
12166         Reviewed by Lars.
12167
12168         Make the reset() functions not do anything on the default QWebSettings object.
12169         
12170
12171         * Api/qwebsettings.cpp:
12172         (QWebSettings::resetFontSize):
12173         (QWebSettings::resetFontFamily):
12174         (QWebSettings::clearAttribute):
12175
12176 2008-01-10  Lars Knoll  <lars@trolltech.com>
12177
12178         Reviewed by Simon.
12179
12180         rename QWebPageHistory to QWebHistory.
12181         
12182
12183         * Api/qwebhistory.cpp: Added.
12184         (QWebHistoryItem::QWebHistoryItem):
12185         (QWebHistoryItem::operator=):
12186         (QWebHistoryItem::~QWebHistoryItem):
12187         (QWebHistoryItem::originalUrl):
12188         (QWebHistoryItem::currentUrl):
12189         (QWebHistoryItem::title):
12190         (QWebHistoryItem::lastVisited):
12191         (QWebHistoryItem::icon):
12192         (QWebHistory::QWebHistory):
12193         (QWebHistory::~QWebHistory):
12194         (QWebHistory::clear):
12195         (QWebHistory::items):
12196         (QWebHistory::backItems):
12197         (QWebHistory::forwardItems):
12198         (QWebHistory::canGoBack):
12199         (QWebHistory::canGoForward):
12200         (QWebHistory::goBack):
12201         (QWebHistory::goForward):
12202         (QWebHistory::goToItem):
12203         (QWebHistory::backItem):
12204         (QWebHistory::currentItem):
12205         (QWebHistory::forwardItem):
12206         (QWebHistory::itemAtIndex):
12207         * Api/qwebhistory.h: Added.
12208         * Api/qwebhistory_p.h: Added.
12209         (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
12210         (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
12211         (QWebHistoryPrivate::QWebHistoryPrivate):
12212         (QWebHistoryPrivate::~QWebHistoryPrivate):
12213         * Api/qwebpage.cpp:
12214         (QWebPagePrivate::QWebPagePrivate):
12215         * Api/qwebpage.h:
12216         * Api/qwebpage_p.h:
12217         * Api/qwebpagehistory.cpp: Removed.
12218         * Api/qwebpagehistory.h: Removed.
12219         * Api/qwebpagehistory_p.h: Removed.
12220         * Api/qwebview.cpp:
12221         * Api/qwebview.h:
12222
12223 2008-01-10  Simon Hausmann  <hausmann@webkit.org>
12224
12225         Reviewed by Lars.
12226
12227         Documentation for QWebSettings
12228         
12229
12230         * Api/qwebsettings.cpp:
12231         (QWebSettings::~QWebSettings):
12232         (QWebSettings::setFontSize):
12233         (QWebSettings::resetFontSize):
12234         (QWebSettings::setUserStyleSheetLocation):
12235         (QWebSettings::userStyleSheetLocation):
12236         (QWebSettings::iconDatabaseEnabled):
12237         (QWebSettings::webGraphic):
12238         (QWebSettings::setFontFamily):
12239         (QWebSettings::resetFontFamily):
12240         (QWebSettings::setAttribute):
12241
12242 2008-01-10  Lars Knoll  <lars@trolltech.com>
12243
12244         Reviewed by Simon.
12245
12246         Document QWebHistoryInterface.
12247         
12248
12249         * Api/qwebhistoryinterface.cpp:
12250         (QWebHistoryInterface::defaultInterface):
12251         (QWebHistoryInterface::~QWebHistoryInterface):
12252
12253 2008-01-10  Lars Knoll  <lars@trolltech.com>
12254
12255         Reviewed by Simon.
12256
12257         Documentation for QWebFrame.
12258         
12259
12260         * Api/qwebframe.cpp:
12261         (QWebFrame::url):
12262         (QWebFrame::name):
12263         (QWebFrame::page):
12264         (QWebFrame::setHtml):
12265         (QWebFrame::parentFrame):
12266         (QWebFrame::render):
12267         (QWebFrame::pos):
12268         (QWebFrame::geometry):
12269         * Api/qwebframe.h:
12270         * Api/qwebframe_p.h:
12271
12272 2008-01-10  Lars Knoll  <lars@trolltech.com>
12273
12274         Reviewed by Simon.
12275
12276         fix the drawing errors that where introduced due to refactoring.
12277         
12278         Correctly clip to the rectangle we want to draw in ScrollView::paint().
12279         
12280
12281         * Api/qwebframe.cpp:
12282         (QWebFrame::render):
12283         * Api/qwebframe.h:
12284         * Api/qwebview.cpp:
12285         (QWebView::paintEvent):
12286         * WebCoreSupport/ChromeClientQt.cpp:
12287         (WebCore::ChromeClientQt::scrollBackingStore):
12288
12289 2008-01-10  Simon Hausmann  <hausmann@webkit.org>
12290
12291         Reviewed by Lars.
12292
12293         Added a whole bunch of docs for QWebPage and fixed some minor doc glitches in QWebView.
12294         
12295
12296         * Api/qwebpage.cpp:
12297         (QWebPagePrivate::dropEvent):
12298         (QWebPage::QWebPage):
12299         (QWebPage::~QWebPage):
12300         (QWebPage::mainFrame):
12301         (QWebPage::currentFrame):
12302         (QWebPage::history):
12303         (QWebPage::setView):
12304         (QWebPage::view):
12305         (QWebPage::javaScriptConsoleMessage):
12306         (QWebPage::javaScriptAlert):
12307         (QWebPage::javaScriptConfirm):
12308         (QWebPage::javaScriptPrompt):
12309         (QWebPage::createWindow):
12310         (QWebPage::createModalDialog):
12311         (openNewWindow):
12312         (QWebPage::triggerAction):
12313         (QWebPage::viewportSize):
12314         (QWebPage::navigationRequested):
12315         (QWebPage::selectedText):
12316         (QWebPage::isModified):
12317         (QWebPage::focusNextPrevChild):
12318         (QWebPage::settings):
12319         (QWebPage::networkProxy):
12320         (QWebPage::setNetworkAccessManager):
12321         (QWebPage::networkAccessManager):
12322         (QWebPagePrivate::_q_onLoadProgressChanged):
12323         * Api/qwebview.cpp:
12324
12325 2008-01-07  Holger Freyther  <zecke@selfish.org>
12326
12327         Reviewed by Alp Toker.
12328
12329         * Qt and Gtk must know if a ContextMenuItem is checkable. Add a new ContextMenuItemType for checkable
12330         actions.
12331         * Use this information in the Gtk platform to create a GtkCheckMenuItem when needed.
12332         * Update the ContextMenuController to accept CheckableActionTypes as well.
12333         * Change ContextMenu.cpp to use the CheckableActionType. The information if a item is checkable
12334         was extracted from ContextMenu::checkOrEnableIfNeeded.
12335         * Update the Qt and Windows port.
12336
12337         * Api/qwebpage.cpp:
12338         (QWebPagePrivate::createContextMenu):
12339
12340 2008-01-07  Simon Hausmann  <hausmann@webkit.org>
12341
12342         Build fix for the Windows build. MSVC wants to see the full
12343         declaration of arguments even when just passing them through.
12344
12345         * Api/qwebpage.cpp:
12346
12347 2008-01-07  Simon Hausmann  <hausmann@webkit.org>
12348
12349         Reviewed by Lars.
12350
12351         Added the missing parameters to make it possible to do POST operations from the public API.
12352         
12353         This is ugly though as it also requires including qnetworkaccessmanager.h. It would be nicer if the
12354         two extra arguments were in QNetworkRequest :-/
12355         
12356
12357         * Api/qwebframe.cpp:
12358         (QWebFrame::load):
12359         * Api/qwebframe.h:
12360         * Api/qwebview.cpp:
12361         (QWebView::load):
12362         * Api/qwebview.h:
12363
12364 2008-01-07  Simon Hausmann  <hausmann@webkit.org>
12365
12366         Reviewed by Lars.
12367
12368         Ported of the network backend of the Qt platform to Qt 4.4's new networking API.
12369         
12370
12371         * Api/qwebframe.cpp:
12372         (QWebFrame::load):
12373         * Api/qwebframe.h:
12374         * Api/qwebnetworkinterface.cpp:
12375         * Api/qwebnetworkinterface.h:
12376         * Api/qwebnetworkinterface_p.h:
12377         * Api/qwebobjectplugin.cpp:
12378         * Api/qwebobjectplugin.h:
12379         * Api/qwebobjectplugin_p.h:
12380         * Api/qwebobjectpluginconnector.cpp:
12381         * Api/qwebobjectpluginconnector.h:
12382         * Api/qwebpage.cpp:
12383         (QWebPagePrivate::QWebPagePrivate):
12384         (QWebPagePrivate::~QWebPagePrivate):
12385         (QWebPagePrivate::navigationRequested):
12386         (QWebPage::setNetworkInterface):
12387         (QWebPage::networkInterface):
12388         (QWebPage::setNetworkAccessManager):
12389         (QWebPage::networkAccessManager):
12390         * Api/qwebpage.h:
12391         * Api/qwebpage_p.h:
12392         * Api/qwebview.cpp:
12393         * Api/qwebview.h:
12394         * WebCoreSupport/FrameLoaderClientQt.cpp:
12395         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
12396         (WebCore::FrameLoaderClientQt::objectContentType):
12397         (WebCore::FrameLoaderClientQt::createPlugin):
12398
12399 2008-01-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
12400
12401         Reviewed by Simon.
12402
12403         * Move the QWebPagePrivate methods up to the other private ones
12404
12405         * Api/qwebpage.cpp:
12406         (dropActionToDragOp):
12407         (dragOpToDropAction):
12408         (QWebPagePrivate::mouseMoveEvent):
12409         (QWebPagePrivate::mousePressEvent):
12410         (QWebPagePrivate::mouseDoubleClickEvent):
12411         (QWebPagePrivate::mouseReleaseEvent):
12412         (QWebPagePrivate::contextMenuEvent):
12413         (QWebPagePrivate::wheelEvent):
12414         (QWebPagePrivate::keyPressEvent):
12415         (QWebPagePrivate::keyReleaseEvent):
12416         (QWebPagePrivate::focusInEvent):
12417         (QWebPagePrivate::focusOutEvent):
12418         (QWebPagePrivate::dragEnterEvent):
12419         (QWebPagePrivate::dragLeaveEvent):
12420         (QWebPagePrivate::dragMoveEvent):
12421         (QWebPagePrivate::dropEvent):
12422         (QWebPage::focusNextPrevChild):
12423
12424 2008-01-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
12425
12426         Reviewed by Simon.
12427
12428         * Add reimplemented comments for the methods reimplemented in QWebView and QWebPage.
12429         
12430
12431         * Api/qwebpage.cpp:
12432         (dragOpToDropAction):
12433         * Api/qwebview.cpp:
12434         (QWebView::mouseMoveEvent):
12435         (QWebView::mousePressEvent):
12436         (QWebView::mouseDoubleClickEvent):
12437         (QWebView::mouseReleaseEvent):
12438         (QWebView::contextMenuEvent):
12439         (QWebView::keyPressEvent):
12440         (QWebView::keyReleaseEvent):
12441         (QWebView::focusInEvent):
12442         (QWebView::focusOutEvent):
12443         (QWebView::dragEnterEvent):
12444         (QWebView::dragLeaveEvent):
12445         (QWebView::dragMoveEvent):
12446         (QWebView::dropEvent):
12447
12448 2008-01-07  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
12449
12450         Reviewed by Lars.
12451
12452         * This layout is not needed anymore as Widget::invalidateRect will not
12453         draw anymore.
12454         
12455
12456         * Api/qwebview.cpp:
12457         (QWebView::paintEvent):
12458
12459 2008-01-04  Lars Knoll  <lars@trolltech.com>
12460
12461         Reviewed by Simon.
12462
12463         Remove most dependencies of Widget/ScrollView onto native QWidgets.
12464         
12465         This also brings the code closer in line with the Windows code. Seems
12466         to work nicely on first try :)
12467         
12468
12469         * WebCoreSupport/ChromeClientQt.cpp:
12470         (WebCore::ChromeClientQt::updateBackingStore):
12471         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
12472         (WebCore::ChromeClientQt::setToolTip):
12473         * WebCoreSupport/FrameLoaderClientQt.cpp:
12474         (WebCore::FrameLoaderClientQt::createPlugin):
12475
12476 2008-01-04  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
12477
12478         Reviewed by Simon.
12479
12480         * Remove the todo from QWebPage and move the code to QWebView.
12481         
12482
12483         * Api/qwebpage.cpp:
12484         (QWebPagePrivate::wheelEvent):
12485         (QWebPagePrivate::focusInEvent):
12486         * Api/qwebview.cpp:
12487         (QWebView::wheelEvent):
12488         (QWebView::focusInEvent):
12489
12490 2008-01-04  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
12491
12492         Reviewed by Simon.
12493
12494         * Move the various event methods to QWebPagePrivate. This is similar to
12495         QTextControl as well.
12496         
12497
12498         * Api/qwebpage.cpp:
12499         (QWebPage::event):
12500         (QWebPagePrivate::mouseMoveEvent):
12501         (QWebPagePrivate::mousePressEvent):
12502         (QWebPagePrivate::mouseDoubleClickEvent):
12503         (QWebPagePrivate::mouseReleaseEvent):
12504         (QWebPagePrivate::contextMenuEvent):
12505         (QWebPagePrivate::wheelEvent):
12506         (QWebPagePrivate::keyPressEvent):
12507         (QWebPagePrivate::keyReleaseEvent):
12508         (QWebPagePrivate::focusInEvent):
12509         (QWebPagePrivate::focusOutEvent):
12510         (QWebPage::focusNextPrevChild):
12511         (QWebPagePrivate::dragEnterEvent):
12512         (QWebPagePrivate::dragLeaveEvent):
12513         (QWebPagePrivate::dragMoveEvent):
12514         (QWebPagePrivate::dropEvent):
12515         * Api/qwebpage.h:
12516         * Api/qwebpage_p.h:
12517
12518 2008-01-04  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
12519
12520         Reviewed by Simon.
12521
12522         * Forward the event from QWebView to QWebPage through QObject::event. This
12523         is similar to the way QTextControl is working.
12524         
12525
12526         * Api/qwebpage.cpp:
12527         (dragOpToDropAction):
12528         (QWebPage::event):
12529         * Api/qwebpage.h:
12530         * Api/qwebview.cpp:
12531         (QWebView::mouseMoveEvent):
12532         (QWebView::mousePressEvent):
12533         (QWebView::mouseDoubleClickEvent):
12534         (QWebView::mouseReleaseEvent):
12535         (QWebView::contextMenuEvent):
12536         (QWebView::wheelEvent):
12537         (QWebView::keyPressEvent):
12538         (QWebView::keyReleaseEvent):
12539         (QWebView::focusInEvent):
12540         (QWebView::focusOutEvent):
12541         (QWebView::dragEnterEvent):
12542         (QWebView::dragLeaveEvent):
12543         (QWebView::dragMoveEvent):
12544         (QWebView::dropEvent):
12545         * Api/qwebview.h:
12546
12547 2008-01-04  Lars Knoll  <lars@trolltech.com>
12548
12549         Reviewed by Simon.
12550
12551         make QWebPage a QObject and get things to compile.
12552         
12553         Nothing works currently though.
12554         
12555
12556         * Api/qwebobjectpluginconnector.cpp:
12557         * Api/qwebpage.cpp:
12558         (QWebPagePrivate::QWebPagePrivate):
12559         (QWebPagePrivate::createMainFrame):
12560         (QWebPage::QWebPage):
12561         (QWebPage::setView):
12562         (QWebPage::view):
12563         (QWebPage::javaScriptAlert):
12564         (QWebPage::javaScriptPrompt):
12565         (dragOpToDropAction):
12566         (QWebPage::mousePressEvent):
12567         (QWebPage::mouseDoubleClickEvent):
12568         (QWebPage::mouseReleaseEvent):
12569         (QWebPage::wheelEvent):
12570         (QWebPage::keyPressEvent):
12571         (QWebPage::focusInEvent):
12572         * Api/qwebpage.h:
12573         * Api/qwebpage_p.h:
12574         * Api/qwebview.cpp:
12575         (QWebView::QWebView):
12576         (QWebView::setPage):
12577         (QWebView::resizeEvent):
12578         (QWebView::paintEvent):
12579         * Api/qwebview.h:
12580         * WebCoreSupport/ChromeClientQt.cpp:
12581         (WebCore::ChromeClientQt::windowRect):
12582         (WebCore::ChromeClientQt::pageRect):
12583         (WebCore::ChromeClientQt::focus):
12584         (WebCore::ChromeClientQt::unfocus):
12585         (WebCore::ChromeClientQt::canTakeFocus):
12586         (WebCore::ChromeClientQt::takeFocus):
12587         (WebCore::ChromeClientQt::canRunModal):
12588         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
12589         * WebCoreSupport/DragClientQt.cpp:
12590         (WebCore::DragClientQt::startDrag):
12591         * WebCoreSupport/FrameLoaderClientQt.cpp:
12592         (WebCore::FrameLoaderClientQt::createPlugin):
12593         * WebCoreSupport/InspectorClientQt.cpp:
12594         (WebCore::InspectorClientWebPage::createWindow):
12595         (WebCore::InspectorClientView::InspectorClientView):
12596         (WebCore::InspectorClientView::page):
12597         (WebCore::InspectorClientView::hideEvent):
12598         (WebCore::InspectorClientView::closeEvent):
12599         (WebCore::InspectorClientQt::createPage):
12600         (WebCore::InspectorClientQt::closeWindow):
12601
12602 2008-01-04  Simon Hausmann  <hausmann@webkit.org>
12603
12604         Reviewed by Lars.
12605
12606         Added some preliminary class documentation for QWebView, fixed a missing const() and some missing Q_PROPERTYs
12607         
12608
12609         * Api/qwebview.cpp:
12610         (QWebView::setHtml):
12611         (QWebView::setContent):
12612         (QWebView::history):
12613         (QWebView::settings):
12614         (QWebView::action):
12615         (QWebView::triggerAction):
12616         (QWebView::stop):
12617         (QWebView::backward):
12618         (QWebView::forward):
12619         (QWebView::reload):
12620         * Api/qwebview.h:
12621
12622 2008-01-04  Lars Knoll  <lars@trolltech.com>
12623
12624         Reviewed by Simon.
12625
12626         add a viewportSize to QWebPage.
12627         
12628         This is required to eventually make it a QObject only.
12629         
12630
12631         * Api/qwebpage.cpp:
12632         (QWebPage::triggerAction):
12633         (QWebPage::viewportSize):
12634         (QWebPage::setViewportSize):
12635         * Api/qwebpage.h:
12636
12637 2008-01-04  Lars Knoll  <lars@trolltech.com>
12638
12639         Reviewed by Simon.
12640
12641         take a QString as identifier in QWebFrame::addToJSWindowObject.
12642
12643         * Api/qwebframe.cpp:
12644         (QWebFrame::addToJSWindowObject):
12645         * Api/qwebframe.h:
12646
12647 2008-01-04  Simon Hausmann  <hausmann@webkit.org>
12648
12649         Reviewed by Lars.
12650
12651         Call the frame arguments for the javascript callbacks "originatingFrame"
12652         
12653
12654         * Api/qwebpage.h:
12655
12656 2008-01-04  Simon Hausmann  <hausmann@webkit.org>
12657
12658         Reviewed by Lars.
12659
12660         Moved the QWebPage::addToHistory signal into QWebHistoryInterface
12661         
12662
12663         * Api/qwebhistoryinterface.h:
12664         * Api/qwebpage.h:
12665         * WebCoreSupport/FrameLoaderClientQt.cpp:
12666         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
12667
12668 2008-01-04  Lars Knoll  <lars@trolltech.com>
12669
12670         Reviewed by Simon.
12671
12672         moved title(), url(), icon() and initialLayoutComplete() from QWebPage to QWebFrame
12673
12674         * Api/qwebframe.cpp:
12675         (QWebFrame::url):
12676         (QWebFrame::icon):
12677         (QWebFrame::setVerticalScrollBarPolicy):
12678         * Api/qwebframe.h:
12679         * Api/qwebpage.cpp:
12680         (QWebPage::javaScriptAlert):
12681         (QWebPage::javaScriptPrompt):
12682         (QWebPage::networkInterface):
12683         * Api/qwebpage.h:
12684         * Api/qwebview.cpp:
12685         (QWebView::title):
12686         (QWebView::url):
12687         (QWebView::icon):
12688         * WebCoreSupport/FrameLoaderClientQt.cpp:
12689
12690 2008-01-03  Simon Hausmann  <hausmann@webkit.org>
12691
12692         Reviewed by Lars.
12693
12694         Moved QWebPage::open to QWebFrame::load and added setHtml.
12695         
12696
12697         * Api/qwebframe.cpp:
12698         (QWebFrame::load):
12699         (QWebFrame::setHtml):
12700         (QWebFrame::setContent):
12701         * Api/qwebframe.h:
12702         * Api/qwebpage.cpp:
12703         * Api/qwebpage.h:
12704         * Api/qwebview.cpp:
12705         (QWebView::load):
12706         (QWebView::setHtml):
12707         * Api/qwebview.h:
12708         * WebCoreSupport/ChromeClientQt.cpp:
12709         (WebCore::ChromeClientQt::createWindow):
12710         * WebCoreSupport/InspectorClientQt.cpp:
12711         (WebCore::InspectorClientQt::createPage):
12712
12713 2008-01-03  Simon Hausmann  <hausmann@webkit.org>
12714
12715         Reviewed by Lars.
12716
12717         Added the first revision of QWebView and started moving functionality from QWebPave over to QWebView and QWebFrame.
12718         
12719
12720         * Api/headers.pri:
12721         * Api/qwebframe.h:
12722         * Api/qwebpage.cpp:
12723         (QWebPagePrivate::createMainFrame):
12724         * Api/qwebpage.h:
12725         * Api/qwebpagehistory.h:
12726         * Api/qwebview.cpp: Added.
12727         (QWebView::QWebView):
12728         (QWebView::~QWebView):
12729         (QWebView::page):
12730         (QWebView::setPage):
12731         (QWebView::load):
12732         (QWebView::setHtml):
12733         (QWebView::history):
12734         (QWebView::settings):
12735         (QWebView::title):
12736         (QWebView::url):
12737         (QWebView::icon):
12738         (QWebView::selectedText):
12739         (QWebView::action):
12740         (QWebView::triggerAction):
12741         (QWebView::isModified):
12742         (QWebView::textInteractionFlags):
12743         (QWebView::setTextInteractionFlags):
12744         (QWebView::sizeHint):
12745         (QWebView::stop):
12746         (QWebView::backward):
12747         (QWebView::forward):
12748         (QWebView::reload):
12749         * Api/qwebview.h: Added.
12750         * QtLauncher/main.cpp:
12751         (MainWindow::MainWindow):
12752         (MainWindow::webPage):
12753         (MainWindow::changeLocation):
12754         * WebCoreSupport/FrameLoaderClientQt.cpp:
12755         (WebCore::FrameLoaderClientQt::setFrame):
12756         * WebCoreSupport/FrameLoaderClientQt.h:
12757
12758 2007-12-14  Darin Adler  <darin@apple.com>
12759
12760         Reviewed by Alexey.
12761
12762         * Api/qwebpage.cpp:
12763         (QWebPage::triggerAction): Removed some use of Editor member functions we plan
12764         to eventually eliminate. Switch from Editor::execCommand to Editor::command.
12765         * WebCoreSupport/EditorClientQt.cpp:
12766         (WebCore::EditorClientQt::handleKeyboardEvent): Ditto. Also updated name from
12767         MoveUpByPageAndModifyCaret to MovePageUp and from MoveDownByPageAndModifyCaret
12768         to MovePageDown.
12769
12770 2007-12-12  Brady Eidson  <beidson@apple.com>
12771
12772         Reviewed by Sam Weinig
12773
12774         As part of doing some CachedPage and client cleanup, keep Qt building
12775
12776         * WebCoreSupport/FrameLoaderClientQt.cpp:
12777         (WebCore::FrameLoaderClientQt::savePlatformDataToCachedPage):
12778         (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
12779         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
12780         * WebCoreSupport/FrameLoaderClientQt.h:
12781
12782 2007-12-12  Sam Weinig  <sam@webkit.org>
12783
12784         Build fix.
12785
12786         * WebCoreSupport/FrameLoaderClientQt.cpp:
12787         (WebCore::FrameLoaderClientQt::userAgent):
12788
12789 2007-12-12  Sam Weinig  <sam@webkit.org>
12790
12791         Build fix.
12792
12793         * Api/qwebnetworkinterface.cpp:
12794         (QWebNetworkRequestPrivate::init):
12795         * Api/qwebpage.cpp:
12796         (QWebPage::url):
12797         (QWebPageContext::QWebPageContext):
12798         * Api/qwebpagehistory.cpp:
12799         (QWebHistoryItem::originalUrl):
12800         (QWebHistoryItem::currentUrl):
12801         * WebCoreSupport/FrameLoaderClientQt.cpp:
12802         (WebCore::FrameLoaderClientQt::cannotShowURLError):
12803         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
12804         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
12805         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
12806         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
12807         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
12808         (WebCore::FrameLoaderClientQt::createPlugin):
12809
12810 2007-12-07  Alexey Proskuryakov  <ap@webkit.org>
12811
12812         Reviewed by Darin Adler.
12813
12814         <rdar://problem/5535636>
12815         Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
12816
12817         http://bugs.webkit.org/show_bug.cgi?id=13916
12818         JavaScript detects Tab as a character input on a textfield validation
12819
12820         * WebCoreSupport/EditorClientQt.cpp:
12821         (WebCore::EditorClientQt::handleKeyboardEvent):
12822         (WebCore::EditorClientQt::handleInputMethodKeydown):
12823         * WebCoreSupport/EditorClientQt.h:
12824         Updated for cross-platform changes as much as it was possible without a Qt build environment.
12825
12826 2007-12-07  Darin Adler  <darin@apple.com>
12827
12828         - try to fix build
12829
12830         * Api/qwebhistoryinterface.cpp:
12831         (WebCore::historyContains): There's a WebCore function here in WebKit! Needs to
12832         be updated, since WebCore changed, but this should not be here.
12833
12834 2007-12-04  Darin Adler  <darin@apple.com>
12835
12836         Reviewed by Kevin Decker.
12837
12838         * WebCoreSupport/FrameLoaderClientQt.cpp: Removed obsolete privateBrowsingEnabled.
12839         * WebCoreSupport/FrameLoaderClientQt.h: Ditto.
12840
12841 2007-12-04  Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12842
12843         Reviewed by Simon.
12844
12845         * Implement the InspectorClient for the Qt port
12846         * It does not support highlighting of nodes yet
12847         * Use QRC to open the internal page. The important thing is the
12848         '/' in the URL to make WebCore::Document::completeURL behave the
12849         way we want.
12850         * To make the InspectorClient work we will have to mark qrc as secure.
12851
12852         * Api/qwebpage.cpp:
12853         (QWebPagePrivate::QWebPagePrivate):
12854         * Api/qwebpage.h:
12855         * WebCoreSupport/InspectorClientQt.cpp:
12856         (WebCore::InspectorClientWebPage::hideEvent):
12857         (WebCore::InspectorClientQt::InspectorClientQt):
12858         (WebCore::InspectorClientQt::inspectorDestroyed):
12859         (WebCore::InspectorClientQt::createPage):
12860         (WebCore::InspectorClientQt::localizedStringsURL):
12861         (WebCore::InspectorClientQt::showWindow):
12862         (WebCore::InspectorClientQt::closeWindow):
12863         (WebCore::InspectorClientQt::attachWindow):
12864         (WebCore::InspectorClientQt::detachWindow):
12865         * WebCoreSupport/InspectorClientQt.h:
12866
12867 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
12868
12869         Rubber stamped by Mark.
12870
12871         Always include config.h at the beginning of the file.
12872
12873         * Api/qwebsettings.cpp:
12874
12875 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
12876
12877         Reviewed by Simon.
12878
12879         * Avoid crashes by making sure everything is layouted before
12880         we start painting. This avoids a crash in Widget::invalidateRect
12881         because QPainter::begin would fail
12882         * The QWebFrame::layout() methods and calls are left untouched because
12883         this would be an API decision.
12884         
12885
12886         * Api/qwebframe.cpp:
12887         (QWebFrame::layout):
12888         * Api/qwebpage.cpp:
12889         (QWebPage::paintEvent):
12890
12891 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
12892
12893         Reviewed by Simon.
12894
12895         * SubClass QWebPage to handle hide and close events.
12896         * Forward these events to the InspectorController
12897         * The other options would have been using an eventFilter
12898         on the webpage and making InspectorClient a QObject or
12899         creating a QObject Observer.
12900         * Provide a simple QWebPage* createWindow implementation. This is needed
12901         to make FrameLoaderClientQt::dispatchCreatePage stop crashing in the case
12902         of the inspector client.
12903         
12904
12905         * WebCoreSupport/InspectorClientQt.cpp:
12906         (WebCore::InspectorClientWebPage::InspectorClientWebPage):
12907         (WebCore::InspectorClientWebPage::createWindow):
12908         (WebCore::InspectorClientWebPage::hideEvent):
12909         (WebCore::InspectorClientWebPage::closeEvent):
12910         (WebCore::InspectorClientQt::createPage):
12911
12912 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
12913
12914         Reviewed by Simon.
12915
12916         * Allow adding the Inspect ContextMenuItem to our Menu
12917         * Open the Inspector when Inspect was activated. This requires
12918         that we keep the innerNonSharedNode from the HitTest around. This
12919         forces us to include <wtf/RefPtr.h> in the private header. It is
12920         the first non Qt header but should be okay.
12921         
12922
12923         * Api/qwebpage.cpp:
12924         (webActionForContextMenuAction):
12925         (QWebPage::triggerAction):
12926         (QWebPage::action):
12927         (QWebPageContext::QWebPageContext):
12928         * Api/qwebpage.h:
12929         * Api/qwebpage_p.h:
12930
12931 2007-12-03  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
12932
12933         Reviewed by Simon.
12934
12935         * Add the Developer Extras to the WebAttribute and propagate it
12936         to WebCore::Settings. This will enable the Inspect Element menu item
12937         * CodingStyle fixes in QWebSettings
12938         * Enable the Developer Extras in the QtLauncher
12939         
12940
12941         * Api/qwebsettings.cpp:
12942         (QWebSettingsPrivate::apply):
12943         * Api/qwebsettings.h:
12944         * QtLauncher/main.cpp:
12945         (main):
12946
12947 2007-12-03  Geoffrey Garen  <ggaren@apple.com>
12948
12949         Removed unnecessary and possibly incorrect #include from my last 
12950         check-in.
12951
12952         * Api/qwebframe.cpp:
12953
12954 2007-12-03  Geoffrey Garen  <ggaren@apple.com>
12955
12956         Qt build fix: Get globalExec() from the right place.
12957
12958 2007-11-30  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
12959
12960         Reviewed by Simon.
12961
12962         * Self destruct the clients like the ohter ports do
12963         
12964
12965         * WebCoreSupport/ChromeClientQt.cpp:
12966         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
12967         * WebCoreSupport/ContextMenuClientQt.cpp:
12968         * WebCoreSupport/DragClientQt.cpp:
12969         * WebCoreSupport/EditorClientQt.cpp:
12970         * WebCoreSupport/InspectorClientQt.cpp:
12971
12972 2007-11-29  Brady Eidson  <beidson@apple.com>
12973
12974         Keep it building with new client method
12975
12976         * WebCoreSupport/ChromeClientQt.cpp:
12977         (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
12978         (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
12979         * WebCoreSupport/ChromeClientQt.h:
12980
12981 2007-11-22  Simon Hausmann  <hausmann@webkit.org>
12982
12983         Reviewed by Adam Treat.
12984
12985         Fix compilation (don't define notImplemented twice)
12986
12987         * Api/qwebnetworkinterface.cpp:
12988
12989 2007-11-22  Simon Hausmann  <hausmann@kde.org>
12990
12991         Reviewed by George.
12992
12993         Use Q_SIGNALS/Q_SLOTS in the public API
12994
12995         * Api/qwebframe.h:
12996         * Api/qwebpage.h:
12997
12998 2007-11-22  Simon Hausmann  <hausmann@kde.org>
12999
13000         Reviewed by George.
13001
13002         Fixed the signature of the QWebPage constructor to follow Qt guidelines.
13003
13004         * Api/qwebpage.h:
13005
13006 2007-11-22  Simon Hausmann  <hausmann@kde.org>
13007
13008         Reviewed by George.
13009
13010         Use <QtModule/headerfile.h> instead of <Classname> in public HEADER files, to not require the include paths for the other modules to be present
13011
13012         * Api/qcookiejar.h:
13013         * Api/qwebframe.h:
13014         * Api/qwebhistoryinterface.h:
13015         * Api/qwebnetworkinterface.h:
13016         * Api/qwebobjectplugin.h:
13017         * Api/qwebobjectplugin_p.h:
13018         * Api/qwebobjectpluginconnector.h:
13019         * Api/qwebpage.h:
13020         * Api/qwebpagehistory.h:
13021         * Api/qwebsettings.h:
13022
13023 2007-11-22  Simon Hausmann  <hausmann@kde.org>
13024
13025         Reviewed by George.
13026
13027         Removed inline copy of QExplicitlySharedDataPointer. This is not needed anymore since we require Qt >= 4.3.0.
13028
13029         * Api/qwebpagehistory.h:
13030
13031 2007-11-22  George Staikos  <staikos@kde.org>
13032
13033         Reviewed by Simon Hausmann <hausmann@kde.org>.
13034
13035         Fix license headers
13036         
13037
13038         * Api/qwebobjectplugin.cpp:
13039         * Api/qwebobjectplugin.h:
13040         * Api/qwebobjectpluginconnector.cpp:
13041         * Api/qwebobjectpluginconnector.h:
13042
13043 2007-11-22  Simon Hausmann  <hausmann@kde.org>
13044
13045         Reviewed by George Staikos <staikos@kde.org>.
13046
13047         Fix shadowing of "page" variable that is passed as argument as well as a member variable.
13048         
13049         This also fixes compilation with gcc 4.3.
13050         
13051
13052         * Api/qwebframe.cpp:
13053         (QWebFramePrivate::init):
13054
13055 2007-11-21  Adam Treat  <adam.treat@torchmobile.com>
13056
13057         Reviewed by Simon.
13058
13059         * Connect up the signal for all subframes too.
13060
13061         * Api/qwebframe.cpp:
13062         (QWebFramePrivate::init):
13063         * Api/qwebpage.cpp:
13064         (QWebPagePrivate::createMainFrame):
13065
13066 2007-11-20  Simon Hausmann  <hausmann@kde.org>
13067
13068         Reviewed by Adam Treat <adam.treat@torchmobile.com>.
13069
13070         Remove static linkage of QtWebKit against the ICO image format plugin.
13071         
13072         Instead build the support for the ICO image format as a proper standalone qt image format plugin and install it.
13073         
13074
13075         * Plugins/Plugins.pro:
13076
13077 2007-11-20  Simon Hausmann  <hausmann@kde.org>
13078
13079         Reviewed by George Staikos <staikos@kde.org>.
13080
13081         Added a default argument to textContent for the hoveringOverLink signal to keep existing two-argument connections working
13082         
13083
13084         * Api/qwebpage.h:
13085
13086 2007-11-20  George Staikos  <staikos@kde.org>
13087
13088         Reviewed by Simon Hausmann <hausmann@kde.org>.
13089
13090         Add an argument to pass the link text in the hovering signal
13091         
13092
13093         * Api/qwebframe.h:
13094         * Api/qwebpage.cpp:
13095         (QWebPagePrivate::createMainFrame):
13096         (QWebPage::mouseMoveEvent):
13097         * Api/qwebpage.h:
13098
13099 2007-11-20  Adam Treat  <adam.treat@torchmobile.com>
13100
13101         Reviewed by Simon and George.
13102
13103         * Be quiet and allow suppression of NotImplemented calls at runtime.
13104
13105         * WebCoreSupport/FrameLoaderClientQt.cpp:
13106         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
13107
13108 2007-11-19  Adam Treat  <adam.treat@torchmobile.com>
13109
13110         Reviewed by Simon.
13111
13112         * Don't segfault when event pos is outside of the widget.
13113
13114         * Api/qwebpage.cpp:
13115         (QWebPage::mouseMoveEvent):
13116         (QWebPage::mousePressEvent):
13117         (QWebPage::mouseDoubleClickEvent):
13118         (QWebPage::mouseReleaseEvent):
13119         (QWebPage::contextMenuEvent):
13120
13121 2007-11-17  Timothy Hatcher  <timothy@apple.com>
13122
13123         Reviewed by Mark Rowe.
13124
13125         Bug 13470: i18n: The Web Inspector is not localizable
13126         http://bugs.webkit.org/show_bug.cgi?id=13470
13127
13128         * WebCoreSupport/InspectorClientQt.cpp:
13129         (WebCore::InspectorClientQt::localizedStringsURL): Empty stub.
13130         * WebCoreSupport/InspectorClientQt.h: Added localizedStringsURL.
13131
13132 2007-11-13  Geoffrey Garen  <ggaren@apple.com>
13133
13134         Build fix: changed Shared to RefCounted.
13135
13136         * WebCoreSupport/ChromeClientQt.h:
13137         * WebCoreSupport/ContextMenuClientQt.cpp:
13138         * WebCoreSupport/ContextMenuClientQt.h:
13139         * WebCoreSupport/EditorClientQt.h:
13140         * WebCoreSupport/FrameLoaderClientQt.h:
13141
13142 2007-11-10  Simon Hausmann  <hausmann@kde.org>
13143
13144         Reviewed by Nikolas.
13145
13146         When populating the context menu with sub-menus don't add sub-menus if they're empty.
13147         
13148
13149         * Api/qwebpage.cpp:
13150         (QWebPagePrivate::createContextMenu):
13151
13152 2007-11-10  Simon Hausmann  <hausmann@kde.org>
13153
13154         Reviewed by Nikolas.
13155
13156         Added support for the Bold/Italic/Underline toggle actions.
13157         
13158
13159         * Api/qwebpage.cpp:
13160         (webActionForContextMenuAction):
13161         (QWebPage::triggerAction):
13162         (QWebPage::action):
13163         * Api/qwebpage.h:
13164
13165 2007-11-10  Simon Hausmann  <hausmann@kde.org>
13166
13167         Reviewed by Nikolas.
13168
13169         Before adding an action to the context menu call checkOrEnableIfNeeded for each action
13170         to update the enable/checked state correctly.
13171         
13172
13173         * Api/qwebpage.cpp:
13174         (QWebPagePrivate::createContextMenu):
13175         (QWebPage::contextMenuEvent):
13176         * Api/qwebpage_p.h:
13177
13178 2007-11-10  Simon Hausmann  <hausmann@kde.org>
13179
13180         Reviewed by Nikolas.
13181
13182         Mark the text direction actions as checkable actions.
13183         
13184
13185         * Api/qwebpage.cpp:
13186         (QWebPage::action):
13187
13188 2007-11-09  Simon Hausmann  <hausmann@kde.org>
13189
13190         Reviewed by Holger.
13191
13192         Implemented the webcore actions for changing the text direction.
13193         
13194
13195         * Api/qwebpage.cpp:
13196         (webActionForContextMenuAction):
13197         (QWebPage::triggerAction):
13198         (QWebPage::action):
13199         * Api/qwebpage.h:
13200
13201 2007-11-09  Simon Hausmann  <hausmann@kde.org>
13202
13203         Reviewed by Holger.
13204
13205         Fix ContextMenu allocation in the Qt port.
13206         
13207         Store all items and submenus value based in ContextMenu and ContextMenuItem.
13208         That fixes the crashes when the context menu was populated with sub-menus because
13209         of the use of temporary ContextMenu objects like this:
13210         
13211         ContextMenu subMenu(...);
13212         subMenu.appendItem(...);
13213         subMenu.appendItem(...);
13214         
13215         subMenuItem.setSubMenu(&subMenu); // temporary pointer, need to _copy_ contents
13216         
13217
13218         * Api/qwebpage.cpp:
13219         (QWebPage::contextMenuEvent):
13220         * Api/qwebpage_p.h:
13221
13222 2007-11-09  Simon Hausmann  <hausmann@kde.org>
13223
13224         Reviewed by Holger.
13225
13226         Renamed QWebPage::NumWebActions to QWebPage::WebActionCount (for consistency) and fixed its value.
13227         
13228
13229         * Api/qwebpage.h:
13230         * Api/qwebpage_p.h:
13231
13232 2007-11-08  Kevin McCullough  <kmccullough@apple.com>
13233
13234         Reviewed by Sam.
13235
13236         - windowObjectCleared() is no longer const.  It needs to setup the
13237         script debugger and cannot be const to do so.
13238
13239         * WebCoreSupport/FrameLoaderClientQt.cpp:
13240         (WebCore::FrameLoaderClientQt::windowObjectCleared):
13241         * WebCoreSupport/FrameLoaderClientQt.h:
13242
13243 2007-11-08  Simon Hausmann  <hausmann@kde.org>
13244
13245         Reviewed by nobody (well, Holger knows about it), build fix for Qt 4.3.
13246
13247         The buildbots use Qt 4.4 which has the function in question, but Qt
13248         4.3 doesn't have it. Use removeAll() as replacement instead, it
13249         shouldn't make a difference in performance.
13250
13251         * Api/qwebsettings.cpp:
13252         (QWebSettings::~QWebSettings):
13253
13254 2007-11-08  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
13255
13256         Reviewed by Lars Knoll <lars@trolltech.com>.
13257
13258         Cleanup checking for the request method.
13259         
13260         * Check the request method only in QWebNetworkManager::add.
13261         * Currently HEAD, GET, POST are allowed and for everything else
13262         QWebNetworkManager::add returns false.
13263         * Returning false is compatible with ResourceHandle::start and it
13264         can be used in ResourceHandle::loadResourceSynchronously to generate
13265         a ResourceError
13266         
13267
13268         * Api/qwebnetworkinterface.cpp:
13269         (QWebNetworkManager::add):
13270
13271 2007-11-08  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
13272
13273         Reviewed by Lars Knoll <lars@trolltech.com>.
13274
13275         Fix bug in the implementation of synchronous network jobs.
13276         
13277         * George (pmax) reviewed the networking patches and found the following bug (thanks for reviewing)
13278         -    if (jobMode == AsynchronousJob) {
13279         +    if (jobMode == SynchronousJob) {
13280         add job to synchronous list/hash
13281         
13282         * Just applying the above change will lead to crashes because we can finish
13283         jobs before we started them.
13284         
13285         * Avoid these issues by saving all work (starting a job, sending data and
13286         finishing it) inside one list. JobWork will contain any
13287         of the above three work types and doWork will just work on this list
13288         (m_pendingWork). As foreach takes a copy of the list calling started, data
13289         and finished will not add new work and we gurantee that if we have JobStarted
13290         it will be in the list before JobData and JobFinished.
13291         
13292         * Observation: We might just kill the code to handle sync jobs.
13293         
13294
13295         * Api/qwebnetworkinterface.cpp:
13296         (QWebNetworkManager::add):
13297         (QWebNetworkManager::queueStart):
13298         (QWebNetworkManager::queueData):
13299         (QWebNetworkManager::queueFinished):
13300         (QWebNetworkManager::doWork):
13301         * Api/qwebnetworkinterface_p.h:
13302         (QWebNetworkManager::JobWork::):
13303         (QWebNetworkManager::JobWork::JobWork):
13304
13305 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13306
13307         Fix the Qt build by setting up WindowFeatures before calling
13308         createWindow on the Chrome. This is similar to openNewWindow in
13309         page/ContextMenuController.cpp
13310
13311         * Api/qwebpage.cpp:
13312         (openNewWindow):
13313
13314 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13315
13316         Reviewed by Lars.
13317
13318         Make the setting of letting Javascript access the clipboard configurable through QWebSettings, turn it off by default and turn it on in DumpRenderTree.
13319
13320         * Api/qwebpage.cpp:
13321         (QWebPagePrivate::QWebPagePrivate):
13322         * Api/qwebsettings.cpp:
13323         (QWebSettingsPrivate::apply):
13324         * Api/qwebsettings.h:
13325
13326 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13327
13328         Reviewed by Lars.
13329
13330         Changed QWebPageHistory::goToItem to take a value instead of a pointer.
13331
13332         * Api/qwebpagehistory.cpp:
13333         * Api/qwebpagehistory.h:
13334
13335 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13336
13337         Reviewed by Lars.
13338
13339         Removed unimplemented QWebHistoryItem::children() function
13340
13341         * Api/qwebpagehistory.h:
13342
13343 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13344
13345         Reviewed by Lars.
13346
13347         Changed the getter functions in QWebSettings to transparently resolve against the default settings.
13348
13349         * Api/qwebsettings.cpp:
13350         (QWebSettings::fontSize):
13351         (QWebSettings::fontFamily):
13352         (QWebSettings::testAttribute):
13353
13354 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13355
13356         Reviewed by Lars.
13357
13358         Added explicit functions for resetting the font sizes and font families.
13359
13360         * Api/qwebsettings.cpp:
13361         (QWebSettings::resetFontSize):
13362         (QWebSettings::resetFontFamily):
13363         * Api/qwebsettings.h:
13364
13365 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13366
13367         Reviewed by Lars.
13368
13369         Combined the font sizes accessors/setters under one setter/getter with an enum.
13370
13371         * Api/qwebsettings.cpp:
13372         (QWebSettingsPrivate::QWebSettingsPrivate):
13373         (QWebSettingsPrivate::apply):
13374         (QWebSettings::QWebSettings):
13375         (QWebSettings::setFontSize):
13376         * Api/qwebsettings.h:
13377
13378 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13379
13380         Reviewed by Lars.
13381
13382         Renamed QWebPage::userAgentStringForUrl(url) to QWebPage::userAgentFor(url);
13383
13384         * Api/qwebpage.cpp:
13385         * Api/qwebpage.h:
13386         * WebCoreSupport/FrameLoaderClientQt.cpp:
13387         (WebCore::FrameLoaderClientQt::userAgent):
13388
13389 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13390
13391         Reviewed by Lars.
13392
13393         Renamed QWebPage::webActionTriggered to QWebPage::triggerAction
13394
13395         * Api/qwebpage.cpp:
13396         (QWebPagePrivate::_q_webActionTriggered):
13397         (QWebPage::keyPressEvent):
13398         * Api/qwebpage.h:
13399
13400 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13401
13402         Reviewed by Lars.
13403
13404         Changed the virtual QWebPage::setWindowGeometry to be a geometryChangeRequest signal instead.
13405
13406         * Api/qwebpage.cpp:
13407         * Api/qwebpage.h:
13408         * WebCoreSupport/ChromeClientQt.cpp:
13409         (WebCore::ChromeClientQt::setWindowRect):
13410
13411 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13412
13413         Reviewed by Lars.
13414
13415         Renamed QWebPage::webAction() to QWebPage::action()
13416
13417         * Api/qwebpage.cpp:
13418         (QWebPagePrivate::createContextMenu):
13419         * Api/qwebpage.h:
13420         * QtLauncher/main.cpp:
13421         (MainWindow::MainWindow):
13422
13423 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13424
13425         Reviewed by Lars.
13426
13427         Removed a bunch of slots/functions that are now available through the new actions API.
13428
13429         * Api/qwebpage.cpp:
13430         * Api/qwebpage.h:
13431
13432 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13433
13434         Reviewed by Lars.
13435
13436         Added some more comments to the API after another round of API review with Lars.
13437
13438         * Api/qwebpage.h:
13439
13440 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13441
13442         Reviewed by Lars.
13443
13444         Moved QWebFrame::selectedText() to QWebPage::selectedText().
13445         
13446         The currently selected text is a property of the page as a whole.
13447
13448         * Api/qwebframe.cpp:
13449         * Api/qwebframe.h:
13450         * Api/qwebpage.cpp:
13451         (QWebPage::selectedText):
13452         * Api/qwebpage.h:
13453
13454 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13455
13456         Reviewed by Lars.
13457
13458         Implemented support for settings propagation.
13459         
13460         If an individual setting is not set in a page's QWebSettings then it is inherited from the default settings.
13461
13462         * Api/qwebsettings.cpp:
13463         (QWebSettingsPrivate::QWebSettingsPrivate):
13464         (QWebSettingsPrivate::apply):
13465         (QWebSettings::QWebSettings):
13466         (QWebSettings::~QWebSettings):
13467         (QWebSettings::setFontFamily):
13468         * Api/qwebsettings.h:
13469
13470 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13471
13472         Reviewed by Lars.
13473
13474         Reworked the QWebSettings API.
13475         QWebPage now returns a pointer to its mutable QWebSettings object and the settings of newly created QWebPageObjects are initialized from QWebSettings::defaultSettings().
13476
13477         * Api/qwebpage.cpp:
13478         (QWebPagePrivate::QWebPagePrivate):
13479         (QWebPagePrivate::~QWebPagePrivate):
13480         (QWebPage::QWebPage):
13481         * Api/qwebpage.h:
13482         * Api/qwebpage_p.h:
13483         * Api/qwebsettings.cpp:
13484         (QWebSettingsPrivate::QWebSettingsPrivate):
13485         (QWebSettingsPrivate::apply):
13486         (QWebSettings::defaultSettings):
13487         (QWebSettings::QWebSettings):
13488         (QWebSettings::setMinimumFontSize):
13489         (QWebSettings::setMinimumLogicalFontSize):
13490         (QWebSettings::setDefaultFontSize):
13491         (QWebSettings::setDefaultFixedFontSize):
13492         (QWebSettings::setUserStyleSheetLocation):
13493         (QWebSettings::setFontFamily):
13494         (QWebSettings::fontFamily):
13495         (QWebSettings::setAttribute):
13496         * Api/qwebsettings.h:
13497         * QtLauncher/main.cpp:
13498         (main):
13499
13500 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13501
13502         Reviewed by Lars.
13503
13504         Made the QWebSettings::webGraphic functions static. The implementation was using QWebSettings::global() anyway.
13505
13506         * Api/qwebsettings.cpp:
13507         (QWebSettings::setWebGraphic):
13508         * Api/qwebsettings.h:
13509
13510 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13511
13512         Reviewed by Lars.
13513
13514         Moved the WebCore::Image specific function loadResourcePixmap from qwebsettings.cpp to ImageQt.cpp and made it static.
13515
13516         * Api/qwebsettings.cpp:
13517
13518 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13519
13520         Reviewed by Lars.
13521
13522         Changed the icondatabase accessor to be a static function because it doesn't change the QWebSettings object.
13523
13524         * Api/qwebsettings.cpp:
13525         * Api/qwebsettings.h:
13526
13527 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13528
13529         Reviewed by Lars.
13530
13531         Changed the webAction() accessor to not be a slot but just a public function.
13532
13533         * Api/qwebpage.h:
13534
13535 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13536
13537         Reviewed by Lars.
13538
13539         Implemented createWindow() in QtLauncher.
13540
13541         * QtLauncher/main.cpp:
13542         (WebPage::WebPage):
13543         (MainWindow::MainWindow):
13544         (WebPage::createWindow):
13545
13546 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13547
13548         Reviewed by Lars.
13549
13550         Implemented opening links in new windows
13551
13552         * Api/qwebpage.cpp:
13553         (frameLoadRequest):
13554         (openNewWindow):
13555         (QWebPage::webActionTriggered):
13556
13557 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13558
13559         Reviewed by Lars.
13560
13561         Added and implemented the "OpenLink" action.
13562
13563         * Api/qwebpage.cpp:
13564         (webActionForContextMenuAction):
13565         (QWebPage::webActionTriggered):
13566         (QWebPage::webAction):
13567         * Api/qwebpage.h:
13568
13569 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13570
13571         Reviewed by Lars.
13572
13573         Adjust the state of the reload action correctly.
13574
13575         * Api/qwebpage.cpp:
13576         (QWebPagePrivate::updateAction):
13577         (QWebPagePrivate::updateNavigationActions):
13578
13579 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13580
13581         Reviewed by Lars.
13582
13583         Initialize the undo/redo actions from QUndoStack. That automatically takes care of enabling/disabling them as well as the activation/trigger.
13584
13585         * Api/qwebpage.cpp:
13586         (QWebPagePrivate::updateAction):
13587         (QWebPage::webAction):
13588         (QWebPage::undoStack):
13589         * Api/qwebpage.h:
13590
13591 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13592
13593         Reviewed by Lars.
13594
13595         Added undo/redo toolbar buttons, moved the location line edit into a separate toolbar.
13596
13597         * QtLauncher/main.cpp:
13598         (MainWindow::MainWindow):
13599
13600 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13601
13602         Reviewed by Lars.
13603
13604         Update the editor actions when the selection changes.
13605
13606         * Api/qwebpage.cpp:
13607         (QWebPagePrivate::updateAction):
13608         (QWebPagePrivate::updateEditorActions):
13609         * Api/qwebpage_p.h:
13610         * WebCoreSupport/EditorClientQt.cpp:
13611         (WebCore::EditorClientQt::respondToChangedSelection):
13612
13613 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13614
13615         Reviewed by Lars.
13616
13617         Added cut/copy/paste actions to the toolbar of QtLauncher
13618
13619         * QtLauncher/main.cpp:
13620         (MainWindow::MainWindow):
13621
13622 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13623
13624         Reviewed by Lars.
13625
13626         Started working on keeping the state of the navigation actions up-to-date.
13627
13628         * Api/qwebpage.cpp:
13629         (QWebPagePrivate::updateAction):
13630         (QWebPagePrivate::updateNavigationActions):
13631         (QWebPage::webAction):
13632         * Api/qwebpage_p.h:
13633         * WebCoreSupport/FrameLoaderClientQt.cpp:
13634         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
13635         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
13636         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
13637         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
13638         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
13639
13640 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13641
13642         Reviewed by Lars.
13643
13644         Use the navigational web actions in the toolbar
13645
13646         * QtLauncher/main.cpp:
13647         (MainWindow::MainWindow):
13648
13649 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13650
13651         Reviewed by Lars.
13652
13653         Store a bunch of QActions in QWebPagePrivate, corresponding to QWebPage::WebAction.
13654         Added QWebPageContext to hold context sensitive information (for example used by the context menu).
13655
13656         * Api/qwebpage.cpp:
13657         (QWebPagePrivate::QWebPagePrivate):
13658         (webActionForContextMenuAction):
13659         (QWebPagePrivate::createContextMenu):
13660         (QWebPagePrivate::_q_webActionTriggered):
13661         (QWebPage::webActionTriggered):
13662         (QWebPage::webAction):
13663         (QWebPage::contextMenuEvent):
13664         (QWebPageContext::QWebPageContext):
13665         (QWebPageContext::operator=):
13666         (QWebPageContext::~QWebPageContext):
13667         (QWebPageContext::pos):
13668         (QWebPageContext::text):
13669         (QWebPageContext::linkUrl):
13670         (QWebPageContext::imageUrl):
13671         (QWebPageContext::image):
13672         (QWebPageContext::targetFrame):
13673         * Api/qwebpage.h:
13674         * Api/qwebpage_p.h:
13675
13676 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13677
13678         Reviewed by Lars.
13679
13680         Moved the editing actions implemented in keyPressEvent into webActionTriggered.
13681
13682         * Api/qwebpage.cpp:
13683         (QWebPage::webActionTriggered):
13684         (QWebPage::keyPressEvent):
13685         * Api/qwebpage.h:
13686
13687 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13688
13689         Reviewed by Lars.
13690
13691         Introduced a central virtual void webActionTriggered(WebAction action) method that is called from various
13692         convenience methods such as cut()/copy()/paste().
13693
13694         * Api/qwebpage.cpp:
13695         (QWebPage::goBack):
13696         (QWebPage::webActionTriggered):
13697         (QWebPage::cut):
13698         (QWebPage::copy):
13699         * Api/qwebpage.h:
13700
13701 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13702
13703         Reviewed by Lars.
13704
13705         Restructure the context menu classes for the Qt port. ContextMenu and ContextMenuItem don't store
13706         QActions/QMenus anymore but just store the action type, tag, title and optionally submenu as created
13707         in ContextMenu::populate().
13708         For the actual Qt context menu we traverse this structure after sendContextMenuEvent and create a QMenu
13709         out of it. That menu is currently not functional anymore though.
13710
13711         * Api/qwebpage.cpp:
13712         (QWebPagePrivate::createContextMenu):
13713         (QWebPage::contextMenuEvent):
13714         * Api/qwebpage_p.h:
13715
13716 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13717
13718         Reviewed by Lars.
13719
13720         Changed ContextMenu::setPlatformDescription for the Qt port to not show the qmenu right away
13721         but instead just behave as a normal setter that takes ownership of the platform menu description (the qmenu).
13722         Instead now QWebPage::contextMenuEvent() retrieves the QMenu after calling sendContextMenuEvent and calls exec()
13723         on it.
13724
13725         * Api/qwebpage.cpp:
13726         (QWebPage::contextMenuEvent):
13727         * WebCoreSupport/ContextMenuClientQt.cpp:
13728         (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
13729
13730 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13731
13732         Reviewed by Lars.
13733
13734         Changed to PlatformMouseEvent constructor to allow construction from a QContextMenuEvent.
13735         Call sendContextMenuEvent on the event handler from a QWidget::contextMenuEvent re-implementation instead of in mousePressEvent.
13736
13737         * Api/qwebpage.cpp:
13738         (QWebPage::mousePressEvent):
13739         (QWebPage::contextMenuEvent):
13740         * Api/qwebpage.h:
13741
13742 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13743
13744         Reviewed by Lars.
13745
13746         Turned onLoadProgressChanged into a real private slot.
13747
13748         * Api/qwebpage.cpp:
13749         (QWebPage::QWebPage):
13750         * Api/qwebpage.h:
13751         * Api/qwebpage_p.h:
13752
13753 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13754
13755         Reviewed by Lars.
13756
13757         Make QWebHistory an explicitly shared object, returned as a pointer by QWebPage::history().
13758
13759         * Api/qwebpage.cpp:
13760         (QWebPagePrivate::QWebPagePrivate):
13761         * Api/qwebpage.h:
13762         * Api/qwebpage_p.h:
13763         * Api/qwebpagehistory.cpp:
13764         (QWebPageHistory::QWebPageHistory):
13765         * Api/qwebpagehistory.h:
13766
13767 2007-11-07  Lars Knoll  <lars@trolltech.com>
13768
13769         Reviewed by Simon.
13770
13771         comments on API changes that we'd like to do.
13772
13773         * Api/qwebpage.h:
13774
13775 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13776
13777         Reviewed by Lars Knoll <lars@trolltech.com>.
13778
13779         Add a QWebPage::frameCreated() signal and fix DRT
13780         
13781         The removal of createFrame in QWebPage broke the re-implementation
13782         in DumpRenderTree. Instead emit a frameCreated() signal and
13783         connect to it in DumpRenderTree.
13784         
13785
13786         * Api/qwebpage.cpp:
13787         (QWebPagePrivate::createMainFrame):
13788         * Api/qwebpage.h:
13789         * WebCoreSupport/FrameLoaderClientQt.cpp:
13790         (WebCore::FrameLoaderClientQt::createFrame):
13791
13792 2007-11-07  Lars Knoll  <lars@trolltech.com>
13793
13794         Reviewed by Simon.
13795
13796         Remove QWebPage::createFrame()
13797         
13798         now that QWebFrame doesn't have virtual methods anymore, there
13799         is no need for a createFrame() factory method in QWebpage.
13800
13801         * Api/qwebpage.cpp:
13802         (QWebPagePrivate::createMainFrame):
13803         * Api/qwebpage.h:
13804         * WebCoreSupport/FrameLoaderClientQt.cpp:
13805         (WebCore::FrameLoaderClientQt::createFrame):
13806
13807 2007-11-07  Simon Hausmann  <hausmann@kde.org>
13808
13809         Reviewed by Lars Knoll <lars@trolltech.com>.
13810
13811         Moved all the event handlers from QWebFrame into QWebPage.
13812         
13813         This cleans up the public API and allows us to remove the
13814         HackWebFrame hack in DumpRenderTree.
13815         
13816
13817         * Api/qwebframe.cpp:
13818         (QWebFrame::pos):
13819         * Api/qwebframe.h:
13820         * Api/qwebframe_p.h:
13821         * Api/qwebpage.cpp:
13822         (QWebPagePrivate::frameAt):
13823         (QWebPage::mouseMoveEvent):
13824         (QWebPage::mousePressEvent):
13825         (QWebPage::mouseDoubleClickEvent):
13826         (QWebPage::mouseReleaseEvent):
13827         (QWebPage::wheelEvent):
13828         * Api/qwebpage_p.h:
13829
13830 2007-11-07  Holger Freyther  <holger.freyther@trolltech.com>
13831
13832         Reviewed by Lars Knoll <lars@trolltech.com>.
13833
13834         Use correct UserAgent string.
13835         
13836         * Only have one User Agent String and this place is QWebPage
13837         * QWebPage::open -> QWebNetworkRequest -> QWebPage::open ->
13838         ResourceRequest -> FrameLoader::load -> QWebNetworkRequest
13839         * ResourceRequest is != 0 when getting called from WebCore, we
13840         will only do requests when coming from WebCore and then we can
13841         use the User-Agent set with the help of the FrameLoaderClient
13842         * We might want to change QWebNetworkRequest a bit
13843         
13844
13845         * Api/qwebnetworkinterface.cpp:
13846         (QWebNetworkRequestPrivate::init):
13847
13848 2007-11-07  Lars Knoll  <lars@trolltech.com>
13849
13850         Reviewed by Simon.
13851
13852         remove two notImplemented() warnings, as I believe we don't
13853         have to implement these methods. Add some (commented out)
13854         debug code in one place.
13855
13856         * WebCoreSupport/EditorClientQt.cpp:
13857         (WebCore::EditorClientQt::respondToChangedSelection):
13858         (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
13859
13860 2007-11-05  Tristan O'Tierney  <tristan@apple.com>
13861
13862         Reviewed by Darin Adler.
13863
13864         * WebCoreSupport/ChromeClientQt.cpp:
13865         (WebCore::ChromeClientQt::createWindow):
13866         * WebCoreSupport/ChromeClientQt.h:
13867         Revised to use new WebCore ChromeClient createWindow API.
13868
13869 2007-10-31  Lars Knoll  <lars@trolltech.com>
13870
13871         Reviewed by Simon.
13872
13873         fix most of the issues I found with Clipboard and DnD.
13874
13875         * Api/qwebpage.cpp:
13876         (QWebPage::dragLeaveEvent):
13877
13878 2007-10-31  Lars Knoll  <lars@trolltech.com>
13879
13880         Reviewed by Simon.
13881
13882         QDrag objects need to be created on the heap.
13883
13884         * WebCoreSupport/DragClientQt.cpp:
13885         (WebCore::DragClientQt::startDrag):
13886
13887 2007-10-31  Lars Knoll  <lars@trolltech.com>
13888
13889         Reviewed by Simon.
13890
13891         a dragLeave event is not the same as cancelling a drag.
13892
13893         * Api/qwebpage.cpp:
13894
13895 2007-10-26  Mark Rowe  <mrowe@apple.com>
13896
13897         Build fix.  Add missing #include of Platform.h.
13898
13899         * Api/qwebhistoryinterface.cpp:
13900
13901 2007-10-25  Holger Freyther  <zecke@selfish.org>
13902
13903         Reviewed by Simon Hausmann <hausmann@kde.org>.
13904
13905         * We need to set a != 0 status code for the fast/loader/xmlhttprequest-missing-file-exception.html
13906         * libxml2 has the semantic that when writing an empty string and finishing it will report an error. For QXmlStreamReader this is valid.
13907         * This is causing some regressions...
13908         
13909
13910         * Api/qwebnetworkinterface.cpp:
13911         (QWebNetworkManager::started):
13912         (QWebNetworkInterface::addJob):
13913
13914 2007-10-25  Holger Freyther  <zecke@selfish.org>
13915
13916         Reviewed by Simon Hausmann <hausmann@kde.org>.
13917
13918         * Make fast/loader/xmlhttprequest-bad-mimetype.html pass. We use QHttp to download local files but we may not set the HTTP result code on the ResourceResponse.
13919         * We can use the cross-platform result now. QWebNetworkInterface/Manager behaves the same as mac for local files.
13920         
13921
13922         * Api/qwebnetworkinterface.cpp:
13923         (QWebNetworkManager::started):
13924
13925 2007-10-25  Holger Freyther  <zecke@selfish.org>
13926
13927         Reviewed by Simon Hausmann <hausmann@kde.org>.
13928
13929         * fast/dom/onerror-img.html regressed due checking the JobStates because in case of error (e.g. not being able to connect) the job will no be started.
13930         * Use the error message from Qt. It might or might not be translated.
13931         
13932
13933         * Api/qwebnetworkinterface.cpp:
13934         (QWebNetworkJob::errorString):
13935         (QWebNetworkJob::setErrorString):
13936         (QWebNetworkManager::finished):
13937         (QWebNetworkManager::doWork):
13938         (WebCoreHttp::onRequestFinished):
13939         * Api/qwebnetworkinterface.h:
13940         * Api/qwebnetworkinterface_p.h:
13941
13942 2007-10-25  Holger Freyther  <zecke@selfish.org>
13943
13944         Reviewed by Simon Hausmann <hausmann@kde.org>.
13945
13946         * Use the JobStatus to make sure to not deliver finished/data before the job has started. This is the case with the fast/dom/onerror-img.html test case.
13947         * We have no idea if any data will come so we can still finish and then get pending data. This luckily can't happen for the local file case.
13948         
13949
13950         * Api/qwebnetworkinterface.cpp:
13951         (QWebNetworkManager::doWork):
13952
13953 2007-10-25  Holger Freyther  <zecke@selfish.org>
13954
13955         Reviewed by Simon Hausmann <hausmann@kde.org>.
13956
13957         * No need to initialize values in the QWebNetworkJob c'tor
13958         * Add a JobStatus to QWebNetworkJob and verify that the jobs are handled in the way we expect them to be handled. This means no data after the job has finished, not finishing a job before it has been started.
13959         
13960
13961         * Api/qwebnetworkinterface.cpp:
13962         (QWebNetworkJob::status):
13963         (QWebNetworkJob::setStatus):
13964         (QWebNetworkManager::started):
13965         (QWebNetworkManager::data):
13966         (QWebNetworkManager::finished):
13967         * Api/qwebnetworkinterface.h:
13968         * Api/qwebnetworkinterface_p.h:
13969         (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
13970
13971 2007-10-25  Holger Freyther  <zecke@selfish.org>
13972
13973         Reviewed by Simon Hausmann <hausmann@kde.org>.
13974
13975         * Consistency: Always name the jobs job.
13976         
13977
13978         * Api/qwebnetworkinterface.cpp:
13979         (WebCoreHttp::onReadyRead):
13980         (WebCoreHttp::onRequestFinished):
13981         (WebCoreHttp::onSslErrors):
13982         (WebCoreHttp::onAuthenticationRequired):
13983         (WebCoreHttp::onProxyAuthenticationRequired):
13984
13985 2007-10-25  Holger Freyther  <zecke@selfish.org>
13986
13987         Reviewed by Simon Hausmann <hausmann@kde.org>.
13988
13989         * Implement our own queuing of network jobs to allow special handling of synchronous jobs. This makes us pass the fast/dom/xmlhttprequest-html-response-encoding.html test without a crash. Sync jobs will get a special treatment over the normals ones and in theory more than one sync job is supported.
13990         * This should be thread-safe besides QWebNetworkJob::{ref,deref}
13991         
13992
13993         * Api/qwebnetworkinterface.cpp:
13994         (QWebNetworkJob::~QWebNetworkJob):
13995         (QWebNetworkManager::QWebNetworkManager):
13996         (QWebNetworkManager::self):
13997         (QWebNetworkManager::add):
13998         (QWebNetworkManager::started):
13999         (QWebNetworkManager::finished):
14000         (QWebNetworkInterfacePrivate::sendFileData):
14001         (QWebNetworkInterfacePrivate::parseDataUrl):
14002         (QWebNetworkManager::queueStart):
14003         (QWebNetworkManager::queueData):
14004         (QWebNetworkManager::queueFinished):
14005         (QWebNetworkManager::doScheduleWork):
14006         (QWebNetworkManager::doWork):
14007         (gCleanupInterface):
14008         (QWebNetworkInterface::setDefaultInterface):
14009         (QWebNetworkInterface::defaultInterface):
14010         (QWebNetworkInterface::QWebNetworkInterface):
14011         (QWebNetworkInterface::started):
14012         (QWebNetworkInterface::data):
14013         (QWebNetworkInterface::finished):
14014         (WebCoreHttp::scheduleNextRequest):
14015         (WebCoreHttp::onResponseHeaderReceived):
14016         (WebCoreHttp::onReadyRead):
14017         (WebCoreHttp::onRequestFinished):
14018         (WebCoreHttp::cancel):
14019         * Api/qwebnetworkinterface.h:
14020         * Api/qwebnetworkinterface_p.h:
14021         (QWebNetworkManager::):
14022         (QWebNetworkManager::JobData::JobData):
14023         (QWebNetworkManager::JobFinished::JobFinished):
14024
14025 2007-10-25  Holger Freyther  <zecke@selfish.org>
14026
14027         Reviewed by Simon Hausmann <hausmann@kde.org>.
14028
14029         * Do the percent replacement only when we are not base64. With base64 we should not have any % in it anyway.
14030         * Have a custom decodePercentEncoding method that works without doing any charset conversion. With converting back to latin1() we lost some information.
14031         * We pass the char-decoding.html test now
14032         
14033
14034         * Api/qwebnetworkinterface.cpp:
14035         (decodePercentEncoding):
14036         (QWebNetworkInterfacePrivate::parseDataUrl):
14037
14038 2007-10-24  Holger Hans Peter Freyther  <zecke@selfish.org>
14039
14040         Reviewed by Lars Knoll <lars@trolltech.com>.
14041
14042         * Stop crashing on fast/events/frame-tab-focus.html the keyEvent can be 0.
14043         
14044
14045         * WebCoreSupport/EditorClientQt.cpp:
14046         (WebCore::EditorClientQt::handleKeypress):
14047
14048 2007-10-24  Lars Knoll  <lars@trolltech.com>
14049
14050         Reviewed by Simon.
14051
14052         remove some notImplemented() warnings.
14053
14054         * WebCoreSupport/EditorClientQt.cpp:
14055         (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
14056         (WebCore::EditorClientQt::isGrammarCheckingEnabled):
14057         (WebCore::EditorClientQt::respondToChangedSelection):
14058
14059 2007-10-24  Lars Knoll  <lars@trolltech.com>
14060
14061         Reviewed by Simon.
14062
14063         allow paste from DOM so we pass more test cases.
14064
14065         * Api/qwebpage.cpp:
14066         (QWebPage::setSettings):
14067
14068 2007-10-24  Lars Knoll  <lars@trolltech.com>
14069
14070         Reviewed by Simon.
14071
14072         Simplify the PlatformKeyEvent constructor. No need to have an extra boolean for isKeyUp in there, as the QKeyEvent has the information.
14073
14074         * Api/qwebpage.cpp:
14075         (QWebPage::keyPressEvent):
14076         (QWebPage::keyReleaseEvent):
14077
14078 2007-10-24  Lars Knoll  <lars@trolltech.com>
14079
14080         Reviewed by Simon.
14081
14082         some smaller fixes to the editing support in DRT. Makes another few tests pass.
14083
14084         * WebCoreSupport/EditorClientQt.cpp:
14085         (qt_dump_editing_callbacks):
14086         (qt_drt_run):
14087
14088 2007-10-24  Lars Knoll  <lars@trolltech.com>
14089
14090         Reviewed by Simon.
14091
14092         implemented support for most editing shortcuts to make contentEditable usable.
14093
14094         * Api/qwebpage.cpp:
14095         (QWebPage::keyPressEvent):
14096
14097 2007-10-24  Lars Knoll  <lars@trolltech.com>
14098
14099         Reviewed by Simon.
14100
14101         no need to call setIsActive ourselves on the frame, as the focus controller does it for us.
14102
14103         * Api/qwebpage.cpp:
14104         (QWebPage::focusInEvent):
14105
14106 2007-10-24  Lars Knoll  <lars@trolltech.com>
14107
14108         Reviewed by Simon.
14109
14110         Implement support for testing editing.
14111
14112         * WebCoreSupport/EditorClientQt.cpp:
14113         (qt_dump_editing_callbacks):
14114         (qt_dump_set_accepts_editing):
14115         (dumpPath):
14116         (dumpRange):
14117         (WebCore::EditorClientQt::shouldDeleteRange):
14118         (WebCore::EditorClientQt::shouldShowDeleteInterface):
14119         (WebCore::EditorClientQt::shouldBeginEditing):
14120         (WebCore::EditorClientQt::shouldEndEditing):
14121         (WebCore::EditorClientQt::shouldInsertText):
14122         (WebCore::EditorClientQt::shouldChangeSelectedRange):
14123         (WebCore::EditorClientQt::shouldApplyStyle):
14124         (WebCore::EditorClientQt::didBeginEditing):
14125         (WebCore::EditorClientQt::respondToChangedContents):
14126         (WebCore::EditorClientQt::respondToChangedSelection):
14127         (WebCore::EditorClientQt::didEndEditing):
14128         (WebCore::EditorClientQt::shouldInsertNode):
14129
14130 2007-10-19  Alp Toker  <alp@atoker.com>
14131
14132         Reviewed by Oliver.
14133
14134         GTK+ build fix enabling the new local database storage feature.
14135         There is also a prospective Qt build fix.
14136
14137         * WebCoreSupport/ChromeClientQt.cpp:
14138         (WebCore::ChromeClientQt::runDatabaseSizeLimitPrompt):
14139         * WebCoreSupport/ChromeClientQt.h:
14140
14141 2007-10-19  Simon Hausmann  <hausmann@kde.org>
14142
14143         Fix the Qt/Windows build: Include the moc file from the .cpp file so
14144         that config.h is included before wtf/MathExtras. The former defines
14145         the MSVC defines for rand_s.
14146
14147         * WebCoreSupport/FrameLoaderClientQt.cpp:
14148
14149 2007-10-19  Simon Hausmann  <shausman@trolltech.com>
14150
14151         Reviewed by Lars.
14152
14153         Fix the windows/qt build by including config.h first to fix wtf/MathExtras.h inclusion.
14154
14155         * Api/qwebframe.cpp:
14156         * Api/qwebpage.cpp:
14157
14158 2007-10-10  Alice Liu  <alice.liu@apple.com>
14159
14160         Reviewed by Geoff Garen.
14161
14162         changes to keep the build from breaking
14163
14164         * WebCoreSupport/FrameLoaderClientQt.cpp:
14165         (WebCore::FrameLoaderClientQt::createFrame):
14166         * WebCoreSupport/FrameLoaderClientQt.h:
14167
14168 2007-10-09  Lars Knoll  <lars@trolltech.com>
14169
14170         Reviewed by Simon.
14171
14172         set a default encoding for documents. Makes fast/dom/Document/document-charset.html pass.
14173
14174         * Api/qwebpage.cpp:
14175         (QWebPage::setSettings):
14176
14177 2007-10-09  Lars Knoll  <lars@trolltech.com>
14178
14179         Reviewed by Simon.
14180
14181         Don't return a 404 status code for empty data: urls. Fixes fast/dom/HTMLHeadElement/head-check.html
14182
14183         * Api/qwebnetworkinterface.cpp:
14184         (QWebNetworkManager::add):
14185         (QWebNetworkManager::cancel):
14186         (QWebNetworkManager::started):
14187         (QWebNetworkManager::data):
14188         (QWebNetworkInterfacePrivate::parseDataUrl):
14189
14190 2007-10-09  Lars Knoll  <lars@trolltech.com>
14191
14192         Reviewed by Simon.
14193
14194         Don't set up connections inside QWebPage::createFrame, as users might be reimplementing that method. Make sure we get only one titleChanged() signal per title change, and implement the support for testing this in DRT.
14195
14196         * Api/qwebpage.cpp:
14197         (QWebPagePrivate::createMainFrame):
14198         (QWebPage::createFrame):
14199         * WebCoreSupport/FrameLoaderClientQt.cpp:
14200         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
14201         * WebCoreSupport/FrameLoaderClientQt.h:
14202
14203 2007-10-09  Lars Knoll  <lars@trolltech.com>
14204
14205         Reviewed by Simon.
14206
14207         add a clear() method to QWebPageHistory.
14208
14209         * Api/qwebpagehistory.cpp:
14210         (QWebPageHistory::clear):
14211         (QWebPageHistory::itemAtIndex):
14212         * Api/qwebpagehistory.h:
14213
14214 2007-10-05  Lars Knoll  <lars@trolltech.com>
14215
14216         add proper error messages to the FrameLoaderClient.
14217         Implement ChromeClientQt::closeWindowSoon and
14218         FrameLoaderClientQt::dispatchCreatePage (which should go away IMO).
14219         Some fixes in DRT to make it work correctly with multiple windows.
14220
14221         Reviewed by Maciej.
14222
14223         * Api/qwebframe.h:
14224         * Api/qwebnetworkinterface.cpp:
14225         (QWebNetworkManager::cancel):
14226         (QWebNetworkInterface::addJob):
14227         * WebCoreSupport/ChromeClientQt.cpp:
14228         (WebCore::ChromeClientQt::closeWindowSoon):
14229         * WebCoreSupport/FrameLoaderClientQt.cpp:
14230         (WebCore::FrameLoaderClientQt::cancelledError):
14231         (WebCore::):
14232         (WebCore::FrameLoaderClientQt::blockedError):
14233         (WebCore::FrameLoaderClientQt::cannotShowURLError):
14234         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
14235         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
14236         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
14237
14238 2007-10-03  Lars Knoll  <lars@trolltech.com>
14239
14240         Signed off by Olliej.
14241
14242         move WebKitQt to WebKit/qt for consistency with the other ports.
14243
14244         * Api/headers.pri: Renamed from WebKitQt/Api/headers.pri.
14245         * Api/qcookiejar.cpp: Renamed from WebKitQt/Api/qcookiejar.cpp.
14246         (QCookieJarPrivate::QCookieJarPrivate):
14247         (qHash):
14248         (QCookieJar::QCookieJar):
14249         (QCookieJar::~QCookieJar):
14250         (QCookieJar::setCookies):
14251         (QCookieJar::cookies):
14252         (QCookieJar::isEnabled):
14253         (QCookieJar::setEnabled):
14254         (gCleanupJar):
14255         (QCookieJar::setCookieJar):
14256         (QCookieJar::cookieJar):
14257         * Api/qcookiejar.h: Renamed from WebKitQt/Api/qcookiejar.h.
14258         * Api/qtwebkit.prf: Renamed from WebKitQt/Api/qtwebkit.prf.
14259         * Api/qwebframe.cpp: Renamed from WebKitQt/Api/qwebframe.cpp.
14260         (QWebFramePrivate::init):
14261         (QWebFramePrivate::parentFrame):
14262         (QWebFramePrivate::horizontalScrollBar):
14263         (QWebFramePrivate::verticalScrollBar):
14264         (QWebFrame::QWebFrame):
14265         (QWebFrame::~QWebFrame):
14266         (QWebFrame::addToJSWindowObject):
14267         (QWebFrame::markup):
14268         (QWebFrame::innerText):
14269         (QWebFrame::renderTreeDump):
14270         (QWebFrame::title):
14271         (QWebFrame::name):
14272         (QWebFrame::page):
14273         (QWebFrame::selectedText):
14274         (QWebFrame::childFrames):
14275         (QWebFrame::verticalScrollBarPolicy):
14276         (QWebFrame::setVerticalScrollBarPolicy):
14277         (QWebFrame::horizontalScrollBarPolicy):
14278         (QWebFrame::setHorizontalScrollBarPolicy):
14279         (QWebFrame::render):
14280         (QWebFrame::layout):
14281         (QWebFrame::pos):
14282         (QWebFrame::geometry):
14283         (QWebFrame::evaluateJavaScript):
14284         (QWebFrame::mouseMoveEvent):
14285         (QWebFrame::mousePressEvent):
14286         (QWebFrame::mouseDoubleClickEvent):
14287         (QWebFrame::mouseReleaseEvent):
14288         (QWebFrame::wheelEvent):
14289         * Api/qwebframe.h: Renamed from WebKitQt/Api/qwebframe.h.
14290         * Api/qwebframe_p.h: Renamed from WebKitQt/Api/qwebframe_p.h.
14291         (QWebFramePrivate::QWebFramePrivate):
14292         * Api/qwebhistoryinterface.cpp: Renamed from WebKitQt/Api/qwebhistoryinterface.cpp.
14293         (WebCore::historyContains):
14294         (gCleanupInterface):
14295         (QWebHistoryInterface::setDefaultInterface):
14296         (QWebHistoryInterface::defaultInterface):
14297         (QWebHistoryInterface::QWebHistoryInterface):
14298         * Api/qwebhistoryinterface.h: Renamed from WebKitQt/Api/qwebhistoryinterface.h.
14299         * Api/qwebkitglobal.h: Renamed from WebKitQt/Api/qwebkitglobal.h.
14300         * Api/qwebnetworkinterface.cpp: Renamed from WebKitQt/Api/qwebnetworkinterface.cpp.
14301         (qHash):
14302         (operator==):
14303         (QWebNetworkRequestPrivate::init):
14304         (QWebNetworkRequestPrivate::setURL):
14305         (QWebNetworkRequest::QWebNetworkRequest):
14306         (QWebNetworkRequest::operator=):
14307         (QWebNetworkRequest::~QWebNetworkRequest):
14308         (QWebNetworkRequest::url):
14309         (QWebNetworkRequest::setUrl):
14310         (QWebNetworkRequest::httpHeader):
14311         (QWebNetworkRequest::setHttpHeader):
14312         (QWebNetworkRequest::httpHeaderField):
14313         (QWebNetworkRequest::setHttpHeaderField):
14314         (QWebNetworkRequest::postData):
14315         (QWebNetworkRequest::setPostData):
14316         (QWebNetworkJob::QWebNetworkJob):
14317         (QWebNetworkJob::~QWebNetworkJob):
14318         (QWebNetworkJob::url):
14319         (QWebNetworkJob::postData):
14320         (QWebNetworkJob::httpHeader):
14321         (QWebNetworkJob::request):
14322         (QWebNetworkJob::response):
14323         (QWebNetworkJob::setResponse):
14324         (QWebNetworkJob::cancelled):
14325         (QWebNetworkJob::ref):
14326         (QWebNetworkJob::deref):
14327         (QWebNetworkJob::networkInterface):
14328         (QWebNetworkJob::frame):
14329         (QWebNetworkManager::QWebNetworkManager):
14330         (QWebNetworkManager::self):
14331         (QWebNetworkManager::add):
14332         (QWebNetworkManager::cancel):
14333         (QWebNetworkManager::started):
14334         (QWebNetworkManager::data):
14335         (QWebNetworkManager::finished):
14336         (QWebNetworkManager::addHttpJob):
14337         (QWebNetworkManager::cancelHttpJob):
14338         (QWebNetworkManager::httpConnectionClosed):
14339         (QWebNetworkInterfacePrivate::sendFileData):
14340         (QWebNetworkInterfacePrivate::parseDataUrl):
14341         (gCleanupInterface):
14342         (QWebNetworkInterface::setDefaultInterface):
14343         (QWebNetworkInterface::defaultInterface):
14344         (QWebNetworkInterface::QWebNetworkInterface):
14345         (QWebNetworkInterface::~QWebNetworkInterface):
14346         (QWebNetworkInterface::addJob):
14347         (QWebNetworkInterface::cancelJob):
14348         (WebCoreHttp::WebCoreHttp):
14349         (WebCoreHttp::~WebCoreHttp):
14350         (WebCoreHttp::request):
14351         (WebCoreHttp::scheduleNextRequest):
14352         (WebCoreHttp::getConnection):
14353         (WebCoreHttp::onResponseHeaderReceived):
14354         (WebCoreHttp::onReadyRead):
14355         (WebCoreHttp::onRequestFinished):
14356         (WebCoreHttp::onDone):
14357         (WebCoreHttp::onStateChanged):
14358         (WebCoreHttp::cancel):
14359         (WebCoreHttp::onSslErrors):
14360         (WebCoreHttp::onAuthenticationRequired):
14361         (WebCoreHttp::onProxyAuthenticationRequired):
14362         (HostInfo::HostInfo):
14363         * Api/qwebnetworkinterface.h: Renamed from WebKitQt/Api/qwebnetworkinterface.h.
14364         * Api/qwebnetworkinterface_p.h: Renamed from WebKitQt/Api/qwebnetworkinterface_p.h.
14365         (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
14366         (WebCore::HostInfo::HostInfo):
14367         (WebCore::WebCoreHttp::HttpConnection::HttpConnection):
14368         * Api/qwebobjectplugin.cpp: Renamed from WebKitQt/Api/qwebobjectplugin.cpp.
14369         (QWebFactoryLoader::QWebFactoryLoader):
14370         (QWebFactoryLoader::self):
14371         (QWebFactoryLoader::descriptionForName):
14372         (QWebFactoryLoader::mimetypesForName):
14373         (QWebFactoryLoader::mimeTypeForExtension):
14374         (QWebFactoryLoader::extensions):
14375         (QWebFactoryLoader::nameForMimetype):
14376         (QWebFactoryLoader::create):
14377         (QWebObjectPlugin::QWebObjectPlugin):
14378         (QWebObjectPlugin::~QWebObjectPlugin):
14379         (QWebObjectPlugin::descriptionForKey):
14380         (QWebObjectPlugin::mimetypesForKey):
14381         (QWebObjectPlugin::extensionsForMimetype):
14382         * Api/qwebobjectplugin.h: Renamed from WebKitQt/Api/qwebobjectplugin.h.
14383         * Api/qwebobjectplugin_p.h: Renamed from WebKitQt/Api/qwebobjectplugin_p.h.
14384         (QWebFactoryLoader::names):
14385         (QWebFactoryLoader::supportsMimeType):
14386         * Api/qwebobjectpluginconnector.cpp: Renamed from WebKitQt/Api/qwebobjectpluginconnector.cpp.
14387         (QWebObjectPluginConnector::QWebObjectPluginConnector):
14388         (QWebObjectPluginConnector::frame):
14389         (QWebObjectPluginConnector::pluginParentWidget):
14390         (QWebObjectPluginConnector::requestUrl):
14391         * Api/qwebobjectpluginconnector.h: Renamed from WebKitQt/Api/qwebobjectpluginconnector.h.
14392         * Api/qwebpage.cpp: Renamed from WebKitQt/Api/qwebpage.cpp.
14393         (QWebPagePrivate::QWebPagePrivate):
14394         (QWebPagePrivate::~QWebPagePrivate):
14395         (QWebPagePrivate::navigationRequested):
14396         (QWebPagePrivate::createMainFrame):
14397         (QWebPage::QWebPage):
14398         (QWebPage::~QWebPage):
14399         (QWebPage::createFrame):
14400         (QWebPage::open):
14401         (QWebPage::url):
14402         (QWebPage::title):
14403         (QWebPage::mainFrame):
14404         (QWebPage::sizeHint):
14405         (QWebPage::stop):
14406         (QWebPage::history):
14407         (QWebPage::goBack):
14408         (QWebPage::goForward):
14409         (QWebPage::goToHistoryItem):
14410         (QWebPage::javaScriptConsoleMessage):
14411         (QWebPage::javaScriptAlert):
14412         (QWebPage::javaScriptConfirm):
14413         (QWebPage::javaScriptPrompt):
14414         (QWebPage::createWindow):
14415         (QWebPage::createModalDialog):
14416         (QWebPage::createPlugin):
14417         (QWebPage::navigationRequested):
14418         (QWebPage::setWindowGeometry):
14419         (QWebPage::canCut):
14420         (QWebPage::canCopy):
14421         (QWebPage::canPaste):
14422         (QWebPage::cut):
14423         (QWebPage::copy):
14424         (QWebPage::paste):
14425         (QWebPage::isModified):
14426         (QWebPage::undoStack):
14427         (dropActionToDragOp):
14428         (dragOpToDropAction):
14429         (QWebPage::resizeEvent):
14430         (QWebPage::paintEvent):
14431         (QWebPage::mouseMoveEvent):
14432         (QWebPage::mousePressEvent):
14433         (QWebPage::mouseDoubleClickEvent):
14434         (QWebPage::mouseReleaseEvent):
14435         (QWebPage::wheelEvent):
14436         (QWebPage::keyPressEvent):
14437         (QWebPage::keyReleaseEvent):
14438         (QWebPage::focusInEvent):
14439         (QWebPage::focusOutEvent):
14440         (QWebPage::focusNextPrevChild):
14441         (QWebPage::dragEnterEvent):
14442         (QWebPage::dragLeaveEvent):
14443         (QWebPage::dragMoveEvent):
14444         (QWebPage::dropEvent):
14445         (QWebPage::setNetworkInterface):
14446         (QWebPage::networkInterface):
14447         (QWebPage::icon):
14448         (QWebPage::setSettings):
14449         (QWebPage::settings):
14450         (QWebPage::chooseFile):
14451         (QWebPage::setNetworkProxy):
14452         (QWebPage::networkProxy):
14453         (QWebPage::userAgentStringForUrl):
14454         (QWebPage::onLoadProgressChanged):
14455         (QWebPage::totalBytes):
14456         * Api/qwebpage.h: Renamed from WebKitQt/Api/qwebpage.h.
14457         * Api/qwebpage_p.h: Renamed from WebKitQt/Api/qwebpage_p.h.
14458         * Api/qwebpagehistory.cpp: Renamed from WebKitQt/Api/qwebpagehistory.cpp.
14459         (QWebHistoryItem::QWebHistoryItem):
14460         (QWebHistoryItem::operator=):
14461         (QWebHistoryItem::~QWebHistoryItem):
14462         (QWebHistoryItem::originalUrl):
14463         (QWebHistoryItem::currentUrl):
14464         (QWebHistoryItem::title):
14465         (QWebHistoryItem::lastVisited):
14466         (QWebHistoryItem::icon):
14467         (QWebPageHistory::QWebPageHistory):
14468         (QWebPageHistory::itemAtIndex):
14469         (QWebPageHistory::operator=):
14470         (QWebPageHistory::~QWebPageHistory):
14471         (QWebPageHistory::items):
14472         (QWebPageHistory::backItems):
14473         (QWebPageHistory::forwardItems):
14474         (QWebPageHistory::canGoBack):
14475         (QWebPageHistory::canGoForward):
14476         (QWebPageHistory::goBack):
14477         (QWebPageHistory::goForward):
14478         (QWebPageHistory::goToItem):
14479         (QWebPageHistory::backItem):
14480         (QWebPageHistory::currentItem):
14481         (QWebPageHistory::forwardItem):
14482         * Api/qwebpagehistory.h: Renamed from WebKitQt/Api/qwebpagehistory.h.
14483         (QExplicitlySharedDataPointer::operator*):
14484         (QExplicitlySharedDataPointer::operator->):
14485         (QExplicitlySharedDataPointer::operator T *):
14486         (QExplicitlySharedDataPointer::operator const T *):
14487         (QExplicitlySharedDataPointer::data):
14488         (QExplicitlySharedDataPointer::constData):
14489         (QExplicitlySharedDataPointer::operator==):
14490         (QExplicitlySharedDataPointer::operator!=):
14491         (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer):
14492         (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer):
14493         (QExplicitlySharedDataPointer::operator=):
14494         (QExplicitlySharedDataPointer::operator!):
14495         (::QExplicitlySharedDataPointer):
14496         * Api/qwebpagehistory_p.h: Renamed from WebKitQt/Api/qwebpagehistory_p.h.
14497         (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
14498         (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
14499         (QWebPageHistoryPrivate::QWebPageHistoryPrivate):
14500         (QWebPageHistoryPrivate::~QWebPageHistoryPrivate):
14501         * Api/qwebsettings.cpp: Renamed from WebKitQt/Api/qwebsettings.cpp.
14502         (QWebSettingsPrivate::QWebSettingsPrivate):
14503         (QWebSettings::QWebSettings):
14504         (QWebSettings::~QWebSettings):
14505         (QWebSettings::setMinimumFontSize):
14506         (QWebSettings::minimumFontSize):
14507         (QWebSettings::setMinimumLogicalFontSize):
14508         (QWebSettings::minimumLogicalFontSize):
14509         (QWebSettings::setDefaultFontSize):
14510         (QWebSettings::defaultFontSize):
14511         (QWebSettings::setDefaultFixedFontSize):
14512         (QWebSettings::defaultFixedFontSize):
14513         (QWebSettings::setUserStyleSheetLocation):
14514         (QWebSettings::userStyleSheetLocation):
14515         (QWebSettings::setIconDatabaseEnabled):
14516         (QWebSettings::iconDatabaseEnabled):
14517         (QWebSettings::setWebGraphic):
14518         (QWebSettings::webGraphic):
14519         (QWebSettings::operator=):
14520         (QWebSettings::setGlobal):
14521         (QWebSettings::global):
14522         (QWebSettings::setFontFamily):
14523         (QWebSettings::fontFamily):
14524         (QWebSettings::setAttribute):
14525         (QWebSettings::testAttribute):
14526         (loadResourcePixmap):
14527         * Api/qwebsettings.h: Renamed from WebKitQt/Api/qwebsettings.h.
14528         * ChangeLog: Renamed from WebKitQt/ChangeLog.
14529         * Plugins/ICOHandler.cpp: Renamed from WebKitQt/Plugins/ICOHandler.cpp.
14530         (IcoHeader::operator >>):
14531         (IcoHeader::BMP_INFOHDR::):
14532         (IcoHeader::operator<<):
14533         (IcoHeader::LessDifference::LessDifference):
14534         (IcoHeader::LessDifference::operator ()):
14535         (IcoHeader::loadFromDIB):
14536         (ICOHandler::ICOHandler):
14537         (ICOHandler::canRead):
14538         (ICOHandler::read):
14539         (ICOHandler::write):
14540         (ICOHandler::name):
14541         (ICOPlugin::keys):
14542         (ICOPlugin::capabilities):
14543         (ICOPlugin::create):
14544         * Plugins/ICOHandler.h: Renamed from WebKitQt/Plugins/ICOHandler.h.
14545         * Plugins/Plugins.pro: Renamed from WebKitQt/Plugins/Plugins.pro.
14546         * QtLauncher/QtLauncher.pro: Renamed from WebKitQt/QtLauncher/QtLauncher.pro.
14547         * QtLauncher/main.cpp: Renamed from WebKitQt/QtLauncher/main.cpp.
14548         (HoverLabel::HoverLabel):
14549         (HoverLabel::setHoverLink):
14550         (HoverLabel::sizeForFont):
14551         (HoverLabel::sizeHint):
14552         (HoverLabel::updateSize):
14553         (HoverLabel::resetAnimation):
14554         (HoverLabel::paintEvent):
14555         (HoverLabel::interpolate):
14556         (ClearButton::ClearButton):
14557         (ClearButton::paintEvent):
14558         (SearchEdit::SearchEdit):
14559         (SearchEdit::~SearchEdit):
14560         (SearchEdit::paintEvent):
14561         (SearchEdit::resizeEvent):
14562         (SearchEdit::moveEvent):
14563         (MainWindow::MainWindow):
14564         (MainWindow::changeLocation):
14565         (MainWindow::loadFinished):
14566         (MainWindow::showLinkHover):
14567         (MainWindow::resizeEvent):
14568         (main):
14569         * WebCoreSupport/ChromeClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.cpp.
14570         (WebCore::ChromeClientQt::ChromeClientQt):
14571         (WebCore::ChromeClientQt::~ChromeClientQt):
14572         (WebCore::ChromeClientQt::setWindowRect):
14573         (WebCore::ChromeClientQt::windowRect):
14574         (WebCore::ChromeClientQt::pageRect):
14575         (WebCore::ChromeClientQt::scaleFactor):
14576         (WebCore::ChromeClientQt::focus):
14577         (WebCore::ChromeClientQt::unfocus):
14578         (WebCore::ChromeClientQt::canTakeFocus):
14579         (WebCore::ChromeClientQt::takeFocus):
14580         (WebCore::ChromeClientQt::createWindow):
14581         (WebCore::ChromeClientQt::createModalDialog):
14582         (WebCore::ChromeClientQt::show):
14583         (WebCore::ChromeClientQt::canRunModal):
14584         (WebCore::ChromeClientQt::runModal):
14585         (WebCore::ChromeClientQt::setToolbarsVisible):
14586         (WebCore::ChromeClientQt::toolbarsVisible):
14587         (WebCore::ChromeClientQt::setStatusbarVisible):
14588         (WebCore::ChromeClientQt::statusbarVisible):
14589         (WebCore::ChromeClientQt::setScrollbarsVisible):
14590         (WebCore::ChromeClientQt::scrollbarsVisible):
14591         (WebCore::ChromeClientQt::setMenubarVisible):
14592         (WebCore::ChromeClientQt::menubarVisible):
14593         (WebCore::ChromeClientQt::setResizable):
14594         (WebCore::ChromeClientQt::addMessageToConsole):
14595         (WebCore::ChromeClientQt::chromeDestroyed):
14596         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
14597         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
14598         (WebCore::ChromeClientQt::closeWindowSoon):
14599         (WebCore::ChromeClientQt::runJavaScriptAlert):
14600         (WebCore::ChromeClientQt::runJavaScriptConfirm):
14601         (WebCore::ChromeClientQt::runJavaScriptPrompt):
14602         (WebCore::ChromeClientQt::setStatusbarText):
14603         (WebCore::ChromeClientQt::shouldInterruptJavaScript):
14604         (WebCore::ChromeClientQt::tabsToLinks):
14605         (WebCore::ChromeClientQt::windowResizerRect):
14606         (WebCore::ChromeClientQt::addToDirtyRegion):
14607         (WebCore::ChromeClientQt::scrollBackingStore):
14608         (WebCore::ChromeClientQt::updateBackingStore):
14609         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
14610         (WebCore::ChromeClientQt::setToolTip):
14611         (WebCore::ChromeClientQt::print):
14612         * WebCoreSupport/ChromeClientQt.h: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.h.
14613         * WebCoreSupport/ContextMenuClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.cpp.
14614         (WebCore::ContextMenuClientQt::contextMenuDestroyed):
14615         (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
14616         (WebCore::ContextMenuClientQt::contextMenuItemSelected):
14617         (WebCore::ContextMenuClientQt::downloadURL):
14618         (WebCore::ContextMenuClientQt::lookUpInDictionary):
14619         (WebCore::ContextMenuClientQt::speak):
14620         (WebCore::ContextMenuClientQt::stopSpeaking):
14621         (WebCore::ContextMenuClientQt::searchWithGoogle):
14622         * WebCoreSupport/ContextMenuClientQt.h: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.h.
14623         * WebCoreSupport/DragClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/DragClientQt.cpp.
14624         (WebCore::DragClientQt::actionMaskForDrag):
14625         (WebCore::DragClientQt::willPerformDragDestinationAction):
14626         (WebCore::DragClientQt::dragControllerDestroyed):
14627         (WebCore::DragClientQt::dragSourceActionMaskForPoint):
14628         (WebCore::DragClientQt::willPerformDragSourceAction):
14629         (WebCore::DragClientQt::startDrag):
14630         * WebCoreSupport/DragClientQt.h: Renamed from WebKitQt/WebCoreSupport/DragClientQt.h.
14631         (WebCore::DragClientQt::DragClientQt):
14632         * WebCoreSupport/EditCommandQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.cpp.
14633         (EditCommandQt::EditCommandQt):
14634         (EditCommandQt::~EditCommandQt):
14635         (EditCommandQt::redo):
14636         (EditCommandQt::undo):
14637         * WebCoreSupport/EditCommandQt.h: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.h.
14638         * WebCoreSupport/EditorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.cpp.
14639         (WebCore::EditorClientQt::shouldDeleteRange):
14640         (WebCore::EditorClientQt::shouldShowDeleteInterface):
14641         (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
14642         (WebCore::EditorClientQt::isGrammarCheckingEnabled):
14643         (WebCore::EditorClientQt::spellCheckerDocumentTag):
14644         (WebCore::EditorClientQt::shouldBeginEditing):
14645         (WebCore::EditorClientQt::shouldEndEditing):
14646         (WebCore::EditorClientQt::shouldInsertText):
14647         (WebCore::EditorClientQt::shouldChangeSelectedRange):
14648         (WebCore::EditorClientQt::shouldApplyStyle):
14649         (WebCore::EditorClientQt::shouldMoveRangeAfterDelete):
14650         (WebCore::EditorClientQt::didBeginEditing):
14651         (WebCore::EditorClientQt::respondToChangedContents):
14652         (WebCore::EditorClientQt::respondToChangedSelection):
14653         (WebCore::EditorClientQt::didEndEditing):
14654         (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
14655         (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard):
14656         (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
14657         (WebCore::EditorClientQt::isEditable):
14658         (WebCore::EditorClientQt::registerCommandForUndo):
14659         (WebCore::EditorClientQt::registerCommandForRedo):
14660         (WebCore::EditorClientQt::clearUndoRedoOperations):
14661         (WebCore::EditorClientQt::canUndo):
14662         (WebCore::EditorClientQt::canRedo):
14663         (WebCore::EditorClientQt::undo):
14664         (WebCore::EditorClientQt::redo):
14665         (WebCore::EditorClientQt::shouldInsertNode):
14666         (WebCore::EditorClientQt::pageDestroyed):
14667         (WebCore::EditorClientQt::smartInsertDeleteEnabled):
14668         (WebCore::EditorClientQt::toggleContinuousSpellChecking):
14669         (WebCore::EditorClientQt::toggleGrammarChecking):
14670         (WebCore::EditorClientQt::handleKeypress):
14671         (WebCore::EditorClientQt::handleInputMethodKeypress):
14672         (WebCore::EditorClientQt::EditorClientQt):
14673         (WebCore::EditorClientQt::textFieldDidBeginEditing):
14674         (WebCore::EditorClientQt::textFieldDidEndEditing):
14675         (WebCore::EditorClientQt::textDidChangeInTextField):
14676         (WebCore::EditorClientQt::doTextFieldCommandFromEvent):
14677         (WebCore::EditorClientQt::textWillBeDeletedInTextField):
14678         (WebCore::EditorClientQt::textDidChangeInTextArea):
14679         (WebCore::EditorClientQt::ignoreWordInSpellDocument):
14680         (WebCore::EditorClientQt::learnWord):
14681         (WebCore::EditorClientQt::checkSpellingOfString):
14682         (WebCore::EditorClientQt::checkGrammarOfString):
14683         (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
14684         (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord):
14685         (WebCore::EditorClientQt::showSpellingUI):
14686         (WebCore::EditorClientQt::spellingUIIsShowing):
14687         (WebCore::EditorClientQt::getGuessesForWord):
14688         (WebCore::EditorClientQt::isEditing):
14689         (WebCore::EditorClientQt::setInputMethodState):
14690         * WebCoreSupport/EditorClientQt.h: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.h.
14691         * WebCoreSupport/FrameLoaderClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp.
14692         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
14693         (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
14694         (WebCore::FrameLoaderClientQt::setFrame):
14695         (WebCore::FrameLoaderClientQt::webFrame):
14696         (WebCore::FrameLoaderClientQt::callPolicyFunction):
14697         (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
14698         (WebCore::FrameLoaderClientQt::hasWebView):
14699         (WebCore::FrameLoaderClientQt::hasFrameView):
14700         (WebCore::FrameLoaderClientQt::hasBackForwardList):
14701         (WebCore::FrameLoaderClientQt::resetBackForwardList):
14702         (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
14703         (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
14704         (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
14705         (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
14706         (WebCore::FrameLoaderClientQt::makeDocumentView):
14707         (WebCore::FrameLoaderClientQt::makeRepresentation):
14708         (WebCore::FrameLoaderClientQt::forceLayout):
14709         (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
14710         (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
14711         (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
14712         (WebCore::FrameLoaderClientQt::resetAfterLoadError):
14713         (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
14714         (WebCore::FrameLoaderClientQt::willCloseDocument):
14715         (WebCore::FrameLoaderClientQt::detachedFromParent2):
14716         (WebCore::FrameLoaderClientQt::detachedFromParent3):
14717         (WebCore::FrameLoaderClientQt::detachedFromParent4):
14718         (WebCore::FrameLoaderClientQt::loadedFromCachedPage):
14719         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
14720         (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
14721         (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
14722         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
14723         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
14724         (WebCore::FrameLoaderClientQt::dispatchWillClose):
14725         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
14726         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
14727         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
14728         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
14729         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
14730         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
14731         (WebCore::FrameLoaderClientQt::dispatchShow):
14732         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
14733         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
14734         (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
14735         (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
14736         (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
14737         (WebCore::FrameLoaderClientQt::revertToProvisionalState):
14738         (WebCore::FrameLoaderClientQt::clearUnarchivingState):
14739         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
14740         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
14741         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
14742         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
14743         (WebCore::FrameLoaderClientQt::willChangeTitle):
14744         (WebCore::FrameLoaderClientQt::didChangeTitle):
14745         (WebCore::FrameLoaderClientQt::finishedLoading):
14746         (WebCore::FrameLoaderClientQt::finalSetupForReplace):
14747         (WebCore::FrameLoaderClientQt::setDefersLoading):
14748         (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
14749         (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
14750         (WebCore::FrameLoaderClientQt::clearArchivedResources):
14751         (WebCore::FrameLoaderClientQt::canShowMIMEType):
14752         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
14753         (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
14754         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
14755         (WebCore::FrameLoaderClientQt::restoreViewState):
14756         (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
14757         (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
14758         (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
14759         (WebCore::FrameLoaderClientQt::didFinishLoad):
14760         (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
14761         (WebCore::FrameLoaderClientQt::setTitle):
14762         (WebCore::FrameLoaderClientQt::userAgent):
14763         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
14764         (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
14765         (WebCore::FrameLoaderClientQt::canHandleRequest):
14766         (WebCore::FrameLoaderClientQt::windowObjectCleared):
14767         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
14768         (WebCore::FrameLoaderClientQt::registerForIconNotification):
14769         (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage):
14770         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
14771         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload):
14772         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
14773         (WebCore::FrameLoaderClientQt::saveViewStateToItem):
14774         (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage):
14775         (WebCore::FrameLoaderClientQt::canCachePage):
14776         (WebCore::FrameLoaderClientQt::setMainDocumentError):
14777         (WebCore::FrameLoaderClientQt::committedLoad):
14778         (WebCore::FrameLoaderClientQt::cancelledError):
14779         (WebCore::FrameLoaderClientQt::blockedError):
14780         (WebCore::FrameLoaderClientQt::cannotShowURLError):
14781         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
14782         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
14783         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
14784         (WebCore::FrameLoaderClientQt::shouldFallBack):
14785         (WebCore::FrameLoaderClientQt::createDocumentLoader):
14786         (WebCore::FrameLoaderClientQt::download):
14787         (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
14788         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
14789         (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
14790         (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
14791         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
14792         (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
14793         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
14794         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
14795         (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
14796         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
14797         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
14798         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
14799         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
14800         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
14801         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
14802         (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
14803         (WebCore::FrameLoaderClientQt::startDownload):
14804         (WebCore::FrameLoaderClientQt::willUseArchive):
14805         (WebCore::FrameLoaderClientQt::createFrame):
14806         (WebCore::FrameLoaderClientQt::objectContentType):
14807         (WebCore::):
14808         (WebCore::FrameLoaderClientQt::createPlugin):
14809         (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
14810         (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
14811         (WebCore::FrameLoaderClientQt::overrideMediaType):
14812         * WebCoreSupport/FrameLoaderClientQt.h: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.h.
14813         * WebCoreSupport/InspectorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.cpp.
14814         (WebCore::InspectorClientQt::inspectorDestroyed):
14815         (WebCore::InspectorClientQt::createPage):
14816         (WebCore::InspectorClientQt::showWindow):
14817         (WebCore::InspectorClientQt::closeWindow):
14818         (WebCore::InspectorClientQt::attachWindow):
14819         (WebCore::InspectorClientQt::detachWindow):
14820         (WebCore::InspectorClientQt::highlight):
14821         (WebCore::InspectorClientQt::hideHighlight):
14822         * WebCoreSupport/InspectorClientQt.h: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.h.
14823         * WebKitPart/WebKitFactory.cpp: Renamed from WebKitQt/WebKitPart/WebKitFactory.cpp.
14824         (WebKitFactory::WebKitFactory):
14825         (WebKitFactory::~WebKitFactory):
14826         (WebKitFactory::createPartObject):
14827         (WebKitFactory::instance):
14828         (WebKitFactory::ref):
14829         (WebKitFactory::deref):
14830         * WebKitPart/WebKitFactory.h: Renamed from WebKitQt/WebKitPart/WebKitFactory.h.
14831         * WebKitPart/WebKitPart.cpp: Renamed from WebKitQt/WebKitPart/WebKitPart.cpp.
14832         (WebKitPart::WebKitPart):
14833         (WebKitPart::~WebKitPart):
14834         (WebKitPart::openFile):
14835         (WebKitPart::openUrl):
14836         (WebKitPart::closeUrl):
14837         (WebKitPart::parentPart):
14838         (WebKitPart::frame):
14839         (WebKitPart::initView):
14840         * WebKitPart/WebKitPart.desktop: Renamed from WebKitQt/WebKitPart/WebKitPart.desktop.
14841         * WebKitPart/WebKitPart.h: Renamed from WebKitQt/WebKitPart/WebKitPart.h.
14842         (WebKitPart::):
14843         * WebKitPart/WebKitPart.rc: Renamed from WebKitQt/WebKitPart/WebKitPart.rc.
14844         * WebKitPart/WebKitPartBrowser.rc: Renamed from WebKitQt/WebKitPart/WebKitPartBrowser.rc.
14845         * WebKitPart/WebKitPartBrowserExtension.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.cpp.
14846         (WebKitPartBrowserExtension::WebKitPartBrowserExtension):
14847         * WebKitPart/WebKitPartBrowserExtension.h: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.h.
14848         * WebKitPart/WebKitPartClient.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartClient.cpp.
14849         (WebKitPartClient::WebKitPartClient):
14850         (WebKitPartClient::~WebKitPartClient):
14851         * WebKitPart/WebKitPartClient.h: Renamed from WebKitQt/WebKitPart/WebKitPartClient.h.
14852         * WebKitPart/WebKitPartInterface.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.cpp.
14853         (WebKitPartInterface::WebKitPartInterface):
14854         (WebKitPartInterface::~WebKitPartInterface):
14855         (WebKitPartInterface::url):
14856         * WebKitPart/WebKitPartInterface.h: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.h.
14857         * WebKitPart/org.kde.WebKitPart.xml: Renamed from WebKitQt/WebKitPart/org.kde.WebKitPart.xml.
14858
14859 2007-10-02  Adam Treat  <adam.treat@torchmobile.com>
14860
14861         Reviewed by Eric Seidel.
14862
14863         Open the requested url on the newly created window.
14864         Implement createModalDialog and provide new API for this.
14865         Patch by M. Mehdi Salem Naraghi (momesana) with additions by me.
14866
14867         * Api/qwebpage.cpp:
14868         (QWebPage::createModalDialog):
14869         * Api/qwebpage.h:
14870         * WebCoreSupport/ChromeClientQt.cpp:
14871         (WebCore::ChromeClientQt::createWindow):
14872         (WebCore::ChromeClientQt::createModalDialog):
14873
14874 2007-10-02  Lars Knoll  <lars@trolltech.com>
14875
14876         Reviewed by bdash.
14877
14878         Add API to retrieve the frame name from QWebFrame.
14879         Implement support for DRT::dumpChildrenAsText.
14880
14881         * Api/qwebframe.cpp:
14882         (QWebFrame::name):
14883         * Api/qwebframe.h:
14884
14885 2007-10-02  Lars Knoll  <lars@trolltech.com>
14886
14887         Reviewed by bdash.
14888
14889         Fix the handling of the response header for data urls. Make sure we always pass absolute URLs to WebKit from both DRT and QtLauncher.
14890
14891         * Api/qwebnetworkinterface.cpp:
14892         (QWebNetworkManager::started):
14893         (QWebNetworkManager::data):
14894         (QWebNetworkManager::finished):
14895         (QWebNetworkInterfacePrivate::sendFileData):
14896         (QWebNetworkInterfacePrivate::parseDataUrl):
14897         (WebCoreHttp::scheduleNextRequest):
14898         (WebCoreHttp::onSslErrors):
14899         * QtLauncher/main.cpp:
14900         (main):
14901
14902 2007-10-01  Lars Knoll  <lars@trolltech.com>
14903
14904         Reviewed by Eric.
14905
14906         Fix a wrong extension mapping in the MIMETypeRegistry and identify about: url's as frames in the FrameLoaderClient.
14907
14908         * WebCoreSupport/FrameLoaderClientQt.cpp:
14909         (WebCore::FrameLoaderClientQt::makeDocumentView):
14910         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
14911         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
14912         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
14913         (WebCore::FrameLoaderClientQt::objectContentType):
14914         (WebCore::FrameLoaderClientQt::createPlugin):
14915
14916 2007-09-30  George Staikos  <staikos@kde.org>
14917
14918         Qt build fix (OS X specific).
14919
14920         * QtLauncher/QtLauncher.pro:
14921
14922 2007-09-26  Mark Rowe  <mrowe@apple.com>
14923
14924         Qt build fix.
14925
14926         * WebCoreSupport/FrameLoaderClientQt.cpp:
14927         (WebCore::FrameLoaderClientQt::objectContentType): Check for empty URL instead of invalid URL.
14928
14929 2007-09-25  David Kilzer  <ddkilzer@webkit.org>
14930
14931         Reviewed by Adam.
14932
14933         - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
14934           LGPL'ed files contain incorrect FSF address
14935
14936         * Api/qcookiejar.cpp:
14937         * Api/qcookiejar.h:
14938         * Api/qwebframe.cpp:
14939         * Api/qwebframe.h:
14940         * Api/qwebframe_p.h:
14941         * Api/qwebhistoryinterface.cpp:
14942         * Api/qwebhistoryinterface.h:
14943         * Api/qwebkitglobal.h:
14944         * Api/qwebnetworkinterface.cpp:
14945         * Api/qwebnetworkinterface.h:
14946         * Api/qwebnetworkinterface_p.h:
14947         * Api/qwebobjectplugin.cpp:
14948         * Api/qwebobjectplugin.h:
14949         * Api/qwebobjectpluginconnector.cpp:
14950         * Api/qwebobjectpluginconnector.h:
14951         * Api/qwebpage.cpp:
14952         * Api/qwebpage.h:
14953         * Api/qwebpage_p.h:
14954         * Api/qwebpagehistory.cpp:
14955         * Api/qwebpagehistory.h:
14956         * Api/qwebsettings.cpp:
14957         * Api/qwebsettings.h:
14958         * WebCoreSupport/EditCommandQt.cpp:
14959         * WebCoreSupport/EditCommandQt.h:
14960
14961 2007-09-25  Adam Treat  <adam.treat@torchmobile.com>
14962
14963         Reviewed by Simon and Lars.
14964
14965         Modifies the addToJSWindowObject to bind js objects using the built-in
14966         kjs_window class.  Make sure to protect the created runtime object from
14967         garbage collection.
14968
14969         Adds a signal to QWebFrame to notify clients of the beginning of a
14970         provisional load.  DRT needs this.
14971
14972         * Api/qwebframe.cpp:
14973         (QWebFrame::addToJSWindowObject):
14974         * Api/qwebframe.h:
14975         * WebCoreSupport/FrameLoaderClientQt.cpp:
14976         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
14977
14978 2007-09-10  Qing Zhao  <qing@staikos.net>
14979
14980         Reviewed by George Staikos.
14981
14982         Don't re-encode urls, resulting in double encoding.  Fixes login to
14983         GMail.
14984
14985         * Api/qwebnetworkinterface.cpp:
14986         (QWebNetworkRequestPrivate::init):
14987         (QWebNetworkManager::started):
14988
14989 2007-09-08  Mark Rowe  <mrowe@apple.com>
14990
14991         Qt build fix.  Move stub method implementations to the right class.
14992
14993         * WebCoreSupport/FrameLoaderClientQt.cpp:
14994         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
14995
14996 2007-09-08  Brady Eidson  <beidson@apple.com>
14997
14998         YABF (Yet Another Build Fix)
14999
15000         * Api/qwebsettings.cpp:
15001         (QWebSettings::iconDatabaseEnabled):
15002
15003 2007-09-08  Brady Eidson  <beidson@apple.com>
15004
15005         Better build fix
15006
15007         * WebCoreSupport/FrameLoaderClientQt.cpp:
15008         (WebCore::FrameLoaderClient::registerForIconNotification):
15009         * WebCoreSupport/FrameLoaderClientQt.h:
15010
15011 2007-09-08  Brady Eidson  <beidson@apple.com>
15012
15013         Build fix
15014
15015         * WebCoreSupport/FrameLoaderClientQt.cpp:
15016         (WebCore::FrameLoaderClient::registerForIconNotification):
15017         * WebCoreSupport/FrameLoaderClientQt.h:
15018
15019 2007-09-05  Geoffrey Garen  <ggaren@apple.com>
15020
15021         Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
15022         
15023         Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no 
15024         memory cache, or a very tiny one
15025         
15026         Keep the Qt build working with an empty stub.
15027         
15028         * WebCoreSupport/FrameLoaderClientQt.cpp:
15029         (WebCore::FrameLoaderClient::didPerformFirstNavigation):
15030         * WebCoreSupport/FrameLoaderClientQt.h:
15031
15032 2007-09-07  George Staikos  <staikos@kde.org>
15033
15034         Fix typo.
15035
15036         * Api/qwebpage.cpp:
15037         (QWebPage::onLoadProgressChanged):
15038
15039 2007-09-07  Qing Zhao  <qing@staikos.net>
15040
15041         Reviewed by Anders and George.
15042
15043         Export page size and load progress in bytes.
15044
15045         * Api/qwebpage.cpp:
15046         (QWebPage::QWebPage):
15047         (QWebPage::onLoadProgressChanged):
15048         (QWebPage::totalBytes):
15049         (QWebPage::bytesReceived):
15050         * Api/qwebpage.h:
15051         * Api/qwebpage_p.h:
15052
15053 2007-09-06  George Staikos  <staikos@kde.org>
15054
15055         Reviewed by Anders.
15056
15057         Make popup windows work again.
15058
15059         * WebCoreSupport/FrameLoaderClientQt.cpp:
15060         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
15061
15062 2007-09-01  Oliver Hunt  <oliver@apple.com>
15063
15064         Reviewed by Sam.
15065
15066         <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions
15067  
15068         EditorClient::setInputMethodState stub
15069
15070         * WebCoreSupport/EditorClientQt.cpp:
15071         (WebCore::EditorClientQt::setInputMethodState):
15072         * WebCoreSupport/EditorClientQt.h:
15073
15074 2007-08-30  Simon Hausmann  <hausmann@kde.org>
15075
15076         Reviewed by Zack.
15077
15078         Use QKeySequence::StandardKey for the page wise scrolling shortcuts.
15079
15080         * Api/qwebpage.cpp:
15081         (QWebPage::keyPressEvent):
15082
15083 2007-08-30  Simon Hausmann  <hausmann@kde.org>
15084
15085         Reviewed by Zack.
15086
15087         When scrolling with the keyboard don't call update() on the entire widget.
15088         The scrollbar/scrollview implementation is already smart enough to scroll with bitblt
15089         on a value change.
15090
15091         * Api/qwebpage.cpp:
15092         (QWebPage::keyPressEvent):
15093
15094 2007-08-30  Simon Hausmann  <hausmann@kde.org>
15095
15096         Reviewed by Zack.
15097
15098         Fix scrolling with the keyboard if only one of the two scrollbars is visible.
15099
15100         * Api/qwebpage.cpp:
15101         (QWebPage::keyPressEvent):
15102
15103 2007-08-29  Simon Hausmann  <hausmann@kde.org>
15104
15105         Reviewed by Zack.
15106
15107         Fix compilation.
15108
15109         * WebCoreSupport/FrameLoaderClientQt.cpp:
15110         (WebCore::FrameLoaderClientQt::objectContentType):
15111
15112 2007-08-19  Mike Hommey  <mh+webkit@glandium.org>
15113
15114         Reviewed by George Staikos.
15115
15116         Don't export ICO symbols.
15117
15118         * Plugins/Plugins.pro:
15119
15120 2007-08-19  George Staikos  <staikos@kde.org>
15121
15122         Fix compilation.
15123
15124         * WebCoreSupport/FrameLoaderClientQt.cpp:
15125         (WebCore::FrameLoaderClientQt::createPlugin):
15126         * WebCoreSupport/FrameLoaderClientQt.h:
15127
15128 2007-08-10  Lars Knoll  <lars@trolltech.com>
15129
15130         Reviewed and landed by Simon.
15131
15132         Limit the set of properties from the computed style to apply to Qt
15133         plugin widgets, as only a few of them make sense.
15134
15135         * WebCoreSupport/FrameLoaderClientQt.cpp:
15136         (WebCore::):
15137
15138 2007-08-10  Lars Knoll  <lars@trolltech.com>
15139
15140         Reviewed by Simon.
15141
15142         Use <object>'s classid attribute for creation of plugins through QWebPage::createPlugin.
15143
15144         * Api/qwebpage.cpp:
15145         (QWebPage::createPlugin):
15146         * Api/qwebpage.h:
15147         * WebCoreSupport/FrameLoaderClientQt.cpp:
15148         (WebCore::FrameLoaderClientQt::objectContentType):
15149         (WebCore::FrameLoaderClientQt::createPlugin):
15150
15151 2007-08-10  Simon Hausmann  <hausmann@kde.org>
15152
15153         Reviewed by Lars.
15154
15155         Added support for network jobs from Qt resources using the qrc protocol.
15156
15157         * Api/qwebnetworkinterface.cpp:
15158         (QWebNetworkInterface::addJob):
15159
15160 2007-08-10  Simon Hausmann  <hausmann@kde.org>
15161
15162         Reviewed by Lars.
15163
15164         Added support for "application/x-qt-styled-widget" that is treated like "application/x-qt-plugin" but also
15165         gets a Qt widget stylesheet set from the CSS computed style and the element style attribute.
15166
15167         * WebCoreSupport/FrameLoaderClientQt.cpp:
15168         (WebCore::FrameLoaderClientQt::objectContentType):
15169         (WebCore::):
15170         (WebCore::FrameLoaderClientQt::createPlugin):
15171
15172 2007-08-10  Simon Hausmann  <hausmann@kde.org>
15173
15174         Reviewed by Lars.
15175
15176         Added virtual QWebPage::createPlugin that is called for embedded objects with the mime type "application/x-qt-plugin"
15177         and fixed widget embedding by setting the right QWidget parent.
15178
15179         * Api/qwebpage.cpp:
15180         (QWebPage::createPlugin):
15181         * Api/qwebpage.h:
15182         * WebCoreSupport/FrameLoaderClientQt.cpp:
15183         (WebCore::FrameLoaderClientQt::objectContentType):
15184         (WebCore::FrameLoaderClientQt::createPlugin):
15185
15186 2007-08-02  George Staikos  <staikos@kde.org>
15187
15188         Reviewed by Simon.
15189
15190         Add an interface for the useragent string.
15191
15192         * Api/qwebpage.cpp:
15193         (QWebPage::userAgentStringForUrl):
15194         * Api/qwebpage.h:
15195         * WebCoreSupport/FrameLoaderClientQt.cpp:
15196         (WebCore::FrameLoaderClientQt::userAgent):
15197
15198 2007-08-01  Adam Treat  <adam.treat@torchmobile.com>
15199
15200         Reviewed by George Staikos.
15201
15202         Add an interface to manage global history for clients
15203
15204         * Api/headers.pri:
15205         * Api/qwebhistoryinterface.cpp: Added.
15206         (WebCore::historyContains):
15207         (gCleanupInterface):
15208         (QWebHistoryInterface::setDefaultInterface):
15209         (QWebHistoryInterface::defaultInterface):
15210         (QWebHistoryInterface::QWebHistoryInterface):
15211         * Api/qwebhistoryinterface.h: Added.
15212
15213 2007-07-30  Adam Treat  <adam.treat@torchmobile.com>
15214
15215         Fix build.
15216
15217         * WebCoreSupport/EditorClientQt.cpp:
15218         (WebCore::EditorClientQt::shouldMoveRangeAfterDelete):
15219         * WebCoreSupport/EditorClientQt.h:
15220
15221 2007-07-30  Simon Hausmann  <hausmann@kde.org>
15222
15223         Reviewed by Lars.
15224
15225         Link QtLauncher into $$OUTPUT_DIR/bin
15226
15227         * QtLauncher/QtLauncher.pro:
15228
15229 2007-07-29  Adam Treat  <adam.treat@torchmobile.com>
15230
15231         Reviewed by George Staikos.
15232
15233         Change QWebPage::paintEvent to draw using the individual rects provided
15234         via the QRegion and set the widget to use opaque paint events.
15235
15236         These changes greatly reduce the cpu load as we are no longer painting the
15237         entire page for each 1px scroll :P
15238
15239         * Api/qwebframe.cpp:
15240         (QWebFrame::render):
15241         * Api/qwebpage.cpp:
15242         (QWebPage::QWebPage):
15243         (QWebPage::paintEvent):
15244         * WebCoreSupport/ChromeClientQt.cpp:
15245         (WebCore::ChromeClientQt::addToDirtyRegion):
15246
15247 2007-07-29  Adam Treat  <adam.treat@torchmobile.com>
15248
15249         Reviewed by Alexey Proskuryakov.
15250
15251         Respect the margins when creating frames.
15252         Set the scroll mode to always off like we did before the rendered
15253         frames patch and the other ports do now.
15254
15255         * Api/qwebframe.cpp:
15256         (QWebFramePrivate::init):
15257
15258 2007-07-27  Holger Hans Peter Freyther  <zecke@selfish.org>
15259
15260         Reviewed by Mark.
15261
15262         Don't create an app bundle on OSX to keep WebKitTools/Scripts/run-launcher working.
15263
15264         * QtLauncher/QtLauncher.pro:
15265
15266 2007-07-27  Simon Hausmann  <hausmann@kde.org>
15267
15268         Reviewed by Lars.
15269
15270         Fix compilation with MSVC.
15271
15272         * Api/qwebpagehistory.cpp:
15273         (QWebPageHistory::operator=):
15274         * Api/qwebpagehistory.h:
15275         * Api/qwebsettings.cpp:
15276         (QWebSettings::operator=):
15277         * Api/qwebsettings.h:
15278
15279 2007-07-26  Qing Zhao  <qing@staikos.net>
15280
15281         Reviewed by George Staikos.
15282
15283         Add a signal for history notification.
15284
15285         * Api/qwebpage.h:
15286         * WebCoreSupport/FrameLoaderClientQt.cpp:
15287
15288 2007-07-24  Adam Treat  <adam.treat@torchmobile.com>
15289
15290         Reviewed by Niko and Lars.
15291
15292         These are no longer necessary or used.
15293
15294         * WebCoreSupport/FrameLoaderClientQt.cpp:
15295         * WebCoreSupport/FrameLoaderClientQt.h:
15296
15297 2007-07-20  Adam Treat  <adam@staikos.net>
15298
15299         Reviewed by George Staikos.
15300
15301         Add a signal for first layout and add the action type for the policy
15302         function.
15303
15304         * Api/qwebpage.cpp:
15305         (QWebPagePrivate::navigationRequested):
15306         (QWebPage::navigationRequested):
15307         * Api/qwebpage.h:
15308         * Api/qwebpage_p.h:
15309         * WebCoreSupport/FrameLoaderClientQt.cpp:
15310         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
15311         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
15312
15313 2007-07-19  Adam Treat  <adam.treat@torchmobile.com>
15314
15315         Reviewed by George.
15316
15317         Do a recursive layout on the frame's children.  This fixes a
15318         segfault found when rendering some framesets.
15319
15320         * Api/qwebframe.cpp:
15321         (QWebFrame::render):
15322         (QWebFrame::layout):
15323         * Api/qwebframe.h:
15324
15325 2007-07-18  Timothy Hatcher  <timothy@apple.com>
15326
15327         Reviewed by Adam.
15328
15329         Make the Page with the now required InspectorClient.
15330
15331         * Api/qwebpage.cpp:
15332         (QWebPagePrivate::QWebPagePrivate):
15333         * WebKitPart/WebKitPart.cpp:
15334         (WebKitPart::initView):
15335
15336 2007-07-18  Sam Weinig  <sam@webkit.org>
15337
15338         Build fix.
15339
15340         * Api/qwebnetworkinterface.cpp:
15341         (QWebNetworkManager::started):
15342         * WebCoreSupport/FrameLoaderClientQt.cpp:
15343         (WebCore::FrameLoaderClientQt::canShowMIMEType):
15344         (WebCore::FrameLoaderClientQt::objectContentType):
15345
15346 2007-07-18  Lars Knoll <lars@trolltech.com>
15347
15348         Reviewed by Zack & Simon
15349
15350         Reallow setting of scrollbar policies on QWebFrame.
15351
15352         * Api/qwebframe.cpp:
15353         (QWebFrame::verticalScrollBarPolicy):
15354         (QWebFrame::setVerticalScrollBarPolicy):
15355         (QWebFrame::horizontalScrollBarPolicy):
15356         * Api/qwebframe.h:
15357
15358 2007-07-17  Adam Treat <adam.treat@torchmobile.com>
15359
15360         Build fix.
15361
15362         * WebCoreSupport/FrameLoaderClientQt.cpp:
15363         (WebCore::FrameLoaderClientQt::createFrame):
15364
15365 2007-07-17  Holger Hans Peter Freyther  <zecke@selfish.org>
15366
15367         Blind build fix for Qt after r24366 by adding the additional
15368         WebCore::ResourceRequest& parameter to the download method.
15369
15370         * WebCoreSupport/FrameLoaderClientQt.cpp:
15371         (WebCore::FrameLoaderClientQt::download):
15372         * WebCoreSupport/FrameLoaderClientQt.h:
15373
15374 2007-07-17  Adam Roben  <aroben@apple.com>
15375
15376         Remove ContextMenuClientQt::shouldIncludeInspectElementItem
15377
15378         Reviewed by Tim.
15379
15380         * WebCoreSupport/ContextMenuClientQt.cpp:
15381         * WebCoreSupport/ContextMenuClientQt.h:
15382
15383 2007-07-16  Adam Roben  <aroben@apple.com>
15384
15385         Updated ChromeClientQt for ChromeClient changes.
15386
15387         Reviewed by Darin Adler.
15388
15389         * WebCoreSupport/ChromeClientQt.cpp:
15390         (WebCore::ChromeClientQt::print): Added a Frame* parameter.
15391         * WebCoreSupport/ChromeClientQt.h: Ditto.
15392
15393 2007-07-13  Mark Rowe  <mrowe@apple.com>
15394
15395         Reviewed by Mitz.
15396
15397         Build fix.  Stub out ChromeClientQt::print.
15398
15399         * WebCoreSupport/ChromeClientQt.cpp:
15400         (WebCore::ChromeClientQt::print):
15401         * WebCoreSupport/ChromeClientQt.h:
15402
15403 2007-07-12  George Staikos  <staikos@kde.org>
15404
15405         Qt build fix for assertions.
15406
15407         * Api/qwebnetworkinterface.cpp:
15408         (QWebNetworkManager::add):
15409
15410 2007-07-12  George Staikos  <staikos@kde.org>
15411
15412         Qt build fix.
15413
15414         * Api/qwebnetworkinterface.cpp:
15415         (QWebNetworkManager::add):
15416
15417 2007-07-10  Mark Rowe  <mrowe@apple.com>
15418
15419         Qt build fix after r24126.
15420
15421         * Api/qwebframe.cpp:
15422         (QWebFrame::evaluateJavaScript):
15423
15424 2007-07-10  Eli Fidler  <eli@staikos.net>
15425
15426         Reviewed by George Staikos.
15427
15428         Properly url-decode data urls.
15429
15430         * Api/qwebnetworkinterface.cpp:
15431         (QWebNetworkInterfacePrivate::parseDataUrl):
15432
15433 2007-07-09  Adam Treat  <adam@staikos.net>
15434
15435         Reviewed by George Staikos.
15436
15437         Convert QWebFrame from a QFrame to a pure QObject to eliminate all
15438         traces of widgets.
15439
15440         * Api/qwebframe.cpp:
15441         (QWebFramePrivate::init):
15442         (QWebFramePrivate::parentFrame):
15443         (QWebFrame::QWebFrame):
15444         (QWebFrame::render):
15445         (QWebFrame::pos):
15446         (QWebFrame::geometry):
15447         (QWebFrame::evaluateJavaScript):
15448         (QWebFrame::mouseMoveEvent):
15449         (QWebFrame::mousePressEvent):
15450         (QWebFrame::mouseDoubleClickEvent):
15451         (QWebFrame::mouseReleaseEvent):
15452         (QWebFrame::wheelEvent):
15453         * Api/qwebframe.h:
15454         * Api/qwebobjectpluginconnector.cpp:
15455         (QWebObjectPluginConnector::pluginParentWidget):
15456         * Api/qwebpage.cpp:
15457         (QWebPagePrivate::QWebPagePrivate):
15458         (QWebPagePrivate::createMainFrame):
15459         (QWebPage::QWebPage):
15460         (QWebPage::javaScriptAlert):
15461         (QWebPage::javaScriptConfirm):
15462         (QWebPage::javaScriptPrompt):
15463         (QWebPage::resizeEvent):
15464         (QWebPage::paintEvent):
15465         (QWebPage::mouseMoveEvent):
15466         (QWebPage::mousePressEvent):
15467         (QWebPage::mouseDoubleClickEvent):
15468         (QWebPage::mouseReleaseEvent):
15469         (QWebPage::wheelEvent):
15470         (QWebPage::keyPressEvent):
15471         (QWebPage::keyReleaseEvent):
15472         (QWebPage::focusInEvent):
15473         (QWebPage::focusOutEvent):
15474         (QWebPage::focusNextPrevChild):
15475         (QWebPage::chooseFile):
15476         * Api/qwebpage.h:
15477         * Api/qwebpage_p.h:
15478         * WebCoreSupport/ChromeClientQt.cpp:
15479         (WebCore::ChromeClientQt::addToDirtyRegion):
15480
15481 2007-07-09  George Staikos  <staikos@kde.org>
15482
15483         Fix a minor memory leak in the loader.
15484
15485         * Api/qwebnetworkinterface.cpp:
15486         (gCleanupInterface):
15487         (QWebNetworkInterface::setDefaultInterface):
15488         (QWebNetworkInterface::defaultInterface):
15489
15490 2007-07-09  George Staikos  <staikos@kde.org>
15491
15492         Fix a massive memory leak in the loader.
15493
15494         * Api/qwebnetworkinterface.cpp:
15495         (QWebNetworkManager::httpConnectionClosed):
15496         (WebCoreHttp::~WebCoreHttp):
15497
15498 2007-07-09  George Staikos  <staikos@kde.org>
15499
15500         Reviewed by Simon.
15501
15502         Rework much of the HTTP stuff to make it more stable, and add SSL and
15503         proxy support.  Major memory leak also discovered but it needs more
15504         research as the obvious fix causes crashes.
15505
15506         * Api/qwebnetworkinterface.cpp:
15507         (QWebNetworkManager::add):
15508         (QWebNetworkManager::started):
15509         (QWebNetworkManager::data):
15510         (WebCoreHttp::WebCoreHttp):
15511         (WebCoreHttp::~WebCoreHttp):
15512         (WebCoreHttp::request):
15513         (WebCoreHttp::scheduleNextRequest):
15514         (WebCoreHttp::getConnection):
15515         (WebCoreHttp::onResponseHeaderReceived):
15516         (WebCoreHttp::onReadyRead):
15517         (WebCoreHttp::onRequestFinished):
15518         (WebCoreHttp::onDone):
15519         (WebCoreHttp::onStateChanged):
15520         (WebCoreHttp::onSslErrors):
15521         (WebCoreHttp::onAuthenticationRequired):
15522         (WebCoreHttp::onProxyAuthenticationRequired):
15523         * Api/qwebnetworkinterface.h:
15524         * Api/qwebnetworkinterface_p.h:
15525         (WebCore::WebCoreHttp::HttpConnection::HttpConnection):
15526
15527 2007-07-06  Adam Treat  <adam@staikos.net>
15528
15529         Reviewed by George Staikos.
15530
15531         Convert QWebFrame to a QFrame from a scroll area.
15532
15533         * Api/qwebframe.cpp:
15534         (QWebFramePrivate::init):
15535         (QWebFramePrivate::parentFrame):
15536         (QWebFramePrivate::horizontalScrollBar):
15537         (QWebFramePrivate::verticalScrollBar):
15538         (QWebFrame::QWebFrame):
15539         (QWebFrame::resizeEvent):
15540         (QWebFrame::suppressScrollbars):
15541         (QWebFrame::paintEvent):
15542         (QWebFrame::mouseMoveEvent):
15543         (QWebFrame::mousePressEvent):
15544         (QWebFrame::mouseDoubleClickEvent):
15545         (QWebFrame::mouseReleaseEvent):
15546         (QWebFrame::wheelEvent):
15547         (QWebFrame::keyPressEvent):
15548         (QWebFrame::focusInEvent):
15549         (QWebFrame::focusOutEvent):
15550         (QWebFrame::evaluateJavaScript):
15551         * Api/qwebframe.h:
15552         * Api/qwebframe_p.h:
15553         * Api/qwebobjectpluginconnector.cpp:
15554         (QWebObjectPluginConnector::pluginParentWidget):
15555
15556 2007-07-04  Adam Roben  <aroben@apple.com>
15557
15558         Added a stub for ChromeClientQt::setToolTip
15559
15560         Reviewed by Sam.
15561
15562         * WebCoreSupport/ChromeClientQt.cpp:
15563         (WebCore::ChromeClientQt::setToolTip):
15564         * WebCoreSupport/ChromeClientQt.h:
15565
15566 2007-07-04  Adam Roben  <aroben@apple.com>
15567
15568         Added a stub for ChromeClientQt::mouseDidMoveOverElement
15569
15570         Reviewed by Sam.
15571
15572         * WebCoreSupport/ChromeClientQt.cpp:
15573         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
15574         * WebCoreSupport/ChromeClientQt.h:
15575
15576 2007-06-28  Simon Hausmann  <hausmann@kde.org>
15577
15578         Reviewed by Zack.
15579
15580         Propagate mouse double click events from Qt to WebCore.
15581
15582         * Api/qwebframe.cpp:
15583         (QWebFrame::mouseDoubleClickEvent):
15584         * Api/qwebframe.h:
15585
15586 2007-06-28  Simon Hausmann  <hausmann@kde.org>
15587
15588         Reviewed by Zack.
15589
15590         Implemented clipboard functions in QWebPage, in particular can(Cut|Copy|Paste), cut/copy/paste as slot as well as a selectionChanged() signal.
15591
15592         * Api/qwebpage.cpp:
15593         (QWebPage::canCut):
15594         (QWebPage::canCopy):
15595         (QWebPage::canPaste):
15596         (QWebPage::cut):
15597         (QWebPage::copy):
15598         (QWebPage::paste):
15599         * Api/qwebpage.h:
15600         * WebCoreSupport/EditorClientQt.cpp:
15601
15602 2007-06-27  George Staikos  <staikos@kde.org>
15603
15604         Compile with various Qt configurations.
15605
15606         * Api/qwebnetworkinterface.cpp:
15607         (WebCoreHttp::scheduleNextRequest):
15608         * Api/qwebpage.cpp:
15609         (QWebPage::javaScriptPrompt):
15610         (QWebPage::dragEnterEvent):
15611         (QWebPage::dragLeaveEvent):
15612         (QWebPage::dragMoveEvent):
15613         (QWebPage::dropEvent):
15614         (QWebPage::chooseFile):
15615         * Api/qwebpage.h:
15616         * Api/qwebpage_p.h:
15617         * WebCoreSupport/DragClientQt.cpp:
15618         (WebCore::DragClientQt::startDrag):
15619
15620 2007-06-27  Eli Fidler  <eli@staikos.net>
15621
15622         Reviewed by George Staikos.
15623
15624         Check for QT_NO_IMAGE_TEXT and compile either way.
15625
15626         * Plugins/ICOHandler.cpp:
15627         (ICOHandler::read):
15628
15629 2007-06-27  Eli Fidler  <eli@staikos.net>
15630
15631         Reviewed by George Staikos.
15632
15633         Remove QT3_SUPPORT dependency in the ICO plugin.
15634
15635         * Plugins/ICOHandler.cpp:
15636         (IcoHeader::loadFromDIB):
15637
15638 2007-06-25  George Staikos  <staikos@kde.org>
15639
15640         Reviewed by Zack.
15641
15642         Start to add proxy and SSL support to WebKit Qt.  Proxy works
15643         unauthenticated.  Added hooks to be able to add authentication.
15644         Also fixes some network errors.
15645
15646         * Api/qwebnetworkinterface.cpp:
15647         (QWebNetworkRequestPrivate::setURL):
15648         (QWebNetworkJob::frame):
15649         (WebCoreHttp::WebCoreHttp):
15650         (WebCoreHttp::scheduleNextRequest):
15651         (WebCoreHttp::onRequestFinished):
15652         (WebCoreHttp::onDone):
15653         (WebCoreHttp::onSslErrors):
15654         (WebCoreHttp::onAuthenticationRequired):
15655         (WebCoreHttp::onProxyAuthenticationRequired):
15656         * Api/qwebnetworkinterface.h:
15657         * Api/qwebnetworkinterface_p.h:
15658         * Api/qwebpage.cpp:
15659         (QWebPage::setNetworkProxy):
15660         (QWebPage::networkProxy):
15661         * Api/qwebpage.h:
15662         * Api/qwebpage_p.h:
15663
15664 2007-06-21  Adam Treat  <adam@staikos.net>
15665
15666         Reviewed by George Staikos.
15667
15668         Implement the default resources on Qt.
15669
15670         * Api/qwebpage.cpp:
15671         (QWebPage::icon):
15672         * Api/qwebsettings.cpp:
15673         (QWebSettings::setWebGraphic):
15674         (QWebSettings::webGraphic):
15675         (loadResourcePixmap):
15676         * Api/qwebsettings.h:
15677
15678 2007-06-15  Adam Treat  <adam@staikos.net>
15679
15680         Reviewed by George Staikos.
15681
15682         Add ICO support to the Qt build.
15683
15684         * Api/qwebpage.cpp:
15685         (QWebPage::icon):
15686         * Api/qwebpage.h:
15687         * Api/qwebsettings.cpp:
15688         (QWebSettings::setIconDatabaseEnabled):
15689         (QWebSettings::iconDatabaseEnabled):
15690         * Api/qwebsettings.h:
15691         * Plugins: Added.
15692         * Plugins/ICOHandler.cpp: Added.
15693         (IcoHeader::operator >>):
15694         (IcoHeader::BMP_INFOHDR::):
15695         (IcoHeader::operator<<):
15696         (IcoHeader::LessDifference::LessDifference):
15697         (IcoHeader::LessDifference::operator ()):
15698         (IcoHeader::loadFromDIB):
15699         (ICOHandler::ICOHandler):
15700         (ICOHandler::canRead):
15701         (ICOHandler::read):
15702         (ICOHandler::write):
15703         (ICOHandler::name):
15704         (ICOPlugin::keys):
15705         (ICOPlugin::capabilities):
15706         (ICOPlugin::create):
15707         * Plugins/ICOHandler.h: Added.
15708         * Plugins/Plugins.pro: Added.
15709         * WebCoreSupport/FrameLoaderClientQt.cpp:
15710         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
15711
15712 2007-06-15  George Staikos  <staikos@kde.org>
15713
15714         Fixing the Qt build.
15715
15716         * WebCoreSupport/ContextMenuClientQt.cpp:
15717         (WebCore::ContextMenuClientQt::shouldIncludeInspectElementItem):
15718         * WebCoreSupport/ContextMenuClientQt.h:
15719
15720 2007-06-20  Adam Roben  <aroben@apple.com>
15721
15722         More speculative Qt build fixes.
15723
15724         Add a stub implementation of InspectorClientQt.
15725
15726         * WebCoreSupport/InspectorClientQt.cpp: Added.
15727         (WebCore::InspectorClientQt::inspectorDestroyed):
15728         (WebCore::InspectorClientQt::createPage):
15729         (WebCore::InspectorClientQt::showWindow):
15730         (WebCore::InspectorClientQt::closeWindow):
15731         (WebCore::InspectorClientQt::attachWindow):
15732         (WebCore::InspectorClientQt::detachWindow):
15733         (WebCore::InspectorClientQt::highlight):
15734         (WebCore::InspectorClientQt::hideHighlight):
15735         * WebCoreSupport/InspectorClientQt.h: Added.
15736
15737 2007-06-19  George Staikos  <staikos@kde.org>
15738
15739         Reviewed by Tim Hatcher.
15740
15741         Add https support.
15742
15743         * Api/qwebnetworkinterface.cpp:
15744         (QWebNetworkInterface::addJob):
15745         (QWebNetworkInterface::cancelJob):
15746         (WebCoreHttp::WebCoreHttp):
15747
15748 2007-06-14  George Staikos  <staikos@kde.org>
15749
15750         Reviewed by Lars.
15751
15752         Add evaluateJavaScript() method.
15753
15754         * Api/qwebframe.cpp:
15755         (QWebFrame::evaluateJavaScript):
15756         * Api/qwebframe.h:
15757
15758 2007-06-14  George Staikos  <staikos@kde.org>
15759
15760         Reviewed by Lars.
15761
15762         Implement most of the editing commands, better focus handling, fix some
15763         keyboard and mouse handling, and add keyboard navigation.  May be
15764         refactored later as the key switches are ugly.
15765
15766         * Api/qwebframe.cpp:
15767         (QWebFramePrivate::init):
15768         (QWebFrame::mousePressEvent):
15769         (QWebFrame::mouseReleaseEvent):
15770         (QWebFrame::wheelEvent):
15771         (QWebFrame::keyPressEvent):
15772         (QWebFrame::keyReleaseEvent):
15773         (QWebFrame::focusInEvent):
15774         (QWebFrame::focusOutEvent):
15775         (QWebFrame::focusNextPrevChild):
15776         * Api/qwebframe.h:
15777         * Api/qwebframe_p.h:
15778         * WebCoreSupport/EditorClientQt.cpp:
15779         (WebCore::EditorClientQt::handleKeypress):
15780
15781 2007-06-14  George Staikos  <staikos@kde.org>
15782
15783         Reviewed by Lars.
15784
15785         Implement all of the Javascript dialogs and file chooser.
15786         Also makes the statusbar virtual into a signal and shuffles some
15787         virtuals around a bit.  The helper in FrameLoaderClientQt may go away
15788         shortly.
15789
15790         * Api/qwebpage.cpp:
15791         (QWebPagePrivate::QWebPagePrivate):
15792         (QWebPage::javaScriptAlert):
15793         (QWebPage::javaScriptConfirm):
15794         (QWebPage::javaScriptPrompt):
15795         (QWebPage::chooseFile):
15796         * Api/qwebpage.h:
15797         * WebCoreSupport/ChromeClientQt.cpp:
15798         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
15799         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
15800         (WebCore::ChromeClientQt::runJavaScriptAlert):
15801         (WebCore::ChromeClientQt::runJavaScriptConfirm):
15802         (WebCore::ChromeClientQt::runJavaScriptPrompt):
15803         (WebCore::ChromeClientQt::setStatusbarText):
15804         * WebCoreSupport/FrameLoaderClientQt.cpp:
15805         (WebCore::FrameLoaderClientQt::chooseFile):
15806         * WebCoreSupport/FrameLoaderClientQt.h:
15807
15808 2007-06-14  Simon Hausmann  <hausmann@kde.org>
15809
15810         Reviewed by Zack.
15811
15812         Removed QWebHistoryItem::parent() as it is not implemented and WebCore's
15813
15814         HistoryItem itself doesn't seem to have a parent pointer either.
15815
15816         * Api/qwebpagehistory.h:
15817
15818 2007-06-14  Simon Hausmann  <hausmann@kde.org>
15819
15820         Reviewed by Zack.
15821
15822         Make it possible to copy QWebHistoryItem objects.
15823
15824         * Api/qwebpagehistory.cpp:
15825         * Api/qwebpagehistory.h:
15826
15827 2007-06-14  Lars Knoll <lars@trolltech.com>
15828
15829         Reviewed by George
15830
15831         Fix a crash when a request from the plugin resulted
15832         in a HTTP redirect.
15833
15834         * Api/qwebnetworkinterface.cpp:
15835         (QWebNetworkManager::started):
15836
15837 2007-06-14  Lars Knoll <lars@trolltech.com>
15838
15839         Reviewed by George.
15840
15841         Work around a bug in Qt's QHttp implementation and
15842         get web pages to load again.
15843
15844         * Api/qwebpage.cpp:
15845         (QWebPage::open):
15846
15847 2007-06-13  Simon Hausmann  <hausmann@kde.org>
15848
15849         Reviewed by Lars.
15850
15851         Added a make install target that installs the Qt port and renamed
15852         WebKitQt to QtWebKit
15853
15854         * Api/headers.pri: Added.
15855         * Api/qtwebkit.prf: Added.
15856
15857 2007-06-13  Simon Hausmann  <hausmann@kde.org>
15858
15859         Reviewed by Lars.
15860
15861         Added httpHeaderField setter/getter to QWebNetworkRequest for convenience.
15862
15863         * Api/qwebnetworkinterface.cpp:
15864         * Api/qwebnetworkinterface.h:
15865
15866 2007-06-13  Simon Hausmann  <hausmann@kde.org>
15867
15868         Reviewed by Lars.
15869
15870         Changed QWebObjectPluginConnector::requestUrl to take a QWebNetworkRequest as argument.
15871
15872         * Api/qwebnetworkinterface.h:
15873         * Api/qwebobjectpluginconnector.cpp:
15874         (QWebObjectPluginConnector::requestUrl):
15875         * Api/qwebobjectpluginconnector.h:
15876
15877 2007-06-13  Simon Hausmann  <hausmann@kde.org>
15878
15879         Reviewed by Lars.
15880
15881         Added a QWebNetworkRequest convenience constructor.
15882
15883         * Api/qwebnetworkinterface.cpp:
15884         * Api/qwebnetworkinterface.h:
15885         * Api/qwebpage.cpp:
15886         (QWebPage::open):
15887
15888 2007-06-13  Simon Hausmann  <hausmann@kde.org>
15889
15890         Reviewed by Lars.
15891
15892         Changed the QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData)
15893         overload to take a QWebNetworkRequest instead.
15894
15895         * Api/qwebpage.cpp:
15896         (QWebPage::open):
15897         * Api/qwebpage.h:
15898
15899 2007-06-13  Simon Hausmann  <hausmann@kde.org>
15900
15901         Reviewed by Lars.
15902
15903         In QWebPage::open(const QUrl &, const QHttpRequestHeader &, ...) don't make the population
15904         of the WebCore::ResourceRequest depend on the validity of the QHttpRequestHeader but just
15905         pick the individual fields if we can use them.
15906
15907         * Api/qwebpage.cpp:
15908         (QWebPage::open):
15909
15910 2007-06-13  Simon Hausmann  <hausmann@kde.org>
15911
15912         Reviewed by Lars.
15913
15914         Minor QWebNetworkRequet API fixlet
15915
15916         * Api/qwebnetworkinterface.cpp:
15917         * Api/qwebnetworkinterface.h:
15918
15919 2007-06-13  Simon Hausmann  <hausmann@kde.org>
15920
15921         Reviewed by Lars.
15922
15923         Use QWebNetworkRequest for QWebPage::navigationRequested.
15924
15925         * Api/qwebnetworkinterface.cpp:
15926         * Api/qwebnetworkinterface.h:
15927         * Api/qwebpage.cpp:
15928         (QWebPagePrivate::navigationRequested):
15929         (QWebPage::navigationRequested):
15930         * Api/qwebpage.h:
15931         * Api/qwebpage_p.h:
15932         * WebCoreSupport/FrameLoaderClientQt.cpp:
15933         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
15934
15935 2007-06-13  Simon Hausmann  <hausmann@kde.org>
15936
15937         Reviewed by Lars.
15938
15939         Some docs for QWebNetworkRequest
15940
15941         * Api/qwebnetworkinterface.cpp:
15942         (QWebNetworkRequest::QWebNetworkRequest):
15943         (QWebNetworkRequest::~QWebNetworkRequest):
15944
15945 2007-06-13  Simon Hausmann  <hausmann@kde.org>
15946
15947         Reviewed by Lars.
15948
15949         Moved QWebNetworkJob::Method enum into QWebNetworkRequest.
15950
15951         * Api/qwebnetworkinterface.h:
15952         * Api/qwebobjectpluginconnector.cpp:
15953         (QWebObjectPluginConnector::requestUrl):
15954         * Api/qwebobjectpluginconnector.h:
15955
15956 2007-06-13  Simon Hausmann  <hausmann@kde.org>
15957
15958         Reviewed by Lars.
15959
15960         Rename QWebNetworkJob::request() into QWebNetworkJob::httpHeader() and added
15961
15962         * Api/qwebnetworkinterface.cpp:
15963         (QWebNetworkJob::postData):
15964         (WebCoreHttp::WebCoreHttp):
15965         (WebCoreHttp::scheduleNextRequest):
15966         * Api/qwebnetworkinterface.h:
15967
15968 2007-06-13  Simon Hausmann  <hausmann@kde.org>
15969
15970         Reviewed by Lars.
15971
15972         Introduce QWebNetworkRequest in the public API.
15973
15974         * Api/qwebnetworkinterface.cpp:
15975         (QWebNetworkRequestPrivate::init):
15976         * Api/qwebnetworkinterface.h:
15977         * Api/qwebnetworkinterface_p.h:
15978         * WebCoreSupport/FrameLoaderClientQt.cpp:
15979         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
15980
15981 2007-06-13  Simon Hausmann  <hausmann@kde.org>
15982
15983         Reviewed by Lars.
15984
15985         Changed QWebNetworkJobPrivate to aggregate a QWebNetworkRequest instead of inheriting from it.
15986
15987         * Api/qwebnetworkinterface.cpp:
15988         (QWebNetworkManager::add):
15989         (QWebNetworkManager::started):
15990         (QWebNetworkManager::data):
15991         (QWebNetworkManager::finished):
15992         * Api/qwebnetworkinterface_p.h:
15993         * Api/qwebobjectpluginconnector.cpp:
15994         (QWebObjectPluginConnector::requestUrl):
15995
15996 2007-06-13  Simon Hausmann  <hausmann@kde.org>
15997
15998         Reviewed by Lars.
15999
16000         Rename QWebNetworkRequest::request into QWebNetworkRequest::httpHeader.
16001
16002         * Api/qwebnetworkinterface.cpp:
16003         (QWebNetworkRequest::init):
16004         (QWebNetworkRequest::setURL):
16005         (QWebNetworkManager::add):
16006         (QWebNetworkManager::started):
16007         * Api/qwebnetworkinterface_p.h:
16008         * WebCoreSupport/FrameLoaderClientQt.cpp:
16009         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
16010
16011 2007-06-12  Lars Knoll <lars@trolltech.com>
16012
16013         Reviewed by George Staikos.
16014
16015         Remove duplicate symbols.
16016
16017         * Api/qwebobjectplugin_p.h:
16018
16019 2007-06-13  Lars Knoll <lars@trolltech.com>
16020
16021         Reviewed by Niko.
16022
16023         Fix compilation, and remove dependency on Qt
16024         private header.
16025
16026         * Api/qwebobjectplugin_p.h:
16027         (QWebFactoryLoader::supportsMimeType):
16028
16029 2007-06-13  Lars Knoll <lars@trolltech.com>
16030
16031         Reviewed by Niko.
16032
16033         Parts of the patch done by Zack.
16034         Fix up some parts in the implementation of QWebNetworkInterface
16035         so it can be used by plugins.
16036         Change the plugin API so we can actually get all the information
16037         required by the JS bridge from them as well.
16038
16039         * Api/qwebnetworkinterface.cpp:
16040         (QWebNetworkJob::cancelled):
16041         (QWebNetworkManager::cancel):
16042         (QWebNetworkManager::started):
16043         (QWebNetworkManager::finished):
16044         * Api/qwebobjectplugin.cpp:
16045         (QWebFactoryLoader::QWebFactoryLoader):
16046         (QWebFactoryLoader::descriptionForName):
16047         (QWebFactoryLoader::mimetypesForName):
16048         (QWebFactoryLoader::mimeTypeForExtension):
16049         (QWebFactoryLoader::extensions):
16050         (QWebFactoryLoader::nameForMimetype):
16051         (QWebFactoryLoader::create):
16052         (QWebObjectPlugin::descriptionForKey):
16053         (QWebObjectPlugin::mimetypesForKey):
16054         * Api/qwebobjectplugin.h:
16055         * Api/qwebobjectplugin_p.h:
16056         (QWebFactoryLoader::names):
16057         * Api/qwebobjectpluginconnector.cpp:
16058         (QWebObjectPluginConnector::requestUrl):
16059         * Api/qwebpage.cpp:
16060         (QWebPage::networkInterface):
16061
16062 2007-06-11  Simon Hausmann  <hausmann@kde.org>
16063
16064         Reviewed by Lars.
16065
16066         Added a QWebPage::open overload to allow specifying the http header and post data.
16067         (it's an overload instead of a merged openUrl to avoid including qhttp.h in qwebpage.h,
16068         which would imply that one has to have QT += network in the .pro file for using WebKitQt)
16069
16070         * Api/qwebpage.cpp:
16071         * Api/qwebpage.h:
16072
16073 2007-06-11  Simon Hausmann  <hausmann@kde.org>
16074
16075         Reviewed by Lars.
16076
16077         Added the possibility to intercept url requests through QWebPage::navigationRequested.
16078
16079         * Api/qwebpage.cpp:
16080         (QWebPagePrivate::QWebPagePrivate):
16081         (QWebPage::createFrame):
16082         * Api/qwebpage.h:
16083         * Api/qwebpage_p.h:
16084         * WebCoreSupport/FrameLoaderClientQt.cpp:
16085
16086 2007-06-11  Simon Hausmann  <hausmann@kde.org>
16087
16088         Reviewed by Lars.
16089
16090         Added a QWebNetworkRequest::init overload that takes a WebCore::ResourceRequest,
16091         to be called from FrameLoaderClientQt in the near future.
16092
16093         * Api/qwebnetworkinterface.cpp:
16094         (QWebNetworkManager::add):
16095         * Api/qwebnetworkinterface_p.h:
16096
16097 2007-06-11  Simon Hausmann  <hausmann@kde.org>
16098
16099         Reviewed by Lars.
16100
16101         Moved the postData setup into QWebNetworkRequest::init.
16102
16103         * Api/qwebnetworkinterface.cpp:
16104         (QWebNetworkRequest::init):
16105         (QWebNetworkManager::add):
16106
16107 2007-06-11  Simon Hausmann  <hausmann@kde.org>
16108
16109         Reviewed by Lars.
16110
16111         Moved HTTP header field propagation to QWebNetworkRequest::init.
16112
16113         * Api/qwebnetworkinterface.cpp:
16114         (QWebNetworkRequest::init):
16115         (QWebNetworkManager::add):
16116
16117 2007-06-11  Simon Hausmann  <hausmann@kde.org>
16118
16119         Reviewed by Lars.
16120
16121         Started moving the code to separate a WebCore::ResourceRequest into a QUrl, postData
16122         and QHttpRequestHeader into a separate little QWebNetworkRequest struct.
16123
16124         * Api/qwebnetworkinterface.cpp:
16125         (QWebNetworkRequest::init):
16126         (QWebNetworkManager::add):
16127         * Api/qwebnetworkinterface_p.h:
16128         * Api/qwebobjectpluginconnector.cpp:
16129         (QWebObjectPluginConnector::requestUrl):
16130
16131 2007-06-11  Zack Rusin <zrusin@trolltech.com>
16132
16133         Reviewed by Lars
16134
16135         Forgot to export the plugin connector.
16136
16137         * Api/qwebobjectpluginconnector.h
16138
16139 2007-06-08  Lars Knoll <lars@trolltech.com>
16140
16141         Reviewed by Zack.
16142
16143         Add a QWebObjectPluginConnector class. The class will
16144         facility communication between the plugin and WebKit.
16145         Currently it's used to make the plugin network capable.
16146
16147         * Api/qwebnetworkinterface.cpp:
16148         (QWebNetworkJobPrivate::setDefaults):
16149         (QWebNetworkManager::add):
16150         (QWebNetworkManager::started):
16151         (QWebNetworkManager::data):
16152         (QWebNetworkManager::finished):
16153         * Api/qwebnetworkinterface.h:
16154         * Api/qwebnetworkinterface_p.h:
16155         (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
16156         * Api/qwebobjectplugin.cpp:
16157         (QWebFactoryLoader::create):
16158         * Api/qwebobjectplugin.h:
16159         * Api/qwebobjectplugin_p.h:
16160         * Api/qwebobjectpluginconnector.cpp: Added.
16161         (QWebObjectPluginConnector::QWebObjectPluginConnector):
16162         (QWebObjectPluginConnector::frame):
16163         (QWebObjectPluginConnector::pluginParentWidget):
16164         (QWebObjectPluginConnector::requestUrl):
16165         * Api/qwebobjectpluginconnector.h: Added.
16166         (QWebObjectPluginConnector::):
16167         * WebCoreSupport/FrameLoaderClientQt.cpp:
16168         (WebCore::FrameLoaderClientQt::createPlugin):
16169
16170 2007-06-06  Lars Knoll <lars@trolltech.com>
16171
16172         Reviewed by Zack
16173
16174         Add an API to create and load plugins.
16175         Don't include moc files by hand anymore, rather let
16176         qmake handle them.
16177
16178         * Api/qcookiejar.cpp:
16179         (QCookieJar::cookieJar):
16180         * Api/qwebframe.cpp:
16181         (QWebFrame::scrollContentsBy):
16182         * Api/qwebnetworkinterface.cpp:
16183         * Api/qwebobjectplugin.cpp: Added.
16184         (QWebFactoryLoader::QWebFactoryLoader):
16185         (QWebFactoryLoader::self):
16186         (QWebFactoryLoader::mimeTypeForExtension):
16187         (QWebFactoryLoader::create):
16188         (QWebObjectPlugin::QWebObjectPlugin):
16189         (QWebObjectPlugin::~QWebObjectPlugin):
16190         (QWebObjectPlugin::extensionsForMimetype):
16191         * Api/qwebobjectplugin.h: Added.
16192         * Api/qwebobjectplugin_p.h: Added.
16193         (QWebFactoryLoader::mimeTypes):
16194         (QWebFactoryLoader::extensions):
16195         (QWebFactoryLoader::supportsMimeType):
16196         * Api/qwebpage.cpp:
16197         (QWebPage::settings):
16198         * WebCoreSupport/FrameLoaderClientQt.cpp:
16199         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
16200         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
16201         (WebCore::FrameLoaderClientQt::objectContentType):
16202         (WebCore::FrameLoaderClientQt::createPlugin):
16203
16204 2007-05-28  Zack Rusin  <zrusin@trolltech.com>
16205
16206         Reviewed by andersca and simon
16207
16208         Adding public settings Api to the Qt port.
16209         QWebSetting's is a value based settings
16210         object settable on the QWebPage.
16211
16212         * Api/qwebpage.cpp:
16213         (QWebPagePrivate::QWebPagePrivate):
16214         (QWebPage::QWebPage):
16215         (QWebPage::setSettings):
16216         (QWebPage::settings):
16217         * Api/qwebpage.h:
16218         * Api/qwebsettings.cpp: Added.
16219         (QWebSettingsPrivate::QWebSettingsPrivate):
16220         (QWebSettings::QWebSettings):
16221         (QWebSettings::~QWebSettings):
16222         (QWebSettings::setMinimumFontSize):
16223         (QWebSettings::minimumFontSize):
16224         (QWebSettings::setMinimumLogicalFontSize):
16225         (QWebSettings::minimumLogicalFontSize):
16226         (QWebSettings::setDefaultFontSize):
16227         (QWebSettings::defaultFontSize):
16228         (QWebSettings::setDefaultFixedFontSize):
16229         (QWebSettings::defaultFixedFontSize):
16230         (QWebSettings::setUserStyleSheetLocation):
16231         (QWebSettings::userStyleSheetLocation):
16232         (QWebSettings::setGlobal):
16233         (QWebSettings::global):
16234         (QWebSettings::setFontFamily):
16235         (QWebSettings::fontFamily):
16236         (QWebSettings::setAttribute):
16237         (QWebSettings::testAttribute):
16238         * Api/qwebsettings.h: Added.
16239         * QtLauncher/main.cpp:
16240         (main):
16241 2007-05-27  Kevin Ollivier  <kevino@theolliviers.com>
16242
16243         Reviewed by Sam Weinig.
16244         
16245         Consolidate all notImplemented() macro definitions into
16246         one header file for all platforms.
16247
16248         * WebCoreSupport/ChromeClientQt.cpp:
16249         * WebCoreSupport/ContextMenuClientQt.cpp:
16250         * WebCoreSupport/EditorClientQt.cpp:
16251         * WebCoreSupport/FrameLoaderClientQt.cpp:
16252
16253 2007-05-25  George Staikos  <staikos@kde.org>
16254
16255         Reviewed by Simon.
16256
16257         The http loader should only ask for .... http cookies!
16258
16259         * Api/qwebnetworkinterface.cpp:
16260         (QWebNetworkManager::add):
16261
16262 2007-05-24  Simon Hausmann  <hausmann@kde.org>
16263
16264         Reviewed by Zack.
16265
16266         Fix multipart/form-data HTTP POSTs. The content-type wasn't set
16267         correctly. Fortunately WebCore does it already, so there's no need
16268         for us to do it since we already transfer all HTTP header fields :)
16269
16270         * Api/qwebnetworkinterface.cpp:
16271         (QWebNetworkManager::add):
16272
16273 2007-05-23  Simon Hausmann  <hausmann@kde.org>
16274
16275         Reviewed by Zack, idea from Lars.
16276
16277         Share WebCoreHttp and therefore HTTP connections among multiple
16278         QWebNetworkInterface instances by moving the code into
16279         QWebNetworkManager.
16280
16281         * Api/qwebnetworkinterface.cpp:
16282         (QWebNetworkManager::addHttpJob):
16283         (QWebNetworkManager::cancelHttpJob):
16284         (QWebNetworkManager::httpConnectionClosed):
16285         (QWebNetworkInterface::addJob):
16286         (QWebNetworkInterface::cancelJob):
16287         (WebCoreHttp::scheduleNextRequest):
16288         (WebCoreHttp::onResponseHeaderReceived):
16289         (WebCoreHttp::onReadyRead):
16290         (WebCoreHttp::onRequestFinished):
16291         (WebCoreHttp::cancel):
16292         * Api/qwebnetworkinterface.h:
16293         * Api/qwebnetworkinterface_p.h:
16294
16295 2007-05-23  Simon Hausmann  <hausmann@kde.org>
16296
16297         Reviewed by Zack, discussed also with Lars.
16298
16299         Make it possible to specify a per-QWebPage network interface (needed
16300         for the KDE KIO integration).
16301
16302         Merged the file and the network loader into
16303         QWebNetworkInterface(Private), which simplifies the loading code.
16304
16305         When receiving a redirection don't emit the data of the redirected job
16306         to the document. (otherwise the kind of "This page has moved" text
16307         appears right on top of the real page content)
16308
16309         * Api/qwebnetworkinterface.cpp:
16310         (qHash):
16311         (operator==):
16312         (QWebNetworkJob::QWebNetworkJob):
16313         (QWebNetworkJob::networkInterface):
16314         (QWebNetworkManager::add):
16315         (QWebNetworkManager::cancel):
16316         (QWebNetworkManager::data):
16317         (QWebNetworkManager::finished):
16318         (QWebNetworkInterfacePrivate::sendFileData):
16319         (QWebNetworkInterfacePrivate::parseDataUrl):
16320         (QWebNetworkInterfacePrivate::addHttpJob):
16321         (QWebNetworkInterfacePrivate::httpConnectionClosed):
16322         (QWebNetworkInterface::setDefaultInterface):
16323         (QWebNetworkInterface::QWebNetworkInterface):
16324         (QWebNetworkInterface::addJob):
16325         (QWebNetworkInterface::cancelJob):
16326         (WebCoreHttp::scheduleNextRequest):
16327         (WebCoreHttp::onResponseHeaderReceived):
16328         (WebCoreHttp::onReadyRead):
16329         (WebCoreHttp::onRequestFinished):
16330         (WebCoreHttp::cancel):
16331         * Api/qwebnetworkinterface.h:
16332         * Api/qwebnetworkinterface_p.h:
16333         * Api/qwebpage.cpp:
16334         (QWebPagePrivate::QWebPagePrivate):
16335         (QWebPage::setNetworkInterface):
16336         * Api/qwebpage.h:
16337         * Api/qwebpage_p.h:
16338
16339 2007-05-23  Lars Knoll <lars@trolltech.com>
16340
16341         Reviewed by Zack
16342
16343         Don't do HTTP downloads in a second thread. Simplifies
16344         the code significantly and fixes crashes on some
16345         Web pages.
16346
16347         * Api/qwebnetworkinterface.cpp:
16348         (QWebNetworkManager::add):
16349         (QWebNetworkInterface::QWebNetworkInterface):
16350         (QWebNetworkInterface::addJob):
16351         (QWebNetworkInterface::cancelJob):
16352         (LoaderThread::LoaderThread):
16353         (LoaderThread::run):
16354         (WebCoreHttp::cancel):
16355         (NetworkLoader::NetworkLoader):
16356         (NetworkLoader::request):
16357         (NetworkLoader::cancel):
16358         * Api/qwebnetworkinterface_p.h:
16359         * WebCoreSupport/FrameLoaderClientQt.cpp:
16360         (WebCore::FrameLoaderClientQt::committedLoad):
16361         (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
16362
16363 2007-05-23  Lars Knoll <lars@trolltech.com>
16364
16365         Reviewed by Simon.
16366
16367         * Api/qwebnetworkinterface.cpp:
16368         (QWebNetworkJobPrivate::setURL):
16369         (QWebNetworkManager::started):
16370             Fix Host: line in HTTP headers and resolving of relative URLs
16371             when redirecting.
16372         * Api/qwebnetworkinterface_p.h:
16373             Clean up qHash forward declaration a bit.
16374
16375 2007-05-23  Simon Hausmann  <hausmann@kde.org>
16376
16377         Reviewed by Zack.
16378
16379         * QtLauncher/main.cpp:
16380         (MainWindow::MainWindow): Fix loading progress signal/slot connection.
16381
16382 2007-05-22  Simon Hausmann  <hausmann@kde.org>
16383
16384         Reviewed by Lars.
16385
16386         * Api/qwebnetworkinterface.cpp:
16387         (QWebNetworkManager::add): Fix http headers for POST.
16388
16389 2007-05-21  Lars Knoll <lars@trolltech.com>
16390
16391         Reviewed by Simon
16392
16393         Remove the userHandle methods from QWebnetworkJob again.
16394         They don't really give us anything and just clutter the API.
16395
16396         * Api/qwebnetworkinterface.cpp:
16397         * Api/qwebnetworkinterface.h:
16398         * Api/qwebnetworkinterface_p.h:
16399
16400 2007-05-21  Simon Hausmann  <hausmann@kde.org>
16401
16402         Reviewed by Zack.
16403
16404         * Api/qwebnetworkinterface.h: Export the net API.
16405
16406 2007-05-21  Lars Knoll <lars@trolltech.com>
16407
16408         Reviewed by Zack.
16409
16410         Add an API layer for network downloads. Basically QWebnetworkInterface
16411         is an interface class for downloading resources. QWebnetworkJob describes
16412         the actual object to download.
16413
16414         QWebNetworkInterface has a default implementation that replaces the
16415         old ResourceHandleManager class in the Qt port.
16416
16417         * Api/qwebnetworkinterface.cpp: Added.
16418         (QWebNetworkJobPrivate::setURL):
16419         (QWebNetworkJob::QWebNetworkJob):
16420         (QWebNetworkJob::~QWebNetworkJob):
16421         (QWebNetworkJob::url):
16422         (QWebNetworkJob::postData):
16423         (QWebNetworkJob::request):
16424         (QWebNetworkJob::response):
16425         (QWebNetworkJob::setResponse):
16426         (QWebNetworkJob::cancelled):
16427         (QWebNetworkJob::ref):
16428         (QWebNetworkJob::deref):
16429         (QWebNetworkJob::setUserHandle):
16430         (QWebNetworkJob::userHandle):
16431         (QWebNetworkManager::QWebNetworkManager):
16432         (QWebNetworkManager::self):
16433         (QWebNetworkManager::add):
16434         (QWebNetworkManager::cancel):
16435         (QWebNetworkManager::started):
16436         (QWebNetworkManager::data):
16437         (QWebNetworkManager::finished):
16438         (QWebNetworkInterface::setDefaultInterface):
16439         (QWebNetworkInterface::defaultInterface):
16440         (QWebNetworkInterface::QWebNetworkInterface):
16441         (QWebNetworkInterface::~QWebNetworkInterface):
16442         (QWebNetworkInterface::addJob):
16443         (QWebNetworkInterface::cancelJob):
16444         (LoaderThread::LoaderThread):
16445         (LoaderThread::run):
16446         (FileLoader::FileLoader):
16447         (FileLoader::request):
16448         (FileLoader::sendData):
16449         (FileLoader::parseDataUrl):
16450         (WebCoreHttp::WebCoreHttp):
16451         (WebCoreHttp::~WebCoreHttp):
16452         (WebCoreHttp::request):
16453         (WebCoreHttp::scheduleNextRequest):
16454         (WebCoreHttp::getConnection):
16455         (WebCoreHttp::onResponseHeaderReceived):
16456         (WebCoreHttp::onReadyRead):
16457         (WebCoreHttp::onRequestFinished):
16458         (WebCoreHttp::onStateChanged):
16459         (WebCoreHttp::cancel):
16460         (HostInfo::HostInfo):
16461         (qHash):
16462         (operator==):
16463         (NetworkLoader::NetworkLoader):
16464         (NetworkLoader::~NetworkLoader):
16465         (NetworkLoader::request):
16466         (NetworkLoader::connectionClosed):
16467         (NetworkLoader::cancel):
16468         * Api/qwebnetworkinterface.h: Added.
16469         (QWebNetworkJob::setHandle):
16470         (QWebNetworkJob::handle):
16471         * Api/qwebnetworkinterface_p.h: Added.
16472         (WebCore::LoaderThread::):
16473         (WebCore::LoaderThread::waitForSetup):
16474         (WebCore::HostInfo::HostInfo):
16475
16476 2007-05-18  Simon Hausmann  <hausmann@kde.org>
16477
16478         Reviewed by Nikolas.
16479
16480         * Api/qwebpage.h: Changed the loadProgressChanged API to use an
16481         percent integer instead of a double precision floating pointer number.
16482         * WebCoreSupport/FrameLoaderClientQt.cpp:
16483         (WebCore::FrameLoaderClientQt::setFrame):
16484         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
16485         * WebCoreSupport/FrameLoaderClientQt.h:
16486
16487 2007-05-18  Marius Bugge Monsen  <mbm@trolltech.com>
16488
16489         Reviewed by Zack Rusin.
16490
16491         The default constructed KeyboardEvent has
16492         no PlatformKeyboardEvent.
16493
16494         * WebCoreSupport/EditorClientQt.cpp:
16495         (WebCore::EditorClientQt::handleKeypress):
16496
16497 2007-05-17  Adam Treat <adam@staikos.net>
16498
16499         Reviewed by George Staikos.
16500
16501         - Implement frameLoadCompleted
16502         - Fix build (by George)
16503
16504         * WebCoreSupport/FrameLoaderClientQt.cpp:
16505         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
16506         (WebCore::FrameLoaderClientQt::createFrame):
16507
16508 2007-05-17  Adam Treat  <adam@staikos.net>
16509
16510         Reviewed by George Staikos.
16511
16512         Implement canShowMIMEType
16513
16514         * WebCoreSupport/FrameLoaderClientQt.cpp:
16515         (WebCore::FrameLoaderClientQt::canShowMIMEType):
16516
16517 2007-05-16  Lars Knoll <lars@trolltech.com>
16518
16519         Reviewed by Zack
16520
16521         pass the mouse events to the event handler, not the frameview.
16522
16523         * Api/qwebframe.cpp:
16524         (QWebFrame::mouseMoveEvent):
16525         (QWebFrame::mouseReleaseEvent):
16526
16527 2007-05-14  Lars Knoll <lars@trolltech.com>
16528
16529         Reviewed by Zack
16530
16531         Updates after Maciej's frame change.
16532
16533         * Api/qwebpage.cpp:
16534         (QWebPage::stop):
16535               Call stopForUserCancel() instead of stopAllLoaders()
16536         * WebCoreSupport/FrameLoaderClientQt.cpp:
16537         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
16538         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
16539         (WebCore::FrameLoaderClientQt::didFinishLoad):
16540         (WebCore::FrameLoaderClientQt::setMainDocumentError):
16541         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
16542         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
16543         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
16544         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
16545               Call QWebFrame::loadDone() from the places it's supposed to be
16546               called from.
16547
16548 2007-05-12  Maciej Stachowiak  <mjs@apple.com>
16549
16550         Reviewed by Rob Buis.
16551         
16552         - call Frame::init as needed - this prevents crashes but pages don't appear.
16553
16554         * Api/qwebframe.cpp:
16555         (QWebFramePrivate::init):
16556         * WebKitPart/WebKitPart.cpp:
16557         (WebKitPart::initView):
16558
16559 2007-05-08  Steve Falkenburg  <sfalken@apple.com>
16560
16561         Reviewed by Ada.
16562         
16563         Slight modification to last editor method fix.
16564
16565         * WebCoreSupport/EditorClientQt.cpp:
16566         (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
16567         * WebCoreSupport/EditorClientQt.h:
16568
16569 2007-05-03  Steve Falkenburg  <sfalken@apple.com>
16570
16571         Reviewed by Oliver.
16572
16573         Add missing user description parameter to spelling-related editor client method.
16574
16575         * WebCoreSupport/EditorClientQt.cpp:
16576         (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
16577         * WebCoreSupport/EditorClientQt.h:
16578
16579 2007-04-29  Oliver Hunt  <oliver@apple.com>
16580
16581         Reviewed by Zack.
16582
16583         Tie QT drag events to the DragController logic
16584         to allow drag and drop events to be handled by
16585         webkit.
16586
16587         * Api/qwebframe.cpp:
16588         * Api/qwebframe.h:
16589         * Api/qwebpage.cpp:
16590         (QWebPagePrivate::QWebPagePrivate):
16591         (QWebPage::QWebPage):
16592         (dropActionToDragOp):
16593         (dragOpToDropAction):
16594         (QWebPage::dragEnterEvent):
16595         (QWebPage::dragLeaveEvent):
16596         (QWebPage::dragMoveEvent):
16597         (QWebPage::dropEvent):
16598         * Api/qwebpage.h:
16599         * WebCoreSupport/DragClientQt.cpp:
16600         (WebCore::DragClientQt::startDrag):
16601         * WebCoreSupport/DragClientQt.h:
16602         (WebCore::DragClientQt::DragClientQt):
16603
16604 2007-04-27  Holger Freyther <freyther@kde.org>
16605
16606         Reviewed by Maciej.
16607
16608         Remove unmaintained CMake build system.
16609
16610         * QtLauncher/CMakeLists.txt: Removed.
16611         * WebKitPart/CMakeLists.txt: Removed.
16612
16613 2007-04-25  Steve Falkenburg  <sfalken@apple.com>
16614
16615         Reviewed by Adam.
16616         
16617         Fix spelling error in spelling method name.
16618
16619         * WebCoreSupport/EditorClientQt.cpp:
16620         (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
16621         * WebCoreSupport/EditorClientQt.h:
16622
16623 2007-04-24  Steve Falkenburg  <sfalken@apple.com>
16624
16625         Reviewed by Oliver.
16626         
16627         Spelling and grammar stubs
16628
16629         * WebCoreSupport/EditorClientQt.cpp:
16630         (WebCore::EditorClientQt::ignoreWordInSpellDocument):
16631         (WebCore::EditorClientQt::learnWord):
16632         (WebCore::EditorClientQt::checkSpellingOfString):
16633         (WebCore::EditorClientQt::checkGrammarOfString):
16634         (WebCore::EditorClientQt::udpateSpellingUIWithGrammarString):
16635         (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord):
16636         (WebCore::EditorClientQt::showSpellingUI):
16637         (WebCore::EditorClientQt::spellingUIIsShowing):
16638         (WebCore::EditorClientQt::getGuessesForWord):
16639         * WebCoreSupport/EditorClientQt.h:
16640
16641 2007-04-11  MorganL  <morganl.webkit@yahoo.com>
16642
16643         Reviewed by Maciej.
16644
16645         Add a Frame pointer to ChromeClient methods:
16646         http://bugs.webkit.org/show_bug.cgi?id=13127
16647
16648         * WebCoreSupport/ChromeClientQt.cpp:
16649         (WebCore::ChromeClientQt::createWindow):
16650         (WebCore::ChromeClientQt::createModalDialog):
16651         * WebCoreSupport/ChromeClientQt.h:
16652
16653 2007-04-12  Mark Rowe  <mrowe@apple.com>
16654
16655         Second part of Qt build fix.
16656
16657         * WebCoreSupport/FrameLoaderClientQt.cpp:
16658         (WebCore::FrameLoaderClientQt::loadedFromCachedPage):
16659         (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage):
16660         (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage):
16661         * WebCoreSupport/FrameLoaderClientQt.h:
16662
16663 2007-03-27  Zack Rusin  <zrusin@trolltech.com>
16664
16665         Fix the rendering crashes due triggered
16666         asserts. Improve a bit the layout
16667         scheduling.
16668
16669         * Api/qwebframe.cpp:
16670         (QWebFrame::resizeEvent):
16671         (QWebFrame::paintEvent):
16672         * WebCoreSupport/FrameLoaderClientQt.cpp:
16673         (WebCore::FrameLoaderClientQt::forceLayout):
16674
16675 2007-03-16  Lars Knoll <lars@trolltech.com>
16676
16677         Fix the Qt build once again.
16678
16679         * WebCoreSupport/EditorClientQt.cpp:
16680         (WebCore::EditorClientQt::handleKeypress):
16681         * WebCoreSupport/FrameLoaderClientQt.cpp:
16682         (WebCore::FrameLoaderClientQt::blockedError):
16683         * WebCoreSupport/FrameLoaderClientQt.h:
16684
16685 2007-03-13  Lars Knoll <lars@trolltech.com>
16686
16687         Reviewed by George.
16688
16689         Don't try to load <object> tags with an invalid url.
16690         Fixes LayoutTests/fast/dom/object-plugin-hides-properties.html
16691         which hit an assertion in the frameloader.
16692
16693         * WebCoreSupport/FrameLoaderClientQt.cpp:
16694         (WebCore::FrameLoaderClientQt::objectContentType):
16695
16696 2007-03-13  Lars Knoll <lars@trolltech.com>
16697
16698         Reviewed by Anders.
16699
16700         Fix some crashes in the Qt build.
16701
16702         * Api/qwebframe.cpp:
16703         (QWebFrame::markup):
16704             Check for null pointer
16705         * WebCoreSupport/FrameLoaderClientQt.cpp:
16706         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
16707             Don't use an async callback into the FrameLoader.
16708         (WebCore::FrameLoaderClientQt::createFrame):
16709
16710 2007-03-11  Oliver Hunt  <oliver@apple.com>
16711
16712         Reviewed by Adele.
16713
16714         Stub for EditorClientQt::respondToChangedSelection
16715
16716         * WebCoreSupport/EditorClientQt.cpp:
16717         (WebCore::EditorClientQt::respondToChangedSelection):
16718         * WebCoreSupport/EditorClientQt.h:
16719
16720 2007-03-07  Adele Peterson  <adele@apple.com>
16721
16722         Reviewed by Darin Adler.
16723
16724         WebKitQT part of fix for:
16725         http://bugs.webkit.org/show_bug.cgi?id=10871
16726         http://bugs.webkit.org/show_bug.cgi?id=12677
16727         <rdar://problem/4823129> REGRESSION: IME key events different in nightly
16728         <rdar://problem/4759563> REGRESSION: Return key is always sent when you confirm a clause in kotoeri
16729
16730         * WebCoreSupport/EditorClientQt.cpp:
16731         (WebCore::EditorClientQt::handleKeypress): Changed handleKeyPress to handleKeypress.
16732         (WebCore::EditorClientQt::handleInputMethodKeypress): Added.
16733         * WebCoreSupport/EditorClientQt.h:
16734
16735 2007-03-07  Darin Adler  <darin@apple.com>
16736
16737         * WebCoreSupport/FrameLoaderClientQt.h: Oops, forgot the header.
16738
16739 2007-03-07  Darin Adler  <darin@apple.com>
16740
16741         * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::userAgent):
16742         Try to fix the build by correcting the parameter here.
16743
16744 2007-03-02  Sam Weinig  <sam@webkit.org>
16745
16746         Reviewed by Anders.
16747
16748         Try to fix the Qt build
16749
16750         * WebCoreSupport/DragClientQt.cpp:
16751         (WebCore::DragClientQt::willPerformDragDestinationAction):
16752         (WebCore::DragClientQt::dragControllerDestroyed):
16753         (WebCore::DragClientQt::createDragImageForLink):
16754
16755 2007-02-26  Maciej Stachowiak  <mjs@apple.com>
16756
16757         Reviewed by Kevin McCullough.
16758
16759         - fix Qt build for earlier SVG changes.
16760
16761         * WebCoreSupport/EditCommandQt.cpp:
16762
16763 2007-02-24  Zack Rusin  <zrusin@trolltech.com>
16764
16765         Adjust the animation a little bit to make it more natural.
16766
16767         * QtLauncher/main.cpp:
16768         (HoverLabel::paintEvent):
16769
16770 2007-02-23  Zack Rusin  <zrusin@trolltech.com>
16771
16772         Adding a little bit of eye-candy to the last
16773         commit (animations on hover events)
16774
16775         * QtLauncher/main.cpp:
16776         (HoverLabel::HoverLabel):
16777         (HoverLabel::setHoverLink):
16778         (HoverLabel::sizeForFont):
16779         (HoverLabel::sizeHint):
16780         (HoverLabel::resetAnimation):
16781         (HoverLabel::paintEvent):
16782         (HoverLabel::interpolate):
16783         (SearchEdit::resizeEvent):
16784
16785 2007-02-23  Zack Rusin  <zrusin@trolltech.com>
16786
16787         Reviewed by Lars
16788
16789         Adding API and code for notification of when the
16790         mouse is hovering over a link and adding code to
16791         the sample app to showcase it.
16792
16793         * Api/qwebframe.cpp:
16794         (QWebFrame::mouseMoveEvent):
16795         * Api/qwebframe.h:
16796         * Api/qwebframe_p.h:
16797         (QWebFramePrivate::QWebFramePrivate):
16798         * Api/qwebpage.cpp:
16799         (QWebPage::createFrame):
16800         * Api/qwebpage.h:
16801         * QtLauncher/main.cpp:
16802         (HoverLabel::HoverLabel):
16803         (HoverLabel::setHoverLink):
16804         (HoverLabel::sizeHint):
16805         (HoverLabel::updateSize):
16806         (HoverLabel::paintEvent):
16807         (ClearButton::ClearButton):
16808         (ClearButton::paintEvent):
16809         (SearchEdit::SearchEdit):
16810         (SearchEdit::resizeEvent):
16811         (SearchEdit::moveEvent):
16812         (MainWindow::MainWindow):
16813         (MainWindow::showLinkHover):
16814         (MainWindow::resizeEvent):
16815
16816 2007-02-22  Zack Rusin  <zrusin@trolltech.com>
16817
16818         Reviewed by Lars
16819
16820         Fixing the default scroll offset, cleaning
16821         up private methods and making the default
16822         look not use any frames.
16823
16824         * Api/qwebframe.cpp:
16825         (QWebFramePrivate::init):
16826         (QWebFramePrivate::_q_handleKeyEvent):
16827         (QWebFrame::QWebFrame):
16828         (QWebFrame::wheelEvent):
16829         (QWebFrame::keyPressEvent):
16830         (QWebFrame::keyReleaseEvent):
16831         * Api/qwebframe.h:
16832         * Api/qwebframe_p.h:
16833
16834 2007-02-22  Zack Rusin  <zrusin@trolltech.com>
16835
16836         Reviewed by Lars
16837
16838         Make the qwebframe act as a proper canvas.
16839         Implement it on top of QAbstractScrollArea.
16840
16841         * Api/qwebframe.cpp:
16842         (QWebFramePrivate::init):
16843         (QWebFramePrivate::_q_adjustScrollbars):
16844         (QWebFrame::init):
16845         (QWebFrame::QWebFrame):
16846         (QWebFrame::resizeEvent):
16847         (QWebFrame::childFrames):
16848         (QWebFrame::paintEvent):
16849         (QWebFrame::mouseMoveEvent):
16850         (QWebFrame::mousePressEvent):
16851         (QWebFrame::mouseReleaseEvent):
16852         (QWebFrame::wheelEvent):
16853         (QWebFrame::keyPressEvent):
16854         (QWebFrame::keyReleaseEvent):
16855         (QWebFrame::dragEnterEvent):
16856         (QWebFrame::dragLeaveEvent):
16857         (QWebFrame::dragMoveEvent):
16858         (QWebFrame::handleKeyEvent):
16859         (QWebFrame::scrollContentsBy):
16860         * Api/qwebframe.h:
16861         * Api/qwebframe_p.h:
16862         (QWebFramePrivate::QWebFramePrivate):
16863
16864 2007-02-21  George Staikos  <staikos@kde.org>
16865
16866         Reviewed by Zack.
16867
16868         Add more editing support, and undo/redo.  Requires some nasty evil
16869         hacks that have to be sorted out in WebCore/editor.
16870
16871         * Api/qwebpage.cpp:
16872         (QWebPagePrivate::QWebPagePrivate):
16873         (QWebPagePrivate::~QWebPagePrivate):
16874         (QWebPage::undoStack):
16875         * Api/qwebpage.h:
16876         * Api/qwebpage_p.h:
16877         * WebCoreSupport/EditorClientQt.cpp:
16878         (WebCore::EditorClientQt::didBeginEditing):
16879         (WebCore::EditorClientQt::didEndEditing):
16880         (WebCore::EditorClientQt::isEditable):
16881         (WebCore::EditorClientQt::registerCommandForUndo):
16882         (WebCore::EditorClientQt::registerCommandForRedo):
16883         (WebCore::EditorClientQt::clearUndoRedoOperations):
16884         (WebCore::EditorClientQt::canUndo):
16885         (WebCore::EditorClientQt::canRedo):
16886         (WebCore::EditorClientQt::undo):
16887         (WebCore::EditorClientQt::redo):
16888         (WebCore::EditorClientQt::handleKeyPress):
16889         (WebCore::EditorClientQt::EditorClientQt):
16890         (WebCore::EditorClientQt::textFieldDidBeginEditing):
16891         (WebCore::EditorClientQt::textFieldDidEndEditing):
16892         (WebCore::EditorClientQt::isEditing):
16893         * WebCoreSupport/EditorClientQt.h:
16894
16895 2007-02-21  Zack Rusin  <zrusin@trolltech.com>
16896
16897         Fix compilation.
16898
16899         * WebCoreSupport/ContextMenuClientQt.cpp:
16900         * WebCoreSupport/ContextMenuClientQt.h:
16901
16902 2007-02-21  George Staikos  <staikos@kde.org>
16903
16904         Fix compile.
16905
16906         * Api/qwebpage.cpp:
16907         (QWebPage::stop):
16908
16909 2007-02-20  Zack Rusin  <zrusin@trolltech.com>
16910
16911         Reviewed by Lars
16912
16913         Make editing of forms work plus make sure that non-void methods
16914         always return something.
16915
16916         * WebCoreSupport/ChromeClientQt.cpp:
16917         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
16918         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
16919         (WebCore::ChromeClientQt::runJavaScriptConfirm):
16920         (WebCore::ChromeClientQt::runJavaScriptPrompt):
16921         (WebCore::ChromeClientQt::shouldInterruptJavaScript):
16922         * WebCoreSupport/EditorClientQt.cpp:
16923         (WebCore::EditorClientQt::shouldDeleteRange):
16924         (WebCore::EditorClientQt::shouldBeginEditing):
16925         (WebCore::EditorClientQt::shouldEndEditing):
16926         (WebCore::EditorClientQt::shouldInsertText):
16927         (WebCore::EditorClientQt::shouldChangeSelectedRange):
16928         (WebCore::EditorClientQt::shouldApplyStyle):
16929         (WebCore::EditorClientQt::shouldInsertNode):
16930         * WebCoreSupport/FrameLoaderClientQt.cpp:
16931         (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
16932         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
16933
16934 2007-02-17  Lars Knoll <lars@trolltech.com>
16935
16936         Reviewed by Maciej.
16937
16938         Additional coding by Maciej, additional review by Oliver.
16939
16940         Add stubs for the new methods in ChormeClient and EditorClient,
16941         remove all references to FrameQt.
16942
16943         * Api/qwebframe.cpp:
16944         (QWebFrame::QWebFrame):
16945         * Api/qwebframe_p.h:
16946         * Api/qwebpage.cpp:
16947         * WebCoreSupport/ChromeClientQt.cpp:
16948         (WebCore::ChromeClientQt::shouldInterruptJavaScript):
16949         * WebCoreSupport/ChromeClientQt.h:
16950         * WebCoreSupport/EditorClientQt.cpp:
16951         (WebCore::EditorClientQt::shouldChangeSelectedRange):
16952         (WebCore::EditorClientQt::isEditable):
16953         * WebCoreSupport/EditorClientQt.h:
16954         * WebCoreSupport/FrameLoaderClientQt.cpp:
16955         (WebCore::FrameLoaderClientQt::setFrame):
16956         (WebCore::FrameLoaderClientQt::webFrame):
16957         * WebCoreSupport/FrameLoaderClientQt.h:
16958
16959 2007-02-18  Oliver Hunt  <oliver@apple.com>
16960
16961         Build fix -- adding DragClientQt method stubs
16962
16963         * WebCoreSupport/DragClientQt.cpp:
16964         (WebCore::DragClientQt::willPerformDragSourceAction):
16965         (WebCore::DragClientQt::startDrag):
16966         (WebCore::DragClientQt::createDragImageForLink):
16967         * WebCoreSupport/DragClientQt.h:
16968
16969 2007-02-15  Brady Eidson  <beidson@apple.com>
16970
16971         Reviewed by Adam
16972
16973         Moved scroll state down into the cross platform FrameLoader - 
16974         Blind attempt at keeping Qt building
16975
16976         * WebCoreSupport/FrameLoaderClientQt.cpp:
16977         (WebCore::FrameLoaderClientQt::restoreViewState):
16978         (WebCore::FrameLoaderClientQt::saveViewStateToItem):
16979         * WebCoreSupport/FrameLoaderClientQt.h:
16980
16981 2007-02-07  Anders Carlsson  <acarlsson@apple.com>
16982
16983         Try fixing the Qt build.
16984
16985         * WebCoreSupport/ChromeClientQt.cpp:
16986         (WebCore::ChromeClientQt::shouldInterruptJavaScript):
16987         * WebCoreSupport/ChromeClientQt.h:
16988
16989 2007-02-02  Zack Rusin  <zrusin@trolltech.com>
16990
16991         Compilation fix: forward declare d-ptr.
16992
16993         * Api/qcookiejar.h:
16994
16995 2007-02-02  Zack Rusin  <zrusin@trolltech.com>
16996
16997         Reviewed by Lars
16998
16999         Make the frames white by default and get the
17000         files that WebCore can handle render inside
17001         the frames.
17002
17003         * Api/qwebframe.cpp:
17004         (QWebFrame::QWebFrame):
17005         * WebCoreSupport/FrameLoaderClientQt.cpp:
17006         (WebCore::FrameLoaderClientQt::createFrame):
17007         (WebCore::FrameLoaderClientQt::objectContentType):
17008
17009 2007-02-01  George Staikos  <staikos@kde.org>
17010
17011         Reviewed by Zack and Lars.
17012
17013         Add a cookie interface for the Qt build.
17014
17015         * Api/qcookiejar.cpp: Added.
17016         (QCookieJarPrivate::QCookieJarPrivate):
17017         (qHash):
17018         (QCookieJar::QCookieJar):
17019         (QCookieJar::~QCookieJar):
17020         (QCookieJar::setCookies):
17021         (QCookieJar::cookies):
17022         (QCookieJar::isEnabled):
17023         (QCookieJar::setEnabled):
17024         (gCleanupJar):
17025         (QCookieJar::setCookieJar):
17026         (QCookieJar::cookieJar):
17027         * Api/qcookiejar.h: Added.
17028
17029 2007-02-01  Lars Knoll <lars@trolltech.com>
17030
17031         Reviewed by Adam.
17032
17033         Fix form loading for the Qt build.
17034
17035         * WebCoreSupport/FrameLoaderClientQt.cpp:
17036         (WebCore::FrameLoaderClientQt::callPolicyFunction):
17037         (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
17038         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
17039         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
17040         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
17041         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
17042
17043 2007-01-31  Zack Rusin  <zrusin@trolltech.com>
17044
17045         Expose the fact that the form has been edited
17046         in the public api.
17047
17048         * Api/qwebpage.cpp:
17049         (QWebPagePrivate::QWebPagePrivate):
17050         (QWebPage::isModified):
17051         * Api/qwebpage.h:
17052         * Api/qwebpage_p.h:
17053         * WebCoreSupport/EditorClientQt.cpp:
17054         (WebCore::EditorClientQt::respondToChangedContents):
17055         (WebCore::EditorClientQt::isEditable):
17056
17057 2007-01-31  Zack Rusin  <zrusin@trolltech.com>
17058
17059         Reviewed by Lars
17060
17061         Properly propagate key events.
17062
17063         * Api/qwebframe.cpp:
17064         (QWebFrame::addToJSWindowObject):
17065         (QWebFrame::innerText):
17066         (QWebFrame::renderTreeDump):
17067         * Api/qwebpage.cpp:
17068         (QWebPagePrivate::QWebPagePrivate):
17069         * Api/qwebpage.h:
17070         * WebCoreSupport/EditorClientQt.cpp:
17071         (WebCore::EditorClientQt::pageDestroyed):
17072         (WebCore::EditorClientQt::handleKeyPress):
17073         (WebCore::EditorClientQt::EditorClientQt):
17074         * WebCoreSupport/EditorClientQt.h:
17075
17076 2007-01-31  George Staikos  <staikos@kde.org>
17077
17078         Remove focusFrame() - misguided - and add childFrames().  Fix a crash
17079         on exit.
17080
17081         Reviewed by Zack.
17082
17083         * Api/qwebframe.cpp:
17084         (QWebFrame::resizeEvent):
17085         (QWebFrame::childFrames):
17086         * Api/qwebframe.h:
17087         * Api/qwebpage.cpp:
17088         * Api/qwebpage.h:
17089         * WebCoreSupport/FrameLoaderClientQt.cpp:
17090         (WebCore::FrameLoaderClientQt::webFrame):
17091         * WebCoreSupport/FrameLoaderClientQt.h:
17092
17093 2007-01-30  Zack Rusin  <zrusin@trolltech.com>
17094
17095         Improve QtLauncher to make it more useful as a testing tool.
17096
17097         * QtLauncher/main.cpp:
17098         (ClearButton::ClearButton):
17099         (ClearButton::paintEvent):
17100         (SearchEdit::SearchEdit):
17101         (SearchEdit::~SearchEdit):
17102         (SearchEdit::paintEvent):
17103         (SearchEdit::resizeEvent):
17104         (SearchEdit::moveEvent):
17105         (MainWindow::MainWindow):
17106         (MainWindow::changeLocation):
17107         (MainWindow::loadFinished):
17108
17109 2007-01-30  Simon Hausmann  <hausmann@kde.org>
17110
17111         Reviewed by Zack.
17112
17113         Added import/export macros needed for build with ELF visibility and
17114         for a build on Windows (in the future).
17115
17116         * Api/qwebframe.h:
17117         * Api/qwebkitglobal.h: Added.
17118         * Api/qwebpage.h:
17119         * Api/qwebpagehistory.h:
17120
17121 2007-01-30  Zack Rusin  <zack@kde.org>
17122
17123         Change the signature of handleKeyPress
17124         (make it compile)
17125
17126         * WebCoreSupport/EditorClientQt.cpp:
17127         (WebCore::EditorClientQt::handleKeyPress):
17128         * WebCoreSupport/EditorClientQt.h:
17129
17130 2007-01-29  Zack Rusin  <zack@kde.org>
17131
17132         Reviewed by Lars
17133
17134         Set the allows-scrolling property on the view.
17135
17136         * Api/qwebframe.cpp:
17137         (QWebFrame::QWebFrame):
17138
17139 2007-01-29  Oliver Hunt  <oliver@apple.com>
17140
17141         Reviewed by Adam.
17142
17143         Stub for new DragClient method
17144
17145         * WebCoreSupport/DragClientQt.cpp:
17146         (WebCore::DragClientQt::dragSourceActionMaskForPoint):
17147         * WebCoreSupport/DragClientQt.h:
17148
17149 2007-01-29  Maciej Stachowiak  <mjs@apple.com>
17150
17151         Reviewed by Mark.
17152
17153         - updated for cross-platform data loading support
17154
17155         * WebCoreSupport/FrameLoaderClientQt.cpp:
17156         (WebCore::FrameLoaderClientQt::createDocumentLoader):
17157         * WebCoreSupport/FrameLoaderClientQt.h:
17158
17159 2007-01-29  George Staikos  <staikos@kde.org>
17160
17161         Make window resizing work.
17162
17163         * Api/qwebpage.cpp:
17164         (QWebPage::setWindowGeometry):
17165         * Api/qwebpage.h:
17166         * WebCoreSupport/ChromeClientQt.cpp:
17167         (WebCore::ChromeClientQt::setWindowRect):
17168
17169 2007-01-29  George Staikos  <staikos@kde.org>
17170
17171         Make popup windows work.
17172
17173         * Api/qwebpage.cpp:
17174         (QWebPage::createWindow):
17175         * Api/qwebpage.h:
17176         * WebCoreSupport/ChromeClientQt.cpp:
17177         (WebCore::ChromeClientQt::createWindow):
17178
17179 2007-01-29  Lars Knoll <lars@trolltech.com>
17180
17181         Reviewed by Zack
17182
17183         Fix the way we handle native widgets (QWidget) inside
17184         WebCore. Now WebCore::Widget owns the QWidget in all
17185         cases. This is the only way to get well defined semantics
17186         for all teh native widgets we have (currently ScrollView
17187         and ScrollBar, but plugins will follow).
17188
17189         This has the side effect that one cannot rely on a defined 
17190         lifetime of a QWebFrame when using the API. 
17191
17192         * Api/qwebframe.cpp:
17193         (QWebFrame::~QWebFrame):
17194         * Api/qwebpage.cpp:
17195         (QWebPage::~QWebPage):
17196         * Api/qwebpage_p.h:
17197         * WebCoreSupport/FrameLoaderClientQt.cpp:
17198         (WebCore::FrameLoaderClientQt::detachedFromParent3):
17199         (WebCore::FrameLoaderClientQt::detachedFromParent4):
17200         (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
17201         * WebCoreSupport/FrameLoaderClientQt.h:
17202
17203 2007-01-29  George Staikos  <staikos@kde.org>
17204
17205         Reviewed by Zack.
17206
17207         Implement more functions
17208
17209         * Api/qwebpage.cpp:
17210         (QWebPage::javaScriptConsoleMessage):
17211         (QWebPage::statusTextChanged):
17212         (QWebPage::runJavaScriptAlert):
17213         * Api/qwebpage.h:
17214         * Api/qwebpagehistory.cpp:
17215         (QWebPageHistory::canGoBack):
17216         (QWebPageHistory::canGoForward):
17217         * Api/qwebpagehistory.h:
17218         * WebCoreSupport/ChromeClientQt.cpp:
17219         (WebCore::ChromeClientQt::addMessageToConsole):
17220         (WebCore::ChromeClientQt::runJavaScriptAlert):
17221         * WebCoreSupport/FrameLoaderClientQt.cpp:
17222         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
17223
17224 2007-01-26  George Staikos  <staikos@kde.org>
17225
17226         Reviewed by Zack.
17227
17228         Qt implementation.
17229
17230         * Api/qwebframe.cpp:
17231         (QWebFrame::QWebFrame):
17232         (QWebFrame::title):
17233         (QWebFrame::selectedText):
17234         * Api/qwebframe.h:
17235         * Api/qwebframe_p.h:
17236         * Api/qwebpage.cpp:
17237         (QWebPage::createFrame):
17238         (QWebPage::open):
17239         (QWebPage::url):
17240         (QWebPage::title):
17241         (QWebPage::focusFrame):
17242         (QWebPage::stop):
17243         * Api/qwebpage.h:
17244         * WebCoreSupport/FrameLoaderClientQt.cpp:
17245         (WebCore::FrameLoaderClientQt::setFrame):
17246         (WebCore::FrameLoaderClientQt::detachFrameLoader):
17247         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
17248         (WebCore::FrameLoaderClientQt::didChangeTitle):
17249         (WebCore::FrameLoaderClientQt::setTitle):
17250         * WebCoreSupport/FrameLoaderClientQt.h:
17251
17252 2007-01-26  Lars Knoll <lars@trolltech.com>
17253
17254         Make it compile again with Qt 4.2 and add the copyright
17255         headers where forgotten in the last submit.
17256
17257         * Api/qwebpagehistory.cpp:
17258         * Api/qwebpagehistory.h:
17259         (QExplicitlySharedDataPointer::operator*):
17260         (QExplicitlySharedDataPointer::operator->):
17261         (QExplicitlySharedDataPointer::operator T *):
17262         (QExplicitlySharedDataPointer::operator const T *):
17263         (QExplicitlySharedDataPointer::data):
17264         (QExplicitlySharedDataPointer::constData):
17265         (QExplicitlySharedDataPointer::operator==):
17266         (QExplicitlySharedDataPointer::operator!=):
17267         (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer):
17268         (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer):
17269         (QExplicitlySharedDataPointer::operator=):
17270         (QExplicitlySharedDataPointer::operator!):
17271         (::QExplicitlySharedDataPointer):
17272
17273 2007-01-26  Zack Rusin  <zrusin@trolltech.com>
17274
17275         Reviewed by Lars
17276
17277         Implement history support on platform Qt.
17278
17279         * Api/qwebpage.cpp:
17280         (QWebPage::history):
17281         (QWebPage::goBack):
17282         (QWebPage::goForward):
17283         (QWebPage::goToHistoryItem):
17284         * Api/qwebpage.h:
17285         * Api/qwebpagehistory.cpp: Added.
17286         (QWebHistoryItem::~QWebHistoryItem):
17287         (QWebHistoryItem::originalUrl):
17288         (QWebHistoryItem::currentUrl):
17289         (QWebHistoryItem::title):
17290         (QWebHistoryItem::lastVisited):
17291         (QWebHistoryItem::icon):
17292         (QWebHistoryItem::QWebHistoryItem):
17293         (QWebPageHistory::QWebPageHistory):
17294         (QWebPageHistory::itemAtIndex):
17295         (QWebPageHistory::~QWebPageHistory):
17296         (QWebPageHistory::items):
17297         (QWebPageHistory::backItems):
17298         (QWebPageHistory::forwardItems):
17299         (QWebPageHistory::goBack):
17300         (QWebPageHistory::goForward):
17301         (QWebPageHistory::goToItem):
17302         (QWebPageHistory::backItem):
17303         (QWebPageHistory::currentItem):
17304         (QWebPageHistory::forwardItem):
17305         * Api/qwebpagehistory.h: Added.
17306         * Api/qwebpagehistory_p.h: Added.
17307         (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
17308         (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
17309         (QWebPageHistoryPrivate::QWebPageHistoryPrivate):
17310         (QWebPageHistoryPrivate::~QWebPageHistoryPrivate):
17311
17312 2007-01-26  Lars Knoll <lars@trolltech.com>
17313
17314         Get rid of FrameQtClient. It's unused since we moved over
17315         to the loader.
17316
17317         * Api/qwebframe.cpp:
17318         (QWebFrame::QWebFrame):
17319
17320 2007-01-26  Zack Rusin  <zack@kde.org>
17321
17322         Reviewed by Lars
17323
17324         Correctly position child frames within the 
17325         toplevel frame. We were placed it on the widget
17326         itself instead of the vieweport.
17327
17328         * Api/qwebframe.cpp:
17329         (QWebFrame::QWebFrame):
17330
17331 2007-01-26  Lars Knoll <lars@trolltech.com>
17332
17333         Reviewed by Zack
17334
17335         Make sure we resize the HTML when resizing a 
17336         QWebFrame. Also ensure that the render tree
17337         is up to date before dumping it.
17338
17339         * Api/qwebframe.cpp:
17340         (QWebFrame::innerText):
17341         (QWebFrame::renderTreeDump):
17342         (QWebFrame::resizeEvent):
17343         * Api/qwebframe.h:
17344         * Api/qwebpage.cpp:
17345         (QWebPagePrivate::createMainFrame):
17346
17347 2007-01-26  Zack Rusin  <zack@kde.org>
17348
17349         Reviewed by Lars
17350
17351         Display pages inside a mainwindow instead
17352         of a custom qwidget.
17353
17354         * QtLauncher/main.cpp:
17355         (MainWindow::MainWindow):
17356         (main):
17357
17358 2007-01-25  Lars Knoll <lars@trolltech.com>
17359
17360         Reviewed by Zack
17361
17362         Emit the loadDone() signal from teh onload event callback
17363         again. This hangs on one or two test cases, but removes
17364         hundreds of failures elsewhere.
17365
17366         * WebCoreSupport/FrameLoaderClientQt.cpp:
17367         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
17368         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
17369
17370 2007-01-24  Lars Knoll <lars@trolltech.com>
17371
17372         Reviewed by Zack
17373
17374         Implement some bits and pieces required by the loader.
17375         Fixes quite a few crashes and hangs in the lyout tests
17376
17377         * Api/qwebframe.h:
17378         * WebCoreSupport/FrameLoaderClientQt.cpp:
17379         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
17380         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
17381         (WebCore::FrameLoaderClientQt::finishedLoading):
17382         (WebCore::FrameLoaderClientQt::setMainDocumentError):
17383         (WebCore::FrameLoaderClientQt::committedLoad):
17384         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
17385         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
17386         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
17387         (WebCore::FrameLoaderClientQt::createFrame):
17388
17389 2007-01-24  Lars Knoll <lars@trolltech.com>
17390
17391         Fix compilation again.
17392
17393         * WebCoreSupport/EditorClientQt.cpp:
17394         (WebCore::EditorClientQt::handleKeyPress):
17395         * WebCoreSupport/EditorClientQt.h:
17396
17397 2007-01-23  Lars Knoll <lars@trolltech.com>
17398
17399         Reviewed by Zack
17400
17401         Fix refcounting of FrameViews (they get created with a
17402         refcount of 1) and add a few safety checks to the 
17403         FrameLoaderClientQt.
17404
17405         * Api/qwebframe.cpp:
17406         (QWebFrame::QWebFrame):
17407         (QWebFrame::~QWebFrame):
17408         * WebCoreSupport/FrameLoaderClientQt.cpp:
17409         (WebCore::FrameLoaderClientQt::detachedFromParent3):
17410         (WebCore::FrameLoaderClientQt::detachedFromParent4):
17411         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
17412         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
17413         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
17414         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
17415         (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
17416         (WebCore::FrameLoaderClientQt::windowObjectCleared):
17417
17418 2007-01-23  Zack Rusin  <zack@kde.org>
17419
17420         Adjust the DragClientQt to latest changes.
17421
17422         * Api/qwebpage.cpp:
17423         (QWebPagePrivate::QWebPagePrivate):
17424         * WebCoreSupport/DragClientQt.cpp:
17425         (WebCore::DragClientQt::dragControllerDestroyed):
17426         * WebCoreSupport/DragClientQt.h:
17427
17428 2007-01-23  Zack Rusin  <zack@kde.org>
17429
17430         Fix the Qt build
17431
17432         * WebCoreSupport/DragClientQt.cpp:
17433         (WebCore::DragClientQt::willPerformDragDestinationAction):
17434         * WebCoreSupport/DragClientQt.h:
17435
17436 2007-01-23  Lars Knoll <lars@trolltech.com>
17437
17438         Reviewed by Maciej
17439
17440         Add support for Frames to the Qt build and fix some issues
17441         in the API classes.
17442
17443         * Api/qwebframe.cpp:
17444         (QWebFrame::QWebFrame):
17445         (QWebFrame::~QWebFrame):
17446         * Api/qwebframe.h:
17447         * Api/qwebframe_p.h:
17448         * Api/qwebpage.cpp:
17449         (QWebPagePrivate::QWebPagePrivate):
17450         (QWebPagePrivate::createMainFrame):
17451         (QWebPage::createFrame):
17452         * Api/qwebpage.h:
17453         * WebCoreSupport/FrameLoaderClientQt.cpp:
17454         (WebCore::FrameLoaderClientQt::detachedFromParent3):
17455         (WebCore::FrameLoaderClientQt::detachedFromParent4):
17456         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
17457         (WebCore::FrameLoaderClientQt::windowObjectCleared):
17458         (WebCore::FrameLoaderClientQt::createFrame):
17459         (WebCore::FrameLoaderClientQt::objectContentType):
17460         (WebCore::FrameLoaderClientQt::createPlugin):
17461         (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
17462         (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
17463         (WebCore::FrameLoaderClientQt::overrideMediaType):
17464         * WebCoreSupport/FrameLoaderClientQt.h:
17465
17466 2007-01-23  Oliver Hunt  <oliver@apple.com>
17467
17468         Reviewed by Adam.
17469
17470         Qt build stubs for Drop logic
17471
17472         * WebCoreSupport/DragClientQt.cpp: Added.
17473         (WebCore::DragClientQt::actionMaskForDrag):
17474         (WebCore::DragClientQt::willPerformDragDestinationAction):
17475         * WebCoreSupport/DragClientQt.h: Added.
17476         * WebKitPart/WebKitPart.cpp:
17477         (WebKitPart::initView):
17478
17479 2007-01-19  John Sullivan  <sullivan@apple.com>
17480
17481         Added stubs for new callbacks, to try to avoid breaking the Qt port.
17482
17483         * WebCoreSupport/FrameLoaderClientQt.cpp:
17484         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
17485         * WebCoreSupport/FrameLoaderClientQt.h:
17486
17487 2007-01-19  Anders Carlsson  <acarlsson@apple.com>
17488
17489         Try fixing the QT build.
17490         
17491         * WebCoreSupport/ChromeClientQt.cpp:
17492         (WebCore::ChromeClientQt::runJavaScriptAlert):
17493         (WebCore::ChromeClientQt::runJavaScriptConfirm):
17494         (WebCore::ChromeClientQt::runJavaScriptPrompt):
17495         (WebCore::ChromeClientQt::setStatusbarText):
17496         * WebCoreSupport/ChromeClientQt.h:
17497
17498 2007-01-18  Zack Rusin  <zack@kde.org>
17499
17500         Reviewed by Lars.
17501
17502         Implementing a little bit of load progress tracking in the Qt port.
17503
17504         * Api/qwebframe.cpp:
17505         (QWebFrame::QWebFrame):
17506         (QWebFrame::page):
17507         * Api/qwebframe.h:
17508         * Api/qwebframe_p.h:
17509         (QWebFramePrivate::QWebFramePrivate):
17510         * Api/qwebpage.h:
17511         * QtLauncher/main.cpp:
17512         (main):
17513         * WebCoreSupport/FrameLoaderClientQt.cpp:
17514         (WebCore::FrameLoaderClientQt::setFrame):
17515         (WebCore::FrameLoaderClientQt::detachFrameLoader):
17516         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
17517         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
17518         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
17519         * WebCoreSupport/FrameLoaderClientQt.h:
17520
17521 2007-01-17  Alice Liu  <alice.liu@apple.com>
17522
17523         Added these stubs to keep the Qt build from failing.
17524
17525         * WebCoreSupport/EditorClientQt.cpp:
17526         (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard):
17527         * WebCoreSupport/EditorClientQt.h:
17528
17529 2007-01-17  Lars Knoll <lars@trolltech.com>
17530
17531         Reviewed by Zack
17532
17533         Remove the inheritance from Shared<XxxClient> in the
17534         client classes.
17535
17536         Answer asynchronously to most of the Policy checking methods
17537         in FrameLoaderClientQt to avoid some crashes in the loader.
17538
17539         * WebCoreSupport/ChromeClientQt.cpp:
17540         * WebCoreSupport/ChromeClientQt.h:
17541         * WebCoreSupport/ContextMenuClientQt.cpp:
17542         * WebCoreSupport/ContextMenuClientQt.h:
17543         * WebCoreSupport/EditorClientQt.cpp:
17544         * WebCoreSupport/EditorClientQt.h:
17545         * WebCoreSupport/FrameLoaderClientQt.cpp:
17546         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
17547         (WebCore::FrameLoaderClientQt::callPolicyFunction):
17548         (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
17549         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
17550         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
17551         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
17552         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
17553         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
17554         * WebCoreSupport/FrameLoaderClientQt.h:
17555
17556 2007-01-17  Lars Knoll <lars@trolltech.com>
17557
17558         Reviewed by Zack
17559
17560         change all notImplemented() macros to use qDebug
17561         instead of fprintf(stder, ...)
17562
17563         * WebCoreSupport/ChromeClientQt.cpp:
17564         * WebCoreSupport/ContextMenuClientQt.cpp:
17565         * WebCoreSupport/EditorClientQt.cpp:
17566         * WebCoreSupport/FrameLoaderClientQt.cpp:
17567
17568 2007-01-16  Alice Liu  <alice.liu@apple.com>
17569
17570         Added these stubs to keep the Qt build from failing.
17571
17572         * WebCoreSupport/EditorClientQt.cpp:
17573         (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
17574         * WebCoreSupport/EditorClientQt.h:
17575
17576 2007-01-16  Lars Knoll <lars@trolltech.com>
17577
17578         Reviewed by Zack
17579
17580         Added the start of a public API to the Qt build
17581         of WebKit. Currently we have QWebPage and QWebFrame
17582         with a few small methods.
17583
17584         Converted the QtLauncher to use the new public API.
17585
17586         * Api/qwebframe.cpp: Added.
17587         (QWebFrame::QWebFrame):
17588         (QWebFrame::~QWebFrame):
17589         (QWebFrame::addToJSWindowObject):
17590         (QWebFrame::markup):
17591         (QWebFrame::innerText):
17592         (QWebFrame::renderTreeDump):
17593         * Api/qwebframe.h: Added.
17594         * Api/qwebframe_p.h: Added.
17595         (QWebFramePrivate::QWebFramePrivate):
17596         * Api/qwebpage.cpp: Added.
17597         (QWebPagePrivate::QWebPagePrivate):
17598         (QWebPagePrivate::~QWebPagePrivate):
17599         (QWebPagePrivate::createMainFrame):
17600         (QWebPage::QWebPage):
17601         (QWebPage::~QWebPage):
17602         (QWebPage::createFrame):
17603         (QWebPage::open):
17604         (QWebPage::mainFrame):
17605         (QWebPage::sizeHint):
17606         * Api/qwebpage.h: Added.
17607         * Api/qwebpage_p.h: Added.
17608         * QtLauncher/main.cpp:
17609         (main):
17610         * WebCoreSupport/ChromeClientQt.cpp:
17611         (WebCore::ChromeClientQt::ChromeClientQt):
17612         (WebCore::ChromeClientQt::setWindowRect):
17613         (WebCore::ChromeClientQt::windowRect):
17614         (WebCore::ChromeClientQt::pageRect):
17615         (WebCore::ChromeClientQt::focus):
17616         (WebCore::ChromeClientQt::unfocus):
17617         (WebCore::ChromeClientQt::canTakeFocus):
17618         (WebCore::ChromeClientQt::takeFocus):
17619         (WebCore::ChromeClientQt::createWindow):
17620         (WebCore::ChromeClientQt::createModalDialog):
17621         (WebCore::ChromeClientQt::show):
17622         (WebCore::ChromeClientQt::addMessageToConsole):
17623         (WebCore::ChromeClientQt::chromeDestroyed):
17624         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
17625         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
17626         (WebCore::ChromeClientQt::closeWindowSoon):
17627         * WebCoreSupport/ChromeClientQt.h:
17628         * WebCoreSupport/FrameLoaderClientQt.cpp:
17629         (WebCore::FrameLoaderClientQt::setFrame):
17630         (WebCore::FrameLoaderClientQt::detachFrameLoader):
17631         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
17632         (WebCore::FrameLoaderClientQt::partClearedInBegin):
17633         * WebCoreSupport/FrameLoaderClientQt.h:
17634
17635 2007-01-15  Anders Carlsson  <acarlsson@apple.com>
17636
17637         Fix build.
17638         
17639         * WebCoreSupport/FrameLoaderClientQt.cpp:
17640         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
17641         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
17642         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
17643         * WebCoreSupport/FrameLoaderClientQt.h:
17644
17645 2007-01-13  Lars Knoll <lars@trolltech.com>
17646
17647         Compile again after yesterdays changes.
17648
17649         * WebCoreSupport/FrameLoaderClientQt.cpp:
17650         (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
17651         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
17652         (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
17653         (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
17654         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
17655         (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
17656         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
17657         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
17658         (WebCore::FrameLoaderClientQt::incrementProgress):
17659         (WebCore::FrameLoaderClientQt::completeProgress):
17660         * WebCoreSupport/FrameLoaderClientQt.h:
17661
17662 2007-01-11  Brady Eidson  <beidson@apple.com>
17663
17664         Keep the fancy new FrameLoaderClientQt building with a small api change in WebCore
17665         Yay for the loader on QT!
17666
17667         * WebCoreSupport/FrameLoaderClientQt.cpp:
17668         (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
17669         (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
17670         * WebCoreSupport/FrameLoaderClientQt.h:
17671
17672 2007-01-11  Lars Knoll <lars@trolltech.com>
17673
17674         Reviewed by Darin
17675
17676         Start using the loader in the Qt port.
17677
17678         * QtLauncher/main.cpp:
17679         (main):
17680         * WebCoreSupport/FrameLoaderClientQt.cpp:
17681         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
17682         (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
17683         (WebCore::FrameLoaderClientQt::setFrame):
17684         (WebCore::FrameLoaderClientQt::detachFrameLoader):
17685         (WebCore::FrameLoaderClientQt::makeDocumentView):
17686         (WebCore::FrameLoaderClientQt::makeRepresentation):
17687         (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
17688         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
17689         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
17690         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
17691         (WebCore::FrameLoaderClientQt::progressStarted):
17692         (WebCore::FrameLoaderClientQt::progressCompleted):
17693         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
17694         (WebCore::FrameLoaderClientQt::clearArchivedResources):
17695         (WebCore::FrameLoaderClientQt::canShowMIMEType):
17696         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
17697         (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
17698         (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
17699         (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
17700         (WebCore::FrameLoaderClientQt::canHandleRequest):
17701         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
17702         (WebCore::FrameLoaderClientQt::canCachePage):
17703         (WebCore::FrameLoaderClientQt::committedLoad):
17704         (WebCore::FrameLoaderClientQt::cancelledError):
17705         (WebCore::FrameLoaderClientQt::cannotShowURLError):
17706         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
17707         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
17708         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
17709         (WebCore::FrameLoaderClientQt::shouldFallBack):
17710         (WebCore::FrameLoaderClientQt::createDocumentLoader):
17711         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
17712         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
17713         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
17714         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
17715         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
17716         (WebCore::FrameLoaderClientQt::willUseArchive):
17717         * WebCoreSupport/FrameLoaderClientQt.h:
17718
17719 2007-01-11  George Staikos  <staikos@kde.org>
17720
17721         Fix Qt Build.
17722
17723         * WebCoreSupport/ContextMenuClientQt.cpp:
17724         (WebCore::ContextMenuClientQt::searchWithGoogle):
17725         * WebCoreSupport/ContextMenuClientQt.h:
17726
17727 2007-01-06  George Staikos  <staikos@kde.org>
17728
17729         Reviewed by Brady.
17730
17731         Make it link.
17732
17733         * WebCoreSupport/FrameLoaderClientQt.cpp:
17734         (WebCore::FrameLoaderClientQt::setMainDocumentError):
17735         (WebCore::FrameLoaderClientQt::committedLoad):
17736         (WebCore::FrameLoaderClientQt::cancelledError):
17737         (WebCore::FrameLoaderClientQt::cannotShowURLError):
17738         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
17739         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
17740         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
17741         (WebCore::FrameLoaderClientQt::shouldFallBack):
17742         (WebCore::FrameLoaderClientQt::createDocumentLoader):
17743         (WebCore::FrameLoaderClientQt::download):
17744         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
17745         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
17746         (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
17747         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
17748         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
17749         (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
17750         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
17751         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
17752         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
17753         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
17754         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
17755         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
17756         (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
17757         (WebCore::FrameLoaderClientQt::incrementProgress):
17758         (WebCore::FrameLoaderClientQt::completeProgress):
17759         (WebCore::FrameLoaderClientQt::startDownload):
17760         (WebCore::FrameLoaderClientQt::willUseArchive):
17761         * WebCoreSupport/FrameLoaderClientQt.h:
17762
17763 2007-01-05  Lars Knoll <lars@trolltech.com>
17764
17765         Make the Qt build compile again
17766
17767         * WebCoreSupport/ChromeClientQt.cpp:
17768         (WebCore::ChromeClientQt::canTakeFocus):
17769         (WebCore::ChromeClientQt::takeFocus):
17770         * WebCoreSupport/ChromeClientQt.h:
17771         * WebCoreSupport/ContextMenuClientQt.cpp:
17772         (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
17773         * WebCoreSupport/ContextMenuClientQt.h:
17774
17775 2007-01-03  Lars Knoll <lars@trolltech.com>
17776
17777         Fix the Qt build
17778
17779         * WebCoreSupport/FrameLoaderClientQt.cpp:
17780         (WebCore::FrameLoaderClientQt::setDocumentViewFromPageCache):
17781         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
17782         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload):
17783         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
17784         (WebCore::FrameLoaderClientQt::saveScrollPositionAndViewStateToItem):
17785         (WebCore::FrameLoaderClientQt::saveDocumentViewToPageCache):
17786         (WebCore::FrameLoaderClientQt::canCachePage):
17787         * WebCoreSupport/FrameLoaderClientQt.h:
17788
17789 2006-12-29  George Staikos  <staikos@kde.org>
17790
17791         Add missing notimplemented.
17792
17793         * WebCoreSupport/FrameLoaderClientQt.cpp:
17794         (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
17795         (WebCore::FrameLoaderClientQt::canHandleRequest):
17796         (WebCore::FrameLoaderClientQt::partClearedInBegin):
17797
17798 2006-12-21  Lars Knoll <lars@trolltech.com>
17799
17800         Reviewed by Zack
17801
17802         * WebCoreSupport/FrameLoaderClientQt.cpp:
17803         (WebCore::FrameLoaderClientQt::hasWebView):
17804         (WebCore::FrameLoaderClientQt::hasFrameView):
17805         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
17806         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
17807         (WebCore::FrameLoaderClientQt::setTitle):
17808         (WebCore::FrameLoaderClientQt::partClearedInBegin):
17809         * WebCoreSupport/FrameLoaderClientQt.h:
17810                  Remove some runtimw warnings
17811                  Add partClearedInBegin forwarding call, so
17812                  I can catch this in the layout tests.
17813
17814 2006-12-19  Lars Knoll <lars@trolltech.com>
17815
17816         Reviewed by Rob.
17817
17818         * WebCoreSupport/ChromeClientQt.cpp:
17819         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
17820         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
17821         (WebCore::ChromeClientQt::closeWindowSoon):
17822         * WebCoreSupport/ChromeClientQt.h:
17823                 Make it compile.
17824
17825 2006-12-16  Zack Rusin  <zack@kde.org>
17826
17827         Adjust the client to the most recent interface.
17828
17829         * WebCoreSupport/ContextMenuClientQt.cpp:
17830         (WebCore::ContextMenuClientQt::contextMenuDestroyed):
17831         (WebCore::ContextMenuClientQt::addCustomContextMenuItems):
17832         (WebCore::ContextMenuClientQt::contextMenuItemSelected):
17833         (WebCore::ContextMenuClientQt::downloadURL):
17834         (WebCore::ContextMenuClientQt::copyImageToClipboard):
17835         (WebCore::ContextMenuClientQt::lookUpInDictionary):
17836         * WebCoreSupport/ContextMenuClientQt.h:
17837
17838 2006-12-14  Simon Hausmann  <hausmann@kde.org>
17839
17840         Reviewed by Zack.
17841
17842         * QtLauncher/QtLauncher.pro: Link this little test program
17843         with rpath, for convenience. (This is never going to get installed
17844         anyway)
17845
17846 2006-12-12  George Staikos  <staikos@kde.org>
17847
17848         Reviewed by Alexey.
17849
17850         Fix the Qt build again.
17851
17852         * WebCoreSupport/ContextMenuClientQt.cpp:
17853         (WebCore::ContextMenuClientQt::speak):
17854         (WebCore::ContextMenuClientQt::stopSpeaking):
17855         * WebCoreSupport/ContextMenuClientQt.h:
17856         * WebCoreSupport/EditorClientQt.cpp:
17857         (WebCore::EditorClientQt::toggleContinuousSpellChecking):
17858         (WebCore::EditorClientQt::toggleGrammarChecking):
17859         * WebCoreSupport/EditorClientQt.h:
17860
17861 2006-12-10  George Staikos  <staikos@kde.org>
17862
17863         Reviewed by Zack.
17864
17865         Add a default user agent for now.
17866
17867         * WebCoreSupport/FrameLoaderClientQt.cpp:
17868         (WebCore::FrameLoaderClientQt::userAgent):
17869
17870 2006-12-10  Lars Knoll <lars@trolltech.com>
17871
17872         Reviewed by Zack
17873
17874         Comment out a notImplemented() warning
17875
17876         * WebCoreSupport/EditorClientQt.cpp:
17877         (WebCore::EditorClientQt::clearUndoRedoOperations):
17878
17879 2006-12-10  Zack Rusin  <zack@kde.org>
17880
17881         Print out the method name if it's unimplemented.
17882
17883         * WebCoreSupport/FrameLoaderClientQt.cpp:
17884
17885 2006-12-10  Zack Rusin  <zack@kde.org>
17886
17887         Moving the clients from platform to their final location.
17888
17889         * WebCoreSupport/FrameLoaderClientQt.cpp: Added.
17890         * WebCoreSupport/FrameLoaderClientQt.h: Added.
17891         * WebCoreSupport/ChromeClientQt.cpp: Added.
17892         * WebCoreSupport/ChromeClientQt.h: Added.
17893         * WebCoreSupport/ContextMenuClientQt.cpp: Added.
17894         * WebCoreSupport/ContextMenuClientQt.h: Added.
17895         * WebCoreSupport/EditorClientQt.cpp: Added.
17896         * WebCoreSupport/EditorClientQt.h: Added.
17897
17898 2006-12-10  Zack Rusin  <zack@kde.org>
17899
17900         Adjusting to the changes in platform/qt.
17901
17902         * QtLauncher/main.cpp:
17903         (main):
17904
17905 2006-12-09  Lars Knoll <lars@trolltech.com>
17906
17907         Reviewed by Zack
17908
17909         Make it possible to build WebKit with qmake.
17910
17911         * QtLauncher/QtLauncher.pro: Added.
17912         * QtLauncher/main.cpp:
17913
17914 2006-12-08  Zack Rusin  <zack@kde.org>
17915
17916         Reviewed by Maciej.
17917
17918         Fix the build after the recent changes.
17919
17920         * QtLauncher/main.cpp:
17921         (main):
17922         * WebKitPart/WebKitPart.cpp:
17923         (WebKitPart::initView):
17924
17925 2006-11-19  Simon Hausmann  <hausmann@kde.org>
17926
17927         Reviewed by Zack.
17928
17929         http://bugs.webkit.org/show_bug.cgi?id=11649
17930         Fix Qt-only build
17931
17932         * QtLauncher/CMakeLists.txt:
17933
17934 2006-11-17  Zack Rusin  <zack@kde.org>
17935
17936         Reviewed by Mitz. Landed by Niko.
17937
17938         Adjusting to the new api.
17939
17940         * QtLauncher/main.cpp:
17941         (main):
17942         * WebKitPart/WebKitPart.cpp:
17943         (WebKitPart::initView):
17944
17945 2006-11-10  Zack Rusin  <zack@kde.org>
17946
17947         Reviewed and landed by Anders.
17948
17949         Adjusting to the recent loader changes, making it compile
17950         and work.
17951
17952         * QtLauncher/main.cpp:
17953         (main):
17954         * WebKitPart/WebKitPart.cpp:
17955         (WebKitPart::closeUrl):
17956         (WebKitPart::initView):
17957
17958 2006-11-03  Zack Rusin  <zack@kde.org>
17959
17960         Reviewed by Maciej.
17961
17962         Fixing compile on both Qt and KDE platforms.
17963
17964         * QtLauncher/main.cpp:
17965         (main): url has already been defined
17966         * WebKitPart/WebKitPartBrowserExtension.cpp: removing
17967         duplicate implementation of this class
17968
17969 2006-10-31  Simon Hausmann  <hausmann@kde.org>
17970
17971         Reviewed by Maciej, landed by Anders.
17972
17973         * QtLauncher/CMakeLists.txt: Make linkage against kde libraries
17974           optional
17975         * QtLauncher/main.cpp: Make it compile without KDE.
17976         (main):
17977
17978 2006-11-02  Simon Hausmann  <hausmann@kde.org>
17979
17980         Reviewed by Maciej, landed by Anders.
17981
17982         * QtLauncher/main.cpp:
17983         (main): Declare our frame as main frame to the Page object.
17984         Fixes crashes on various web sites
17985
17986 2006-10-31  Zack Rusin  <zack@kde.org>
17987
17988         Reviewed by Mitz.
17989
17990         Fix the Qt build after last nights changes.
17991
17992         * QtLauncher/CMakeLists.txt:
17993         * WebKitPart/CMakeLists.txt:
17994
17995 2006-10-26  Nikolas Zimmermann  <zimmermann@kde.org>
17996
17997         Reviewed by Darin Adler.
17998
17999         Fix Qt/Linux build.
18000
18001         * QtLauncher/main.cpp:
18002         (main):
18003         * WebKitPart/WebKitPart.cpp:
18004         (WebKitPart::openUrl):
18005
18006 2006-10-24  Nikolas Zimmermann  <zimmermann@kde.org>
18007
18008         Reviewed by Maciej.
18009
18010         Fix Qt/Linux build.
18011
18012         - Remove BrowserExtensionQt, move it's methods to Page/FrameQt.
18013         - Fix CMakeLists.txt to include platform/network.
18014
18015         * QtLauncher/CMakeLists.txt:
18016         * WebKitPart/CMakeLists.txt:
18017
18018 2006-10-24  Simon Hausmann  <hausmann@kde.org>
18019
18020         Reviewed by Darin Adler.
18021
18022         * QtLauncher/CMakeLists.txt, WebKitPart/CMakeLists.txt: Added project name to
18023           kde4_automoc macro, as required by the latest KDE4 cmake module.
18024
18025 2006-10-20  Nikolas Zimmermann  <zimmermann@kde.org>
18026
18027         Reviewed and landed by Anders.
18028
18029         Adapt to FrameQtClient changes, and provide some kind of status
18030         information to the KPart wheter we're loading or not (started/completed signaling).
18031
18032         * WebKitPart/CMakeLists.txt:
18033         * WebKitPart/WebKitPart.cpp:
18034         (WebKitPart::WebKitPart):
18035         (WebKitPart::~WebKitPart):
18036         (WebKitPart::openUrl):
18037         (WebKitPart::initView):
18038         * WebKitPart/WebKitPart.h:
18039         * WebKitPart/WebKitPartBrowserExtension.cpp: Added.
18040         (WebKitPartBrowserExtension::WebKitPartBrowserExtension):
18041         (WebKitPartBrowserExtension::~WebKitPartBrowserExtension):
18042         * WebKitPart/WebKitPartBrowserExtension.h: Added.
18043         * WebKitPart/WebKitPartClient.cpp:
18044         (WebKitPartClient::WebKitPartClient):
18045         (WebKitPartClient::loadFinished):
18046         * WebKitPart/WebKitPartClient.h:
18047         * WebKitPart/WebKitPartInterface.h:
18048
18049 2006-10-02  Nikolas Zimmermann  <zimmermann@kde.org>
18050
18051         Reviewed by eseidel.  Landed by eseidel.
18052
18053         Fix last remaining issue Qt/Linux build with gcc3.
18054
18055         * WebKitPart/WebKitPart.h: Remove Q_PROPERTY usage, which is not needed and made problems.
18056
18057 2006-09-10  Nikolas Zimmermann  <zimmermann@kde.org>
18058
18059         Reviewed and landed by ap.
18060
18061         Fix QtLauncher - it is supposed to create a FrameView on its own nowadays.
18062
18063         * QtLauncher/main.cpp:
18064         (main):
18065
18066 2006-09-04  Nikolas Zimmermann  <zimmermann@kde.org>
18067
18068         Reviewed by Tim H.
18069
18070         Fixes last part of: http://bugs.webkit.org/show_bug.cgi?id=10644
18071         Move QtLauncher down to WebKitQt.
18072
18073         * QtLauncher/CMakeLists.txt: Added.
18074         * QtLauncher/main.cpp: Added.
18075         (main):
18076
18077 2006-09-04  Nikolas Zimmermann  <zimmermann@kde.org>
18078
18079         Reviewed by Darin Adler. Final polish by Sam.
18080
18081         Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10644
18082         Add WebKitPart, an embeddable KPart for the KDE platform.
18083
18084         * WebKitPart/CMakeLists.txt: Added.
18085         * WebKitPart/WebKitFactory.cpp: Added.
18086         (WebKitFactory::WebKitFactory):
18087         (WebKitFactory::~WebKitFactory):
18088         (WebKitFactory::createPartObject):
18089         (WebKitFactory::instance):
18090         (WebKitFactory::ref):
18091         (WebKitFactory::deref):
18092         (init_libWebKitPart):
18093         * WebKitPart/WebKitFactory.h: Added.
18094         * WebKitPart/WebKitPart.cpp: Added.
18095         (WebKitPart::WebKitPart):
18096         (WebKitPart::~WebKitPart):
18097         (WebKitPart::openFile):
18098         (WebKitPart::openUrl):
18099         (WebKitPart::closeUrl):
18100         (WebKitPart::parentPart):
18101         (WebKitPart::frame):
18102         (WebKitPart::initView):
18103         * WebKitPart/WebKitPart.desktop: Added.
18104         * WebKitPart/WebKitPart.h: Added.
18105         (WebKitPart::):
18106         * WebKitPart/WebKitPart.rc: Added.
18107         * WebKitPart/WebKitPartBrowser.rc: Added.
18108         * WebKitPart/WebKitPartClient.cpp: Added.
18109         (WebKitPartClient::WebKitPartClient):
18110         (WebKitPartClient::~WebKitPartClient):
18111         * WebKitPart/WebKitPartClient.h: Added.
18112         * WebKitPart/WebKitPartInterface.cpp: Added.
18113         (WebKitPartInterface::WebKitPartInterface):
18114         (WebKitPartInterface::~WebKitPartInterface):
18115         (WebKitPartInterface::url):
18116         (WebKitPartInterface::closeURL):
18117         * WebKitPart/WebKitPartInterface.h: Added.
18118         * WebKitPart/org.kde.WebKitPart.xml: Added.
18119