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