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