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