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