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