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