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