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