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