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