Build fix for Qt 4.3.
[WebKit-https.git] / WebKit / qt / ChangeLog
1 2007-11-08  Simon Hausmann  <hausmann@kde.org>
2
3         Reviewed by nobody (well, Holger knows about it), build fix for Qt 4.3.
4
5         The buildbots use Qt 4.4 which has the function in question, but Qt
6         4.3 doesn't have it. Use removeAll() as replacement instead, it
7         shouldn't make a difference in performance.
8
9         * Api/qwebsettings.cpp:
10         (QWebSettings::~QWebSettings):
11
12 2007-11-08  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
13
14         Reviewed by Lars Knoll <lars@trolltech.com>.
15
16         Cleanup checking for the request method.
17         
18         * Check the request method only in QWebNetworkManager::add.
19         * Currently HEAD, GET, POST are allowed and for everything else
20         QWebNetworkManager::add returns false.
21         * Returning false is compatible with ResourceHandle::start and it
22         can be used in ResourceHandle::loadResourceSynchronously to generate
23         a ResourceError
24         
25
26         * Api/qwebnetworkinterface.cpp:
27         (QWebNetworkManager::add):
28
29 2007-11-08  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
30
31         Reviewed by Lars Knoll <lars@trolltech.com>.
32
33         Fix bug in the implementation of synchronous network jobs.
34         
35         * George (pmax) reviewed the networking patches and found the following bug (thanks for reviewing)
36         -    if (jobMode == AsynchronousJob) {
37         +    if (jobMode == SynchronousJob) {
38         add job to synchronous list/hash
39         
40         * Just applying the above change will lead to crashes because we can finish
41         jobs before we started them.
42         
43         * Avoid these issues by saving all work (starting a job, sending data and
44         finishing it) inside one list. JobWork will contain any
45         of the above three work types and doWork will just work on this list
46         (m_pendingWork). As foreach takes a copy of the list calling started, data
47         and finished will not add new work and we gurantee that if we have JobStarted
48         it will be in the list before JobData and JobFinished.
49         
50         * Observation: We might just kill the code to handle sync jobs.
51         
52
53         * Api/qwebnetworkinterface.cpp:
54         (QWebNetworkManager::add):
55         (QWebNetworkManager::queueStart):
56         (QWebNetworkManager::queueData):
57         (QWebNetworkManager::queueFinished):
58         (QWebNetworkManager::doWork):
59         * Api/qwebnetworkinterface_p.h:
60         (QWebNetworkManager::JobWork::):
61         (QWebNetworkManager::JobWork::JobWork):
62
63 2007-11-07  Simon Hausmann  <hausmann@kde.org>
64
65         Build fix, reviewed by nobody.
66
67         Fix the Qt build by setting up WindowFeatures before calling
68         createWindow on the Chrome. This is similar to openNewWindow in
69         page/ContextMenuController.cpp
70
71         * Api/qwebpage.cpp:
72         (openNewWindow):
73
74 2007-11-07  Simon Hausmann  <hausmann@kde.org>
75
76         Reviewed by Lars.
77
78         Make the setting of letting Javascript access the clipboard configurable through QWebSettings, turn it off by default and turn it on in DumpRenderTree.
79
80         * Api/qwebpage.cpp:
81         (QWebPagePrivate::QWebPagePrivate):
82         * Api/qwebsettings.cpp:
83         (QWebSettingsPrivate::apply):
84         * Api/qwebsettings.h:
85
86 2007-11-07  Simon Hausmann  <hausmann@kde.org>
87
88         Reviewed by Lars.
89
90         Changed QWebPageHistory::goToItem to take a value instead of a pointer.
91
92         * Api/qwebpagehistory.cpp:
93         * Api/qwebpagehistory.h:
94
95 2007-11-07  Simon Hausmann  <hausmann@kde.org>
96
97         Reviewed by Lars.
98
99         Removed unimplemented QWebHistoryItem::children() function
100
101         * Api/qwebpagehistory.h:
102
103 2007-11-07  Simon Hausmann  <hausmann@kde.org>
104
105         Reviewed by Lars.
106
107         Changed the getter functions in QWebSettings to transparently resolve against the default settings.
108
109         * Api/qwebsettings.cpp:
110         (QWebSettings::fontSize):
111         (QWebSettings::fontFamily):
112         (QWebSettings::testAttribute):
113
114 2007-11-07  Simon Hausmann  <hausmann@kde.org>
115
116         Reviewed by Lars.
117
118         Added explicit functions for resetting the font sizes and font families.
119
120         * Api/qwebsettings.cpp:
121         (QWebSettings::resetFontSize):
122         (QWebSettings::resetFontFamily):
123         * Api/qwebsettings.h:
124
125 2007-11-07  Simon Hausmann  <hausmann@kde.org>
126
127         Reviewed by Lars.
128
129         Combined the font sizes accessors/setters under one setter/getter with an enum.
130
131         * Api/qwebsettings.cpp:
132         (QWebSettingsPrivate::QWebSettingsPrivate):
133         (QWebSettingsPrivate::apply):
134         (QWebSettings::QWebSettings):
135         (QWebSettings::setFontSize):
136         * Api/qwebsettings.h:
137
138 2007-11-07  Simon Hausmann  <hausmann@kde.org>
139
140         Reviewed by Lars.
141
142         Renamed QWebPage::userAgentStringForUrl(url) to QWebPage::userAgentFor(url);
143
144         * Api/qwebpage.cpp:
145         * Api/qwebpage.h:
146         * WebCoreSupport/FrameLoaderClientQt.cpp:
147         (WebCore::FrameLoaderClientQt::userAgent):
148
149 2007-11-07  Simon Hausmann  <hausmann@kde.org>
150
151         Reviewed by Lars.
152
153         Renamed QWebPage::webActionTriggered to QWebPage::triggerAction
154
155         * Api/qwebpage.cpp:
156         (QWebPagePrivate::_q_webActionTriggered):
157         (QWebPage::keyPressEvent):
158         * Api/qwebpage.h:
159
160 2007-11-07  Simon Hausmann  <hausmann@kde.org>
161
162         Reviewed by Lars.
163
164         Changed the virtual QWebPage::setWindowGeometry to be a geometryChangeRequest signal instead.
165
166         * Api/qwebpage.cpp:
167         * Api/qwebpage.h:
168         * WebCoreSupport/ChromeClientQt.cpp:
169         (WebCore::ChromeClientQt::setWindowRect):
170
171 2007-11-07  Simon Hausmann  <hausmann@kde.org>
172
173         Reviewed by Lars.
174
175         Renamed QWebPage::webAction() to QWebPage::action()
176
177         * Api/qwebpage.cpp:
178         (QWebPagePrivate::createContextMenu):
179         * Api/qwebpage.h:
180         * QtLauncher/main.cpp:
181         (MainWindow::MainWindow):
182
183 2007-11-07  Simon Hausmann  <hausmann@kde.org>
184
185         Reviewed by Lars.
186
187         Removed a bunch of slots/functions that are now available through the new actions API.
188
189         * Api/qwebpage.cpp:
190         * Api/qwebpage.h:
191
192 2007-11-07  Simon Hausmann  <hausmann@kde.org>
193
194         Reviewed by Lars.
195
196         Added some more comments to the API after another round of API review with Lars.
197
198         * Api/qwebpage.h:
199
200 2007-11-07  Simon Hausmann  <hausmann@kde.org>
201
202         Reviewed by Lars.
203
204         Moved QWebFrame::selectedText() to QWebPage::selectedText().
205         
206         The currently selected text is a property of the page as a whole.
207
208         * Api/qwebframe.cpp:
209         * Api/qwebframe.h:
210         * Api/qwebpage.cpp:
211         (QWebPage::selectedText):
212         * Api/qwebpage.h:
213
214 2007-11-07  Simon Hausmann  <hausmann@kde.org>
215
216         Reviewed by Lars.
217
218         Implemented support for settings propagation.
219         
220         If an individual setting is not set in a page's QWebSettings then it is inherited from the default settings.
221
222         * Api/qwebsettings.cpp:
223         (QWebSettingsPrivate::QWebSettingsPrivate):
224         (QWebSettingsPrivate::apply):
225         (QWebSettings::QWebSettings):
226         (QWebSettings::~QWebSettings):
227         (QWebSettings::setFontFamily):
228         * Api/qwebsettings.h:
229
230 2007-11-07  Simon Hausmann  <hausmann@kde.org>
231
232         Reviewed by Lars.
233
234         Reworked the QWebSettings API.
235         QWebPage now returns a pointer to its mutable QWebSettings object and the settings of newly created QWebPageObjects are initialized from QWebSettings::defaultSettings().
236
237         * Api/qwebpage.cpp:
238         (QWebPagePrivate::QWebPagePrivate):
239         (QWebPagePrivate::~QWebPagePrivate):
240         (QWebPage::QWebPage):
241         * Api/qwebpage.h:
242         * Api/qwebpage_p.h:
243         * Api/qwebsettings.cpp:
244         (QWebSettingsPrivate::QWebSettingsPrivate):
245         (QWebSettingsPrivate::apply):
246         (QWebSettings::defaultSettings):
247         (QWebSettings::QWebSettings):
248         (QWebSettings::setMinimumFontSize):
249         (QWebSettings::setMinimumLogicalFontSize):
250         (QWebSettings::setDefaultFontSize):
251         (QWebSettings::setDefaultFixedFontSize):
252         (QWebSettings::setUserStyleSheetLocation):
253         (QWebSettings::setFontFamily):
254         (QWebSettings::fontFamily):
255         (QWebSettings::setAttribute):
256         * Api/qwebsettings.h:
257         * QtLauncher/main.cpp:
258         (main):
259
260 2007-11-07  Simon Hausmann  <hausmann@kde.org>
261
262         Reviewed by Lars.
263
264         Made the QWebSettings::webGraphic functions static. The implementation was using QWebSettings::global() anyway.
265
266         * Api/qwebsettings.cpp:
267         (QWebSettings::setWebGraphic):
268         * Api/qwebsettings.h:
269
270 2007-11-07  Simon Hausmann  <hausmann@kde.org>
271
272         Reviewed by Lars.
273
274         Moved the WebCore::Image specific function loadResourcePixmap from qwebsettings.cpp to ImageQt.cpp and made it static.
275
276         * Api/qwebsettings.cpp:
277
278 2007-11-07  Simon Hausmann  <hausmann@kde.org>
279
280         Reviewed by Lars.
281
282         Changed the icondatabase accessor to be a static function because it doesn't change the QWebSettings object.
283
284         * Api/qwebsettings.cpp:
285         * Api/qwebsettings.h:
286
287 2007-11-07  Simon Hausmann  <hausmann@kde.org>
288
289         Reviewed by Lars.
290
291         Changed the webAction() accessor to not be a slot but just a public function.
292
293         * Api/qwebpage.h:
294
295 2007-11-07  Simon Hausmann  <hausmann@kde.org>
296
297         Reviewed by Lars.
298
299         Implemented createWindow() in QtLauncher.
300
301         * QtLauncher/main.cpp:
302         (WebPage::WebPage):
303         (MainWindow::MainWindow):
304         (WebPage::createWindow):
305
306 2007-11-07  Simon Hausmann  <hausmann@kde.org>
307
308         Reviewed by Lars.
309
310         Implemented opening links in new windows
311
312         * Api/qwebpage.cpp:
313         (frameLoadRequest):
314         (openNewWindow):
315         (QWebPage::webActionTriggered):
316
317 2007-11-07  Simon Hausmann  <hausmann@kde.org>
318
319         Reviewed by Lars.
320
321         Added and implemented the "OpenLink" action.
322
323         * Api/qwebpage.cpp:
324         (webActionForContextMenuAction):
325         (QWebPage::webActionTriggered):
326         (QWebPage::webAction):
327         * Api/qwebpage.h:
328
329 2007-11-07  Simon Hausmann  <hausmann@kde.org>
330
331         Reviewed by Lars.
332
333         Adjust the state of the reload action correctly.
334
335         * Api/qwebpage.cpp:
336         (QWebPagePrivate::updateAction):
337         (QWebPagePrivate::updateNavigationActions):
338
339 2007-11-07  Simon Hausmann  <hausmann@kde.org>
340
341         Reviewed by Lars.
342
343         Initialize the undo/redo actions from QUndoStack. That automatically takes care of enabling/disabling them as well as the activation/trigger.
344
345         * Api/qwebpage.cpp:
346         (QWebPagePrivate::updateAction):
347         (QWebPage::webAction):
348         (QWebPage::undoStack):
349         * Api/qwebpage.h:
350
351 2007-11-07  Simon Hausmann  <hausmann@kde.org>
352
353         Reviewed by Lars.
354
355         Added undo/redo toolbar buttons, moved the location line edit into a separate toolbar.
356
357         * QtLauncher/main.cpp:
358         (MainWindow::MainWindow):
359
360 2007-11-07  Simon Hausmann  <hausmann@kde.org>
361
362         Reviewed by Lars.
363
364         Update the editor actions when the selection changes.
365
366         * Api/qwebpage.cpp:
367         (QWebPagePrivate::updateAction):
368         (QWebPagePrivate::updateEditorActions):
369         * Api/qwebpage_p.h:
370         * WebCoreSupport/EditorClientQt.cpp:
371         (WebCore::EditorClientQt::respondToChangedSelection):
372
373 2007-11-07  Simon Hausmann  <hausmann@kde.org>
374
375         Reviewed by Lars.
376
377         Added cut/copy/paste actions to the toolbar of QtLauncher
378
379         * QtLauncher/main.cpp:
380         (MainWindow::MainWindow):
381
382 2007-11-07  Simon Hausmann  <hausmann@kde.org>
383
384         Reviewed by Lars.
385
386         Started working on keeping the state of the navigation actions up-to-date.
387
388         * Api/qwebpage.cpp:
389         (QWebPagePrivate::updateAction):
390         (QWebPagePrivate::updateNavigationActions):
391         (QWebPage::webAction):
392         * Api/qwebpage_p.h:
393         * WebCoreSupport/FrameLoaderClientQt.cpp:
394         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
395         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
396         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
397         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
398         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
399
400 2007-11-07  Simon Hausmann  <hausmann@kde.org>
401
402         Reviewed by Lars.
403
404         Use the navigational web actions in the toolbar
405
406         * QtLauncher/main.cpp:
407         (MainWindow::MainWindow):
408
409 2007-11-07  Simon Hausmann  <hausmann@kde.org>
410
411         Reviewed by Lars.
412
413         Store a bunch of QActions in QWebPagePrivate, corresponding to QWebPage::WebAction.
414         Added QWebPageContext to hold context sensitive information (for example used by the context menu).
415
416         * Api/qwebpage.cpp:
417         (QWebPagePrivate::QWebPagePrivate):
418         (webActionForContextMenuAction):
419         (QWebPagePrivate::createContextMenu):
420         (QWebPagePrivate::_q_webActionTriggered):
421         (QWebPage::webActionTriggered):
422         (QWebPage::webAction):
423         (QWebPage::contextMenuEvent):
424         (QWebPageContext::QWebPageContext):
425         (QWebPageContext::operator=):
426         (QWebPageContext::~QWebPageContext):
427         (QWebPageContext::pos):
428         (QWebPageContext::text):
429         (QWebPageContext::linkUrl):
430         (QWebPageContext::imageUrl):
431         (QWebPageContext::image):
432         (QWebPageContext::targetFrame):
433         * Api/qwebpage.h:
434         * Api/qwebpage_p.h:
435
436 2007-11-07  Simon Hausmann  <hausmann@kde.org>
437
438         Reviewed by Lars.
439
440         Moved the editing actions implemented in keyPressEvent into webActionTriggered.
441
442         * Api/qwebpage.cpp:
443         (QWebPage::webActionTriggered):
444         (QWebPage::keyPressEvent):
445         * Api/qwebpage.h:
446
447 2007-11-07  Simon Hausmann  <hausmann@kde.org>
448
449         Reviewed by Lars.
450
451         Introduced a central virtual void webActionTriggered(WebAction action) method that is called from various
452         convenience methods such as cut()/copy()/paste().
453
454         * Api/qwebpage.cpp:
455         (QWebPage::goBack):
456         (QWebPage::webActionTriggered):
457         (QWebPage::cut):
458         (QWebPage::copy):
459         * Api/qwebpage.h:
460
461 2007-11-07  Simon Hausmann  <hausmann@kde.org>
462
463         Reviewed by Lars.
464
465         Restructure the context menu classes for the Qt port. ContextMenu and ContextMenuItem don't store
466         QActions/QMenus anymore but just store the action type, tag, title and optionally submenu as created
467         in ContextMenu::populate().
468         For the actual Qt context menu we traverse this structure after sendContextMenuEvent and create a QMenu
469         out of it. That menu is currently not functional anymore though.
470
471         * Api/qwebpage.cpp:
472         (QWebPagePrivate::createContextMenu):
473         (QWebPage::contextMenuEvent):
474         * Api/qwebpage_p.h:
475
476 2007-11-07  Simon Hausmann  <hausmann@kde.org>
477
478         Reviewed by Lars.
479
480         Changed ContextMenu::setPlatformDescription for the Qt port to not show the qmenu right away
481         but instead just behave as a normal setter that takes ownership of the platform menu description (the qmenu).
482         Instead now QWebPage::contextMenuEvent() retrieves the QMenu after calling sendContextMenuEvent and calls exec()
483         on it.
484
485         * Api/qwebpage.cpp:
486         (QWebPage::contextMenuEvent):
487         * WebCoreSupport/ContextMenuClientQt.cpp:
488         (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
489
490 2007-11-07  Simon Hausmann  <hausmann@kde.org>
491
492         Reviewed by Lars.
493
494         Changed to PlatformMouseEvent constructor to allow construction from a QContextMenuEvent.
495         Call sendContextMenuEvent on the event handler from a QWidget::contextMenuEvent re-implementation instead of in mousePressEvent.
496
497         * Api/qwebpage.cpp:
498         (QWebPage::mousePressEvent):
499         (QWebPage::contextMenuEvent):
500         * Api/qwebpage.h:
501
502 2007-11-07  Simon Hausmann  <hausmann@kde.org>
503
504         Reviewed by Lars.
505
506         Turned onLoadProgressChanged into a real private slot.
507
508         * Api/qwebpage.cpp:
509         (QWebPage::QWebPage):
510         * Api/qwebpage.h:
511         * Api/qwebpage_p.h:
512
513 2007-11-07  Simon Hausmann  <hausmann@kde.org>
514
515         Reviewed by Lars.
516
517         Make QWebHistory an explicitly shared object, returned as a pointer by QWebPage::history().
518
519         * Api/qwebpage.cpp:
520         (QWebPagePrivate::QWebPagePrivate):
521         * Api/qwebpage.h:
522         * Api/qwebpage_p.h:
523         * Api/qwebpagehistory.cpp:
524         (QWebPageHistory::QWebPageHistory):
525         * Api/qwebpagehistory.h:
526
527 2007-11-07  Lars Knoll  <lars@trolltech.com>
528
529         Reviewed by Simon.
530
531         comments on API changes that we'd like to do.
532
533         * Api/qwebpage.h:
534
535 2007-11-07  Simon Hausmann  <hausmann@kde.org>
536
537         Reviewed by Lars Knoll <lars@trolltech.com>.
538
539         Add a QWebPage::frameCreated() signal and fix DRT
540         
541         The removal of createFrame in QWebPage broke the re-implementation
542         in DumpRenderTree. Instead emit a frameCreated() signal and
543         connect to it in DumpRenderTree.
544         
545
546         * Api/qwebpage.cpp:
547         (QWebPagePrivate::createMainFrame):
548         * Api/qwebpage.h:
549         * WebCoreSupport/FrameLoaderClientQt.cpp:
550         (WebCore::FrameLoaderClientQt::createFrame):
551
552 2007-11-07  Lars Knoll  <lars@trolltech.com>
553
554         Reviewed by Simon.
555
556         Remove QWebPage::createFrame()
557         
558         now that QWebFrame doesn't have virtual methods anymore, there
559         is no need for a createFrame() factory method in QWebpage.
560
561         * Api/qwebpage.cpp:
562         (QWebPagePrivate::createMainFrame):
563         * Api/qwebpage.h:
564         * WebCoreSupport/FrameLoaderClientQt.cpp:
565         (WebCore::FrameLoaderClientQt::createFrame):
566
567 2007-11-07  Simon Hausmann  <hausmann@kde.org>
568
569         Reviewed by Lars Knoll <lars@trolltech.com>.
570
571         Moved all the event handlers from QWebFrame into QWebPage.
572         
573         This cleans up the public API and allows us to remove the
574         HackWebFrame hack in DumpRenderTree.
575         
576
577         * Api/qwebframe.cpp:
578         (QWebFrame::pos):
579         * Api/qwebframe.h:
580         * Api/qwebframe_p.h:
581         * Api/qwebpage.cpp:
582         (QWebPagePrivate::frameAt):
583         (QWebPage::mouseMoveEvent):
584         (QWebPage::mousePressEvent):
585         (QWebPage::mouseDoubleClickEvent):
586         (QWebPage::mouseReleaseEvent):
587         (QWebPage::wheelEvent):
588         * Api/qwebpage_p.h:
589
590 2007-11-07  Holger Freyther  <holger.freyther@trolltech.com>
591
592         Reviewed by Lars Knoll <lars@trolltech.com>.
593
594         Use correct UserAgent string.
595         
596         * Only have one User Agent String and this place is QWebPage
597         * QWebPage::open -> QWebNetworkRequest -> QWebPage::open ->
598         ResourceRequest -> FrameLoader::load -> QWebNetworkRequest
599         * ResourceRequest is != 0 when getting called from WebCore, we
600         will only do requests when coming from WebCore and then we can
601         use the User-Agent set with the help of the FrameLoaderClient
602         * We might want to change QWebNetworkRequest a bit
603         
604
605         * Api/qwebnetworkinterface.cpp:
606         (QWebNetworkRequestPrivate::init):
607
608 2007-11-07  Lars Knoll  <lars@trolltech.com>
609
610         Reviewed by Simon.
611
612         remove two notImplemented() warnings, as I believe we don't
613         have to implement these methods. Add some (commented out)
614         debug code in one place.
615
616         * WebCoreSupport/EditorClientQt.cpp:
617         (WebCore::EditorClientQt::respondToChangedSelection):
618         (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
619
620 2007-11-05  Tristan O'Tierney  <tristan@apple.com>
621
622         Reviewed by Darin Adler.
623
624         * WebCoreSupport/ChromeClientQt.cpp:
625         (WebCore::ChromeClientQt::createWindow):
626         * WebCoreSupport/ChromeClientQt.h:
627         Revised to use new WebCore ChromeClient createWindow API.
628
629 2007-10-31  Lars Knoll  <lars@trolltech.com>
630
631         Reviewed by Simon.
632
633         fix most of the issues I found with Clipboard and DnD.
634
635         * Api/qwebpage.cpp:
636         (QWebPage::dragLeaveEvent):
637
638 2007-10-31  Lars Knoll  <lars@trolltech.com>
639
640         Reviewed by Simon.
641
642         QDrag objects need to be created on the heap.
643
644         * WebCoreSupport/DragClientQt.cpp:
645         (WebCore::DragClientQt::startDrag):
646
647 2007-10-31  Lars Knoll  <lars@trolltech.com>
648
649         Reviewed by Simon.
650
651         a dragLeave event is not the same as cancelling a drag.
652
653         * Api/qwebpage.cpp:
654
655 2007-10-26  Mark Rowe  <mrowe@apple.com>
656
657         Build fix.  Add missing #include of Platform.h.
658
659         * Api/qwebhistoryinterface.cpp:
660
661 2007-10-25  Holger Freyther  <zecke@selfish.org>
662
663         Reviewed by Simon Hausmann <hausmann@kde.org>.
664
665         * We need to set a != 0 status code for the fast/loader/xmlhttprequest-missing-file-exception.html
666         * libxml2 has the semantic that when writing an empty string and finishing it will report an error. For QXmlStreamReader this is valid.
667         * This is causing some regressions...
668         
669
670         * Api/qwebnetworkinterface.cpp:
671         (QWebNetworkManager::started):
672         (QWebNetworkInterface::addJob):
673
674 2007-10-25  Holger Freyther  <zecke@selfish.org>
675
676         Reviewed by Simon Hausmann <hausmann@kde.org>.
677
678         * 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.
679         * We can use the cross-platform result now. QWebNetworkInterface/Manager behaves the same as mac for local files.
680         
681
682         * Api/qwebnetworkinterface.cpp:
683         (QWebNetworkManager::started):
684
685 2007-10-25  Holger Freyther  <zecke@selfish.org>
686
687         Reviewed by Simon Hausmann <hausmann@kde.org>.
688
689         * 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.
690         * Use the error message from Qt. It might or might not be translated.
691         
692
693         * Api/qwebnetworkinterface.cpp:
694         (QWebNetworkJob::errorString):
695         (QWebNetworkJob::setErrorString):
696         (QWebNetworkManager::finished):
697         (QWebNetworkManager::doWork):
698         (WebCoreHttp::onRequestFinished):
699         * Api/qwebnetworkinterface.h:
700         * Api/qwebnetworkinterface_p.h:
701
702 2007-10-25  Holger Freyther  <zecke@selfish.org>
703
704         Reviewed by Simon Hausmann <hausmann@kde.org>.
705
706         * 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.
707         * 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.
708         
709
710         * Api/qwebnetworkinterface.cpp:
711         (QWebNetworkManager::doWork):
712
713 2007-10-25  Holger Freyther  <zecke@selfish.org>
714
715         Reviewed by Simon Hausmann <hausmann@kde.org>.
716
717         * No need to initialize values in the QWebNetworkJob c'tor
718         * 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.
719         
720
721         * Api/qwebnetworkinterface.cpp:
722         (QWebNetworkJob::status):
723         (QWebNetworkJob::setStatus):
724         (QWebNetworkManager::started):
725         (QWebNetworkManager::data):
726         (QWebNetworkManager::finished):
727         * Api/qwebnetworkinterface.h:
728         * Api/qwebnetworkinterface_p.h:
729         (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
730
731 2007-10-25  Holger Freyther  <zecke@selfish.org>
732
733         Reviewed by Simon Hausmann <hausmann@kde.org>.
734
735         * Consistency: Always name the jobs job.
736         
737
738         * Api/qwebnetworkinterface.cpp:
739         (WebCoreHttp::onReadyRead):
740         (WebCoreHttp::onRequestFinished):
741         (WebCoreHttp::onSslErrors):
742         (WebCoreHttp::onAuthenticationRequired):
743         (WebCoreHttp::onProxyAuthenticationRequired):
744
745 2007-10-25  Holger Freyther  <zecke@selfish.org>
746
747         Reviewed by Simon Hausmann <hausmann@kde.org>.
748
749         * 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.
750         * This should be thread-safe besides QWebNetworkJob::{ref,deref}
751         
752
753         * Api/qwebnetworkinterface.cpp:
754         (QWebNetworkJob::~QWebNetworkJob):
755         (QWebNetworkManager::QWebNetworkManager):
756         (QWebNetworkManager::self):
757         (QWebNetworkManager::add):
758         (QWebNetworkManager::started):
759         (QWebNetworkManager::finished):
760         (QWebNetworkInterfacePrivate::sendFileData):
761         (QWebNetworkInterfacePrivate::parseDataUrl):
762         (QWebNetworkManager::queueStart):
763         (QWebNetworkManager::queueData):
764         (QWebNetworkManager::queueFinished):
765         (QWebNetworkManager::doScheduleWork):
766         (QWebNetworkManager::doWork):
767         (gCleanupInterface):
768         (QWebNetworkInterface::setDefaultInterface):
769         (QWebNetworkInterface::defaultInterface):
770         (QWebNetworkInterface::QWebNetworkInterface):
771         (QWebNetworkInterface::started):
772         (QWebNetworkInterface::data):
773         (QWebNetworkInterface::finished):
774         (WebCoreHttp::scheduleNextRequest):
775         (WebCoreHttp::onResponseHeaderReceived):
776         (WebCoreHttp::onReadyRead):
777         (WebCoreHttp::onRequestFinished):
778         (WebCoreHttp::cancel):
779         * Api/qwebnetworkinterface.h:
780         * Api/qwebnetworkinterface_p.h:
781         (QWebNetworkManager::):
782         (QWebNetworkManager::JobData::JobData):
783         (QWebNetworkManager::JobFinished::JobFinished):
784
785 2007-10-25  Holger Freyther  <zecke@selfish.org>
786
787         Reviewed by Simon Hausmann <hausmann@kde.org>.
788
789         * Do the percent replacement only when we are not base64. With base64 we should not have any % in it anyway.
790         * Have a custom decodePercentEncoding method that works without doing any charset conversion. With converting back to latin1() we lost some information.
791         * We pass the char-decoding.html test now
792         
793
794         * Api/qwebnetworkinterface.cpp:
795         (decodePercentEncoding):
796         (QWebNetworkInterfacePrivate::parseDataUrl):
797
798 2007-10-24  Holger Hans Peter Freyther  <zecke@selfish.org>
799
800         Reviewed by Lars Knoll <lars@trolltech.com>.
801
802         * Stop crashing on fast/events/frame-tab-focus.html the keyEvent can be 0.
803         
804
805         * WebCoreSupport/EditorClientQt.cpp:
806         (WebCore::EditorClientQt::handleKeypress):
807
808 2007-10-24  Lars Knoll  <lars@trolltech.com>
809
810         Reviewed by Simon.
811
812         remove some notImplemented() warnings.
813
814         * WebCoreSupport/EditorClientQt.cpp:
815         (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
816         (WebCore::EditorClientQt::isGrammarCheckingEnabled):
817         (WebCore::EditorClientQt::respondToChangedSelection):
818
819 2007-10-24  Lars Knoll  <lars@trolltech.com>
820
821         Reviewed by Simon.
822
823         allow paste from DOM so we pass more test cases.
824
825         * Api/qwebpage.cpp:
826         (QWebPage::setSettings):
827
828 2007-10-24  Lars Knoll  <lars@trolltech.com>
829
830         Reviewed by Simon.
831
832         Simplify the PlatformKeyEvent constructor. No need to have an extra boolean for isKeyUp in there, as the QKeyEvent has the information.
833
834         * Api/qwebpage.cpp:
835         (QWebPage::keyPressEvent):
836         (QWebPage::keyReleaseEvent):
837
838 2007-10-24  Lars Knoll  <lars@trolltech.com>
839
840         Reviewed by Simon.
841
842         some smaller fixes to the editing support in DRT. Makes another few tests pass.
843
844         * WebCoreSupport/EditorClientQt.cpp:
845         (qt_dump_editing_callbacks):
846         (qt_drt_run):
847
848 2007-10-24  Lars Knoll  <lars@trolltech.com>
849
850         Reviewed by Simon.
851
852         implemented support for most editing shortcuts to make contentEditable usable.
853
854         * Api/qwebpage.cpp:
855         (QWebPage::keyPressEvent):
856
857 2007-10-24  Lars Knoll  <lars@trolltech.com>
858
859         Reviewed by Simon.
860
861         no need to call setIsActive ourselves on the frame, as the focus controller does it for us.
862
863         * Api/qwebpage.cpp:
864         (QWebPage::focusInEvent):
865
866 2007-10-24  Lars Knoll  <lars@trolltech.com>
867
868         Reviewed by Simon.
869
870         Implement support for testing editing.
871
872         * WebCoreSupport/EditorClientQt.cpp:
873         (qt_dump_editing_callbacks):
874         (qt_dump_set_accepts_editing):
875         (dumpPath):
876         (dumpRange):
877         (WebCore::EditorClientQt::shouldDeleteRange):
878         (WebCore::EditorClientQt::shouldShowDeleteInterface):
879         (WebCore::EditorClientQt::shouldBeginEditing):
880         (WebCore::EditorClientQt::shouldEndEditing):
881         (WebCore::EditorClientQt::shouldInsertText):
882         (WebCore::EditorClientQt::shouldChangeSelectedRange):
883         (WebCore::EditorClientQt::shouldApplyStyle):
884         (WebCore::EditorClientQt::didBeginEditing):
885         (WebCore::EditorClientQt::respondToChangedContents):
886         (WebCore::EditorClientQt::respondToChangedSelection):
887         (WebCore::EditorClientQt::didEndEditing):
888         (WebCore::EditorClientQt::shouldInsertNode):
889
890 2007-10-19  Alp Toker  <alp@atoker.com>
891
892         Reviewed by Oliver.
893
894         GTK+ build fix enabling the new local database storage feature.
895         There is also a prospective Qt build fix.
896
897         * WebCoreSupport/ChromeClientQt.cpp:
898         (WebCore::ChromeClientQt::runDatabaseSizeLimitPrompt):
899         * WebCoreSupport/ChromeClientQt.h:
900
901 2007-10-19  Simon Hausmann  <hausmann@kde.org>
902
903         Fix the Qt/Windows build: Include the moc file from the .cpp file so
904         that config.h is included before wtf/MathExtras. The former defines
905         the MSVC defines for rand_s.
906
907         * WebCoreSupport/FrameLoaderClientQt.cpp:
908
909 2007-10-19  Simon Hausmann  <shausman@trolltech.com>
910
911         Reviewed by Lars.
912
913         Fix the windows/qt build by including config.h first to fix wtf/MathExtras.h inclusion.
914
915         * Api/qwebframe.cpp:
916         * Api/qwebpage.cpp:
917
918 2007-10-10  Alice Liu  <alice.liu@apple.com>
919
920         Reviewed by Geoff Garen.
921
922         changes to keep the build from breaking
923
924         * WebCoreSupport/FrameLoaderClientQt.cpp:
925         (WebCore::FrameLoaderClientQt::createFrame):
926         * WebCoreSupport/FrameLoaderClientQt.h:
927
928 2007-10-09  Lars Knoll  <lars@trolltech.com>
929
930         Reviewed by Simon.
931
932         set a default encoding for documents. Makes fast/dom/Document/document-charset.html pass.
933
934         * Api/qwebpage.cpp:
935         (QWebPage::setSettings):
936
937 2007-10-09  Lars Knoll  <lars@trolltech.com>
938
939         Reviewed by Simon.
940
941         Don't return a 404 status code for empty data: urls. Fixes fast/dom/HTMLHeadElement/head-check.html
942
943         * Api/qwebnetworkinterface.cpp:
944         (QWebNetworkManager::add):
945         (QWebNetworkManager::cancel):
946         (QWebNetworkManager::started):
947         (QWebNetworkManager::data):
948         (QWebNetworkInterfacePrivate::parseDataUrl):
949
950 2007-10-09  Lars Knoll  <lars@trolltech.com>
951
952         Reviewed by Simon.
953
954         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.
955
956         * Api/qwebpage.cpp:
957         (QWebPagePrivate::createMainFrame):
958         (QWebPage::createFrame):
959         * WebCoreSupport/FrameLoaderClientQt.cpp:
960         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
961         * WebCoreSupport/FrameLoaderClientQt.h:
962
963 2007-10-09  Lars Knoll  <lars@trolltech.com>
964
965         Reviewed by Simon.
966
967         add a clear() method to QWebPageHistory.
968
969         * Api/qwebpagehistory.cpp:
970         (QWebPageHistory::clear):
971         (QWebPageHistory::itemAtIndex):
972         * Api/qwebpagehistory.h:
973
974 2007-10-05  Lars Knoll  <lars@trolltech.com>
975
976         add proper error messages to the FrameLoaderClient.
977         Implement ChromeClientQt::closeWindowSoon and
978         FrameLoaderClientQt::dispatchCreatePage (which should go away IMO).
979         Some fixes in DRT to make it work correctly with multiple windows.
980
981         Reviewed by Maciej.
982
983         * Api/qwebframe.h:
984         * Api/qwebnetworkinterface.cpp:
985         (QWebNetworkManager::cancel):
986         (QWebNetworkInterface::addJob):
987         * WebCoreSupport/ChromeClientQt.cpp:
988         (WebCore::ChromeClientQt::closeWindowSoon):
989         * WebCoreSupport/FrameLoaderClientQt.cpp:
990         (WebCore::FrameLoaderClientQt::cancelledError):
991         (WebCore::):
992         (WebCore::FrameLoaderClientQt::blockedError):
993         (WebCore::FrameLoaderClientQt::cannotShowURLError):
994         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
995         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
996         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
997
998 2007-10-03  Lars Knoll  <lars@trolltech.com>
999
1000         Signed off by Olliej.
1001
1002         move WebKitQt to WebKit/qt for consistency with the other ports.
1003
1004         * Api/headers.pri: Renamed from WebKitQt/Api/headers.pri.
1005         * Api/qcookiejar.cpp: Renamed from WebKitQt/Api/qcookiejar.cpp.
1006         (QCookieJarPrivate::QCookieJarPrivate):
1007         (qHash):
1008         (QCookieJar::QCookieJar):
1009         (QCookieJar::~QCookieJar):
1010         (QCookieJar::setCookies):
1011         (QCookieJar::cookies):
1012         (QCookieJar::isEnabled):
1013         (QCookieJar::setEnabled):
1014         (gCleanupJar):
1015         (QCookieJar::setCookieJar):
1016         (QCookieJar::cookieJar):
1017         * Api/qcookiejar.h: Renamed from WebKitQt/Api/qcookiejar.h.
1018         * Api/qtwebkit.prf: Renamed from WebKitQt/Api/qtwebkit.prf.
1019         * Api/qwebframe.cpp: Renamed from WebKitQt/Api/qwebframe.cpp.
1020         (QWebFramePrivate::init):
1021         (QWebFramePrivate::parentFrame):
1022         (QWebFramePrivate::horizontalScrollBar):
1023         (QWebFramePrivate::verticalScrollBar):
1024         (QWebFrame::QWebFrame):
1025         (QWebFrame::~QWebFrame):
1026         (QWebFrame::addToJSWindowObject):
1027         (QWebFrame::markup):
1028         (QWebFrame::innerText):
1029         (QWebFrame::renderTreeDump):
1030         (QWebFrame::title):
1031         (QWebFrame::name):
1032         (QWebFrame::page):
1033         (QWebFrame::selectedText):
1034         (QWebFrame::childFrames):
1035         (QWebFrame::verticalScrollBarPolicy):
1036         (QWebFrame::setVerticalScrollBarPolicy):
1037         (QWebFrame::horizontalScrollBarPolicy):
1038         (QWebFrame::setHorizontalScrollBarPolicy):
1039         (QWebFrame::render):
1040         (QWebFrame::layout):
1041         (QWebFrame::pos):
1042         (QWebFrame::geometry):
1043         (QWebFrame::evaluateJavaScript):
1044         (QWebFrame::mouseMoveEvent):
1045         (QWebFrame::mousePressEvent):
1046         (QWebFrame::mouseDoubleClickEvent):
1047         (QWebFrame::mouseReleaseEvent):
1048         (QWebFrame::wheelEvent):
1049         * Api/qwebframe.h: Renamed from WebKitQt/Api/qwebframe.h.
1050         * Api/qwebframe_p.h: Renamed from WebKitQt/Api/qwebframe_p.h.
1051         (QWebFramePrivate::QWebFramePrivate):
1052         * Api/qwebhistoryinterface.cpp: Renamed from WebKitQt/Api/qwebhistoryinterface.cpp.
1053         (WebCore::historyContains):
1054         (gCleanupInterface):
1055         (QWebHistoryInterface::setDefaultInterface):
1056         (QWebHistoryInterface::defaultInterface):
1057         (QWebHistoryInterface::QWebHistoryInterface):
1058         * Api/qwebhistoryinterface.h: Renamed from WebKitQt/Api/qwebhistoryinterface.h.
1059         * Api/qwebkitglobal.h: Renamed from WebKitQt/Api/qwebkitglobal.h.
1060         * Api/qwebnetworkinterface.cpp: Renamed from WebKitQt/Api/qwebnetworkinterface.cpp.
1061         (qHash):
1062         (operator==):
1063         (QWebNetworkRequestPrivate::init):
1064         (QWebNetworkRequestPrivate::setURL):
1065         (QWebNetworkRequest::QWebNetworkRequest):
1066         (QWebNetworkRequest::operator=):
1067         (QWebNetworkRequest::~QWebNetworkRequest):
1068         (QWebNetworkRequest::url):
1069         (QWebNetworkRequest::setUrl):
1070         (QWebNetworkRequest::httpHeader):
1071         (QWebNetworkRequest::setHttpHeader):
1072         (QWebNetworkRequest::httpHeaderField):
1073         (QWebNetworkRequest::setHttpHeaderField):
1074         (QWebNetworkRequest::postData):
1075         (QWebNetworkRequest::setPostData):
1076         (QWebNetworkJob::QWebNetworkJob):
1077         (QWebNetworkJob::~QWebNetworkJob):
1078         (QWebNetworkJob::url):
1079         (QWebNetworkJob::postData):
1080         (QWebNetworkJob::httpHeader):
1081         (QWebNetworkJob::request):
1082         (QWebNetworkJob::response):
1083         (QWebNetworkJob::setResponse):
1084         (QWebNetworkJob::cancelled):
1085         (QWebNetworkJob::ref):
1086         (QWebNetworkJob::deref):
1087         (QWebNetworkJob::networkInterface):
1088         (QWebNetworkJob::frame):
1089         (QWebNetworkManager::QWebNetworkManager):
1090         (QWebNetworkManager::self):
1091         (QWebNetworkManager::add):
1092         (QWebNetworkManager::cancel):
1093         (QWebNetworkManager::started):
1094         (QWebNetworkManager::data):
1095         (QWebNetworkManager::finished):
1096         (QWebNetworkManager::addHttpJob):
1097         (QWebNetworkManager::cancelHttpJob):
1098         (QWebNetworkManager::httpConnectionClosed):
1099         (QWebNetworkInterfacePrivate::sendFileData):
1100         (QWebNetworkInterfacePrivate::parseDataUrl):
1101         (gCleanupInterface):
1102         (QWebNetworkInterface::setDefaultInterface):
1103         (QWebNetworkInterface::defaultInterface):
1104         (QWebNetworkInterface::QWebNetworkInterface):
1105         (QWebNetworkInterface::~QWebNetworkInterface):
1106         (QWebNetworkInterface::addJob):
1107         (QWebNetworkInterface::cancelJob):
1108         (WebCoreHttp::WebCoreHttp):
1109         (WebCoreHttp::~WebCoreHttp):
1110         (WebCoreHttp::request):
1111         (WebCoreHttp::scheduleNextRequest):
1112         (WebCoreHttp::getConnection):
1113         (WebCoreHttp::onResponseHeaderReceived):
1114         (WebCoreHttp::onReadyRead):
1115         (WebCoreHttp::onRequestFinished):
1116         (WebCoreHttp::onDone):
1117         (WebCoreHttp::onStateChanged):
1118         (WebCoreHttp::cancel):
1119         (WebCoreHttp::onSslErrors):
1120         (WebCoreHttp::onAuthenticationRequired):
1121         (WebCoreHttp::onProxyAuthenticationRequired):
1122         (HostInfo::HostInfo):
1123         * Api/qwebnetworkinterface.h: Renamed from WebKitQt/Api/qwebnetworkinterface.h.
1124         * Api/qwebnetworkinterface_p.h: Renamed from WebKitQt/Api/qwebnetworkinterface_p.h.
1125         (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
1126         (WebCore::HostInfo::HostInfo):
1127         (WebCore::WebCoreHttp::HttpConnection::HttpConnection):
1128         * Api/qwebobjectplugin.cpp: Renamed from WebKitQt/Api/qwebobjectplugin.cpp.
1129         (QWebFactoryLoader::QWebFactoryLoader):
1130         (QWebFactoryLoader::self):
1131         (QWebFactoryLoader::descriptionForName):
1132         (QWebFactoryLoader::mimetypesForName):
1133         (QWebFactoryLoader::mimeTypeForExtension):
1134         (QWebFactoryLoader::extensions):
1135         (QWebFactoryLoader::nameForMimetype):
1136         (QWebFactoryLoader::create):
1137         (QWebObjectPlugin::QWebObjectPlugin):
1138         (QWebObjectPlugin::~QWebObjectPlugin):
1139         (QWebObjectPlugin::descriptionForKey):
1140         (QWebObjectPlugin::mimetypesForKey):
1141         (QWebObjectPlugin::extensionsForMimetype):
1142         * Api/qwebobjectplugin.h: Renamed from WebKitQt/Api/qwebobjectplugin.h.
1143         * Api/qwebobjectplugin_p.h: Renamed from WebKitQt/Api/qwebobjectplugin_p.h.
1144         (QWebFactoryLoader::names):
1145         (QWebFactoryLoader::supportsMimeType):
1146         * Api/qwebobjectpluginconnector.cpp: Renamed from WebKitQt/Api/qwebobjectpluginconnector.cpp.
1147         (QWebObjectPluginConnector::QWebObjectPluginConnector):
1148         (QWebObjectPluginConnector::frame):
1149         (QWebObjectPluginConnector::pluginParentWidget):
1150         (QWebObjectPluginConnector::requestUrl):
1151         * Api/qwebobjectpluginconnector.h: Renamed from WebKitQt/Api/qwebobjectpluginconnector.h.
1152         * Api/qwebpage.cpp: Renamed from WebKitQt/Api/qwebpage.cpp.
1153         (QWebPagePrivate::QWebPagePrivate):
1154         (QWebPagePrivate::~QWebPagePrivate):
1155         (QWebPagePrivate::navigationRequested):
1156         (QWebPagePrivate::createMainFrame):
1157         (QWebPage::QWebPage):
1158         (QWebPage::~QWebPage):
1159         (QWebPage::createFrame):
1160         (QWebPage::open):
1161         (QWebPage::url):
1162         (QWebPage::title):
1163         (QWebPage::mainFrame):
1164         (QWebPage::sizeHint):
1165         (QWebPage::stop):
1166         (QWebPage::history):
1167         (QWebPage::goBack):
1168         (QWebPage::goForward):
1169         (QWebPage::goToHistoryItem):
1170         (QWebPage::javaScriptConsoleMessage):
1171         (QWebPage::javaScriptAlert):
1172         (QWebPage::javaScriptConfirm):
1173         (QWebPage::javaScriptPrompt):
1174         (QWebPage::createWindow):
1175         (QWebPage::createModalDialog):
1176         (QWebPage::createPlugin):
1177         (QWebPage::navigationRequested):
1178         (QWebPage::setWindowGeometry):
1179         (QWebPage::canCut):
1180         (QWebPage::canCopy):
1181         (QWebPage::canPaste):
1182         (QWebPage::cut):
1183         (QWebPage::copy):
1184         (QWebPage::paste):
1185         (QWebPage::isModified):
1186         (QWebPage::undoStack):
1187         (dropActionToDragOp):
1188         (dragOpToDropAction):
1189         (QWebPage::resizeEvent):
1190         (QWebPage::paintEvent):
1191         (QWebPage::mouseMoveEvent):
1192         (QWebPage::mousePressEvent):
1193         (QWebPage::mouseDoubleClickEvent):
1194         (QWebPage::mouseReleaseEvent):
1195         (QWebPage::wheelEvent):
1196         (QWebPage::keyPressEvent):
1197         (QWebPage::keyReleaseEvent):
1198         (QWebPage::focusInEvent):
1199         (QWebPage::focusOutEvent):
1200         (QWebPage::focusNextPrevChild):
1201         (QWebPage::dragEnterEvent):
1202         (QWebPage::dragLeaveEvent):
1203         (QWebPage::dragMoveEvent):
1204         (QWebPage::dropEvent):
1205         (QWebPage::setNetworkInterface):
1206         (QWebPage::networkInterface):
1207         (QWebPage::icon):
1208         (QWebPage::setSettings):
1209         (QWebPage::settings):
1210         (QWebPage::chooseFile):
1211         (QWebPage::setNetworkProxy):
1212         (QWebPage::networkProxy):
1213         (QWebPage::userAgentStringForUrl):
1214         (QWebPage::onLoadProgressChanged):
1215         (QWebPage::totalBytes):
1216         * Api/qwebpage.h: Renamed from WebKitQt/Api/qwebpage.h.
1217         * Api/qwebpage_p.h: Renamed from WebKitQt/Api/qwebpage_p.h.
1218         * Api/qwebpagehistory.cpp: Renamed from WebKitQt/Api/qwebpagehistory.cpp.
1219         (QWebHistoryItem::QWebHistoryItem):
1220         (QWebHistoryItem::operator=):
1221         (QWebHistoryItem::~QWebHistoryItem):
1222         (QWebHistoryItem::originalUrl):
1223         (QWebHistoryItem::currentUrl):
1224         (QWebHistoryItem::title):
1225         (QWebHistoryItem::lastVisited):
1226         (QWebHistoryItem::icon):
1227         (QWebPageHistory::QWebPageHistory):
1228         (QWebPageHistory::itemAtIndex):
1229         (QWebPageHistory::operator=):
1230         (QWebPageHistory::~QWebPageHistory):
1231         (QWebPageHistory::items):
1232         (QWebPageHistory::backItems):
1233         (QWebPageHistory::forwardItems):
1234         (QWebPageHistory::canGoBack):
1235         (QWebPageHistory::canGoForward):
1236         (QWebPageHistory::goBack):
1237         (QWebPageHistory::goForward):
1238         (QWebPageHistory::goToItem):
1239         (QWebPageHistory::backItem):
1240         (QWebPageHistory::currentItem):
1241         (QWebPageHistory::forwardItem):
1242         * Api/qwebpagehistory.h: Renamed from WebKitQt/Api/qwebpagehistory.h.
1243         (QExplicitlySharedDataPointer::operator*):
1244         (QExplicitlySharedDataPointer::operator->):
1245         (QExplicitlySharedDataPointer::operator T *):
1246         (QExplicitlySharedDataPointer::operator const T *):
1247         (QExplicitlySharedDataPointer::data):
1248         (QExplicitlySharedDataPointer::constData):
1249         (QExplicitlySharedDataPointer::operator==):
1250         (QExplicitlySharedDataPointer::operator!=):
1251         (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer):
1252         (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer):
1253         (QExplicitlySharedDataPointer::operator=):
1254         (QExplicitlySharedDataPointer::operator!):
1255         (::QExplicitlySharedDataPointer):
1256         * Api/qwebpagehistory_p.h: Renamed from WebKitQt/Api/qwebpagehistory_p.h.
1257         (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
1258         (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
1259         (QWebPageHistoryPrivate::QWebPageHistoryPrivate):
1260         (QWebPageHistoryPrivate::~QWebPageHistoryPrivate):
1261         * Api/qwebsettings.cpp: Renamed from WebKitQt/Api/qwebsettings.cpp.
1262         (QWebSettingsPrivate::QWebSettingsPrivate):
1263         (QWebSettings::QWebSettings):
1264         (QWebSettings::~QWebSettings):
1265         (QWebSettings::setMinimumFontSize):
1266         (QWebSettings::minimumFontSize):
1267         (QWebSettings::setMinimumLogicalFontSize):
1268         (QWebSettings::minimumLogicalFontSize):
1269         (QWebSettings::setDefaultFontSize):
1270         (QWebSettings::defaultFontSize):
1271         (QWebSettings::setDefaultFixedFontSize):
1272         (QWebSettings::defaultFixedFontSize):
1273         (QWebSettings::setUserStyleSheetLocation):
1274         (QWebSettings::userStyleSheetLocation):
1275         (QWebSettings::setIconDatabaseEnabled):
1276         (QWebSettings::iconDatabaseEnabled):
1277         (QWebSettings::setWebGraphic):
1278         (QWebSettings::webGraphic):
1279         (QWebSettings::operator=):
1280         (QWebSettings::setGlobal):
1281         (QWebSettings::global):
1282         (QWebSettings::setFontFamily):
1283         (QWebSettings::fontFamily):
1284         (QWebSettings::setAttribute):
1285         (QWebSettings::testAttribute):
1286         (loadResourcePixmap):
1287         * Api/qwebsettings.h: Renamed from WebKitQt/Api/qwebsettings.h.
1288         * ChangeLog: Renamed from WebKitQt/ChangeLog.
1289         * Plugins/ICOHandler.cpp: Renamed from WebKitQt/Plugins/ICOHandler.cpp.
1290         (IcoHeader::operator >>):
1291         (IcoHeader::BMP_INFOHDR::):
1292         (IcoHeader::operator<<):
1293         (IcoHeader::LessDifference::LessDifference):
1294         (IcoHeader::LessDifference::operator ()):
1295         (IcoHeader::loadFromDIB):
1296         (ICOHandler::ICOHandler):
1297         (ICOHandler::canRead):
1298         (ICOHandler::read):
1299         (ICOHandler::write):
1300         (ICOHandler::name):
1301         (ICOPlugin::keys):
1302         (ICOPlugin::capabilities):
1303         (ICOPlugin::create):
1304         * Plugins/ICOHandler.h: Renamed from WebKitQt/Plugins/ICOHandler.h.
1305         * Plugins/Plugins.pro: Renamed from WebKitQt/Plugins/Plugins.pro.
1306         * QtLauncher/QtLauncher.pro: Renamed from WebKitQt/QtLauncher/QtLauncher.pro.
1307         * QtLauncher/main.cpp: Renamed from WebKitQt/QtLauncher/main.cpp.
1308         (HoverLabel::HoverLabel):
1309         (HoverLabel::setHoverLink):
1310         (HoverLabel::sizeForFont):
1311         (HoverLabel::sizeHint):
1312         (HoverLabel::updateSize):
1313         (HoverLabel::resetAnimation):
1314         (HoverLabel::paintEvent):
1315         (HoverLabel::interpolate):
1316         (ClearButton::ClearButton):
1317         (ClearButton::paintEvent):
1318         (SearchEdit::SearchEdit):
1319         (SearchEdit::~SearchEdit):
1320         (SearchEdit::paintEvent):
1321         (SearchEdit::resizeEvent):
1322         (SearchEdit::moveEvent):
1323         (MainWindow::MainWindow):
1324         (MainWindow::changeLocation):
1325         (MainWindow::loadFinished):
1326         (MainWindow::showLinkHover):
1327         (MainWindow::resizeEvent):
1328         (main):
1329         * WebCoreSupport/ChromeClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.cpp.
1330         (WebCore::ChromeClientQt::ChromeClientQt):
1331         (WebCore::ChromeClientQt::~ChromeClientQt):
1332         (WebCore::ChromeClientQt::setWindowRect):
1333         (WebCore::ChromeClientQt::windowRect):
1334         (WebCore::ChromeClientQt::pageRect):
1335         (WebCore::ChromeClientQt::scaleFactor):
1336         (WebCore::ChromeClientQt::focus):
1337         (WebCore::ChromeClientQt::unfocus):
1338         (WebCore::ChromeClientQt::canTakeFocus):
1339         (WebCore::ChromeClientQt::takeFocus):
1340         (WebCore::ChromeClientQt::createWindow):
1341         (WebCore::ChromeClientQt::createModalDialog):
1342         (WebCore::ChromeClientQt::show):
1343         (WebCore::ChromeClientQt::canRunModal):
1344         (WebCore::ChromeClientQt::runModal):
1345         (WebCore::ChromeClientQt::setToolbarsVisible):
1346         (WebCore::ChromeClientQt::toolbarsVisible):
1347         (WebCore::ChromeClientQt::setStatusbarVisible):
1348         (WebCore::ChromeClientQt::statusbarVisible):
1349         (WebCore::ChromeClientQt::setScrollbarsVisible):
1350         (WebCore::ChromeClientQt::scrollbarsVisible):
1351         (WebCore::ChromeClientQt::setMenubarVisible):
1352         (WebCore::ChromeClientQt::menubarVisible):
1353         (WebCore::ChromeClientQt::setResizable):
1354         (WebCore::ChromeClientQt::addMessageToConsole):
1355         (WebCore::ChromeClientQt::chromeDestroyed):
1356         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
1357         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
1358         (WebCore::ChromeClientQt::closeWindowSoon):
1359         (WebCore::ChromeClientQt::runJavaScriptAlert):
1360         (WebCore::ChromeClientQt::runJavaScriptConfirm):
1361         (WebCore::ChromeClientQt::runJavaScriptPrompt):
1362         (WebCore::ChromeClientQt::setStatusbarText):
1363         (WebCore::ChromeClientQt::shouldInterruptJavaScript):
1364         (WebCore::ChromeClientQt::tabsToLinks):
1365         (WebCore::ChromeClientQt::windowResizerRect):
1366         (WebCore::ChromeClientQt::addToDirtyRegion):
1367         (WebCore::ChromeClientQt::scrollBackingStore):
1368         (WebCore::ChromeClientQt::updateBackingStore):
1369         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
1370         (WebCore::ChromeClientQt::setToolTip):
1371         (WebCore::ChromeClientQt::print):
1372         * WebCoreSupport/ChromeClientQt.h: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.h.
1373         * WebCoreSupport/ContextMenuClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.cpp.
1374         (WebCore::ContextMenuClientQt::contextMenuDestroyed):
1375         (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
1376         (WebCore::ContextMenuClientQt::contextMenuItemSelected):
1377         (WebCore::ContextMenuClientQt::downloadURL):
1378         (WebCore::ContextMenuClientQt::lookUpInDictionary):
1379         (WebCore::ContextMenuClientQt::speak):
1380         (WebCore::ContextMenuClientQt::stopSpeaking):
1381         (WebCore::ContextMenuClientQt::searchWithGoogle):
1382         * WebCoreSupport/ContextMenuClientQt.h: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.h.
1383         * WebCoreSupport/DragClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/DragClientQt.cpp.
1384         (WebCore::DragClientQt::actionMaskForDrag):
1385         (WebCore::DragClientQt::willPerformDragDestinationAction):
1386         (WebCore::DragClientQt::dragControllerDestroyed):
1387         (WebCore::DragClientQt::dragSourceActionMaskForPoint):
1388         (WebCore::DragClientQt::willPerformDragSourceAction):
1389         (WebCore::DragClientQt::startDrag):
1390         * WebCoreSupport/DragClientQt.h: Renamed from WebKitQt/WebCoreSupport/DragClientQt.h.
1391         (WebCore::DragClientQt::DragClientQt):
1392         * WebCoreSupport/EditCommandQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.cpp.
1393         (EditCommandQt::EditCommandQt):
1394         (EditCommandQt::~EditCommandQt):
1395         (EditCommandQt::redo):
1396         (EditCommandQt::undo):
1397         * WebCoreSupport/EditCommandQt.h: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.h.
1398         * WebCoreSupport/EditorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.cpp.
1399         (WebCore::EditorClientQt::shouldDeleteRange):
1400         (WebCore::EditorClientQt::shouldShowDeleteInterface):
1401         (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
1402         (WebCore::EditorClientQt::isGrammarCheckingEnabled):
1403         (WebCore::EditorClientQt::spellCheckerDocumentTag):
1404         (WebCore::EditorClientQt::shouldBeginEditing):
1405         (WebCore::EditorClientQt::shouldEndEditing):
1406         (WebCore::EditorClientQt::shouldInsertText):
1407         (WebCore::EditorClientQt::shouldChangeSelectedRange):
1408         (WebCore::EditorClientQt::shouldApplyStyle):
1409         (WebCore::EditorClientQt::shouldMoveRangeAfterDelete):
1410         (WebCore::EditorClientQt::didBeginEditing):
1411         (WebCore::EditorClientQt::respondToChangedContents):
1412         (WebCore::EditorClientQt::respondToChangedSelection):
1413         (WebCore::EditorClientQt::didEndEditing):
1414         (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
1415         (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard):
1416         (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
1417         (WebCore::EditorClientQt::isEditable):
1418         (WebCore::EditorClientQt::registerCommandForUndo):
1419         (WebCore::EditorClientQt::registerCommandForRedo):
1420         (WebCore::EditorClientQt::clearUndoRedoOperations):
1421         (WebCore::EditorClientQt::canUndo):
1422         (WebCore::EditorClientQt::canRedo):
1423         (WebCore::EditorClientQt::undo):
1424         (WebCore::EditorClientQt::redo):
1425         (WebCore::EditorClientQt::shouldInsertNode):
1426         (WebCore::EditorClientQt::pageDestroyed):
1427         (WebCore::EditorClientQt::smartInsertDeleteEnabled):
1428         (WebCore::EditorClientQt::toggleContinuousSpellChecking):
1429         (WebCore::EditorClientQt::toggleGrammarChecking):
1430         (WebCore::EditorClientQt::handleKeypress):
1431         (WebCore::EditorClientQt::handleInputMethodKeypress):
1432         (WebCore::EditorClientQt::EditorClientQt):
1433         (WebCore::EditorClientQt::textFieldDidBeginEditing):
1434         (WebCore::EditorClientQt::textFieldDidEndEditing):
1435         (WebCore::EditorClientQt::textDidChangeInTextField):
1436         (WebCore::EditorClientQt::doTextFieldCommandFromEvent):
1437         (WebCore::EditorClientQt::textWillBeDeletedInTextField):
1438         (WebCore::EditorClientQt::textDidChangeInTextArea):
1439         (WebCore::EditorClientQt::ignoreWordInSpellDocument):
1440         (WebCore::EditorClientQt::learnWord):
1441         (WebCore::EditorClientQt::checkSpellingOfString):
1442         (WebCore::EditorClientQt::checkGrammarOfString):
1443         (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
1444         (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord):
1445         (WebCore::EditorClientQt::showSpellingUI):
1446         (WebCore::EditorClientQt::spellingUIIsShowing):
1447         (WebCore::EditorClientQt::getGuessesForWord):
1448         (WebCore::EditorClientQt::isEditing):
1449         (WebCore::EditorClientQt::setInputMethodState):
1450         * WebCoreSupport/EditorClientQt.h: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.h.
1451         * WebCoreSupport/FrameLoaderClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp.
1452         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
1453         (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
1454         (WebCore::FrameLoaderClientQt::setFrame):
1455         (WebCore::FrameLoaderClientQt::webFrame):
1456         (WebCore::FrameLoaderClientQt::callPolicyFunction):
1457         (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
1458         (WebCore::FrameLoaderClientQt::hasWebView):
1459         (WebCore::FrameLoaderClientQt::hasFrameView):
1460         (WebCore::FrameLoaderClientQt::hasBackForwardList):
1461         (WebCore::FrameLoaderClientQt::resetBackForwardList):
1462         (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
1463         (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
1464         (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
1465         (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
1466         (WebCore::FrameLoaderClientQt::makeDocumentView):
1467         (WebCore::FrameLoaderClientQt::makeRepresentation):
1468         (WebCore::FrameLoaderClientQt::forceLayout):
1469         (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
1470         (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
1471         (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
1472         (WebCore::FrameLoaderClientQt::resetAfterLoadError):
1473         (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
1474         (WebCore::FrameLoaderClientQt::willCloseDocument):
1475         (WebCore::FrameLoaderClientQt::detachedFromParent2):
1476         (WebCore::FrameLoaderClientQt::detachedFromParent3):
1477         (WebCore::FrameLoaderClientQt::detachedFromParent4):
1478         (WebCore::FrameLoaderClientQt::loadedFromCachedPage):
1479         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
1480         (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
1481         (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
1482         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
1483         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
1484         (WebCore::FrameLoaderClientQt::dispatchWillClose):
1485         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
1486         (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
1487         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
1488         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
1489         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
1490         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
1491         (WebCore::FrameLoaderClientQt::dispatchShow):
1492         (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
1493         (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
1494         (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
1495         (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
1496         (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
1497         (WebCore::FrameLoaderClientQt::revertToProvisionalState):
1498         (WebCore::FrameLoaderClientQt::clearUnarchivingState):
1499         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
1500         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
1501         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
1502         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
1503         (WebCore::FrameLoaderClientQt::willChangeTitle):
1504         (WebCore::FrameLoaderClientQt::didChangeTitle):
1505         (WebCore::FrameLoaderClientQt::finishedLoading):
1506         (WebCore::FrameLoaderClientQt::finalSetupForReplace):
1507         (WebCore::FrameLoaderClientQt::setDefersLoading):
1508         (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
1509         (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
1510         (WebCore::FrameLoaderClientQt::clearArchivedResources):
1511         (WebCore::FrameLoaderClientQt::canShowMIMEType):
1512         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
1513         (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
1514         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
1515         (WebCore::FrameLoaderClientQt::restoreViewState):
1516         (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
1517         (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
1518         (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
1519         (WebCore::FrameLoaderClientQt::didFinishLoad):
1520         (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
1521         (WebCore::FrameLoaderClientQt::setTitle):
1522         (WebCore::FrameLoaderClientQt::userAgent):
1523         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
1524         (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
1525         (WebCore::FrameLoaderClientQt::canHandleRequest):
1526         (WebCore::FrameLoaderClientQt::windowObjectCleared):
1527         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
1528         (WebCore::FrameLoaderClientQt::registerForIconNotification):
1529         (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage):
1530         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
1531         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload):
1532         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
1533         (WebCore::FrameLoaderClientQt::saveViewStateToItem):
1534         (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage):
1535         (WebCore::FrameLoaderClientQt::canCachePage):
1536         (WebCore::FrameLoaderClientQt::setMainDocumentError):
1537         (WebCore::FrameLoaderClientQt::committedLoad):
1538         (WebCore::FrameLoaderClientQt::cancelledError):
1539         (WebCore::FrameLoaderClientQt::blockedError):
1540         (WebCore::FrameLoaderClientQt::cannotShowURLError):
1541         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
1542         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
1543         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
1544         (WebCore::FrameLoaderClientQt::shouldFallBack):
1545         (WebCore::FrameLoaderClientQt::createDocumentLoader):
1546         (WebCore::FrameLoaderClientQt::download):
1547         (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
1548         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
1549         (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
1550         (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
1551         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
1552         (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
1553         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
1554         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
1555         (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
1556         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
1557         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
1558         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
1559         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
1560         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1561         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1562         (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
1563         (WebCore::FrameLoaderClientQt::startDownload):
1564         (WebCore::FrameLoaderClientQt::willUseArchive):
1565         (WebCore::FrameLoaderClientQt::createFrame):
1566         (WebCore::FrameLoaderClientQt::objectContentType):
1567         (WebCore::):
1568         (WebCore::FrameLoaderClientQt::createPlugin):
1569         (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
1570         (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
1571         (WebCore::FrameLoaderClientQt::overrideMediaType):
1572         * WebCoreSupport/FrameLoaderClientQt.h: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.h.
1573         * WebCoreSupport/InspectorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.cpp.
1574         (WebCore::InspectorClientQt::inspectorDestroyed):
1575         (WebCore::InspectorClientQt::createPage):
1576         (WebCore::InspectorClientQt::showWindow):
1577         (WebCore::InspectorClientQt::closeWindow):
1578         (WebCore::InspectorClientQt::attachWindow):
1579         (WebCore::InspectorClientQt::detachWindow):
1580         (WebCore::InspectorClientQt::highlight):
1581         (WebCore::InspectorClientQt::hideHighlight):
1582         * WebCoreSupport/InspectorClientQt.h: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.h.
1583         * WebKitPart/WebKitFactory.cpp: Renamed from WebKitQt/WebKitPart/WebKitFactory.cpp.
1584         (WebKitFactory::WebKitFactory):
1585         (WebKitFactory::~WebKitFactory):
1586         (WebKitFactory::createPartObject):
1587         (WebKitFactory::instance):
1588         (WebKitFactory::ref):
1589         (WebKitFactory::deref):
1590         * WebKitPart/WebKitFactory.h: Renamed from WebKitQt/WebKitPart/WebKitFactory.h.
1591         * WebKitPart/WebKitPart.cpp: Renamed from WebKitQt/WebKitPart/WebKitPart.cpp.
1592         (WebKitPart::WebKitPart):
1593         (WebKitPart::~WebKitPart):
1594         (WebKitPart::openFile):
1595         (WebKitPart::openUrl):
1596         (WebKitPart::closeUrl):
1597         (WebKitPart::parentPart):
1598         (WebKitPart::frame):
1599         (WebKitPart::initView):
1600         * WebKitPart/WebKitPart.desktop: Renamed from WebKitQt/WebKitPart/WebKitPart.desktop.
1601         * WebKitPart/WebKitPart.h: Renamed from WebKitQt/WebKitPart/WebKitPart.h.
1602         (WebKitPart::):
1603         * WebKitPart/WebKitPart.rc: Renamed from WebKitQt/WebKitPart/WebKitPart.rc.
1604         * WebKitPart/WebKitPartBrowser.rc: Renamed from WebKitQt/WebKitPart/WebKitPartBrowser.rc.
1605         * WebKitPart/WebKitPartBrowserExtension.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.cpp.
1606         (WebKitPartBrowserExtension::WebKitPartBrowserExtension):
1607         * WebKitPart/WebKitPartBrowserExtension.h: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.h.
1608         * WebKitPart/WebKitPartClient.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartClient.cpp.
1609         (WebKitPartClient::WebKitPartClient):
1610         (WebKitPartClient::~WebKitPartClient):
1611         * WebKitPart/WebKitPartClient.h: Renamed from WebKitQt/WebKitPart/WebKitPartClient.h.
1612         * WebKitPart/WebKitPartInterface.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.cpp.
1613         (WebKitPartInterface::WebKitPartInterface):
1614         (WebKitPartInterface::~WebKitPartInterface):
1615         (WebKitPartInterface::url):
1616         * WebKitPart/WebKitPartInterface.h: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.h.
1617         * WebKitPart/org.kde.WebKitPart.xml: Renamed from WebKitQt/WebKitPart/org.kde.WebKitPart.xml.
1618
1619 2007-10-02  Adam Treat  <treat@kde.org>
1620
1621         Reviewed by Eric Seidel.
1622
1623         Open the requested url on the newly created window.
1624         Implement createModalDialog and provide new API for this.
1625         Patch by M. Mehdi Salem Naraghi (momesana) with additions by me.
1626
1627         * Api/qwebpage.cpp:
1628         (QWebPage::createModalDialog):
1629         * Api/qwebpage.h:
1630         * WebCoreSupport/ChromeClientQt.cpp:
1631         (WebCore::ChromeClientQt::createWindow):
1632         (WebCore::ChromeClientQt::createModalDialog):
1633
1634 2007-10-02  Lars Knoll  <lars@trolltech.com>
1635
1636         Reviewed by bdash.
1637
1638         Add API to retrieve the frame name from QWebFrame.
1639         Implement support for DRT::dumpChildrenAsText.
1640
1641         * Api/qwebframe.cpp:
1642         (QWebFrame::name):
1643         * Api/qwebframe.h:
1644
1645 2007-10-02  Lars Knoll  <lars@trolltech.com>
1646
1647         Reviewed by bdash.
1648
1649         Fix the handling of the response header for data urls. Make sure we always pass absolute URLs to WebKit from both DRT and QtLauncher.
1650
1651         * Api/qwebnetworkinterface.cpp:
1652         (QWebNetworkManager::started):
1653         (QWebNetworkManager::data):
1654         (QWebNetworkManager::finished):
1655         (QWebNetworkInterfacePrivate::sendFileData):
1656         (QWebNetworkInterfacePrivate::parseDataUrl):
1657         (WebCoreHttp::scheduleNextRequest):
1658         (WebCoreHttp::onSslErrors):
1659         * QtLauncher/main.cpp:
1660         (main):
1661
1662 2007-10-01  Lars Knoll  <lars@trolltech.com>
1663
1664         Reviewed by Eric.
1665
1666         Fix a wrong extension mapping in the MIMETypeRegistry and identify about: url's as frames in the FrameLoaderClient.
1667
1668         * WebCoreSupport/FrameLoaderClientQt.cpp:
1669         (WebCore::FrameLoaderClientQt::makeDocumentView):
1670         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
1671         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
1672         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
1673         (WebCore::FrameLoaderClientQt::objectContentType):
1674         (WebCore::FrameLoaderClientQt::createPlugin):
1675
1676 2007-09-30  George Staikos  <staikos@kde.org>
1677
1678         Qt build fix (OS X specific).
1679
1680         * QtLauncher/QtLauncher.pro:
1681
1682 2007-09-26  Mark Rowe  <mrowe@apple.com>
1683
1684         Qt build fix.
1685
1686         * WebCoreSupport/FrameLoaderClientQt.cpp:
1687         (WebCore::FrameLoaderClientQt::objectContentType): Check for empty URL instead of invalid URL.
1688
1689 2007-09-25  David Kilzer  <ddkilzer@webkit.org>
1690
1691         Reviewed by Adam.
1692
1693         - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
1694           LGPL'ed files contain incorrect FSF address
1695
1696         * Api/qcookiejar.cpp:
1697         * Api/qcookiejar.h:
1698         * Api/qwebframe.cpp:
1699         * Api/qwebframe.h:
1700         * Api/qwebframe_p.h:
1701         * Api/qwebhistoryinterface.cpp:
1702         * Api/qwebhistoryinterface.h:
1703         * Api/qwebkitglobal.h:
1704         * Api/qwebnetworkinterface.cpp:
1705         * Api/qwebnetworkinterface.h:
1706         * Api/qwebnetworkinterface_p.h:
1707         * Api/qwebobjectplugin.cpp:
1708         * Api/qwebobjectplugin.h:
1709         * Api/qwebobjectpluginconnector.cpp:
1710         * Api/qwebobjectpluginconnector.h:
1711         * Api/qwebpage.cpp:
1712         * Api/qwebpage.h:
1713         * Api/qwebpage_p.h:
1714         * Api/qwebpagehistory.cpp:
1715         * Api/qwebpagehistory.h:
1716         * Api/qwebsettings.cpp:
1717         * Api/qwebsettings.h:
1718         * WebCoreSupport/EditCommandQt.cpp:
1719         * WebCoreSupport/EditCommandQt.h:
1720
1721 2007-09-25  Adam Treat  <treat@kde.org>
1722
1723         Reviewed by Simon and Lars.
1724
1725         Modifies the addToJSWindowObject to bind js objects using the built-in
1726         kjs_window class.  Make sure to protect the created runtime object from
1727         garbage collection.
1728
1729         Adds a signal to QWebFrame to notify clients of the beginning of a
1730         provisional load.  DRT needs this.
1731
1732         * Api/qwebframe.cpp:
1733         (QWebFrame::addToJSWindowObject):
1734         * Api/qwebframe.h:
1735         * WebCoreSupport/FrameLoaderClientQt.cpp:
1736         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
1737
1738 2007-09-10  Qing Zhao  <qing@staikos.net>
1739
1740         Reviewed by George Staikos.
1741
1742         Don't re-encode urls, resulting in double encoding.  Fixes login to
1743         GMail.
1744
1745         * Api/qwebnetworkinterface.cpp:
1746         (QWebNetworkRequestPrivate::init):
1747         (QWebNetworkManager::started):
1748
1749 2007-09-08  Mark Rowe  <mrowe@apple.com>
1750
1751         Qt build fix.  Move stub method implementations to the right class.
1752
1753         * WebCoreSupport/FrameLoaderClientQt.cpp:
1754         (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
1755
1756 2007-09-08  Brady Eidson  <beidson@apple.com>
1757
1758         YABF (Yet Another Build Fix)
1759
1760         * Api/qwebsettings.cpp:
1761         (QWebSettings::iconDatabaseEnabled):
1762
1763 2007-09-08  Brady Eidson  <beidson@apple.com>
1764
1765         Better build fix
1766
1767         * WebCoreSupport/FrameLoaderClientQt.cpp:
1768         (WebCore::FrameLoaderClient::registerForIconNotification):
1769         * WebCoreSupport/FrameLoaderClientQt.h:
1770
1771 2007-09-08  Brady Eidson  <beidson@apple.com>
1772
1773         Build fix
1774
1775         * WebCoreSupport/FrameLoaderClientQt.cpp:
1776         (WebCore::FrameLoaderClient::registerForIconNotification):
1777         * WebCoreSupport/FrameLoaderClientQt.h:
1778
1779 2007-09-05  Geoffrey Garen  <ggaren@apple.com>
1780
1781         Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
1782         
1783         Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no 
1784         memory cache, or a very tiny one
1785         
1786         Keep the Qt build working with an empty stub.
1787         
1788         * WebCoreSupport/FrameLoaderClientQt.cpp:
1789         (WebCore::FrameLoaderClient::didPerformFirstNavigation):
1790         * WebCoreSupport/FrameLoaderClientQt.h:
1791
1792 2007-09-07  George Staikos  <staikos@kde.org>
1793
1794         Fix typo.
1795
1796         * Api/qwebpage.cpp:
1797         (QWebPage::onLoadProgressChanged):
1798
1799 2007-09-07  Qing Zhao  <qing@staikos.net>
1800
1801         Reviewed by Anders and George.
1802
1803         Export page size and load progress in bytes.
1804
1805         * Api/qwebpage.cpp:
1806         (QWebPage::QWebPage):
1807         (QWebPage::onLoadProgressChanged):
1808         (QWebPage::totalBytes):
1809         (QWebPage::bytesReceived):
1810         * Api/qwebpage.h:
1811         * Api/qwebpage_p.h:
1812
1813 2007-09-06  George Staikos  <staikos@kde.org>
1814
1815         Reviewed by Anders.
1816
1817         Make popup windows work again.
1818
1819         * WebCoreSupport/FrameLoaderClientQt.cpp:
1820         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1821
1822 2007-09-01  Oliver Hunt  <oliver@apple.com>
1823
1824         Reviewed by Sam.
1825
1826         <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions
1827  
1828         EditorClient::setInputMethodState stub
1829
1830         * WebCoreSupport/EditorClientQt.cpp:
1831         (WebCore::EditorClientQt::setInputMethodState):
1832         * WebCoreSupport/EditorClientQt.h:
1833
1834 2007-08-30  Simon Hausmann  <hausmann@kde.org>
1835
1836         Reviewed by Zack.
1837
1838         Use QKeySequence::StandardKey for the page wise scrolling shortcuts.
1839
1840         * Api/qwebpage.cpp:
1841         (QWebPage::keyPressEvent):
1842
1843 2007-08-30  Simon Hausmann  <hausmann@kde.org>
1844
1845         Reviewed by Zack.
1846
1847         When scrolling with the keyboard don't call update() on the entire widget.
1848         The scrollbar/scrollview implementation is already smart enough to scroll with bitblt
1849         on a value change.
1850
1851         * Api/qwebpage.cpp:
1852         (QWebPage::keyPressEvent):
1853
1854 2007-08-30  Simon Hausmann  <hausmann@kde.org>
1855
1856         Reviewed by Zack.
1857
1858         Fix scrolling with the keyboard if only one of the two scrollbars is visible.
1859
1860         * Api/qwebpage.cpp:
1861         (QWebPage::keyPressEvent):
1862
1863 2007-08-29  Simon Hausmann  <hausmann@kde.org>
1864
1865         Reviewed by Zack.
1866
1867         Fix compilation.
1868
1869         * WebCoreSupport/FrameLoaderClientQt.cpp:
1870         (WebCore::FrameLoaderClientQt::objectContentType):
1871
1872 2007-08-19  Mike Hommey  <mh+webkit@glandium.org>
1873
1874         Reviewed by George Staikos.
1875
1876         Don't export ICO symbols.
1877
1878         * Plugins/Plugins.pro:
1879
1880 2007-08-19  George Staikos  <staikos@kde.org>
1881
1882         Fix compilation.
1883
1884         * WebCoreSupport/FrameLoaderClientQt.cpp:
1885         (WebCore::FrameLoaderClientQt::createPlugin):
1886         * WebCoreSupport/FrameLoaderClientQt.h:
1887
1888 2007-08-10  Lars Knoll  <lars@trolltech.com>
1889
1890         Reviewed and landed by Simon.
1891
1892         Limit the set of properties from the computed style to apply to Qt
1893         plugin widgets, as only a few of them make sense.
1894
1895         * WebCoreSupport/FrameLoaderClientQt.cpp:
1896         (WebCore::):
1897
1898 2007-08-10  Lars Knoll  <lars@trolltech.com>
1899
1900         Reviewed by Simon.
1901
1902         Use <object>'s classid attribute for creation of plugins through QWebPage::createPlugin.
1903
1904         * Api/qwebpage.cpp:
1905         (QWebPage::createPlugin):
1906         * Api/qwebpage.h:
1907         * WebCoreSupport/FrameLoaderClientQt.cpp:
1908         (WebCore::FrameLoaderClientQt::objectContentType):
1909         (WebCore::FrameLoaderClientQt::createPlugin):
1910
1911 2007-08-10  Simon Hausmann  <hausmann@kde.org>
1912
1913         Reviewed by Lars.
1914
1915         Added support for network jobs from Qt resources using the qrc protocol.
1916
1917         * Api/qwebnetworkinterface.cpp:
1918         (QWebNetworkInterface::addJob):
1919
1920 2007-08-10  Simon Hausmann  <hausmann@kde.org>
1921
1922         Reviewed by Lars.
1923
1924         Added support for "application/x-qt-styled-widget" that is treated like "application/x-qt-plugin" but also
1925         gets a Qt widget stylesheet set from the CSS computed style and the element style attribute.
1926
1927         * WebCoreSupport/FrameLoaderClientQt.cpp:
1928         (WebCore::FrameLoaderClientQt::objectContentType):
1929         (WebCore::):
1930         (WebCore::FrameLoaderClientQt::createPlugin):
1931
1932 2007-08-10  Simon Hausmann  <hausmann@kde.org>
1933
1934         Reviewed by Lars.
1935
1936         Added virtual QWebPage::createPlugin that is called for embedded objects with the mime type "application/x-qt-plugin"
1937         and fixed widget embedding by setting the right QWidget parent.
1938
1939         * Api/qwebpage.cpp:
1940         (QWebPage::createPlugin):
1941         * Api/qwebpage.h:
1942         * WebCoreSupport/FrameLoaderClientQt.cpp:
1943         (WebCore::FrameLoaderClientQt::objectContentType):
1944         (WebCore::FrameLoaderClientQt::createPlugin):
1945
1946 2007-08-02  George Staikos  <staikos@kde.org>
1947
1948         Reviewed by Simon.
1949
1950         Add an interface for the useragent string.
1951
1952         * Api/qwebpage.cpp:
1953         (QWebPage::userAgentStringForUrl):
1954         * Api/qwebpage.h:
1955         * WebCoreSupport/FrameLoaderClientQt.cpp:
1956         (WebCore::FrameLoaderClientQt::userAgent):
1957
1958 2007-08-01  Adam Treat  <treat@kde.org>
1959
1960         Reviewed by George Staikos.
1961
1962         Add an interface to manage global history for clients
1963
1964         * Api/headers.pri:
1965         * Api/qwebhistoryinterface.cpp: Added.
1966         (WebCore::historyContains):
1967         (gCleanupInterface):
1968         (QWebHistoryInterface::setDefaultInterface):
1969         (QWebHistoryInterface::defaultInterface):
1970         (QWebHistoryInterface::QWebHistoryInterface):
1971         * Api/qwebhistoryinterface.h: Added.
1972
1973 2007-07-30  Adam Treat  <treat@kde.org>
1974
1975         Fix build.
1976
1977         * WebCoreSupport/EditorClientQt.cpp:
1978         (WebCore::EditorClientQt::shouldMoveRangeAfterDelete):
1979         * WebCoreSupport/EditorClientQt.h:
1980
1981 2007-07-30  Simon Hausmann  <hausmann@kde.org>
1982
1983         Reviewed by Lars.
1984
1985         Link QtLauncher into $$OUTPUT_DIR/bin
1986
1987         * QtLauncher/QtLauncher.pro:
1988
1989 2007-07-29  Adam Treat  <treat@kde.org>
1990
1991         Reviewed by George Staikos.
1992
1993         Change QWebPage::paintEvent to draw using the individual rects provided
1994         via the QRegion and set the widget to use opaque paint events.
1995
1996         These changes greatly reduce the cpu load as we are no longer painting the
1997         entire page for each 1px scroll :P
1998
1999         * Api/qwebframe.cpp:
2000         (QWebFrame::render):
2001         * Api/qwebpage.cpp:
2002         (QWebPage::QWebPage):
2003         (QWebPage::paintEvent):
2004         * WebCoreSupport/ChromeClientQt.cpp:
2005         (WebCore::ChromeClientQt::addToDirtyRegion):
2006
2007 2007-07-29  Adam Treat  <treat@kde.org>
2008
2009         Reviewed by Alexey Proskuryakov.
2010
2011         Respect the margins when creating frames.
2012         Set the scroll mode to always off like we did before the rendered
2013         frames patch and the other ports do now.
2014
2015         * Api/qwebframe.cpp:
2016         (QWebFramePrivate::init):
2017
2018 2007-07-27  Holger Hans Peter Freyther  <zecke@selfish.org>
2019
2020         Reviewed by Mark.
2021
2022         Don't create an app bundle on OSX to keep WebKitTools/Scripts/run-launcher working.
2023
2024         * QtLauncher/QtLauncher.pro:
2025
2026 2007-07-27  Simon Hausmann  <hausmann@kde.org>
2027
2028         Reviewed by Lars.
2029
2030         Fix compilation with MSVC.
2031
2032         * Api/qwebpagehistory.cpp:
2033         (QWebPageHistory::operator=):
2034         * Api/qwebpagehistory.h:
2035         * Api/qwebsettings.cpp:
2036         (QWebSettings::operator=):
2037         * Api/qwebsettings.h:
2038
2039 2007-07-26  Qing Zhao  <qing@staikos.net>
2040
2041         Reviewed by George Staikos.
2042
2043         Add a signal for history notification.
2044
2045         * Api/qwebpage.h:
2046         * WebCoreSupport/FrameLoaderClientQt.cpp:
2047
2048 2007-07-24  Adam Treat  <treat@kde.org>
2049
2050         Reviewed by Niko and Lars.
2051
2052         These are no longer necessary or used.
2053
2054         * WebCoreSupport/FrameLoaderClientQt.cpp:
2055         * WebCoreSupport/FrameLoaderClientQt.h:
2056
2057 2007-07-20  Adam Treat  <adam@staikos.net>
2058
2059         Reviewed by George Staikos.
2060
2061         Add a signal for first layout and add the action type for the policy
2062         function.
2063
2064         * Api/qwebpage.cpp:
2065         (QWebPagePrivate::navigationRequested):
2066         (QWebPage::navigationRequested):
2067         * Api/qwebpage.h:
2068         * Api/qwebpage_p.h:
2069         * WebCoreSupport/FrameLoaderClientQt.cpp:
2070         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
2071         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2072
2073 2007-07-19  Adam Treat  <treat@kde.org>
2074
2075         Reviewed by George.
2076
2077         Do a recursive layout on the frame's children.  This fixes a
2078         segfault found when rendering some framesets.
2079
2080         * Api/qwebframe.cpp:
2081         (QWebFrame::render):
2082         (QWebFrame::layout):
2083         * Api/qwebframe.h:
2084
2085 2007-07-18  Timothy Hatcher  <timothy@apple.com>
2086
2087         Reviewed by Adam.
2088
2089         Make the Page with the now required InspectorClient.
2090
2091         * Api/qwebpage.cpp:
2092         (QWebPagePrivate::QWebPagePrivate):
2093         * WebKitPart/WebKitPart.cpp:
2094         (WebKitPart::initView):
2095
2096 2007-07-18  Sam Weinig  <sam@webkit.org>
2097
2098         Build fix.
2099
2100         * Api/qwebnetworkinterface.cpp:
2101         (QWebNetworkManager::started):
2102         * WebCoreSupport/FrameLoaderClientQt.cpp:
2103         (WebCore::FrameLoaderClientQt::canShowMIMEType):
2104         (WebCore::FrameLoaderClientQt::objectContentType):
2105
2106 2007-07-18  Lars Knoll <lars@trolltech.com>
2107
2108         Reviewed by Zack & Simon
2109
2110         Reallow setting of scrollbar policies on QWebFrame.
2111
2112         * Api/qwebframe.cpp:
2113         (QWebFrame::verticalScrollBarPolicy):
2114         (QWebFrame::setVerticalScrollBarPolicy):
2115         (QWebFrame::horizontalScrollBarPolicy):
2116         * Api/qwebframe.h:
2117
2118 2007-07-17  Adam Treat <treat@kde.org>
2119
2120         Build fix.
2121
2122         * WebCoreSupport/FrameLoaderClientQt.cpp:
2123         (WebCore::FrameLoaderClientQt::createFrame):
2124
2125 2007-07-17  Holger Hans Peter Freyther  <zecke@selfish.org>
2126
2127         Blind build fix for Qt after r24366 by adding the additional
2128         WebCore::ResourceRequest& parameter to the download method.
2129
2130         * WebCoreSupport/FrameLoaderClientQt.cpp:
2131         (WebCore::FrameLoaderClientQt::download):
2132         * WebCoreSupport/FrameLoaderClientQt.h:
2133
2134 2007-07-17  Adam Roben  <aroben@apple.com>
2135
2136         Remove ContextMenuClientQt::shouldIncludeInspectElementItem
2137
2138         Reviewed by Tim.
2139
2140         * WebCoreSupport/ContextMenuClientQt.cpp:
2141         * WebCoreSupport/ContextMenuClientQt.h:
2142
2143 2007-07-16  Adam Roben  <aroben@apple.com>
2144
2145         Updated ChromeClientQt for ChromeClient changes.
2146
2147         Reviewed by Darin.
2148
2149         * WebCoreSupport/ChromeClientQt.cpp:
2150         (WebCore::ChromeClientQt::print): Added a Frame* parameter.
2151         * WebCoreSupport/ChromeClientQt.h: Ditto.
2152
2153 2007-07-13  Mark Rowe  <mrowe@apple.com>
2154
2155         Reviewed by Mitz.
2156
2157         Build fix.  Stub out ChromeClientQt::print.
2158
2159         * WebCoreSupport/ChromeClientQt.cpp:
2160         (WebCore::ChromeClientQt::print):
2161         * WebCoreSupport/ChromeClientQt.h:
2162
2163 2007-07-12  George Staikos  <staikos@kde.org>
2164
2165         Qt build fix for assertions.
2166
2167         * Api/qwebnetworkinterface.cpp:
2168         (QWebNetworkManager::add):
2169
2170 2007-07-12  George Staikos  <staikos@kde.org>
2171
2172         Qt build fix.
2173
2174         * Api/qwebnetworkinterface.cpp:
2175         (QWebNetworkManager::add):
2176
2177 2007-07-10  Mark Rowe  <mrowe@apple.com>
2178
2179         Qt build fix after r24126.
2180
2181         * Api/qwebframe.cpp:
2182         (QWebFrame::evaluateJavaScript):
2183
2184 2007-07-10  Eli Fidler  <eli@staikos.net>
2185
2186         Reviewed by George Staikos.
2187
2188         Properly url-decode data urls.
2189
2190         * Api/qwebnetworkinterface.cpp:
2191         (QWebNetworkInterfacePrivate::parseDataUrl):
2192
2193 2007-07-09  Adam Treat  <adam@staikos.net>
2194
2195         Reviewed by George Staikos.
2196
2197         Convert QWebFrame from a QFrame to a pure QObject to eliminate all
2198         traces of widgets.
2199
2200         * Api/qwebframe.cpp:
2201         (QWebFramePrivate::init):
2202         (QWebFramePrivate::parentFrame):
2203         (QWebFrame::QWebFrame):
2204         (QWebFrame::render):
2205         (QWebFrame::pos):
2206         (QWebFrame::geometry):
2207         (QWebFrame::evaluateJavaScript):
2208         (QWebFrame::mouseMoveEvent):
2209         (QWebFrame::mousePressEvent):
2210         (QWebFrame::mouseDoubleClickEvent):
2211         (QWebFrame::mouseReleaseEvent):
2212         (QWebFrame::wheelEvent):
2213         * Api/qwebframe.h:
2214         * Api/qwebobjectpluginconnector.cpp:
2215         (QWebObjectPluginConnector::pluginParentWidget):
2216         * Api/qwebpage.cpp:
2217         (QWebPagePrivate::QWebPagePrivate):
2218         (QWebPagePrivate::createMainFrame):
2219         (QWebPage::QWebPage):
2220         (QWebPage::javaScriptAlert):
2221         (QWebPage::javaScriptConfirm):
2222         (QWebPage::javaScriptPrompt):
2223         (QWebPage::resizeEvent):
2224         (QWebPage::paintEvent):
2225         (QWebPage::mouseMoveEvent):
2226         (QWebPage::mousePressEvent):
2227         (QWebPage::mouseDoubleClickEvent):
2228         (QWebPage::mouseReleaseEvent):
2229         (QWebPage::wheelEvent):
2230         (QWebPage::keyPressEvent):
2231         (QWebPage::keyReleaseEvent):
2232         (QWebPage::focusInEvent):
2233         (QWebPage::focusOutEvent):
2234         (QWebPage::focusNextPrevChild):
2235         (QWebPage::chooseFile):
2236         * Api/qwebpage.h:
2237         * Api/qwebpage_p.h:
2238         * WebCoreSupport/ChromeClientQt.cpp:
2239         (WebCore::ChromeClientQt::addToDirtyRegion):
2240
2241 2007-07-09  George Staikos  <staikos@kde.org>
2242
2243         Fix a minor memory leak in the loader.
2244
2245         * Api/qwebnetworkinterface.cpp:
2246         (gCleanupInterface):
2247         (QWebNetworkInterface::setDefaultInterface):
2248         (QWebNetworkInterface::defaultInterface):
2249
2250 2007-07-09  George Staikos  <staikos@kde.org>
2251
2252         Fix a massive memory leak in the loader.
2253
2254         * Api/qwebnetworkinterface.cpp:
2255         (QWebNetworkManager::httpConnectionClosed):
2256         (WebCoreHttp::~WebCoreHttp):
2257
2258 2007-07-09  George Staikos  <staikos@kde.org>
2259
2260         Reviewed by Simon.
2261
2262         Rework much of the HTTP stuff to make it more stable, and add SSL and
2263         proxy support.  Major memory leak also discovered but it needs more
2264         research as the obvious fix causes crashes.
2265
2266         * Api/qwebnetworkinterface.cpp:
2267         (QWebNetworkManager::add):
2268         (QWebNetworkManager::started):
2269         (QWebNetworkManager::data):
2270         (WebCoreHttp::WebCoreHttp):
2271         (WebCoreHttp::~WebCoreHttp):
2272         (WebCoreHttp::request):
2273         (WebCoreHttp::scheduleNextRequest):
2274         (WebCoreHttp::getConnection):
2275         (WebCoreHttp::onResponseHeaderReceived):
2276         (WebCoreHttp::onReadyRead):
2277         (WebCoreHttp::onRequestFinished):
2278         (WebCoreHttp::onDone):
2279         (WebCoreHttp::onStateChanged):
2280         (WebCoreHttp::onSslErrors):
2281         (WebCoreHttp::onAuthenticationRequired):
2282         (WebCoreHttp::onProxyAuthenticationRequired):
2283         * Api/qwebnetworkinterface.h:
2284         * Api/qwebnetworkinterface_p.h:
2285         (WebCore::WebCoreHttp::HttpConnection::HttpConnection):
2286
2287 2007-07-06  Adam Treat  <adam@staikos.net>
2288
2289         Reviewed by George Staikos.
2290
2291         Convert QWebFrame to a QFrame from a scroll area.
2292
2293         * Api/qwebframe.cpp:
2294         (QWebFramePrivate::init):
2295         (QWebFramePrivate::parentFrame):
2296         (QWebFramePrivate::horizontalScrollBar):
2297         (QWebFramePrivate::verticalScrollBar):
2298         (QWebFrame::QWebFrame):
2299         (QWebFrame::resizeEvent):
2300         (QWebFrame::suppressScrollbars):
2301         (QWebFrame::paintEvent):
2302         (QWebFrame::mouseMoveEvent):
2303         (QWebFrame::mousePressEvent):
2304         (QWebFrame::mouseDoubleClickEvent):
2305         (QWebFrame::mouseReleaseEvent):
2306         (QWebFrame::wheelEvent):
2307         (QWebFrame::keyPressEvent):
2308         (QWebFrame::focusInEvent):
2309         (QWebFrame::focusOutEvent):
2310         (QWebFrame::evaluateJavaScript):
2311         * Api/qwebframe.h:
2312         * Api/qwebframe_p.h:
2313         * Api/qwebobjectpluginconnector.cpp:
2314         (QWebObjectPluginConnector::pluginParentWidget):
2315
2316 2007-07-04  Adam Roben  <aroben@apple.com>
2317
2318         Added a stub for ChromeClientQt::setToolTip
2319
2320         Reviewed by Sam.
2321
2322         * WebCoreSupport/ChromeClientQt.cpp:
2323         (WebCore::ChromeClientQt::setToolTip):
2324         * WebCoreSupport/ChromeClientQt.h:
2325
2326 2007-07-04  Adam Roben  <aroben@apple.com>
2327
2328         Added a stub for ChromeClientQt::mouseDidMoveOverElement
2329
2330         Reviewed by Sam.
2331
2332         * WebCoreSupport/ChromeClientQt.cpp:
2333         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2334         * WebCoreSupport/ChromeClientQt.h:
2335
2336 2007-06-28  Simon Hausmann  <hausmann@kde.org>
2337
2338         Reviewed by Zack.
2339
2340         Propagate mouse double click events from Qt to WebCore.
2341
2342         * Api/qwebframe.cpp:
2343         (QWebFrame::mouseDoubleClickEvent):
2344         * Api/qwebframe.h:
2345
2346 2007-06-28  Simon Hausmann  <hausmann@kde.org>
2347
2348         Reviewed by Zack.
2349
2350         Implemented clipboard functions in QWebPage, in particular can(Cut|Copy|Paste), cut/copy/paste as slot as well as a selectionChanged() signal.
2351
2352         * Api/qwebpage.cpp:
2353         (QWebPage::canCut):
2354         (QWebPage::canCopy):
2355         (QWebPage::canPaste):
2356         (QWebPage::cut):
2357         (QWebPage::copy):
2358         (QWebPage::paste):
2359         * Api/qwebpage.h:
2360         * WebCoreSupport/EditorClientQt.cpp:
2361
2362 2007-06-27  George Staikos  <staikos@kde.org>
2363
2364         Compile with various Qt configurations.
2365
2366         * Api/qwebnetworkinterface.cpp:
2367         (WebCoreHttp::scheduleNextRequest):
2368         * Api/qwebpage.cpp:
2369         (QWebPage::javaScriptPrompt):
2370         (QWebPage::dragEnterEvent):
2371         (QWebPage::dragLeaveEvent):
2372         (QWebPage::dragMoveEvent):
2373         (QWebPage::dropEvent):
2374         (QWebPage::chooseFile):
2375         * Api/qwebpage.h:
2376         * Api/qwebpage_p.h:
2377         * WebCoreSupport/DragClientQt.cpp:
2378         (WebCore::DragClientQt::startDrag):
2379
2380 2007-06-27  Eli Fidler  <eli@staikos.net>
2381
2382         Reviewed by George Staikos.
2383
2384         Check for QT_NO_IMAGE_TEXT and compile either way.
2385
2386         * Plugins/ICOHandler.cpp:
2387         (ICOHandler::read):
2388
2389 2007-06-27  Eli Fidler  <eli@staikos.net>
2390
2391         Reviewed by George Staikos.
2392
2393         Remove QT3_SUPPORT dependency in the ICO plugin.
2394
2395         * Plugins/ICOHandler.cpp:
2396         (IcoHeader::loadFromDIB):
2397
2398 2007-06-25  George Staikos  <staikos@kde.org>
2399
2400         Reviewed by Zack.
2401
2402         Start to add proxy and SSL support to WebKit Qt.  Proxy works
2403         unauthenticated.  Added hooks to be able to add authentication.
2404         Also fixes some network errors.
2405
2406         * Api/qwebnetworkinterface.cpp:
2407         (QWebNetworkRequestPrivate::setURL):
2408         (QWebNetworkJob::frame):
2409         (WebCoreHttp::WebCoreHttp):
2410         (WebCoreHttp::scheduleNextRequest):
2411         (WebCoreHttp::onRequestFinished):
2412         (WebCoreHttp::onDone):
2413         (WebCoreHttp::onSslErrors):
2414         (WebCoreHttp::onAuthenticationRequired):
2415         (WebCoreHttp::onProxyAuthenticationRequired):
2416         * Api/qwebnetworkinterface.h:
2417         * Api/qwebnetworkinterface_p.h:
2418         * Api/qwebpage.cpp:
2419         (QWebPage::setNetworkProxy):
2420         (QWebPage::networkProxy):
2421         * Api/qwebpage.h:
2422         * Api/qwebpage_p.h:
2423
2424 2007-06-21  Adam Treat  <adam@staikos.net>
2425
2426         Reviewed by George Staikos.
2427
2428         Implement the default resources on Qt.
2429
2430         * Api/qwebpage.cpp:
2431         (QWebPage::icon):
2432         * Api/qwebsettings.cpp:
2433         (QWebSettings::setWebGraphic):
2434         (QWebSettings::webGraphic):
2435         (loadResourcePixmap):
2436         * Api/qwebsettings.h:
2437
2438 2007-06-15  Adam Treat  <adam@staikos.net>
2439
2440         Reviewed by George Staikos.
2441
2442         Add ICO support to the Qt build.
2443
2444         * Api/qwebpage.cpp:
2445         (QWebPage::icon):
2446         * Api/qwebpage.h:
2447         * Api/qwebsettings.cpp:
2448         (QWebSettings::setIconDatabaseEnabled):
2449         (QWebSettings::iconDatabaseEnabled):
2450         * Api/qwebsettings.h:
2451         * Plugins: Added.
2452         * Plugins/ICOHandler.cpp: Added.
2453         (IcoHeader::operator >>):
2454         (IcoHeader::BMP_INFOHDR::):
2455         (IcoHeader::operator<<):
2456         (IcoHeader::LessDifference::LessDifference):
2457         (IcoHeader::LessDifference::operator ()):
2458         (IcoHeader::loadFromDIB):
2459         (ICOHandler::ICOHandler):
2460         (ICOHandler::canRead):
2461         (ICOHandler::read):
2462         (ICOHandler::write):
2463         (ICOHandler::name):
2464         (ICOPlugin::keys):
2465         (ICOPlugin::capabilities):
2466         (ICOPlugin::create):
2467         * Plugins/ICOHandler.h: Added.
2468         * Plugins/Plugins.pro: Added.
2469         * WebCoreSupport/FrameLoaderClientQt.cpp:
2470         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
2471
2472 2007-06-15  George Staikos  <staikos@kde.org>
2473
2474         Fixing the Qt build.
2475
2476         * WebCoreSupport/ContextMenuClientQt.cpp:
2477         (WebCore::ContextMenuClientQt::shouldIncludeInspectElementItem):
2478         * WebCoreSupport/ContextMenuClientQt.h:
2479
2480 2007-06-20  Adam Roben  <aroben@apple.com>
2481
2482         More speculative Qt build fixes.
2483
2484         Add a stub implementation of InspectorClientQt.
2485
2486         * WebCoreSupport/InspectorClientQt.cpp: Added.
2487         (WebCore::InspectorClientQt::inspectorDestroyed):
2488         (WebCore::InspectorClientQt::createPage):
2489         (WebCore::InspectorClientQt::showWindow):
2490         (WebCore::InspectorClientQt::closeWindow):
2491         (WebCore::InspectorClientQt::attachWindow):
2492         (WebCore::InspectorClientQt::detachWindow):
2493         (WebCore::InspectorClientQt::highlight):
2494         (WebCore::InspectorClientQt::hideHighlight):
2495         * WebCoreSupport/InspectorClientQt.h: Added.
2496
2497 2007-06-19  George Staikos  <staikos@kde.org>
2498
2499         Reviewed by Tim Hatcher.
2500
2501         Add https support.
2502
2503         * Api/qwebnetworkinterface.cpp:
2504         (QWebNetworkInterface::addJob):
2505         (QWebNetworkInterface::cancelJob):
2506         (WebCoreHttp::WebCoreHttp):
2507
2508 2007-06-14  George Staikos  <staikos@kde.org>
2509
2510         Reviewed by Lars.
2511
2512         Add evaluateJavaScript() method.
2513
2514         * Api/qwebframe.cpp:
2515         (QWebFrame::evaluateJavaScript):
2516         * Api/qwebframe.h:
2517
2518 2007-06-14  George Staikos  <staikos@kde.org>
2519
2520         Reviewed by Lars.
2521
2522         Implement most of the editing commands, better focus handling, fix some
2523         keyboard and mouse handling, and add keyboard navigation.  May be
2524         refactored later as the key switches are ugly.
2525
2526         * Api/qwebframe.cpp:
2527         (QWebFramePrivate::init):
2528         (QWebFrame::mousePressEvent):
2529         (QWebFrame::mouseReleaseEvent):
2530         (QWebFrame::wheelEvent):
2531         (QWebFrame::keyPressEvent):
2532         (QWebFrame::keyReleaseEvent):
2533         (QWebFrame::focusInEvent):
2534         (QWebFrame::focusOutEvent):
2535         (QWebFrame::focusNextPrevChild):
2536         * Api/qwebframe.h:
2537         * Api/qwebframe_p.h:
2538         * WebCoreSupport/EditorClientQt.cpp:
2539         (WebCore::EditorClientQt::handleKeypress):
2540
2541 2007-06-14  George Staikos  <staikos@kde.org>
2542
2543         Reviewed by Lars.
2544
2545         Implement all of the Javascript dialogs and file chooser.
2546         Also makes the statusbar virtual into a signal and shuffles some
2547         virtuals around a bit.  The helper in FrameLoaderClientQt may go away
2548         shortly.
2549
2550         * Api/qwebpage.cpp:
2551         (QWebPagePrivate::QWebPagePrivate):
2552         (QWebPage::javaScriptAlert):
2553         (QWebPage::javaScriptConfirm):
2554         (QWebPage::javaScriptPrompt):
2555         (QWebPage::chooseFile):
2556         * Api/qwebpage.h:
2557         * WebCoreSupport/ChromeClientQt.cpp:
2558         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
2559         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
2560         (WebCore::ChromeClientQt::runJavaScriptAlert):
2561         (WebCore::ChromeClientQt::runJavaScriptConfirm):
2562         (WebCore::ChromeClientQt::runJavaScriptPrompt):
2563         (WebCore::ChromeClientQt::setStatusbarText):
2564         * WebCoreSupport/FrameLoaderClientQt.cpp:
2565         (WebCore::FrameLoaderClientQt::chooseFile):
2566         * WebCoreSupport/FrameLoaderClientQt.h:
2567
2568 2007-06-14  Simon Hausmann  <hausmann@kde.org>
2569
2570         Reviewed by Zack.
2571
2572         Removed QWebHistoryItem::parent() as it is not implemented and WebCore's
2573
2574         HistoryItem itself doesn't seem to have a parent pointer either.
2575
2576         * Api/qwebpagehistory.h:
2577
2578 2007-06-14  Simon Hausmann  <hausmann@kde.org>
2579
2580         Reviewed by Zack.
2581
2582         Make it possible to copy QWebHistoryItem objects.
2583
2584         * Api/qwebpagehistory.cpp:
2585         * Api/qwebpagehistory.h:
2586
2587 2007-06-14  Lars Knoll <lars@trolltech.com>
2588
2589         Reviewed by George
2590
2591         Fix a crash when a request from the plugin resulted
2592         in a HTTP redirect.
2593
2594         * Api/qwebnetworkinterface.cpp:
2595         (QWebNetworkManager::started):
2596
2597 2007-06-14  Lars Knoll <lars@trolltech.com>
2598
2599         Reviewed by George.
2600
2601         Work around a bug in Qt's QHttp implementation and
2602         get web pages to load again.
2603
2604         * Api/qwebpage.cpp:
2605         (QWebPage::open):
2606
2607 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2608
2609         Reviewed by Lars.
2610
2611         Added a make install target that installs the Qt port and renamed
2612         WebKitQt to QtWebKit
2613
2614         * Api/headers.pri: Added.
2615         * Api/qtwebkit.prf: Added.
2616
2617 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2618
2619         Reviewed by Lars.
2620
2621         Added httpHeaderField setter/getter to QWebNetworkRequest for convenience.
2622
2623         * Api/qwebnetworkinterface.cpp:
2624         * Api/qwebnetworkinterface.h:
2625
2626 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2627
2628         Reviewed by Lars.
2629
2630         Changed QWebObjectPluginConnector::requestUrl to take a QWebNetworkRequest as argument.
2631
2632         * Api/qwebnetworkinterface.h:
2633         * Api/qwebobjectpluginconnector.cpp:
2634         (QWebObjectPluginConnector::requestUrl):
2635         * Api/qwebobjectpluginconnector.h:
2636
2637 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2638
2639         Reviewed by Lars.
2640
2641         Added a QWebNetworkRequest convenience constructor.
2642
2643         * Api/qwebnetworkinterface.cpp:
2644         * Api/qwebnetworkinterface.h:
2645         * Api/qwebpage.cpp:
2646         (QWebPage::open):
2647
2648 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2649
2650         Reviewed by Lars.
2651
2652         Changed the QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData)
2653         overload to take a QWebNetworkRequest instead.
2654
2655         * Api/qwebpage.cpp:
2656         (QWebPage::open):
2657         * Api/qwebpage.h:
2658
2659 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2660
2661         Reviewed by Lars.
2662
2663         In QWebPage::open(const QUrl &, const QHttpRequestHeader &, ...) don't make the population
2664         of the WebCore::ResourceRequest depend on the validity of the QHttpRequestHeader but just
2665         pick the individual fields if we can use them.
2666
2667         * Api/qwebpage.cpp:
2668         (QWebPage::open):
2669
2670 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2671
2672         Reviewed by Lars.
2673
2674         Minor QWebNetworkRequet API fixlet
2675
2676         * Api/qwebnetworkinterface.cpp:
2677         * Api/qwebnetworkinterface.h:
2678
2679 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2680
2681         Reviewed by Lars.
2682
2683         Use QWebNetworkRequest for QWebPage::navigationRequested.
2684
2685         * Api/qwebnetworkinterface.cpp:
2686         * Api/qwebnetworkinterface.h:
2687         * Api/qwebpage.cpp:
2688         (QWebPagePrivate::navigationRequested):
2689         (QWebPage::navigationRequested):
2690         * Api/qwebpage.h:
2691         * Api/qwebpage_p.h:
2692         * WebCoreSupport/FrameLoaderClientQt.cpp:
2693         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2694
2695 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2696
2697         Reviewed by Lars.
2698
2699         Some docs for QWebNetworkRequest
2700
2701         * Api/qwebnetworkinterface.cpp:
2702         (QWebNetworkRequest::QWebNetworkRequest):
2703         (QWebNetworkRequest::~QWebNetworkRequest):
2704
2705 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2706
2707         Reviewed by Lars.
2708
2709         Moved QWebNetworkJob::Method enum into QWebNetworkRequest.
2710
2711         * Api/qwebnetworkinterface.h:
2712         * Api/qwebobjectpluginconnector.cpp:
2713         (QWebObjectPluginConnector::requestUrl):
2714         * Api/qwebobjectpluginconnector.h:
2715
2716 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2717
2718         Reviewed by Lars.
2719
2720         Rename QWebNetworkJob::request() into QWebNetworkJob::httpHeader() and added
2721
2722         * Api/qwebnetworkinterface.cpp:
2723         (QWebNetworkJob::postData):
2724         (WebCoreHttp::WebCoreHttp):
2725         (WebCoreHttp::scheduleNextRequest):
2726         * Api/qwebnetworkinterface.h:
2727
2728 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2729
2730         Reviewed by Lars.
2731
2732         Introduce QWebNetworkRequest in the public API.
2733
2734         * Api/qwebnetworkinterface.cpp:
2735         (QWebNetworkRequestPrivate::init):
2736         * Api/qwebnetworkinterface.h:
2737         * Api/qwebnetworkinterface_p.h:
2738         * WebCoreSupport/FrameLoaderClientQt.cpp:
2739         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2740
2741 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2742
2743         Reviewed by Lars.
2744
2745         Changed QWebNetworkJobPrivate to aggregate a QWebNetworkRequest instead of inheriting from it.
2746
2747         * Api/qwebnetworkinterface.cpp:
2748         (QWebNetworkManager::add):
2749         (QWebNetworkManager::started):
2750         (QWebNetworkManager::data):
2751         (QWebNetworkManager::finished):
2752         * Api/qwebnetworkinterface_p.h:
2753         * Api/qwebobjectpluginconnector.cpp:
2754         (QWebObjectPluginConnector::requestUrl):
2755
2756 2007-06-13  Simon Hausmann  <hausmann@kde.org>
2757
2758         Reviewed by Lars.
2759
2760         Rename QWebNetworkRequest::request into QWebNetworkRequest::httpHeader.
2761
2762         * Api/qwebnetworkinterface.cpp:
2763         (QWebNetworkRequest::init):
2764         (QWebNetworkRequest::setURL):
2765         (QWebNetworkManager::add):
2766         (QWebNetworkManager::started):
2767         * Api/qwebnetworkinterface_p.h:
2768         * WebCoreSupport/FrameLoaderClientQt.cpp:
2769         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2770
2771 2007-06-12  Lars Knoll <lars@trolltech.com>
2772
2773         Reviewed by George Staikos.
2774
2775         Remove duplicate symbols.
2776
2777         * Api/qwebobjectplugin_p.h:
2778
2779 2007-06-13  Lars Knoll <lars@trolltech.com>
2780
2781         Reviewed by Niko.
2782
2783         Fix compilation, and remove dependency on Qt
2784         private header.
2785
2786         * Api/qwebobjectplugin_p.h:
2787         (QWebFactoryLoader::supportsMimeType):
2788
2789 2007-06-13  Lars Knoll <lars@trolltech.com>
2790
2791         Reviewed by Niko.
2792
2793         Parts of the patch done by Zack.
2794         Fix up some parts in the implementation of QWebNetworkInterface
2795         so it can be used by plugins.
2796         Change the plugin API so we can actually get all the information
2797         required by the JS bridge from them as well.
2798
2799         * Api/qwebnetworkinterface.cpp:
2800         (QWebNetworkJob::cancelled):
2801         (QWebNetworkManager::cancel):
2802         (QWebNetworkManager::started):
2803         (QWebNetworkManager::finished):
2804         * Api/qwebobjectplugin.cpp:
2805         (QWebFactoryLoader::QWebFactoryLoader):
2806         (QWebFactoryLoader::descriptionForName):
2807         (QWebFactoryLoader::mimetypesForName):
2808         (QWebFactoryLoader::mimeTypeForExtension):
2809         (QWebFactoryLoader::extensions):
2810         (QWebFactoryLoader::nameForMimetype):
2811         (QWebFactoryLoader::create):
2812         (QWebObjectPlugin::descriptionForKey):
2813         (QWebObjectPlugin::mimetypesForKey):
2814         * Api/qwebobjectplugin.h:
2815         * Api/qwebobjectplugin_p.h:
2816         (QWebFactoryLoader::names):
2817         * Api/qwebobjectpluginconnector.cpp:
2818         (QWebObjectPluginConnector::requestUrl):
2819         * Api/qwebpage.cpp:
2820         (QWebPage::networkInterface):
2821
2822 2007-06-11  Simon Hausmann  <hausmann@kde.org>
2823
2824         Reviewed by Lars.
2825
2826         Added a QWebPage::open overload to allow specifying the http header and post data.
2827         (it's an overload instead of a merged openUrl to avoid including qhttp.h in qwebpage.h,
2828         which would imply that one has to have QT += network in the .pro file for using WebKitQt)
2829
2830         * Api/qwebpage.cpp:
2831         * Api/qwebpage.h:
2832
2833 2007-06-11  Simon Hausmann  <hausmann@kde.org>
2834
2835         Reviewed by Lars.
2836
2837         Added the possibility to intercept url requests through QWebPage::navigationRequested.
2838
2839         * Api/qwebpage.cpp:
2840         (QWebPagePrivate::QWebPagePrivate):
2841         (QWebPage::createFrame):
2842         * Api/qwebpage.h:
2843         * Api/qwebpage_p.h:
2844         * WebCoreSupport/FrameLoaderClientQt.cpp:
2845
2846 2007-06-11  Simon Hausmann  <hausmann@kde.org>
2847
2848         Reviewed by Lars.
2849
2850         Added a QWebNetworkRequest::init overload that takes a WebCore::ResourceRequest,
2851         to be called from FrameLoaderClientQt in the near future.
2852
2853         * Api/qwebnetworkinterface.cpp:
2854         (QWebNetworkManager::add):
2855         * Api/qwebnetworkinterface_p.h:
2856
2857 2007-06-11  Simon Hausmann  <hausmann@kde.org>
2858
2859         Reviewed by Lars.
2860
2861         Moved the postData setup into QWebNetworkRequest::init.
2862
2863         * Api/qwebnetworkinterface.cpp:
2864         (QWebNetworkRequest::init):
2865         (QWebNetworkManager::add):
2866
2867 2007-06-11  Simon Hausmann  <hausmann@kde.org>
2868
2869         Reviewed by Lars.
2870
2871         Moved HTTP header field propagation to QWebNetworkRequest::init.
2872
2873         * Api/qwebnetworkinterface.cpp:
2874         (QWebNetworkRequest::init):
2875         (QWebNetworkManager::add):
2876
2877 2007-06-11  Simon Hausmann  <hausmann@kde.org>
2878
2879         Reviewed by Lars.
2880
2881         Started moving the code to separate a WebCore::ResourceRequest into a QUrl, postData
2882         and QHttpRequestHeader into a separate little QWebNetworkRequest struct.
2883
2884         * Api/qwebnetworkinterface.cpp:
2885         (QWebNetworkRequest::init):
2886         (QWebNetworkManager::add):
2887         * Api/qwebnetworkinterface_p.h:
2888         * Api/qwebobjectpluginconnector.cpp:
2889         (QWebObjectPluginConnector::requestUrl):
2890
2891 2007-06-11  Zack Rusin <zrusin@trolltech.com>
2892
2893         Reviewed by Lars
2894
2895         Forgot to export the plugin connector.
2896
2897         * Api/qwebobjectpluginconnector.h
2898
2899 2007-06-08  Lars Knoll <lars@trolltech.com>
2900
2901         Reviewed by Zack.
2902
2903         Add a QWebObjectPluginConnector class. The class will
2904         facility communication between the plugin and WebKit.
2905         Currently it's used to make the plugin network capable.
2906
2907         * Api/qwebnetworkinterface.cpp:
2908         (QWebNetworkJobPrivate::setDefaults):
2909         (QWebNetworkManager::add):
2910         (QWebNetworkManager::started):
2911         (QWebNetworkManager::data):
2912         (QWebNetworkManager::finished):
2913         * Api/qwebnetworkinterface.h:
2914         * Api/qwebnetworkinterface_p.h:
2915         (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
2916         * Api/qwebobjectplugin.cpp:
2917         (QWebFactoryLoader::create):
2918         * Api/qwebobjectplugin.h:
2919         * Api/qwebobjectplugin_p.h:
2920         * Api/qwebobjectpluginconnector.cpp: Added.
2921         (QWebObjectPluginConnector::QWebObjectPluginConnector):
2922         (QWebObjectPluginConnector::frame):
2923         (QWebObjectPluginConnector::pluginParentWidget):
2924         (QWebObjectPluginConnector::requestUrl):
2925         * Api/qwebobjectpluginconnector.h: Added.
2926         (QWebObjectPluginConnector::):
2927         * WebCoreSupport/FrameLoaderClientQt.cpp:
2928         (WebCore::FrameLoaderClientQt::createPlugin):
2929
2930 2007-06-06  Lars Knoll <lars@trolltech.com>
2931
2932         Reviewed by Zack
2933
2934         Add an API to create and load plugins.
2935         Don't include moc files by hand anymore, rather let
2936         qmake handle them.
2937
2938         * Api/qcookiejar.cpp:
2939         (QCookieJar::cookieJar):
2940         * Api/qwebframe.cpp:
2941         (QWebFrame::scrollContentsBy):
2942         * Api/qwebnetworkinterface.cpp:
2943         * Api/qwebobjectplugin.cpp: Added.
2944         (QWebFactoryLoader::QWebFactoryLoader):
2945         (QWebFactoryLoader::self):
2946         (QWebFactoryLoader::mimeTypeForExtension):
2947         (QWebFactoryLoader::create):
2948         (QWebObjectPlugin::QWebObjectPlugin):
2949         (QWebObjectPlugin::~QWebObjectPlugin):
2950         (QWebObjectPlugin::extensionsForMimetype):
2951         * Api/qwebobjectplugin.h: Added.
2952         * Api/qwebobjectplugin_p.h: Added.
2953         (QWebFactoryLoader::mimeTypes):
2954         (QWebFactoryLoader::extensions):
2955         (QWebFactoryLoader::supportsMimeType):
2956         * Api/qwebpage.cpp:
2957         (QWebPage::settings):
2958         * WebCoreSupport/FrameLoaderClientQt.cpp:
2959         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
2960         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
2961         (WebCore::FrameLoaderClientQt::objectContentType):
2962         (WebCore::FrameLoaderClientQt::createPlugin):
2963
2964 2007-05-28  Zack Rusin  <zrusin@trolltech.com>
2965
2966         Reviewed by andersca and simon
2967
2968         Adding public settings Api to the Qt port.
2969         QWebSetting's is a value based settings
2970         object settable on the QWebPage.
2971
2972         * Api/qwebpage.cpp:
2973         (QWebPagePrivate::QWebPagePrivate):
2974         (QWebPage::QWebPage):
2975         (QWebPage::setSettings):
2976         (QWebPage::settings):
2977         * Api/qwebpage.h:
2978         * Api/qwebsettings.cpp: Added.
2979         (QWebSettingsPrivate::QWebSettingsPrivate):
2980         (QWebSettings::QWebSettings):
2981         (QWebSettings::~QWebSettings):
2982         (QWebSettings::setMinimumFontSize):
2983         (QWebSettings::minimumFontSize):
2984         (QWebSettings::setMinimumLogicalFontSize):
2985         (QWebSettings::minimumLogicalFontSize):
2986         (QWebSettings::setDefaultFontSize):
2987         (QWebSettings::defaultFontSize):
2988         (QWebSettings::setDefaultFixedFontSize):
2989         (QWebSettings::defaultFixedFontSize):
2990         (QWebSettings::setUserStyleSheetLocation):
2991         (QWebSettings::userStyleSheetLocation):
2992         (QWebSettings::setGlobal):
2993         (QWebSettings::global):
2994         (QWebSettings::setFontFamily):
2995         (QWebSettings::fontFamily):
2996         (QWebSettings::setAttribute):
2997         (QWebSettings::testAttribute):
2998         * Api/qwebsettings.h: Added.
2999         * QtLauncher/main.cpp:
3000         (main):
3001 2007-05-27  Kevin Ollivier  <kevino@theolliviers.com>
3002
3003         Reviewed by Sam Weinig.
3004         
3005         Consolidate all notImplemented() macro definitions into
3006         one header file for all platforms.
3007
3008         * WebCoreSupport/ChromeClientQt.cpp:
3009         * WebCoreSupport/ContextMenuClientQt.cpp:
3010         * WebCoreSupport/EditorClientQt.cpp:
3011         * WebCoreSupport/FrameLoaderClientQt.cpp:
3012
3013 2007-05-25  George Staikos  <staikos@kde.org>
3014
3015         Reviewed by Simon.
3016
3017         The http loader should only ask for .... http cookies!
3018
3019         * Api/qwebnetworkinterface.cpp:
3020         (QWebNetworkManager::add):
3021
3022 2007-05-24  Simon Hausmann  <hausmann@kde.org>
3023
3024         Reviewed by Zack.
3025
3026         Fix multipart/form-data HTTP POSTs. The content-type wasn't set
3027         correctly. Fortunately WebCore does it already, so there's no need
3028         for us to do it since we already transfer all HTTP header fields :)
3029
3030         * Api/qwebnetworkinterface.cpp:
3031         (QWebNetworkManager::add):
3032
3033 2007-05-23  Simon Hausmann  <hausmann@kde.org>
3034
3035         Reviewed by Zack, idea from Lars.
3036
3037         Share WebCoreHttp and therefore HTTP connections among multiple
3038         QWebNetworkInterface instances by moving the code into
3039         QWebNetworkManager.
3040
3041         * Api/qwebnetworkinterface.cpp:
3042         (QWebNetworkManager::addHttpJob):
3043         (QWebNetworkManager::cancelHttpJob):
3044         (QWebNetworkManager::httpConnectionClosed):
3045         (QWebNetworkInterface::addJob):
3046         (QWebNetworkInterface::cancelJob):
3047         (WebCoreHttp::scheduleNextRequest):
3048         (WebCoreHttp::onResponseHeaderReceived):
3049         (WebCoreHttp::onReadyRead):
3050         (WebCoreHttp::onRequestFinished):
3051         (WebCoreHttp::cancel):
3052         * Api/qwebnetworkinterface.h:
3053         * Api/qwebnetworkinterface_p.h:
3054
3055 2007-05-23  Simon Hausmann  <hausmann@kde.org>
3056
3057         Reviewed by Zack, discussed also with Lars.
3058
3059         Make it possible to specify a per-QWebPage network interface (needed
3060         for the KDE KIO integration).
3061
3062         Merged the file and the network loader into
3063         QWebNetworkInterface(Private), which simplifies the loading code.
3064
3065         When receiving a redirection don't emit the data of the redirected job
3066         to the document. (otherwise the kind of "This page has moved" text
3067         appears right on top of the real page content)
3068
3069         * Api/qwebnetworkinterface.cpp:
3070         (qHash):
3071         (operator==):
3072         (QWebNetworkJob::QWebNetworkJob):
3073         (QWebNetworkJob::networkInterface):
3074         (QWebNetworkManager::add):
3075         (QWebNetworkManager::cancel):
3076         (QWebNetworkManager::data):
3077         (QWebNetworkManager::finished):
3078         (QWebNetworkInterfacePrivate::sendFileData):
3079         (QWebNetworkInterfacePrivate::parseDataUrl):
3080         (QWebNetworkInterfacePrivate::addHttpJob):
3081         (QWebNetworkInterfacePrivate::httpConnectionClosed):
3082         (QWebNetworkInterface::setDefaultInterface):
3083         (QWebNetworkInterface::QWebNetworkInterface):
3084         (QWebNetworkInterface::addJob):
3085         (QWebNetworkInterface::cancelJob):
3086         (WebCoreHttp::scheduleNextRequest):
3087         (WebCoreHttp::onResponseHeaderReceived):
3088         (WebCoreHttp::onReadyRead):
3089         (WebCoreHttp::onRequestFinished):
3090         (WebCoreHttp::cancel):
3091         * Api/qwebnetworkinterface.h:
3092         * Api/qwebnetworkinterface_p.h:
3093         * Api/qwebpage.cpp:
3094         (QWebPagePrivate::QWebPagePrivate):
3095         (QWebPage::setNetworkInterface):
3096         * Api/qwebpage.h:
3097         * Api/qwebpage_p.h:
3098
3099 2007-05-23  Lars Knoll <lars@trolltech.com>
3100
3101         Reviewed by Zack
3102
3103         Don't do HTTP downloads in a second thread. Simplifies
3104         the code significantly and fixes crashes on some
3105         Web pages.
3106
3107         * Api/qwebnetworkinterface.cpp:
3108         (QWebNetworkManager::add):
3109         (QWebNetworkInterface::QWebNetworkInterface):
3110         (QWebNetworkInterface::addJob):
3111         (QWebNetworkInterface::cancelJob):
3112         (LoaderThread::LoaderThread):
3113         (LoaderThread::run):
3114         (WebCoreHttp::cancel):
3115         (NetworkLoader::NetworkLoader):
3116         (NetworkLoader::request):
3117         (NetworkLoader::cancel):
3118         * Api/qwebnetworkinterface_p.h:
3119         * WebCoreSupport/FrameLoaderClientQt.cpp:
3120         (WebCore::FrameLoaderClientQt::committedLoad):
3121         (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
3122
3123 2007-05-23  Lars Knoll <lars@trolltech.com>
3124
3125         Reviewed by Simon.
3126
3127         * Api/qwebnetworkinterface.cpp:
3128         (QWebNetworkJobPrivate::setURL):
3129         (QWebNetworkManager::started):
3130             Fix Host: line in HTTP headers and resolving of relative URLs
3131             when redirecting.
3132         * Api/qwebnetworkinterface_p.h:
3133             Clean up qHash forward declaration a bit.
3134
3135 2007-05-23  Simon Hausmann  <hausmann@kde.org>
3136
3137         Reviewed by Zack.
3138
3139         * QtLauncher/main.cpp:
3140         (MainWindow::MainWindow): Fix loading progress signal/slot connection.
3141
3142 2007-05-22  Simon Hausmann  <hausmann@kde.org>
3143
3144         Reviewed by Lars.
3145
3146         * Api/qwebnetworkinterface.cpp:
3147         (QWebNetworkManager::add): Fix http headers for POST.
3148
3149 2007-05-21  Lars Knoll <lars@trolltech.com>
3150
3151         Reviewed by Simon
3152
3153         Remove the userHandle methods from QWebnetworkJob again.
3154         They don't really give us anything and just clutter the API.
3155
3156         * Api/qwebnetworkinterface.cpp:
3157         * Api/qwebnetworkinterface.h:
3158         * Api/qwebnetworkinterface_p.h:
3159
3160 2007-05-21  Simon Hausmann  <hausmann@kde.org>
3161
3162         Reviewed by Zack.
3163
3164         * Api/qwebnetworkinterface.h: Export the net API.
3165
3166 2007-05-21  Lars Knoll <lars@trolltech.com>
3167
3168         Reviewed by Zack.
3169
3170         Add an API layer for network downloads. Basically QWebnetworkInterface
3171         is an interface class for downloading resources. QWebnetworkJob describes
3172         the actual object to download.
3173
3174         QWebNetworkInterface has a default implementation that replaces the
3175         old ResourceHandleManager class in the Qt port.
3176
3177         * Api/qwebnetworkinterface.cpp: Added.
3178         (QWebNetworkJobPrivate::setURL):
3179         (QWebNetworkJob::QWebNetworkJob):
3180         (QWebNetworkJob::~QWebNetworkJob):
3181         (QWebNetworkJob::url):
3182         (QWebNetworkJob::postData):
3183         (QWebNetworkJob::request):
3184         (QWebNetworkJob::response):
3185         (QWebNetworkJob::setResponse):
3186         (QWebNetworkJob::cancelled):
3187         (QWebNetworkJob::ref):
3188         (QWebNetworkJob::deref):
3189         (QWebNetworkJob::setUserHandle):
3190         (QWebNetworkJob::userHandle):
3191         (QWebNetworkManager::QWebNetworkManager):
3192         (QWebNetworkManager::self):
3193         (QWebNetworkManager::add):
3194         (QWebNetworkManager::cancel):
3195         (QWebNetworkManager::started):
3196         (QWebNetworkManager::data):
3197         (QWebNetworkManager::finished):
3198         (QWebNetworkInterface::setDefaultInterface):
3199         (QWebNetworkInterface::defaultInterface):
3200         (QWebNetworkInterface::QWebNetworkInterface):
3201         (QWebNetworkInterface::~QWebNetworkInterface):
3202         (QWebNetworkInterface::addJob):
3203         (QWebNetworkInterface::cancelJob):
3204         (LoaderThread::LoaderThread):
3205         (LoaderThread::run):
3206         (FileLoader::FileLoader):
3207         (FileLoader::request):
3208         (FileLoader::sendData):
3209         (FileLoader::parseDataUrl):
3210         (WebCoreHttp::WebCoreHttp):
3211         (WebCoreHttp::~WebCoreHttp):
3212         (WebCoreHttp::request):
3213         (WebCoreHttp::scheduleNextRequest):
3214         (WebCoreHttp::getConnection):
3215         (WebCoreHttp::onResponseHeaderReceived):
3216         (WebCoreHttp::onReadyRead):
3217         (WebCoreHttp::onRequestFinished):
3218         (WebCoreHttp::onStateChanged):
3219         (WebCoreHttp::cancel):
3220         (HostInfo::HostInfo):
3221         (qHash):
3222         (operator==):
3223         (NetworkLoader::NetworkLoader):
3224         (NetworkLoader::~NetworkLoader):
3225         (NetworkLoader::request):
3226         (NetworkLoader::connectionClosed):
3227         (NetworkLoader::cancel):
3228         * Api/qwebnetworkinterface.h: Added.
3229         (QWebNetworkJob::setHandle):
3230         (QWebNetworkJob::handle):
3231         * Api/qwebnetworkinterface_p.h: Added.
3232         (WebCore::LoaderThread::):
3233         (WebCore::LoaderThread::waitForSetup):
3234         (WebCore::HostInfo::HostInfo):
3235
3236 2007-05-18  Simon Hausmann  <hausmann@kde.org>
3237
3238         Reviewed by Nikolas.
3239
3240         * Api/qwebpage.h: Changed the loadProgressChanged API to use an
3241         percent integer instead of a double precision floating pointer number.
3242         * WebCoreSupport/FrameLoaderClientQt.cpp:
3243         (WebCore::FrameLoaderClientQt::setFrame):
3244         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
3245         * WebCoreSupport/FrameLoaderClientQt.h:
3246
3247 2007-05-18  Marius Bugge Monsen  <mbm@trolltech.com>
3248
3249         Reviewed by Zack Rusin.
3250
3251         The default constructed KeyboardEvent has
3252         no PlatformKeyboardEvent.
3253
3254         * WebCoreSupport/EditorClientQt.cpp:
3255         (WebCore::EditorClientQt::handleKeypress):
3256
3257 2007-05-17  Adam Treat <adam@staikos.net>
3258
3259         Reviewed by George Staikos.
3260
3261         - Implement frameLoadCompleted
3262         - Fix build (by George)
3263
3264         * WebCoreSupport/FrameLoaderClientQt.cpp:
3265         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
3266         (WebCore::FrameLoaderClientQt::createFrame):
3267
3268 2007-05-17  Adam Treat  <adam@staikos.net>
3269
3270         Reviewed by George Staikos.
3271
3272         Implement canShowMIMEType
3273
3274         * WebCoreSupport/FrameLoaderClientQt.cpp:
3275         (WebCore::FrameLoaderClientQt::canShowMIMEType):
3276
3277 2007-05-16  Lars Knoll <lars@trolltech.com>
3278
3279         Reviewed by Zack
3280
3281         pass the mouse events to the event handler, not the frameview.
3282
3283         * Api/qwebframe.cpp:
3284         (QWebFrame::mouseMoveEvent):
3285         (QWebFrame::mouseReleaseEvent):
3286
3287 2007-05-14  Lars Knoll <lars@trolltech.com>
3288
3289         Reviewed by Zack
3290
3291         Updates after Maciej's frame change.
3292
3293         * Api/qwebpage.cpp:
3294         (QWebPage::stop):
3295               Call stopForUserCancel() instead of stopAllLoaders()
3296         * WebCoreSupport/FrameLoaderClientQt.cpp:
3297         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
3298         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3299         (WebCore::FrameLoaderClientQt::didFinishLoad):
3300         (WebCore::FrameLoaderClientQt::setMainDocumentError):
3301         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
3302         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
3303         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3304         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3305               Call QWebFrame::loadDone() from the places it's supposed to be
3306               called from.
3307
3308 2007-05-12  Maciej Stachowiak  <mjs@apple.com>
3309
3310         Reviewed by Rob Buis.
3311         
3312         - call Frame::init as needed - this prevents crashes but pages don't appear.
3313
3314         * Api/qwebframe.cpp:
3315         (QWebFramePrivate::init):
3316         * WebKitPart/WebKitPart.cpp:
3317         (WebKitPart::initView):
3318
3319 2007-05-08  Steve Falkenburg  <sfalken@apple.com>
3320
3321         Reviewed by Ada.
3322         
3323         Slight modification to last editor method fix.
3324
3325         * WebCoreSupport/EditorClientQt.cpp:
3326         (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
3327         * WebCoreSupport/EditorClientQt.h:
3328
3329 2007-05-03  Steve Falkenburg  <sfalken@apple.com>
3330
3331         Reviewed by Oliver.
3332
3333         Add missing user description parameter to spelling-related editor client method.
3334
3335         * WebCoreSupport/EditorClientQt.cpp:
3336         (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
3337         * WebCoreSupport/EditorClientQt.h:
3338
3339 2007-04-29  Oliver Hunt  <oliver@apple.com>
3340
3341         Reviewed by Zack.
3342
3343         Tie QT drag events to the DragController logic
3344         to allow drag and drop events to be handled by
3345         webkit.
3346
3347         * Api/qwebframe.cpp:
3348         * Api/qwebframe.h:
3349         * Api/qwebpage.cpp:
3350         (QWebPagePrivate::QWebPagePrivate):
3351         (QWebPage::QWebPage):
3352         (dropActionToDragOp):
3353         (dragOpToDropAction):
3354         (QWebPage::dragEnterEvent):
3355         (QWebPage::dragLeaveEvent):
3356         (QWebPage::dragMoveEvent):
3357         (QWebPage::dropEvent):
3358         * Api/qwebpage.h:
3359         * WebCoreSupport/DragClientQt.cpp:
3360         (WebCore::DragClientQt::startDrag):
3361         * WebCoreSupport/DragClientQt.h:
3362         (WebCore::DragClientQt::DragClientQt):
3363
3364 2007-04-27  Holger Freyther <freyther@kde.org>
3365
3366         Reviewed by Maciej.
3367
3368         Remove unmaintained CMake build system.
3369
3370         * QtLauncher/CMakeLists.txt: Removed.
3371         * WebKitPart/CMakeLists.txt: Removed.
3372
3373 2007-04-25  Steve Falkenburg  <sfalken@apple.com>
3374
3375         Reviewed by Adam.
3376         
3377         Fix spelling error in spelling method name.
3378
3379         * WebCoreSupport/EditorClientQt.cpp:
3380         (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
3381         * WebCoreSupport/EditorClientQt.h:
3382
3383 2007-04-24  Steve Falkenburg  <sfalken@apple.com>
3384
3385         Reviewed by Oliver.
3386         
3387         Spelling and grammar stubs
3388
3389         * WebCoreSupport/EditorClientQt.cpp:
3390         (WebCore::EditorClientQt::ignoreWordInSpellDocument):
3391         (WebCore::EditorClientQt::learnWord):
3392         (WebCore::EditorClientQt::checkSpellingOfString):
3393         (WebCore::EditorClientQt::checkGrammarOfString):
3394         (WebCore::EditorClientQt::udpateSpellingUIWithGrammarString):
3395         (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord):
3396         (WebCore::EditorClientQt::showSpellingUI):
3397         (WebCore::EditorClientQt::spellingUIIsShowing):
3398         (WebCore::EditorClientQt::getGuessesForWord):
3399         * WebCoreSupport/EditorClientQt.h:
3400
3401 2007-04-11  MorganL  <morganl.webkit@yahoo.com>
3402
3403         Reviewed by Maciej.
3404
3405         Add a Frame pointer to ChromeClient methods:
3406         http://bugs.webkit.org/show_bug.cgi?id=13127
3407
3408         * WebCoreSupport/ChromeClientQt.cpp:
3409         (WebCore::ChromeClientQt::createWindow):
3410         (WebCore::ChromeClientQt::createModalDialog):
3411         * WebCoreSupport/ChromeClientQt.h:
3412
3413 2007-04-12  Mark Rowe  <mrowe@apple.com>
3414
3415         Second part of Qt build fix.
3416
3417         * WebCoreSupport/FrameLoaderClientQt.cpp:
3418         (WebCore::FrameLoaderClientQt::loadedFromCachedPage):
3419         (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage):
3420         (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage):
3421         * WebCoreSupport/FrameLoaderClientQt.h:
3422
3423 2007-03-27  Zack Rusin  <zrusin@trolltech.com>
3424
3425         Fix the rendering crashes due triggered
3426         asserts. Improve a bit the layout
3427         scheduling.
3428
3429         * Api/qwebframe.cpp:
3430         (QWebFrame::resizeEvent):
3431         (QWebFrame::paintEvent):
3432         * WebCoreSupport/FrameLoaderClientQt.cpp:
3433         (WebCore::FrameLoaderClientQt::forceLayout):
3434
3435 2007-03-16  Lars Knoll <lars@trolltech.com>
3436
3437         Fix the Qt build once again.
3438
3439         * WebCoreSupport/EditorClientQt.cpp:
3440         (WebCore::EditorClientQt::handleKeypress):
3441         * WebCoreSupport/FrameLoaderClientQt.cpp:
3442         (WebCore::FrameLoaderClientQt::blockedError):
3443         * WebCoreSupport/FrameLoaderClientQt.h:
3444
3445 2007-03-13  Lars Knoll <lars@trolltech.com>
3446
3447         Reviewed by George.
3448
3449         Don't try to load <object> tags with an invalid url.
3450         Fixes LayoutTests/fast/dom/object-plugin-hides-properties.html
3451         which hit an assertion in the frameloader.
3452
3453         * WebCoreSupport/FrameLoaderClientQt.cpp:
3454         (WebCore::FrameLoaderClientQt::objectContentType):
3455
3456 2007-03-13  Lars Knoll <lars@trolltech.com>
3457
3458         Reviewed by Anders.
3459
3460         Fix some crashes in the Qt build.
3461
3462         * Api/qwebframe.cpp:
3463         (QWebFrame::markup):
3464             Check for null pointer
3465         * WebCoreSupport/FrameLoaderClientQt.cpp:
3466         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3467             Don't use an async callback into the FrameLoader.
3468         (WebCore::FrameLoaderClientQt::createFrame):
3469
3470 2007-03-11  Oliver Hunt  <oliver@apple.com>
3471
3472         Reviewed by Adele.
3473
3474         Stub for EditorClientQt::respondToChangedSelection
3475
3476         * WebCoreSupport/EditorClientQt.cpp:
3477         (WebCore::EditorClientQt::respondToChangedSelection):
3478         * WebCoreSupport/EditorClientQt.h:
3479
3480 2007-03-07  Adele Peterson  <adele@apple.com>
3481
3482         Reviewed by Darin.
3483
3484         WebKitQT part of fix for:
3485         http://bugs.webkit.org/show_bug.cgi?id=10871
3486         http://bugs.webkit.org/show_bug.cgi?id=12677
3487         <rdar://problem/4823129> REGRESSION: IME key events different in nightly
3488         <rdar://problem/4759563> REGRESSION: Return key is always sent when you confirm a clause in kotoeri
3489
3490         * WebCoreSupport/EditorClientQt.cpp:
3491         (WebCore::EditorClientQt::handleKeypress): Changed handleKeyPress to handleKeypress.
3492         (WebCore::EditorClientQt::handleInputMethodKeypress): Added.
3493         * WebCoreSupport/EditorClientQt.h:
3494
3495 2007-03-07  Darin Adler  <darin@apple.com>
3496
3497         * WebCoreSupport/FrameLoaderClientQt.h: Oops, forgot the header.
3498
3499 2007-03-07  Darin Adler  <darin@apple.com>
3500
3501         * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::userAgent):
3502         Try to fix the build by correcting the parameter here.
3503
3504 2007-03-02  Sam Weinig  <sam@webkit.org>
3505
3506         Reviewed by Anders.
3507
3508         Try to fix the Qt build
3509
3510         * WebCoreSupport/DragClientQt.cpp:
3511         (WebCore::DragClientQt::willPerformDragDestinationAction):
3512         (WebCore::DragClientQt::dragControllerDestroyed):
3513         (WebCore::DragClientQt::createDragImageForLink):
3514
3515 2007-02-26  Maciej Stachowiak  <mjs@apple.com>
3516
3517         Reviewed by Kevin McCullough.
3518
3519         - fix Qt build for earlier SVG changes.
3520
3521         * WebCoreSupport/EditCommandQt.cpp:
3522
3523 2007-02-24  Zack Rusin  <zrusin@trolltech.com>
3524
3525         Adjust the animation a little bit to make it more natural.
3526
3527         * QtLauncher/main.cpp:
3528         (HoverLabel::paintEvent):
3529
3530 2007-02-23  Zack Rusin  <zrusin@trolltech.com>
3531
3532         Adding a little bit of eye-candy to the last
3533         commit (animations on hover events)
3534
3535         * QtLauncher/main.cpp:
3536         (HoverLabel::HoverLabel):
3537         (HoverLabel::setHoverLink):
3538         (HoverLabel::sizeForFont):
3539         (HoverLabel::sizeHint):
3540         (HoverLabel::resetAnimation):
3541         (HoverLabel::paintEvent):
3542         (HoverLabel::interpolate):
3543         (SearchEdit::resizeEvent):
3544
3545 2007-02-23  Zack Rusin  <zrusin@trolltech.com>
3546
3547         Reviewed by Lars
3548
3549         Adding API and code for notification of when the
3550         mouse is hovering over a link and adding code to
3551         the sample app to showcase it.
3552
3553         * Api/qwebframe.cpp:
3554         (QWebFrame::mouseMoveEvent):
3555         * Api/qwebframe.h:
3556         * Api/qwebframe_p.h:
3557         (QWebFramePrivate::QWebFramePrivate):
3558         * Api/qwebpage.cpp:
3559         (QWebPage::createFrame):
3560         * Api/qwebpage.h:
3561         * QtLauncher/main.cpp:
3562         (HoverLabel::HoverLabel):
3563         (HoverLabel::setHoverLink):
3564         (HoverLabel::sizeHint):
3565         (HoverLabel::updateSize):
3566         (HoverLabel::paintEvent):
3567         (ClearButton::ClearButton):
3568         (ClearButton::paintEvent):
3569         (SearchEdit::SearchEdit):
3570         (SearchEdit::resizeEvent):
3571         (SearchEdit::moveEvent):
3572         (MainWindow::MainWindow):
3573         (MainWindow::showLinkHover):
3574         (MainWindow::resizeEvent):
3575
3576 2007-02-22  Zack Rusin  <zrusin@trolltech.com>
3577
3578         Reviewed by Lars
3579
3580         Fixing the default scroll offset, cleaning
3581         up private methods and making the default
3582         look not use any frames.
3583
3584         * Api/qwebframe.cpp:
3585         (QWebFramePrivate::init):
3586         (QWebFramePrivate::_q_handleKeyEvent):
3587         (QWebFrame::QWebFrame):
3588         (QWebFrame::wheelEvent):
3589         (QWebFrame::keyPressEvent):
3590         (QWebFrame::keyReleaseEvent):
3591         * Api/qwebframe.h:
3592         * Api/qwebframe_p.h:
3593
3594 2007-02-22  Zack Rusin  <zrusin@trolltech.com>
3595
3596         Reviewed by Lars
3597
3598         Make the qwebframe act as a proper canvas.
3599         Implement it on top of QAbstractScrollArea.
3600
3601         * Api/qwebframe.cpp:
3602         (QWebFramePrivate::init):
3603         (QWebFramePrivate::_q_adjustScrollbars):
3604         (QWebFrame::init):
3605         (QWebFrame::QWebFrame):
3606         (QWebFrame::resizeEvent):
3607         (QWebFrame::childFrames):
3608         (QWebFrame::paintEvent):
3609         (QWebFrame::mouseMoveEvent):
3610         (QWebFrame::mousePressEvent):
3611         (QWebFrame::mouseReleaseEvent):
3612         (QWebFrame::wheelEvent):
3613         (QWebFrame::keyPressEvent):
3614         (QWebFrame::keyReleaseEvent):
3615         (QWebFrame::dragEnterEvent):
3616         (QWebFrame::dragLeaveEvent):
3617         (QWebFrame::dragMoveEvent):
3618         (QWebFrame::handleKeyEvent):
3619         (QWebFrame::scrollContentsBy):
3620         * Api/qwebframe.h:
3621         * Api/qwebframe_p.h:
3622         (QWebFramePrivate::QWebFramePrivate):
3623
3624 2007-02-21  George Staikos  <staikos@kde.org>
3625
3626         Reviewed by Zack.
3627
3628         Add more editing support, and undo/redo.  Requires some nasty evil
3629         hacks that have to be sorted out in WebCore/editor.
3630
3631         * Api/qwebpage.cpp:
3632         (QWebPagePrivate::QWebPagePrivate):
3633         (QWebPagePrivate::~QWebPagePrivate):
3634         (QWebPage::undoStack):
3635         * Api/qwebpage.h:
3636         * Api/qwebpage_p.h:
3637         * WebCoreSupport/EditorClientQt.cpp:
3638         (WebCore::EditorClientQt::didBeginEditing):
3639         (WebCore::EditorClientQt::didEndEditing):
3640         (WebCore::EditorClientQt::isEditable):
3641         (WebCore::EditorClientQt::registerCommandForUndo):
3642         (WebCore::EditorClientQt::registerCommandForRedo):
3643         (WebCore::EditorClientQt::clearUndoRedoOperations):
3644         (WebCore::EditorClientQt::canUndo):
3645         (WebCore::EditorClientQt::canRedo):
3646         (WebCore::EditorClientQt::undo):
3647         (WebCore::EditorClientQt::redo):
3648         (WebCore::EditorClientQt::handleKeyPress):
3649         (WebCore::EditorClientQt::EditorClientQt):
3650         (WebCore::EditorClientQt::textFieldDidBeginEditing):
3651         (WebCore::EditorClientQt::textFieldDidEndEditing):
3652         (WebCore::EditorClientQt::isEditing):
3653         * WebCoreSupport/EditorClientQt.h:
3654
3655 2007-02-21  Zack Rusin  <zrusin@trolltech.com>
3656
3657         Fix compilation.
3658
3659         * WebCoreSupport/ContextMenuClientQt.cpp:
3660         * WebCoreSupport/ContextMenuClientQt.h:
3661
3662 2007-02-21  George Staikos  <staikos@kde.org>
3663
3664         Fix compile.
3665
3666         * Api/qwebpage.cpp:
3667         (QWebPage::stop):
3668
3669 2007-02-20  Zack Rusin  <zrusin@trolltech.com>
3670
3671         Reviewed by Lars
3672
3673         Make editing of forms work plus make sure that non-void methods
3674         always return something.
3675
3676         * WebCoreSupport/ChromeClientQt.cpp:
3677         (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
3678         (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
3679         (WebCore::ChromeClientQt::runJavaScriptConfirm):
3680         (WebCore::ChromeClientQt::runJavaScriptPrompt):
3681         (WebCore::ChromeClientQt::shouldInterruptJavaScript):
3682         * WebCoreSupport/EditorClientQt.cpp:
3683         (WebCore::EditorClientQt::shouldDeleteRange):
3684         (WebCore::EditorClientQt::shouldBeginEditing):
3685         (WebCore::EditorClientQt::shouldEndEditing):
3686         (WebCore::EditorClientQt::shouldInsertText):
3687         (WebCore::EditorClientQt::shouldChangeSelectedRange):
3688         (WebCore::EditorClientQt::shouldApplyStyle):
3689         (WebCore::EditorClientQt::shouldInsertNode):
3690         * WebCoreSupport/FrameLoaderClientQt.cpp:
3691         (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
3692         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
3693
3694 2007-02-17  Lars Knoll <lars@trolltech.com>
3695
3696         Reviewed by Maciej.
3697
3698         Additional coding by Maciej, additional review by Oliver.
3699
3700         Add stubs for the new methods in ChormeClient and EditorClient,
3701         remove all references to FrameQt.
3702
3703         * Api/qwebframe.cpp:
3704         (QWebFrame::QWebFrame):
3705         * Api/qwebframe_p.h: