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