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