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