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