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