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