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