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