2010-02-02 Jessie Berlin <jberlin@webkit.org>
[WebKit-https.git] / WebKit / qt / ChangeLog
1 2010-02-02  Jessie Berlin  <jberlin@webkit.org>
2
3         Rubber Stamped by Holger Freyther.
4
5         [Qt] Fix style issue identified in bug:
6         https://bugs.webkit.org/show_bug.cgi?id=34329
7
8         * WebCoreSupport/InspectorClientQt.cpp:
9         (WebCore::InspectorClientWebPage::InspectorClientWebPage):
10         Fix indentation.
11
12 2010-02-01  Jessie Berlin  <jberlin@webkit.org>
13
14         Reviewed by Holger Freyther.
15
16         [Qt] Enable inspecting the Web Inspector in QtLauncher
17
18         https://bugs.webkit.org/show_bug.cgi?id=34329
19
20         * WebCoreSupport/InspectorClientQt.cpp:
21         (WebCore::InspectorClientWebPage::InspectorClientWebPage):
22         Allow the DeveloperExtrasEnabled setting to default to true for the page containing the Web Inspector.
23
24 2010-02-02  Andreas Kling  <andreas.kling@nokia.com>
25
26         Reviewed by Kenneth Rohde Christiansen.
27
28         [Qt] Display HTML tags verbatim in JS alert/confirm/prompt boxes
29
30         https://bugs.webkit.org/show_bug.cgi?id=34429
31
32         * Api/qwebpage.cpp:
33         (QWebPage::javaScriptAlert):
34         (QWebPage::javaScriptConfirm):
35         (QWebPage::javaScriptPrompt):
36
37 2010-02-02  Noam Rosenthal  <noam.rosenthal@nokia.com>
38
39         Reviewed by Kenneth Rohde Christiansen.
40
41         [Qt] Enable a way to measure FPS in QGVLauncher
42         run QGVLauncher with --show-fps to see ongoing fps measurements
43         This is not meant as accurate FPS, but rather as a way to find
44         improvements/regressions
45         https://bugs.webkit.org/show_bug.cgi?id=34450
46
47         * QGVLauncher/main.cpp:
48         (MainView::MainView): initialize FPS values
49         (MainView::paintEvent): count a painted frame here
50         (MainView::printFps): we print the fps with qDebug every 5 seconds.
51
52 2010-01-29  Ben Murdoch  <benm@google.com>
53
54         Reviewed by Dimitri Glazkov.
55
56         [Android] Android needs functionality in the ChromeClient to be informed when touch events are and are not needed by the webpage.
57         https://bugs.webkit.org/show_bug.cgi?id=34215
58
59         Add needTouchEvents() to the ChromeClient which is called when the page decides it needs or no longer needs to be informed of touch events.
60
61         * WebCoreSupport/ChromeClientQt.h:
62         (WebCore::ChromeClientQt::needTouchEvents): Add an empty implementation.
63
64 2010-01-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
65
66         Reviewed by Simon Hausmann
67
68         Disable auto-uppercase and predictive text on Maemo5, just like the
69         build-in MicroB Browser.
70
71         * WebCoreSupport/EditorClientQt.cpp:
72         (WebCore::EditorClientQt::setInputMethodState):
73
74 2010-01-28  Andreas Kling  <andreas.kling@nokia.com>
75
76         Reviewed by Kenneth Rohde Christiansen.
77
78         [Qt] Support kinetic scrolling on Maemo 5
79
80         https://bugs.webkit.org/show_bug.cgi?id=34267
81
82         Patch by Ralf Engels <ralf.engels@nokia.com> and
83         Robert Griebl <rgriebl@trolltech.com>
84
85         * Api/qwebview.cpp:
86         (QWebViewKineticScroller::QWebViewKineticScroller):
87         (QWebViewKineticScroller::eventFilter):
88         (QWebViewKineticScroller::currentFrame):
89         (QWebViewKineticScroller::scrollingFrameAt):
90         (QWebViewKineticScroller::attachToWidget):
91         (QWebViewKineticScroller::removeFromWidget):
92         (QWebViewKineticScroller::positionRange):
93         (QWebViewKineticScroller::position):
94         (QWebViewKineticScroller::viewportSize):
95         (QWebViewKineticScroller::setPosition):
96         (QWebView::QWebView):
97
98 2010-01-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
99
100         Reviewed by Simon Hausmann.
101
102         Do not set the combobox font on Maemo5 and S60; use the
103         default instead.
104
105         * WebCoreSupport/QtFallbackWebPopup.cpp:
106         (WebCore::QtFallbackWebPopup::populate):
107
108 2010-01-28  Trond Kjernåsen <trond@trolltech.com>
109
110         Reviewed by Simon Hausmann.
111
112         [Qt] Fix for endless print loop when printing web pages
113
114         * Api/qwebframe.cpp:
115         (QWebFrame::print):
116
117 2010-01-27  Diego Gonzalez  <diego.gonzalez@openbossa.org>
118
119         Reviewed by Kenneth Rohde Christiansen.
120
121         [Qt] DRT Provide worker thread ability to track counters
122         https://bugs.webkit.org/show_bug.cgi?id=34221
123
124         Implement workerThreadCount() in LayoutTestController of Qt DRT
125
126         Tests:
127         fast/workers/dedicated-worker-lifecycle.html
128         fast/workers/shared-worker-frame-lifecycle.html
129         fast/workers/shared-worker-lifecycle.html
130         fast/workers/worker-lifecycle.html
131
132         * Api/qwebpage.cpp:
133         (qt_drt_workerThreadCount):
134
135 2010-01-27  Simon Hausmann  <simon.hausmann@nokia.com>
136
137         Reviewed by Laszlo Gombos.
138
139         [Qt] Update the .def files with exported symbols
140
141         * symbian/eabi/QtWebKitu.def: Add two mangled missing new symbols for arm eabi.
142
143 2010-01-27  Kent Hansen  <kent.hansen@nokia.com>
144
145         Reviewed by Simon Hausmann.
146
147         [Qt] Meta-methods can't be introspected using ES5 API
148         https://bugs.webkit.org/show_bug.cgi?id=34087
149
150         Test that Object.getOwnPropertyDescriptor and
151         Object.getOwnPropertyNames work with meta-methods.
152
153         * tests/qwebframe/tst_qwebframe.cpp:
154
155 2010-01-26  Simon Hausmann  <simon.hausmann@nokia.com>
156
157         Reviewed by Kenneth Rohde Christiansen.
158
159         [Qt] Show comboboxes on Maemo 5
160         https://bugs.webkit.org/show_bug.cgi?id=34088
161
162         Don't try to show the combobox by simulating a mouse event from QCursor::pos() to
163         get the combobox position right. The position on Maemo 5 is independent from the mouse
164         and there's no QCursor::pos().
165
166         * WebCoreSupport/QtFallbackWebPopup.cpp:
167         (WebCore::QtFallbackWebPopup::show):
168
169 2010-01-26  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
170
171         Reviewed by Simon Hausmann.
172
173         First steps of the QtScript API.
174         
175         Two new classes were created; QScriptEngine and QScriptValue.
176         The first should encapsulate a javascript context and the second a script
177         value.
178         
179         This API is still in development, so it isn't compiled by default.
180         To trigger compilation, pass --qmakearg="CONFIG+=build-qtscript" to
181         build-webkit.
182
183         https://bugs.webkit.org/show_bug.cgi?id=32565
184
185         * docs/qtwebkit.qdocconf:
186
187 2010-01-26  Holger Hans Peter Freyther  <zecke@selfish.org>
188
189         Reviewed by Simon Hausmann.
190
191         [Qt] JavaScript prompt is currently broken
192         https://bugs.webkit.org/show_bug.cgi?id=30914
193
194         In r52152 a patch was landed to convert a null QString
195         to an empty WebCore::String in case the prompt was accepted
196         but the default implementation returned the null QString.
197
198         The patch tried to avoid assign to result twice and
199         was not checking the QString if it is null but the default
200         value. This lead to always returning an empty string on
201         successful prompts. Fix it by checking the variable 'x'
202         for isNull.
203
204         The manual test case used didn't cover the case of non
205         empty input, replace it with an automatic test case that
206         should cover all cases.
207
208         * WebCoreSupport/ChromeClientQt.cpp:
209         (WebCore::ChromeClientQt::runJavaScriptPrompt): Fix the bug.
210         * tests/qwebpage/tst_qwebpage.cpp: Add automatic test case
211         (JSPromptPage::JSPromptPage):
212         (JSPromptPage::javaScriptPrompt):
213         (tst_QWebPage::testJSPrompt):
214
215 2010-01-25  Simon Hausmann  <hausmann@webkit.org>
216
217         Reviewed by Kenneth Rohde Christiansen.
218
219         [Qt] In RenderThemeQt determine the QStyle from the page client instead of the page's view
220         https://bugs.webkit.org/show_bug.cgi?id=34053
221
222         * Api/qgraphicswebview.cpp:
223         (QGraphicsWebViewPrivate::style): Implement QWebPageClient::style() and return the graphics
224         widget's style.
225         * Api/qwebpage.cpp:
226         (QWebPageWidgetClient::style): Implement QWebPageClient::style() and return the widget's style.
227
228 2010-01-25  Janne Koskinen  <janne.p.koskinen@digia.com>
229
230         Reviewed by Simon Hausmann.
231
232         [Qt] Phone backup support for QtWebkit for Symbian devices.
233         https://bugs.webkit.org/show_bug.cgi?id=34077
234
235         * symbian/backup_registration.xml: Added.
236
237 2010-01-23  Girish Ramakrishnan  <girish@forwardbias.in>
238
239         Reviewed by Kenneth Rohde Christiansen.
240
241         [Qt] Fix positioning of ComboBox popup in QGraphicsWebView.
242         
243         Wrap the popup in a QGraphicsProxyWidget, so that the popup
244         transforms with the item.
245         
246         https://bugs.webkit.org/show_bug.cgi?id=33887
247
248         * WebCoreSupport/QtFallbackWebPopup.cpp:
249         (WebCore::QtFallbackWebPopupCombo::hidePopup):
250         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
251         (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
252         (WebCore::QtFallbackWebPopup::show):
253         * WebCoreSupport/QtFallbackWebPopup.h:
254
255 2010-01-22  Peter Kasting  <pkasting@google.com>
256
257         Not reviewed, backout.
258
259         Back out r52673, which caused several regressions.
260         https://bugs.webkit.org/show_bug.cgi?id=32533
261
262         * WebCoreSupport/QtFallbackWebPopup.cpp:
263         (WebCore::QtFallbackWebPopupCombo::hidePopup):
264
265 2010-01-22  Girish Ramakrishnan  <girish@forwardbias.in>
266
267         Reviewed by Simon Hausmann.
268
269         [Qt] Save the QWebPageClient instead of the ownerWidget in QtAbstractWebPopup
270         
271         The QWebPageClient is required for the QtFallbackWebPopup. QtFallbackWebPopup will
272         need it to create a QGraphicsProxyWidget (in a future commit) for the 
273         QGraphicsWebView's web popup.
274
275         * WebCoreSupport/QtFallbackWebPopup.cpp:
276         (WebCore::QtFallbackWebPopup::show):
277
278 2010-01-22  Girish Ramakrishnan  <girish@forwardbias.in>
279
280         Reviewed by Kenneth Rohde Christiansen.
281
282         QState::polished() was renamed to QState::propertiesAssigned() when
283         Qt 4.6.0 was released.
284
285         * QGVLauncher/main.cpp:
286         (MainWindow::init):
287
288 2010-01-21  Diego Gonzalez  <diego.gonzalez@openbossa.org>
289
290         Reviewed by Kenneth Rohde Christiansen.
291
292         [Qt] add setDomainRelaxationForbiddenForURLScheme in Qt DRT
293         https://bugs.webkit.org/show_bug.cgi?id=33945
294
295         * Api/qwebsecurityorigin.cpp:
296         (qt_drt_setDomainRelaxationForbiddenForURLScheme):
297
298 2010-01-21  No'am Rosenthal  <noam.rosenthal@nokia.com>
299
300         Reviewed by Antti Koivisto.
301
302         [Qt] Implement GraphicsLayer for accelerated layer compositing
303         https://bugs.webkit.org/show_bug.cgi?id=33514
304
305         Here we have the QGraphicsWebView support for accelerated compositing
306
307         * Api/qgraphicswebview.cpp:
308         (QGraphicsWebViewOverlay::q): access to container object
309         (QGraphicsWebViewOverlay::boundingRect): overlay has same rect as the
310         webview
311         (QGraphicsWebViewOverlay::paint): paint everything but the contents
312         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate): some vars needed
313         for accelerated compositing
314         (QGraphicsWebViewPrivate::):
315         (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate):
316         (QGraphicsWebViewPrivate::setRootGraphicsLayer): make sure we have a
317         scrollbar overlay, and that the new graphics layer is parented by the
318         web-view
319         (QGraphicsWebViewPrivate::markForSync): flush changes at earliest
320         convenience or during the next draw
321
322         (QGraphicsWebViewPrivate::updateCompositingScrollPosition): sync the
323         position of the compositing layer with the scroll position
324         (QGraphicsWebViewPrivate::syncLayers): flush changes now
325         (QGraphicsWebViewPrivate::scroll): make sure we also move the
326         compositing layer
327         (QGraphicsWebViewPrivate::update): also update the overlay if needed
328         (QGraphicsWebView::QGraphicsWebView): initialize overlay with 0
329         (QGraphicsWebView::paint): paint only contents if we have an overlay,
330         sync the compositing layers now if needed
331         (QGraphicsWebView::setPage): also clean up the compositing
332         (QGraphicsWebView::updateGeometry): also update overlay geo
333         (QGraphicsWebView::setGeometry): also update overlay geo
334         * Api/qgraphicswebview.h: reimp compositing stuff from QWebPageClient
335         * Api/qwebsettings.cpp: init new settings flag for compositing as
336         false
337         (QWebSettingsPrivate::apply): apply new settings flag for compositing
338         (QWebSettings::QWebSettings):
339         * Api/qwebsettings.h: new settings flag for compositing
340         * Api/qwebview.cpp: 
341         (QWebView::setPage): qwebview doesn't support compositing: always false
342         * QGVLauncher/main.cpp:
343         (WebView::WebView): some more cmdline arguments + compositing
344         (MainWindow::init): some more cmdline arguments
345         (main): ditto
346         * WebCoreSupport/ChromeClientQt.cpp:
347         (WebCore::ChromeClientQt::attachRootGraphicsLayer): reimp for
348         accel-compositing
349         (WebCore::ChromeClientQt::setNeedsOneShotDrawingSynchronization):
350         reimp for accel compositing
351         (WebCore::ChromeClientQt::scheduleCompositingLayerSync): reimp for
352         accel compositing
353         * WebCoreSupport/ChromeClientQt.h: reimps for accel compositing
354
355 2010-01-21  Benjamin Poulain  <benjamin.poulain@nokia.com>
356
357         Reviewed by Simon Hausmann.
358
359         [Qt] Improve the autotests of QtWebkit
360         https://bugs.webkit.org/show_bug.cgi?id=32216
361
362         Remove qWait() of the test when possible.
363
364         * tests/qwebpage/tst_qwebpage.cpp:
365         (tst_QWebPage::loadFinished):
366         (tst_QWebPage::database):
367         (tst_QWebPage::testEnablePersistentStorage):
368         (tst_QWebPage::errorPageExtension):
369         (tst_QWebPage::screenshot):
370
371 2010-01-21  Simon Hausmann  <simon.hausmann@nokia.com>
372
373         Prospective build fix for the Qt build.
374
375         Fix compilation against Qt without WebKit support by not including QtWebKit/QWebView
376         but widget.h instead and instantiating QWebView through a typedef, to ensure we're using
377         our locally built WebKit.
378
379         * tests/hybridPixmap/widget.h:
380         * tests/hybridPixmap/widget.ui:
381
382 2010-01-21  No'am Rosenthal  <noam.rosenthal@nokia.com>
383
384         Reviewed by Simon Hausmann.
385
386         [Qt] Adding QPixmap/QImage support for the Qt hybrid layer
387         https://bugs.webkit.org/show_bug.cgi?id=32461
388
389         * tests/hybridPixmap: Added.
390         * tests/hybridPixmap/hybridPixmap.pro: Added.
391         * tests/hybridPixmap/resources.qrc: Added.
392         * tests/hybridPixmap/test.html: Added.
393         * tests/hybridPixmap/tst_hybridPixmap.cpp: Added.
394         (tst_hybridPixmap::tst_hybridPixmap): tests most of the use cases for
395         hybrid pixmap/image manipulation 
396         (tst_hybridPixmap::init): QTestLib initialization
397         (tst_hybridPixmap::cleanup): QTestLib cleanup
398         (tst_hybridPixmap::hybridPixmap): run the html file
399         * tests/hybridPixmap/widget.cpp: Added.
400         (Widget::Widget):
401         (Widget::refreshJS):
402         (Widget::start):
403         (Widget::completeTest):
404         (Widget::setPixmap):
405         (Widget::pixmap):
406         (Widget::setImage):
407         (Widget::image):
408         (Widget::~Widget):
409         (Widget::changeEvent):
410         (Widget::compare):
411         (Widget::imageSlot):
412         (Widget::pixmapSlot):
413         (Widget::randomSlot):
414         * tests/hybridPixmap/widget.h: Added.
415         * tests/hybridPixmap/widget.ui: Added.
416         * tests/tests.pro:
417
418 2010-01-21  Luiz Agostini  <luiz.agostini@openbossa.org>
419
420         Reviewed by Kenneth Rohde Christiansen.
421
422         [Qt] Custom select popups.
423         https://bugs.webkit.org/show_bug.cgi?id=33418
424
425         Adjusting QtFallbackWebPopupCombo to the changes in WebCore layer.
426
427         * WebCoreSupport/ChromeClientQt.cpp:
428         (WebCore::ChromeClientQt::createSelectPopup):
429         * WebCoreSupport/ChromeClientQt.h:
430         * WebCoreSupport/QtFallbackWebPopup.cpp:
431         (WebCore::QtFallbackWebPopupCombo::QtFallbackWebPopupCombo):
432         (WebCore::QtFallbackWebPopupCombo::showPopup):
433         (WebCore::QtFallbackWebPopupCombo::hidePopup):
434         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
435         (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
436         (WebCore::QtFallbackWebPopup::show):
437         (WebCore::QtFallbackWebPopup::hide):
438         (WebCore::QtFallbackWebPopup::populate):
439         * WebCoreSupport/QtFallbackWebPopup.h:
440
441 2010-01-19  Steve Block  <steveblock@google.com>
442
443         Reviewed by Adam Barth.
444
445         Renames WebCore/bridge/runtime.[cpp|h] to WebCore/bridge/Bridge.[cpp|h]
446         https://bugs.webkit.org/show_bug.cgi?id=33801
447
448         * Api/qwebframe.cpp:
449
450 2010-01-14  Brian Weinstein  <bweinstein@apple.com>
451
452         Reviewed by Adam Roben.
453
454         Drag and Drop source/destination code needs cleanup.
455         <https://bugs.webkit.org/show_bug.cgi?id=33691>.
456         
457         Update to new way of calling sourceOperation.
458
459         * WebCoreSupport/DragClientQt.cpp:
460         (WebCore::DragClientQt::startDrag):
461
462 2010-01-14  Simon Hausmann  <simon.hausmann@nokia.com>
463
464         Reviewed by Tor Arne Vestbø.
465
466         [Qt] Symbian build fixes.
467
468         * tests/qwebpage/tst_qwebpage.cpp: Include util.h
469         * tests/tests.pri: Don't define TESTS_SOURCE_DIR, it doesn't work.
470         * tests/util.h: Define TESTS_SOURCE_DIR here, just like it's done in Qt.
471
472 2010-01-14  Simon Hausmann  <simon.hausmann@nokia.com>
473
474         Reviewed by Kenneth Rohde Christiansen.
475
476         [Qt] Update Symbian .def symbol export files after private API additions.
477
478         * symbian/bwins/QtWebKitu.def:
479         * symbian/eabi/QtWebKitu.def:
480
481 2010-01-13  Darin Adler  <darin@apple.com>
482
483         Reviewed by Dan Bernstein.
484
485         Move more of the selection and caret painting code from Frame to SelectionController.
486         https://bugs.webkit.org/show_bug.cgi?id=33619
487
488         * Api/qwebpage.cpp:
489         (QWebPagePrivate::inputMethodEvent): Seems possibly wrong to be directly invoking this
490         setCaretVisible here, but I updated it to call it in its new location.
491
492 2010-01-11  Simon Hausmann  <simon.hausmann@nokia.com>
493
494         Reviewed by Holger Freyther.
495
496         [Qt] Add private API for QWebFrame scrolling, to maintain binary compatibility with Qt 4.6.
497
498         This is just a temporary addition until we have introduced #ifdefs to allow
499         safely removing the private API again.
500
501         * Api/qwebframe.cpp:
502         (qtwebkit_webframe_scrollRecursively):
503
504 2010-01-10  Robert Hogan  <robert@roberthogan.net>
505
506         Reviewed by Adam Barth.
507
508         [Qt] Add enableXSSAuditor support to QWebSettings and DRT.
509
510         https://bugs.webkit.org/show_bug.cgi?id=33419
511
512         * Api/qwebsettings.cpp:
513         (QWebSettingsPrivate::apply):
514         * Api/qwebsettings.h:
515
516 2010-01-09  Daniel Bates  <dbates@webkit.org>
517
518         No review, rolling out r53044.
519         http://trac.webkit.org/changeset/53044
520         https://bugs.webkit.org/show_bug.cgi?id=33419
521         
522         We need to look into this some more because the Qt
523         bot is failing the XSSAuditor tests. See bug #33419
524         for more details.
525
526         * Api/qwebsettings.cpp:
527         * Api/qwebsettings.h:
528
529 2010-01-09  Daniel Bates  <dbates@webkit.org>
530
531         Reviewed by Adam Barth.
532
533         https://bugs.webkit.org/show_bug.cgi?id=33419
534
535         Adds support for the XSSAuditor to the Qt DRT.
536
537         * Api/qwebsettings.cpp: Updated comment to reflect added key XSSAuditorEnabled.
538         * Api/qwebsettings.h: Adds settings key XSSAuditorEnabled.
539
540 2010-01-08  Luiz Agostini  <luiz.agostini@openbossa.org>
541
542         Reviewed by Kenneth Rohde Christiansen.
543
544         [Qt] Delegation client
545         https://bugs.webkit.org/show_bug.cgi?id=32826
546
547         Added method createPopup to ChromeClientQt used to create popups.
548         QtFallbackWebPopup moved from WebCore/platform/qt to
549         WebKit/qt/WebCoreSupport.
550
551         * WebCoreSupport/ChromeClientQt.cpp:
552         (WebCore::ChromeClientQt::createPopup):
553         * WebCoreSupport/ChromeClientQt.h:
554         * WebCoreSupport/QtFallbackWebPopup.cpp: Added.
555         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
556         (WebCore::QtFallbackWebPopup::show):
557         (WebCore::QtFallbackWebPopup::populate):
558         (WebCore::QtFallbackWebPopup::showPopup):
559         (WebCore::QtFallbackWebPopup::hidePopup):
560         (WebCore::QtFallbackWebPopup::activeChanged):
561         (WebCore::QtFallbackWebPopup::setParent):
562         * WebCoreSupport/QtFallbackWebPopup.h: Added.
563         (WebCore::QtFallbackWebPopup::hide):
564
565 2010-01-07  Yael Aharon  <yael.aharon@nokia.com>
566
567         Reviewed by Kenneth Rohde Christiansen.
568
569         [Qt] Allow the application to override online/offline network status
570         https://bugs.webkit.org/show_bug.cgi?id=32684
571
572         Add a setting so that applications can overide the network status.
573         Applications that use this setting still need to block network access
574         through QNAM.
575
576         * Api/qwebsettings.cpp:
577         (qt_networkAccessAllowed):
578
579 2010-01-07  Yongjun Zhang  <yongjun.zhang@nokia.com>, Laszlo Gombos  <laszlo.1.gombos@nokia.com>
580
581         Reviewed by Simon Hausmann.
582
583         [Qt] need an API to suspend and resume active Javascript DOM objects.
584         https://bugs.webkit.org/show_bug.cgi?id=31673
585
586         Add suspend and resume DOM objects private API to QWebFrame.
587
588         * Api/qwebframe.cpp:
589         (qt_suspendActiveDOMObjects):
590         (qt_resumeActiveDOMObjects):
591
592 2010-01-06  Andreas Kling  <andreas.kling@nokia.com>
593
594         Reviewed by Simon Hausmann.
595
596         [Qt] Return an invalid Qt::ImMicroFocus if queried while the view needs to layout.
597
598         https://bugs.webkit.org/show_bug.cgi?id=33204
599
600         * Api/qwebpage.cpp:
601         (QWebPage::inputMethodQuery):
602
603 2010-01-05  Yael Aharon  <yael.aharon@nokia.com>
604
605         Reviewed by Kenneth Rohde Christiansen.
606
607         Drag & drop layout tests fail even when run manually
608         https://bugs.webkit.org/show_bug.cgi?id=33055
609
610         No new tests. Fix 3 layout tests when run manually.
611         fast/events/drag-and-drop.html
612         fast/events/drag-and-drop-dataTransfer-types-nocrash.html
613         fast/events/drag-and-drop-fire-drag-dragover.html
614         Running these tests in DRT will be fixed in 31332.
615
616         * Api/qwebpage.cpp:
617         (dropActionToDragOp):
618         (dragOpToDropAction):
619         (QWebPagePrivate::dragEnterEvent):
620         (QWebPagePrivate::dragMoveEvent):
621         (QWebPagePrivate::dropEvent):
622         Accept drag events even if they are not over a drop target. 
623         This is to ensure that drag events will continue to be delivered.
624
625         * Api/qwebpage_p.h:
626         * WebCoreSupport/DragClientQt.cpp:
627         (WebCore::dragOperationToDropActions):
628         (WebCore::dropActionToDragOperation):
629         (WebCore::DragClientQt::startDrag):
630         Send dragEnd event.
631
632 2010-01-04  Daniel Bates  <dbates@webkit.org>
633
634         Reviewed by Eric Seidel.
635
636         https://bugs.webkit.org/show_bug.cgi?id=33097
637
638         Cleans up the File menu to better conform to the File menu in Safari
639         both in terms of options and keyboard shortcuts. Adds a "Quit" menu
640         options to close all open windows.
641
642         * QGVLauncher/main.cpp:
643         (MainWindow::buildUI):
644
645 2009-12-31  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
646
647         Reviewed by Kenneth Rohde Christiansen.
648
649         [Qt] Enable all HTML5 persistent features for QGVLauncher
650         https://bugs.webkit.org/show_bug.cgi?id=33086
651
652         * QGVLauncher/main.cpp: Call enablePersistentStorage()
653         (main):
654
655 2009-12-30  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
656
657         Reviewed by Simon Hausmann.
658
659         [Qt] It should be possible to disable inspector
660         https://bugs.webkit.org/show_bug.cgi?id=32724
661
662         This change fixes the build break. Some QtWebKit interfaces
663         will not be fully functional (most notable QWebInspector) if
664         INSPECTOR is disabled.
665
666         * Api/qwebinspector.cpp:
667         (QWebInspector::showEvent):
668         (QWebInspector::closeEvent):
669         * Api/qwebpage.cpp:
670         (webActionForContextMenuAction):
671         (QWebPagePrivate::getOrCreateInspector):
672         (QWebPagePrivate::inspectorController):
673         (QWebPage::triggerAction):
674         (QWebPage::updatePositionDependentActions):
675         * WebCoreSupport/InspectorClientQt.cpp:
676         (WebCore::InspectorClientQt::showWindow):
677         (WebCore::InspectorClientQt::closeWindow):
678
679 2009-12-30  Janne Koskinen  <janne.p.koskinen@digia.com>
680
681         Reviewed by Simon Hausmann.
682
683         Upstream Symbian def files from Qt 4.6.
684
685         These files define the ABI of QtWebKit on Symbian.
686
687         * symbian/bwins/QtWebKitu.def: Added.
688         * symbian/eabi/QtWebKitu.def: Added.
689
690 2009-12-29  Daniel Bates  <dbates@webkit.org>
691
692         Reviewed by Ariya Hidayat.
693
694         https://bugs.webkit.org/show_bug.cgi?id=32925
695
696         Adds an Open File dialog to make it convenient to open a file
697         to view in the browser.
698
699         * QGVLauncher/main.cpp:
700         (MainWindow::load): Modified to call loadURL.
701         (MainWindow::openFile): Added.
702         (MainWindow::loadURL): Added.
703         (MainWindow::buildUI): Added menu item Open File.
704
705 2009-12-29  Robert Hogan  <robert@roberthogan.net>
706
707         Reviewed by Eric Seidel.
708
709         [Qt] Fix crash on LayoutTests/fast/loader/empty-embed-src-attribute.html
710         
711         Related to https://bugs.webkit.org/show_bug.cgi?id=23806
712         
713         If an embedded document is loaded within a page and it has an empty
714         URL, use a blank URL for the load request.
715         
716         https://bugs.webkit.org/show_bug.cgi?id=33017
717
718         * WebCoreSupport/FrameLoaderClientQt.cpp:
719         (WebCore::FrameLoaderClientQt::createFrame):
720
721 2009-12-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
722
723         Rubber-stamped by Simon Hausmann and Holger Freyther.
724
725         [Qt] Remove WebKit/qt/WebKitPart empty directory
726
727         The content of the directory has been removed by r34888.
728
729         * WebKitPart: Removed.
730
731 2009-12-29  Jakub Wieczorek  <faw217@gmail.com>
732
733         Reviewed by Eric Seidel.
734
735         [Qt] DRT: Frame loader callbacks differ from the Mac port
736         https://bugs.webkit.org/show_bug.cgi?id=32989
737
738         Remove messages from the callbacks that should not dump them to match
739         the expected results for the http/loading tests.
740
741         Unskip some http/loading tests which succeed now.
742
743         * WebCoreSupport/FrameLoaderClientQt.cpp:
744         (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
745         (WebCore::FrameLoaderClientQt::dispatchWillClose):
746         (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
747         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
748
749 2009-12-29  Robert Hogan  <robert@roberthogan.net>
750
751         Reviewed by Eric Seidel.
752
753         [Qt] fix fast/dom/Window/window-onFocus.html
754         
755         Add support for layouttestcontroller.windowIsKey to Qt DRT and fix issue where
756         window.onblur was getting dispatched twice from QtWebKit.
757         
758         https://bugs.webkit.org/show_bug.cgi?id=32990
759
760         * Api/qwebpage.cpp:
761         (QWebPagePrivate::focusOutEvent):
762
763 2009-12-24  Girish Ramakrishnan  <girish@forwardbias.in>
764
765         Reviewed by Gustavo Noronha.
766
767         Doc : QGraphicsWebView::zoomFactor was introduced in 4.6.
768         
769         * Api/qgraphicswebview.cpp:
770
771 2009-12-22  Simon Hausmann  <simon.hausmann@nokia.com>
772
773         Rubber-stamped by Holger Freyther.
774
775         Moved QtLauncher to WebKitTools/
776
777         * QtLauncher: Removed.
778         * QtLauncher/QtLauncher.pro: Removed.
779         * QtLauncher/main.cpp: Removed.
780
781 2009-12-21  David Boddie  <dboddie@trolltech.com>
782
783         Reviewed by Simon Hausmann.
784
785         Doc: Minor fixes to language.
786
787         * Api/qwebpage.cpp:
788
789 2009-12-21  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
790
791         Reviewed by Simon Hausmann.
792
793         [Qt] Clean up the WebKit layer unit-tests
794
795             - Use tests.pri for common options
796             - Standardize file naming
797             - Move all resources to 'resources' subdir
798             - Standardize how TESTS_SOURCE_DIR is used
799             - Get rid of UID3 for symbian (autogenerated)
800             - Don't build app bundles on Mac OS X
801
802         * tests/benchmarks/loading/loading.pro: Added.
803         * tests/benchmarks/loading/tst_loading.pro: Removed.
804         * tests/benchmarks/painting/painting.pro: Added.
805         * tests/benchmarks/painting/tst_painting.pro: Removed.
806         * tests/qgraphicswebview/qgraphicswebview.pro:
807         * tests/qwebelement/qwebelement.pro:
808         * tests/qwebelement/qwebelement.qrc: Removed.
809         * tests/qwebelement/resources/image.png: Renamed from WebKit/qt/tests/qwebelement/image.png.
810         * tests/qwebelement/resources/style.css: Renamed from WebKit/qt/tests/qwebelement/style.css.
811         * tests/qwebelement/resources/style2.css: Renamed from WebKit/qt/tests/qwebelement/style2.css.
812         * tests/qwebelement/tst_qwebelement.qrc: Added.
813         * tests/qwebframe/qwebframe.pro:
814         * tests/qwebframe/qwebframe.qrc: Removed.
815         * tests/qwebframe/resources/image.png: Renamed from WebKit/qt/tests/qwebframe/image.png.
816         * tests/qwebframe/resources/style.css: Renamed from WebKit/qt/tests/qwebframe/style.css.
817         * tests/qwebframe/resources/test1.html: Renamed from WebKit/qt/tests/qwebframe/test1.html.
818         * tests/qwebframe/resources/test2.html: Renamed from WebKit/qt/tests/qwebframe/test2.html.
819         * tests/qwebframe/resources/testiframe.html: Renamed from WebKit/qt/tests/qwebframe/testiframe.html.
820         * tests/qwebframe/resources/testiframe2.html: Renamed from WebKit/qt/tests/qwebframe/testiframe2.html.
821         * tests/qwebframe/tst_qwebframe.cpp:
822         * tests/qwebframe/tst_qwebframe.qrc: Added.
823         * tests/qwebhistory/qwebhistory.pro:
824         * tests/qwebhistory/resources/page1.html: Renamed from WebKit/qt/tests/qwebhistory/data/page1.html.
825         * tests/qwebhistory/resources/page2.html: Renamed from WebKit/qt/tests/qwebhistory/data/page2.html.
826         * tests/qwebhistory/resources/page3.html: Renamed from WebKit/qt/tests/qwebhistory/data/page3.html.
827         * tests/qwebhistory/resources/page4.html: Renamed from WebKit/qt/tests/qwebhistory/data/page4.html.
828         * tests/qwebhistory/resources/page5.html: Renamed from WebKit/qt/tests/qwebhistory/data/page5.html.
829         * tests/qwebhistory/resources/page6.html: Renamed from WebKit/qt/tests/qwebhistory/data/page6.html.
830         * tests/qwebhistory/tst_qwebhistory.cpp:
831         (tst_QWebHistory::):
832         * tests/qwebhistory/tst_qwebhistory.qrc:
833         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
834         * tests/qwebinspector/qwebinspector.pro:
835         * tests/qwebpage/qwebpage.pro:
836         * tests/qwebpage/resources/frame_a.html: Renamed from WebKit/qt/tests/qwebpage/frametest/frame_a.html.
837         * tests/qwebpage/resources/iframe.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe.html.
838         * tests/qwebpage/resources/iframe2.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe2.html.
839         * tests/qwebpage/resources/iframe3.html: Renamed from WebKit/qt/tests/qwebpage/frametest/iframe3.html.
840         * tests/qwebpage/resources/index.html: Renamed from WebKit/qt/tests/qwebpage/frametest/index.html.
841         * tests/qwebpage/tst_qwebpage.cpp:
842         (tst_QWebPage::backActionUpdate):
843         (tst_QWebPage::frameAt):
844         (tst_QWebPage::errorPageExtensionInFrameset):
845         (tst_QWebPage::screenshot):
846         * tests/qwebpage/tst_qwebpage.qrc:
847         * tests/qwebplugindatabase/qwebplugindatabase.pro:
848         * tests/qwebview/qwebview.pro:
849         * tests/qwebview/resources/frame_a.html: Renamed from WebKit/qt/tests/qwebview/data/frame_a.html.
850         * tests/qwebview/resources/index.html: Renamed from WebKit/qt/tests/qwebview/data/index.html.
851         * tests/qwebview/tst_qwebview.cpp:
852         (tst_QWebView::reusePage):
853         (tst_QWebView::crashTests):
854         * tests/qwebview/tst_qwebview.qrc:
855         * tests/resources/image2.png: Renamed from WebKit/qt/tests/qwebframe/resources/image2.png.
856         * tests/tests.pri: Added.
857         * tests/tests.pro:
858
859 2009-12-18  Ariya Hidayat  <ariya.hidayat@gmail.com>
860
861         Build fix, not reviewed.
862
863         * QtLauncher/main.cpp:
864         (MainWindow::setTouchMocking): Leave setTouchMocking as an empty
865         function for Qt < 4.6 so that moc still creates a slot for that.
866         Otherwise, it would have generated a linker error.
867
868 2009-12-18  Adam Roben  <aroben@apple.com>
869
870         Qt build fix
871
872         * Api/qwebpage.cpp: Added #include.
873
874 2009-12-18  Adam Roben  <aroben@apple.com>
875
876         Qt build fix
877
878         * Api/qwebpage.cpp:
879         Added #includes.
880
881 2009-12-18  Joe Ligman  <joseph.ligman@nokia.com>
882
883         Reviewed by Kenneth Rohde Christiansen.
884
885         [Qt] Add new API to QWebFrame to scrollRecursively starting with any css overflow 
886         then checking current frame and then ancestors
887         https://bugs.webkit.org/show_bug.cgi?id=32668
888
889         * Api/qwebframe.cpp:
890         (QWebFramePrivate::scrollOverflow):
891         (QWebFrame::scrollRecursively):
892         * Api/qwebframe.h:
893         * Api/qwebframe_p.h:
894         * tests/qwebframe/qwebframe.qrc:
895         * tests/qwebframe/testiframe.html: Added.
896         * tests/qwebframe/testiframe2.html: Added.
897         * tests/qwebframe/tst_qwebframe.cpp:
898
899 2009-12-18  Simon Hausmann  <simon.hausmann@nokia.com>
900
901         Reviewed by Tor Arne Vestbø.
902
903         [Qt] Fix infinite recursion in touch mocking.
904
905         Don't send the fake touch events to the view, as that'll trigger the
906         event filter again.
907
908         * QtLauncher/main.cpp:
909         (MainWindow::sendTouchEvent):
910
911 2009-12-17  Benjamin Poulain  <benjamin.poulain@nokia.com>
912
913         Reviewed by Simon Hausmann.
914
915         [Qt] Add support for mocking touch events with Q(GV)Launcher
916         https://bugs.webkit.org/show_bug.cgi?id=32434
917
918         The event delivery should go through QCoreApplication::sendEvent()
919
920         * QtLauncher/main.cpp:
921         (MainWindow::sendTouchEvent):
922
923 2009-12-17  Kim Grönholm  <kim.gronholm@nomovok.com>
924
925         Reviewed by Simon Hausmann.
926
927         [Qt] Add support for touch events in QWebView and QGraphicsWebView
928         https://bugs.webkit.org/show_bug.cgi?id=32432
929
930         * Api/qgraphicswebview.cpp:
931         (QGraphicsWebView::QGraphicsWebView):
932         (QGraphicsWebView::sceneEvent):
933         * Api/qwebview.cpp:
934         (QWebView::QWebView):
935         (QWebView::event):
936
937 2009-12-17  Kim Grönholm  <kim.gronholm@nomovok.com>
938
939         Reviewed by Simon Hausmann.
940
941         [Qt] Add support for mocking touch events with QtLauncher
942         https://bugs.webkit.org/show_bug.cgi?id=32434
943
944         * QtLauncher/main.cpp:
945         (MainWindow::MainWindow):
946         (MainWindow::sendTouchEvent):
947         (MainWindow::eventFilter):
948         (MainWindow::setTouchMocking):
949         (MainWindow::setupUI):
950
951 2009-12-14  Holger Hans Peter Freyther  <zecke@selfish.org>
952
953         Reviewed by Kenneth Rohde Christiansen.
954
955         [Qt] Fix JavaScript prompt behavior for empty/null strings.
956         https://bugs.webkit.org/show_bug.cgi?id=30914
957
958         The patch is based on the work done by Gupta Manish.
959
960         In the default implementation of the JavaScript prompt
961         we are using a QInputDialog to get the text and this has
962         one quirk with regard to not entering any text.
963
964         In other WebKit ports and in Firefox an empty string is
965         returned but in the Qt case it is a null string.
966
967         Change the API documentation in QWebPage to mention we want to
968         have a non null string but do the fixup in the ChromeClientQt
969         to support existing code.
970
971         * Api/qwebpage.cpp:
972         (QWebPage::javaScriptPrompt): Change API documentation
973         * WebCoreSupport/ChromeClientQt.cpp:
974         (WebCore::ChromeClientQt::runJavaScriptPrompt): Fixup null QString
975
976 2009-11-24  Holger Hans Peter Freyther  <zecke@selfish.org>
977
978         Reviewed by Simon Hausmann.
979
980         [Qt] Do not disable the inspector on show and hide
981         https://bugs.webkit.org/show_bug.cgi?id=31851
982
983         On Qt/X11 with some window managers the window will be
984         hidden when switching windows. In this case all the results
985         are gone when coming back to the window.
986
987         Attempt to use the CloseEvent to figure out if the window
988         was closed and withdrawn as this is more friendly to the
989         user of the inspector client.
990
991         * Api/qwebinspector.cpp:
992         (QWebInspector::hideEvent):
993         (QWebInspector::closeEvent):
994         * Api/qwebinspector.h:
995
996 2009-12-14  Benjamin Poulain  <benjamin.poulain@nokia.com>
997
998         Reviewed by Kenneth Rohde Christiansen.
999
1000         [Qt] Improve the autotests of QtWebkit
1001         https://bugs.webkit.org/show_bug.cgi?id=32216
1002
1003         Refactor tst_qwebelement to remove the qWait()
1004
1005         * tests/qwebelement/tst_qwebelement.cpp:
1006         (tst_QWebElement::style):
1007
1008 2009-12-14  Andreas Kling  <andreas.kling@nokia.com>
1009
1010         Reviewed by Simon Hausmann.
1011
1012         Fix the QWebPage inputMethods() autotest after r51758
1013         to compare the Qt::ImFont property's family against an explicitly
1014         previously configured family.
1015
1016         https://bugs.webkit.org/show_bug.cgi?id=32491
1017
1018         * tests/qwebpage/tst_qwebpage.cpp:
1019         (tst_QWebPage::inputMethods):
1020
1021 2009-12-13  Sam Weinig  <sam@webkit.org>
1022
1023         Reviewed by Dan Bernstein.
1024
1025         Fix for https://bugs.webkit.org/show_bug.cgi?id=32499
1026         Add client based Geolocation provider
1027
1028         Add first cut of a client based Geolocation provider. This is guarded by
1029         ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a
1030         GeolocationControllerClient interface that no-one currently implements,
1031         but will in a subsequent patch.
1032
1033         * Api/qwebpage.cpp:
1034         (QWebPagePrivate::QWebPagePrivate):
1035
1036 2009-12-13  Benjamin Poulain  <benjamin.poulain@nokia.com>
1037
1038         Reviewed by Simon Hausmann.
1039
1040         Add a test in Qt for https://bugs.webkit.org/show_bug.cgi?id=29005
1041         https://bugs.webkit.org/show_bug.cgi?id=29008
1042
1043         * tests/qwebframe/tst_qwebframe.cpp:
1044
1045 2009-12-13  Simon Hausmann  <hausmann@webkit.org>
1046
1047         Reviewed by Holger Freyther.
1048
1049         [Qt] Re-enable QWebView::renderHints property for Qt for Symbian
1050
1051         https://bugs.webkit.org/show_bug.cgi?id=28273
1052
1053         The bug in Qt's moc that triggered a linking error when declaring this
1054         property has been fixed and we can remove the workaround.
1055
1056         * Api/qwebview.h:
1057
1058 2009-12-11  Yael Aharon  <yael.aharon@nokia.com>
1059
1060         Unreviewed build fix for Qt versions < 4.6.
1061
1062         * tests/qwebframe/tst_qwebframe.cpp:
1063         * tests/qwebview/tst_qwebview.cpp:
1064         (tst_QWebView::reusePage):
1065
1066 2009-12-11  Girish Ramakrishnan  <girish@forwardbias.in>
1067
1068         Reviewed by Tor Arne Vestbø.
1069
1070         [Qt] Updated QWebElement documentation
1071         
1072         findAll() returns a QWebElementCollection, not QList<QWebElement>.
1073
1074         * docs/webkitsnippets/webelement/main.cpp:
1075         (findAll):
1076
1077 2009-12-11  Simon Hausmann  <hausmann@webkit.org>, Kim Grönholm  <kim.gronholm@nomovok.com>
1078
1079         Reviewed by Antti Koivisto.
1080
1081         Forward Qt touch events to the event handler as platform touch events.
1082
1083         https://bugs.webkit.org/show_bug.cgi?id=32114
1084
1085         * Api/qwebpage.cpp:
1086         (QWebPagePrivate::touchEvent):
1087         (QWebPage::event):
1088         * Api/qwebpage_p.h:
1089
1090 2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
1091
1092         Reviewed by Kenneth Rohde Christiansen.
1093
1094         [Qt] Improve the autotests of QtWebkit
1095         https://bugs.webkit.org/show_bug.cgi?id=32216
1096
1097         Remove the calls to qWait() of the autotest of QWebView
1098
1099         * tests/qwebview/tst_qwebview.cpp:
1100         (tst_QWebView::reusePage):
1101
1102 2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
1103
1104         Reviewed by Kenneth Rohde Christiansen.
1105
1106         [Qt] Improve the autotests of QtWebkit
1107         https://bugs.webkit.org/show_bug.cgi?id=32216
1108
1109         Refactor tst_qwebframe to remove qWait() and use
1110         the function waitForSignal() from util.h
1111
1112         * tests/qwebframe/tst_qwebframe.cpp:
1113
1114 2009-12-07  Benjamin Poulain  <benjamin.poulain@nokia.com>
1115
1116         Reviewed by Kenneth Rohde Christiansen.
1117
1118         [Qt] Improve the autotests of QtWebkit
1119         https://bugs.webkit.org/show_bug.cgi?id=32216
1120
1121         Refactor the test of QGraphicsWebView:
1122         -make waitForSignal() available to all the tests.
1123         -remove QTest::qWait()
1124
1125         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1126         (tst_QGraphicsWebView::crashOnViewlessWebPages):
1127         * tests/util.h:
1128         (waitForSignal):
1129
1130 2009-12-07  Girish Ramakrishnan  <girish@forwardbias.in>
1131
1132         Reviewed by Simon Hausmann.
1133
1134         [Qt] Plugins: Force windowless mode when there is no native window handle
1135         
1136         Inject wmode=opaque while instantiating the plugin for the case when the
1137         webpage is not backed by a native window handle.
1138         
1139         https://bugs.webkit.org/show_bug.cgi?id=32059
1140
1141         * WebCoreSupport/FrameLoaderClientQt.cpp:
1142         (WebCore::FrameLoaderClientQt::createPlugin):
1143
1144 2009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1145
1146         Reviewed by Kenneth Rohde Christiansen.
1147
1148         [Qt] Corrects QtLauncher style
1149
1150         * QtLauncher/main.cpp:
1151         (WebPage::acceptNavigationRequest):
1152         (MainWindow::MainWindow):
1153         (MainWindow::webPage):
1154         (MainWindow::webView):
1155         (MainWindow::changeLocation):
1156         (MainWindow::loadFinished):
1157         (MainWindow::showLinkHover):
1158         (MainWindow::zoomIn):
1159         (MainWindow::zoomOut):
1160         (MainWindow::print):
1161         (MainWindow::setEditable):
1162         (MainWindow::dumpHtml):
1163         (MainWindow::selectElements):
1164         (MainWindow::newWindow):
1165         (MainWindow::setupUI):
1166         (WebPage::createWindow):
1167         (WebPage::createPlugin):
1168         (main):
1169
1170 2009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1171
1172         Reviewed by Kenneth Rohde Christiansen.
1173
1174         [Qt] QtLauncher: add a menu to show or hide the web inspector.
1175         https://bugs.webkit.org/show_bug.cgi?id=32149
1176
1177         * QtLauncher/main.cpp:
1178         (WebInspector::WebInspector):
1179         (WebInspector::showEvent):
1180         (WebInspector::hideEvent):
1181         (MainWindow::MainWindow):
1182         (MainWindow::setupUI):
1183
1184 2009-12-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1185
1186         Reviewed by Antti Koivisto.
1187
1188         Split out the renderPrivate in two methods, one for working on
1189         relative coordinates (relative to the viewport) and one for
1190         working on absolute coordinates. The latter is more effecient
1191         for implementing tiling, as you don't need translate the coords,
1192         and because it avoid clipping to the viewport.
1193
1194         No behaviour changes, so no new tests.
1195
1196         * Api/qwebframe.cpp:
1197         (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
1198         (QWebFramePrivate::renderRelativeCoords):
1199         (QWebFrame::render):
1200         * Api/qwebframe_p.h:
1201
1202 2009-12-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1203
1204         Reviewed by Simon Hausmann.
1205
1206         [Qt] Allow removing 'qrc' as a local security origin scheme
1207
1208         * tests/qwebpage/tst_qwebpage.cpp:
1209
1210 2009-12-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1211
1212         Reviewed by Simon Hausmann.
1213
1214         [Qt] Clean up argument parsing in the QtLauncher
1215
1216         * QtLauncher/main.cpp:
1217
1218 2009-12-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1219
1220         Reviewed by Kenneth Rohde Christiansen.
1221
1222         [Qt] Prevent the inspector from closing its wrapping widget.
1223         This is not necessary anymore since we now hide the embedded
1224         close button.
1225         https://bugs.webkit.org/show_bug.cgi?id=32149
1226
1227         * WebCoreSupport/InspectorClientQt.cpp:
1228         (WebCore::InspectorClientQt::showWindow):
1229         (WebCore::InspectorClientQt::closeWindow):
1230
1231 2009-12-03  İsmail Dönmez  <ismail@namtrac.org>
1232
1233         Reviewed by Eric Seidel.
1234
1235         Fix compilation when SVG is disabled.
1236
1237         * Api/qwebframe.cpp:
1238         (qt_drt_pauseSVGAnimation):
1239
1240 2009-12-03  Brady Eidson  <beidson@apple.com>
1241
1242         Reviewed by Sam Weinig.
1243
1244         <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
1245
1246         * WebCoreSupport/FrameLoaderClientQt.cpp:
1247         (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
1248         (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
1249         (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
1250         * WebCoreSupport/FrameLoaderClientQt.h:
1251
1252 2009-12-03  Pavel Feldman  <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
1253
1254         Reviewed by Timothy Hatcher.
1255
1256         Web Inspector: Simplify the settings support in inspector controller.
1257
1258         https://bugs.webkit.org/show_bug.cgi?id=32076
1259
1260         * WebCoreSupport/InspectorClientQt.cpp:
1261         (WebCore::InspectorClientQt::populateSetting):
1262         (WebCore::InspectorClientQt::storeSetting):
1263         (WebCore::variantToSetting):
1264         (WebCore::settingToVariant):
1265         * WebCoreSupport/InspectorClientQt.h:
1266
1267 2009-12-03  Ben Murdoch  <benm@google.com>
1268
1269         Reviewed by Brady Eidson.
1270
1271         [Android] The FrameLoaderClient is unaware of BackForwardList changes.
1272         https://bugs.webkit.org/show_bug.cgi?id=31914
1273
1274         * WebCoreSupport/FrameLoaderClientQt.cpp:
1275         (WebCore::FrameLoaderClientQt::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
1276         (WebCore::FrameLoaderClientQt::dispatchDidRemoveBackForwardItem): ditto.
1277         (WebCore::FrameLoaderClientQt::dispatchDidChangeBackForwardIndex): ditto.
1278         * WebCoreSupport/FrameLoaderClientQt.h:
1279
1280 2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
1281
1282         Not reviewed. Try to fix Qt build.
1283
1284         * Api/qwebframe.cpp:
1285         (qt_drt_pauseSVGAnimation):
1286
1287 2009-12-01  Nikolas Zimmermann  <nzimmermann@rim.com>
1288
1289         Reviewed by Simon Fraser.
1290
1291         Add SVG animation test framework with 'snapshot' functionality
1292         https://bugs.webkit.org/show_bug.cgi?id=31897
1293
1294         Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
1295         forwarding the call to SVGDocumentExtensions, if SVG is enabled.
1296
1297         Implemented just like the existing pauseAnimation* methods for CSS animations.
1298
1299         * Api/qwebframe.cpp:
1300         (qt_drt_pauseSVGAnimation):
1301
1302 2009-12-01  Daniel Bates  <dbates@webkit.org>
1303
1304         Reviewed by Kenneth Rohde Christiansen.
1305
1306         https://bugs.webkit.org/show_bug.cgi?id=31898
1307
1308         Makes QtLauncher default to the http scheme for URLs.
1309
1310         * QtLauncher/main.cpp:
1311         (MainWindow::MainWindow):
1312         (MainWindow::changeLocation):
1313         (main):
1314
1315 2009-11-30  Abhinav Mithal  <abhinav.mithal@nokia.com>
1316
1317         Reviewed by Simon Hausmann.
1318
1319         [Qt][Symbian] Report SymbianOS in user agent string for Symbian
1320         https://bugs.webkit.org/show_bug.cgi?id=31961
1321
1322         * Api/qwebpage.cpp:
1323         (QWebPage::userAgentForUrl):
1324
1325 2009-11-30  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1326
1327         Reviewed by Kenneth Rohde Christiansen.
1328
1329         [Qt] Fix minor waning in QtWebKit
1330         https://bugs.webkit.org/show_bug.cgi?id=31963
1331
1332         * tests/qwebpage/tst_qwebpage.cpp:
1333         (ErrorPage::extension): Remove info wariable as it is
1334         not used.
1335
1336 2009-11-28  Simon Hausmann  <simon.hausmann@nokia.com>
1337
1338         Reviewed by Kenneth Rohde Christiansen.
1339
1340         [Qt] SoftwareInputPanelRequest event sent when clicking in newly loaded page
1341
1342         https://bugs.webkit.org/show_bug.cgi?id=31401
1343
1344         Don't set the event unless there is a focused node we can use
1345         for editing afterwards.
1346
1347         * Api/qwebpage.cpp:
1348         (QWebPagePrivate::handleSoftwareInputPanel):
1349         * tests/qwebpage/tst_qwebpage.cpp:
1350         (tst_QWebPage::inputMethods):
1351
1352 2009-11-26  Simon Hausmann  <simon.hausmann@nokia.com>
1353
1354         Rubber-stamped by Holger Freyther.
1355
1356         Removed unused ICO image plugin handler.
1357
1358         * Plugins/ICOHandler.cpp: Removed.
1359         * Plugins/ICOHandler.h: Removed.
1360         * Plugins/Plugins.pro: Removed.
1361
1362 2009-11-12  Holger Hans Peter Freyther  <zecke@selfish.org>
1363
1364         Reviewed by Kenneth Rohde Christiansen.
1365
1366         [Qt] Do not show the QWidget when the WebCore::Widget is hidden
1367         https://bugs.webkit.org/show_bug.cgi?id=31203
1368
1369         The clipping code was making a QWidget visible even if the
1370         WebCore::Widget was hidden. Fix the bug by calling setVisible
1371         only if the WebCore::Widget Widget::isSelfVisible.
1372
1373         * WebCoreSupport/FrameLoaderClientQt.cpp:
1374         (WebCore::QtPluginWidget::show): Override WebCore::Widget::show to call handleVisibility
1375         (WebCore::QtPluginWidget::handleVisibility): New method to call setVisible when we are visible
1376         (FrameLoaderClientQt::createPlugin): Hide the QWidget by default
1377
1378 2009-11-23  David Boddie  <dboddie@trolltech.com>
1379
1380         Reviewed by Simon Hausmann.
1381
1382         Updated the QWebElement documentation with links to examples and
1383         external resources.
1384         Fixed the project file for the webelement snippet and tidied up the
1385         markers used for quoting the code.
1386
1387         * Api/qwebelement.cpp:
1388         * docs/webkitsnippets/webelement/main.cpp:
1389         (findAll):
1390         * docs/webkitsnippets/webelement/webelement.pro:
1391
1392 2009-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
1393
1394         Reviewed by Kenneth Rohde Christiansen.
1395
1396         [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
1397         the wrapped object died before the gc removed the instance.
1398
1399         https://bugs.webkit.org/show_bug.cgi?id=31681
1400
1401         Added a unit-test to verify that wrapping a QObject with the
1402         same identity as a previously but now dead object works.
1403
1404         * tests/qwebframe/tst_qwebframe.cpp:
1405
1406 2009-11-19  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1407
1408         Reviewed by Kenneth Rohde Christiansen.
1409
1410         [Qt] Add instantiation tests for QWebInspector.
1411
1412         * tests/qwebinspector/qwebinspector.pro: Added.
1413         * tests/qwebinspector/tst_qwebinspector.cpp: Added.
1414         (tst_QWebInspector::attachAndDestroy):
1415         * tests/tests.pro:
1416
1417 2009-11-19  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1418
1419         Reviewed by Kenneth Rohde Christiansen.
1420
1421         [Qt] Fix QWebInspector destruction problem.
1422         https://bugs.webkit.org/show_bug.cgi?id=31664
1423
1424         * Api/qwebpage.cpp:
1425         (QWebPage::~QWebPage):
1426
1427 2009-11-19  Olivier Goffart  <ogoffart@trolltech.com>
1428
1429         Reviewed by Simon Hausmann.
1430
1431         [Qt] Normalize signal and slot signatures.
1432
1433         * Api/qgraphicswebview.cpp:
1434         (QGraphicsWebView::setPage):
1435         * Api/qwebview.cpp:
1436         (QWebView::setPage):
1437         * WebCoreSupport/FrameLoaderClientQt.cpp:
1438         (WebCore::FrameLoaderClientQt::setFrame):
1439         * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
1440         (wrapInFunction):
1441         * tests/qwebframe/tst_qwebframe.cpp:
1442         * tests/qwebpage/tst_qwebpage.cpp:
1443         (tst_QWebPage::modified):
1444         (tst_QWebPage::database):
1445
1446 2009-11-18  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1447
1448         Reviewed by Kenneth Rohde Christiansen.
1449
1450         [Qt] Remove support for Qt v4.3 or older versions
1451         https://bugs.webkit.org/show_bug.cgi?id=29469
1452
1453         * Api/qcookiejar.cpp: Removed.
1454         * Api/qcookiejar.h: Removed.
1455         * Api/qgraphicswebview.cpp:
1456         (QGraphicsWebView::event):
1457         * Api/qwebframe.cpp:
1458         (QWebFrame::load):
1459         * Api/qwebframe.h:
1460         * Api/qwebkitglobal.h:
1461         * Api/qwebnetworkinterface.cpp: Removed.
1462         * Api/qwebnetworkinterface.h: Removed.
1463         * Api/qwebnetworkinterface_p.h: Removed.
1464         * Api/qwebpage.cpp:
1465         (QWebPagePrivate::QWebPagePrivate):
1466         (QWebPagePrivate::acceptNavigationRequest):
1467         (QWebPage::acceptNavigationRequest):
1468         (QWebPage::action):
1469         (QWebPage::userAgentForUrl):
1470         * Api/qwebpage.h:
1471         * Api/qwebpage_p.h:
1472         * Api/qwebview.cpp:
1473         (QWebView::load):
1474         (QWebView::event):
1475         * Api/qwebview.h:
1476         * QtLauncher/main.cpp:
1477         (MainWindow::print):
1478         (MainWindow::setupUI):
1479         (main):
1480         * WebCoreSupport/FrameLoaderClientQt.cpp:
1481         (WebCore::FrameLoaderClientQt::download):
1482         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1483         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1484         (WebCore::FrameLoaderClientQt::startDownload):
1485         (WebCore::FrameLoaderClientQt::createPlugin):
1486
1487 2009-11-18  Shu Chang  <Chang.Shu@nokia.com>
1488
1489         Reviewed by Eric Seidel.
1490
1491         [Qt] Add support for displaying deleteButton.
1492         https://bugs.webkit.org/show_bug.cgi?id=31560
1493
1494         Test: LayoutTests/editing/deleting/5408255.html
1495
1496         * Api/qwebsettings.cpp:
1497         (graphics):
1498         * Api/qwebsettings.h:
1499
1500 2009-11-18  Paul Olav Tvete  <paul.tvete@nokia.com>
1501
1502         Reviewed by Simon Hausmann.
1503
1504         [Qt] Make the QWebElement::render() test pass when pixmaps aren't 32 bit.
1505
1506         * tests/qwebelement/tst_qwebelement.cpp:
1507         (tst_QWebElement::render):
1508
1509 2009-11-18  Simon Hausmann  <simon.hausmann@nokia.com>
1510
1511         Reviewed by Tor Arne Vestbø.
1512
1513         Clarify and simplify the legal section in the overview documentation,
1514         after review with our legal team.
1515
1516         * docs/qtwebkit.qdoc:
1517
1518 2009-11-18  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1519
1520         Reviewed by Simon Hausmann.
1521
1522         [Qt] Add QtLauncher support for opening links in the default browser
1523
1524         This can be triggered by either the context menu or by clicking a link
1525         while holding down the Alt key. Opening a link in a new windows is
1526         triggered by holding down Shift.
1527
1528         * QtLauncher/main.cpp:
1529
1530 2009-11-17  Yael Aharon  <yael.aharon@nokia.com>
1531
1532         Reviewed by Kenneth Rohde Christiansen.
1533
1534         [Qt] QGLLauncher does not support drag&drop of local files
1535         https://bugs.webkit.org/show_bug.cgi?id=31057
1536
1537         Enable accepting files in QGraphicsWebView.
1538
1539         * Api/qgraphicswebview.cpp:
1540         (QGraphicsWebView::QGraphicsWebView):
1541         (QGraphicsWebView::dragEnterEvent):
1542
1543 2009-11-17  Antonio Gomes  <tonikitoo@webkit.org>
1544
1545         Reviewed by Kenneth Christiansen.
1546
1547         [Qt] better test coverage for ErrorPageExtension
1548         https://bugs.webkit.org/show_bug.cgi?id=31583
1549
1550         Improved the coverage of current ErrorPageExtension tests by
1551         adding autotests involving frameset and iframes.
1552
1553         * tests/qwebpage/tst_qwebpage.cpp:
1554         (ErrorPage::extension): Make the ErrorPageExtension
1555         to work for all frames, not only the main frame.
1556         (tst_QWebPage::errorPageExtension): Stop using
1557         the 'frameset.html' resouce in this method since
1558         an autotest specific for frameset's is being added.
1559         (tst_QWebPage::errorPageExtensionInIFrames): Added.
1560         (tst_QWebPage::errorPageExtensionInFrameset): Added.
1561
1562 2009-11-16  Simon Hausmann  <simon.hausmann@nokia.com>
1563
1564         Reviewed by Kenneth Rohde Christiansen.
1565
1566         API documentation fixes.
1567
1568         * Api/qgraphicswebview.cpp: Removed duplicate docs.
1569         * Api/qwebelement.cpp: Added missing docs.
1570         * Api/qwebsettings.cpp: Ditto.
1571
1572 2009-11-14  Antonio Gomes  <tonikitoo@webkit.org>
1573
1574         Reviewed by Antti Koivisto.
1575
1576         [Qt] Broken back/forward after using ErrorPageExtension to set error page
1577         https://bugs.webkit.org/show_bug.cgi?id=30573
1578
1579         Implemented autotests for covering the back/forward
1580         reset problem involving error pages.
1581
1582         * tests/qwebpage/tst_qwebpage.cpp:
1583         (tst_QWebPage::errorPageExtension):
1584
1585 2009-11-13  Adam Roben  <aroben@apple.com>
1586
1587         Update for changes to FrameLoaderClient
1588
1589         Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
1590         window objects in isolated worlds are cleared
1591
1592         Reviewed by Dave Hyatt.
1593
1594         * WebCoreSupport/FrameLoaderClientQt.cpp:
1595         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
1596         * WebCoreSupport/FrameLoaderClientQt.h:
1597         Replaced windowObjectCleared with this function. Does nothing if the
1598         passed-in world is not the mainThreadNormalWorld().
1599
1600 2009-11-13  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
1601
1602         Reviewed by Kenneth Rohde Christiansen.
1603
1604         [Qt] Enable Page Cache if setMaximumPagesInCache needs it.
1605         This fixes https://bugs.webkit.org/show_bug.cgi?id=31266.
1606
1607         * Api/qwebsettings.cpp:
1608         (QWebSettingsPrivate::apply):
1609         (QWebSettings::setMaximumPagesInCache):
1610
1611 2009-11-13  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1612
1613         Reviewed by Kenneth Rohde Christiansen.
1614
1615         [Qt] Fix initial QWebView focus behavior.
1616
1617         focusController->setFocused(true) was not always called.
1618         https://bugs.webkit.org/show_bug.cgi?id=31466
1619
1620         * Api/qwebpage.cpp:
1621         (QWebPagePrivate::focusInEvent):
1622
1623 2009-11-13  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1624
1625         Reviewed by Simon Hausmann.
1626
1627         Update documentation for the Qt API
1628
1629         * Api/qgraphicswebview.cpp:
1630         * Api/qwebelement.cpp:
1631         * Api/qwebframe.cpp:
1632         * Api/qwebsettings.cpp:
1633         * Api/qwebview.cpp:
1634
1635 2009-11-13  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1636
1637         Reviewed by Simon Hausmann.
1638
1639         Use correct install-path when running qdoc3
1640
1641         * docs/docs.pri:
1642
1643 2009-11-12  Shinichiro Hamaji  <hamaji@chromium.org>
1644
1645         Reviewed by Darin Adler.
1646
1647         externalRepresentation should take Frame as the argument
1648         https://bugs.webkit.org/show_bug.cgi?id=31393
1649
1650         No new tests as this is just a refactoring.
1651
1652         * Api/qwebframe.cpp:
1653         (QWebFrame::renderTreeDump):
1654
1655 2009-11-12  Antonio Gomes  <tonikitoo@webkit.org>
1656
1657         Reviewed by Jan Alonzo.
1658
1659         [Qt] Various doc fixes
1660         https://bugs.webkit.org/show_bug.cgi?id=31358
1661
1662         QWebPage's constructor docs are mentioning "QWebView":
1663         "Constructs an empty QWebView with parent".
1664
1665         * Api/qwebpage.cpp:
1666
1667 2009-11-12  Benjamin Poulain  <benjamin.poulain@nokia.com>
1668
1669         Reviewed by Kenneth Rohde Christiansen.
1670
1671         Custom printing shrink factors
1672         https://bugs.webkit.org/show_bug.cgi?id=29042
1673
1674         This reverts commit r49769. The public API for this needs to be reviewed
1675         before its inclusion in Qt.
1676
1677         * Api/qwebsettings.cpp:
1678         (QWebSettingsPrivate::apply):
1679         (QWebSettings::QWebSettings):
1680         * Api/qwebsettings.h:
1681
1682 2009-11-11  Antonio Gomes  <tonikitoo@webkit.org>
1683
1684         Reviewed by Kenneth Christiansen.
1685
1686         [Qt] Various doc fixes
1687         https://bugs.webkit.org/show_bug.cgi?id=31358
1688
1689         Fixed wrong documentation: item's dimensions do fit to Web page
1690         content by default.
1691
1692         Kenneth agreed to land this as a followup patch to the
1693         just landed documentation patch.
1694
1695         * Api/qgraphicswebview.cpp:
1696
1697 2009-11-11  David Boddie  <dboddie@trolltech.com>
1698
1699         Reviewed by Kenneth Christiansen.
1700
1701         [Qt] Various doc fixes
1702         https://bugs.webkit.org/show_bug.cgi?id=31323
1703
1704         Fixed and synchronized QWebView related documentation.
1705
1706         * Api/qgraphicswebview.cpp:
1707         * Api/qwebview.cpp:
1708
1709 2009-11-11  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1710
1711         Unreviewed buildbot fix.
1712
1713         Export a method to the DRT to know if the document has a
1714         document element.
1715
1716         * Api/qwebframe.cpp:
1717         (qt_drt_hasDocumentElement):
1718
1719 2009-11-11  Liang QI  <liang.qi@nokia.com>
1720
1721         [Qt] Fix tst_qwebpage and tst_qwebframe compilation on Symbian.
1722
1723         * tests/qwebframe/qwebframe.pro:
1724         * tests/qwebframe/tst_qwebframe.cpp:
1725         * tests/qwebpage/qwebpage.pro:
1726         * tests/qwebpage/tst_qwebpage.cpp:
1727
1728 2009-11-11  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1729
1730         Reviewed by Simon Hausmann.
1731
1732         Fix a crash in the layout test plugins/document-open.html
1733
1734         * Api/qwebframe.cpp:
1735         (QWebFrame::toPlainText):
1736
1737 2009-11-11  Warwick Allison  <warwick.allison@nokia.com>, Simon Hausmann  <simon.hausmann@nokia.com>
1738
1739         Reviewed by Tor Arne Vestbø.
1740
1741         [Qt] Regression: Preserve the parent of plugin objects when using
1742         QtWebKit with only a QWebPage.
1743
1744         * WebCoreSupport/FrameLoaderClientQt.cpp:
1745         (WebCore::FrameLoaderClientQt::createPlugin): Don't reparent
1746         plugins to 0.
1747         * tests/qwebpage/tst_qwebpage.cpp:
1748         (PluginCounterPage::PluginCounterPage): Initialize m_pluginParent to 0.
1749         (PluginCounterPage::~PluginCounterPage): Delete the plugin parent later
1750         (after the page)
1751         (PluginTracerPage::createPlugin): Assign a dummy parent to the plugin.
1752         (PluginTracerPage::PluginTracerPage): Set up the plugin parent.
1753         (tst_QWebPage::createViewlessPlugin): Verify that for viewless pages the
1754         plugin parent remains unchanged.
1755
1756 2009-11-11  David Boddie  <dboddie@trolltech.com>
1757
1758         [Qt] Doc: Added internal or hidden placeholder documentation.
1759
1760         * Api/qwebpage.cpp:
1761
1762 2009-11-11  Martin Smith  <msmith@trolltech.com>
1763
1764         [Qt] doc: Changed Trolltech to Nokia
1765
1766         * Api/qwebview.cpp:
1767
1768 2009-11-11  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1769
1770         Reviewed by Kenneth Rohde Christiansen.
1771
1772         https://bugs.webkit.org/show_bug.cgi?id=31323
1773         Fix a few compiler warnings
1774
1775         * tests/qwebframe/tst_qwebframe.cpp: Add extra brackets 
1776         to make it explicit where the else case belongs
1777
1778 2009-11-11  Simon Hausmann  <simon.hausmann@nokia.com>
1779
1780         Reviewed by Tor Arne Vestbø.
1781
1782         Fix enabling of software input panel when activating editable elements
1783         in QGraphicsWebView.
1784
1785         * Api/qgraphicswebview.cpp:
1786         (QGraphicsWebViewPrivate::inputMethodEnabled): Implement method to
1787         query for input method support.
1788         * Api/qwebpage.cpp:
1789         (QWebPageWidgetClient::inputMethodEnabled): Ditto for QWidget.
1790         (QWebPagePrivate::handleSoftwareInputPanel): Don't use view() to
1791         test for input method support. Instead query using QWebPageClient
1792         and send the SIPR event to the ownerWidget() instead of the view().
1793         The latter is null for QGraphicsWebView.
1794         * tests/qwebpage/tst_qwebpage.cpp:
1795         (EventSpy::EventSpy):
1796         (EventSpy::eventFilter):
1797         (tst_QWebPage::inputMethods): Modify the test to verify that SIPR
1798         events are dispatched when activating focusable content.
1799
1800 2009-11-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1801
1802         Unreviewed documentation fixes.
1803
1804         Added a few improvements from Jocelyn Turcotte to the
1805         createWindow docs.
1806
1807         * Api/qwebview.cpp:
1808
1809 2009-11-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1810
1811         Unreviewed documentation fix.
1812
1813         [Qt] Make qwebpage's createWindow not qwebview dependent.
1814         https://bugs.webkit.org/show_bug.cgi?id=30771
1815
1816         Update documentation to make it clear that a reimplementation
1817         of the createWindow method of the associated QWebPage can
1818         result in the QWebView::createWindow method to never be called.
1819
1820         * Api/qwebview.cpp:
1821
1822 2009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1823
1824         Reviewed by Kenneth Rohde Christiansen.
1825
1826         [Qt] Few classes have virtual functions but non-virtual destructor
1827         https://bugs.webkit.org/show_bug.cgi?id=31269
1828
1829         * Api/qgraphicswebview.cpp:
1830         (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): Add virtual
1831         destructor.
1832
1833 2009-11-09  Benjamin Poulain  <benjamin.poulain@nokia.com>
1834
1835         Reviewed by Kenneth Rohde Christiansen.
1836
1837         https://bugs.webkit.org/show_bug.cgi?id=30628
1838         Add an API to get all the attributes from a QWebElement.
1839
1840         * Api/qwebelement.cpp:
1841         (QWebElement::attributesName):
1842         * Api/qwebelement.h:
1843         * tests/qwebelement/tst_qwebelement.cpp:
1844         (tst_QWebElement::listAttributes):
1845
1846 2009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1847
1848         Reviewed by Kenneth Rohde Christiansen.
1849
1850         Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
1851         https://bugs.webkit.org/show_bug.cgi?id=31040
1852
1853         * Api/qwebpage.cpp:
1854         (QWebPagePrivate::handleScrolling):
1855
1856 2009-11-09  Mark Mentovai  <mark@chromium.org>
1857
1858         Reviewed by Dan Bernstein.
1859
1860         Track "can have scrollbar" state within FrameView independently of the
1861         individual scrollbar states in ScrollView.
1862
1863         rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
1864         REGRESSION (r48064): mint.com loses scrollbars after coming out of
1865         edit mode.
1866
1867         rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
1868         REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
1869
1870         Test: fast/overflow/scrollbar-restored.html
1871
1872         * Api/qwebframe.cpp:
1873         (QWebFrame::setScrollBarPolicy):
1874
1875 2009-11-09  Benjamin Poulain  <benjamin.poulain@nokia.com>
1876
1877         Reviewed by Kenneth Rohde Christiansen.
1878
1879         https://bugs.webkit.org/show_bug.cgi?id=30772
1880         Add a non-const iterator to QWebElementCollection.
1881         Move the two attributes of the iterator to private.
1882
1883         * Api/qwebelement.h:
1884         (const_iterator::begin):
1885         (const_iterator::end):
1886         (const_iterator::constBegin):
1887         (const_iterator::constEnd):
1888         (const_iterator::iterator::iterator):
1889         (const_iterator::iterator::operator*):
1890         (const_iterator::iterator::operator==):
1891         (const_iterator::iterator::operator!=):
1892         (const_iterator::iterator::operator<):
1893         (const_iterator::iterator::operator<=):
1894         (const_iterator::iterator::operator>):
1895         (const_iterator::iterator::operator>=):
1896         (const_iterator::iterator::operator++):
1897         (const_iterator::iterator::operator--):
1898         (const_iterator::iterator::operator+=):
1899         (const_iterator::iterator::operator-=):
1900         (const_iterator::iterator::operator+):
1901         (const_iterator::iterator::operator-):
1902         * tests/qwebelement/tst_qwebelement.cpp:
1903         (tst_QWebElement::nonConstIterator):
1904         (tst_QWebElement::constIterator):
1905
1906 2009-11-09  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1907
1908         Reviewed by Kenneth Christiansen.
1909
1910         [Qt] Remove the sessionStorage setting (per Page)
1911         https://bugs.webkit.org/show_bug.cgi?id=31249
1912
1913         This setting allows to run sessionStorage on/off on a per page
1914         basis. Remove this prematurely exposed API.
1915
1916         * Api/qwebsettings.cpp:
1917         (QWebSettingsPrivate::apply):
1918         (QWebSettings::QWebSettings):
1919         * tests/qwebpage/tst_qwebpage.cpp:
1920         (tst_QWebPage::database):
1921         (tst_QWebPage::testOptionalJSObjects):
1922
1923 2009-11-09  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1924
1925         Reviewed by Simon Hausmann.
1926
1927         [Qt] Remove the QWebPage:webInspectorTriggered signal.
1928         User customization of the communication between QWebPage
1929         and QWebInspector will be properly designed in the next version.
1930         https://bugs.webkit.org/show_bug.cgi?id=30773
1931
1932         * Api/qwebinspector.cpp:
1933         * Api/qwebpage.cpp:
1934         (QWebPagePrivate::getOrCreateInspector):
1935         (QWebPage::triggerAction):
1936         * Api/qwebpage.h:
1937         * QtLauncher/main.cpp:
1938         (MainWindow::MainWindow):
1939
1940 2009-11-05  Simon Hausmann  <hausmann@webkit.org>
1941
1942         Reviewed by Tor Arne Vestbø.
1943
1944         Added a missing re-implementation of QGraphicsItem::inputMethodQuery().
1945
1946         * Api/qgraphicswebview.cpp:
1947         (QGraphicsWebView::inputMethodQuery):
1948         * Api/qgraphicswebview.h:
1949
1950 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
1951
1952         Reviewed by Tor Arne Vestbø.
1953
1954         Provide a dummy re-implementation of QGraphicsLayoutItem::sizeHint(),
1955         similar to QWebView.
1956
1957         * Api/qgraphicswebview.cpp:
1958         (QGraphicsWebView::sizeHint):
1959         * Api/qgraphicswebview.h:
1960
1961 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
1962
1963         Reviewed by Tor Arne Vestbø.
1964
1965         Removed zoomFactoryChanged() signal and added
1966         linkClicked() to QGraphicsWebView, for consistency with
1967         QWebView.
1968
1969         * Api/qgraphicswebview.cpp:
1970         (QGraphicsWebView::setPage):
1971         (QGraphicsWebView::setZoomFactor):
1972         * Api/qgraphicswebview.h:
1973
1974 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
1975
1976         Reviewed by Tor Arne Vestbø.
1977
1978         Added QGraphicsWebView::findText() for convenience and consistency
1979         with QWebView.
1980
1981         * Api/qgraphicswebview.cpp:
1982         (QGraphicsWebView::findText):
1983         * Api/qgraphicswebview.h:
1984
1985 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
1986
1987         Reviewed by Tor Arne Vestbø.
1988
1989         Added QGraphicsWebView::pageAction() and triggerPageAction(), for
1990         consistency with QWebView.
1991
1992         * Api/qgraphicswebview.cpp:
1993         (QGraphicsWebView::pageAction):
1994         (QGraphicsWebView::triggerPageAction):
1995         * Api/qgraphicswebview.h:
1996
1997 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
1998
1999         Reviewed by Tor Arne Vestbø.
2000
2001         Removed QGraphicsWebView::toHtml() after API review.
2002
2003         That's consistent with QWebView and also based on the assumption that
2004         toHtml() is called less frequently than setHtml().
2005
2006         * Api/qgraphicswebview.cpp:
2007         * Api/qgraphicswebview.h:
2008         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2009         (tst_QGraphicsWebView::qgraphicswebview):
2010
2011 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
2012
2013         Reviewed by Tor Arne Vestbø.
2014
2015         Removed the interactive property of QGraphicsWebView.
2016
2017         There are clearly use-cases for this feature, but it will require
2018         more work to make this fully work with an enum to have fine-grained
2019         control over the interactivity levels. For now it is easy to achieve
2020         in user-code what the boolean property did.
2021
2022         * Api/qgraphicswebview.cpp:
2023         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
2024         (QGraphicsWebView::hoverMoveEvent):
2025         (QGraphicsWebView::mouseMoveEvent):
2026         (QGraphicsWebView::mousePressEvent):
2027         (QGraphicsWebView::mouseReleaseEvent):
2028         (QGraphicsWebView::mouseDoubleClickEvent):
2029         (QGraphicsWebView::keyPressEvent):
2030         (QGraphicsWebView::keyReleaseEvent):
2031         (QGraphicsWebView::dragLeaveEvent):
2032         (QGraphicsWebView::dragMoveEvent):
2033         (QGraphicsWebView::dropEvent):
2034         (QGraphicsWebView::wheelEvent):
2035         (QGraphicsWebView::inputMethodEvent):
2036         * Api/qgraphicswebview.h:
2037         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2038         (tst_QGraphicsWebView::qgraphicswebview):
2039
2040 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
2041
2042         Reviewed by Tor Arne Vestbø.
2043
2044         Make the QGraphicsWebView constructor explicit.
2045
2046         * Api/qgraphicswebview.h:
2047
2048 2009-11-05  Shu Chang  <Chang.Shu@nokia.com>
2049
2050         Reviewed by Tor Arne Vestbø.
2051
2052         Add support for Shift-PageUp and Shift-PageDown key events.
2053         https://bugs.webkit.org/show_bug.cgi?id=31166
2054
2055         Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html
2056
2057         * WebCoreSupport/EditorClientQt.cpp:
2058         (WebCore::EditorClientQt::handleKeyboardEvent):
2059
2060 2009-11-05  Simon Hausmann  <hausmann@webkit.org>
2061
2062         Last Qt 4.5 build fix (*sigh*)
2063
2064         * tests/qwebpage/tst_qwebpage.cpp:
2065         (inputMethodHints): inputMethodHints() is only used for 
2066         Qt 4.6, so guard the whole function.
2067
2068 2009-11-05  Simon Hausmann  <hausmann@webkit.org>
2069
2070         Another prospective build fix against Qt 4.5 (build bot)
2071
2072         Don't compile & run the QGraphicsWebView portion of the
2073         input methods auto test with Qt 4.5.
2074
2075         * tests/qwebpage/tst_qwebpage.cpp:
2076         (tst_QWebPage::inputMethods_data):
2077         (inputMethodHints):
2078         (inputMethodEnabled):
2079         (tst_QWebPage::inputMethods):
2080
2081 2009-11-05  Simon Hausmann  <hausmann@webkit.org>
2082
2083         Prospective build fix against Qt 4.5 (build bot)
2084
2085         * Api/qgraphicswebview.cpp:
2086         (QGraphicsWebViewPrivate::setInputMethodEnabled): Guard the
2087         use of Qt 4.6 specific API with #ifdefs.
2088
2089 2009-11-01  Simon Hausmann  <hausmann@webkit.org>
2090
2091         Reviewed by Kenneth Christiansen.
2092
2093         [Qt] Fix enabling of input method support on QGraphicsWebView.
2094         https://bugs.webkit.org/show_bug.cgi?id=30605
2095
2096         Instead of setting the unsupported widget attribute on the
2097         QGraphicsWidget in setInputMethodEnabled() set the 
2098         ItemAcceptsInputMethod GraphicsItem flag directly.
2099
2100         Changed the existing input method auto test to run once
2101         on a QWebView and once on a QGraphicsWebView.
2102
2103         * Api/qgraphicswebview.cpp:
2104         (QGraphicsWebViewPrivate::setInputMethodEnabled):
2105         * tests/qwebpage/tst_qwebpage.cpp:
2106         (tst_QWebPage::inputMethods_data):
2107         (inputMethodHints):
2108         (inputMethodEnabled):
2109         (tst_QWebPage::inputMethods):
2110
2111 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
2112
2113         Reviewed by Kenneth Christiansen.
2114
2115         Added QGraphicsWebView::modified property, for consistency
2116         with QWebView.
2117
2118         * Api/qgraphicswebview.cpp:
2119         (QGraphicsWebView::isModified):
2120         * Api/qgraphicswebview.h:
2121         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2122         (tst_QGraphicsWebView::qgraphicswebview):
2123
2124 2009-11-04  Simon Hausmann  <hausmann@webkit.org>
2125
2126         Reviewed by Kenneth Christiansen.
2127
2128         Removed status and progress properties of QGraphicsWebView.
2129         Added loadProgress and statusBarMessage signals instead,
2130         after API review.
2131
2132         * Api/qgraphicswebview.cpp:
2133         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
2134         (QGraphicsWebView::setPage):
2135         * Api/qgraphicswebview.h:
2136         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2137         (tst_QGraphicsWebView::qgraphicswebview):
2138
2139 2009-11-04  Yael Aharon  <yael.aharon@nokia.com>
2140
2141         Reviewed by Simon Hausmann.
2142
2143         [Qt] REGRESSION: Allow applications to use their own QWidget bypassing QWebView.
2144         https://bugs.webkit.org/show_bug.cgi?id=30979
2145
2146         Decouple QWebViewPrivate from QWebPageClient, and automatically create
2147         QWebPageWidgetClient whenever the view is QWidget based.
2148
2149         * Api/qwebpage.cpp:
2150         (QWebPageWidgetClient::QWebPageWidgetClient):
2151         (QWebPageWidgetClient::scroll):
2152         (QWebPageWidgetClient::update):
2153         (QWebPageWidgetClient::setInputMethodEnabled):
2154         (QWebPageWidgetClient::setInputMethodHint):
2155         (QWebPageWidgetClient::cursor):
2156         (QWebPageWidgetClient::updateCursor):
2157         (QWebPageWidgetClient::palette):
2158         (QWebPageWidgetClient::screenNumber):
2159         (QWebPageWidgetClient::ownerWidget):
2160         (QWebPageWidgetClient::pluginParent):
2161         (QWebPage::setView):
2162         * Api/qwebview.cpp:
2163         (QWebView::~QWebView):
2164         (QWebView::setPage):
2165         (QWebView::event):
2166
2167 2009-11-03  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
2168
2169         Reviewed by Simon Hausmann.
2170
2171         [Qt] Fix build of unit-test after r50454.
2172
2173         * tests/qwebpage/tst_qwebpage.cpp:
2174
2175 2009-11-03  Simon Hausmann  <hausmann@webkit.org>
2176
2177         Reviewed by Tor Arne Vestbø.
2178
2179         Make QWebPluginDatabase private API for now.
2180
2181         https://bugs.webkit.org/show_bug.cgi?id=30775
2182
2183         * Api/headers.pri:
2184         * Api/qwebplugindatabase.cpp:
2185         * Api/qwebplugindatabase_p.h: Renamed from WebKit/qt/Api/qwebplugindatabase.h.
2186         * Api/qwebsettings.cpp:
2187         * Api/qwebsettings.h:
2188         * QtLauncher/main.cpp:
2189         (MainWindow::setupUI):
2190         * tests/tests.pro:
2191
2192 2009-11-03  Simon Hausmann  <hausmann@webkit.org>
2193
2194         Rubber-stamped by Tor Arne Vestbø.
2195
2196         Oops, also remove the API docs of the removed networkRequestStarted() signal.
2197
2198         * Api/qwebpage.cpp:
2199
2200 2009-11-03  Simon Hausmann  <hausmann@webkit.org>
2201
2202         Reviewed by Tor Arne Vestbø.
2203
2204         Replace the QWebPage::networkRequestStarted() signal with the originatingObject
2205         property set to the QWebFrame that belongs to the request.
2206
2207         https://bugs.webkit.org/show_bug.cgi?id=29975
2208
2209         * Api/qwebpage.h:
2210         * WebCoreSupport/FrameLoaderClientQt.cpp:
2211         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2212         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2213         (WebCore::FrameLoaderClientQt::startDownload):
2214         * tests/qwebpage/tst_qwebpage.cpp:
2215         (tst_QWebPage::loadFinished):
2216         (TestNetworkManager::createRequest):
2217         (tst_QWebPage::originatingObjectInNetworkRequests):
2218
2219 2009-11-02  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
2220
2221         Reviewed by Adam Barth.
2222
2223         QWebView crash fix.
2224
2225         The QWebView should not crash if the stop() method is called from
2226         a function triggered by the loadProgress signal.
2227
2228         A null pointer protection was added in the ProgressTracker::incrementProgress.
2229
2230         New autotest was created.
2231
2232         https://bugs.webkit.org/show_bug.cgi?id=29425
2233
2234         * tests/qwebview/tst_qwebview.cpp:
2235         (WebViewCrashTest::WebViewCrashTest):
2236         (WebViewCrashTest::loading):
2237         (tst_QWebView::crashTests):
2238
2239 2009-11-01  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2240
2241         Reviewed by Eric Seidel.
2242
2243         Turn on warnings for QtWebKit for gcc
2244         https://bugs.webkit.org/show_bug.cgi?id=30958
2245
2246         * Api/qwebpage.cpp:
2247         (QWebPagePrivate::QWebPagePrivate): Reorder initialization list 
2248         to fix compiler warnings.
2249         * WebCoreSupport/FrameLoaderClientQt.cpp:
2250         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto.
2251
2252 2009-10-30  Evan Stade  <estade@chromium.org>
2253
2254         Reviewed by David Levin.
2255
2256         Notify the chrome when the focused node has changed.
2257         https://bugs.webkit.org/show_bug.cgi?id=30832
2258
2259         Added stub implementation for new ChromeClient function.
2260
2261         * WebCoreSupport/ChromeClientQt.cpp:
2262         (WebCore::ChromeClientQt::focusedNodeChanged):
2263         * WebCoreSupport/ChromeClientQt.h:
2264
2265 2009-10-30  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2266
2267         Reviewed by Tor Arne Vestbø.
2268
2269         [Qt] Remove the QWebInspector::windowTitleChanged signal,
2270         QEvent::WindowTitleChange can be used to achieve the same.
2271         https://bugs.webkit.org/show_bug.cgi?id=30927
2272
2273         * Api/qwebinspector.cpp:
2274         * Api/qwebinspector.h:
2275         * WebCoreSupport/InspectorClientQt.cpp:
2276         (WebCore::InspectorClientQt::updateWindowTitle):
2277
2278 2009-10-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2279
2280         Reviewed by Tor Arne Vestbø.
2281
2282         [Qt] Implement DELETE HTTP method for XmlHttpRequest
2283         https://bugs.webkit.org/show_bug.cgi?id=30894
2284
2285         No new tests as this functionality is already tested by the
2286         xmlhttprequest LayoutTests. As this patch depends on an unreleased
2287         version of the dependent QtNetwork library and the tests will be
2288         enabled later once the dependent library is released (and the
2289         buildbot is updated).
2290
2291         * Api/qwebframe.cpp:
2292         (QWebFrame::load):
2293
2294 2009-10-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2295
2296         Reviewed by Tor Arne Vestbø.
2297
2298         Remove QWebView::guessUrlFromString() and replace its use
2299         with the new QUrl::fromUserInput() if using Qt 4.6 or newer.
2300
2301         * Api/qwebview.cpp:
2302         * Api/qwebview.h:
2303         * QGVLauncher/main.cpp:
2304         (urlFromUserInput):
2305         (WebPage::applyProxy):
2306         (MainWindow::load):
2307         * QtLauncher/main.cpp:
2308         (urlFromUserInput):
2309         (MainWindow::MainWindow):
2310         (MainWindow::changeLocation):
2311         * tests/qwebview/tst_qwebview.cpp:
2312
2313 2009-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2314
2315         Reviewed by Tor Arne Vestbø.
2316
2317         Serialize directly to the stream, and not first to an QByteArray,
2318         that is later serialized. That is slower and also uses more bytes.
2319
2320         * Api/qwebhistory.cpp:
2321         (operator<<):
2322         (operator>>):
2323
2324 2009-10-28  Shinichiro Hamaji  <hamaji@chromium.org>
2325
2326         Reviewed by Eric Seidel.
2327
2328         [Qt] WebFrame::counterValueForElementById must not be exposed
2329         https://bugs.webkit.org/show_bug.cgi?id=30882
2330
2331         * Api/qwebframe.cpp:
2332         (qt_drt_counterValueForElementById):
2333         * Api/qwebframe.h:
2334
2335 2009-10-27  Shinichiro Hamaji  <hamaji@chromium.org>
2336
2337         Reviewed by Darin Adler.
2338
2339         Provide a way to get counter values with layoutTestContoller
2340         https://bugs.webkit.org/show_bug.cgi?id=30555
2341
2342         * Api/qwebframe.cpp:
2343         (QWebFrame::counterValueForElementById):
2344         (QWebHitTestResult::frame):
2345         * Api/qwebframe.h:
2346
2347 2009-10-28  Antonio Gomes  <tonikitoo@webkit.org>
2348
2349         Pushing missing WebKit/qt/tests/qwebframe/resources/ dir from bug 29248.
2350
2351         [Qt] [API] Make it possible to have 'invisible' loads
2352         https://bugs.webkit.org/show_bug.cgi?id=29248
2353
2354         * tests/qwebframe/resources/image2.png: Copied from WebKit/qt/tests/qwebelement/image.png.
2355
2356 2009-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2357
2358         Reviewed by Tor Arne Vestbø.
2359
2360         [Qt] QWebHistory::saveState() is inconsistent with the Qt API
2361         https://bugs.webkit.org/show_bug.cgi?id=30710
2362
2363         Make the versioning internal and enforce it in the WebCore
2364         part. Adjust the comments, as well as remove now dead code.
2365
2366         * Api/qwebhistory.cpp:
2367         (operator<<):
2368         (operator>>):
2369         * Api/qwebhistory.h:
2370
2371 2009-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2372
2373         Reviewed by Holger Freyther.
2374
2375         [Qt] QWebHistory::saveState() is inconsistent with the Qt API
2376         https://bugs.webkit.org/show_bug.cgi?id=30710
2377
2378         Remove the QWebHistory::saveState() and ::restoreState() as
2379         they are inconsistent with the Qt API.
2380
2381         Update unittests to reflect the change.
2382
2383         * Api/qwebhistory.cpp:
2384         (operator<<):
2385         (operator>>):
2386         * Api/qwebhistory.h:
2387         * tests/qwebhistory/tst_qwebhistory.cpp:
2388         (saveHistory):
2389         (restoreHistory):
2390         (tst_QWebHistory::saveAndRestore_crash_1):
2391         (tst_QWebHistory::saveAndRestore_crash_2):
2392         (tst_QWebHistory::saveAndRestore_crash_3):
2393         (tst_QWebHistory::clear):
2394
2395 2009-10-27  Antonio Gomes  <tonikitoo@webkit.org>
2396
2397         Reviewed by Holger Freyther.
2398
2399         Complementary fix to bug 30779.
2400
2401         By mistake I used QWeakPointer's toStrongRef() method which docs
2402         explicitly say to not be used in this situation (when the tracked
2403         pointer is devired from QObject). Instead QWeakPointer's data()
2404         is recommended.
2405
2406         * Api/qwebpage.cpp:
2407         (QWebPage::view):
2408
2409 2009-10-27  Holger Hans Peter Freyther  <zecke@selfish.org>
2410
2411         Reviewed by Simon Fraser.
2412
2413         Change HitTestResult methods to use (3d) transformation aware methods
2414         https://bugs.webkit.org/show_bug.cgi?id=27347
2415
2416         The HitTestResult::boundingBox method was removed. The
2417         RenderObject must be used directly. In contrast to the
2418         old HitTestResult::boundingBox method this code must use
2419         a (3d) transformation aware method to not run into an
2420         assert in SVGRenderBase::mapLocalToContainer.
2421
2422         * Api/qwebframe.cpp:
2423         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
2424
2425 2009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2426
2427         Rubberstamped by Oliver Hunt.
2428
2429         Change two methods to be internal for DRT use only.
2430
2431         Part of [Qt] Review all new API in Qt 4.6
2432         https://bugs.webkit.org/show_bug.cgi?id=29843#c11
2433
2434         * Api/qwebsecurityorigin.cpp:
2435         (qt_drt_whiteListAccessFromOrigin):
2436         (qt_drt_resetOriginAccessWhiteLists):
2437         (QWebSecurityOrigin::localSchemes):
2438         * Api/qwebsecurityorigin.h:
2439
2440 2009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2441
2442         Reviewed by Tor Arne Vestbø.
2443
2444         Make sure that initiating a rotation while rotating won't make
2445         it end up at rotation positions that are not a multiply of
2446         180 degrees.
2447
2448         * QGVLauncher/main.cpp:
2449         (MainView::animatedFlip):
2450
2451 2009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2452
2453         Unreviewed Qt build fix.
2454
2455         Update the tests as well to the new API change.
2456
2457         * tests/qwebelement/tst_qwebelement.cpp:
2458         (tst_QWebElement::clear):
2459
2460 2009-10-27  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2461
2462         Rubberstamped by Tor Arne Vestbø.
2463
2464         [Qt] QWebElement::removeChildren() should be
2465         QWebElement::removeAllChildren()
2466         https://bugs.webkit.org/show_bug.cgi?id=30630
2467
2468         * Api/qwebelement.cpp:
2469         (QWebElement::removeAllChildren):
2470         * Api/qwebelement.h:
2471
2472 2009-10-27  Antonio Gomes  <tonikitoo@webkit.org>
2473
2474         Reviewed by Antti Koivisto and Holger Freyther.
2475
2476         Make QWebPagePrivate's (QWidget) view to be a QWeakPointer.
2477         https://bugs.webkit.org/show_bug.cgi?id=30779
2478
2479         The fact that it was been set from external objects of qwebpage
2480         and not being deleted internally can lead to dangling references.
2481
2482         * Api/qgraphicswebview.cpp:
2483         (QGraphicsWebView::~QGraphicsWebView):
2484         * Api/qwebpage.cpp:
2485         (QWebPagePrivate::QWebPagePrivate):
2486         (QWebPagePrivate::createContextMenu):
2487         (QWebPagePrivate::handleSoftwareInputPanel):
2488         (QWebPagePrivate::keyPressEvent):
2489         (QWebPage::setView):
2490         (QWebPage::view):
2491         (QWebPage::javaScriptAlert):
2492         (QWebPage::javaScriptConfirm):
2493         (QWebPage::javaScriptPrompt):
2494         (QWebPage::shouldInterruptJavaScript):
2495         (QWebPage::createWindow):
2496         (QWebPage::extension):
2497         (QWebPage::chooseFile):
2498         (QWebPage::userAgentForUrl):
2499         * Api/qwebpage_p.h:
2500         * Api/qwebview.cpp:
2501         (QWebView::~QWebView):
2502
2503 2009-10-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2504
2505         Unreviewed documentation fix from David Boddie (Qt Doc Team)
2506
2507         Removes the check around the RenderHints property documentation
2508         that was clearly added to synchronize the source and header files
2509         when the #if !defined(Q_OS_SYMBIAN) guards was added to the
2510         property.
2511
2512         The documentation has also been updated to ensure that Symbian
2513         users know that there is no actual RenderHints property on their
2514         platform.
2515
2516         * Api/qwebview.cpp:
2517
2518 2009-10-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2519
2520         Unreviewed documentation fix from David Boddie (Qt Doc Team)
2521
2522         Ensure that qdoc will always see the RenderHints property.
2523
2524         The property was only defined in the header file if the Q_OS_SYMBIAN
2525         symbol was not defined, resulting in the property not showing up
2526         in the Qt documentation just because one platform doesn't support it.
2527
2528         A follow up commit will improve the documentation for the property
2529         and note that it is not supported on the Symbiam platform.
2530
2531         * Api/qwebview.h:
2532
2533 2009-10-26  Benjamin Poulain  <benjamin.poulain@nokia.com>
2534
2535         Reviewed by Tor Arne Vestbø.
2536
2537         [Qt] Reintroduce QWebElementCollection
2538
2539         Revert the patch that has replaced QWebElementCollection 
2540         with QList<QWebElement>. Update the tests accordingly.
2541
2542         Remove the constness of the return type of QWebElement operator[]. 
2543
2544         https://bugs.webkit.org/show_bug.cgi?id=30767
2545
2546         * Api/qwebelement.cpp:
2547         (QWebElement::findAll):
2548         (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
2549         (QWebElementCollectionPrivate::create):
2550         (QWebElementCollection::QWebElementCollection):
2551         (QWebElementCollection::operator=):
2552         (QWebElementCollection::~QWebElementCollection):
2553         (QWebElementCollection::operator+):
2554         (QWebElementCollection::append):
2555         (QWebElementCollection::count):
2556         (QWebElementCollection::at):
2557         (QWebElementCollection::toList):
2558         * Api/qwebelement.h:
2559         (const_iterator::begin):
2560         (const_iterator::end):
2561         (const_iterator::operator[]):
2562         * Api/qwebframe.cpp:
2563         (QWebFrame::findAllElements):
2564         * Api/qwebframe.h:
2565         * QtLauncher/main.cpp:
2566         (MainWindow::selectElements):
2567         * tests/qwebelement/tst_qwebelement.cpp:
2568         (tst_QWebElement::simpleCollection):
2569         (tst_QWebElement::iteration):
2570         (tst_QWebElement::emptyCollection):
2571         (tst_QWebElement::appendCollection):
2572         (tst_QWebElement::nullSelect):
2573         (tst_QWebElement::hasSetFocus):
2574         (tst_QWebElement::render):
2575         * tests/qwebpage/tst_qwebpage.cpp:
2576         (tst_QWebPage::inputMethods):
2577
2578 2009-10-24  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2579
2580         Reviewed by Holger Freyther.
2581
2582         [Qt] [Symbian] Set the capability and memory required to run QtWebKit for Symbian
2583         https://bugs.webkit.org/show_bug.cgi?id=30476
2584
2585         Assign ReadUserData WriteUserData NetworkServices Symbian capabilities
2586         to all QtWebkit executables.
2587
2588         * QGVLauncher/QGVLauncher.pro:
2589         * QtLauncher/QtLauncher.pro:
2590         * tests/benchmarks/loading/tst_loading.pro:
2591         * tests/benchmarks/painting/tst_painting.pro:
2592         * tests/qgraphicswebview/qgraphicswebview.pro:
2593         * tests/qwebelement/qwebelement.pro:
2594         * tests/qwebframe/qwebframe.pro:
2595         * tests/qwebhistory/qwebhistory.pro:
2596         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
2597         * tests/qwebpage/qwebpage.pro:
2598         * tests/qwebplugindatabase/qwebplugindatabase.pro:
2599         * tests/qwebview/qwebview.pro:
2600
2601 2009-10-22  Gavin Barraclough  <barraclough@apple.com>
2602
2603         Reviewed by NOBODY (speculative build fix - qt is currently already broken!)
2604         Build fix following bug #30696.
2605
2606         * Api/qwebelement.cpp:
2607         (setupScriptContext):
2608         * Api/qwebframe.cpp:
2609         (QWebFrame::evaluateJavaScript):
2610
2611 2009-10-22  Shu Chang  <Chang.Shu@nokia.com>
2612
2613         Reviewed by Eric Seidel.
2614
2615         [Qt] Enable track visited links in QWebPage
2616         https://bugs.webkit.org/show_bug.cgi?id=30574
2617
2618         Test: fast/history/clicked-link-is-visited.html
2619
2620         * Api/qwebpage.cpp:
2621         (QWebPagePrivate::QWebPagePrivate):
2622
2623 2009-10-22  Girish Ramakrishnan  <girish@forwardbias.in>
2624
2625         Reviewed by Eric Seidel.
2626
2627         [Qt] Add Print Shortcut to QtLauncher
2628
2629         https://bugs.webkit.org/show_bug.cgi?id=30682
2630
2631         * QtLauncher/main.cpp:
2632         (MainWindow::setupUI):
2633
2634 2009-10-22  Antonio Gomes  <tonikitoo@webkit.org>
2635
2636         Rubberstamped by Tor Arne Vestbø.
2637
2638         Code standarlization for QGVLauncher.
2639
2640         1) Made member initilization lists in constructors
2641            to be per line.
2642         2) Made applyProxy method inline as all other methods in
2643            WebPage class.
2644
2645         * QGVLauncher/main.cpp:
2646         (WebPage::WebPage):
2647         (WebPage::applyProxy):
2648         (MainView::MainView):
2649         (MainWindow::MainWindow):
2650         (MainWindow::init):
2651
2652 2009-10-22  Antonio Gomes  <tonikitoo@webkit.org>
2653
2654         Reviewed by Tor Arne Vestbø.
2655
2656         Add a Y-Axis rotation to QGVLauncher.
2657
2658         It uses the QStateMachine API from Qt 4.6.
2659
2660         * QGVLauncher/main.cpp:
2661         (WebView::WebView):
2662         (WebView::setYRotation):
2663         (WebView::yRotation):
2664         (MainView::flip):
2665         (MainView::animatedYFlip):
2666         (SharedScene::SharedScene):
2667         (SharedScene::webView):
2668         (MainWindow::init):
2669         (MainWindow::animatedYFlip):
2670         (MainWindow::buildUI):
2671
2672 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2673
2674         Reviewed By Adam Barth.
2675
2676         Add some actions to the menu for cursor debugging.
2677
2678         GraphicsView based launcher only.
2679
2680         * QGVLauncher/main.cpp:
2681         (MainView::setWaitCursor):
2682         (MainView::resetCursor):
2683         (MainView::flip):
2684         (MainWindow::setWaitCursor):
2685         (MainWindow::resetCursor):
2686         (MainWindow::buildUI):
2687
2688 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2689
2690         Rubberstamped by Adam Barth.
2691
2692         Remove clipRenderToViewport as agreed upon in
2693         https://bugs.webkit.org/show_bug.cgi?id=29843
2694
2695         * Api/qwebframe.cpp:
2696         * Api/qwebframe.h:
2697         * Api/qwebframe_p.h:
2698         (QWebFramePrivate::QWebFramePrivate):
2699
2700 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2701
2702         Reviewed by Adam Barth.
2703
2704         Update the tests to test the new render functionality, and take
2705         into consideration that render() clips to the frame itself as well
2706         as the viewport.
2707
2708         QWebFrame::render() now always clips, so the old tests were bogus.
2709
2710         Rendering pure contents (no scrollbars etc) without clipping can now
2711         be accomplished using QWebFrame::documentElement()->render(...)
2712
2713         * Api/qwebframe.cpp:
2714         * Api/qwebframe.h:
2715         * Api/qwebframe_p.h:
2716         (QWebFramePrivate::QWebFramePrivate):
2717         * tests/qwebframe/tst_qwebframe.cpp:
2718
2719 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2720
2721         Rubberstamped by Adam Barth.
2722
2723         As we do not support rendering a QWebFrame without it being clipped
2724         the the frame as well as the viewport, we now set the viewport size
2725         to the size of the contents.
2726
2727         Rendering pure contents (no scrollbars etc) without clipping can be
2728         acomplished using QWebFrame::documentElement()->render(...)
2729
2730         * tests/qwebelement/tst_qwebelement.cpp:
2731         (tst_QWebElement::render):
2732
2733 2009-10-20  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2734
2735         Reviewed by Tor Arne Vestbø.
2736
2737         Add menu item to dump the plugin list to the console,
2738         which can be handy for debugging.
2739
2740         * QtLauncher/main.cpp:
2741         (MainWindow::dumpPlugins):
2742         (MainWindow::setupUI):
2743
2744 2009-10-19  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2745
2746         Reviewed by Tor Arne Vestbø.
2747
2748         Introduce new render method on QWebFrame, which supports specifying
2749         which layers to render (scrollbars, contents, pan-icon).
2750
2751         * Api/qwebframe.cpp:
2752         (QWebFramePrivate::renderPrivate):
2753         (QWebFrame::render):
2754         * Api/qwebframe.h:
2755         * Api/qwebframe_p.h:
2756
2757 2009-10-19  Antonio Gomes  <tonikitoo@webkit.org>
2758
2759         Reviewed by Ariya Hidayat.
2760
2761         [Qt] Infinite loop (leading to crash) when setting cursor in QGraphicsWebView
2762         https://bugs.webkit.org/show_bug.cgi?id=30549
2763
2764         Patch reimplements QGraphicsItem's itemChange method, and make
2765         CursorChange event to be emitted after cursor has already been
2766         set.
2767
2768         QWidget::setCursor send the event just after it sets the cursor,
2769         then patch makes both behaviors compatible.
2770
2771         * Api/qgraphicswebview.cpp:
2772         (QGraphicsWebView::itemChange):
2773         * Api/qgraphicswebview.h:
2774
2775 2009-10-19  Nate Chapin  <japhet@chromium.org>
2776
2777         Unreviewed, build fix.
2778
2779         Update call to FrameLoader::loadFrameRequest().
2780
2781         * Api/qwebpage.cpp:
2782         (QWebPage::triggerAction):
2783
2784 2009-10-19  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
2785
2786         Reviewed by Ariya Hidayat.
2787
2788         Add QWebElement::render API which allows rendering of single
2789         element.
2790
2791         * Api/qwebelement.cpp:
2792         (QWebElement::render):
2793         * Api/qwebelement.h:
2794         * tests/qwebelement/tst_qwebelement.cpp:
2795         (tst_QWebElement::render):
2796         * tests/qwebelement/qwebelement.qrc:
2797         * tests/qwebelement/image.png: Added.
2798
2799 2009-10-19  Markus Goetz <Markus.Goetz@nokia.com>
2800
2801         Reviewed by Ariya Hidayat.
2802
2803         QWebPage: Doc: setNetworkAccessManager should only be called once.
2804
2805         * Api/qwebpage.cpp:
2806
2807 2009-10-19  Antonio Gomes  <tonikitoo@webkit.org>
2808
2809         Reviewed by Tor Arne.
2810
2811         Wrong ifdef combination in QGraphicsWebView's event method.
2812
2813         * Api/qgraphicswebview.cpp:
2814         (QGraphicsWebView::event):
2815
2816 2009-10-19  Girish Ramakrishnan  <girish@forwardbias.in>
2817
2818         Reviewed by Holger Freyther.
2819
2820         [Qt] Windowed Plugins: Don't crash when client is 0.
2821         
2822         Client is 0 when we use QWebPage without a QWebView or QGraphicsWebView.
2823         In addition, setFrameRect()/updatePluginWidget() is called even if the
2824         plugin was not succesfully loaded. updatePluginWidget() updates the
2825         window rect which is, in theory, useful to draw something that indicates
2826         that we didn't load successfully.
2827         
2828         So, a status check is added to setNPWindowIfNeeded.
2829
2830         https://bugs.webkit.org/show_bug.cgi?id=30380
2831
2832         * tests/qwebpage/qwebpage.pro:
2833         * tests/qwebpage/tst_qwebpage.cpp:
2834         (takeScreenshot):
2835         (tst_QWebPage::screenshot_data):
2836         (tst_QWebPage::screenshot):
2837         * tests/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf.
2838
2839 2009-10-19  Girish Ramakrishnan  <girish@forwardbias.in>
2840
2841         Reviewed by Holger Freyther.
2842
2843         [Qt] Windowed Plugins: Fix crash when QWebPage is deleted after QWebView.
2844         
2845         Fixes various sources of crashes:
2846         1. The PluginContainer is a child of QWebView. When the view gets deleted,
2847         the PluginView is not notified about the deletion of PluginContainer.
2848         2. QWebView destructor does not set client to 0.
2849         3. Sometimes pending paint events are sent after the plugin has died, so add
2850         a check in PluginView::setNPWindowIfNeeded.
2851
2852         https://bugs.webkit.org/show_bug.cgi?id=30354
2853
2854         * Api/qwebview.cpp:
2855         (QWebView::~QWebView):
2856         * tests/qwebview/qwebview.pro:
2857         * tests/qwebview/tst_qwebview.cpp:
2858         (tst_QWebView::reusePage_data):
2859         (tst_QWebView::reusePage):
2860
2861 2009-10-19  Jakob Truelsen  <antialize@gmail.com>
2862
2863         Reviewed by Adam Barth.
2864
2865         https://bugs.webkit.org/show_bug.cgi?id=29042
2866
2867         Allow one to costumize the minimal and maximal shrink factors,
2868         Added methods setPrintingMinimumShrinkFactor, printingMinimumShrinkFactor,
2869         setPrintingMaximumShrinkFactor, printingMaximumShrinkFactor to QWebSettings.
2870
2871
2872         * Api/qwebsettings.cpp:
2873         (QWebSettingsPrivate::apply):
2874         (QWebSettings::QWebSettings):
2875         (QWebSettings::setPrintingMinimumShrinkFactor):
2876         (QWebSettings::printingMinimumShrinkFactor):
2877         (QWebSettings::setPrintingMaximumShrinkFactor):
2878         (QWebSettings::printingMaximumShrinkFactor):
2879         * Api/qwebsettings.h:
2880
2881 2009-10-18  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2882
2883         Reviewed by Simon Hausmann.
2884
2885         Rename fixedContentsSize property to preferredContentsSize as
2886         agreed upon with Simon Hausmann and Matthias Ettrich.
2887
2888         * Api/qwebpage.cpp:
2889         (QWebPage::preferredContentsSize):
2890         (QWebPage::setPreferredContentsSize):
2891         * Api/qwebpage.h:
2892         * WebCoreSupport/FrameLoaderClientQt.cpp:
2893         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2894
2895 2009-10-16  Antonio Gomes  <tonikitoo@webkit.org>
2896
2897         Reviewed by Simon Hausmann.
2898
2899         [Qt] QGLauncher leaks WebPage object
2900         https://bugs.webkit.org/show_bug.cgi?id=30465
2901
2902         Make 'SharedScene' to own 'WebPage' reference and delete it at its destructor.
2903
2904         * Api/qwebpage.cpp:
2905         (QWebPage::view):
2906         * Api/qwebpage_p.h:
2907         * QGVLauncher/main.cpp:
2908         (SharedScene::SharedScene):
2909         (SharedScene::~SharedScene):
2910
2911 2009-10-16  Antonio Gomes  <tonikitoo@webkit.org>
2912
2913         Reviewed by Simon Hausmann.
2914
2915         [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash
2916         https://bugs.webkit.org/show_bug.cgi?id=30459
2917
2918         Remove all setView(ev->widget()) calls in QWebPage and QGWV event handling methods,
2919         since QWebPageClient would do the trick.
2920
2921         * Api/qgraphicswebview.cpp:
2922         (QGraphicsWebView::hoverMoveEvent):
2923         * Api/qwebpage.cpp:
2924         (QWebPagePrivate::mouseMoveEvent):
2925         (QWebPagePrivate::mousePressEvent):
2926         (QWebPagePrivate::mouseDoubleClickEvent):
2927         (QWebPagePrivate::mouseReleaseEvent):
2928         (QWebPagePrivate::wheelEvent):
2929         (QWebPagePrivate::dragEnterEvent):
2930         (QWebPagePrivate::dragLeaveEvent):
2931         (QWebPagePrivate::dragMoveEvent):
2932
2933 2009-10-16  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2934
2935         Pull out r49676 as it caused build breakges on Symbian
2936
2937         * Api/qwebpage.cpp:
2938
2939 2009-10-16  Yael Aharon  <yael.aharon@nokia.com>
2940
2941         Reviewed by Tor Arne Vestbø.
2942
2943         [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
2944         https://bugs.webkit.org/show_bug.cgi?id=30179
2945
2946         Added "c" style static methods for the application to hook up for
2947         receiving notifications when a plugin is created or destroyed.
2948
2949         * Api/qwebpage.cpp:
2950
2951 2009-10-15  Antonio Gomes  <tonikitoo@webkit.org>
2952
2953         Rubberstamped by Tor Arne.
2954
2955         Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*).
2956
2957         * QGVLauncher/main.cpp:
2958         (WebPage::WebPage):
2959
2960 2009-10-15  Antonio Gomes  <tonikitoo@webkit.org>
2961
2962         Reviewed by Tor Arne.
2963
2964         [Qt] QGLauncher crashes while closing a window
2965         https://bugs.webkit.org/show_bug.cgi?id=30385
2966
2967         Set page's pageClient reference to '0' at QGWV deletion.
2968
2969         * Api/qgraphicswebview.cpp:
2970         (QGraphicsWebView::~QGraphicsWebView):
2971         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2972         (WebPage::WebPage):
2973         (WebPage::aborting):
2974         (tst_QGraphicsWebView::crashOnViewlessWebPages):
2975
2976 2009-10-13  Antonio Gomes  <tonikitoo@webkit.org>
2977
2978         Reviewed by Simon Hausmann.
2979
2980         [Qt] Make context menu to work in QGraphicsWebView
2981         https://bugs.webkit.org/show_bug.cgi?id=30336
2982
2983         * Api/qgraphicswebview.cpp:
2984         (QGraphicsWebView::event):
2985
2986 2009-10-13  Girish Ramakrishnan  <girish@forwardbias.in>
2987
2988         Reviewed by Simon Hausmann.
2989
2990         [Qt] Plugins : Remove all traces of winId. Use ownerWidget() instead.
2991         
2992         This is a bug for two reasons:
2993         1. Everytime we use winId(), we end up creating a native widget. This causes an
2994         unnecessary copy of contents from the backing store to the native widget.
2995         2. Neither windowed nor windowless plugins require the winId of the QWebView or
2996         QGraphicsView.
2997         
2998         Introduce ownerWidget() which returns a QWidget * without creating a native widget
2999         (as opposed to QWidget::find(winId)).
3000
3001         https://bugs.webkit.org/show_bug.cgi?id=30170
3002
3003         * Api/qgraphicswebview.cpp:
3004         (QGraphicsWebViewPrivate::ownerWidget):
3005         * Api/qwebview.cpp:
3006         (QWebViewPrivate::ownerWidget):
3007
3008 2009-10-13  Antonio Gomes  <tonikitoo@webkit.org>
3009
3010         Reviewed by Simon Hausmann.
3011
3012         [Qt] Add some initial autotests for QWebPage's ErrorPageExtention
3013         https://bugs.webkit.org/show_bug.cgi?id=30296
3014
3015         * tests/qwebpage/tst_qwebpage.cpp:
3016         (ErrorPage::ErrorPage):
3017         (ErrorPage::supportsExtension):
3018         (ErrorPage::extension):
3019         (tst_QWebPage::errorPageExtension):
3020
3021 2009-10-13  Antonio Gomes  <tonikitoo@webkit.org>
3022
3023         Reviewed by Simon Hausmann.
3024
3025         [Qt] better handle possible edge cases on qwebframe::requestedUrl use
3026         https://bugs.webkit.org/show_bug.cgi?id=30216
3027
3028         QWebFrame::requestedUrl can be called at any time during the load
3029         process, including:
3030
3031         * An error handling (whereas an alternate error page for unsuccessful
3032           load is being set);
3033         * A ssl error exception call;
3034         * During navigation notifications/callbacks (titleChanged, urlChanged,
3035           progresses, addHistoryEntry, etc);
3036         * Among others.
3037
3038         This patch makes requestedUrl calls to fallback to FrameLoaderClient
3039         m_loadError's failingURL when an error has occurred, unless it is
3040         null/empty.
3041
3042         Also, m_loadError is now being reset at each the main frame starts a
3043         load, in order to avoid previous load errors footprints.
3044
3045         * Api/qwebframe.cpp:
3046         (QWebFrame::requestedUrl):
3047         * WebCoreSupport/FrameLoaderClientQt.cpp:
3048         (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
3049
3050 2009-10-12  Jakub Wieczorek  <faw217@gmail.com>
3051
3052         Reviewed by Simon Hausmann.
3053
3054         [Qt] Missing default value for the default text encoding.
3055         https://bugs.webkit.org/show_bug.cgi?id=30311
3056
3057         QtWebKit has provided a default, hardcoded value for default charset but since
3058         the addition of the defaultTextEncoding setting in QWebSettings, that hardcoded
3059         value has had no effect.
3060
3061         Added a regression test and unskipped fast/dom/Document/document-charset.html,
3062         which is passing now.
3063
3064         * Api/qwebpage.cpp:
3065         (QWebPagePrivate::QWebPagePrivate):
3066         * Api/qwebsettings.cpp:
3067         (QWebSettings::QWebSettings):
3068         * tests/qwebpage/tst_qwebpage.cpp:
3069         (tst_QWebPage::defaultTextEncoding):
3070
3071 2009-10-12  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3072
3073         Reviewed by Simon Hausmann.
3074
3075         Implement the new palette() methods on the page clients
3076
3077         * Api/qgraphicswebview.cpp:
3078         (QGraphicsWebViewPrivate::palette):
3079         * Api/qwebview.cpp:
3080         (QWebViewPrivate::palette):
3081
3082 2009-10-12  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
3083
3084         Reviewed by Simon Hausmann.
3085
3086         QWebPage's createViewlessPlugin autotest crash fix.
3087         
3088         It is possible that plugins that are QWidgets or QGraphicsWidgets
3089         are created before a view has been assigned to a QWebPage. The
3090         plug-ins won't be fully functional, as by design, they should
3091         visualise something, but they won't crash and will stay in memory.
3092
3093         An autotest that covers this use-case, is included.
3094
3095         https://bugs.webkit.org/show_bug.cgi?id=30118
3096
3097         * WebCoreSupport/FrameLoaderClientQt.cpp:
3098         (WebCore::FrameLoaderClientQt::createPlugin):
3099         * tests/qwebpage/tst_qwebpage.cpp:
3100         (PluginTrackedPageWidget::PluginTrackedPageWidget):
3101         (PluginTrackedPageGraphicsWidget::PluginTrackedPageGraphicsWidget):
3102         (PluginTrackedPageGraphicsWidget::createPlugin):
3103         (tst_QWebPage::destroyPlugin):
3104         (tst_QWebPage::createViewlessPlugin):
3105
3106 2009-10-09  Joe Ligman  <joseph.ligman@nokia.com>
3107
3108         Reviewed by Simon Hausmann.
3109
3110         Sets Qt::WA_InputMethodEnabled and Qt::ImhHiddenText for password fields in EditorClientQt
3111         setInputMethodState. This change is needed so widgets such as the s60 software 
3112         input panel can receive input method events for password fields.
3113         It's up to the Qt platform to determine which widget will receive input method 
3114         events when these flags are set.
3115         Also added implementation for setInputMethodEnabled and setInputMethodHint 
3116         to QGraphicsWebViewPrivate and QWebViewPrivate. This change removes the direct
3117         dependency on QWebView and uses QWebPageClient.
3118         Added autotest to tst_qwebpage.cpp
3119         https://bugs.webkit.org/show_bug.cgi?id=30023
3120
3121         * Api/qgraphicswebview.cpp:
3122         (QGraphicsWebViewPrivate::setInputMethodEnabled):
3123         (QGraphicsWebViewPrivate::setInputMethodHint):
3124         * Api/qwebview.cpp:
3125         (QWebViewPrivate::setInputMethodEnabled):
3126         (QWebViewPrivate::setInputMethodHint):
3127         * WebCoreSupport/EditorClientQt.cpp:
3128         (WebCore::EditorClientQt::setInputMethodState):
3129         * tests/qwebpage/tst_qwebpage.cpp:
3130         (tst_QWebPage::inputMethods):
3131
3132 2009-10-08  Adam Barth  <abarth@webkit.org>
3133
3134         Reviewed by Eric Seidel.
3135
3136         Move executeScript from FrameLoader to ScriptController
3137         https://bugs.webkit.org/show_bug.cgi?id=30200
3138
3139         Update API call.
3140
3141         * Api/qwebframe.cpp:
3142         (QWebFrame::evaluateJavaScript):
3143
3144 2009-10-08  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
3145
3146         Reviewed by Simon Hausmann.
3147
3148         Part of testOptionalJSObjects autotest was marked as "expect to fail".
3149
3150         Two places in tst_QWebPage::testOptionalJSObjects were marked as
3151         expected to fail. The problem concern checking if a feature is enabled
3152         or disabled. According to discussion on webkit dev mailing list
3153         a disabled feature should be invisible from java script level, but
3154         there are exceptions from the rule. So we decided to disable the test
3155         for now.
3156
3157         https://bugs.webkit.org/show_bug.cgi?id=29867
3158
3159         * tests/qwebpage/tst_qwebpage.cpp:
3160         (tst_QWebPage::testOptionalJSObjects):
3161
3162 2009-10-07  Adam Barth  <abarth@webkit.org>
3163
3164         Reviewed by Darin Adler.
3165
3166         Factor PolicyChecker out of FrameLoader
3167         https://bugs.webkit.org/show_bug.cgi?id=30155
3168
3169         Move the policy callback to the policy object.
3170
3171         * WebCoreSupport/FrameLoaderClientQt.cpp:
3172         (WebCore::FrameLoaderClientQt::callPolicyFunction):
3173
3174 2009-10-07  Antonio Gomes  <tonikitoo@webkit.org>
3175
3176         Reviewed by Simon Hausmann.
3177
3178         [Qt] Get rid of useless loadFailed signal in QGraphicsWebView
3179         https://bugs.webkit.org/show_bug.cgi?id=30166
3180
3181         * Api/qgraphicswebview.cpp:
3182         (QGraphicsWebViewPrivate::_q_doLoadFinished):
3183         * Api/qgraphicswebview.h:
3184         * QGVLauncher/main.cpp:
3185         (MainWindow::init):
3186         (MainWindow::loadFinished):
3187
3188 2009-10-07  Girish Ramakrishnan  <girish@forwardbias.in>
3189
3190         Reviewed by Simon Hausmann.
3191
3192         Add a simple rotation effect to QGVLauncher
3193
3194         https://bugs.webkit.org/show_bug.cgi?id=30162
3195
3196         * QGVLauncher/main.cpp:
3197         (MainView::animatedFlip):
3198         (MainWindow::animatedFlip):
3199         (MainWindow::buildUI):
3200
3201 2009-10-07  Volker Hilsheimer  <volker.hilsheimer@nokia.com>
3202
3203         Reviewed by Simon Hausmann.
3204
3205         Doc: Document HTML and status as properties.
3206
3207         * Api/qgraphicswebview.cpp:
3208
3209 2009-10-07  Martin Smith  <msmith@trolltech.com>
3210
3211         Reviewed by Simon Hausmann.
3212
3213         Fix qdoc warning about disabled renderHints property
3214         on Symbian.
3215
3216         * Api/qwebview.cpp:
3217         * Api/qwebview.h:
3218
3219 2009-10-06  Adam Barth  <abarth@webkit.org>
3220
3221         Reviewed by Eric Seidel.
3222
3223         Move setLocalLoadPolicy and friends to SecurityOrigin
3224         https://bugs.webkit.org/show_bug.cgi?id=30110
3225
3226         Call the new API.
3227
3228         * Api/qwebpage.cpp:
3229         (QWebPagePrivate::QWebPagePrivate):
3230
3231 2009-10-06  Benjamin C Meyer  <bmeyer@rim.com>
3232
3233         Reviewed by Ariya Hidayat.
3234         
3235         When the drag data contains an image set it on the QDrag so it will be visible to the user.
3236         
3237         * WebCoreSupport/DragClientQt.cpp:
3238         (WebCore::DragClientQt::startDrag):
3239
3240 2009-10-06  Pavel Feldman  <pfeldman@chromium.org>
3241
3242         Reviewed by Timothy Hatcher.
3243
3244         Web Inspector: close inspector client view on
3245         InspectorController::close API call.
3246
3247         In order to run batch web inspector layout tests (and not affect
3248         subsequent tests) we should close inspector client's view upon
3249         InspectorController::close API call.
3250
3251         https://bugs.webkit.org/show_bug.cgi?id=30009
3252
3253         * WebCoreSupport/InspectorClientQt.cpp:
3254         (WebCore::InspectorClientQt::createPage):
3255
3256 2009-10-06  Janne Koskinen  <janne.p.koskinen@digia.com>
3257
3258         Reviewed by Simon Hausmann.
3259
3260         [Qt] don't enable input methods on Symbian by default.
3261         https://bugs.webkit.org/show_bug.cgi?id=30117
3262
3263         If input methods are enabled Symbian FEP will be launched on every
3264         pointer event making webpage navigation impossible with QWebView.
3265
3266         * Api/qwebview.cpp:
3267         (QWebView::QWebView):
3268
3269 2009-10-05  Holger Hans Peter Freyther  <zecke@selfish.org>
3270
3271         Reviewed by Simon Hausmann.
3272
3273         QtLauncher: print the number of loaded urls
3274         
3275         When using the -r mode print the number of URLs loaded so far. This
3276         is extremly useful when opening the same URL over and over again and
3277         one wants to see the progress.
3278
3279         * QtLauncher/main.cpp:
3280         (URLLoader::URLLoader):
3281         (URLLoader::loadNext):
3282
3283 2009-10-05  Girish Ramakrishnan  <girish@forwardbias.in>
3284
3285         Reviewed by Simon Hausmann.
3286
3287         Add screenshot option to menubar
3288
3289         https://bugs.webkit.org/show_bug.cgi?id=30067
3290
3291         * QtLauncher/main.cpp:
3292         (MainWindow::screenshot):
3293         (MainWindow::setupUI):
3294
3295 2009-10-05  Girish Ramakrishnan  <girish@forwardbias.in>
3296
3297         Reviewed by Simon Hausmann.
3298
3299         Setting the env QTLAUNCHER_USE_ARGB_VISUALS makes Qt use WA_TranslucentWindow.
3300
3301         https://bugs.webkit.org/show_bug.cgi?id=30068
3302
3303         * QtLauncher/main.cpp:
3304         (MainWindow::MainWindow):
3305
3306 2009-10-05  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3307
3308         Rubberstamped by Simon Hausmann.
3309
3310         Add documentation to the ErrorPageExtension.
3311
3312         * Api/qwebpage.cpp:
3313
3314 2009-10-02  Yael Aharon  <yael.aharon@nokia.com>
3315
3316         Reviewed by Simon Hausmann.
3317
3318         [Qt] Inform the application when a new request is created
3319         https://bugs.webkit.org/show_bug.cgi?id=29975
3320
3321         Add a signal to QWebPage, to inform the application when a request is created.
3322
3323         * Api/qwebpage.cpp:
3324         * Api/qwebpage.h:
3325         * tests/qwebpage/tst_qwebpage.cpp:
3326         (tst_QWebPage::loadFinished):
3327
3328 2009-10-05  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3329
3330         Reviewed by Simon Hausmann.
3331
3332         ErrorPageExtension: Add a pointer to the QWebFrame that had
3333         an error.
3334
3335         * Api/qwebpage.h:
3336         * WebCoreSupport/FrameLoaderClientQt.cpp:
3337         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
3338
3339 2009-10-05  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3340
3341         Reviewed by Tor Arne Vestbø.
3342
3343         Do not empty the offline web appcache when clearing
3344         memory caches. That one is not in memory, but stored
3345         in sqlite.
3346
3347         * Api/qwebsettings.cpp:
3348         (QWebSettings::clearMemoryCaches):
3349
3350 2009-10-05  J-P Nurmi  <jpnurmi@gmail.com>
3351
3352         Reviewed by Simon Hausmann.
3353
3354         Added QGraphicsWidget-plugins support to FrameLoaderClientQt.
3355
3356         https://bugs.webkit.org/show_bug.cgi?id=29710
3357
3358         * Api/qgraphicswebview.cpp:
3359         (QGraphicsWebViewPrivate::pluginParent):
3360         * Api/qwebview.cpp:
3361         (QWebViewPrivate::pluginParent):
3362         * WebCoreSupport/FrameLoaderClientQt.cpp:
3363         (WebCore::):
3364         (WebCore::FrameLoaderClientQt::createPlugin):
3365
3366 2009-10-03  Adam Barth  <abarth@webkit.org>
3367
3368         Unreview build fix.  I wish I had a try server...
3369
3370         * Api/qwebpage.cpp:
3371         (QWebPagePrivate::updateAction):
3372
3373 2009-10-02  Norbert Leser  <norbert.leser@nokia.com>
3374
3375         Reviewed by Simon Hausmann.
3376
3377         Conditionally guard cursor code (cursor and updateCursor functions) with !QT_NO_CURSOR.
3378         Otherwise, it is inconsistent with class declaration of QCursor.
3379
3380         * Api/qgraphicswebview.cpp:
3381         * Api/qwebview.cpp:
3382
3383 2009-10-02  Prasanth Ullattil  <prasanth.ullattil@nokia.com>
3384
3385         Reviewed by Simon Hausmann.
3386
3387         Fix compiler warnings about unused function arguments.
3388
3389         * Api/qwebframe.cpp:
3390         (QWebFrame::scrollBarMinimum):
3391         * Api/qwebpage.cpp:
3392         (QWebPagePrivate::focusInEvent):
3393         (QWebPagePrivate::focusOutEvent):
3394         (QWebPagePrivate::leaveEvent):
3395         (QWebPage::javaScriptAlert):
3396         (QWebPage::javaScriptConfirm):
3397         (QWebPage::javaScriptPrompt):
3398         (QWebPage::triggerAction):
3399         (QWebPage::acceptNavigationRequest):
3400         (QWebPage::chooseFile):
3401         * WebCoreSupport/ChromeClientQt.cpp:
3402         (WebCore::ChromeClientQt::repaint):
3403         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3404         (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
3405         * WebCoreSupport/ContextMenuClientQt.cpp:
3406         (WebCore::ContextMenuClientQt::downloadURL):
3407         * WebCoreSupport/FrameLoaderClientQt.cpp:
3408         (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
3409         (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
3410         (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
3411         (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
3412         (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
3413         (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
3414         (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
3415         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
3416         (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
3417         * WebCoreSupport/InspectorClientQt.cpp:
3418         (WebCore::InspectorClientQt::setAttachedWindowHeight):
3419         (WebCore::InspectorClientQt::highlight):
3420         (WebCore::InspectorClientQt::removeSetting):
3421
3422 2009-10-01  Simon Hausmann  <simon.hausmann@nokia.com>
3423
3424         Reviewed by Tor Arne Vestbø.
3425
3426         Make Software Input Panel requests work with QGraphicsWebView
3427         _and_ QWebView by sharing the event code in handleSoftwareInputPanel().
3428
3429         * Api/qwebpage.cpp:
3430         (QWebPagePrivate::mouseReleaseEvent):
3431         (QWebPagePrivate::handleSoftwareInputPanel):
3432         * Api/qwebpage_p.h:
3433
3434 2009-10-01  Alexis Menard  <alexis.menard@nokia.com>
3435
3436         Reviewed by Tor Arne Vestbø.
3437
3438         Rename QWebGraphicsItem to QGraphicsWebView
3439
3440         * Api/headers.pri:
3441         * Api/qwebpage.h:
3442         * Api/qwebgraphicsitem.cpp: Renamed.
3443         * Api/qwebgraphicsitem.h: Renamed.
3444         * WebKit/qt/QGVLauncher/main.cpp:
3445         * tests/tests.pro:
3446         * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Renamed.
3447         * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Renamed.
3448
3449 2009-10-01  Antonio Gomes   <tonikitoo@webkit.org>
3450
3451         Reviewed by Simon Hausmann.
3452
3453         https://bugs.webkit.org/show_bug.cgi?id=29248
3454         [Qt] [API] Make it possible to have 'invisible' loads
3455
3456         Make QWebFrame's setHtml and setContent methods to not change
3457         session and global history at all.
3458
3459         * Api/qwebframe.cpp:
3460         (QWebFrame::setHtml):
3461         (QWebFrame::setContent):
3462         * tests/qwebframe/qwebframe.pro:
3463         * tests/qwebframe/tst_qwebframe.cpp:
3464
3465 2009-10-01  Kristian Amlie  <kristian.amlie@nokia.com>
3466
3467         Reviewed by Simon Hausmann.
3468
3469         Fixed software input panel support on web input elements.
3470
3471         Send the RequestSoftwareInputPanel event if the element supports focus
3472         and the element is clicked.
3473
3474         * Api/qwebpage.cpp:
3475         (QWebPagePrivate::QWebPagePrivate):
3476         (QWebPagePrivate::mousePressEvent):
3477         (QWebPagePrivate::mouseReleaseEvent):
3478         * Api/qwebpage_p.h:
3479
3480 2009-10-01  Joe Ligman  <joseph.ligman@nokia.com>
3481
3482         Reviewed by Simon Hausmann.
3483
3484         Implementation for QWebPage::inputMethodQuery and QWebPagePrivate::inputMethodEvent
3485
3486         https://bugs.webkit.org/show_bug.cgi?id=29681
3487
3488         Some additional changes from Kristian Amlie <kristian.amlie@nokia.com>:
3489
3490             * Fixed surrounding text to exclude preedit string
3491             * Avoid emission of microFocusChanged during setComposition()
3492
3493         * Api/qwebpage.cpp:
3494         (QWebPagePrivate::inputMethodEvent):
3495         (QWebPage::inputMethodQuery):
3496         * WebCoreSupport/EditorClientQt.cpp:
3497         (WebCore::EditorClientQt::respondToChangedSelection):
3498         * tests/qwebpage/tst_qwebpage.cpp:
3499         (tst_QWebPage::inputMethods):
3500
3501 2009-09-30  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3502
3503         Reviewed by David Hyatt.
3504
3505         Add the failed URL to the ErrorPageExtension, as it is quite
3506         useful for creating error pages.
3507
3508         * Api/qwebpage.h:
3509         * WebCoreSupport/FrameLoaderClientQt.cpp:
3510         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
3511
3512 2009-09-29  Andras Becsi  <becsi.andras@stud.u-szeged.hu>
3513
3514         Reviewed by Tor Arne Vestbø.
3515
3516         [Qt] Default font size reconciliation to 16px/13px to match other platform's de-facto standard.
3517         This fixes https://bugs.webkit.org/show_bug.cgi?id=19674.
3518
3519         * Api/qwebsettings.cpp:
3520         (QWebSettings::QWebSettings):
3521
3522 2009-09-29  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
3523
3524         Reviewed by Simon Hausmann.
3525
3526         https://bugs.webkit.org/show_bug.cgi?id=29844
3527
3528         QWebPage dependency autotest fix.
3529
3530         Fix for database() autotest. All opened databases should be removed at
3531         end of test.
3532
3533         * tests/qwebpage/tst_qwebpage.cpp:
3534         (tst_QWebPage::database):
3535
3536 2009-09-29  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
3537
3538         Reviewed by Simon Hausmann.
3539
3540         Some QWebHistory and QWebPage autotest crash fixes.
3541
3542         Some checking for m_mainFrame were added. MainFrame should be created
3543         at some point of QWebPage live cicle.
3544
3545         https://bugs.webkit.org/show_bug.cgi?id=29803
3546
3547         * Api/qwebpage.cpp:
3548         (QWebPage::~QWebPage):
3549         (QWebPage::currentFrame):
3550         (QWebPage::history):
3551         (QWebPage::selectedText):
3552         (QWebPage::updatePositionDependentActions):
3553         * tests/qwebpage/tst_qwebpage.cpp:
3554         (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
3555
3556 2009-09-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3557
3558         Reviewed by Simon Hausmann and Tor Arne Vestbø.
3559
3560         Implement QWebPage Extension for error pages, incl.
3561         an example on how to use it in QtLauncher.
3562
3563         Correct our use of ResourceError.
3564
3565         * Api/qwebpage.h:
3566         (ExtensionOption::):
3567         (ExtensionOption::ErrorPageExtensionReturn::ErrorPageExtensionReturn):
3568         * QtLauncher/main.cpp:
3569         (WebPage::supportsExtension):
3570         (MainWindow::MainWindow):
3571         (MainWindow::selectElements):
3572         (WebPage::extension):
3573         * WebCoreSupport/FrameLoaderClientQt.cpp:
3574         (WebCore::FrameLoaderClientQt::cancelledError):
3575         (WebCore::FrameLoaderClientQt::blockedError):
3576         (WebCore::FrameLoaderClientQt::cannotShowURLError):
3577         (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
3578         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
3579         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
3580         (WebCore::FrameLoaderClientQt::callErrorPageExtension):
3581         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3582         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3583         * WebCoreSupport/FrameLoaderClientQt.h:
3584
3585 2009-09-28  Andre Poenitz  <andre.poenitz@trolltech.com>
3586
3587         Reviewed by Simon Hausmann.
3588
3589         Compile fix with namespaced Qt.
3590
3591         * Api/qwebinspector_p.h:
3592
3593 2009-09-27  Joe Ligman  <joseph.ligman@mindspring.com>
3594
3595         Reviewed by Simon Hausmann.
3596
3597         [Qt] Adding API setFocus and hasFocus to QWebElement. This API is needed for
3598         clients that want to check/set the focus node of the document.
3599         https://bugs.webkit.org/show_bug.cgi?id=29682
3600
3601         * Api/qwebelement.cpp:
3602         (QWebElement::hasFocus):
3603         (QWebElement::setFocus):
3604         * Api/qwebelement.h:
3605         * tests/qwebelement/tst_qwebelement.cpp:
3606         (tst_QWebElement::hasSetFocus):
3607
3608 2009-09-25  Csaba Osztrogonac  <oszi@inf.u-szeged.hu>
3609
3610         Reviewed by Simon Hausmann.
3611
3612         [Qt] Make tst_qwebframe work if Qt built without SSL support
3613         https://bugs.webkit.org/show_bug.cgi?id=29735
3614
3615         * tests/qwebframe/tst_qwebframe.cpp: Missing #ifndef blocks added.
3616
3617 2009-09-24  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3618
3619         Reviewed by Simon Hausmann.
3620
3621         [Qt] Update QWebElement API to remove script related methods.
3622         QWebElement::evaluateScript is the only one kept, these are
3623         removed to postpone most of the QtWebKit<->JavaScript API design
3624         after 4.6.
3625         https://bugs.webkit.org/show_bug.cgi?id=29708
3626
3627         * Api/qwebelement.cpp:
3628         * Api/qwebelement.h:
3629         Methods removed:
3630         - QWebElement::callFunction
3631         - QWebElement::functions
3632         - QWebElement::scriptableProperty
3633         - QWebElement::setScriptableProperty
3634         - QWebElement::scriptableProperties
3635         * tests/qwebelement/tst_qwebelement.cpp:
3636         (tst_QWebElement::evaluateScript):
3637
3638 2009-09-25  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3639
3640         Reviewed by Simon Hausmann.
3641
3642         [Qt] Rename QWebElement::evaluateScript
3643         to QWebElement::evaluateJavaScript.
3644         https://bugs.webkit.org/show_bug.cgi?id=29709
3645
3646         * Api/qwebelement.cpp:
3647         (QWebElement::evaluateJavaScript):
3648         * Api/qwebelement.h:
3649         * tests/qwebelement/tst_qwebelement.cpp:
3650         (tst_QWebElement::evaluateJavaScript):
3651
3652 2009-09-25  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3653
3654         Reviewed by Simon Hausmann.
3655
3656         [Qt] Update the stypeProperty API of QWebElement.
3657         https://bugs.webkit.org/show_bug.cgi?id=29711
3658
3659         * Api/qwebelement.cpp:
3660         (QWebElement::styleProperty):
3661         - Merge the stypeProperty and the computedStyleProperty methods
3662         - Remove the default value for the style resolving enum
3663         - Rename ResolveRule to StyleResolveStrategy
3664         (QWebElement::setStyleProperty):
3665         - Remove the priority argument since it is possible to control the
3666           behaviour by adding !important or removing in the value.
3667         * Api/qwebelement.h:
3668         * tests/qwebelement/tst_qwebelement.cpp:
3669         (tst_QWebElement::style):
3670         (tst_QWebElement::computedStyle):
3671         * tests/qwebframe/tst_qwebframe.cpp:
3672
3673 2009-09-24  Jon Honeycutt  <jhoneycutt@apple.com>
3674
3675         Reviewed by Alice Liu.
3676
3677         * Api/qwebpage.cpp:
3678         (QWebPagePrivate::QWebPagePrivate):
3679         Pass 0 for new Page constructor argument.
3680
3681 2009-09-24  Martin Smith  <msmith@trolltech.com>
3682
3683         Reviewed by Simon Hausmann.
3684
3685         qdoc: Added \brief texts to all the since 4.6 functions.
3686
3687         * Api/qwebhistory.cpp:
3688
3689 2009-09-23  J-P Nurmi  <jpnurmi@gmail.com>
3690
3691         Reviewed by Simon Hausmann.
3692
3693         Prevent QWebPage::setView() from changing the viewport size on the fly
3694         in case the view doesn't actually change. QWebPage::setView() is
3695         called upon every QWebGraphicsItem::hoverMoveEvent(), which forced
3696         the viewport size to be equal to the size of the whole graphics view.
3697
3698         https://bugs.webkit.org/show_bug.cgi?id=29676
3699
3700         * Api/qwebpage.cpp:
3701         (QWebPage::setView):
3702
3703 2009-09-23  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
3704
3705         Reviewed by Simon Hausmann.
3706
3707         [Qt] Crash fix in QWebHistory back and forward methods.
3708         
3709         QWebHistory::back() and QWebHistory::forward() were crashing on
3710         ASSERT in WebCore::BackForwardList. The methods should check
3711         canGoBack() and canGoForward() at the beginning.
3712
3713         https://bugs.webkit.org/show_bug.cgi?id=29675
3714
3715         * Api/qwebhistory.cpp:
3716         (QWebHistory::back):
3717         (QWebHistory::forward):
3718
3719 2009-09-23  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
3720
3721         Reviewed by Simon Hausmann.
3722
3723         [Qt] Bug fix. QWebHistory should call QWebPage::updateNavigationActions
3724