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