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