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