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