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