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