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