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