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