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