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