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