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