942b292c646418ca958b987ff2804cc494db35c1
[WebKit-https.git] / WebKit / qt / ChangeLog
1 2009-03-27  Erik L. Bunce  <elbunce@xendom.com>
2
3         Reviewed by Simon Hausmann.
4
5         https://bugs.webkit.org/show_bug.cgi?id=24869
6
7         Fixes an incorrect case in tst_qwebpage.
8
9         * tests/qwebpage/tst_qwebpage.cpp:
10         (tst_QWebPage::cursorMovements):
11
12 2009-03-27  Erik L. Bunce  <elbunce@xendom.com>
13
14         Reviewed by Simon Hausmann.
15
16         https://bugs.webkit.org/show_bug.cgi?id=24746
17
18         Add new editing related QWebPage::WebActions
19         * Clipboard: PasteAndMatchStyle
20         * Formatting: RemoveFormat, ToggleStrikethrough, ToggleSubscript, and
21           ToggleSuperscript
22         * List Editing: InsertUnorderedList, InsertOrderedList, Indent, Outdent
23         * Paragraph Justification: AlignCenter, AlignJustified, AlignLeft, AlignRight 
24
25         Improved selection and editing tests.
26
27         * Api/qwebpage.cpp:
28         (QWebPagePrivate::updateEditorActions):
29         (QWebPage::action):
30         * Api/qwebpage.h:
31         * tests/qwebpage/tst_qwebpage.cpp:
32         (tst_QWebPage::textSelection):
33         (tst_QWebPage::textEditing):
34
35 2009-03-26  Simon Hausmann  <simon.hausmann@nokia.com>
36
37         Rubber-stamped by Tor Arne Vestbø.
38
39         Fix the documentation of the QLocale usage in userAgentForUrl.
40
41         * Api/qwebpage.cpp:
42
43 2009-03-20  Erik L. Bunce  <elbunce@xendom.com>
44
45         Reviewed by Simon Hausmann.
46
47         Fix for InsertParagraphSeparator and InsertLineSeparator so that
48         QWebPage::action() creates QActions for them. Also make sure they get
49         updated appropriately.
50
51         * Api/qwebpage.cpp:
52         (QWebPagePrivate::updateEditorActions):
53         (QWebPage::action):
54         * tests/qwebpage/tst_qwebpage.cpp:
55         (tst_QWebPage::textEditing):
56
57 2009-03-20  Erik L. Bunce  <elbunce@xendom.com>
58
59         Reviewed by Tor Arne Vestbø.
60
61         Fix QWebPage::WebActions action states to more closely match when they are
62         actually applicable and remove erroneous documentation.
63
64         * Most WebActions implemented using editor commands now use the
65           Editor::Command::isEnabled() to control their availability.
66         * SelectAll is always enabled (since it's editor command is).
67         * SetTextDirection{} family of WebActions are available when canEdit() is true
68           and not just canEditRichly().
69
70         Fix and clarify documentation about the availability of various web actions.
71
72         * Api/qwebpage.cpp:
73         (QWebPagePrivate::updateAction):
74         (QWebPagePrivate::updateEditorActions):
75         * tests/qwebpage/tst_qwebpage.cpp:
76         (tst_QWebPage::textSelection):
77
78 2009-03-19  Ariya Hidayat <ariya.hidayat@trolltech.com>
79
80         Reviewed by Simon Hausmann.
81
82         Fixes pedantic compilation in QtWebKit.
83
84         There are no semi-colons after namespace declarations.
85
86         * Api/qwebdatabase.h:
87         * Api/qwebsecurityorigin.h:
88
89 2009-03-19  David Boddie  <dboddie@trolltech.com>
90
91         Reviewed by Simon Hausmann.
92
93         Doc: Removed obsolete warning about Flash and other plugins.
94
95         * Api/qwebsettings.cpp:
96
97 2009-03-19  Paul Olav Tvete  <paul.tvete@nokia.com>
98
99         Reviewed by Simon Hausmann.
100
101         Properly escape tooltip text
102
103         ManualTest: http://xkcd.com/554/
104
105         * WebCoreSupport/ChromeClientQt.cpp:
106         (WebCore::ChromeClientQt::setToolTip):
107
108 2009-03-10  Adam Treat  <adam.treat@torchmobile.com>
109
110         Build fix for Qt after r41555.
111
112         * Api/qwebpage.cpp:
113         (QWebPage::acceptNavigationRequest):
114
115 2009-03-10  Xan Lopez  <xlopez@igalia.com>
116
117         Build fix, no review.
118
119         * Api/qwebpage.cpp:
120         (QWebPage::inputMethodQuery):
121
122 2009-03-07  Adam Treat  <adam.treat@torchmobile.com>
123
124         Reviewed by Cameron Zwarich.
125
126         These methods are clearly returning the wrong values as the two were
127         returning swapped information.
128
129         * Api/qwebpage.cpp:
130         (QWebPage::totalBytes):
131         (QWebPage::bytesReceived):
132
133 2009-03-05  Ariya Hidayat  <ariya.hidayat@nokia.com>
134
135         Rubber-stamped by Simon Hausmann.
136
137         [Qt] NPAPI plugins are supported, adjust the API documentation.
138
139         * Api/qwebsettings.cpp:
140
141 2009-03-04  Adam Barth  <abath@webkit.org>
142
143         Reviewed by Alexey Proskuryakov.
144
145         https://bugs.webkit.org/show_bug.cgi?id=24356
146
147         Fix WebKit style for allowUniversalAccessFromFileURLs.
148
149         * Api/qwebsettings.cpp:
150         (QWebSettingsPrivate::apply):
151
152 2009-03-03  Adam Barth  <abarth@webkit.org>
153
154         Reviewed by Alexey Proskuryakov.
155
156         https://bugs.webkit.org/show_bug.cgi?id=24340
157
158         Expose AllowUniversalAccessFromFileUrls to Qt clients.
159
160         * Api/qwebsettings.cpp:
161         (QWebSettingsPrivate::apply):
162         (QWebSettings::QWebSettings):
163         * Api/qwebsettings.h:
164
165 2009-03-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
166
167         Rubber-stamped by Simon Hausmann.
168
169         [Qt] Create and update the action for SelectAll.
170
171         * Api/qwebpage.cpp:
172         (QWebPagePrivate::updateAction):
173         (QWebPagePrivate::updateEditorActions):
174         (QWebPage::action):
175         * tests/qwebpage/tst_qwebpage.cpp:
176         (tst_QWebPage::textSelection):
177
178 2009-03-02  Adam Treat  <adam.treat@torchmobile.com>
179
180         Reviewed by Eric Seidel.
181
182         Add three new drt helper functions that enable all of the tests in
183         LayoutTests/animation/* and LayoutTests/transitions/* to now pass.
184
185         * Api/qwebframe.cpp:
186         (qt_drt_pauseAnimation):
187         (qt_drt_pauseTransitionOfProperty):
188         (qt_drt_numberOfActiveAnimations):
189
190 2009-03-02  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
191
192         Reviewed by George Staikos.
193
194         https://bugs.webkit.org/show_bug.cgi?id=21230
195         On X11 match the behavior of Firefox and also copy the url to the
196         clipboard selection when the action Copy Link Location is executed.
197
198         * Api/qwebpage.cpp:
199         (QWebPage::triggerAction):
200
201 2009-02-25  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
202
203         Reviewed by Simon Hausmann.
204
205         Fix the documentation for the linkHovered signal.
206
207         * Api/qwebpage.cpp:
208
209 2009-02-23  Adam Treat  <adam.treat@torchmobile.com>
210
211         Reviewed by Darin Adler.
212
213         https://bugs.webkit.org/show_bug.cgi?id=24094
214         Make sure to empty the cache on exit to get rid of superfluous leak messages
215         for CachedResource's in order to keep the leak messages accurate.  This
216         is analagous to what the Mac port is doing on application exit when all
217         WebView's have been closed.
218
219         * Api/qwebpage.cpp:
220         (QWebPagePrivate::_q_cleanupLeakMessages):
221         (QWebPage::QWebPage):
222         * Api/qwebpage.h:
223         * Api/qwebpage_p.h:
224
225 2009-02-23  Thiago Macieira  <thiago.macieira@nokia.com>
226
227         Reviewed by Simon Hausmann.
228
229         Fix the Copyright notices in a few files
230
231         * WebKit_pch.h:
232
233 2009-02-16  Simon Hausmann  <simon.hausmann@nokia.com>
234
235         Reviewed by Tor Arne Vestbø.
236
237         Avoid loading plugins when they're disabled in the settings.
238
239         * WebCoreSupport/FrameLoaderClientQt.cpp:
240         (WebCore::FrameLoaderClientQt::canShowMIMEType): Don't call into the
241         PluginDatabase if plugins are disabled in the settings.
242
243 2009-02-13  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>
244
245         Reviewed by Nikolas Zimmermann.
246
247         https://bugs.webkit.org/show_bug.cgi?id=23738
248         Expose the url elements target frame string.  This is the sister function
249         to the existing linkTargetFrame which returns the QWebFrame*.  When the
250         linkTargetFrame is 0 it is useful to know what the target was to be.
251
252         * Api/qwebframe.cpp:
253         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
254         (QWebHitTestResult::linkTarget):
255         * Api/qwebframe.h:
256         * Api/qwebframe_p.h:
257         * tests/qwebframe/tst_qwebframe.cpp:
258
259 2009-02-13  David Boddie  <dboddie@trolltech.com>
260
261         Reviewed by Simon Hausmann.
262
263         Removed documentation for internal functions.
264
265         * Api/qwebsettings.cpp:
266
267 2009-02-13  Martin Smith  <msmith@trolltech.com>
268
269         Reviewed by Simon Hausmann.
270
271         Corrected some minor qdoc errors.
272
273         * Api/qwebsettings.cpp:
274
275 2009-02-11  Dimitri Dupuis-latour  <dupuislatour@apple.com>
276
277         Stub out InspectorClientQt::hiddenPanels.
278
279         Reviewed by Timothy Hatcher.
280
281         * WebCoreSupport/InspectorClientQt.cpp:
282         (WebCore::InspectorClientQt::hiddenPanels):
283         * WebCoreSupport/InspectorClientQt.h:
284
285 2009-02-10  Karsten Heimrich  <kheimric@trolltech.com>
286
287         Reviewed by Simon Hausmann.
288
289         Fixes missing navigation/url update while clicking on anchor inside
290         webpage.
291
292         * WebCoreSupport/FrameLoaderClientQt.cpp:
293         (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
294         update and emit in case we navigate inside a webpage
295
296 2009-02-10  Adam Treat  <adam.treat@torchmobile.com>
297
298         Fix the Qt build as class Selection is now VisibleSelection.
299
300         * Api/qwebpage.cpp:
301         (QWebPage::inputMethodQuery):
302
303 2009-02-06  Geoffrey Garen  <ggaren@apple.com>
304
305         Build fix.
306
307         * WebCoreSupport/FrameLoaderClientQt.cpp:
308         (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks):
309         * WebCoreSupport/FrameLoaderClientQt.h:
310
311 2009-02-06  Kavindra Palaraja  <kavindra.palaraja@nokia.com>
312
313         Reviewed by Simon Hausmann.
314
315         Doc - made 2 functions internal as they are not part of the API anymore (and this fixes 2 qdoc warnings)
316
317         * Api/qwebsettings.cpp:
318
319 2009-02-06  Simon Hausmann  <simon.hausmann@nokia.com>
320
321         Reviewed by Tor Arne Vestbø.
322
323         Added an overload of QWebFrame::addToJavaScriptWindowObject that takes a QScriptEngine::ValueOwnership parameter.
324
325         * Api/qwebframe.cpp:
326         (QWebFrame::addToJavaScriptWindowObject): New overload.
327         * Api/qwebframe.h:
328         * tests/qwebframe/tst_qwebframe.cpp: Added unit tests for ownership
329         models.
330
331 2009-02-06  Aaron Boodman  <aa@chromium.org>
332
333         Reviewed by Holger Freyther.
334
335         * WebCoreSupport/FrameLoaderClientQt.cpp:
336         (WebCore::FrameLoaderClientQt::documentElementAvailable):)
337         Fix compile error in Qt build introduced by the below change (r40694).
338
339 2009-02-05  Aaron Boodman  <aa@chromium.org>
340
341         Reviewed by Dave Hyatt.
342
343         https://bugs.webkit.org/show_bug.cgi?id=23708
344         Adds documentElementAvailable() callback to FrameLoaderClient.
345
346         * WebCoreSupport/FrameLoaderClientQt.cpp:
347         (WebCore::FrameLoaderClient::documentElementAvailable):
348         Stub out documentElementAvailable().
349         * WebCoreSupport/FrameLoaderClientQt.h:
350         Ditto.
351
352 2009-02-04  David Boddie  <dboddie@trolltech.com>
353
354         Reviewed by Simon Hausmann.
355
356         Doc: Documented the return value of the evaluateJavaScript() function.
357
358         * Api/qwebframe.cpp:
359
360 2009-02-03  Simon Hausmann  <simon.hausmann@nokia.com>
361
362         Reviewed by Tor Arne Vestbø.
363
364         Added a unit test to verify the succesful conversion from QByteArray to
365         JSByteArray and back to QByteArray.
366
367         * tests/qwebframe/tst_qwebframe.cpp:
368
369 2009-02-02  Geoffrey Garen  <ggaren@apple.com>
370
371         Build fix.
372
373         * Api/qwebframe.cpp:
374         (QWebFrame::QWebFrame):
375         (QWebFrame::load):
376         (QWebFrame::setHtml):
377         (QWebFrame::setContent):
378
379 2009-02-02  Geoffrey Garen  <ggaren@apple.com>
380
381         Build fix.
382
383         * WebCoreSupport/FrameLoaderClientQt.cpp:
384         (WebCore::FrameLoaderClientQt::createFrame):
385
386 2009-02-02  Geoffrey Garen  <ggaren@apple.com>
387
388         Reviewed by Sam Weinig.
389
390         Track redirects in global history.
391
392         Keep Qt building.
393
394         * WebCoreSupport/FrameLoaderClientQt.cpp:
395         (WebCore::FrameLoaderClientQt::updateGlobalHistoryForRedirectWithoutHistoryItem):
396         (WebCore::FrameLoaderClientQt::createFrame):
397         * WebCoreSupport/FrameLoaderClientQt.h:
398
399 2009-02-02  Anders Carlsson  <andersca@apple.com>
400
401         Reviewed by Dan Bernstein.
402
403         Update for changes to WebCore.
404
405         * WebCoreSupport/FrameLoaderClientQt.cpp:
406         (WebCore::FrameLoaderClientQt::createPlugin):
407         (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
408         * WebCoreSupport/FrameLoaderClientQt.h:
409
410 2009-02-02  Adam Treat  <adam.treat@torchmobile.com>
411
412         Reviewed by Nikolas Zimmermann.
413
414         https://bugs.webkit.org/show_bug.cgi?id=23587
415         Refactor HitTestRequest to eliminate all the ugly boolean arguments and
416         use an enum bitflag instead.  Cleanup all the code that constructs the
417         various HitTestRequests to make the code more readable.
418
419         * Api/qwebframe.cpp:
420         (QWebFrame::hitTestContent):
421
422 2009-02-02  Adam Treat  <adam.treat@torchmobile.com>
423
424         Fix the Qt build to call forceLayout on the view instead.
425
426         * Api/qwebpage.cpp:
427         (QWebPage::setFixedLayoutSize):
428         (QWebPage::setUseFixedLayout):
429
430 2009-02-02  Holger Hans Peter Freyther  <zecke@selfish.org>
431
432         Reviewed by Darin Adler.
433
434         Move Frame::forceLayout, Frame::adjustPageHeight and Frame::forceLayoutWithPageWidthRange to FrameView
435
436         https://bugs.webkit.org/show_bug.cgi?id=23428
437
438         FrameView::forceLayout could be killed but the comment might
439         contain a value over the the plain FrameView::layout...
440
441         Adjust the WebCore/WebKit consumers of these methods.
442
443         * Api/qwebpage.cpp:
444         (QWebPage::setViewportSize):
445         * WebCoreSupport/FrameLoaderClientQt.cpp:
446         (WebCore::FrameLoaderClientQt::forceLayout):
447
448 2009-01-30  Geoffrey Garen  <ggaren@apple.com>
449
450         Build fix.
451
452         * WebCoreSupport/FrameLoaderClientQt.cpp:
453         (WebCore::FrameLoaderClientQt::createFrame):
454
455 2009-01-30  Holger Hans Peter Freyther  <zecke@selfish.org>
456
457         Reviewed by Simon Hausmann.
458
459         https://bugs.webkit.org/show_bug.cgi?id=22056
460
461         Kill FrameLoaderClient.cpp, move the code over to Frame::createView
462
463         FrameLoaderClient is supposed to be an interface, move the
464         to be shared code to Frame which is a controller and is
465         allowed to create a FrameView.
466
467         * WebCoreSupport/FrameLoaderClientQt.cpp:
468         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
469
470 2009-01-30  Geoffrey Garen  <ggaren@apple.com>
471
472         Reviewed by Sam Weinig.
473
474         Split "lockHistory" into "lockHistory" and "lockBackForwardList" in
475         preparation for setting them differently during a redirect.
476
477         * Api/qwebpage.cpp:
478         (QWebPage::triggerAction):
479
480 2009-01-30  Brady Eidson  <beidson@apple.com>
481
482         Reviewed by Sam Weinig
483
484         Remove FrameLoaderClient code that is now handled by FrameLoader itself
485
486         * WebCoreSupport/FrameLoaderClientQt.cpp:
487         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
488
489 2009-01-30  Simon Hausmann  <simon.hausmann@nokia.com>
490
491         Reviewed by Tor Arne Vestbø.
492
493         Hide the Offline Web Application Cache path API from the public API
494         for now.
495
496         * Api/qwebsettings.cpp:
497         (qt_websettings_setOfflineWebApplicationCachePath):
498         (qt_websettings_offlineWebApplicationCachePath):
499         * Api/qwebsettings.h:
500
501 2009-01-28  Adam Treat  <adam.treat@torchmobile.com>
502
503         Reviewed by Nikolas Zimmermann and George Staikos.
504
505         https://bugs.webkit.org/show_bug.cgi?id=23557
506         Do not clip the QWebFrame::hitTestContent method to the visible viewport
507         and add a regression test to make sure it works.
508
509         * Api/qwebframe.cpp:
510         (QWebFrame::hitTestContent):
511         * tests/qwebframe/tst_qwebframe.cpp:
512
513 2009-01-28  Ariya Hidayat  <ariya.hidayat@trolltech.com>
514
515         Rubber-stamped by Simon Hausmann.
516
517         Provide default implementations of JavaScript dialog boxes like in
518         most web browsers, i.e. indicate that is from JavaScript and show the
519         frame URL.
520
521         * Api/qwebpage.cpp:
522         (QWebPage::javaScriptAlert):
523         (QWebPage::javaScriptConfirm):
524         (QWebPage::javaScriptPrompt):
525
526 2009-01-27  Ariya Hidayat  <ariya.hidayat@trolltech.com>
527
528         Reviewed by Simon Hausmann.
529
530         http://www.qtsoftware.com/developer/task-tracker/index_html?id=238391&method=entry
531
532         [Qt] If QPainter fails to start on a QPrinter instance, do not
533         continue printing.
534
535         * Api/qwebframe.cpp:
536         (QWebFrame::print):
537
538 2009-01-27  Brady Eidson  <beidson@apple.com>
539
540         Reviewed by Dan Bernstein
541
542         Rework FrameLoaderClient to work on a CachedFrame basis instead of CachedPage
543
544         * WebCoreSupport/FrameLoaderClientQt.cpp:
545         (WebCore::FrameLoaderClientQt::savePlatformDataToCachedFrame):
546         (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedFrame):
547         * WebCoreSupport/FrameLoaderClientQt.h:
548
549 2009-01-26  Simon Fraser  <simon.fraser@apple.com>
550
551         Reviewed by David Hyatt
552         
553         Back out r40285, because it was checked in with no bug number, no
554         testcase, is rendering change that did not get thorough review,
555         and broke the Mac build.
556
557         * Api/qwebframe.cpp:
558         (QWebFrame::hitTestContent):
559
560 2009-01-26  Adam Treat  <adam.treat@torchmobile.com>
561
562         Reviewed by Nikolas Zimmermann.
563
564         Do not clip the QWebFrame::hitTestContent method to the visible viewport.
565
566         * Api/qwebframe.cpp:
567         (QWebFrame::hitTestContent):
568
569 2009-01-26  David Boddie  <dboddie@trolltech.com>
570
571         Reviewed by Simon Hausmann.
572
573         Doc: qdoc fix for a link to a property and added a basic description of the offline caching and storage features from HTML 5.
574
575         * Api/qwebpage.cpp:
576         * Api/qwebsettings.cpp:
577
578 2009-01-25  Urs Wolfer  <uwolfer@kde.org>
579
580         Reviewed by Simon Hausmann.
581
582         Add QWebPage::SelectAll to WebAction enum to select all content.
583
584         https://bugs.webkit.org/show_bug.cgi?id=22946
585
586         * Api/qwebpage.cpp:
587         (QWebPagePrivate::editorActionForKeyEvent):
588         * Api/qwebpage.h:
589
590 2009-01-25  David Boddie  <dboddie@trolltech.com>
591
592         Reviewed by Simon Hausmann.
593
594         Doc: Fixed the terminology used.
595
596         * Api/qwebpage.cpp:
597
598 2009-01-25  Thiago Macieira  <thiago.macieira@nokia.com>
599
600         Reviewed by Simon Hausmann.
601
602         Rename links from trolltech.com to qtsoftware.com
603
604         * Api/qwebpluginfactory.cpp:
605
606 2009-01-25  Tor Arne Vestbø  <tavestbo@trolltech.com>
607
608         Reviewed by Simon Hausmann.
609
610         Make QWebPage auto-test more robust by cleaning up generated files
611
612         Sometimes the auto-test may segfault, leaving behind files because the
613         call to cleanupTestCase() never happens, so we also clean up the files
614         at initTestCase() just to make sure we're running in a clean environment.
615
616         * tests/qwebpage/tst_qwebpage.cpp:
617         (tst_QWebPage::cleanupFiles):
618         (tst_QWebPage::initTestCase):
619         (tst_QWebPage::cleanupTestCase):
620
621 2008-12-20  Urs Wolfer  <uwolfer@kde.org>
622
623         Reviewed by Simon Hausmann.
624
625         Fix: compile qwebhistory.h with pendantic comiler flag.
626
627         https://bugs.webkit.org/show_bug.cgi?id=22947
628
629         * Api/qwebhistory.h:
630
631 2009-01-24  Adam Treat  <adam.treat@torchmobile.com>
632
633         Oops, fix the Qt build.
634
635         * Api/qwebframe.cpp:
636         (QWebFrame::render):
637
638 2009-01-24  Adam Treat  <adam.treat@torchmobile.com>
639
640         Reviewed by Nikolas Zimmermann.
641
642         Add QWebFrame::renderContents() method which allows arbitary rendering
643         of any content region within the QWebFrame.  It also does not draw any
644         scrollbars.
645
646         * Api/qwebframe.cpp:
647         (QWebFrame::renderContents):
648         * Api/qwebframe.h:
649
650 2009-01-23  Ariya Hidayat  <ariya.hidayat@trolltech.com>
651
652         Reviewed by Simon Hausmann.
653
654         Make the test more robust by taking into account the platform-specific
655         cursor flashing time.
656
657         * tests/qwebframe/tst_qwebframe.cpp:
658
659 2009-01-20  Friedemann Kleint  <Friedemann.Kleint@nokia.com>
660
661         Reviewed by Simon Hausmann.
662
663         Fix spelling error in QWebPage
664
665         * Api/qwebpage.cpp:
666         (QWebPage::action):
667
668 2009-01-19  Simon Hausmann  <simon.hausmann@nokia.com>
669
670         Reviewed by Tor Arne Vestbø.
671
672         Fix calling of onkeypress event handlers on input elements when pressing enter
673         and other text insertion commands in the Qt port.
674
675         Similar to the win and mac ports don't execute text inserting editor
676         commands on RawKeyDown but continue processing the event first in
677         WebCore, i.e. also get a keypress event sent. If unhandled it will
678         come back to EditorClientQt::handleKeyboardEvent later and we execute
679         it then.
680
681         This also fixes search by pressing enter on www.trafikanten.no.
682
683         * Api/qwebpage.cpp:
684         (QWebPagePrivate::editorCommandForWebActions): Make function
685         accessible from other files.
686         (QWebPage::triggerAction): Adjust to new function visibility.
687         * Api/qwebpage_p.h: Ditto.
688         * WebCoreSupport/EditorClientQt.cpp:
689         (WebCore::EditorClientQt::handleKeyboardEvent): Don't execute
690         text inserting commands on RawKeyPressDown.
691
692 2009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
693
694         Rubber-stamped by Simon Hausmann.
695
696         [Qt] Increase popup focus delay time to a sensible 500 ms.
697
698         * tests/qwebframe/tst_qwebframe.cpp:
699
700 2009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
701
702          Reviewed by Adam Roben.
703
704          [Qt] Prevent crash if plugin data is NULL.
705
706          * WebCoreSupport/FrameLoaderClientQt.cpp: NULL check.
707          (WebCore::FrameLoaderClientQt::objectContentType):
708
709 2009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
710
711         Rubber-stamped by Simon Hausmann.
712
713         [Qt] Per-line cursor movement tests depend on platform-specific font
714         metrics. Remove them to avoid test failures on different platforms.
715
716         * tests/qwebpage/tst_qwebpage.cpp:
717         (tst_QWebPage::cursorMovements):
718
719 2009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
720
721         Rubber-stamped by Simon Hausmann.
722
723         http://www.qtsoftware.com/developer/task-tracker/index_html?id=219344&method=entry
724
725         [Qt] API documentation for QWebPage::WebAction enum.
726
727         * Api/qwebpage.cpp:
728
729 2009-01-16  Ariya Hidayat  <ariya.hidayat@trolltech.com>
730
731         Another attempt at fixing the Qt build.
732
733         * Api/qwebframe.cpp:
734         (QWebFrame::addToJavaScriptWindowObject):
735
736 2009-01-14  Ariya Hidayat  <ariya.hidayat@trolltech.com>
737
738         Reviewed by Tor Arne Vestbø.
739
740         [Qt] Unit tests for text selection and editing actions of QWebPage.
741         The following are tested:
742             - the actions are not NULL
743             - the actions are disabled when contentEditable is false
744             - the actions are enabled when contentEditable is true
745
746         * tests/qwebpage/tst_qwebpage.cpp:
747         (tst_QWebPage::textSelection):
748         (tst_QWebPage::textEditing):
749
750 2009-01-14  Simon Hausmann  <simon.hausmann@nokia.com>
751
752         Reviewed by Tor Arne Vestbø.
753
754         Fix failing assertion when pressing an extra mouse button on a
755         QWebView.
756
757         Mice with more than three buttons - for example with a dedicated
758         "back" button - can generate Qt::XButton1 or Button2.
759         WebCore::MouseButton contains only Left, Middle and Right, so in
760         Qt's PlatformMouseEvent we map to NoButton, resulting in a mouse
761         press or release even with no button set. That triggers an assertion
762         in EventTargetNode::dispatchMouseEvent requiring that either a button
763         is set or it is just a mouse move event, which is correct.
764
765         In QWebPage decide not to dispatch such mouse events where we cannot
766         map the mouse button to a WebCore::MouseButton.
767
768         * Api/qwebpage.cpp:
769         (QWebPagePrivate::mousePressEvent):
770         (QWebPagePrivate::mouseDoubleClickEvent):
771         (QWebPagePrivate::mouseTripleClickEvent):
772         (QWebPagePrivate::mouseReleaseEvent):
773
774 2009-01-14  Ariya Hidayat  <ariya.hidayat@trolltech.com>
775
776         Reviewed by Simon Hausmann.
777
778         http://www.qtsoftware.com/developer/task-tracker/index_html?id=241144&method=entry
779
780         [Qt] Create actions for text selection and editing for QWebPage.
781         Also properly disable and enable them when contentEditable is toggled.
782
783         * Api/qwebpage.cpp:
784         (QWebPagePrivate::updateAction):
785         (QWebPagePrivate::updateEditorActions):
786         (QWebPage::action):
787
788 2009-01-14  Ariya Hidayat  <ariya.hidayat@trolltech.com>
789
790         Reviewed by Simon Hausmann.
791
792         [Qt] Unit tests for cursor movements. The following are tested:
793             - the actions are not NULL
794             - the actions are disabled when contentEditable is false
795             - the actions are enabled when contentEditable is true
796             - the cursor moves properly when the actions are triggered
797
798         * tests/qwebpage/tst_qwebpage.cpp:
799         (CursorTrackedPage::CursorTrackedPage):
800         (CursorTrackedPage::selectedText):
801         (CursorTrackedPage::selectionStartOffset):
802         (CursorTrackedPage::selectionEndOffset):
803         (CursorTrackedPage::isSelectionCollapsed):
804         (tst_QWebPage::cursorMovements):
805
806 2009-01-08  Yongjun Zhang  <yongjun.zhang@nokia.com>
807
808         Reviewed by Simon Hausmann.
809
810         https://bugs.webkit.org/show_bug.cgi?id=23187
811
812         Update webview with the intersected rect.
813
814         In ChromeClientQt::repaint, view should be updated with the
815         intersected rect, not the whole windowRect;
816
817         This generally is not a problem for normal viewport setup where
818         viewport size is the same as the qwebview widget size.  However, if we
819         set the viewport size smaller than qwebkit widget, we will see
820         unwanted painting outside the viewport.
821
822         * WebCoreSupport/ChromeClientQt.cpp:
823         (WebCore::ChromeClientQt::repaint):
824
825 2009-01-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
826
827         Rubber-stamped by Tor Arne Vestbø.
828
829         [Qt] Missing piece from my previous commit:
830         Disable and enable the cursor navigation actions when contentEditable
831         is changed.
832
833         * Api/qwebpage.cpp:
834         (QWebPagePrivate::updateEditorActions):
835
836 2009-01-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
837
838         Reviewed by Tor Arne Vestbø.
839
840         [Qt] Create actions for cursor navigation for QWebPage. 
841         Also properly disable and enable them when contentEditable is toggled.
842
843         * Api/qwebpage.cpp:
844         (QWebPagePrivate::updateAction):
845         (QWebPage::action):
846
847 2009-01-13  Simon Hausmann  <simon.hausmann@nokia.com>
848
849         Reviewed by Tor Arne Vestbø.
850
851         https://bugs.webkit.org/show_bug.cgi?id=23171
852
853         Based on patch by Yael Aharon  <yael.aharon@nokia.com>
854
855         Make the QWebSettings functions for setting the path for the local
856         storage database private QtWebkit API, including the ability to
857         associated a QWebPage with a named page group.
858
859         * Api/qwebpage.cpp:
860         (qt_webpage_setGroupName): Added.
861         (qt_webpage_groupName): Added.
862         * Api/qwebpage.h:
863         (ExtensionOption::handle): Added internal helper function.
864         * Api/qwebsettings.cpp:
865         (qt_websettings_setLocalStorageDatabasePath): Made private API.
866         (qt_websettings_localStorageDatabasePath): Made private API.
867         * Api/qwebsettings.h:
868         * tests/qwebpage/tst_qwebpage.cpp:
869         (tst_QWebPage::database): Small cleanup.
870         (tst_QWebPage::multiplePageGroupsAndLocalStorage): New test for the
871         page group handling, written by Yael.
872
873 2009-01-12  Tor Arne Vestbø  <tavestbo@trolltech.com>
874
875         Reviewed by Simon Hausmann.
876
877         [Qt] Ensure that we're always notified of navigation actions for local anchors
878         
879         FrameLoader::checkNavigationPolicy() does not notify us if the request has
880         been checked before (which happens for local anchors), but in the case of
881         our clients not accepting the navigation request we do want to be notified
882         again later on, so we clear the lastCheckedRequest flag.
883
884         * WebCoreSupport/FrameLoaderClientQt.cpp:
885         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
886         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
887
888 2009-01-12  Ariya Hidayat  <ariya.hidayat@trolltech.com>
889
890         Rubber-stamped by Tor Arne Vestbø.
891
892         Build fix: use qobject_cast which does not rely on RTTI. This fixes the
893         unit test when building it with a version of Qt (e.g. Qt/Embedded)
894         configured without RTTI.
895
896         * tests/qwebframe/tst_qwebframe.cpp:
897
898 2009-01-12  Simon Hausmann  <simon.hausmann@nokia.com>
899
900         Rubber-stamped by Tor Arne Vestbø.
901
902         When the QWebView is disabled context menus implemented in JavaScript should not pop up.
903
904         Just like in QWidget::event() we have to check for the disabled state and
905         ignore context menu events.
906
907         * Api/qwebview.cpp:
908
909 2009-01-12  Simon Hausmann  <simon.hausmann@nokia.com
910
911         Reviewed by Tor Arne Vestbø.
912
913         Fix QWebView appearance when showed uninitialized without page.
914
915         Only set WA_OpaquePaintEvent if we have a page set that will actually
916         paint the entire contents, otherwise the optimization does not apply
917         as we do not have a paintEvent() implementation and Qt has to fill the
918         view with its default background instead.
919
920         * Api/qwebview.cpp:
921         (QWebView::QWebView):
922         (QWebView::setPage):
923
924 2009-01-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
925
926         Rubber-stamped by Tor Arne Vestbø.
927
928         Do not create a QVariant from QObject* directly, use the
929         template-specialized function.
930
931         * tests/qwebframe/tst_qwebframe.cpp:
932         (MyQObject::myOverloadedSlot):
933
934 2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
935
936         Rubber-stamped by Tor Arne Vestbø.
937
938         Documentation fixes, remove duplicated docs, document missing
939         parameters and return values.
940
941         * Api/qwebdatabase.cpp:
942         * Api/qwebpage.cpp:
943
944 2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
945
946         Reviewed by Tor Arne Vestbø.
947
948         Fix linking against QtWebKit on Windows, by defining the EXPORT macros
949         _exactly_ the same way as in qglobal.h, depending on QT_NODLL,
950         QT_MAKEDLL and QT_SHARED.
951
952         * Api/qwebkitglobal.h:
953
954 2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
955
956         Reviewed by Tor Arne Vestbø.
957
958         Remove qwebnetworkinterface.h from WEBKIT_API_HEADERS as it's not
959         public Qt 4.4/4.5 API.
960
961         * Api/headers.pri:
962
963 2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
964
965         Unreviewed Qt build fix, remove qcookiejar.h from the API headers and
966         therefore HEADERS. It's not part of the API and it moc shouldn't be
967         called on it.
968
969         * Api/headers.pri:
970
971 2009-01-09  Simon Hausmann  <simon.hausmann@nokia.com>
972
973         Rubber-stamped by Tor Arne Vestbø.
974
975         Remove files not present anymore from the WEBKIT_API_HEADERS variable.
976
977         * Api/headers.pri:
978
979 2009-01-08  Adam Treat  <adam.treat@torchmobile.com>
980
981         Reviewed by Simon Hausmann.
982
983         Don't set the minimumFontSize and minimumLogicalFontSize as these are
984         just for accessibility and should be left up to the client application.
985
986         * Api/qwebsettings.cpp:
987         (QWebSettings::QWebSettings):
988
989 2009-01-08  Kavindra Palaraja  <kdpalara@trolltech.com>
990
991         Reviewed by Simon Hausmann.
992
993         Small fixes to the API documentation, missing 4.5 tags and
994         undocumented parameters.
995
996         * Api/qwebhistory.cpp:
997         * Api/qwebpage.cpp:
998         * Api/qwebsettings.cpp:
999
1000 2009-01-07  Adam Treat  <adam.treat@torchmobile.com>
1001
1002         Reviewed by George Staikos.
1003
1004         Add Qt API to QWebHitTestResult::isScrollBar method
1005
1006         * Api/qwebframe.cpp:
1007         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1008         (QWebHitTestResult::isScrollBar):
1009         * Api/qwebframe.h:
1010         * Api/qwebframe_p.h:
1011         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1012
1013 2009-01-07  Adam Treat  <adam.treat@torchmobile.com>
1014
1015         Reviewed by George Staikos.
1016
1017         Add Qt API for QWebFrame::scrollBarGeometry method
1018
1019         * Api/qwebframe.cpp:
1020         (QWebFrame::scrollBarGeometry):
1021         * Api/qwebframe.h:
1022
1023 2009-01-07  Adam Treat  <adam.treat@torchmobile.com>
1024
1025         Reviewed by George Staikos.
1026
1027         Fix unused variable warnings
1028
1029         * tests/qwebpage/tst_qwebpage.cpp:
1030         (TestPage::createWindow):
1031
1032 2009-01-07  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1033
1034         Rubber-stamped by Simon Hausmann.
1035
1036         Qt build fix after r39670.
1037
1038         * Api/qwebframe.cpp:
1039         (QWebFrame::evaluateJavaScript):
1040
1041 2009-01-06  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1042
1043         Reviewed by Holger Freyther.
1044
1045         Allow building QtWebKit statically (within Qt).
1046
1047         http://trolltech.com/developer/task-tracker/index_html?id=211273&method=entry
1048
1049         * Api/qwebkitglobal.h:
1050
1051 2009-01-06  Adam Treat  <adam.treat@torchmobile.com>
1052
1053         Reviewed by Simon Hausmann.
1054
1055         Update the documentation to reflect when these API changes will land in
1056         upstream Qt
1057
1058         * Api/qwebframe.cpp:
1059         * Api/qwebpage.cpp:
1060
1061 2009-01-05  Adam Treat  <adam.treat@torchmobile.com>
1062
1063         Reviewed by George Staikos.
1064
1065         Add Qt API for QWebFrame::contentsSizeChanged signal
1066
1067         * Api/qwebframe.cpp:
1068         * Api/qwebframe.h:
1069         * WebCoreSupport/ChromeClientQt.cpp:
1070         (WebCore::ChromeClientQt::contentsSizeChanged):
1071         * WebCoreSupport/ChromeClientQt.h:
1072
1073 2009-01-05  Adam Treat  <adam.treat@torchmobile.com>
1074
1075         Reviewed by George Staikos.
1076
1077         Fixes QWebFrame::setScrollBarPolicy(..) to actually work.  Also happens
1078         to fix 192 layout tests that were previously failing for Qt.
1079
1080         * Api/qwebframe.cpp:
1081         (QWebFrame::setScrollBarPolicy):
1082         * WebCoreSupport/FrameLoaderClientQt.cpp:
1083         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1084
1085 2009-01-04  Adam Treat  <adam.treat@torchmobile.com>
1086
1087         Reviewed by George Staikos.
1088
1089         Add new API to QWebHitTestResult to return a rect for the smallest enclosing
1090         block element of the hit test
1091
1092         * Api/qwebframe.cpp:
1093         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1094         (QWebHitTestResult::enclosingBlock):
1095         * Api/qwebframe.h:
1096         * Api/qwebframe_p.h:
1097
1098 2008-12-30  Adam Treat  <adam.treat@torchmobile.com>
1099
1100         Reviewed by George Staikos.
1101
1102         Make the qt port build and work with the new fixedLayoutSize feature
1103
1104         * Api/qwebpage.cpp:
1105         (QWebPagePrivate::QWebPagePrivate):
1106         (QWebPage::fixedLayoutSize):
1107         (QWebPage::setFixedLayoutSize):
1108         (QWebPage::useFixedLayout):
1109         (QWebPage::setUseFixedLayout):
1110         * Api/qwebpage.h:
1111         * Api/qwebpage_p.h:
1112         * WebCoreSupport/FrameLoaderClientQt.cpp:
1113         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1114
1115 2008-12-19  Jade Han <jade.han@nokia.com>
1116
1117         Reviewed by Tor Arne Vestbø.
1118
1119         [Qt] Allow conversion of JavaScript Number and Boolean types to Qt types
1120
1121         https://bugs.webkit.org/show_bug.cgi?id=22880
1122
1123         * tests/qwebframe/tst_qwebframe.cpp:
1124         (MyQObject::myInvokableWithBoolArg):
1125
1126 2008-12-18  Yael Aharon  <yael.aharon@nokia.com>
1127
1128         Reviewed by Tor Arne Vestbø.
1129
1130         When Web Inspector is launched without an associated node,
1131         call show() instead of inspect().
1132
1133         * Api/qwebpage.cpp:
1134         (QWebPage::triggerAction):
1135
1136 2008-12-18  Dan Bernstein  <mitz@apple.com>
1137
1138         Reviewed by Sam Weinig.
1139
1140         - stub out FrameLoaderClient::shouldUseCredentialStorage().
1141
1142         * WebCoreSupport/FrameLoaderClientQt.cpp:
1143         (WebCore::FrameLoaderClientQt::shouldUseCredentialStorage):
1144         * WebCoreSupport/FrameLoaderClientQt.h:
1145
1146 2008-12-18  Sam Weinig  <sam@webkit.org>
1147
1148         Reviewed by John Sullivan.
1149
1150         Stub out FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout()
1151
1152         * WebCoreSupport/FrameLoaderClientQt.cpp:
1153         (WebCore::FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout):
1154         * WebCoreSupport/FrameLoaderClientQt.h:
1155
1156 2008-12-16  Simon Hausmann  <hausmann@webkit.org>
1157
1158         Reviewed by Holger Freyther.
1159
1160         Added support for unload event counting to the Qt DRT.
1161
1162         * Api/qwebpage.cpp:
1163         (qt_drt_run): Moved function here.
1164         * Api/qwebpage_p.h: Moved drt run boolean here.
1165         * WebCoreSupport/EditorClientQt.cpp: Moved drt run boolean.
1166         (WebCore::EditorClientQt::shouldShowDeleteInterface): Use the new drt
1167         run variable.
1168         * WebCoreSupport/FrameLoaderClientQt.cpp:
1169         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): Add DRT
1170         output for unload event handler counting.
1171
1172 2008-12-15  Holger Hans Peter Freyther  <zecke@selfish.org>
1173
1174         Reviewed by Simon Hausmann.
1175
1176         Change the order of sub frame initialisation to avoid crashes
1177
1178         Add the newly created frame to the FrameTree before calling
1179         WebCore::Frame::init to not segfault on
1180         LayoutTests/fast/loader/frame-creation-removal.html.
1181
1182         * Api/qwebframe.cpp:
1183         (QWebFramePrivate::init):
1184         * WebCoreSupport/FrameLoaderClientQt.cpp:
1185         (WebCore::FrameLoaderClientQt::createFrame):
1186
1187 2008-12-15  Simon Hausmann  <hausmann@webkit.org>
1188
1189         Reviewed by Holger Freyther.
1190
1191         Implement setJavaScriptProfilingEnabled in the Qt DRT to pass fast/profiler.
1192
1193         * Api/qwebframe.cpp:
1194         (qt_drt_setJavaScriptProfilingEnabled):
1195
1196 2008-12-12  Simon Hausmann  <hausmann@webkit.org>
1197
1198         Reviewed by Tor Arne Vestbø.
1199
1200         Fix pressing return/enter not triggering any action on web sites
1201         that define event handlers, such as the JS console in the web
1202         inspector.
1203
1204         Process the key events in the DOM first and if not handled map them
1205         to editor actions.
1206
1207         * Api/qwebpage.cpp:
1208         (QWebPagePrivate::editorActionForKeyEvent): Made a class method.
1209         (QWebPagePrivate::keyPressEvent): Pass the key event first to the DOM.
1210         * WebCoreSupport/EditorClientQt.cpp:
1211         (WebCore::EditorClientQt::handleKeyboardEvent): Map the key event to
1212         actions and trigger them.
1213
1214 2008-12-12  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1215
1216         Reviewed by Simon Hausmann.
1217
1218         Create the plugin widget even though the web page has no associated
1219         view. This prevents the plugin to be uselessly constructed more than once.
1220
1221         * WebCoreSupport/FrameLoaderClientQt.cpp:
1222         (WebCore::FrameLoaderClientQt::createPlugin):
1223         * tests/qwebpage/tst_qwebpage.cpp:
1224         (tst_QWebPage::createViewlessPlugin):
1225
1226 2008-12-11  Enrico Ros  <enrico.ros@m31.com>
1227
1228         Reviewed by Simon Hausmann.
1229
1230         Fix the broken focus behavior that happened when QWebPage lost
1231         focus to a popup menu.
1232
1233         The previous code didn't notify the QWebPage at all when the
1234         focus was back in (breaking focus rects, caret blinking, ...).
1235         By the way when a popup is show, 2 FocusOut events are delivered
1236         to the QWebPage, but this doesn't seem to hurt.
1237
1238         Added a test to check popup opening, closing a lineedit blinks.
1239
1240         * Api/qwebpage.cpp:
1241         (QWebPagePrivate::focusInEvent):
1242         (QWebPagePrivate::focusOutEvent):
1243         * tests/qwebframe/tst_qwebframe.cpp:
1244         (tst_QWebFrame::):
1245
1246 2008-12-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1247
1248         Reviewed by Tor Arne Vestbø.
1249
1250         When the web page is navigated away, delete the instance
1251         of the native plugin.
1252
1253         http://trolltech.com/developer/task-tracker/index_html?id=214946&method=entry
1254
1255         * WebCoreSupport/FrameLoaderClientQt.cpp:
1256         (WebCore::):
1257         * tests/qwebpage/tst_qwebpage.cpp:
1258         (PluginTrackedPage::PluginTrackedPage):
1259         (PluginTrackedPage::createPlugin):
1260         (tst_QWebPage::destroyPlugin):
1261
1262 2008-12-11  Yael Aharon  <yael.aharon@nokia.com>
1263
1264         Reviewed by Simon Hausmann.
1265
1266         Allow applications to save and restore their state between loads.
1267
1268         * Api/qwebframe.cpp:
1269         * Api/qwebframe.h:
1270         * WebCoreSupport/FrameLoaderClientQt.cpp:
1271         (WebCore::FrameLoaderClientQt::restoreViewState):
1272         (WebCore::FrameLoaderClientQt::saveViewStateToItem):
1273         * tests/qwebpage/tst_qwebpage.cpp:
1274         (tst_QWebPage::modified):
1275
1276 2008-12-08  Tor Arne Vestbø  <tavestbo@trolltech.com>
1277
1278         Reviewed by Darin Adler and Holger Freyther.
1279
1280         Make Widget::frameRectsChanged() and overrides non-const
1281
1282         This will hopefully allow us to get rid of some of the mutables in
1283         the classes that react to the callback by changing their own state.
1284
1285         * WebCoreSupport/FrameLoaderClientQt.cpp:
1286         (WebCore::):
1287
1288 2008-12-10  Holger Hans Peter Freyther  <zecke@selfish.org>
1289
1290         Reviewed by Simon Hausmann.
1291
1292         API changes discussed with Simon Hausmann, Tor Arne
1293         Vestbø, Ariya Hidayat...
1294
1295         * Api/qwebdatabase.cpp:
1296         (QWebDatabase::fileName):
1297         (QWebDatabase::removeDatabase):
1298         * Api/qwebdatabase.h:
1299         * Api/qwebframe.cpp:
1300         (QWebFrame::scroll):
1301         (QWebFrame::scrollPosition):
1302         (QWebFrame::setScrollPosition):
1303         * Api/qwebframe.h:
1304         * Api/qwebpage.cpp:
1305         (QWebPage::setContentEditable):
1306         (QWebPage::isContentEditable):
1307         (QWebPage::extension):
1308         * Api/qwebpage.h:
1309         * Api/qwebsecurityorigin.cpp:
1310         * Api/qwebsettings.cpp:
1311         (QWebSettingsPrivate::apply):
1312         (QWebSettings::QWebSettings):
1313         * Api/qwebsettings.h:
1314         * QtLauncher/main.cpp:
1315         (MainWindow::setEditable):
1316         * WebCoreSupport/ChromeClientQt.cpp:
1317         (WebCore::ChromeClientQt::exceededDatabaseQuota):
1318         (WebCore::ChromeClientQt::runOpenPanel):
1319         * WebCoreSupport/EditorClientQt.cpp:
1320         (WebCore::EditorClientQt::isEditable):
1321         * tests/qwebpage/tst_qwebpage.cpp:
1322         (tst_QWebPage::database):
1323
1324 2008-12-09  Balazs Kelemen  <Kelemen.Balazs.3@stud.u-szeged.hu>
1325
1326         Reviewed by Simon Hausmann.
1327
1328         Extended QtLauncher so now it can load pages from an url list
1329         one by one. This can be useful for testing purposes (eq. leak hunting).
1330         The -r option activates this feature.
1331
1332         https://bugs.webkit.org/show_bug.cgi?id=20932
1333
1334         * QtLauncher/main.cpp:
1335         (MainWindow::webPage):
1336         Just a coding style repairing (* written with no space between the return type name)
1337         (MainWindow::webView):
1338         I need the webView to connect it with the URLLoader object.
1339         (URLLoader::URLLoader):
1340         (URLLoader::loadNext):
1341         (URLLoader::init):
1342         (URLLoader::getUrl):
1343         (main):
1344
1345 2008-12-10  Simon Hausmann  <hausmann@webkit.org>
1346
1347         Fix the Qt build, added const to Node* parameter after change
1348         in signature.
1349
1350         * WebCoreSupport/ChromeClientQt.h:
1351         (WebCore::ChromeClientQt::formStateDidChange):
1352
1353 2008-12-09  Brett Wilson  <brettw@chromium.org>
1354
1355         Reviewed by Dave Hyatt.
1356
1357         https://bugs.webkit.org/show_bug.cgi?id=22177
1358
1359         Add a callback on ChromeClient that the state of form elements on
1360         the page has changed. This is to allow clients implementing session
1361         saving to know when the current state is dirty.
1362
1363         * WebCoreSupport/ChromeClientQt.h:
1364         (WebCore::ChromeClientQt::formStateDidChange):
1365
1366 2008-12-09  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1367
1368         Reviewed by Simon Hausmann.
1369
1370         Fix the documentation of the localStorageDatabasePath setters/getters.
1371
1372         * Api/qwebsettings.cpp:
1373
1374 2008-12-08  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1375
1376         Reviewed by Simon Hausmann.
1377
1378         Multiple files support for the file chooser.
1379
1380         * Api/qwebpage.cpp:
1381         (QWebPage::chooseFiles):
1382         * Api/qwebpage.h:
1383         * WebCoreSupport/ChromeClientQt.cpp:
1384         (WebCore::ChromeClientQt::runOpenPanel):
1385
1386 2008-12-06  Simon Fraser  <simon.fraser@apple.com>
1387
1388         Reviewed by Dave Hyatt
1389
1390         https://bugs.webkit.org/show_bug.cgi?id=15671
1391
1392         Renderer::caretRect() is now localCaretRect(), which needs
1393         converting to absolute coordinates (taking transforms into account).
1394
1395         * Api/qwebpage.cpp:
1396         (QWebPage::inputMethodQuery):
1397
1398 2008-12-03  Tor Arne Vestbø  <tavestbo@trolltech.com>
1399
1400         Reviewed by Simon Hausmann.
1401
1402         Allow passing jsNull and jsUndefined to Qt plugins
1403
1404         Currently limited to functions with QString and QVariant arguments,
1405         and properties of these types. Both jsNull and jsUndefined ends up
1406         as default-constructed QStrings and QVariants, which means you can
1407         check for isEmpty() and isValid() in the native plugin code.
1408
1409         Based on patches by Jade Han <jade.han@nokia.com>
1410
1411         * tests/qwebframe/tst_qwebframe.cpp:
1412
1413 2008-12-02  Simon Hausmann  <hausmann@webkit.org>
1414
1415         Rubber-stamped by Tor Arne Vestbø.
1416
1417         Initial API documentation for QWebDatabase, QWebSecurityOrigin and
1418         QWebFrame::securityOrigin().
1419
1420         * Api/qwebdatabase.cpp:
1421         * Api/qwebframe.cpp:
1422         * Api/qwebsecurityorigin.cpp:
1423
1424 2008-11-27  Kent Hansen  <khansen@trolltech.com>
1425
1426         Reviewed by Simon Hausmann.
1427
1428         Added auto tests for making JavaScript bindings for Qt plugin widgets
1429         work again.
1430
1431         * tests/qwebpage/tst_qwebpage.cpp:
1432         (PluginPage::PluginPage):
1433         (PluginPage::CallInfo::CallInfo):
1434         (PluginPage::createPlugin):
1435         (tst_QWebPage::createPlugin):
1436
1437 2008-11-25  Holger Hans Peter Freyther  <zecke@selfish.org>
1438
1439         Build fix. Use WebCore::Frame::loader instead of QWebFrame
1440
1441         * WebCoreSupport/FrameLoaderClientQt.cpp:
1442         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
1443
1444 2008-11-24  Darin Fisher  <darin@chromium.org>
1445
1446         Fix bustage.
1447
1448         http://bugs.webkit.org/show_bug.cgi?id=15643
1449
1450         * WebCoreSupport/EditorClientQt.cpp:
1451         (WebCore::EditorClientQt::isSelectTrailingWhitespaceEnabled):
1452         * WebCoreSupport/EditorClientQt.h:
1453
1454 2008-11-24  Darin Adler  <darin@apple.com>
1455
1456         Reviewed by Dan Bernstein.
1457
1458         - https://bugs.webkit.org/show_bug.cgi?id=22470
1459           remove unneeded URL argument from FrameLoaderClient::updateGlobalHistory
1460
1461         * WebCoreSupport/FrameLoaderClientQt.cpp:
1462         (WebCore::FrameLoaderClientQt::updateGlobalHistory): Get the URL from the
1463         DocumentLoader.
1464         * WebCoreSupport/FrameLoaderClientQt.h: Remove argument.
1465
1466 2008-11-24  Darin Fisher  <darin@chromium.org>
1467
1468         Fix bustage.
1469
1470         https://bugs.webkit.org/show_bug.cgi?id=22448
1471
1472         * Api/qwebframe.cpp:
1473         (QWebFrame::evaluateJavaScript):
1474
1475 2008-11-20  Sam Weinig  <sam@webkit.org>
1476
1477         Fix Qt build.
1478
1479         * Api/qwebframe.cpp:
1480         (QWebFrame::evaluateJavaScript):
1481
1482 2008-11-19  Darin Fisher  <darin@chromium.org>
1483
1484         Fix bustage.
1485
1486         https://bugs.webkit.org/show_bug.cgi?id=22373
1487         Ports busted by addition of ScriptValue.{h,cpp}
1488
1489         * Api/qwebframe.cpp:
1490         (QWebFrame::evaluateJavaScript):
1491
1492 2008-11-19  Darin Fisher  <darin@chromium.org>
1493
1494         Fix bustage.
1495
1496         https://bugs.webkit.org/show_bug.cgi?id=22373
1497         Ports busted by addition of ScriptValue.{h,cpp}
1498
1499         * Api/qwebframe.cpp:
1500
1501 2008-11-19  Simon Hausmann  <hausmann@webkit.org>
1502
1503         Fix the Qt build, remove file referenced in the qrc file that does not
1504         exist and is not needed.
1505
1506         * tests/qwebframe/qwebframe.qrc:
1507
1508 2008-11-18  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1509
1510         Rubber-stamped by Tor Arne Vestbø.
1511
1512         Missing file in new unit test for QWebFrame (r38493).
1513
1514         * tests/qwebframe/qwebframe.pro:
1515         * tests/qwebframe/qwebframe.qrc: Added.
1516
1517 2008-11-18  Tor Arne Vestbø  <tavestbo@trolltech.com>
1518
1519         Rubber-stamped by Simon Hausmann.
1520
1521         Make sure QWidget based plugins are invisible until placed into the layout
1522
1523         * WebCoreSupport/FrameLoaderClientQt.cpp:
1524         (WebCore::FrameLoaderClientQt::createPlugin):
1525
1526 2008-11-18  Tor Arne Vestbø  <tavestbo@trolltech.com>
1527
1528         Reviewed by Simon Hausmann.
1529
1530         React properly to frame rect changes for QWidget based plugins
1531
1532         We now set the geometry of the QWidget in frameRectsChanged,
1533         intead of setFrameRect, which means we pick up the changes to
1534         the frame rect when scrolling. We also set a mask on the
1535         widget to keep it from painting over scrollbars and the like
1536
1537         * WebCoreSupport/FrameLoaderClientQt.cpp:
1538         (WebCore::):
1539
1540 2008-11-18  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1541
1542         Reviewed by Tor Arne Vestbø.
1543
1544         Fix crash when trying to pick a file using the file chooser.
1545
1546         * WebCoreSupport/ChromeClientQt.cpp:
1547         (WebCore::ChromeClientQt::runOpenPanel):
1548
1549 2008-11-18  Holger Hans Peter Freyther  <zecke@selfish.org>
1550
1551         Reviewed by Simon Hausmann.
1552
1553         Attempt to share transitionToCommittedForNewPage of FrameLoaderClient with the different ports
1554
1555         After Hyatt's work on Widget and ScrollView there is little difference
1556         between the implementation of Qt, Gtk+ and Win. In fact any kind of
1557         difference is mostly a bug. Alp has fixed two of such errors for the Gtk+
1558         port and the Qt port has at least one of them left.
1559
1560         The only difference between the implementations is in getting the the
1561         IntSize for the new FrameView, the background color to be applied and
1562         eventually some post processing.
1563
1564         Unify the implementations by providing a static helper function that
1565         takes a Frame, IntSize, color and transparency bit and calling it from
1566         the Gtk+, the Qt and the Windows port.
1567
1568         * Api/qwebframe.cpp:
1569         * Api/qwebframe_p.h:
1570         * Api/qwebpage.cpp:
1571         (QWebPage::setPalette):
1572         * WebCoreSupport/FrameLoaderClientQt.cpp:
1573         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1574
1575 2008-11-17  Geoffrey Garen  <ggaren@apple.com>
1576
1577         Not reviewed.
1578         
1579         Try to fix qt build.
1580
1581         * Api/qwebframe.cpp:
1582
1583 2008-11-17  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1584
1585         Reviewed by Tor Arne Vestbø and Simon Hausmann.
1586
1587         Fix regression when loading resources from Qt resource system using qrc:/.
1588
1589         Added a unit test to catch future regression.
1590
1591         * Api/qwebpage.cpp:
1592         (QWebPagePrivate::QWebPagePrivate):
1593         * tests/qwebframe/image.png: Added.
1594         * tests/qwebframe/tst_qwebframe.cpp:
1595
1596 2008-11-16  Darin Adler  <darin@apple.com>
1597
1598         - try to fix build
1599
1600         * Api/qwebhistory.cpp: Added include of "KURL.h".
1601
1602 2008-10-24  Yael Aharon <yael.aharon@nokia.com>
1603
1604         Reviewed by Simon Hausmann.
1605
1606         Added some basic unit tests for the public database API.
1607
1608         * tests/qwebpage/tst_qwebpage.cpp:
1609         (tst_QWebPage::initTestCase):
1610         (tst_QWebPage::cleanupTestCase):
1611         (tst_QWebPage::database):
1612
1613 2008-11-14  Simon Hausmann  <hausmann@webkit.org>
1614
1615         Fix the Qt build, add missing export macros for the new classes.
1616
1617         * Api/qwebdatabase.h:
1618         * Api/qwebsecurityorigin.h:
1619
1620 2008-10-24  Yael Aharon <yael.aharon@nokia.com>
1621
1622         Reviewed by Simon Hausmann.
1623
1624         Adding public API to provide access to the security origin
1625         (QWebSecurityOrigin) and the databases used for the offline
1626         storage (QWebDatabase).
1627
1628         In addition QWebSettings gains configuration functions for
1629         enabling/disabling offline storage, web application cache
1630         and DOM local storage.
1631
1632         This commits lands the core feature(s), the unit tests and the
1633         documentation are going to follow in the comming days/weeks.
1634
1635         Note: The API is not frozen yet.
1636
1637         * Api/headers.pri:
1638         * Api/qwebdatabase.cpp: Added.
1639         (QWebDatabase::QWebDatabase):
1640         (QWebDatabase::operator=):
1641         (QWebDatabase::name):
1642         (QWebDatabase::displayName):
1643         (QWebDatabase::expectedSize):
1644         (QWebDatabase::size):
1645         (QWebDatabase::absoluteFilePath):
1646         (QWebDatabase::origin):
1647         (QWebDatabase::remove):
1648         (QWebDatabase::~QWebDatabase):
1649         * Api/qwebdatabase.h: Added.
1650         * Api/qwebdatabase_p.h: Added.
1651         * Api/qwebframe.cpp:
1652         (QWebFrame::securityOrigin):
1653         * Api/qwebframe.h:
1654         * Api/qwebpage.cpp:
1655         * Api/qwebpage.h:
1656         * Api/qwebsecurityorigin.cpp: Added.
1657         (QWebSecurityOrigin::QWebSecurityOrigin):
1658         (QWebSecurityOrigin::operator=):
1659         (QWebSecurityOrigin::scheme):
1660         (QWebSecurityOrigin::host):
1661         (QWebSecurityOrigin::port):
1662         (QWebSecurityOrigin::databaseUsage):
1663         (QWebSecurityOrigin::databaseQuota):
1664         (QWebSecurityOrigin::setDatabaseQuota):
1665         (QWebSecurityOrigin::~QWebSecurityOrigin):
1666         (QWebSecurityOrigin::allOrigins):
1667         (QWebSecurityOrigin::databases):
1668         * Api/qwebsecurityorigin.h: Added.
1669         * Api/qwebsecurityorigin_p.h: Added.
1670         (QWebSecurityOriginPrivate::QWebSecurityOriginPrivate):
1671         (QWebSecurityOriginPrivate::~QWebSecurityOriginPrivate):
1672         * Api/qwebsettings.cpp:
1673         (QWebSettingsPrivate::apply):
1674         (QWebSettings::QWebSettings):
1675         (QWebSettings::setOfflineStoragePath):
1676         (QWebSettings::offlineStoragePath):
1677         (QWebSettings::setOfflineStorageDefaultQuota):
1678         (QWebSettings::offlineStorageDefaultQuota):
1679         (QWebSettings::setOfflineWebApplicationCachePath):
1680         (QWebSettings::offlineWebApplicationCachePath):
1681         (QWebSettings::setLocalStorageDatabasePath):
1682         (QWebSettings::localStorageDatabasePath):
1683         * Api/qwebsettings.h:
1684         * WebCoreSupport/ChromeClientQt.cpp:
1685         (WebCore::ChromeClientQt::exceededDatabaseQuota):
1686
1687 2008-11-12  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1688
1689         Rubber-stamped by Tor Arne Vestbø.
1690
1691         Mention the color role change (r38331) in the API doc.
1692
1693         * Api/qwebpage.cpp:
1694
1695 2008-11-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1696
1697         Reviewed by Tor Arne Vestbø and Simon Hausmann.
1698
1699         Use QPalette::Base (instead of QPalette::Background) for the page
1700         background.
1701
1702         * Api/qwebframe.cpp:
1703         (QWebFramePrivate::updateBackground):
1704         * Api/qwebview.cpp:
1705         (QWebView::QWebView):
1706
1707 2008-11-11  Cameron Zwarich  <zwarich@apple.com>
1708
1709         Reviewed by Geoff Garen.
1710
1711         Remove pointless dependencies on the now-deleted kjs directory.
1712
1713         * WebKit_pch.h:
1714
1715 2008-11-10  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1716
1717         Rubber-stamped by Simon Hausmann.
1718
1719         To fit Qt API, scroll offset is a QPoint instead of a QSize.
1720
1721         * Api/qwebframe.cpp:
1722         (QWebFrame::scrollOffset):
1723         (QWebFrame::setScrollOffset):
1724         * Api/qwebframe.h:
1725
1726 2008-11-10  David Boddie  <dboddie@trolltech.com>
1727
1728         Reviewed by Simon Hausmann.
1729
1730         Doc: Fixed qdoc warnings by supplying function documentation.
1731
1732         * Api/qwebframe.cpp:
1733         * Api/qwebview.cpp:
1734
1735 2008-11-10  Tobias Koenig <tobias.koenig@trolltech.com>
1736
1737         Reviewed by Simon Hausmann.
1738
1739         Removed old and stale prf file that breaks the MingW build.
1740
1741         * Api/qtwebkit.prf: Removed.
1742
1743 2008-11-10  Kavindra Palaraja  <kdpalara@trolltech.com>
1744
1745         Reviewed by Simon Hausmann.
1746
1747         Clarify QWebFrame/View::setHTML docs with regards to relative URLs
1748
1749         * Api/qwebframe.cpp:
1750         * Api/qwebview.cpp:
1751
1752 2008-11-10  Joerg Bornemann  <joerg.bornemann@nokia.com>
1753
1754         Reviewed by Simon Hausmann
1755
1756         Don't define _CRT_RAND_S on Windows CE in the precompiled
1757         header, to fix the CE build.
1758
1759         * WebKit_pch.h:
1760
1761 2008-11-07  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1762
1763         Reviewed by Tor Arne Vestbø and Simon Hausmann.
1764
1765         Added an option to allow printing the background color and images.
1766         Mostly reworked from a patch by Holger.
1767         This setting is enabled by default.
1768
1769         * Api/qwebsettings.cpp:
1770         (QWebSettingsPrivate::apply):
1771         (QWebSettings::QWebSettings):
1772         * Api/qwebsettings.h:
1773
1774 2008-11-06  Simon Hausmann  <hausmann@webkit.org>
1775
1776         Reviewed by Tor Arne Vestbø.
1777
1778         Added a unit tests for QWebFrame::metaData().
1779
1780         * tests/qwebframe/tst_qwebframe.cpp:
1781
1782 2008-11-06  Simon Hausmann  <hausmann@webkit.org>
1783
1784         Reviewed by Tor Arne Vestbø.
1785
1786         Improved documentation for QWebFrame::metaData().
1787
1788         * Api/qwebframe.cpp:
1789
1790 2008-11-05  Sriram Yadavalli <sriram.yadavalli@nokia.com>
1791
1792         Reviewed by Simon Hausmann.
1793
1794         Added QWebFrame::metaData() to provide a way in the public API
1795         to retrieve the values of the <meta> tags.
1796
1797         See https://bugs.webkit.org/show_bug.cgi?id=22071
1798
1799         * Api/qwebframe.cpp:
1800         (QWebFrame::metaData):
1801         * Api/qwebframe.h:
1802
1803 2008-10-24  Yael Aharon <yael.aharon@nokia.com>
1804
1805         Reviewed by Simon Hausmann.
1806
1807         Add userData() and setUserData() to QWebHistoryItem.
1808         Add setMaximumItemCount() and maximumItemCount() to QWebHistory.
1809         Add currentItemIndex() to QWebHistory.
1810
1811         See also https://bugs.webkit.org/show_bug.cgi?id=21864
1812
1813         Small cleanup by Simon (docs and forward declaration of QWebHistoryItem in qwebframe.h)
1814
1815         * Api/qwebframe.h:
1816         * Api/qwebhistory.cpp:
1817         (QWebHistoryItem::userData):
1818         (QWebHistoryItem::setUserData):
1819         (QWebHistory::currentItemIndex):
1820         (QWebHistory::maximumItemCount):
1821         (QWebHistory::setMaximumItemCount):
1822         * Api/qwebhistory.h:
1823         * WebCoreSupport/FrameLoaderClientQt.cpp:
1824         (WebCore::FrameLoaderClientQt::saveViewStateToItem):
1825         * tests/qwebpage/tst_qwebpage.cpp:
1826         (tst_QWebPage::modified):
1827
1828 2008-11-03  Cameron Zwarich  <zwarich@apple.com>
1829
1830         Rubber-stamped by Maciej Stachowiak.
1831
1832         Move more files into the runtime subdirectory of JavaScriptCore.
1833
1834         * Api/qwebpage.cpp:
1835
1836 2008-10-25  Jade Han  <jade.han@nokia.com>
1837
1838         Reviewed by Anders. 
1839
1840         Enable custom properties for Qt runtime objects in QtWebKit
1841
1842         https://bugs.webkit.org/show_bug.cgi?id=21813
1843
1844         * tests/qwebframe/tst_qwebframe.cpp:
1845
1846 2008-10-24  Sam Weinig  <sam@webkit.org>
1847
1848         Another Qt build fix.
1849
1850         * WebCoreSupport/ChromeClientQt.cpp:
1851
1852 2008-10-24  Sam Weinig  <sam@webkit.org>
1853
1854         Reviewed by Dan Bernstein.
1855
1856         Fix https://bugs.webkit.org/show_bug.cgi?id=21759
1857         Layering violation: FileChooser should not depend on Document/Frame/Page
1858
1859         * WebCoreSupport/ChromeClientQt.cpp:
1860         (WebCore::ChromeClientQt::runOpenPanel):
1861         * WebCoreSupport/ChromeClientQt.h:
1862
1863 2008-10-24  Timothy Hatcher  <timothy@apple.com>
1864
1865         Stub out new InspectorClient methods.
1866
1867         https://bugs.webkit.org/show_bug.cgi?id=21856
1868
1869         Reviewed by Darin Adler.
1870
1871         * WebCoreSupport/InspectorClientQt.cpp:
1872         (WebCore::InspectorClientQt::populateSetting): Not implemented.
1873         (WebCore::InspectorClientQt::storeSetting): Ditto.
1874         (WebCore::InspectorClientQt::removeSetting): Ditto.
1875         * WebCoreSupport/InspectorClientQt.h:
1876
1877 2008-10-24  Darin Adler  <darin@apple.com>
1878
1879         - finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732
1880
1881         * Api/qwebframe.cpp:
1882         (QWebFrame::evaluateJavaScript): Use JSValue* instead of JSValuePtr.
1883
1884 2008-10-23  Yael Aharon <yael.aharon@nokia.com>
1885
1886         Reviewed by Simon Hausmann.
1887
1888         Invalid history entries could cause a crash in QT Webkit
1889
1890         * Api/qwebhistory.cpp:
1891         (QWebHistoryItem::originalUrl):
1892         (QWebHistoryItem::url):
1893         (QWebHistoryItem::title):
1894         (QWebHistoryItem::lastVisited):
1895         (QWebHistoryItem::icon):
1896         (QWebHistoryItem::isValid):
1897         * Api/qwebhistory.h:
1898         * Api/qwebhistory_p.h:
1899         (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
1900         (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
1901         * tests/qwebpage/tst_qwebpage.cpp:
1902         (tst_QWebPage::modified):
1903
1904 2008-10-22  Yael Aharon <yael.aharon@nokia.com>
1905
1906         Reviewed by Simon Hausmann.
1907
1908         emit scrollRequested unconditionally when scrolling.
1909
1910         See https://bugs.webkit.org/show_bug.cgi?id=21790
1911
1912         * WebCoreSupport/ChromeClientQt.cpp:
1913         (WebCore::ChromeClientQt::scroll):
1914
1915 2008-10-23  Simon Hausmann  <hausmann@webkit.org>
1916
1917         Reviewed by Tor Arne.
1918
1919         Fix handling of mouse events when embedding QWebView into the
1920         QGraphicsView.
1921
1922         QWebPage accepts or ignores events to indicate whether the web page
1923         handled the event. However for QWebView to behave like a good widget
1924         it should always accept the mouse events to indicate that it handled
1925         them and that they should not be subject to event propagation.
1926
1927         The graphics view relies on acceptance of the initial mouse click to
1928         make the embedded widget the focus item.
1929
1930         * Api/qwebview.cpp:
1931         (QWebView::mouseMoveEvent):
1932         (QWebView::mousePressEvent):
1933         (QWebView::mouseDoubleClickEvent):
1934         (QWebView::mouseReleaseEvent):
1935         (QWebView::contextMenuEvent):
1936         (QWebView::wheelEvent):
1937
1938 2008-10-22  Ariya Hidayat  <ariya.hidayat@trolltech.com>
1939
1940         Reviewed by Simon Hausmann.
1941
1942         For public API, use the term boundingRect instead of boundingBox.
1943
1944         * Api/qwebframe.cpp:
1945         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1946         (QWebHitTestResult::boundingRect):
1947         * Api/qwebframe.h:
1948         * Api/qwebframe_p.h:
1949
1950 2008-06-03  Siraj Razick  <siraj.razick@collabora.co.uk>
1951
1952         Reviewed by Simon Hausmann.
1953
1954         https://bugs.webkit.org/show_bug.cgi?id=19374
1955
1956         Expose boundingBox value in QWebHitTestResult
1957
1958         Add API function QRect QWebHitResult::boundingBox() const
1959
1960         API docs by Ariya.
1961
1962         * Api/qwebframe.cpp:
1963         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1964         (QWebHitTestResult::boundingBox):
1965         * Api/qwebframe.h:
1966         * Api/qwebframe_p.h:
1967
1968 2008-10-21  Yael Aharon <yael.aharon@nokia.com>
1969
1970         Reviewed by Simon Hausmann.
1971
1972         emit repaintRequested unconditionally when repaint is requested.
1973
1974         * WebCoreSupport/ChromeClientQt.cpp:
1975         (WebCore::ChromeClientQt::repaint):
1976
1977 2008-10-20  Sam Weinig  <sam@webkit.org>
1978
1979         Reviewed by Anders Carlsson.
1980
1981         Remove FrameLoaderClient::detachedFromParent4.  It is no longer used by any port.
1982
1983         * WebCoreSupport/FrameLoaderClientQt.cpp:
1984         * WebCoreSupport/FrameLoaderClientQt.h:
1985
1986 2008-10-19  Darin Adler  <darin@apple.com>
1987
1988         Reviewed by Oliver Hunt.
1989
1990         - next step of https://bugs.webkit.org/show_bug.cgi?id=21732
1991           improve performance by eliminating JSValue as a base class for JSCell
1992
1993         Remove most uses of JSValue, which will be removed in a future patch.
1994
1995         * Api/qwebframe.cpp:
1996         (QWebFrame::evaluateJavaScript): Use JSValuePtr.
1997
1998 2008-10-14  Tor Arne Vestbø  <tavestbo@trolltech.com>
1999
2000         Reviewed by Simon.
2001
2002         Clip painter to dirty rect before passing on to WebKit
2003         
2004         This was previously done in ScrollViewQt, but after the
2005         refactoring of ScrollView we need to do it in QWebFrame
2006         instead, similar to Safari/Win.
2007
2008         * Api/qwebframe.cpp:
2009         (QWebFrame::render):
2010
2011 2008-10-08  Matthias Ettrich <ettrich@nokia.com>
2012
2013         Reviewed by Simon.
2014
2015         Make QWebView ignore focus changes with PopupFocusReason to avoid
2016         massive updates when menus open and close.
2017
2018         * Api/qwebview.cpp:
2019         (QWebView::focusInEvent):
2020         (QWebView::focusOutEvent):
2021
2022 2008-10-08  Kavindra Palaraja  <kdpalara@trolltech.com>
2023
2024         Reviewed by Simon.
2025
2026         Fixed a qdoc warning and adjusted some spacing
2027
2028         * Api/qwebframe.cpp:
2029
2030 2008-10-08  Rhys Weatherley  <rhys.weatherley@nokia.com>
2031
2032         Reviewed by Simon.
2033
2034         Compile for platforms without context menus.
2035
2036         * Api/qwebpage.cpp:
2037         (QWebPage::createStandardContextMenu):
2038
2039 2008-10-08  André Pönitz  <apoenitz@trolltech.com>
2040
2041         Reviewed by Simon.
2042
2043         Fix compilation with Qt namespaces.
2044
2045         * WebCoreSupport/EditCommandQt.h:
2046
2047 2008-10-07  Tor Arne Vestbø  <tavestbo@trolltech.com>
2048
2049         QtWebKit build fix after changes to FrameLoaderClient.h in r37371
2050
2051         * WebCoreSupport/FrameLoaderClientQt.h:
2052
2053 2008-10-07  Holger Hans Peter Freyther  <zecke@selfish.org>
2054
2055         [qt] Build fix after Scrollbar.h and Widget.h changes.
2056
2057         * Api/qwebpage.cpp:
2058         (QWebPage::swallowContextMenuEvent):
2059
2060 2008-10-06  David Hyatt  <hyatt@apple.com>
2061
2062         Enable viewless Mac WebKit to paint some basic pages.
2063         
2064         Reviewed by Sam Weinig
2065
2066         * WebCoreSupport/FrameLoaderClientQt.cpp:
2067         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2068
2069 2008-10-03  David Hyatt  <hyatt@apple.com>
2070
2071         Fix scroll method on Qt.  The delta was supposed to use .width()/.height() and not .x()/.y().
2072
2073         Fix the QtPluginWidget to do an invalidate properly.
2074
2075         Reviewed by ggaren
2076
2077         * WebCoreSupport/ChromeClientQt.cpp:
2078         (WebCore::ChromeClientQt::scroll):
2079         * WebCoreSupport/FrameLoaderClientQt.cpp:
2080         (WebCore::):
2081
2082 2008-10-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2083
2084         Build fix. Remove addToDirtyRegion from the header file.
2085
2086         * WebCoreSupport/ChromeClientQt.h:
2087
2088 2008-10-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2089
2090         Build fix.
2091
2092         * WebCoreSupport/ChromeClientQt.cpp:
2093         (WebCore::ChromeClientQt::scroll):
2094         * WebCoreSupport/FrameLoaderClientQt.cpp:
2095         (WebCore::):
2096         (WebCore::FrameLoaderClientQt::createPlugin):
2097
2098 2008-10-03  David Hyatt  <hyatt@apple.com>
2099
2100         Remove addToDirtyRegion.
2101         
2102         Reviewed by Oliver Hunt
2103
2104         * WebCoreSupport/ChromeClientQt.cpp:
2105
2106 2008-10-02  David Hyatt  <hyatt@apple.com>
2107
2108         https://bugs.webkit.org/show_bug.cgi?id=21314
2109         
2110         Make scrollBackingStore cross-platform.
2111
2112         Reviewed by Sam Weinig
2113
2114         * WebCoreSupport/ChromeClientQt.cpp:
2115         (WebCore::ChromeClientQt::repaint):
2116         (WebCore::ChromeClientQt::scroll):
2117         * WebCoreSupport/ChromeClientQt.h:
2118
2119 2008-10-01  David Hyatt  <hyatt@apple.com>
2120         
2121         https://bugs.webkit.org/show_bug.cgi?id=21282
2122         
2123         Make contentsToScreen/screenToContents cross-platform.  Only implemented by Mac/Win right now.
2124         
2125         Reviewed by Adam Roben
2126
2127         * WebCoreSupport/ChromeClientQt.cpp:
2128         (WebCore::ChromeClientQt::windowToScreen):
2129         (WebCore::ChromeClientQt::screenToWindow):
2130         * WebCoreSupport/ChromeClientQt.h:
2131
2132 2008-09-30  Dave Hyatt  <hyatt@apple.com>
2133
2134         http://bugs.webkit.org/show_bug.cgi?id=21250
2135         
2136         Rename updateContents to repaintContentRectangle and make it cross-platform by always sending
2137         repaints up through the ChromeClient.
2138
2139         Reviewed by Darin Adler
2140
2141         * WebCoreSupport/ChromeClientQt.cpp:
2142         (WebCore::ChromeClientQt::repaint):
2143         * WebCoreSupport/ChromeClientQt.h:
2144
2145 2008-09-29  Gunnar Sletta  <gunnar@trolltech.com>
2146
2147         Reviewed by Simon
2148
2149         Compile on windows using MSVC 2005
2150
2151         For the PCH We need to define _WIN32_WINNT and include windows.h early on,
2152         otherwise we'll miss several functions.
2153
2154         * WebKit_pch.h:
2155
2156 2008-09-29  Thiago Macieira  <thiago.macieira@nokia.com>
2157
2158         Reviewed by Simon.
2159
2160         Changed copyright from Trolltech ASA to Nokia.
2161         
2162         Nokia acquired Trolltech ASA, assets were transferred on September 26th 2008.
2163         
2164
2165         * Api/qwebframe.cpp:
2166         * Api/qwebframe.h:
2167         * Api/qwebframe_p.h:
2168         * Api/qwebhistory.cpp:
2169         * Api/qwebhistory.h:
2170         * Api/qwebhistory_p.h:
2171         * Api/qwebkitglobal.h:
2172         * Api/qwebnetworkinterface.cpp:
2173         * Api/qwebnetworkinterface.h:
2174         * Api/qwebnetworkinterface_p.h:
2175         * Api/qwebpage.cpp:
2176         * Api/qwebpage.h:
2177         * Api/qwebpage_p.h:
2178         * Api/qwebpluginfactory.cpp:
2179         * Api/qwebpluginfactory.h:
2180         * Api/qwebsettings.cpp:
2181         * Api/qwebsettings.h:
2182         * Api/qwebview.cpp:
2183         * Api/qwebview.h:
2184         * Plugins/ICOHandler.cpp:
2185         * QtLauncher/main.cpp:
2186         * WebCoreSupport/FrameLoaderClientQt.cpp:
2187         * WebCoreSupport/FrameLoaderClientQt.h:
2188         * WebCoreSupport/InspectorClientQt.cpp:
2189         * WebCoreSupport/InspectorClientQt.h:
2190         * tests/qwebframe/tst_qwebframe.cpp:
2191         * tests/qwebpage/tst_qwebpage.cpp:
2192
2193 2008-09-28  Simon Hausmann  <hausmann@webkit.org>
2194
2195         Reviewed by David Hyatt.
2196
2197         Ensure the mainThreadIdentifier is set as well as other bits and pieces of
2198         the threading machinery, by calling JSC::initializeThreading().
2199
2200         * Api/qwebpage.cpp:
2201         (QWebPagePrivate::QWebPagePrivate):
2202
2203 2008-09-27  David Hyatt  <hyatt@apple.com>
2204
2205         Forgot to land renaming changes in WebKit.
2206
2207         * Api/qwebframe.cpp:
2208         (QWebFrame::render):
2209         (QWebFrame::pos):
2210         (QWebFrame::geometry):
2211         * Api/qwebpage.cpp:
2212         (QWebPage::viewportSize):
2213         (QWebPage::setViewportSize):
2214
2215 2008-09-27  Simon Hausmann  <hausmann@webkit.org>
2216
2217         Qt build fix - use frameRect instead of frameGeometry, adapt
2218         to renamed scrollbar frameview methods.
2219
2220         * Api/qwebpage.cpp:
2221         (QWebPage::viewportSize):
2222         (QWebPage::setViewportSize):
2223         * WebCoreSupport/FrameLoaderClientQt.cpp:
2224         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2225
2226 2008-09-27  Jan Michael Alonzo  <jmalonzo@webkit.org>
2227
2228         Qt build fix - rename frameGeometry to frameRect per r36995.
2229
2230         * Api/qwebframe.cpp:
2231         (QWebFrame::render):
2232         (QWebFrame::pos):
2233         (QWebFrame::geometry):
2234
2235 2008-09-26  Ariya Hidayat  <ahidayat@trolltech.com>
2236
2237         Reviewed by Simon.
2238
2239         Fixed potential crash when deleting QWebView instance.
2240
2241         When deleting the view, sets the page's view to NULL.
2242         The reason is that the page is smart and its destructor might lead to a call
2243         that operates on a view (which is in the process of being deleted).
2244
2245         * Api/qwebpage.h:
2246         * Api/qwebview.cpp:
2247         (QWebView::~QWebView):
2248
2249 2008-09-26  Ariya Hidayat  <ahidayat@trolltech.com>
2250
2251         Reviewed by Simon.
2252
2253         Fixed using modifiers to type special symbols (e.g '@','$') does not work on Mac OS X.
2254
2255         * WebCoreSupport/EditorClientQt.cpp:
2256         (WebCore::EditorClientQt::handleKeyboardEvent):
2257
2258 2008-09-26  Håvard Wall  <hwall@trolltech.com>
2259
2260         Reviewed by Simon.
2261
2262         Fix compilation with QT_NO_MESSAGEBOX
2263
2264         * Api/qwebpage.cpp:
2265         (QWebPage::javaScriptAlert):
2266         (QWebPage::javaScriptConfirm):
2267
2268 2008-09-23  Tor Arne Vestbø  <tavestbo@trolltech.com>
2269
2270         Reviewed by Simon.
2271
2272         Remove deprecated JS Qt bindings object call/construct code and fix autotests
2273
2274         * tests/qwebframe/tst_qwebframe.cpp:
2275
2276 2008-09-16  Alp Toker  <alp@nuanti.com>
2277
2278         Prospective Qt build fix. ScrollBar.h -> Scrollbar.h
2279
2280         * Api/qwebframe.cpp:
2281         * Api/qwebpage.cpp:
2282
2283 2008-09-15  Eli Fidler  <eli@staikos.net>
2284
2285         Reviewed by Simon.
2286
2287         Yahoo assumes non-RFC compliant HTTP redirect behaviour. QtWebKit is (more)
2288         compliant, so broken. I think the Yahoo-assumed behaviour is real-world standard.
2289
2290         Basically, Yahoo's login procedure for flickr looks like this:
2291         1. load flickr.com, click "sign in"
2292         2. this is a Yahoo page with a form
2293         (https://login.yahoo.com/config/login?.src=flickr...)
2294         when you click the "Sign In" button, the form submits to a yahoo.com POST URL
2295         3. The POST returns with a 302 (redirect) to another yahoo.com URL
2296         4. If you POST the redirected Location:, it all breaks. Yahoo assumes you will
2297         convert the method to GET, which works fine but is definitely not
2298         RFC-compliant. It would be compliant for 303, and the RFC says that many
2299         implementations treat 302 and 303 the same way (for HTTP/1.0 compliance), but
2300         converting to GET is explicitly wrong for 302.
2301
2302         * Api/qwebnetworkinterface.cpp:
2303         (QWebNetworkManager::started):
2304
2305 2008-09-15  Tor Arne Vestbø  <tavestbo@trolltech.com>
2306
2307         Reviewed by Simon.
2308
2309         Make QtInstance::create() private and fix caching
2310
2311         * Api/qwebframe.cpp:
2312         (QWebFrame::addToJavaScriptWindowObject):
2313
2314 2008-09-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
2315
2316         Rubber-stamped by Simon.
2317
2318         Prevent leaking pages and frames in QWebKit autotest
2319
2320         * tests/qwebpage/tst_qwebpage.cpp:
2321
2322 2008-09-11  Tor Arne Vestbø  <tavestbo@trolltech.com>
2323
2324         Reviewed by Simon
2325
2326         Fix QtWebKit autotest
2327
2328         * tests/qwebpage/tst_qwebpage.cpp:
2329         (tst_QWebPage::userStyleSheet):
2330
2331 2008-09-09  Joerg Bornemann  <joerg.bornemann@trolltech.com>
2332
2333         Reviewed by Simon.
2334
2335         Added missing WebCore prefix to ResourceRequest
2336
2337         This is needed for Windows/CE compilation where there is a conflict
2338         with a global ResourceRequest type. Elsewhere in this file ResourceRequest
2339         is also prefixed with WebCore::
2340
2341         * Api/qwebframe.cpp:
2342         (QWebFrame::QWebFrame):
2343
2344 2008-09-07  Cameron Zwarich  <cwzwarich@uwaterloo.ca>
2345
2346         Reviewed by Maciej Stachowiak.
2347
2348         Bug 20704: Replace the KJS namespace
2349         <https://bugs.webkit.org/show_bug.cgi?id=20704>
2350
2351         Rename the KJS namespace to JSC.
2352
2353         * Api/qwebframe.cpp:
2354         (QWebFrame::addToJavaScriptWindowObject):
2355         (QWebFrame::evaluateJavaScript):
2356
2357 2008-09-04  Tor Arne Vestbø  <tavestbo@trolltech.com>
2358
2359         Reviewed by Simon
2360
2361         Fix the QtWebKit build to match changes in r36016
2362
2363         * Api/qwebframe.cpp:
2364         (QWebFrame::addToJavaScriptWindowObject):
2365
2366 2008-09-04  Tor Arne Vestbø  <tavestbo@trolltech.com>
2367
2368         Reviewed by Simon.
2369
2370         Re-enable support for user stylesheets in QtWebKit
2371         
2372         QtWebKit now follows the FRAME_LOADS_USER_STYLESHEET
2373         code path, which allows us to keep API support for
2374         loading user style sheets from remote URLs.
2375         
2376         As part of the change UserStyleSheetLoader.cpp/h was
2377         moved from WebCore/loader/mac to WebCore/loader.
2378
2379         * tests/qwebpage/tst_qwebpage.cpp:
2380         (tst_QWebPage::userStyleSheet):
2381
2382 2008-08-29  Holger Hans Peter Freyther  <zecke@selfish.org>
2383
2384         Reviewed by Eric Seidel.
2385
2386         [janitor/qt] Start replacing port specific getters with the generic native getter
2387         To get the native presentation of an image we currently have platform
2388         specific #ifdef's and a generic getter using NativeImagePtr. This patch
2389         extends this to the ImageBuffer and updates the Qt platform to get rid
2390         of the special #ifdefs.
2391
2392         https://bugs.webkit.org/attachment.cgi?id=22861
2393
2394         * Api/qwebframe.cpp:
2395         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
2396         * Api/qwebhistory.cpp:
2397         * Api/qwebsettings.cpp:
2398         (QWebSettings::iconForUrl):
2399
2400 2008-08-29  Holger Hans Peter Freyther  <zecke@selfish.org>
2401
2402         Reviewed by Simon.
2403
2404         Catch up with the introduction of PageGroup in r30840. Enable tracking of
2405         visited links, enable this in QWebPage next to the other WebCore init call.
2406         Calling this more than once is no issue and a cheap operation, we also do not
2407         reset the state. When clearing the history of a page, clear the link state.
2408
2409         * Api/qwebhistory.cpp:
2410         (QWebHistory::clear):
2411         * Api/qwebhistoryinterface.cpp:
2412         (QWebHistoryInterface::setDefaultInterface):
2413         * Api/qwebpage.cpp:
2414         (QWebPagePrivate::QWebPagePrivate):
2415
2416 2008-08-29  Holger Hans Peter Freyther  <zecke@selfish.org>
2417
2418         Reviewed by Simon.
2419
2420         Revert revision 34348 which removed the global historyContains() function.
2421
2422         This function was needed to implement the public API of QWebHistoryInterface
2423         and will be used again in the near future.
2424
2425         * Api/qwebhistoryinterface.cpp:
2426         (WebCore::historyContains):
2427
2428 2008-08-27  Erik Bunce  <elbunce@thehive.com>
2429
2430         Reviewed by Eric Seidel.
2431
2432         https://bugs.webkit.org/show_bug.cgi?id=20223
2433
2434         Add QWebPage::contentsChanged() signal to notify of content changes.
2435
2436         * Api/qwebpage.cpp:
2437         * Api/qwebpage.h:
2438         * WebCoreSupport/EditorClientQt.cpp:
2439         (WebCore::EditorClientQt::respondToChangedContents):
2440
2441 2008-08-27  Brady Eidson  <beidson@apple.com>
2442
2443         Reviewed by Anders
2444
2445         <rdar://problem/6134133> - Crash when loading large movie as a standalone document
2446
2447         * WebCoreSupport/FrameLoaderClientQt.cpp:
2448         (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError): Stubbed for now
2449         * WebCoreSupport/FrameLoaderClientQt.h:
2450
2451 2008-08-25  Holger Hans Peter Freyther  <zecke@selfish.org>
2452
2453         Reviewed by Simon.
2454
2455         [inspector] Emit signals from attachWindow and detachWindow in the Qt platform
2456         Allow the user of the API to honor the attachWindow and detachWindow
2457         requests and attach the QWebPage/QWebView wherever it is wanted. This needs
2458         some more API in QWebPage to be properly exposed.
2459
2460         * WebCoreSupport/InspectorClientQt.cpp:
2461         (WebCore::InspectorClientQt::createPage):
2462         (WebCore::InspectorClientQt::attachWindow):
2463         (WebCore::InspectorClientQt::detachWindow):
2464         * WebCoreSupport/InspectorClientQt.h:
2465
2466 2008-08-19  Alexey Proskuryakov  <ap@webkit.org>
2467
2468         Reviewed by Geoff Garen.
2469
2470         Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.
2471
2472         * Api/qwebframe.cpp:
2473         (QWebFrame::addToJavaScriptWindowObject):
2474
2475 2008-08-15  Håvard Wall  <hwall@trolltech.com>
2476
2477         Reviewed by Simon.
2478
2479         Fixes: compile with QT_NO_UNDOCOMMAND/STACK
2480         
2481
2482         * Api/qwebpage.cpp:
2483         (SetCursorEvent::SetCursorEvent):
2484         (QWebPagePrivate::createContextMenu):
2485         (QWebPage::action):
2486         * Api/qwebpage.h:
2487         * Api/qwebpage_p.h:
2488         * WebCoreSupport/EditCommandQt.cpp:
2489         (EditCommandQt::EditCommandQt):
2490         * WebCoreSupport/EditCommandQt.h:
2491         * WebCoreSupport/EditorClientQt.cpp:
2492         (dumpPath):
2493         (WebCore::EditorClientQt::shouldInsertText):
2494         (WebCore::EditorClientQt::shouldChangeSelectedRange):
2495         (WebCore::EditorClientQt::isEditable):
2496         (WebCore::EditorClientQt::registerCommandForUndo):
2497         (WebCore::EditorClientQt::clearUndoRedoOperations):
2498         (WebCore::EditorClientQt::canUndo):
2499         (WebCore::EditorClientQt::canRedo):
2500         (WebCore::EditorClientQt::undo):
2501         (WebCore::EditorClientQt::redo):
2502         (WebCore::EditorClientQt::shouldInsertNode):
2503
2504 2008-08-15  Håvard Wall  <hwall@trolltech.com>
2505
2506         Reviewed by Simon.
2507
2508         Fixes: compile with QT_NO_STYLE_STYLESHEET
2509         
2510
2511         * WebCoreSupport/FrameLoaderClientQt.cpp:
2512         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
2513         (WebCore::FrameLoaderClientQt::createPlugin):
2514
2515 2008-08-15  Håvard Wall  <hwall@trolltech.com>
2516
2517         Reviewed by Simon.
2518
2519         Fixes: compile with QT_NO_SHORTCUT
2520         
2521
2522         * Api/qwebpage.cpp:
2523         (QWebPagePrivate::mouseMoveEvent):
2524         (QWebPagePrivate::mouseReleaseEvent):
2525         (QWebPagePrivate::dragMoveEvent):
2526
2527 2008-08-15  Håvard Wall  <hwall@trolltech.com>
2528
2529         Reviewed by Simon.
2530
2531         Fixes:    compile with QT_NO_CONTEXTMENU
2532         
2533
2534         * Api/qwebpage.cpp:
2535         (editorCommandForWebActions):
2536         (QWebPagePrivate::QWebPagePrivate):
2537         (QWebPagePrivate::createMainFrame):
2538         (QWebPagePrivate::updateEditorActions):
2539         (QWebPage::setEditable):
2540         * Api/qwebpage.h:
2541         * Api/qwebpage_p.h:
2542         * Api/qwebview.cpp:
2543         * Api/qwebview.h:
2544
2545 2008-08-15  Håvard Wall  <hwall@trolltech.com>
2546
2547         Reviewed by Simon.
2548
2549         Fixes: compile with QT_NO_WHEELEVENT
2550         
2551
2552         * Api/qwebpage.cpp:
2553         (QWebPagePrivate::updateEditorActions):
2554         (QWebPage::event):
2555         * Api/qwebpage_p.h:
2556         * Api/qwebview.cpp:
2557         * Api/qwebview.h:
2558
2559 2008-08-15  Håvard Wall  <hwall@trolltech.com>
2560
2561         Reviewed by Simon.
2562
2563         Fixes: compile with QT_NO_PRINTER
2564         
2565
2566         * Api/qwebframe.cpp:
2567         (QWebFrame::print):
2568         * Api/qwebframe.h:
2569
2570 2008-08-15  David Boddie  <dboddie@trolltech.com>
2571
2572         Reviewed by Simon.
2573
2574         Doc: Added documentation for default property values.
2575         
2576
2577         * Api/qwebpage.cpp:
2578         (QWebPagePrivate::keyPressEvent):
2579         (QWebPage::triggerAction):
2580         (QWebPage::acceptNavigationRequest):
2581         (QWebPage::action):
2582         * Api/qwebview.cpp:
2583
2584 2008-08-15  David Boddie  <dboddie@trolltech.com>
2585
2586         Reviewed by Simon.
2587
2588         Doc: Renamed snippets that appear in the code directory.
2589         
2590
2591         * Api/qwebview.cpp:
2592         (QWebView::event):
2593         (QWebView::print):
2594
2595 2008-08-12  Timothy Hatcher  <timothy@apple.com>
2596
2597         Add a stub for InspectorClient::setAttachedWindowHeight.
2598
2599         * WebCoreSupport/InspectorClientQt.cpp:
2600         (WebCore::InspectorClientQt::setAttachedWindowHeight):
2601         Call notImplemented().
2602         * WebCoreSupport/InspectorClientQt.h:
2603
2604 2008-08-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2605
2606         Reviewed by Simon.
2607
2608         Use full-page zoom in QtLauncher.
2609
2610         * QtLauncher/main.cpp:
2611         (MainWindow::zoomIn):
2612         (MainWindow::zoomOut):
2613         (MainWindow::resetZoom):
2614         (MainWindow::setupUI):
2615
2616 2008-08-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2617
2618         Reviewed by Simon.
2619
2620         Fix linking with QtWebKit.
2621
2622         * Api/qwebframe.h: remove non-existing function/property.
2623
2624 2008-08-13  Simon Hausmann  <hausmann@webkit.org>
2625
2626         Reviewed by Holger.
2627
2628         Based on patch by Siraj razick <siraj.razick@collabora.co.uk>
2629
2630         https://bugs.webkit.org/show_bug.cgi?id=19125
2631
2632         Added functions to get/set the zoom factor.
2633
2634         Added a QWebFrame/QWebView::zoomFactor as well as a boolean
2635         ZoomTextOnly attribute in QWebSettings.
2636
2637         * Api/qwebframe.cpp:
2638         (QWebFrame::setZoomFactor):
2639         (QWebFrame::zoomFactor):
2640         * Api/qwebframe.h:
2641         * Api/qwebsettings.cpp:
2642         (QWebSettingsPrivate::apply):
2643         (QWebSettings::QWebSettings):
2644         * Api/qwebsettings.h:
2645         * Api/qwebview.cpp:
2646         (QWebView::setZoomFactor):
2647         (QWebView::zoomFactor):
2648         * Api/qwebview.h:
2649
2650 2008-08-13  Simon Hausmann  <hausmann@webkit.org>
2651
2652         Reviewed by Lars.
2653
2654         Fix QWebFrame::setHtml() not setting the new contents immediately.
2655
2656         Added a setter to the DocumentLoader to toggle the deferred loading of the main
2657         resource when it comes from substitute data.
2658
2659         Disable deferred loading of the main resource when we have valid substitute data,
2660         as used by QWebFrame::setHtml.
2661
2662         * WebCoreSupport/FrameLoaderClientQt.cpp:
2663         (WebCore::FrameLoaderClientQt::download):
2664
2665 2008-08-13  Simon Hausmann  <hausmann@webkit.org>
2666
2667         Rubber-stamped by Holger.
2668
2669         Fix QWebPage::isModified().
2670
2671         isModified() would return true after loading a new page or it would continue to
2672         return true after undoing modifications. Fix this by eliminating the
2673         QWebPagePrivate::modified variable and use the undoStack's canUndo() property
2674         instead.
2675
2676         https://bugs.webkit.org/show_bug.cgi?id=19252
2677
2678         * Api/qwebpage.cpp:
2679         (QWebPage::action):
2680         * Api/qwebpage_p.h:
2681         * WebCoreSupport/EditorClientQt.cpp:
2682         (WebCore::EditorClientQt::respondToChangedContents):
2683
2684 2008-08-13  David Boddie  <dboddie@trolltech.com>
2685
2686         Reviewed by Simon.
2687
2688         Updated docs with the signal emission behavior of urlChanged()
2689
2690         * Api/qwebframe.cpp:
2691
2692 2008-08-13  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2693
2694         Reviewed by Simon.
2695
2696         Fix Ctrl+Y to work again when editing text in contextEditable mode.
2697
2698         This fixes regression in LayoutTests/editing/pasteboard/emacs-cntl-y-001.html
2699
2700         * WebCoreSupport/EditorClientQt.cpp:
2701         (WebCore::EditorClientQt::handleKeyboardEvent):
2702
2703 2008-08-13  Thiago Macieira  <tjmaciei@trolltech.com>
2704
2705         Reviewed by Simon.
2706
2707         Fix encoding of [ and ] in the host part of the URL
2708
2709         Until QUrl is fixed (making QUrl's tolerant parser more tolerant), we have to
2710         add this workaround to the QUrl <> WebCore::KURL conversion operator so that it
2711         doesn't encode [ and ] when they are found in the host part. That is, the
2712         following URL:
2713         http://[::1]/
2714         is valid and should not be reencoded to:
2715         http://%5b::1%5d/
2716
2717         This change adds the automatic test for it.
2718
2719         * tests/qwebframe/tst_qwebframe.cpp:
2720
2721 2008-08-12  Urs Wolfer  <uwolfer@kde.org>
2722
2723         Reviewed by Simon.
2724
2725         https://bugs.webkit.org/show_bug.cgi?id=20357
2726
2727         Fix crash in QWebPage in case contextMenuEvent has been overwritten
2728         because context menu has the view as parent and thus is deleted too early.
2729
2730         Add testcase for this crash.
2731
2732         * Api/qwebpage_p.h:
2733         * tests/qwebpage/tst_qwebpage.cpp:
2734         (tst_QWebPage::contextMenuCrash):
2735
2736 2008-08-07  Simon Hausmann  <hausmann@webkit.org>
2737
2738         Rubber-stamped by Lars.
2739
2740         Added API tests for QWebPage/QWebFrame based on QTestLib.
2741
2742         * tests/qwebframe/qwebframe.pro: Added.
2743         * tests/qwebframe/tst_qwebframe.cpp: Added.
2744         * tests/qwebpage/qwebpage.pro: Added.
2745         * tests/qwebpage/tst_qwebpage.cpp: Added.
2746         * tests/tests.pro: Added.
2747
2748 2008-08-06  Benjamin C Meyer  <ben@meyerhome.net>
2749
2750         Reviewed by Simon.
2751
2752         During the drag operation only accept the event if the action is not ignore action.
2753
2754         * Api/qwebpage.cpp:
2755         (QWebPagePrivate::dragEnterEvent):
2756         (QWebPagePrivate::dragMoveEvent):
2757         (QWebPagePrivate::dropEvent):
2758
2759 2008-08-06  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2760
2761         Fix the Qt build due to recent ScriptController refactoring.
2762
2763         * Api/qwebframe.cpp:
2764         (QWebFrame::addToJavaScriptWindowObject):
2765
2766 2008-08-05  Tor Arne Vestbø  <tavestbo@trolltech.com>
2767
2768         Reviewed by Simon.
2769
2770         Move event handling of the return-key from EditorClientQt to QWebPage.
2771         
2772         https://bugs.webkit.org/show_bug.cgi?id=20191
2773         
2774         This is a first step in refactoring the big switch block
2775         in EditorClientQt::handleKeyboardEvent to using WebActions
2776         instead.
2777         
2778         The new logic uses two new StandardKeys from QKeySequence:
2779         
2780         - InsertParagraphSeparator
2781         - InsertLineSeparator
2782         
2783         Which translate to the commands InsertNewline and InsertLineBreak
2784         respectivly. On Windows/X11 pressing the shift modifier will invoke
2785         the latter action. For Mac this is triggered by pressing the meta
2786         modifier (Ctrl).
2787         
2788         Initial patch by: Erik Bunce
2789
2790         * Api/qwebpage.cpp:
2791         (editorActionForKeyEvent):
2792         * Api/qwebpage.h:
2793         * WebCoreSupport/EditorClientQt.cpp:
2794         (WebCore::EditorClientQt::handleKeyboardEvent):
2795
2796 2008-08-04  Erik Bunce  <elbunce@thehive.com>
2797
2798         Reviewed by Simon.
2799
2800         https://bugs.webkit.org/show_bug.cgi?id=20221
2801
2802         Add updateAction() support to ToggleBold, ToggleItalic, and ToggleUnderline.
2803         Add lookup table for mapping web actions to editor commands.
2804
2805         * Api/qwebpage.cpp:
2806         (editorCommandForWebActions):
2807         (QWebPagePrivate::updateAction):
2808         (QWebPagePrivate::updateEditorActions):
2809         (QWebPage::triggerAction):
2810         (QWebPage::setEditable):
2811
2812 2008-08-03  Ariya Hidayat  <ariya.hidayat@trolltech.com>
2813
2814         Reviewed by Simon.
2815
2816         A bunch of improvements to the QtLauncher.
2817
2818         Among others:
2819         - Unify and unclutter the toolbar, use menu for addition actions
2820         - Simplify URL edit, just use QLineEdit (no fancy close button etc)
2821         - Guess the URL from the command line so now we can run ./QtLauncher www.google.com
2822         - Shortcut keys for most actions
2823         - Simple autocomplete for the URL edit
2824         - Actions for zooming, New Window and Close Window
2825         - Show Format menu only when the content is set to editable
2826
2827         * QtLauncher/main.cpp:
2828         (MainWindow::MainWindow):
2829         (MainWindow::webPage):
2830         (MainWindow::changeLocation):
2831         (MainWindow::loadFinished):
2832         (MainWindow::showLinkHover):
2833         (MainWindow::newWindow):
2834         (MainWindow::zoomIn):
2835         (MainWindow::zoomOut):
2836         (MainWindow::resetZoom):
2837         (MainWindow::print):
2838         (MainWindow::setEditable):
2839         (MainWindow::dumpHtml):
2840         (MainWindow::setupUI):
2841         (main):
2842
2843 2008-08-04  Erik Bunce  <elbunce@thehive.com>
2844
2845         Reviewed by Simon.
2846
2847         https://bugs.webkit.org/show_bug.cgi?id=20198
2848
2849         Allow Copy key sequence to work in non-editable areas.
2850
2851         * Api/qwebpage.cpp:
2852         (QWebPagePrivate::keyPressEvent):
2853
2854 2008-07-31  Erik Bunce  <elbunce@thehive.com>
2855
2856         Reviewed by Simon.
2857
2858         Make sure edit actions get updated when the contents change.
2859
2860         * WebCoreSupport/EditorClientQt.cpp:
2861         (WebCore::EditorClientQt::respondToChangedContents):
2862
2863 2008-07-31  Erik Bunce  <elbunce@thehive.com>
2864
2865         Reviewed by Simon.
2866
2867         Add simple edit test abilities to QtLauncher.
2868
2869         * QtLauncher/main.cpp:
2870         (MainWindow::MainWindow):
2871         (MainWindow::setEditable):
2872         (MainWindow::dumpHtml):
2873
2874 2008-07-31  Alexey Proskuryakov  <ap@webkit.org>
2875
2876         Rubber-stamped by Maciej.
2877
2878         Eliminate JSLock (it was already disabled, removing the stub implementaion and all
2879         call sites now).
2880
2881         * Api/qwebframe.cpp:
2882         (QWebFrame::addToJavaScriptWindowObject):
2883
2884 2008-07-27  David Kilzer  <ddkilzer@apple.com>
2885
2886         Fix Qt build failure.
2887
2888         * Api/qwebframe.h:
2889         (QWebFrame::setScrollOffset): Make argument const.
2890
2891 2008-07-26  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
2892
2893         Reviewed by Simon Hausmann.
2894
2895         https://bugs.webkit.org/show_bug.cgi?id=20010
2896         [Qt] Add API access to scrolling
2897
2898         * Api/qwebframe.cpp: Added access to a frame scroll offset.
2899         (QWebFrame::scroll):
2900         (QWebFrame::scrollOffset):
2901         (QWebFrame::setScrollOffset):
2902         * Api/qwebframe.h:
2903
2904 2008-07-26  Daniel Jalkut  <jalkut@red-sweater.com>
2905
2906         Build fix.  Adjust to updated WebCore FrameLoader method names & signatures.
2907
2908         * Api/qwebpage.cpp:
2909         (QWebPage::triggerAction):
2910         * WebCoreSupport/FrameLoaderClientQt.cpp:
2911         (WebCore::FrameLoaderClientQt::createFrame):
2912
2913 2008-07-25  Joerg Bornemann  <joerg.bornemann@trolltech.com>
2914
2915         Reviewed by Simon.
2916
2917         Compile with QT_NO_PRINTER.
2918
2919         * QtLauncher/main.cpp:
2920         (MainWindow::MainWindow):
2921
2922 2008-07-24  Tor Arne Vestbø  <tavestbo@trolltech.com>
2923
2924         Reviewed by Simon
2925
2926         Don't insert text on keyDown event in EditorClientQt.
2927
2928         * WebCoreSupport/EditorClientQt.cpp:
2929         (WebCore::EditorClientQt::handleKeyboardEvent):
2930
2931 2008-07-04  Benjamin C Meyer  <ben@meyerhome.net>
2932
2933         Reviewed by Simon.
2934
2935         Update the webkit version in the QtWebKit useragent string to match trunk
2936
2937         * Api/qwebpage.cpp:
2938
2939 2008-07-02  Simon Hausmann  <hausmann@webkit.org>
2940
2941         Build fix.
2942
2943         * Api/qwebpage.cpp:
2944         (QWebPage::triggerAction): The signature of setBaseWritingDirection
2945         changed to take an enum instead of a string.
2946
2947 2008-07-01  Alexey Proskuryakov  <ap@webkit.org>
2948
2949         Reviewed by Darin Adler.
2950
2951         Disable JSLock for per-thread contexts.
2952
2953         * Api/qwebframe.cpp:
2954         (QWebFrame::addToJavaScriptWindowObject):
2955         Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking.
2956         Include JSLock.h, as it is no longer brought in implicitly.
2957
2958 2008-07-01  Tor Arne Vestbø  <tavestbo@trolltech.com>
2959
2960         Reviewed by Simon.
2961
2962         Don't show the tooltip instantly in the QtLauncher.
2963         
2964         Let the QWebView handle tooltips by itself, so we get
2965         the expected delay as everywhere else.
2966
2967         * QtLauncher/main.cpp:
2968
2969 2008-06-30  Simon Hausmann  <hausmann@webkit.org>
2970
2971         Rubber-stamped by Niko.
2972
2973         Removed the obsolete and unmaintained WebKitPart. The integration of
2974         QtWebKit into KDE is now done in the webkitkde component inside KDE.
2975
2976         * WebKitPart/WebKitFactory.cpp: Removed.
2977         * WebKitPart/WebKitFactory.h: Removed.
2978         * WebKitPart/WebKitPart.cpp: Removed.
2979         * WebKitPart/WebKitPart.desktop: Removed.
2980         * WebKitPart/WebKitPart.h: Removed.
2981         * WebKitPart/WebKitPart.rc: Removed.
2982         * WebKitPart/WebKitPartBrowser.rc: Removed.
2983         * WebKitPart/WebKitPartBrowserExtension.cpp: Removed.
2984         * WebKitPart/WebKitPartBrowserExtension.h: Removed.
2985         * WebKitPart/WebKitPartClient.cpp: Removed.
2986         * WebKitPart/WebKitPartClient.h: Removed.
2987         * WebKitPart/WebKitPartInterface.cpp: Removed.
2988         * WebKitPart/WebKitPartInterface.h: Removed.
2989         * WebKitPart/org.kde.WebKitPart.xml: Removed.
2990
2991 2008-06-24  Simon Hausmann  <hausmann@webkit.org>
2992
2993         Fix the Qt build, added missing include for RuntimeObjectImp.
2994
2995         * Api/qwebframe.cpp:
2996
2997 2008-06-23  Benjamin C Meyer  <ben@meyerhome.net>
2998
2999         Reviewed by Simon.
3000
3001         Add function to retrieve the standard context menu
3002
3003 2008-06-20  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
3004
3005         Reviewed by Simon.
3006
3007         https://bugs.webkit.org/show_bug.cgi?id=19082
3008         [Qt] Full-page plugins not activated
3009
3010         * WebCoreSupport/FrameLoaderClientQt.cpp:
3011         (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a
3012         plugin present, as it can be created during the function.
3013
3014 2008-06-20  Marco Barisione  <marco.barisione@collabora.co.uk>
3015
3016         Reviewed by Simon.
3017
3018         https://bugs.webkit.org/show_bug.cgi?id=19082
3019         [Qt] Full-page plugins not activated
3020
3021         * WebCoreSupport/FrameLoaderClientQt.cpp:
3022         (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the
3023         MIME type is supported by a plugin.
3024
3025 2008-06-18  Alexey Proskuryakov  <ap@webkit.org>
3026
3027         Reviewed by Darin Adler.
3028
3029         Prepare JavaScript heap for being per-thread.
3030
3031         * Api/qwebframe.cpp:
3032         (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build.
3033
3034 2008-06-18  Julien Chaffraix  <jchaffraix@webkit.org>
3035
3036         Qt Build fix after r34627.
3037
3038         * WebCoreSupport/FrameLoaderClientQt.cpp:
3039         (WebCore::FrameLoaderClientQt::createPlugin):
3040
3041 2008-06-15  Darin Adler  <darin@apple.com>
3042
3043         - give Frame object functions shorter names: scriptProxy() -> script(),
3044           selectionController() -> selection(), animationController() -> animation()
3045
3046         * Api/qwebframe.cpp:
3047         (QWebFrame::evaluateJavaScript):
3048         * Api/qwebpage.cpp:
3049         (QWebPagePrivate::focusInEvent):
3050         (QWebPagePrivate::focusOutEvent):
3051         (QWebPage::inputMethodQuery):
3052         * WebCoreSupport/EditorClientQt.cpp:
3053         (WebCore::EditorClientQt::handleKeyboardEvent):
3054
3055 2008-06-15  Darin Adler  <darin@apple.com>
3056
3057         - new names for more JavaScriptCore files
3058
3059         * WebKit_pch.h:
3060
3061 2008-06-15  Darin Adler  <darin@apple.com>
3062
3063         - new names for a few key JavaScriptCore files
3064
3065         * Api/qwebframe.cpp:
3066
3067 2008-06-14  Darin Adler  <darin@apple.com>
3068
3069         Rubber stamped by Sam.
3070
3071         - new names for kjs_binding.h and kjs_proxy.h
3072
3073         * Api/qwebframe.cpp:
3074         (QWebFrame::evaluateJavaScript):
3075         * WebKit_pch.h:
3076
3077 2008-06-14  Darin Adler  <darin@apple.com>
3078
3079         - fix build
3080
3081         * Api/qwebframe.cpp:
3082         (QWebFramePrivate::init): Added a missing semicolon.
3083
3084 2008-06-14  Darin Adler  <darin@apple.com>
3085
3086         Reviewed by Sam.
3087
3088         - more https://bugs.webkit.org/show_bug.cgi?id=17257
3089           start ref counts at 1 instead of 0 for speed
3090
3091         * Api/qwebframe.cpp:
3092         (QWebFramePrivate::init): Use create instead of new.
3093         * WebCoreSupport/FrameLoaderClientQt.cpp:
3094         (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto.
3095
3096 2008-06-13  Darin Adler  <darin@apple.com>
3097
3098         - try to fix build
3099
3100         * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument.
3101
3102 2008-06-13  Darin Adler  <darin@apple.com>
3103
3104         Reviewed by John Sullivan.
3105
3106         - updated for addition of FormState argument to action policy functions
3107
3108         * WebCoreSupport/FrameLoaderClientQt.cpp:
3109         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
3110         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3111
3112 2008-06-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
3113
3114         Reviewed by Simon.
3115
3116         Fix left-click and middle-click mouse event are not properly accepted.
3117         
3118         When copying or pasting text using left or middle-click, the event must be
3119         accepted so that it will not be potentially processed further by the parent
3120         and/or sub-classed widget.
3121         
3122
3123         * Api/qwebpage.cpp:
3124         (QWebPagePrivate::mouseReleaseEvent):
3125
3126 2008-06-11  Ariya Hidayat  <ariya.hidayat@trolltech.com>
3127
3128         Reviewed by Simon.
3129
3130         Fix input element does not accept character typed in using AltGr.
3131
3132         EditorClient is modified to catch AltGr and Ctrl+Alt key combination.
3133         This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry
3134
3135         * WebCoreSupport/EditorClientQt.cpp:
3136         (WebCore::EditorClientQt::handleKeyboardEvent):
3137
3138 2008-05-26  Jonathon Jongsma  <jonathon.jongsma@collabora.co.uk>
3139
3140         Reviewed by Simon.
3141
3142         https://bugs.webkit.org/show_bug.cgi?id=19323
3143
3144         Implemented the QWebPage::editable property.
3145
3146         Small documentation fixes by Simon.
3147
3148         * Api/qwebpage.cpp:
3149         (QWebPagePrivate::QWebPagePrivate):
3150         (QWebPage::setEditable):
3151         (QWebPage::isEditable):
3152         * Api/qwebpage.h:
3153         * Api/qwebpage_p.h: implement the editable property and add API so that
3154         applications can switch edit mode on and off for a particular QWebPage
3155         * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the
3156         QWebPage instead of always returning false
3157
3158 2008-06-09  Tor Arne Vestbø  <tavestbo@trolltech.com>
3159
3160         Reviewed by Simon
3161
3162         Make sure web action in context menus have the right enablement,
3163         while not messing up other web actions not included in the menu.
3164
3165         * Api/qwebpage.cpp:
3166         (QWebPagePrivate::createContextMenu):
3167         (QWebPage::updatePositionDependentActions):
3168         * Api/qwebpage_p.h:
3169
3170 2008-06-09  Benjamin C Meyer  <ben@meyerhome.net>
3171
3172         Reviewed by Simon
3173
3174         Add Shift-Space shortcut to go up one screen, the opposite of Space
3175         which goes down one screen.
3176
3177         * Api/qwebpage.cpp:
3178         (QWebPagePrivate::handleScrolling):
3179
3180 2008-06-04  Tor Arne Vestbø  <tavestbo@trolltech.com>
3181
3182         Reviewed by Simon.
3183
3184         Fix a failing assertion when calling QWebFrame::evaluateJavaScript.
3185
3186         The starting line number has to be 1 instead of 0.
3187
3188         * Api/qwebframe.cpp:
3189         (QWebFrame::evaluateJavaScript):
3190
3191 2008-06-03  Jonathon Jongsma  <jonathon.jongsma@collabora.co.uk>
3192
3193         Reviewed by Darin Adler.
3194
3195         * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains().  This
3196         function is not used anywhere internally and is only a convenience
3197         function that can still be accomplished using
3198         QWebHistoryInterface::historyContains();
3199
3200 2008-05-29  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
3201
3202         Reviewed by Simon.
3203
3204         Doc: Mention the requirement of a QApplication with QtWebKit
3205         
3206
3207         * Api/qwebview.cpp:
3208
3209 2008-05-29  David Boddie  <dboddie@trolltech.com>
3210
3211         Reviewed by Simon.
3212
3213         Some clarifications for the documentation.
3214         
3215
3216         * Api/qwebpage.cpp:
3217         * Api/qwebpluginfactory.cpp:
3218
3219 2008-05-27  Ariya Hidayat  <ariya.hidayat@trolltech.com>
3220
3221         Reviewed by Simon.
3222
3223         Fix web inspector does not returns its state properly after its window is minimized.
3224
3225         As hinted by Holger, InspectorClientView::hideEvent is not needed.
3226         This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967
3227
3228         * WebCoreSupport/InspectorClientQt.cpp:
3229
3230 2008-05-21  Siraj Razick  <siraj.razick@collabora.co.uk>
3231
3232         Reviewed by Simon.
3233
3234         Add <param name="classid"/> support for application/x-qt-object plugins
3235
3236         * WebCoreSupport/FrameLoaderClientQt.cpp:
3237         (WebCore::FrameLoaderClientQt::createPlugin):
3238
3239 2008-05-13  Andy Shaw  <andy@trolltech.com>
3240
3241         Reviewed by Simon.
3242
3243         Fixes: QWebHistory::forward() should go forwards and not back
3244
3245         * Api/qwebhistory.cpp:
3246
3247 2008-05-12  Alexey Proskuryakov  <ap@webkit.org>
3248
3249         Roll out recent  threading changes (r32807, r32810, r32819, r32822) to simplify
3250         SquirrelFish merging.
3251
3252         * Api/qwebframe.cpp:
3253         (QWebFrame::addToJavaScriptWindowObject):
3254
3255 2008-05-09  Thiago Macieira  <tjmaciei@trolltech.com>
3256
3257         Reviewed by Simon.
3258
3259         Fix bad includes in QtWebKit public headers.
3260         
3261         Make sure to include qglobal.h using the QtCore prefix so that an explicit
3262         include/QtCore is not needed in the application's build system. Also make sure
3263         that qwebsettings.h includes the local qwebkitglobal.h.
3264         
3265
3266         * Api/qwebkitglobal.h:
3267         * Api/qwebsettings.h:
3268
3269 2008-05-08  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
3270
3271         Reviewed by Simon.
3272
3273         https://bugs.webkit.org/show_bug.cgi?id=18935
3274
3275         Based on work by Sriram Neelakandan for the Gtk port.
3276
3277         * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize
3278         m_hasSentResponseToPlugin.
3279         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3280         (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
3281
3282 2008-05-08  Warwick Allison  <warwick@trolltech.com>
3283
3284         Reviewed by Simon.
3285
3286         Fixes: WebKit expects initial input method state to be *disabled*.
3287         
3288         At least QWS does not need the initial input method state to be forced to
3289         enabled, but other platforms (esp. X11) do. Until fixed/tested on those
3290         platforms, this is specific to QWS.
3291         
3292
3293         * Api/qwebview.cpp:
3294         (QWebView::QWebView):
3295
3296 2008-05-06  Simon Hausmann  <hausmann@webkit.org>
3297
3298         Reviewed by Holger.
3299
3300         Fix logic error in QWebHitTestResult::isNull().
3301
3302         * Api/qwebframe.cpp:
3303
3304 2008-05-02  Benjamin Meyer  <bmeyer@trolltech.com>
3305
3306         Reviewed by Simon.
3307
3308         Doc: Mention that you have to enable plugins in QWebSettings for them to work.
3309
3310         * Api/qwebpage.cpp:
3311
3312 2008-05-02  Simon Hausmann  <hausmann@webkit.org>
3313
3314         Fix the Qt build, ExecState is required here.
3315
3316         * Api/qwebframe.cpp:
3317         (QWebFrame::addToJavaScriptWindowObject):
3318
3319 2008-05-01  Marc Ordinas i Llopis  <marc.ordinasillopis@collabora.co.uk>
3320
3321         Reviewed by Alp Toker.
3322         Qt parts OK'ed by Simon Hausmann.
3323
3324         https://bugs.webkit.org/show_bug.cgi?id=14750
3325         Added support for NPAPI plugins on Gtk and Qt-x11 ports.
3326
3327         * WebCoreSupport/FrameLoaderClientQt.cpp:
3328         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3329         (WebCore::FrameLoaderClientQt::finishedLoading):
3330         (WebCore::FrameLoaderClientQt::setMainDocumentError):
3331         (WebCore::FrameLoaderClientQt::committedLoad):
3332         (WebCore::FrameLoaderClientQt::objectContentType):
3333         (WebCore::FrameLoaderClientQt::createPlugin):
3334         (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
3335         * WebCoreSupport/FrameLoaderClientQt.h:
3336
3337 2008-04-30  Julien Chaffraix  <jchaffraix@webkit.org>
3338
3339         Qt 4.3 build fix.
3340
3341         Fixes a brace error that made Qt 4.4 build but not Qt 4.3.
3342  
3343         * Api/qwebview.cpp:
3344         (QWebView::event):
3345
3346 2008-04-30  Tor Arne Vestbø  <tavestbo@trolltech.com>
3347
3348         Reviewed by Simon.
3349
3350         In focusIn and focusOut event always update the active state of the
3351         focus controller. Fixes ~400 failing layout tests due to missing
3352         editing callbacks that relied on the correct focus.
3353
3354         * Api/qwebpage.cpp:
3355         (QWebPagePrivate::focusInEvent):
3356         (QWebPagePrivate::focusOutEvent):
3357
3358 2008-04-29  Lincoln Ramsay  <lincoln.ramsay@trolltech.com>
3359
3360         Reviewed by Simon.
3361
3362         Fix compilation with QT_NO_PRINTER
3363         
3364
3365         * Api/qwebview.cpp:
3366         (QWebView::print):
3367
3368 2008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
3369
3370         Reviewed by Simon.
3371
3372         Ensure that relative URL is converted to absolute URL.
3373         
3374         This is necessary because loading a relative URL is not really supported
3375         (the web page may load, but the subsequent URLs for images and links will
3376         not be resolved properly).
3377         This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484
3378         
3379
3380         * Api/qwebframe.cpp:
3381         (ensureAbsoluteUrl):
3382         (QWebFrame::setUrl):
3383         (QWebFrame::load):
3384
3385 2008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
3386
3387         Reviewed by Simon.
3388
3389         Simplification of Qt Launcher (no animation and use standard progress bar widget)
3390         
3391         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.
3392         
3393
3394         * QtLauncher/main.cpp:
3395         (MainWindow::MainWindow):
3396
3397 2008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
3398
3399         Reviewed by Simon.
3400
3401         Update the cursor when the frame/page loading is finished.
3402         
3403         This fixes https://bugs.webkit.org/show_bug.cgi?id=18712
3404         
3405
3406         * WebCoreSupport/FrameLoaderClientQt.cpp:
3407         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
3408         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
3409
3410 2008-04-29  Simon Hausmann  <shausman@trolltech.com>
3411
3412         Reviewed by Holger.
3413
3414         Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links.
3415         
3416         Call QWebPage::acceptNavigationRequest when the creation of a new window with
3417         URL is requested. The frame pointer is set to null in this case.
3418         
3419
3420         * Api/qwebpage.cpp:
3421         (QWebPage::setViewportSize):
3422         * WebCoreSupport/FrameLoaderClientQt.cpp:
3423         (WebCore::FrameLoaderClientQt::startDownload):
3424         (WebCore::FrameLoaderClientQt::createFrame):
3425
3426 2008-04-29  Holger Hans Peter Freyther  <zecke@selfish.org>
3427
3428         Reviewed by Simon.
3429
3430         Use the WebCore facility to do the scrolling. Move some code around.
3431
3432         * Api/qwebpage.cpp:
3433         (QWebPagePrivate::keyPressEvent):
3434         (QWebPagePrivate::shortcutOverrideEvent):
3435         (QWebPagePrivate::handleScrolling):
3436         * Api/qwebpage_p.h:
3437
3438 2008-04-29  Ariya Hidayat  <ariya.hidayat@trolltech.com>
3439
3440         Reviewed by Simon.
3441
3442         fix potential crash when loading image(s)
3443
3444         Crash may occur. If compiled with 4.3, the variable is not initialized.
3445
3446         * Api/qwebpage.cpp:
3447         (QWebPagePrivate::QWebPagePrivate):
3448
3449 2008-04-29  Holger Hans Peter Freyther  <zecke@selfish.org>
3450
3451         Reviewed by Simon.
3452
3453         Calling QWebView::setCursor will override the WebCore Cursor.
3454         Calling QWebView::setCursor will override the WebCore Cursor using
3455         QWidget::unsetCursor will revert to the WebCore Cursor.
3456
3457         For detecting the unset we have to compare the shape of the
3458         cursor to the default arrow. Qt::WA_SetCursor can not be used
3459         as it is set unconditionally but conditionally removed.
3460
3461         Calling QWidget::setCursor will immediately send the CursorChange
3462         event. We listen to this event to decide if we currently use a
3463         WebCore cursor, got a cursor from outside, or revert to the default.
3464
3465         This should be race free and work reliable, the manual test for this
3466         is WebCore/manual-tests/cursor.html
3467
3468         * Api/qwebpage.cpp:
3469         (SetCursorEvent::SetCursorEvent):
3470         * Api/qwebpage_p.h:
3471         * Api/qwebview.cpp:
3472         (QWebViewPrivate::QWebViewPrivate):
3473         (QWebViewPrivate::setCursor):
3474         (QWebView::QWebView):
3475         (QWebView::event):
3476
3477 2008-04-29  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
3478
3479         Reviewed by Simon.
3480
3481         Documentation fixes:
3482
3483         - Fixed a qdoc warning
3484         - Mention that fav icons can be of arbitrary size
3485         - Fix signature of QWebPage::acceptNavigationRequest show in the documentation
3486
3487         * Api/qwebframe.cpp:
3488         * Api/qwebpage.cpp:
3489         * Api/qwebpage.h:
3490         * Api/qwebsettings.cpp:
3491         * Api/qwebview.cpp:
3492
3493 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
3494
3495         Reviewed by Simon.
3496
3497         Fix QWebView::loadFinished isn't always emitted
3498
3499         Replaced loadDone() with loadFinished(bool) and moved the signals for progress
3500         tracking (start, progres, and finish) to the page instead of the frame. This
3501         ensures that we emit loadFinished even when a subframe started the actual load.
3502
3503         This causes a few regressions in the layout tests that we for now accept for
3504         the sake of the correct API. Layout tests we can fix any time though, including
3505         patch release, the API however we can't change anymore in patch releases.
3506
3507         * Api/qwebframe.cpp:
3508         * Api/qwebframe.h:
3509         * Api/qwebpage.cpp:
3510         (QWebPage::totalBytes):
3511         * Api/qwebpage.h:
3512         * Api/qwebview.cpp:
3513         (QWebView::setPage):
3514         * Api/qwebview.h:
3515         * QtLauncher/main.cpp:
3516         (MainWindow::MainWindow):
3517         * WebCoreSupport/FrameLoaderClientQt.cpp:
3518         (drtDescriptionSuitableForTestResult):
3519         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3520         (WebCore::FrameLoaderClientQt::setFrame):
3521         (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
3522         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
3523         (WebCore::FrameLoaderClientQt::willChangeTitle):
3524         (WebCore::FrameLoaderClientQt::createDocumentLoader):
3525         (WebCore::FrameLoaderClientQt::download):
3526         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3527         * WebCoreSupport/FrameLoaderClientQt.h:
3528
3529 2008-04-28  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
3530
3531         Reviewed by Simon.
3532
3533         Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame
3534
3535         * Api/qwebframe.cpp:
3536         * Api/qwebpluginfactory.cpp:
3537         * Api/qwebsettings.cpp:
3538         (QWebSettings::QWebSettings):
3539         (QWebSettings::setUserStyleSheetUrl):
3540         (QWebSettings::iconForUrl):
3541         (QWebSettings::webGraphic):
3542         (QWebSettings::maximumPagesInCache):
3543         (QWebSettings::setFontFamily):
3544         (QWebSettings::resetFontFamily):
3545         (QWebSettings::testAttribute):
3546         (QWebSettings::resetAttribute):
3547
3548 2008-04-28  Ariya Hidayat  <ahidayat@trolltech.com>
3549
3550         Reviewed by Simon.
3551
3552         Fix document/frame title not reset when loading a new URI
3553         
3554         We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle()
3555         will be called very soon with the correct title.
3556         This properly resets the title when we navigate to a URI without a title.
3557         
3558
3559         * WebCoreSupport/FrameLoaderClientQt.cpp:
3560
3561 2008-04-28  David Boddie  <dboddie@trolltech.com>
3562
3563         Reviewed by Simon.
3564
3565         Minor documentation changes.
3566
3567         * Api/qwebview.cpp:
3568
3569 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
3570
3571         Reviewed by Simon.
3572
3573         Prevent middle-click from triggering open URL from clipboard when the event has already been accepted.
3574         
3575
3576         * Api/qwebpage.cpp:
3577         (QWebPagePrivate::mouseMoveEvent):
3578         (QWebPagePrivate::mousePressEvent):
3579         (QWebPagePrivate::mouseDoubleClickEvent):
3580         (QWebPagePrivate::mouseTripleClickEvent):
3581         (QWebPagePrivate::mouseReleaseEvent):
3582
3583 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
3584
3585         Reviewed by Simon.
3586
3587         Fix scrollbar behavior in QtWebKit to match QScrollBar.
3588         
3589         Right click context menu is now supported, along with
3590         middle click to center slider thumb over mouse cursor.
3591         
3592
3593         * Api/qwebpage.cpp:
3594         (QWebPage::linkDelegationPolicy):
3595
3596 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
3597
3598         Reviewed by Simon.
3599
3600         Implemented channel-based logging for QtWebKit.
3601
3602         Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable.
3603         Warnings for notImplemented() is still output by default, but can be disabled
3604         by setting DISABLE_NI_WARNINGS=1.
3605
3606         * Api/qwebpage.cpp:
3607         (QWebPagePrivate::QWebPagePrivate):
3608
3609 2008-04-28  Simon Hausmann  <shausman@trolltech.com>
3610
3611         Rubber-stamped by Lars
3612
3613         Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API.
3614
3615         * Api/qwebframe.cpp:
3616         * Api/qwebframe.h:
3617         * Api/qwebview.cpp:
3618         * Api/qwebview.h:
3619
3620 2008-04-28  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
3621
3622         Reviewed by Simon.
3623
3624         Doc - adding more documentation to QWebFrame, QWebPage and QWebView
3625         
3626
3627         * Api/qwebframe.cpp:
3628         * Api/qwebpage.cpp:
3629         * Api/qwebview.cpp:
3630         (QWebView::stop):
3631         (QWebView::back):
3632         (QWebView::changeEvent):
3633
3634 2008-04-28  Simon Hausmann  <shausman@trolltech.com>
3635
3636         Reviewed by Holger.
3637
3638         Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens
3639         
3640         Give the popups the right parent widget and the right coordinates relative within the parent.
3641         
3642
3643         * Api/qwebpage.cpp:
3644
3645 2008-04-28  Benjamin Meyer  <bmeyer@trolltech.com>
3646
3647         Reviewed by Simon.
3648
3649         Doc: Add see also's (and a few minor whitespace/typo corrections)
3650         
3651
3652         * Api/qwebframe.cpp:
3653         (QWebFrame::~QWebFrame):
3654         (QWebFrame::setHtml):
3655         (QWebFrame::setContent):
3656         (QWebFrame::parentFrame):
3657         (QWebFrame::childFrames):
3658         (QWebFrame::setScrollBarValue):
3659         (QWebFrame::scrollBarValue):
3660         (QWebFrame::scrollBarMaximum):
3661         (QWebFrame::scrollBarMinimum):
3662         (QWebFrame::render):
3663         (QWebFrame::pos):
3664         (QWebFrame::geometry):
3665         (QWebFrame::print):
3666         (QWebFrame::evaluateJavaScript):
3667         * Api/qwebpage.cpp:
3668         (QWebPagePrivate::mousePressEvent):
3669         (QWebPagePrivate::mouseDoubleClickEvent):
3670         (QWebPage::~QWebPage):
3671         (QWebPage::javaScriptPrompt):
3672         (openNewWindow):
3673         (QWebPage::setViewportSize):
3674         (QWebPage::acceptNavigationRequest):
3675         (QWebPage::action):
3676         (QWebPage::userAgentForUrl):
3677         (QWebPagePrivate::_q_onLoadProgressChanged):
3678         * Api/qwebview.cpp:
3679         (QWebView::event):
3680
3681 2008-04-28  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
3682
3683         Reviewed by Simon.
3684
3685         Submitting more documentation for QWebPage
3686         
3687
3688         * Api/qwebpage.cpp:
3689
3690 2008-04-28  Lincoln Ramsay  <lincoln.ramsay@trolltech.com>
3691
3692         Reviewed by Simon.
3693
3694         Compile when QT_NO_CLIPBOARD is defined.
3695         
3696
3697         * Api/qwebpage.cpp:
3698         (QWebPage::triggerAction):
3699
3700 2008-04-28  David Boddie  <dboddie@trolltech.com>
3701
3702         Reviewed by Simon.
3703
3704         Minor documentation fix.
3705         
3706
3707         * Api/qwebhistory.cpp:
3708
3709 2008-04-28  Holger Hans Peter Freyther  <zecke@selfish.org>
3710
3711         Reviewed by Simon.
3712
3713         Implement QWebPage::createPlugin
3714         
3715         The code is coming from the demo browser and needed here
3716         for some manual tests.
3717         
3718
3719         * QtLauncher/QtLauncher.pro:
3720         * QtLauncher/main.cpp:
3721         (WebPage::createPlugin):
3722
3723 2008-04-28  Simon Hausmann  <hausmann@webkit.org>
3724
3725         Qt/Win build fix. Include config.h to get the implicit MathExtras.h
3726         inclusion correct with regards to rand_s.
3727
3728         * Api/qwebhistory.cpp:
3729
3730 2008-04-28  Tor Arne Vestbø  <tavestbo@trolltech.com>
3731
3732         Reviewed by Simon.
3733
3734         https://bugs.webkit.org/show_bug.cgi?id=18713
3735
3736         Fix scrollbar painting issues in QtWebKit.
3737
3738         Hovering and click-draging outside of the scrollbar would
3739         produce unexpected and inconcistent results. We also didn't
3740         pass on leave-events to the underlying WebKit code, which
3741         was nessecary to implement the paint fix.
3742
3743         Note: The event handling of the Leave event should be moved
3744         out of QWebView::event() and into a proper override for 4.5.
3745
3746         * Api/qwebpage.cpp:
3747         (QWebPagePrivate::leaveEvent):
3748         * Api/qwebpage_p.h:
3749         * Api/qwebview.cpp:
3750         (QWebView::event):
3751
3752 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
3753
3754         Reviewed by Simon, Holger.
3755
3756         Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus.
3757
3758         * Correctly de- and reactivate the focused frame in focusOut/focusInEvent
3759         without telling the focus controller. We don't want to change the focused frame
3760         - the controller has to remember it in fact - but instead just deactivate the
3761         frame for correct painting as RenderTheme::isFocused() uses the activation
3762         state of the frame.
3763
3764         * Api/qwebpage.cpp:
3765         (QWebPagePrivate::focusInEvent):
3766         (QWebPagePrivate::focusOutEvent):
3767
3768 2008-04-25  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
3769
3770         Reviewed by Simon.
3771
3772         completed documentation for the Detailed Description section for QWebView
3773         
3774
3775         * Api/qwebview.cpp:
3776
3777 2008-04-25  Denis Dzyubenko  <denis.dzyubenko@trolltech.com>
3778
3779         Reviewed by Simon.
3780
3781         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.
3782         
3783
3784         * Api/qwebhistory.cpp:
3785         (QWebHistory::back):
3786         (QWebHistory::forward):
3787         (QWebHistory::goToItem):
3788
3789 2008-04-25  Tor Arne Vestbø  <tavestbo@trolltech.com>
3790
3791         Reviewed by Simon.
3792
3793         Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest().
3794         
3795
3796         * WebCoreSupport/FrameLoaderClientQt.cpp:
3797         (WebCore::FrameLoaderClientQt::createFrame):
3798
3799 2008-04-25  Simon Hausmann  <hausmann@webkit.org>
3800
3801         Reviewed by Holger.
3802
3803         When pressing backspace in a line edit in a webpage we should not go back to the previous page.
3804         
3805         The shortcut for back on Windows is backspace. Implemented shortcut override
3806         handling in QWebView/QWebPage to prevent this.
3807         
3808
3809         * Api/qwebpage.cpp:
3810         (QWebPagePrivate::wheelEvent):
3811         (editorActionForKeyEvent):
3812         (QWebPagePrivate::keyPressEvent):
3813         (QWebPagePrivate::inputMethodEvent):
3814         (QWebPagePrivate::shortcutOverrideEvent):
3815         (QWebPage::event):
3816         * Api/qwebpage_p.h:
3817         * Api/qwebview.cpp:
3818         (QWebView::event):
3819
3820 2008-04-25  Ariya Hidayat  <ariya.hidayat@trolltech.com>
3821
3822         Reviewed by Simon.
3823
3824         Fix triple-clicking does not work in a web page
3825         
3826
3827         * Api/qwebpage.cpp:
3828         (QWebPagePrivate::updateEditorActions):
3829         (QWebPagePrivate::timerEvent):
3830         (QWebPagePrivate::mousePressEvent):
3831         (QWebPagePrivate::mouseDoubleClickEvent):
3832         (QWebPage::undoStack):
3833         * Api/qwebpage_p.h:
3834
3835 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
3836
3837         Reviewed by Simon.
3838
3839         When pressing Ctrl-Up the keyboard modifiers could include other modifiers
3840         
3841
3842         * Api/qwebpage.cpp:
3843         (QWebPagePrivate::keyPressEvent):
3844
3845 2008-04-25  Tor Arne Vestbø  <tavestbo@trolltech.com>
3846
3847         Reviewed by Simon.
3848
3849         Fix handling of Javascript's confirm() function in QtWebKit.
3850         
3851
3852         * Api/qwebpage.cpp:
3853
3854 2008-04-25  Kavindra Devi Palaraja  <kdpalara@trolltech.com>
3855
3856         Reviewed by Simon.
3857
3858         Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity
3859         
3860
3861         * Api/qwebview.cpp:
3862
3863 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
3864
3865         Reviewed by Simon.
3866
3867         QWebPage: missing signal when window.print() is requested from javascript
3868         
3869
3870         * Api/qwebpage.cpp:
3871         * Api/qwebpage.h:
3872         * WebCoreSupport/ChromeClientQt.cpp:
3873
3874 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
3875
3876         Reviewed by Simon.
3877
3878         Fixes: "Save Image" action wasn't doing anything.
3879         
3880
3881         * Api/qwebpage.cpp:
3882         (QWebPage::triggerAction):
3883
3884 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
3885
3886         Reviewed by Simon.
3887
3888         Apply key event changes to the current frame, not the main frame.
3889         
3890         Example: hitting space bar should scroll current frame, not the main frame
3891         which doesn't even have a scrollbar.
3892         
3893
3894         * Api/qwebpage.cpp:
3895         (QWebPagePrivate::keyPressEvent):
3896
3897 2008-04-25  Benjamin Meyer  <bmeyer@trolltech.com>
3898
3899         Reviewed by Simon.
3900
3901         Fixes: QWebFrame crash when fetching the icon
3902
3903         Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock.
3904
3905         * Api/qwebframe.cpp:
3906
3907 2008-04-25  Warwick Allison  <warwick@trolltech.com>
3908
3909         Reviewed by Simon.
3910
3911         Fixes: Scrollbars did not report correct maximum.
3912
3913         * Api/qwebframe.cpp:
3914
3915 2008-04-25  David Boddie <dboddie@trolltech.com>
3916
3917         Reviewed by Simon.
3918
3919         Documentation updates for some of the QWeb classes
3920
3921         * Api/qwebframe.cpp:
3922         * Api/qwebhistory.cpp:
3923         * Api/qwebsettings.cpp:
3924         * Api/qwebview.cpp:
3925
3926 2008-04-25  Holger Hans Peter Freyther  <zecke@selfish.org>
3927
3928         Reviewed by Simon.
3929
3930         Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html
3931         
3932         Similar to Editing and Frameloading we do the dumping within WebCore
3933         
3934
3935         * WebCoreSupport/FrameLoaderClientQt.cpp:
3936         (qt_dump_frame_loader):
3937         (qt_dump_resource_load_callbacks):
3938         (drtDescriptionSuitableForTestResult):
3939         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
3940         (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
3941         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
3942
3943 2008-04-24  Anders Carlsson  <andersca@apple.com>
3944
3945         Reviewed by Sam.
3946
3947         Change some String arguments to be const references instead.
3948
3949         * WebCoreSupport/EditorClientQt.cpp:
3950         (WebCore::EditorClientQt::shouldInsertText):
3951         * WebCoreSupport/EditorClientQt.h:
3952
3953 2008-04-24  Holger Hans Peter Freyther  <zecke@selfish.org>
3954
3955         Reviewed by Simon.
3956
3957         Cosmetic changes to make the code more readable.
3958         -Early exit if we don't have a webview
3959         -handle the empty tooltip and non-empty tooltip case separately
3960         
3961
3962         * WebCoreSupport/ChromeClientQt.cpp:
3963         (WebCore::ChromeClientQt::setToolTip):
3964         (WebCore::ChromeClientQt::print):
3965
3966 2008-04-24  Paul Olav Tvete  <paul@trolltech.com>
3967
3968         Reviewed by Simon.
3969
3970         Automatically wrap tooltip text and hide a shown tooltip when it is empty.
3971
3972         QWidget::setTooltip("") will still show the old tooltip for up to 10 seconds.
3973         Workaround as discussed with Matthias.
3974
3975         * WebCoreSupport/ChromeClientQt.cpp:
3976         (WebCore::ChromeClientQt::setToolTip):
3977
3978 2008-04-24  Holger Hans Peter Freyther  <zecke@selfish.org>
3979
3980         Reviewed by Simon.
3981
3982         Allow to disable caching completeley by calling setObjectCacheCapacities(0, 0, 0)
3983
3984         * Api/qwebsettings.cpp:
3985         (QWebSettings::setObjectCacheCapacities):
3986
3987 2008-04-24  Benjamin Meyer  <bmeyer@trolltech.com>
3988
3989         Reviewed by Simon.
3990
3991         Improve keyboard scrolling
3992         
3993         Match Down/Up keys scroll distance with Safari (i.e. faster) and add Home and End shortcuts to scroll to the top/botom.
3994         
3995
3996         * Api/qwebpage.cpp:
3997         (QWebPagePrivate::keyPressEvent):
3998
3999 2008-04-24  Olivier Goffart  <ogoffart@trolltech.com>
4000
4001         Reviewed by Simon.
4002
4003         Fix various compiler warnings in the Qt port.
4004
4005         * Api/qwebframe.cpp:
4006         (QWebFrame::print):
4007         * Api/qwebsettings.cpp:
4008         (graphics):
4009         * WebCoreSupport/FrameLoaderClientQt.cpp:
4010         (WebCore::FrameLoaderClientQt::createPlugin):
4011
4012 2008-04-24  Tor Arne Vestbø  <tavestbo@trolltech.com>
4013
4014         Reviewed by Simon.
4015
4016         Cleaned up copyright headers (removed misplaced class descriptions and
4017         fixed inconsistent whitespace and indentation).
4018
4019         * Api/qwebframe.cpp:
4020         * Api/qwebframe.h:
4021         * Api/qwebframe_p.h:
4022         * Api/qwebhistory.cpp:
4023         * Api/qwebhistory.h:
4024         * Api/qwebhistory_p.h:
4025         * Api/qwebhistoryinterface.cpp:
4026         * Api/qwebhistoryinterface.h:
4027         * Api/qwebkitglobal.h:
4028         * Api/qwebnetworkinterface.cpp:
4029         * Api/qwebnetworkinterface.h:
4030         * Api/qwebnetworkinterface_p.h:
4031         * Api/qwebpage.cpp:
4032         * Api/qwebpage.h:
4033         * Api/qwebpage_p.h:
4034         * Api/qwebpluginfactory.cpp:
4035         * Api/qwebpluginfactory.h:
4036         * Api/qwebsettings.cpp:
4037         * Api/qwebsettings.h:
4038         * Api/qwebview.h:
4039         * QtLauncher/main.cpp:
4040
4041 2008-04-24  Tor Arne Vestbø  <tavestbo@trolltech.com>
4042
4043         Reviewed by Simon.
4044
4045         Added basic URL guessing to QtLauncher (same as in the demo browser).
4046         
4047
4048         * QtLauncher/main.cpp:
4049         (MainWindow::changeLocation):
4050         (MainWindow::guessUrlFromString):
4051
4052 2008-04-24  Benjamin Meyer  <bmeyer@trolltech.com>
4053
4054         Reviewed by Simon Hausmann <hausmann@webkit.org>.
4055
4056         Prevent double deletions of the default web interface.
4057         
4058
4059         * Api/qwebhistoryinterface.cpp:
4060         (gCleanupInterface):
4061         (QWebHistoryInterface::QWebHistoryInterface):
4062
4063 2008-04-23  Simon Hausmann  <hausmann@webkit.org>
4064
4065         Fix compilation against Qt 4.3
4066
4067         * Api/qwebpage.cpp:
4068         (QWebPage::userAgentForUrl):
4069         * QtLauncher/main.cpp:
4070         (main):
4071
4072 2008-04-23  Holger Hans Peter Freyther  <zecke@selfish.org>
4073
4074         Reviewed by Simon.
4075
4076         * Make sure the "Inspect Element" item gets added to the ContextMenu, a call
4077         to ContextMenu::populate() is not adding it, the ContextMenuController does
4078         add it after the call to populate(). Do that as well.
4079         
4080
4081         * Api/qwebpage.cpp:
4082         (QWebPage::updatePositionDependentActions):
4083
4084 2008-04-23  Simon Hausmann  <hausmann@webkit.org>
4085
4086         Reviewed by Holger.
4087
4088         Fix crashes on window.close().
4089
4090         We should not delete the QWebPage object in the ChromeClient but leave it up to
4091         the application when and whether to delete a browser window. For this we now
4092         emit the windowCloseRequested() signal.
4093
4094         Done with Tor Arne.
4095
4096         * Api/qwebpage.cpp:
4097         * Api/qwebpage.h:
4098         * QtLauncher/main.cpp:
4099         (MainWindow::MainWindow):
4100         * WebCoreSupport/ChromeClientQt.cpp:
4101
4102 2008-04-23  Simon Hausmann  <hausmann@webkit.org>
4103
4104         Reviewed by Holger.
4105
4106         Fix parsing of external scripts/stylesheets when using setHtml(const QString &html).
4107
4108         We used to pass the html string to the frameloader in utf-16, which also meant that the default
4109         encoding of external scripts/stylesheets became utf-16. That doesn't make sense, so assume utf-8
4110         by default. This is now also documented.
4111
4112         * Api/qwebframe.cpp:
4113         (QWebFrame::setHtml):
4114         * Api/qwebview.cpp:
4115
4116 2008-04-23  Benjamin Meyer  <bmeyer@trolltech.com>
4117
4118         Reviewed by Simon.
4119
4120         Fixes background color propagation when using a custom QWebPage
4121         
4122         Set the palette in setPage(), not during the creation on-demand.
4123         
4124
4125         * Api/qwebview.cpp:
4126         (QWebView::page):
4127         (QWebView::setPage):
4128
4129 2008-04-23  Benjamin Meyer  <bmeyer@trolltech.com>
4130
4131         Reviewed by Simon.
4132
4133         Fix the user agent on the mac to be BSD4
4134         
4135         Put Q_OS_DARWIN before Q_OS_BSD4 sense they are both defined on the mac
4136         
4137
4138         * Api/qwebpage.cpp:
4139         (QWebPage::userAgentForUrl):
4140
4141 2008-04-23  Simon Hausmann  <shausman@trolltech.com>
4142
4143         Reviewed by Holger.
4144
4145         Added missing copyright notice.
4146         Small fixes to the documentation.
4147
4148         * Api/qwebpluginfactory.cpp:
4149
4150 2008-04-23  Zack Rusin  <zack@tungstengraphics.com>
4151
4152         Reviewed by Simon.
4153
4154         Added a contentsSize() property.
4155
4156         * Api/qwebframe.cpp:
4157         (QWebFrame::contentsSize):
4158         (QWebFrame::hitTestContent):
4159         * Api/qwebframe.h:
4160
4161 2008-04-22  Benjamin Meyer  <bmeyer@trolltech.com>
4162
4163         Reviewed by Simon.
4164
4165         Fixes: QWebPage's QNetworkManager's can be shared among webpages.
4166
4167         Don't force the deletion of the object, but let QObject take care of it.
4168
4169         * Api/qwebpage.cpp:
4170
4171 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
4172
4173         Reviewed by Holger.
4174
4175         Documentation for QWebPluginFactory and documentation updates for QWebPage.
4176
4177         * Api/qwebpage.cpp:
4178         (QWebPage::setLinkDelegationPolicy):
4179         (QWebPage::linkDelegationPolicy):
4180         (QWebPage::swallowContextMenuEvent):
4181         (QWebPage::updatePositionDependentActions):
4182         (QWebPage::extension):
4183         (QWebPage::networkAccessManager):
4184         * Api/qwebpluginfactory.cpp:
4185         (QWebPluginFactory::QWebPluginFactory):
4186         (QWebPluginFactory::~QWebPluginFactory):
4187         (QWebPluginFactory::refreshPlugins):
4188
4189 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
4190
4191         Reviewed by Holger.
4192
4193         Added QWebPage::swallowContextMenuEvent and QWebPage::updatePositionDependentActions.
4194         
4195
4196         * Api/qwebpage.cpp:
4197         (QWebPagePrivate::QWebPagePrivate):
4198         (QWebPagePrivate::mouseReleaseEvent):
4199         (QWebPage::setLinkDelegationPolicy):
4200         (QWebPage::linkDelegationPolicy):
4201         (QWebPage::swallowContextMenuEvent):
4202         (QWebPage::updatePositionDependentActions):
4203         * Api/qwebpage.h:
4204         * Api/qwebpage_p.h:
4205         * Api/qwebview.cpp:
4206         (QWebView::event):
4207
4208 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
4209
4210         Reviewed by Holger.
4211
4212         Added Extension APIs for QWebPage.
4213
4214         * Api/qwebpage.cpp:
4215         (QWebPage::setLinkDelegationPolicy):
4216         (QWebPage::linkDelegationPolicy):
4217         (QWebPage::extension):
4218         * Api/qwebpage.h:
4219         * Api/qwebpluginfactory.cpp:
4220         (QWebPluginFactory::extension):
4221
4222 2008-04-22  Tor Arne Vestbø  <tavestbo@trolltech.com>
4223
4224         Reviewed by Simon.
4225
4226         Emit loadProgress() signal on loadStarted().
4227         
4228
4229         * WebCoreSupport/FrameLoaderClientQt.cpp:
4230         (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
4231
4232 2008-04-22  Zack Rusin  <zack@kde.org>
4233
4234         Reviewed by Simon.
4235
4236         Fix background propagation from the QWebView's palette.
4237
4238         The background brush of the palette needs to be propagated to the WebCore::FrameView.
4239
4240         * Api/qwebframe.cpp:
4241         (QWebFramePrivate::updateBackground):
4242         * Api/qwebframe_p.h:
4243         * Api/qwebpage.cpp:
4244         (QWebPagePrivate::dropEvent):
4245         (QWebPage::setPalette):
4246         * Api/qwebpage.h:
4247         * Api/qwebpage_p.h:
4248         * Api/qwebview.cpp:
4249         (QWebView::page):
4250         (QWebView::changeEvent):
4251         * Api/qwebview.h:
4252         * WebCoreSupport/FrameLoaderClientQt.cpp:
4253
4254 2008-04-22  Benjamin Meyer  <bmeyer@trolltech.com>
4255
4256         Reviewed by Simon.
4257
4258         Fix maps.google.com
4259
4260         We have to include a version in the Safari tag in the user-agent.
4261
4262         * Api/qwebpage.cpp:
4263         (QWebPage::userAgentForUrl):
4264
4265 2008-04-22  Tor Arne Vestbø  <tavestbo@trolltech.com>
4266
4267         Reviewed by Simon.
4268
4269         Add visual focusing hint for clear button and
4270         change focus to web page after user enters new URL.
4271
4272         * QtLauncher/main.cpp:
4273         (ClearButton::paintEvent):
4274         (MainWindow::changeLocation):
4275
4276 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
4277
4278         Reviewed by Holger.
4279
4280         Added QWebFrame::hitTestContent() and QWebHitTestResult.
4281
4282         * Api/qwebframe.cpp:
4283         (QWebFrame::hitTestContent):
4284         (QWebFrame::event):
4285         (QWebHitTestResult::QWebHitTestResult):
4286         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
4287         (QWebHitTestResult::operator=):
4288         (QWebHitTestResult::~QWebHitTestResult):
4289         (QWebHitTestResult::isNull):
4290         (QWebHitTestResult::pos):
4291         (QWebHitTestResult::title):
4292         (QWebHitTestResult::linkText):
4293         (QWebHitTestResult::linkUrl):
4294         (QWebHitTestResult::linkTitle):
4295         (QWebHitTestResult::linkTargetFrame):
4296         (QWebHitTestResult::alternateText):
4297         (QWebHitTestResult::imageUrl):
4298         (QWebHitTestResult::pixmap):
4299         (QWebHitTestResult::isContentEditable):
4300         (QWebHitTestResult::isContentSelected):
4301         (QWebHitTestResult::frame):
4302         * Api/qwebframe.h:
4303         * Api/qwebframe_p.h:
4304         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
4305         * Api/qwebpage.cpp:
4306         (QWebPagePrivate::contextMenuEvent):
4307         (QWebPage::triggerAction):
4308         * Api/qwebpage.h:
4309         * Api/qwebpage_p.h:
4310
4311 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
4312
4313         Reviewed by Holger.
4314
4315         Don't crash if an input method query is done without a page.
4316         
4317
4318         * Api/qwebview.cpp:
4319         (QWebView::inputMethodQuery):
4320
4321 2008-04-22  Simon Hausmann  <hausmann@webkit.org>
4322
4323         Reviewed by Holger.
4324
4325         Added re-implementations of QObject::event for future safety.
4326         
4327         This makes it easier to fix bugs with the event handling even in patch releases
4328         and is a general style we follow in Qt.
4329         
4330
4331         * Api/qwebframe.cpp:
4332         * Api/qwebframe.h:
4333         * Api/qwebview.cpp:
4334         (QWebView::event):
4335         * Api/qwebview.h:
4336
4337 2008-04-22  Benjamin Meyer  <bmeyer@trolltech.com>
4338
4339         Reviewed by Simon.
4340
4341         Fix construction of the user agent.
4342         
4343         The user-agent is now composed of
4344         * the platform and subplatform
4345         * the Qt version or application name and version (if set)
4346         * the locale
4347         * the SSL settings
4348         
4349
4350         * Api/qwebpage.cpp:
4351         (QWebPage::networkAccessManager):
4352         (QWebPage::setPluginFactory):
4353         (QWebPage::pluginFactory):
4354         (QWebPage::userAgentForUrl):
4355         * QtLauncher/main.cpp:
4356
4357 2008-04-22  Thiago Macieira  <tjmaciei@trolltech.com>
4358
4359         Reviewed by Simon.
4360
4361         Fixes: Pedantic compilation fix
4362
4363         Don't put semi-colons after braces closing namespaces.
4364
4365         * Api/qwebsettings.h:
4366
4367 2008-04-21  Simon Hausmann  <hausmann@webkit.org>
4368
4369         Reviewed by Lars.
4370
4371         Changed the return type of QWebFrame::evaluateJavaScript from a QString to a QVariant.
4372
4373         * Api/qwebframe.cpp:
4374         (QWebFrame::evaluateJavaScript):
4375         * Api/qwebframe.h:
4376
4377 2008-04-21  Simon Hausmann  <hausmann@webkit.org>
4378
4379         Reviewed by Holger.
4380
4381         Fixes redundant "Fonts" submenu in default lineedits that has only disabled items.
4382
4383         Don't show sub-menus that have only actions that are disabled.
4384
4385         * Api/qwebpage.cpp:
4386         (QWebPagePrivate::createContextMenu):
4387
4388 2008-04-21  Kavindra Devi Palaraja <kdpalara@trolltech.com>.
4389
4390         Reviewed by Simon.
4391
4392         Lots of documentation fixes, fixed all qdoc warnings.
4393
4394         * Api/qwebframe.cpp:
4395         (QWebFrame::setTextSizeMultiplier):
4396         * Api/qwebhistoryinterface.cpp:
4397         (gCleanupInterface):
4398         (QWebHistoryInterface::QWebHistoryInterface):
4399         (QWebHistoryInterface::~QWebHistoryInterface):
4400         * Api/qwebpage.cpp:
4401         (QWebPage::inputMethodQuery):
4402         (QWebPage::view):
4403         (QWebPage::javaScriptConsoleMessage):
4404         (QWebPage::javaScriptAlert):
4405         (QWebPage::javaScriptConfirm):
4406         (QWebPage::javaScriptPrompt):
4407         (QWebPage::viewportSize):
4408         (QWebPage::acceptNavigationRequest):
4409         (QWebPage::action):
4410         (QWebPage::event):
4411         (QWebPage::focusNextPrevChild):
4412         (QWebPage::setForwardUnsupportedContent):
4413         (QWebPage::setLinkDelegationPolicy):
4414         (QWebPage::findText):
4415         (QWebPage::settings):
4416         (QWebPage::networkProxy):
4417         (QWebPage::setNetworkAccessManager):
4418         * Api/qwebpage.h:
4419         * Api/qwebsettings.cpp:
4420         (QWebSettings::QWebSettings):
4421         (QWebSettings::setIconDatabasePath):
4422         (QWebSettings::iconForUrl):
4423         (QWebSettings::fontFamily):
4424         * Api/qwebview.cpp:
4425         (QWebView::load):
4426         * Api/qwebview.h:
4427
4428 2008-04-21  Marius Bugge Monsen  <mmonsen@trolltech.com>
4429
4430         Reviewed by Simon.
4431
4432         Fix compile failure on solaris-cc
4433
4434         * Api/qwebpage.h: Removed trailing semicolons and moved the private
4435         d-pointer to not confuse the compiler
4436
4437 2008-04-21  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
4438
4439         Reviewed by Simon.
4440
4441         Build fix for Qt 4.3
4442
4443         * When building WebCore/internal make sure the QT_[BEGIN,END]_NAMESPACE is
4444         always defined. Do this by adding defines to the compiler line
4445         * For users of our API this is not feasible. Every public header file should
4446         include qwebkitglobal.h. Define the QT_BEGIN_NAMESPACE and QT_END_NAMESPACE
4447         when we are building everything < 4.4.0 and don't have them defined.
4448
4449         * Api/qwebkitglobal.h:
4450
4451 2008-04-21  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
4452
4453         Reviewed by Simon.
4454
4455         * Initialize the WebGraphics with the one found in WebCore
4456         
4457
4458         * Api/qwebsettings.cpp:
4459         (QWebSettingsPrivate::apply):
4460
4461 2008-04-21  Holger Hans Peter Freyther  <holger.freyther@trolltech.com>
4462
4463         Reviewed by Simon.
4464
4465         * Allow TextAreas to be resized.
4466         * No QWebSettings for this is introduced.
4467         
4468
4469         * Api/qwebsettings.cpp:
4470         (QWebSettingsPrivate::apply):
4471
4472 2008-04-21  Simon Hausmann  <shausman@trolltech.com>
4473
4474         Reviewed by Holger.
4475
4476         Fixes: QWebView::url property behaviour strange in designer
4477
4478         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.
4479
4480         * Api/qwebframe.cpp:
4481         (QWebFrame::setUrl):
4482         * Api/qwebframe.h:
4483         * Api/qwebview.cpp:
4484         (QWebView::setUrl):
4485         * Api/qwebview.h:
4486
4487 2008-04-21  Andre Poenitz  <andre.poenitz@trolltech.com>
4488
4489         Reviewed by Simon Hausmann <hausmann@webkit.org>.
4490
4491         Fix compilation with Qt namespaces
4492
4493         * Api/qwebframe.cpp:
4494         (QWebFrame::print):
4495         * Api/qwebview.h:
4496
4497 2008-04-21  Simon Hausmann  <hausmann@webkit.org>
4498
4499         Reviewed by Holger.
4500
4501         When printing on high resolution printers we need to scale the painter accordingly (for now).
4502
4503         * Api/qwebframe.cpp:
4504         (QWebFrame::print):
4505
4506 2008-04-21  Simon Hausmann  <hausmann@webkit.org>
4507
4508         Reviewed by Holger.