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