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