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