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