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