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