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