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