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