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