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