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