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