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