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