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