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