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