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