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