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