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