0003b21c19a1215f484d914c8e6b94b63eb4be78
[WebKit-https.git] / WebKit / qt / ChangeLog
1 2010-06-17  Mark Brand  <mabrand@mabrand.nl>
2
3         Reviewed by Simon Hausmann.
4
5         [Qt] use "win32-g++*" scope to match all MinGW makespecs
6
7         The scope "win32-g++" comes from the name of the makespec. However, it
8         is frequently used to check for MinGW. This works fine as long as
9         win32-g++ is the only makespec for MinGW. Now we need the wildcard
10         to cover "win32-g++-cross" as well.
11
12         * Api/DerivedSources.pro:
13
14 2010-05-28  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
15
16         Reviewed by Simon Hausmann, Antti Koivisto
17
18         [Qt] Add internal Qt Api to configure repaint throttling parameters. 
19         https://bugs.webkit.org/show_bug.cgi?id=38401
20
21         * Api/qwebpage.cpp:
22         (QWebPagePrivate::dynamicPropertyChangeEvent):
23
24 2010-06-16  Alexis Menard <alexis.menard@nokia.com>
25
26         Reviewed by Simon Hausmann.
27
28         [Qt] Fix tiled backing store painting when calling QGraphicsWebView::setPage() after setResizesToContents(true)
29
30         When calling setPage() after setResizesToContents, the value of the property wasn't propagated
31         to the page client. Therefore the visible rect for the tiled backing store was incorrect.
32
33         Simply move the variable assignment into updateResizesToContentsForPage(), which is always called.
34
35         * Api/qgraphicswebview.cpp:
36         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
37         (QGraphicsWebView::setResizesToContents):
38
39 2010-06-16  Simon Hausmann  <simon.hausmann@nokia.com>
40
41         Rubber-stamped by Tor Arne Vestbø.
42
43         Swap WebGL and SiteSpecificQuirks attributes in the QWebSettings
44         enum, to allow for binary compatibility with qtwebkit-2.0, where
45         WebGL is not in the settings but SiteSpecificQuirks will be.
46
47         * Api/qwebsettings.h:
48
49 2010-06-15  Darin Adler  <darin@apple.com>
50
51         Fix build.
52
53         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
54         (DumpRenderTreeSupportQt::shouldClose): Call loader()->shouldClose().
55
56 2010-06-15  Yael Aharon  <yael.aharon@nokia.com>
57
58         Reviewed by Kenneth Rohde Christiansen.
59
60         [Qt] Rename NotificatioIconWrapper to NotificationWrapper
61         https://bugs.webkit.org/show_bug.cgi?id=40571
62
63         * WebCoreSupport/NotificationPresenterClientQt.cpp:
64         (WebCore::NotificationWrapper::NotificationWrapper):
65         (WebCore::NotificationWrapper::close):
66         (WebCore::NotificationWrapper::title):
67         (WebCore::NotificationWrapper::message):
68         (WebCore::NotificationWrapper::iconData):
69         (WebCore::NotificationWrapper::notificationClosed):
70         (WebCore::NotificationPresenterClientQt::displayNotification):
71         (WebCore::NotificationPresenterClientQt::cancel):
72         (WebCore::NotificationPresenterClientQt::notificationForWrapper):
73         * WebCoreSupport/NotificationPresenterClientQt.h:
74         (WebCore::NotificationWrapper::~NotificationWrapper):
75
76 2010-06-15  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
77
78         Unreviewed, Symbian build fix.
79
80         [Qt] Update the def file with recent new exports.
81
82         * symbian/eabi/QtWebKitu.def:
83
84 2010-06-15  Yael Aharon  <yael.aharon@nokia.com>
85
86         Unreviewed.
87
88         Fix typo in reviewer name in r61187
89
90 2010-06-15  Yael Aharon  <yael.aharon@nokia.com>
91
92         Reviewed by Simon Fraser.
93
94         [Qt] Build fix for Qt minimal after r61121
95         https://bugs.webkit.org/show_bug.cgi?id=40624
96
97         * WebCoreSupport/NotificationPresenterClientQt.cpp:
98         (WebCore::NotificationIconWrapper::NotificationIconWrapper):
99         (WebCore::NotificationIconWrapper::close):
100         (WebCore::NotificationIconWrapper::title):
101         (WebCore::NotificationIconWrapper::message):
102         (WebCore::NotificationIconWrapper::iconData):
103         (WebCore::NotificationIconWrapper::notificationClosed):
104         * WebCoreSupport/NotificationPresenterClientQt.h:
105         (WebCore::NotificationIconWrapper::~NotificationIconWrapper):
106
107 2010-06-14  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
108
109         Unreviewed, Symbian build fix.
110
111         [Qt] Update the def file with recent new exports.
112
113         * symbian/eabi/QtWebKitu.def:
114
115 2010-06-13  Yael Aharon  <yael.aharon@nokia.com>
116
117         Reviewed by Kenneth Rohde Christiansen.
118
119         [Qt] Platform plugin support for Notifications UI
120         https://bugs.webkit.org/show_bug.cgi?id=40005
121
122         Add an interface to the platform plugin to display notifications.
123         Implemented the notification in the example platform plugin. 
124         This interface is enabled by default, but could be turned off with
125         a build flag. The platform plugin should control its own lifecycle,
126         so now the close timer applies only when using the QSystemTrayIcon.
127         That's because QSystemTrayIcon does not inform its caller when it
128         is closed.
129
130         Changed the way NotificationPresenterClientQt is deleted because it
131         is being accessed when GC is deleting the Notification objects.
132         NotificationPresenterClientQt is now detaching itself from the
133         Notifications before it is deleted.
134
135         * Api/qwebkitplatformplugin.h:
136         (QWebNotificationPresenter::QWebNotificationPresenter):
137         (QWebNotificationPresenter::~QWebNotificationPresenter):
138         (QWebKitPlatformPlugin::):
139         * WebCoreSupport/NotificationPresenterClientQt.cpp:
140         (WebCore::NotificationIconWrapper::NotificationIconWrapper):
141         (WebCore::NotificationIconWrapper::title):
142         (WebCore::NotificationIconWrapper::message):
143         (WebCore::NotificationIconWrapper::iconData):
144         (WebCore::NotificationPresenterClientQt::~NotificationPresenterClientQt):
145         (WebCore::NotificationIconWrapper::notificationClosed):
146         (WebCore::NotificationPresenterClientQt::displayNotification):
147         (WebCore::NotificationPresenterClientQt::cancel):
148         (WebCore::NotificationPresenterClientQt::notificationForWrapper):
149         (WebCore::NotificationPresenterClientQt::removeReplacedNotificationFromQueue):
150         (WebCore::NotificationPresenterClientQt::detachNotification):
151         * WebCoreSupport/NotificationPresenterClientQt.h:
152         * WebCoreSupport/QtPlatformPlugin.cpp:
153         (WebCore::QtPlatformPlugin::createNotificationPresenter):
154         * WebCoreSupport/QtPlatformPlugin.h:
155         * examples/platformplugin/WebNotificationPresenter.cpp: Added.
156         (WebNotificationWidget::WebNotificationWidget):
157         (WebNotificationWidget::~WebNotificationWidget):
158         (WebNotificationWidget::showNotification):
159         (WebNotificationWidget::event):
160         * examples/platformplugin/WebNotificationPresenter.h: Added.
161         (WebNotificationPresenter::WebNotificationPresenter):
162         (WebNotificationPresenter::~WebNotificationPresenter):
163         (WebNotificationPresenter::showNotification):
164         * examples/platformplugin/WebPlugin.cpp:
165         (WebPlugin::supportsExtension):
166         * examples/platformplugin/WebPlugin.h:
167         (WebPlugin::createNotificationPresenter):
168         * examples/platformplugin/platformplugin.pro:
169         * examples/platformplugin/qwebkitplatformplugin.h:
170         (QWebNotificationPresenter::QWebNotificationPresenter):
171         (QWebNotificationPresenter::~QWebNotificationPresenter):
172         (QWebKitPlatformPlugin::):
173
174 2010-06-14  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
175
176         Reviewed by Laszlo Gombos.
177
178         [Qt] navigator.geolocation support for Qt port
179         https://bugs.webkit.org/show_bug.cgi?id=39724
180
181         Implement ChromeClientQt::requestGeolocationPermissionForFrame() which delegates call to QWebPage::allowGeolocationRequest
182         Layout and unit test cases for the are also added. 
183
184         * Api/qwebpage.cpp:
185         (QWebPage::allowGeolocationRequest):
186         * Api/qwebpage.h:
187         * WebCoreSupport/ChromeClientQt.cpp:
188         (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
189         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
190         (DumpRenderTreeSupportQt::setMockGeolocationPosition):
191         (DumpRenderTreeSupportQt::setMockGeolocationError):
192         * WebCoreSupport/DumpRenderTreeSupportQt.h:
193         * tests/qwebpage/tst_qwebpage.cpp:
194         (JSTestPage::shouldInterruptJavaScript):
195         (JSTestPage::allowGeolocationRequest):
196         (JSTestPage::setGeolocationPermission):
197         (tst_QWebPage::geolocationRequestJS):
198
199 2010-06-14  Ilya Tikhonovsky  <loislo@chromium.org>
200
201         Reviewed by Pavel Feldman.
202
203         WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
204         data from inspected page to WebInspector as JSON string via http. The native
205         serialization to JSON string is supported by InspectorValue's classes. This patch
206         has the implementation of sendMessageToFrontend function. WebKit version of it still
207         uses ScriptFunctionCall and will be switched to another transport a little bit later.
208         https://bugs.webkit.org/show_bug.cgi?id=40134
209
210         * WebCoreSupport/InspectorClientQt.cpp:
211         (WebCore::InspectorClientQt::InspectorClientQt):
212         (WebCore::InspectorClientQt::openInspectorFrontend):
213         (WebCore::InspectorClientQt::releaseFrontendPage):
214         (WebCore::InspectorClientQt::sendMessageToFrontend):
215         * WebCoreSupport/InspectorClientQt.h:
216
217 2010-06-13  Charles Wei  <charles.wei@torchmobile.com.cn>
218
219         Reviewed by George Staikos.
220
221         Fix the QtWebKit which doesn't recognize the MIME type of HTML/TEXT in uppercase
222         https://bugs.webkit.org/show_bug.cgi?id=39492
223
224         * WebCoreSupport/FrameLoaderClientQt.cpp:
225         (WebCore::FrameLoaderClientQt::canShowMIMEType):
226
227 2010-06-08  Robert Hogan  <robert@webkit.org>
228
229         Reviewed by Eric Seidel.
230
231         [Qt] Add support for callShouldCloseOnWebView() to DRT
232         https://bugs.webkit.org/show_bug.cgi?id=40330
233
234         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
235         (DumpRenderTreeSupportQt::shouldClose):
236         * WebCoreSupport/DumpRenderTreeSupportQt.h:
237
238 2010-06-12  Dawit Alemayehu  <adawit@kde.org>
239
240         Reviewed by Kenneth Rohde Christiansen.
241
242         Added an attribute to enable/disable site specific quirks mode in WebKit. 
243         The attribute is enabled by default.
244
245         https://bugs.webkit.org/show_bug.cgi?id=40073
246
247         * Api/qwebsettings.cpp:
248         (QWebSettingsPrivate::apply):
249         (QWebSettings::QWebSettings):
250         * Api/qwebsettings.h:
251
252 2010-06-12  Robert Hogan  <robert@webkit.org>
253
254         Reviewed by Kenneth Rohde Christiansen.
255
256         [Qt] Fix tst_qwebframe regression from http://trac.webkit.org/changeset/61062
257
258         Only use cacheableBindingRootObject() if the object has QtOwnership.
259
260         https://bugs.webkit.org/show_bug.cgi?id=40527
261
262         * Api/qwebframe.cpp:
263         (QWebFrame::addToJavaScriptWindowObject):
264
265 2010-06-13  Robert Hogan  <robert@webkit.org>
266
267         Reviewed by Alexey Proskuryakov.
268
269         FrameLoader::clear() clears JS objects that cached pages later rely on
270
271         https://bugs.webkit.org/show_bug.cgi?id=37725
272         https://bugs.webkit.org/show_bug.cgi?id=31626
273
274         Fix the following tests for Qt:
275
276         fast/events/pageshow-pagehide-on-back-cached.html
277         fast/events/pageshow-pagehide-on-back-cached-with-frames.html
278         fast/loader/input-element-page-cache-crash.html
279         fast/dom/Window/timer-resume-on-navigation-back.html
280         loader/go-back-to-different-window-size.html
281         fast/dom/javascript-url-crash-function.html
282         fast/dom/location-new-window-no-crash.html
283         http/tests/security/javascriptURL/xss-ALLOWED-from-javascript-url-window-open.html
284
285         which currently fail because the page's Qt-bindings runtime objects are
286         cleared when navigating away from the page containing them.
287
288         Track Qt-bindings objects in a separate ScriptController::cacheableRootBindingObject().
289         RuntimeObjects tracked by this root object will not get invalidated on page navigations,
290         so they will still be available when the pages containing them are retrieved from the
291         b/f cache.
292
293         This means the Qt bindings objects will only get cleared on Frame::pageDestroyed().
294
295         * Api/qwebframe.cpp:
296         (QWebFrame::addToJavaScriptWindowObject):
297
298 2010-06-12  No'am Rosenthal  <noam.rosenthal@nokia.com>
299
300         Reviewed by Kenneth Rohde Christiansen.
301
302         [Qt] Add documentation to the QtWebkit bridge
303         https://bugs.webkit.org/show_bug.cgi?id=35861
304
305         The previous accepted patch was actually a faulty one; It was hard to trace since it's just a documentation
306         change. The new patch amends that, with the correct snippets and grammar fixes.
307
308         * docs/qtwebkit-bridge.qdoc:
309         * docs/webkitsnippets/qtwebkit_bridge_snippets.cpp:
310         (wrapInFunction):
311
312 2010-06-12  Robert Hogan  <robert@webkit.org>
313
314         Reviewed by Kenneth Rohde Christiansen.
315
316         [Qt] Back-forward list dumping is incorrect
317
318         https://bugs.webkit.org/show_bug.cgi?id=36392
319
320         Support dumping child history items in DRT.
321
322         Unskip:
323
324         fast/loader/frame-src-change-added-to-history.html
325         fast/loader/frame-src-change-not-added-to-history.html
326         fast/loader/frame-location-change-not-added-to-history.html
327
328         * Api/qwebhistory.cpp:
329         (QWebHistoryItemPrivate::core):
330         * Api/qwebhistory.h:
331         * Api/qwebhistory_p.h:
332         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
333         (DumpRenderTreeSupportQt::isTargetItem):
334         (DumpRenderTreeSupportQt::historyItemTarget):
335         (DumpRenderTreeSupportQt::getChildHistoryItems):
336         * WebCoreSupport/DumpRenderTreeSupportQt.h:
337
338 2010-06-11  Jesus Sanchez-Palencia  <jesus@webkit.org>
339
340         Reviewed by Kenneth Rohde Christiansen.
341
342         [Qt] Typo error in QWebPluginFactory Documentation
343         https://bugs.webkit.org/show_bug.cgi?id=40490
344
345         * Api/qwebpluginfactory.cpp:
346
347 2010-06-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
348
349         Reviewed by nobody, build fix.
350
351         [Qt] Second fix attempt for the build break introduced by r61002.
352
353         * Api/qwebpage.cpp:
354         (QWebPagePrivate::QWebPagePrivate):
355
356 2010-06-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
357
358         Reviewed by nobody, build fix.
359
360         [Qt] Fix build break introduced by r61002.
361
362         * Api/qwebpage.cpp:
363         (QWebPagePrivate::QWebPagePrivate):
364
365 2010-05-31  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
366
367         Reviewed by Simon Hausmann.
368
369         [Qt] Implement the simple text code path.
370         https://bugs.webkit.org/show_bug.cgi?id=40077
371
372         Remove the FONT_FAST_PATH macro and use the Qt's
373         fast text implementation instead of the one of WebKit.
374
375         The Qt::TextBypassShaping flag is used to tell Qt to
376         only use the glyph advances.
377
378         Qt 4.7 is needed to get this flag thus the complex path is always
379         used if QtWebKit is compiled against an earlier version.
380
381         Contrary to the WebKit's implementation, the complex code path
382         is taken if the text is RightToLeft, justified or is formatted
383         with non-zero letter or word spacing.
384
385         * Api/qwebpage.cpp:
386         (QWebPagePrivate::QWebPagePrivate):
387
388 2010-06-10  Yael Aharon  <yael.aharon@nokia.com>
389
390         Reviewed by Kenneth Rohde Christiansen.
391
392         [Qt] Support for loading notification icons
393         https://bugs.webkit.org/show_bug.cgi?id=40004
394
395         Take into use the icon that was loaded for the notification.
396
397         * WebCoreSupport/NotificationPresenterClientQt.cpp:
398         (WebCore::NotificationPresenterClientQt::show):
399
400 2010-06-10  Mahesh Kulkarni  <mahesh.kulkarni@nokia.com>
401
402         Reviewed by Simon Hausmann.
403
404         [Qt] Memory leak in qwebpage unit test cases
405         https://bugs.webkit.org/show_bug.cgi?id=40405
406
407         * tests/qwebpage/tst_qwebpage.cpp:
408         (tst_QWebPage::infiniteLoopJS):
409
410 2010-06-10  Raine Makelainen  <raine.makelainen@nokia.com>
411
412         Reviewed by Kenneth Rohde Christiansen.
413
414         Impossible to set input method hints based HTML5 input types
415         https://bugs.webkit.org/show_bug.cgi?id=40107
416
417         EditorClientQt to set input method hints for "number", "tel",
418         "email", and "url" HTML input elements.
419
420         Tests for HTML input elements and input method hints added for
421         QGraphicsWebView and QWebView.
422
423         * WebCoreSupport/EditorClientQt.cpp:
424         (WebCore::EditorClientQt::setInputMethodState):
425         * tests/qgraphicswebview/resources/input_types.html: Added.
426         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
427         (GraphicsWebView::GraphicsWebView):
428         (GraphicsWebView::fireMouseClick):
429         (tst_QGraphicsWebView::focusInputTypes):
430         * tests/qgraphicswebview/tst_qgraphicswebview.qrc: Added.
431         * tests/qwebview/resources/input_types.html: Added.
432         * tests/qwebview/tst_qwebview.cpp:
433         (WebView::fireMouseClick):
434         (tst_QWebView::focusInputTypes):
435         * tests/qwebview/tst_qwebview.qrc:
436
437 2010-06-10  Eric Seidel  <eric@webkit.org>
438
439         Reviewed by Adam Barth.
440
441         Reduce FrameView.h includes to speed up build times
442         https://bugs.webkit.org/show_bug.cgi?id=40408
443
444         * Api/qwebframe.cpp:
445          - Include RenderLayer.h since it's used in this file.
446
447 2010-06-10  Andy Shaw  <andy.shaw@nokia.com>
448
449         Reviewed by Simon Hausmann.
450
451         REGRESSION: [Qt] When dragging onto a page that handles the drag in Javascript it will be a move and not a copy by default
452         https://bugs.webkit.org/show_bug.cgi?id=40401
453
454         The correct pattern in Qt for Dnd events is to use acceptProposedAction() instead
455         of accept().
456
457         * Api/qwebpage.cpp:
458         (QWebPagePrivate::dragEnterEvent):
459         (QWebPagePrivate::dragMoveEvent):
460         (QWebPagePrivate::dropEvent):
461
462 2010-06-09  Pierre Rossi  <pierre.rossi@nokia.com>
463
464         Reviewed by Kenneth Rohde Christiansen.
465
466         QWebPage::findText() does not clear selection when passed empty string
467         https://bugs.webkit.org/show_bug.cgi?id=31779
468
469         * Api/qwebpage.cpp:
470         (QWebPage::findText):
471         * tests/qwebpage/tst_qwebpage.cpp:
472         (tst_QWebPage::findText):
473
474 2010-06-09  Anders Bakken  <agbakken@gmail.com>
475
476         Reviewed by David Levin.
477
478         [Qt] PageClientQt.h has coding-style errors
479         https://bugs.webkit.org/show_bug.cgi?id=40257
480
481         * WebCoreSupport/PageClientQt.h:
482
483 2010-06-09  Anders Bakken  <agbakken@gmail.com>
484
485         Reviewed by David Levin.
486
487         [Qt] InspectorClientQt.cpp has coding-style errors
488         https://bugs.webkit.org/show_bug.cgi?id=40255
489
490         * WebCoreSupport/InspectorClientQt.cpp:
491
492 2010-06-09  Anders Bakken  <agbakken@gmail.com>
493
494         Reviewed by David Levin.
495
496         [Qt] FrameLoaderClientQt.h has coding-style errors
497         https://bugs.webkit.org/show_bug.cgi?id=40251
498
499         * WebCoreSupport/FrameLoaderClientQt.h:
500         (WebCore::FrameLoaderClientQt::dispatchWillSendSubmitEvent):
501
502 2010-06-09  Anders Bakken  <agbakken@gmail.com>
503
504         Reviewed by Kenneth Rohde Christiansen.
505
506         [Qt] EditorClientQt.h has coding-style errors
507         https://bugs.webkit.org/show_bug.cgi?id=40249
508
509         * WebCoreSupport/EditorClientQt.h:
510
511 2010-06-09  Anders Bakken  <agbakken@gmail.com>
512
513         Reviewed by David Levin.
514
515         [Qt] EditCommandQt.cpp/h have coding-style errors
516         https://bugs.webkit.org/show_bug.cgi?id=40248
517
518         * WebCoreSupport/EditCommandQt.cpp:
519         (EditCommandQt::EditCommandQt):
520         (EditCommandQt::~EditCommandQt):
521         (EditCommandQt::redo):
522         (EditCommandQt::undo):
523         * WebCoreSupport/EditCommandQt.h:
524
525 2010-06-09  Anders Bakken  <agbakken@gmail.com>
526
527         Reviewed by David Levin.
528
529         [Qt] DumpRenderTreeSupportQt.cpp has coding-style errors
530         https://bugs.webkit.org/show_bug.cgi?id=40247
531
532         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
533         (DumpRenderTreeSupportQt::firstRectForCharacterRange):
534
535 2010-06-09  Anders Bakken  <agbakken@gmail.com>
536
537         Reviewed by David Levin.
538
539         [Qt] DragClientQt.cpp has coding-style errors
540         https://bugs.webkit.org/show_bug.cgi?id=40246
541
542         * WebCoreSupport/DragClientQt.cpp:
543         (WebCore::DragClientQt::startDrag):
544
545 2010-06-09  Anders Bakken  <agbakken@gmail.com>
546
547         Reviewed by Laszlo Gombos.
548
549         [Qt] ContextMenuClientQt.h has coding-style errors
550         https://bugs.webkit.org/show_bug.cgi?id=40242
551
552         * WebCoreSupport/ContextMenuClientQt.h:
553
554 2010-06-09  Anders Bakken  <agbakken@gmail.com>
555
556         Reviewed by David Levin.
557
558         [Qt] ChromeClientQt.cpp has coding-style errors
559         https://bugs.webkit.org/show_bug.cgi?id=40240
560
561         * WebCoreSupport/ChromeClientQt.cpp:
562         (WebCore::ChromeClientQt::pageRect):
563         (WebCore::ChromeClientQt::createWindow):
564         (WebCore::ChromeClientQt::runJavaScriptAlert):
565         (WebCore::ChromeClientQt::runJavaScriptConfirm):
566         (WebCore::ChromeClientQt::runJavaScriptPrompt):
567         (WebCore::ChromeClientQt::print):
568         (WebCore::ChromeClientQt::attachRootGraphicsLayer):
569         (WebCore::ChromeClientQt::visibleRectForTiledBackingStore):
570
571 2010-06-09  Sheriff Bot  <webkit.review.bot@gmail.com>
572
573         Unreviewed, rolling out r60889.
574         http://trac.webkit.org/changeset/60889
575         https://bugs.webkit.org/show_bug.cgi?id=40365
576
577         gtk bot has some kind of memory corruption (Requested by
578         loislo on #webkit).
579
580         * WebCoreSupport/InspectorClientQt.cpp:
581         (WebCore::InspectorClientQt::InspectorClientQt):
582         (WebCore::InspectorClientQt::openInspectorFrontend):
583         (WebCore::InspectorFrontendClientQt::InspectorFrontendClientQt):
584         (WebCore::InspectorFrontendClientQt::closeWindow):
585         * WebCoreSupport/InspectorClientQt.h:
586
587 2010-06-07  Ilya Tikhonovsky  <loislo@chromium.org>
588
589         Reviewed by Pavel Feldman.
590
591         WebInspector: On the way to Remote Debugging we want to transfer dom/timeline/etc
592         data from inspected page to WebInspector as JSON string via http. The native
593         serialization to JSON string is supported by InspectorValue's classes. This patch
594         has the implementation of sendMessageToFrontend function. WebKit version of it still
595         uses ScriptFunctionCall and will be switched to another transport a little bit later.
596         https://bugs.webkit.org/show_bug.cgi?id=40134
597
598         * WebCoreSupport/InspectorClientQt.cpp:
599         (WebCore::InspectorClientQt::InspectorClientQt):
600         (WebCore::InspectorClientQt::openInspectorFrontend):
601         (WebCore::InspectorClientQt::releaseFrontendPage):
602         (WebCore::InspectorClientQt::sendMessageToFrontend):
603         * WebCoreSupport/InspectorClientQt.h:
604
605 2010-06-08  Antonio Gomes  <tonikitoo@webkit.org>
606
607         Reviewed by Ojan Vafai and Darin Adler.
608
609         Refactor platform dependent editing behavior code out of Settings
610         https://bugs.webkit.org/show_bug.cgi?id=39854
611
612         EditingBehavior enum was renamed to EditingBehaviorTypes and moved out from Settings.h to
613         EditingBehaviorTypes.h . Call sites in WebKit/ adjusted accordingly.
614
615         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
616         (DumpRenderTreeSupportQt::setEditingBehavior):
617
618 2010-06-07  Anders Bakken  <agbakken@gmail.com>
619
620         Reviewed by David Levin.
621
622         [Qt] NotificationPresenterClientQt.cpp has coding-style errors
623         https://bugs.webkit.org/show_bug.cgi?id=40256
624
625         * WebCoreSupport/NotificationPresenterClientQt.cpp:
626         (WebCore::NotificationPresenterClientQt::show):
627
628 2010-06-06  Antonio Gomes  <tonikitoo@webkit.org>, Laszlo Gombos  <laszlo.1.gombos@nokia.com>
629
630         Reviewed by Kenneth Christiansen, Eric Seidel.
631
632         [Qt] Expose the editing behavior setting in DRT to test all editing code paths
633         https://bugs.webkit.org/show_bug.cgi?id=39680
634
635         Make setEditingBehavior() a no-operation if the editingBehavior
636         argument is not recognized to avoid using an uninitialized variable.
637
638         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
639         (DumpRenderTreeSupportQt::setEditingBehavior):
640
641 2010-06-04  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
642
643         Symbian build fix.
644
645         [Qt] Updated the def file with recent new exports.
646
647         * symbian/eabi/QtWebKitu.def:
648
649 2010-06-03  Yael Aharon  <yael.aharon@nokia.com>
650
651         Reviewed by Laszlo Gombos.
652
653         [Qt] Don't send notifications event after the page was navigated away
654         https://bugs.webkit.org/show_bug.cgi?id=40127
655
656         Added a check before sending events to the notification and before logging.
657
658         * WebCoreSupport/NotificationPresenterClientQt.cpp:
659         (WebCore::NotificationPresenterClientQt::cancel):
660         (WebCore::NotificationPresenterClientQt::sendEvent):
661
662 2010-06-02  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
663
664         Reviewed by Shinichiro Hamaji.
665
666         [Qt] Fix compilation with QT_NO_PROPERTIES
667         https://bugs.webkit.org/show_bug.cgi?id=38324
668
669         * Api/qwebpage.cpp:
670         (QWebPage::event):
671         * Api/qwebpage_p.h:
672         * WebCoreSupport/InspectorClientQt.cpp:
673         (WebCore::InspectorClientQt::openInspectorFrontend):
674
675 2010-06-02  Luiz Agostini  <luiz.agostini@openbossa.org>
676
677         Reviewed by Simon Hausmann.
678
679         [Qt] Shared platform plugin
680         https://bugs.webkit.org/show_bug.cgi?id=39968
681
682         Allow several instances of class QtPlatformPlugin to share the QWebKitPlatformPlugin
683         object provided by a plugin.
684
685         Updated plugin interface version number due to ABI breaking change.
686
687         * Api/qwebkitplatformplugin.h:
688         (QWebKitPlatformPlugin::~QWebKitPlatformPlugin):
689         * WebCoreSupport/QtPlatformPlugin.cpp:
690         (WebCore::QtPlatformPlugin::load):
691         (WebCore::QtPlatformPlugin::~QtPlatformPlugin):
692         (WebCore::QtPlatformPlugin::plugin):
693         * WebCoreSupport/QtPlatformPlugin.h:
694         * examples/platformplugin/qwebkitplatformplugin.h:
695         (QWebKitPlatformPlugin::~QWebKitPlatformPlugin):
696
697 2010-06-02  Raine Makelainen  <raine.makelainen@nokia.com>
698
699         Reviewed by Kenneth Rohde Christiansen.
700
701         [Qt] On Maemo6 platform auto upper case and predictive text input method hints are not disabled for password field.
702         https://bugs.webkit.org/show_bug.cgi?id=40062
703        
704         Introducing Q_WS_MAEMO_6 for Maemo6 specific code. Enabling code that sets input 
705         method hints Qt::ImhNoAutoUppercase and Qt::ImhNoPredictiveText true for Maemo6.
706
707         * WebCoreSupport/EditorClientQt.cpp:
708         (WebCore::EditorClientQt::setInputMethodState):
709
710 2010-06-01  Yael Aharon  <yael.aharon@nokia.com>
711
712         Reviewed by Kenneth Rohde Christiansen.
713
714         [Qt] Fix the lifecycle of notification objects
715         https://bugs.webkit.org/show_bug.cgi?id=40003
716
717         Notification objects are not tightly related to the page that created them,
718         and should be decoupled from the page.
719         Create one NotificationPresenter that handles all notifications.
720         Add ref/deref to the notification objects when they are added/removed from
721         the queue of active notifications. The same technique is used for XMLHttpRequest.
722         Instead of deleting all notifications associated with a page when the page is navigated,
723         delete them on a timer, using the same timeout that QSystemTrayIcon is using.
724         Break up the show() method into smaller methods.
725         Use OwnPtr instead of raw pointer for QSystemTrayIcon.
726         Move creating the QIcon to just before showing it in the QSyetemTrayIcon.
727
728         No new tests as this is just a refactoring. Existing notifications test cover the code.
729
730         * Api/qwebpage.cpp:
731         (QWebPagePrivate::QWebPagePrivate):
732         (QWebPagePrivate::~QWebPagePrivate):
733         * Api/qwebpage_p.h:
734         * WebCoreSupport/ChromeClientQt.cpp:
735         (WebCore::ChromeClientQt::notificationPresenter):
736         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
737         (DumpRenderTreeSupportQt::setNotificationsReceiver):
738         (DumpRenderTreeSupportQt::allowNotificationForOrigin):
739         * WebCoreSupport/DumpRenderTreeSupportQt.h:
740         * WebCoreSupport/FrameLoaderClientQt.cpp:
741         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
742         * WebCoreSupport/NotificationPresenterClientQt.cpp:
743         (WebCore::NotificationPresenterClientQt::notificationPresenter):
744         (WebCore::NotificationIconWrapper::NotificationIconWrapper):
745         (WebCore::NotificationIconWrapper::~NotificationIconWrapper):
746         (WebCore::NotificationIconWrapper::close):
747         (WebCore::NotificationPresenterClientQt::NotificationPresenterClientQt):
748         (WebCore::NotificationPresenterClientQt::removeClient):
749         (WebCore::NotificationPresenterClientQt::show):
750         (WebCore::NotificationPresenterClientQt::displayNotification):
751         (WebCore::NotificationPresenterClientQt::cancel):
752         (WebCore::NotificationPresenterClientQt::notificationObjectDestroyed):
753         (WebCore::NotificationPresenterClientQt::requestPermission):
754         (WebCore::NotificationPresenterClientQt::sendEvent):
755         (WebCore::NotificationPresenterClientQt::removeReplacedNotificationFromQueue):
756         (WebCore::NotificationPresenterClientQt::dumpReplacedIdText):
757         (WebCore::NotificationPresenterClientQt::dumpShowText):
758         * WebCoreSupport/NotificationPresenterClientQt.h:
759         (WebCore::NotificationPresenterClientQt::addClient):
760
761 2010-06-01  Noam Rosenthal  <noam.rosenthal@nokia.com>
762
763         Reviewed by Kenneth Rohde Christiansen.
764
765         [Qt] Add documentation to the QtWebkit bridge
766         https://bugs.webkit.org/show_bug.cgi?id=35861
767
768         This patch includes comprehensive qdoc documentation for the QtWebkit bridge.
769
770         * docs/qtwebkit-bridge.qdoc: Added.
771         * docs/qtwebkit.qdoc:
772         * docs/webkitsnippets/doc_src_qtscript.qdoc: Added.
773         * docs/webkitsnippets/qtwebkit_bridge_snippets.cpp: Added.
774         (wrapInFunction):
775
776 2010-06-01  Raine Makelainen  <raine.makelainen@nokia.com>
777
778         Reviewed by Simon Hausmann.
779
780         [Qt]: REGRESSION(r58703): QWebSettings::JavascriptCanAccessClipboard has wrong case in "Javascript" part.
781         https://bugs.webkit.org/show_bug.cgi?id=39878        
782
783         QWebSettings::JavaScriptCanAccessClipboard reverted back to
784         QWebSettings::JavascriptCanAccessClipboard. QWebSettings::DOMPasteAllowed enum removed.
785
786         Value of QWebSettings::JavascriptCanAccessClipboard to setDOMPasteAllowed and 
787         setJavaScriptCanAccessClipboard of WebCore::Settings.
788
789         * Api/qwebsettings.cpp:
790         (QWebSettingsPrivate::apply):
791         * Api/qwebsettings.h:
792
793 2010-06-01  Simon Hausmann  <simon.hausmann@nokia.com>
794
795         Reviewed by Laszlo Gombos.
796
797         [Qt] Rename versioning .pri file to what Qt's mkspecs/features/qt.pri expects.
798
799         * qt_webkit_version.pri: Renamed from WebKit/qt/qtwebkit_version.pri.
800
801 2010-05-31  Lyon Chen  <liachen@rim.com>
802
803         Reviewed by Kent Tamura.
804
805         Enum value FORWARD, BACKWARD, RIGHT, LEFT are causing macro conflicts.
806         https://bugs.webkit.org/show_bug.cgi?id=35530
807
808         Change enum EAlteration from { MOVE, EXTEND } to { AlterationMove, AlterationExtend } and enum EDirection { FORWARD, BACKWARD, RIGHT, LEFT} to { DirectionForward, DirectionBackward, DirectionRight, DirectionLeft } to avoid macro conflict, and also better coding style conformance.
809
810         * WebCoreSupport/EditorClientQt.cpp:
811         (WebCore::EditorClientQt::handleKeyboardEvent):
812
813 2010-05-31  Oswald Buddenhagen  <oswald.buddenhagen@nokia.com>
814
815         Reviewed by Simon Hausmann.
816
817         [Qt] Escape backslashes in the .pro files
818
819         qmake in Qt 4.7 warns about unescaped backspaces and deprecates them.
820
821         * Api/DerivedSources.pro:
822         * docs/docs.pri:
823
824 2010-05-30  Lyon Chen  <liachen@rim.com>
825
826         Reviewed by Kent Tamura.
827
828         This is a coding style cleanup before fixing to bug 35530.
829
830         Enum value FORWARD, BACKWARD, RIGHT, LEFT are causing macro conflicts.
831         https://bugs.webkit.org/show_bug.cgi?id=35530
832
833         * WebCoreSupport/EditorClientQt.cpp:
834         (WebCore::EditorClientQt::registerCommandForUndo):
835         (WebCore::EditorClientQt::handleKeyboardEvent):
836
837 2010-05-29  Dawit Alemayehu  <adawit@kde.org>
838
839         Reviewed by Kenneth Rohde Christiansen.
840
841         Added a WebAction to stop all pending page refresh/redirect
842         requests set through the <meta http-equiv="refresh"...> tag.
843
844         https://bugs.webkit.org/show_bug.cgi?id=29899
845
846         * Api/qwebpage.cpp:
847         (QWebPage::triggerAction):
848         * Api/qwebpage.h:
849         * tests/qwebpage/tst_qwebpage.cpp:
850         (tst_QWebPage::testStopScheduledPageRefresh):
851
852 2010-05-28  Antti Koivisto  <koivisto@iki.fi>
853
854         Reviewed by Kenneth Rohde Christiansen.
855     
856         Add a missing #if ENABLE(), some null checking.
857
858         * Api/qwebpage.cpp:
859         (QWebPagePrivate::dynamicPropertyChangeEvent):
860
861 2010-05-28  Antti Koivisto  <koivisto@iki.fi>
862
863         Reviewed by Kenneth Rohde Christiansen.
864
865         https://bugs.webkit.org/show_bug.cgi?id=39874
866         [Qt] Make tiled backing store more configurable
867     
868         Make tile size, tile creation delay and tiling area dynamically configurable.
869
870         * Api/qwebpage.cpp:
871         (QWebPagePrivate::dynamicPropertyChangeEvent):
872
873 2010-05-28  Yael Aharon  <yael.aharon@nokia.com>
874
875         Unreviewed build fix after r60348.
876
877         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
878         (DumpRenderTreeSupportQt::setNotificationsReceiver):
879
880 2010-05-28  Yael Aharon  <yael.aharon@nokia.com>
881
882         Reviewed by Laszlo Gombos.
883
884         [Qt] Pass all web notification layout tests
885         https://bugs.webkit.org/show_bug.cgi?id=39146
886
887         Add support for multiple simultaneous notifications.
888         Add a private callback mechanism to the client for security checks. 
889         Notifications are disabled if the client does not set the callbacks. 
890         Support replaceId and cancel.
891         Send close and display events when needed.   
892
893         * Api/qwebpage.cpp:
894         (QWebPagePrivate::QWebPagePrivate):
895         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
896         (DumpRenderTreeSupportQt::setNotificationsReceiver):
897         (DumpRenderTreeSupportQt::allowNotificationForOrigin):
898         (DumpRenderTreeSupportQt::setCheckPermissionFunction):
899         (DumpRenderTreeSupportQt::setRequestPermissionFunction):
900         * WebCoreSupport/DumpRenderTreeSupportQt.h:
901         * WebCoreSupport/FrameLoaderClientQt.cpp:
902         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
903         * WebCoreSupport/NotificationPresenterClientQt.cpp:
904         (NotificationIconWrapper::NotificationIconWrapper):
905         (NotificationIconWrapper::~NotificationIconWrapper):
906         (NotificationPresenterClientQt::NotificationPresenterClientQt):
907         (NotificationPresenterClientQt::show):
908         (NotificationPresenterClientQt::cancel):
909         (NotificationPresenterClientQt::notificationObjectDestroyed):
910         (NotificationPresenterClientQt::requestPermission):
911         (NotificationPresenterClientQt::checkPermission):
912         (NotificationPresenterClientQt::allowNotificationForOrigin):
913         (NotificationPresenterClientQt::clearNotificationsList):
914         (NotificationPresenterClientQt::sendEvent):
915         * WebCoreSupport/NotificationPresenterClientQt.h:
916         (WebCore::NotificationPresenterClientQt::~NotificationPresenterClientQt):
917         (WebCore::NotificationPresenterClientQt::setReceiver):
918
919 2010-05-27  Luiz Agostini  <luiz.agostini@openbossa.org>
920
921         Reviewed by Kenneth Rohde Christiansen.
922
923         [Qt] Platform plugin example
924         https://bugs.webkit.org/show_bug.cgi?id=39489
925
926         Adding a Qt platform plugin example to repository.
927
928         * examples/platformplugin/README: Added.
929         * examples/platformplugin/WebPlugin.cpp: Added.
930         (Popup::populateList):
931         (Popup::onItemSelected):
932         (WebPopup::WebPopup):
933         (WebPopup::~WebPopup):
934         (WebPopup::createSingleSelectionPopup):
935         (WebPopup::createMultipleSelectionPopup):
936         (WebPopup::createPopup):
937         (WebPopup::show):
938         (WebPopup::hide):
939         (WebPopup::popupClosed):
940         (WebPopup::itemClicked):
941         (SingleSelectionPopup::SingleSelectionPopup):
942         (MultipleItemListDelegate::MultipleItemListDelegate):
943         (MultipleItemListDelegate::paint):
944         (MultipleSelectionPopup::MultipleSelectionPopup):
945         (WebPlugin::supportsExtension):
946         * examples/platformplugin/WebPlugin.h: Added.
947         (Popup::Popup):
948         (WebPlugin::createSelectInputMethod):
949         * examples/platformplugin/platformplugin.pro: Added.
950         * examples/platformplugin/qwebkitplatformplugin.h: Copied from WebKit/qt/Api/qwebkitplatformplugin.h.
951         (QWebSelectData::~QWebSelectData):
952         (QWebSelectData::):
953         (QWebSelectMethod::~QWebSelectMethod):
954         (QWebKitPlatformPlugin::~QWebKitPlatformPlugin):
955         (QWebKitPlatformPlugin::):
956
957 2010-05-25  Antonio Gomes  <tonikitoo@webkit.org>
958
959         Reviewed by Ojan Vafai.
960
961         [Qt] Expose the editing behavior setting in DRT to test all editing code paths
962         https://bugs.webkit.org/show_bug.cgi?id=39680
963
964         Add support to Qt's DRT to setting the editing behavior. Patch is a follow up of
965         bug 38603, which just stubbed out the Qt bits of it.
966
967         * WebCoreSupport/DumpRenderTreeSupportQt.cpp: Implementation of editing behavior control.
968         (DumpRenderTreeSupportQt::setEditingBehavior):
969         * WebCoreSupport/DumpRenderTreeSupportQt.h:
970
971 2010-05-24  Robert Hogan  <robert@webkit.org>
972
973         Reviewed by Laszlo Gombos.
974
975         [Qt] DRT Support for removeOriginAccessWhitelistEntry
976
977         Unskips http/tests/xmlhttprequest/origin-whitelisting-removal.html
978
979         [Qt] DRT Support for removeOriginAccessWhitelistEntry
980         https://bugs.webkit.org/show_bug.cgi?id=39565
981
982         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
983         (DumpRenderTreeSupportQt::removeWhiteListAccessFromOrigin):
984         * WebCoreSupport/DumpRenderTreeSupportQt.h:
985
986 2010-05-24  Darin Adler  <darin@apple.com>
987
988         Reviewed by Eric Seidel.
989
990         Move view-related functions from Frame to FrameView
991         https://bugs.webkit.org/show_bug.cgi?id=39366
992
993         * Api/qwebframe.cpp:
994         (QWebFrame::setTextSizeMultiplier): Call functions on FrameView.
995         (QWebFrame::textSizeMultiplier): Ditto.
996         (QWebFrame::setZoomFactor): Ditto.
997         (QWebFrame::zoomFactor): Ditto.
998         * Api/qwebpage.cpp:
999         (QWebPage::setContentEditable): Removed call to empty function,
1000         removeEditingStyleFromBodyElement.
1001
1002 2010-05-23  Noam Rosenthal  <noam.rosenthal@nokia.com>
1003
1004         Reviewed by Kenneth Rohde Christiansen.
1005
1006         [Qt] GraphicsLayer: The rocket animation doesn't scroll together with the page
1007         https://bugs.webkit.org/show_bug.cgi?id=39517
1008
1009         A previous fix to this issue was overridden by the PageClientQt refactor. Reapplying.
1010
1011         * WebCoreSupport/PageClientQt.cpp:
1012         (WebCore::PageClientQGraphicsWidget::update):
1013
1014 2010-05-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1015
1016         Reviewed by Kenneth Rohde Christiansen.
1017
1018         [Qt] Update the Symbian version for the user agent
1019         https://bugs.webkit.org/show_bug.cgi?id=38389
1020
1021         Fixes a regression introduced by r58648. Ensure that the "Symbian" string
1022         is only listed one time in the User Agent string.
1023
1024         In addition make an effort to align the User Agent string to already
1025         released WebKit based products for Symbian.
1026
1027         * Api/qwebpage.cpp:
1028         (QWebPage::userAgentForUrl):
1029
1030 2010-05-21  Steve Block  <steveblock@google.com>
1031
1032         Reviewed by Jeremy Orlow.
1033
1034         Add DeviceOrientation and DeviceOrientationClient
1035         https://bugs.webkit.org/show_bug.cgi?id=39479
1036
1037         * Api/qwebpage.cpp:
1038         (QWebPagePrivate::QWebPagePrivate):
1039
1040 2010-05-21  Simon Hausmann  <simon.hausmann@nokia.com>
1041
1042         Symbian build fix.
1043
1044         [Qt] Updated the wins def file with one new export.
1045
1046         The DRT symbols are still missing, but I can't build DRT ;(
1047
1048         * symbian/bwins/QtWebKitu.def:
1049
1050 2010-05-20  Janne Koskinen  <janne.p.koskinen@digia.com>
1051
1052         Reviewed by Kenneth Rohde Christiansen.
1053
1054         [Qt] WINSCW compile fix for qwebframe test
1055         https://bugs.webkit.org/show_bug.cgi?id=38722
1056
1057         WINSCW cannot determine template type up the hierarchy
1058         to common base class.
1059
1060         * tests/qwebframe/tst_qwebframe.cpp:
1061
1062 2010-05-20  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1063
1064         Reviewed by Kenneth Rohde Christiansen.
1065
1066         Remove unused "old style" private APIs
1067
1068         These symbols were introduced after QtWebKit v4.6
1069         so no-one should be using them
1070
1071         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1072
1073 2010-05-20  Rajiv Ramanasankaran  <rajiv.ramanasankaran@nokia.com>
1074
1075         Reviewed by Simon Hausmann.
1076         
1077         [Qt] QWebPage::inputMethodQuery() returns wrong values for Qt::ImCursorPosition, Qt::ImAnchorPosition
1078         https://bugs.webkit.org/show_bug.cgi?id=38779
1079
1080         The earlier implementation was written with the assumption that in this scenario the 
1081         anchor position always corresponds to the START index and that the current cursor position
1082         always corresponds to the END index in WebKit.
1083
1084         Updated the implementation of QWebPage::inputMethodQuery(Qt::ImCursorPosition) and 
1085         QWebPage::inputMethodQuery(Qt::ImAnchorPosition) for the case where the Editor is not in
1086         composition mode. In the non-composition mode, the Anchor and the Current cursor positions
1087         correspond to the Base and Extent position offsets in WebKit.
1088
1089         Also added the auto-tests for the RIGHT to LEFT and LEFT to RIGHT selections.
1090
1091         * Api/qwebpage.cpp:
1092         (QWebPage::inputMethodQuery): Now returning correct values for Qt::ImCursorPosition and
1093         Qt::ImAnchorPosition when the Editor is not in composition mode. 
1094         * tests/qwebpage/tst_qwebpage.cpp:
1095         (tst_QWebPage::inputMethods): Added auto-tests for RIGHT to LEFT and LEFT to RIGHT selections
1096
1097 2010-05-20  Luiz Agostini  <luiz.agostini@openbossa.org>
1098
1099         Reviewed by Kenneth Rohde Christiansen.
1100
1101         [Qt] Skipping popup focus test for maemo
1102         https://bugs.webkit.org/show_bug.cgi?id=39314
1103
1104         Skipping popup focus test for maemo in qwebframe auto test.
1105
1106         The test method tst_QWebFrame::popupFocus() was testing popup focus AND input
1107         field focus. The input field focus has been removed from the method popupFocus()
1108         and a new test method named inputFieldFocus() has been added. Finally the test 
1109         method popupFocus() has been skipped for maemo.
1110
1111         * tests/qwebframe/tst_qwebframe.cpp:
1112
1113 2010-05-19  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
1114
1115         Reviewed by Kenneth Rohde Christiansen.
1116
1117         Crash fix in the HistoryController.
1118
1119         The problem was casued by a documented feature of the QWebFrame::setHtml().
1120         The method doesn't affect a browsing history (doesn't create a HistoryItem instance), so
1121         m_currentItem and m_previousItem are not set.
1122
1123         A null check was added.
1124
1125         [Qt] The QWebPage crashes on history.pushState().
1126         https://bugs.webkit.org/show_bug.cgi?id=38840
1127
1128         * tests/qwebhistory/tst_qwebhistory.cpp:
1129         (tst_QWebHistory::popPushState_data):
1130         (tst_QWebHistory::popPushState):
1131
1132 2010-05-19  Antti Koivisto  <koivisto@iki.fi>
1133
1134         Rubber-stamped by Kenneth Rohde Christiansen.
1135
1136         [Qt] TiledBackingStore updates broken when not using resizesToContents mode
1137         https://bugs.webkit.org/show_bug.cgi?id=39359
1138         
1139         Put the back logic that was lost in refactoring.
1140
1141         * WebCoreSupport/ChromeClientQt.cpp:
1142         (WebCore::ChromeClientQt::visibleRectForTiledBackingStore):
1143         * WebCoreSupport/PageClientQt.cpp:
1144         (WebCore::PageClientQGraphicsWidget::graphicsItemVisibleRect):
1145         * WebCoreSupport/PageClientQt.h:
1146         (WebCore::PageClientQWidget::viewResizesToContentsEnabled):
1147         (WebCore::PageClientQGraphicsWidget::viewResizesToContentsEnabled):
1148
1149 2010-05-19  Simon Hausmann  <simon.hausmann@nokia.com>
1150
1151         Symbian build fix.
1152
1153         [Qt] Updated the def file with exports needed for DumpRenderTree.
1154
1155         * symbian/eabi/QtWebKitu.def:
1156
1157 2010-05-19  Denis Dzyubenko <denis.dzyubenko@nokia.com>
1158
1159         Reviewed by Kenneth Rohde Christiansen.
1160
1161         When creating the UA, do not sassmue the language code is a
1162         two-letter iso639-1 code.
1163
1164         * Api/qwebpage.cpp:
1165         (QWebPage::userAgentForUrl):
1166
1167 2010-05-18  Antti Koivisto  <koivisto@iki.fi>
1168
1169         Reviewed by Kenneth Rohde Christiansen.
1170
1171         [Qt] Move visible rect calculation from QGraphicsWebViewPrivate to PageClientQGraphicsWidget
1172         https://bugs.webkit.org/show_bug.cgi?id=39294
1173
1174         * Api/qgraphicswebview.cpp:
1175         * WebCoreSupport/PageClientQt.cpp:
1176         (WebCore::PageClientQGraphicsWidget::graphicsItemVisibleRect):
1177         * WebCoreSupport/PageClientQt.h:
1178
1179 2010-05-18  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1180
1181         Symbian build fix.
1182
1183         [Qt] Updated the def file with new exports after r59335.
1184
1185         * symbian/eabi/QtWebKitu.def:
1186
1187 2010-05-18  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
1188
1189         Reviewed by Simon Hausmann.
1190
1191         Fix QWebHistory serialization.
1192
1193         Regression was caused by bug 33224. The streaming function
1194         should generate a documentSequenceNumber for all loaded values.
1195
1196         [Qt] tst_QWebHistory::serialize_2() fails
1197         https://bugs.webkit.org/show_bug.cgi?id=37322
1198
1199         * Api/qwebhistory.cpp:
1200         (operator>>):
1201
1202 2010-05-17  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
1203
1204         Reviewed by Kenneth Rohde Christiansen.
1205
1206         [Qt] Fix compilation with QT_NO_COMBOBOX
1207         https://bugs.webkit.org/show_bug.cgi?id=38324
1208
1209         * WebCoreSupport/ChromeClientQt.cpp:
1210         (WebCore::ChromeClientQt::createSelectPopup):
1211         * WebCoreSupport/QtFallbackWebPopup.cpp:
1212         * WebCoreSupport/QtFallbackWebPopup.h:
1213
1214 2010-05-17  Antti Koivisto  <koivisto@iki.fi>
1215
1216         Reviewed by Kenneth Rohde Christiansen.
1217
1218         https://bugs.webkit.org/show_bug.cgi?id=39218
1219         [Qt] Tiled backing store tiles sometimes flicker when exiting a zoom animation
1220         
1221         Tiles sometimes flicker when exiting a zoom animation. This happens as a result
1222         of the visible rectangle being momentarily out of sync.
1223         
1224         Instead of updating the visible rect by explicitly setting it, pull it through
1225         the client and recompute in WebKit the level.
1226
1227         * Api/qgraphicswebview.cpp:
1228         (QGraphicsWebView::paint):
1229         * WebCoreSupport/ChromeClientQt.cpp:
1230         (WebCore::ChromeClientQt::visibleRectForTiledBackingStore):
1231         * WebCoreSupport/ChromeClientQt.h:
1232
1233 2010-05-16  Robert Hogan  <robert@webkit.org>
1234
1235         Reviewed by Kenneth Rohde Christiansen.
1236
1237         [Qt] Unskip fast/loader/main-document-url-for-non-http-loads.html
1238
1239         Fix FrameLoaderClientQt.cpp to print relative filename paths correctly.
1240
1241         Move qt_* functions in FrameLoaderClientQt, EditorClientQt, and NotificationPresenterClientQt
1242         to DumpRenderTreeSupportQt. Create new functions to replace them in DumpRenderTreeSupportQt.
1243         Support for the old function names is retained until confirmed that no one uses them outside
1244         QtWebKit.
1245
1246         https://bugs.webkit.org/show_bug.cgi?id=38867
1247
1248         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1249         (DumpRenderTreeSupportQt::dumpFrameLoader):
1250         (DumpRenderTreeSupportQt::dumpResourceLoadCallbacks):
1251         (DumpRenderTreeSupportQt::dumpResourceLoadCallbacksPath):
1252         (DumpRenderTreeSupportQt::setWillSendRequestReturnsNullOnRedirect):
1253         (DumpRenderTreeSupportQt::setWillSendRequestReturnsNull):
1254         (DumpRenderTreeSupportQt::setWillSendRequestClearHeaders):
1255         (DumpRenderTreeSupportQt::dumpEditingCallbacks):
1256         (DumpRenderTreeSupportQt::dumpSetAcceptsEditing):
1257         (DumpRenderTreeSupportQt::dumpNotification):
1258         (qt_dump_frame_loader):
1259         (qt_dump_resource_load_callbacks):
1260         (qt_dump_resource_load_callbacks_path):
1261         (qt_set_will_send_request_returns_null_on_redirect):
1262         (qt_set_will_send_request_returns_null):
1263         (qt_set_will_send_request_clear_headers):
1264         (qt_dump_editing_callbacks):
1265         (qt_dump_set_accepts_editing):
1266         (qt_dump_notification):
1267         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1268         * WebCoreSupport/EditorClientQt.cpp:
1269         * WebCoreSupport/EditorClientQt.h:
1270         * WebCoreSupport/FrameLoaderClientQt.cpp:
1271         (drtDescriptionSuitableForTestResult):
1272         * WebCoreSupport/FrameLoaderClientQt.h:
1273         * WebCoreSupport/NotificationPresenterClientQt.cpp:
1274         * WebCoreSupport/NotificationPresenterClientQt.h:
1275
1276 2010-05-16  Robert Hogan  <robert@webkit.org>
1277
1278         Reviewed by Kenneth Rohde Christiansen.
1279
1280         [Qt]Unskip security/set-form-autocomplete-attribute.html
1281
1282         Add support for layoutTestController.elementDoesAutoCompleteForElementWithId().
1283
1284         https://bugs.webkit.org/show_bug.cgi?id=38859
1285
1286         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1287         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
1288         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1289
1290 2010-05-16  Simon Hausmann  <simon.hausmann@nokia.com>
1291
1292         [Qt] Prospective Qt/Mac build fix.
1293
1294         The friend declaration of QGraphicsWidget confuses gcc and thinks that it's an implicit
1295         forward declaration, moving the class into the WebCore namespace (WebCore::QGraphicsWidget).
1296
1297         The declaration seems useless as no method of QGraphicsWidget is going to call anything
1298         in this class.
1299
1300         * WebCoreSupport/PageClientQt.h:
1301
1302 2010-05-15  Charles Wei  <charles.wei@torchmobile.com.cn>
1303
1304         Reviewed by Simon Hausmann.
1305
1306         This patch fixes the build failure of WebKit on Linux for Qt4.5
1307         https://bugs.webkig.org/show_bug.cgi?id=39108
1308
1309         * Api/qgraphicswebview.cpp:
1310         (QGraphicsWebViewPrivate::syncLayers):
1311         * WebCoreSupport/QtPlatformPlugin.cpp:
1312
1313 2010-05-14  Kent Hansen <kent.hansen@nokia.com>, Jocelyn Turcotte <jocelyn.turcotte@nokia.com>, Tor Arne Vestbø <tor.arne.vestbo@nokia.com>, Henry Haverinen <henry.haverinen@nokia.com>, Jedrzej Nowacki <jedrzej.nowacki@nokia.com>, Andreas Kling <andreas.kling@nokia.com>
1314
1315         Reviewed by Simon Hausmann.
1316
1317         [Qt] Merge overhaul of the QtWebKit API documentation
1318
1319         Numerous improvements in wording, qdoc warning fixes and
1320         clarifications, done in a team work effort.
1321
1322         No functional changes.
1323
1324         * Api/qwebdatabase.cpp:
1325         * Api/qwebelement.cpp:
1326         * Api/qwebframe.cpp:
1327         * Api/qwebhistoryinterface.cpp:
1328         * Api/qwebinspector.cpp:
1329         * Api/qwebkitversion.cpp:
1330         * Api/qwebpage.cpp:
1331         * Api/qwebpluginfactory.cpp:
1332         * Api/qwebsecurityorigin.cpp:
1333         * Api/qwebsettings.cpp:
1334         * Api/qwebsettings.h:
1335         * docs/qtwebkit.qdoc:
1336         * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
1337         (wrapInFunction):
1338         * docs/webkitsnippets/webelement/main.cpp:
1339         (findButtonAndClick):
1340         (autocomplete1):
1341         (autocomplete2):
1342         (main):
1343
1344 2010-05-14  Martin Smith  <msmith@trolltech.com>
1345
1346         Reviewed by Simon Hausmann.
1347
1348         Documentation: Fix overview grouping.
1349
1350         * docs/qtwebkit.qdoc:
1351
1352 2010-05-14  Benjamin Poulain  <benjamin.poulain@nokia.com>
1353
1354         Reviewed by Laszlo Gombos.
1355
1356         [QT] Update the Symbian version for the user agent
1357         https://bugs.webkit.org/show_bug.cgi?id=38389
1358
1359         Update the user agent for Symbian^2 to Symbian^4
1360
1361         * Api/qwebpage.cpp:
1362         (QWebPage::userAgentForUrl):
1363
1364 2010-05-14  Dawit Alemayehu  <adawit@kde.org>
1365
1366         Reviewed by Simon Hausmann.
1367
1368         Implemented createJavaAppletWidget to activate Java applet support.
1369
1370         https://bugs.webkit.org/show_bug.cgi?id=33044
1371
1372         * WebCoreSupport/FrameLoaderClientQt.cpp:
1373         (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
1374
1375 2010-05-13  Simon Hausmann  <hausmann@webkit.org>
1376
1377         Symbian build fix.
1378
1379         [Qt] Updated the def file with new exports.
1380
1381         * symbian/eabi/QtWebKitu.def: Add missing gc symbol for QtLauncher
1382
1383 2010-05-13  Simon Hausmann  <simon.hausmann@nokia.com>
1384
1385         Symbian build fix.
1386
1387         [Qt] Updated the def file with new exports.
1388
1389         * symbian/eabi/QtWebKitu.def:
1390
1391 2010-05-11  Diego Gonzalez  <diegohcg@webkit.org>
1392
1393         Reviewed by Kenneth Rohde Christiansen.
1394
1395         [Qt] tst_QWebPage::inputMethods failing on Maemo5
1396         https://bugs.webkit.org/show_bug.cgi?id=38685
1397
1398         Check if the SIP (Software Input Panel) is triggered, which normally
1399         happens on mobile platforms, when a user input form receives a mouse click.
1400
1401         * tests/qwebpage/tst_qwebpage.cpp:
1402         (tst_QWebPage::inputMethods):
1403
1404 2010-05-11  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1405
1406         Reviewed by Laszlo Gombos.
1407
1408         [Qt] REGRESSION(r58497) tst_QGraphicsWebView::crashOnViewlessWebPages() is failing
1409         https://bugs.webkit.org/show_bug.cgi?id=38655
1410
1411         Fix double free by moving the connect till after the resize.
1412
1413         The bug is causes by the fact that a resize of an empty page causes a
1414         layout, thus deleting the qgraphicswebview before setHtml is called,
1415         which then deletes it again, causing a double free.
1416
1417         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1418         (tst_QGraphicsWebView::crashOnViewlessWebPages):
1419
1420 2010-05-12  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1421
1422         Reviewed by Laszlo Gombos.
1423
1424         [Qt] Regression(r59152): QGraphicsPageClient is not forwarding scroll and update events to view
1425         https://bugs.webkit.org/show_bug.cgi?id=39016
1426
1427         Some forward calls got lost during the refatory.
1428
1429         * WebCoreSupport/PageClientQt.cpp:
1430         (WebCore::PageClientQGraphicsWidget::scroll):
1431         (WebCore::PageClientQGraphicsWidget::update):
1432
1433 2010-05-13  Antonio Gomes  <tonikitoo@webkit.org>, Yi Shen <yi.4.shen@nokia.com>
1434
1435         Reviewed by Kenneth Christiansen.
1436
1437         [Qt] Add LayoutTestController interface: computedStyleIncludingVisitedInfo
1438         https://bugs.webkit.org/show_bug.cgi?id=37759
1439
1440         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1441         (DumpRenderTreeSupportQt::markerTextForListItem):
1442         (DumpRenderTreeSupportQt::computedStyleIncludingVisitedInfo):
1443         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1444
1445 2010-05-12  Joe Ligman  <joseph.ligman@nokia.com>
1446
1447         Reviewed by Laszlo Gombos.
1448
1449         [Qt] Nested overflow div does not scroll
1450         https://bugs.webkit.org/show_bug.cgi?id=38641
1451
1452         Modify qtwebkit_webframe_scrollOverflow, if the current node's render layer
1453         does not scroll it will try and scroll the parent's render layer. Also export
1454         qtwebkit_webframe_scrollOverflow so we can use it independently of
1455         qtwebkit_webframe_scrollRecursively
1456
1457         * Api/qwebframe.cpp:
1458         (qtwebkit_webframe_scrollOverflow):
1459         (qtwebkit_webframe_scrollRecursively):
1460
1461 2010-05-12  Antonio Gomes  <tonikitoo@webkit.org>
1462
1463         Reviewed by Kenneth Christiansen.
1464
1465         [Qt] Remove the unneeded check for QWidgetPageClient @QGraphicsWebView::detachCurrentPage
1466         https://bugs.webkit.org/show_bug.cgi?id=38989
1467
1468         Reasons:
1469         - There is no need to check for a QWidgetPageClient-based in QGraphicsWebView.
1470         - The client has always to be deleted anyways.
1471
1472         * Api/qgraphicswebview.cpp:
1473         (QGraphicsWebViewPrivate::detachPage):
1474
1475 2010-05-12  Simon Hausmann  <simon.hausmann@nokia.com>
1476
1477         Reviewed by Laszlo Gombos.
1478
1479         Add a comment to explain the web inspector dynamic property url hook
1480         and that it's there on purpose :)
1481
1482         https://bugs.webkit.org/show_bug.cgi?id=35340
1483
1484         * WebCoreSupport/InspectorClientQt.cpp:
1485         (WebCore::InspectorClientQt::openInspectorFrontend):
1486
1487 2010-05-11  Antonio Gomes  <tonikitoo@webkit.org>
1488
1489         Reviewed by Kenneth Christiansen.
1490
1491         [Qt] Implement a detachCurrentPage method for QGraphicsWebView and QWebView
1492         https://bugs.webkit.org/show_bug.cgi?id=38939
1493
1494         unsetPageIfExists method was renamed to detachCurrentPage method and is now responsible
1495         for doing all the unset logic of page and pageClient references previously done by
1496         the Q{Graphics}WebView destructor(s).
1497
1498         It is a code clean up, no behaviour change.
1499
1500         * Api/qgraphicswebview.cpp:
1501         (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate):
1502         (QGraphicsWebView::~QGraphicsWebView):
1503         (QGraphicsWebViewPrivate::detachCurrentPage):
1504         (QGraphicsWebView::setPage):
1505         * Api/qwebview.cpp:
1506         (QWebViewPrivate::~QWebViewPrivate):
1507         (QWebView::~QWebView):
1508         (QWebViewPrivate::detachCurrentPage):
1509         (QWebView::setPage):
1510
1511 2010-05-11  Antonio Gomes  <tonikitoo@webkit.org>
1512
1513         Reviewed by Kenneth Christiansen.
1514
1515         [Qt] emit initialLayoutCompleted signal from FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout
1516         https://bugs.webkit.org/show_bug.cgi?id=38921
1517
1518         Emit initialLayoutCompleted signal from FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout
1519         instead of FrameLoaderClientQt::dispatchDidFirstLayout , because the former ensures that a
1520         visual content layed out on the frame.
1521
1522         It matches to QWebFrame::initialLayoutCompleted signal documentation at:
1523
1524         "... This is the first time you will see contents displayed on the frame ..."
1525
1526         * WebCoreSupport/FrameLoaderClientQt.cpp:
1527         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
1528         (WebCore::FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout):
1529
1530 2010-05-11  Jesus Sanchez-Palencia  <jesus@webkit.org>
1531
1532         Reviewed by Kenneth Rohde Christiansen.
1533
1534         Add PageClientQGraphicsWidget specific implementation.
1535         QGraphicsWebViewPrivate doesn't inherit QWebPageClient anymore
1536         and the needed functions were moved to this new PageClient class,
1537         including Tiling and Accelerated Composite specific ones.
1538
1539         [Qt] PageClientQt specific implementation for QGraphicsWidget
1540         https://bugs.webkit.org/show_bug.cgi?id=37866
1541
1542         * Api/qgraphicswebview.cpp:
1543         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
1544         (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate):
1545         (QGraphicsWebViewPrivate::syncLayers):
1546         (QGraphicsWebViewPrivate::_q_scaleChanged):
1547         (QGraphicsWebView::event):
1548         (QGraphicsWebView::setPage):
1549         (QGraphicsWebView::updateGeometry):
1550         (QGraphicsWebView::setGeometry):
1551         (QGraphicsWebView::setResizesToContents):
1552         * WebCoreSupport/PageClientQt.cpp:
1553         (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
1554         (WebCore::PageClientQGraphicsWidget::scroll):
1555         (WebCore::PageClientQGraphicsWidget::update):
1556         (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
1557         (WebCore::PageClientQGraphicsWidget::syncLayers):
1558         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
1559         (WebCore::PageClientQGraphicsWidget::markForSync):
1560         (WebCore::PageClientQGraphicsWidget::updateCompositingScrollPosition):
1561         (WebCore::PageClientQGraphicsWidget::updateTiledBackingStoreScale):
1562         (WebCore::PageClientQGraphicsWidget::setInputMethodEnabled):
1563         (WebCore::PageClientQGraphicsWidget::inputMethodEnabled):
1564         (WebCore::PageClientQGraphicsWidget::setInputMethodHint):
1565         (WebCore::PageClientQGraphicsWidget::cursor):
1566         (WebCore::PageClientQGraphicsWidget::updateCursor):
1567         (WebCore::PageClientQGraphicsWidget::palette):
1568         (WebCore::PageClientQGraphicsWidget::screenNumber):
1569         (WebCore::PageClientQGraphicsWidget::ownerWidget):
1570         (WebCore::PageClientQGraphicsWidget::geometryRelativeToOwnerWidget):
1571         (WebCore::PageClientQGraphicsWidget::pluginParent):
1572         (WebCore::PageClientQGraphicsWidget::style):
1573         * WebCoreSupport/PageClientQt.h:
1574         (WebCore::QGraphicsItemOverlay::page):
1575         (WebCore::QGraphicsItemOverlay::boundingRect):
1576         (WebCore::QGraphicsItemOverlay::paint):
1577         (WebCore::QGraphicsItemOverlay::prepareGraphicsItemGeometryChange):
1578         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
1579         (WebCore::PageClientQGraphicsWidget::isQWidgetClient):
1580         (WebCore::PageClientQGraphicsWidget::allowsAcceleratedCompositing):
1581         (WebCore::PageClientQGraphicsWidget::):
1582
1583 2010-05-09  Noam Rosenthal  <noam.rosenthal@nokia.com>
1584
1585         Reviewed by Kenneth Rohde Christiansen.
1586
1587         [Qt] Crash in QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate when animation were used
1588         https://bugs.webkit.org/show_bug.cgi?id=38574
1589
1590         The fix uses a QWeakPointer for rootGraphicsLayer, protecting from a crash in case the layer is deleted before the QGraphicsWebView.
1591
1592         * Api/qgraphicswebview.cpp:
1593         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
1594         (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate):
1595         (QGraphicsWebViewPrivate::setRootGraphicsLayer):
1596         (QGraphicsWebViewPrivate::updateCompositingScrollPosition):
1597
1598 2010-05-08  Luiz Agostini  <luiz.agostini@openbossa.org>
1599
1600         Reviewed by Simon Hausmann.
1601
1602         [Qt] Platform plugin
1603         https://bugs.webkit.org/show_bug.cgi?id=38438
1604
1605         Select popups delegate private API. To provide select popup delegates
1606         a plugin that implements QWebKitPlatformPlugin must be found
1607         in QCoreApplication::libraryPaths.
1608
1609         * Api/headers.pri:
1610         * Api/qwebkitplatformplugin.h: Added.
1611         (QWebSelectData::~QWebSelectData):
1612         (QWebSelectData::):
1613         (QWebSelectMethod::~QWebSelectMethod):
1614         (QWebKitPlatformPlugin::~QWebKitPlatformPlugin):
1615         (QWebKitPlatformPlugin::):
1616         * WebCoreSupport/ChromeClientQt.cpp:
1617         (WebCore::ChromeClientQt::createSelectPopup):
1618         * WebCoreSupport/ChromeClientQt.h:
1619         * WebCoreSupport/QtPlatformPlugin.cpp: Added.
1620         (WebCore::SelectData::SelectData):
1621         (WebCore::SelectData::itemText):
1622         (WebCore::SelectData::itemToolTip):
1623         (WebCore::SelectData::itemIsEnabled):
1624         (WebCore::SelectData::itemCount):
1625         (WebCore::SelectData::itemIsSelected):
1626         (WebCore::SelectData::multiple):
1627         (WebCore::SelectData::itemType):
1628         (WebCore::SelectInputMethodWrapper::SelectInputMethodWrapper):
1629         (WebCore::SelectInputMethodWrapper::show):
1630         (WebCore::SelectInputMethodWrapper::hide):
1631         (WebCore::SelectInputMethodWrapper::selectItem):
1632         (WebCore::SelectInputMethodWrapper::didHide):
1633         (WebCore::getPluginObject):
1634         (WebCore::QtPlatformPlugin::~QtPlatformPlugin):
1635         (WebCore::QtPlatformPlugin::plugin):
1636         (WebCore::QtPlatformPlugin::createSelectInputMethod):
1637         * WebCoreSupport/QtPlatformPlugin.h: Added.
1638         (WebCore::QtPlatformPlugin::QtPlatformPlugin):
1639
1640 2010-05-08  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1641
1642         Reviewed by Simon Hausmann.
1643
1644         [Qt] Document a limitation of QWebPage::linkClicked
1645         https://bugs.webkit.org/show_bug.cgi?id=37694
1646
1647         * Api/qwebpage.cpp:
1648
1649 2010-05-02  Simon Hausmann  <hausmann@webkit.org>
1650
1651         [Qt] Unreviewed, QtWebKit versioning for the trunk.
1652
1653         The next version is going to be 2.1, based off the trunk.
1654
1655         * Api/qwebkitglobal.h:
1656
1657 2010-05-07  Simon Hausmann  <simon.hausmann@nokia.com>
1658
1659         Symbian build fix.
1660
1661         [Qt] Updated the def file with absent exports.
1662
1663         * symbian/eabi/QtWebKitu.def:
1664
1665 2010-05-06  Andreas Kling  <andreas.kling@nokia.com>
1666
1667         Reviewed by Simon Hausmann.
1668
1669         [Qt] Patch to fix compilation warnings for QGraphicsWebView
1670         https://bugs.webkit.org/show_bug.cgi?id=37428
1671
1672         Patch by Alexis Menard <alexis.menard@nokia.com>
1673
1674         * Api/qgraphicswebview.cpp:
1675         (QGraphicsWebView::itemChange):
1676
1677 2010-05-06  Simon Hausmann  <simon.hausmann@nokia.com>
1678
1679         Reviewed by Kenneth Rohde Christiansen.
1680
1681         [Qt] Replace public inspector url with private property for QtLauncher
1682         https://bugs.webkit.org/show_bug.cgi?id=35340
1683
1684         Replace the public API with a private dynamic property until this feature
1685         is ready.
1686
1687         * Api/qwebsettings.cpp:
1688         * Api/qwebsettings.h:
1689         * WebCoreSupport/InspectorClientQt.cpp:
1690         (WebCore::InspectorClientQt::openInspectorFrontend):
1691         * symbian/bwins/QtWebKitu.def:
1692         * symbian/eabi/QtWebKitu.def:
1693
1694 2010-05-04  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1695
1696         Reviewed by Kenneth Rohde Christiansen.
1697
1698         [Qt] QWebPage viewMode property
1699         https://bugs.webkit.org/show_bug.cgi?id=38119
1700
1701         Rename the property from wrt_viewMode to _q_viewMode.
1702
1703         * Api/qwebpage.cpp:
1704         (QWebPagePrivate::dynamicPropertyChangeEvent):
1705         * tests/qwebpage/tst_qwebpage.cpp:
1706         (tst_QWebPage::viewModes):
1707
1708 2010-05-04  Simon Hausmann  <simon.hausmann@nokia.com>
1709
1710         Rubber-stamped by Tor Arne Vestbø.
1711
1712         [Qt] Preserve binary compatibility with qtwebkit-2.0 branch
1713
1714         Moved the WebGL attribute in QWebSettings to the end of the enum,
1715         to ensure that the numeric values of the enum values following it
1716         are the same as in the release branch.
1717
1718         * Api/qwebsettings.h:
1719
1720 2010-05-03  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1721
1722         Reviewed by Simon Hausmann.
1723
1724         [Qt] Expose HTMLTokenizer yielding parameters
1725         https://bugs.webkit.org/show_bug.cgi?id=37023
1726
1727         Enables to set TimeDelay and ChunkSize for 
1728         HTMLTokenizer.
1729
1730         * Api/qwebpage.cpp:
1731         (QWebPagePrivate::dynamicPropertyChangeEvent):
1732
1733 2010-05-03  Abhishek Arya  <inferno@chromium.org>
1734
1735         Reviewed by Adam Barth.
1736
1737         Add support for controlling clipboard access from javascript.
1738         Clipboard access from javascript is disabled by default.
1739         https://bugs.webkit.org/show_bug.cgi?id=27751
1740
1741         * Api/qwebsettings.cpp:
1742         (QWebSettingsPrivate::apply):
1743         * Api/qwebsettings.h:
1744
1745 2010-05-03  Jens Alfke  <snej@chromium.org>
1746
1747         Reviewed by Darin Fisher.
1748
1749         [chromium] Add "willSendSubmitEvent" hook to WebFrameClient and FrameLoaderClient
1750         https://bugs.webkit.org/show_bug.cgi?id=38397
1751
1752         No tests (functionality is exposed only through native WebKit API.)
1753
1754         * WebCoreSupport/FrameLoaderClientQt.h:
1755         (WebCore::FrameLoaderClientQt::dispatchWillSendSubmitEvent):
1756
1757 2010-05-03  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1758
1759         Reviewed by Simon Hausmann.
1760
1761         [Qt] Prune dead code in QWebPage
1762
1763         * Api/qwebpage.cpp:
1764
1765 2010-05-02  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
1766
1767         Reviewed by Simon Hausmann.
1768
1769         [Qt] Fix compilation with QT_NO_BEARERMANAGEMENT
1770         https://bugs.webkit.org/show_bug.cgi?id=38324
1771
1772         * Api/qwebsettings.cpp:
1773
1774 2010-04-29  Janne Koskinen  <janne.p.koskinen@digia.com>
1775
1776         Reviewed by Simon Hausmann.
1777
1778         [Qt] QtWebKit versioning added
1779         https://bugs.webkit.org/show_bug.cgi?id=37207
1780
1781         QtWebkit releases separated from Qt release cycle.
1782
1783         * qtwebkit_version.pri: Added.
1784
1785 2010-05-02  Benjamin Poulain  <benjamin.poulain@nokia.com>
1786
1787         Reviewed by Kenneth Rohde Christiansen.
1788
1789         [Qt] QWebPage::userAgentForUrl is terrible API
1790         https://bugs.webkit.org/show_bug.cgi?id=33875
1791
1792         Simplify the creation of the user agent string to avoid some
1793         overhead for each loaded url.
1794
1795         The static part of the user agent is cached so it only have
1796         to be made once.
1797         This creation has been made in order to simplify the code.
1798
1799         The two variable: application name and current language are
1800         set dynamically when needed.
1801         The default locale is non longer created if the widget locale
1802         is used.
1803
1804         * Api/qwebpage.cpp:
1805         (QWebPage::userAgentForUrl):
1806         * tests/qwebpage/tst_qwebpage.cpp:
1807         (tst_QWebPage::userAgentApplicationName):
1808         (tst_QWebPage::userAgentLocaleChange):
1809
1810 2010-05-02  Noam Rosenthal  <noam.rosenthal@nokia.com>
1811
1812         Reviewed by Kenneth Rohde Christiansen.
1813
1814         [Qt] GraphicsLayer: animation incorrect when scrolling
1815         https://bugs.webkit.org/show_bug.cgi?id=38371
1816
1817         This is a regression introduced with the invalidate-on-scroll code path, that uses QGraphicsWebViewPrivate::update()
1818         instead of QGraphicsWebViewPrivate::scroll(). The patch makes sure that the scrolling position is correct on
1819         each content update - this shouldn't have a performance impact - the only overhead is an additional value-test on each update.
1820
1821         Tested by http://www.the-art-of-web.com/css/css-animation/
1822
1823         * Api/qgraphicswebview.cpp:
1824         (QGraphicsWebViewPrivate::update):
1825
1826 2010-05-01  Robert Hogan  <robert@webkit.org>
1827
1828         Reviewed by Simon Hausmann.
1829
1830         [Qt] Add smart paste support
1831
1832         https://bugs.webkit.org/show_bug.cgi?id=38136
1833
1834         * Api/qwebpage.cpp:
1835         (QWebPagePrivate::QWebPagePrivate): Enable smart paste support by default.
1836
1837 2010-04-29  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1838
1839         Reviewed by Kenneth Rohde Christiansen.
1840
1841         [Qt] Reinstate qt_drt_ symbol exports as of QtWebKit 4.6 release
1842         https://bugs.webkit.org/show_bug.cgi?id=38304
1843
1844         This change provides backward compatibility with some previously
1845         exported private symbols. No new functionality introduced.
1846
1847         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1848         (qt_resumeActiveDOMObjects):
1849         (qt_suspendActiveDOMObjects):
1850         (qt_drt_clearFrameName):
1851         (qt_drt_garbageCollector_collect):
1852         (qt_drt_garbageCollector_collectOnAlternateThread):
1853         (qt_drt_javaScriptObjectsCount):
1854         (qt_drt_numberOfActiveAnimations):
1855         (qt_drt_overwritePluginDirectories):
1856         (qt_drt_pauseAnimation):
1857         (qt_drt_pauseTransitionOfProperty):
1858         (qt_drt_resetOriginAccessWhiteLists):
1859         (qt_drt_run):
1860         (qt_drt_setJavaScriptProfilingEnabled):
1861         (qt_drt_whiteListAccessFromOrigin):
1862         (qt_webpage_groupName):
1863         (qt_webpage_setGroupName):
1864
1865 2010-04-29  Benjamin Poulain  <benjamin.poulain@nokia.com>
1866
1867         Reviewed by Kenneth Rohde Christiansen.
1868
1869         Get rid of forceLayout() on FrameView
1870         https://bugs.webkit.org/show_bug.cgi?id=38199
1871
1872         The function FrameView::forceLayout() is missleading
1873         because it does not actually force the layout, the call is
1874         equivalent to layout().
1875
1876         This patch replace the call to forceLayout() by layout() in Qt
1877         to avoid the misunderstanding/improve readability.
1878
1879         * Api/qwebpage.cpp:
1880         (QWebPagePrivate::dynamicPropertyChangeEvent):
1881         (QWebPage::setPreferredContentsSize):
1882         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1883         (DumpRenderTreeSupportQt::setMediaType):
1884         * WebCoreSupport/FrameLoaderClientQt.cpp:
1885         (WebCore::FrameLoaderClientQt::forceLayout):
1886
1887 2010-04-29  Andreas Kling  <andreas.kling@nokia.com>
1888
1889         Reviewed by Simon Hausmann.
1890
1891         Remove unnecessary call to FrameView::forceLayout() in setViewportSize()
1892         This prevents a double relayout on resize.
1893
1894         https://bugs.webkit.org/show_bug.cgi?id=38179
1895
1896         Thanks to Nate Whetsell <nathan.whetsell@gmail.com> for spotting this.
1897
1898         * Api/qwebpage.cpp:
1899         (QWebPage::setViewportSize):
1900
1901 2010-04-29  Simon Hausmann  <simon.hausmann@nokia.com>
1902
1903         Reviewed by Tor Arne Vestbø.
1904
1905         [Qt] REGRESSION(r57982): tst_qwebpage::showModalDialog() crashes
1906         https://bugs.webkit.org/show_bug.cgi?id=38314
1907
1908         Make sure that there's always a main frame when returning from createWindow()
1909         to the caller in WebCore.
1910
1911         * WebCoreSupport/ChromeClientQt.cpp:
1912         (WebCore::ChromeClientQt::createWindow):
1913
1914 2010-04-28  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1915
1916         Unreviewed, Qt build fix.
1917
1918         [Qt] Guard the body of the function instead of the function for
1919         exported functions.
1920
1921         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1922         (DumpRenderTreeSupportQt::webInspectorExecuteScript):
1923         (DumpRenderTreeSupportQt::webInspectorClose):
1924         (DumpRenderTreeSupportQt::webInspectorShow):
1925         (DumpRenderTreeSupportQt::setTimelineProfilingEnabled):
1926
1927 2010-04-28  Antonio Gomes  <tonikitoo@webkit.org>, Yi Shen <yi.4.shen@nokia.com>
1928
1929         Reviewed by Simon Hausmann.
1930
1931         [Qt] tst_QWebHistoryInterface::visitedLinks() fails
1932         https://bugs.webkit.org/show_bug.cgi?id=37323
1933
1934         Patch fixes styleProperty method of QWebElement to make use of
1935         CSSComputedStyleDeclaration::computedStyle 'allowVisitedStyle' parameter
1936         and the corresponding failing QWebHistoryInterface::visitedLinks method.
1937
1938         * Api/qwebelement.cpp:
1939         (QWebElement::styleProperty):
1940         * tests/qwebhistoryinterface/tst_qwebhistoryinterface.cpp:
1941         (tst_QWebHistoryInterface::visitedLinks):
1942
1943 2010-04-28  Luiz Agostini  <luiz.agostini@openbossa.org>
1944
1945         Reviewed by Kenneth Rohde Christiansen.
1946
1947         [Qt] QWebPage viewMode property
1948         https://bugs.webkit.org/show_bug.cgi?id=38119
1949
1950         Replacing method qt_wrt_setViewMode by wrt_viewMode property.
1951
1952         * Api/qwebpage.cpp:
1953         (QWebPagePrivate::dynamicPropertyChangeEvent):
1954         (QWebPage::event):
1955         * Api/qwebpage_p.h:
1956         * tests/qwebpage/tst_qwebpage.cpp:
1957         (tst_QWebPage::wrt_viewModes):
1958
1959 2010-04-28  Janne Koskinen  <janne.p.koskinen@digia.com>
1960
1961         Reviewed by Simon Hausmann <simon.hausmann@nokia.com>
1962
1963         [Qt] WINS DEF file freeze
1964
1965         Updated WINSCW def file with added and removed symbols.
1966
1967         * symbian/bwins/QtWebKitu.def:
1968
1969 2010-04-25  Sam Weinig  <sam@webkit.org>
1970
1971         Reviewed by Maciej Stachowiak.
1972
1973         Fix for https://bugs.webkit.org/show_bug.cgi?id=38097
1974         Disentangle initializing the main thread from initializing threading
1975
1976         * Api/qwebpage.cpp:
1977         (QWebPagePrivate::QWebPagePrivate): Add call to initializeMainThread.
1978
1979 2010-04-26  Thiago Macieira  <thiago.macieira@nokia.com>
1980
1981         Reviewed by Simon Hausmann.
1982
1983         [Qt] Fix the include header <qstring.h> -> <QtCore/qstring.h>
1984
1985         The module/header.h style inclusion removes the need to have -I$QTDIR/include/depending-module
1986         in the include search path for the application.
1987
1988         * Api/qwebkitversion.h:
1989
1990 2010-04-26  Bruno Schmidt  <bruno.schmidt@gmail.com>
1991
1992         Reviewed by Kenneth Rohde Christiansen.
1993
1994         [Qt] Exposing an QVariantMap containing QObjectStar to Javascript
1995         causes Segmentation Fault
1996         https://bugs.webkit.org/show_bug.cgi?id=34729
1997
1998         If an QVariantMap containing QObjectStar is added to the to QtWebkit
1999         Javascript, it's use causes Segmentation Fault.
2000         It happens because, in the case QMetaType::QVariantMap, the "root"
2001         object that is inside of a PassRefPtr is passed recursively inside a
2002         loop to recover the content of the map, but the PassRefPtr semantics
2003         prohibit its use inside a loop, so the "root" object mus be passed
2004         using the method "PassRefPtr::get" in order to keep the current
2005         reference.
2006
2007         * tests/qwebframe/tst_qwebframe.cpp:
2008         (MyQObject::MyQObject): new property variantMapProperty
2009         (MyQObject::variantMapProperty): read variantMapProperty
2010         (MyQObject::setVariantMapProperty): write variantMapProperty
2011
2012 2010-04-25  Shinichiro Hamaji  <hamaji@chromium.org>
2013
2014         Reviewed by Simon Hausmann.
2015
2016         [Qt] layoutTestController.counterValueForElementById crashes for a nonexistent ID
2017         https://bugs.webkit.org/show_bug.cgi?id=34573
2018
2019         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2020         (DumpRenderTreeSupportQt::counterValueForElementById):
2021
2022 2010-04-20  Robert Hogan  <robert@webkit.org>
2023
2024         Reviewed by Simon Hausmann.
2025
2026         [Qt] Add more support for textInputController
2027
2028         Add support for selectedRange(), setMarkedText(), insertText(),
2029         and firstRectForCharacterRange().
2030
2031         https://bugs.webkit.org/show_bug.cgi?id=35702
2032
2033         * Api/qwebpage.cpp:
2034         (QWebPagePrivate::inputMethodEvent):
2035         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2036         (DumpRenderTreeSupportQt::selectedRange):
2037         (DumpRenderTreeSupportQt::firstRectForCharacterRange):
2038         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2039         * tests/qwebpage/tst_qwebpage.cpp:
2040         (tst_QWebPage::inputMethods):
2041
2042 2010-04-22  John Pavan  <john.pavan@nokia.com>
2043
2044         Reviewed by Laszlo Gombos.
2045
2046         [Qt] inputMethodQuery returns coordinates in web page coordinates rather than in item coordinates.
2047         https://bugs.webkit.org/show_bug.cgi?id=37163
2048
2049
2050         QWebPage::inputMethodQuery is modified so that it
2051         returns coordinates in the widget's coordinate system.
2052         Tests are added for QGraphicsWebView and QWebView
2053         to verify that this behavior is correct after the webpage
2054         has been scrolled.
2055
2056         * Api/qwebpage.cpp:
2057         (QWebPage::inputMethodQuery):
2058         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2059         (tst_QGraphicsWebView::microFocusCoordinates):
2060         * tests/qwebview/tst_qwebview.cpp:
2061         (tst_QWebView::microFocusCoordinates):
2062
2063 2010-04-22  Robert Hogan  <robert@webkit.org>
2064
2065         Reviewed by Simon Hausmann.
2066
2067         [Qt] Fix createPlugin() tests in tst_qwebpage to match behaviour of Qt plugins
2068              when PluginsEnabled is false.
2069
2070         tst_qwebpage should have been updated as part of r56662.
2071         (See https://bugs.webkit.org/show_bug.cgi?id=32196)
2072
2073         Updated documentation of QWebPage::createPlugin and QWebSetting::pluginsEnabled
2074             to match the new behaviour.
2075
2076         * Api/qwebpage.cpp: Update docs.
2077         * Api/qwebsettings.cpp: Update docs.
2078         * tests/qwebpage/tst_qwebpage.cpp:
2079         (createPlugin):
2080         (tst_QWebPage::createPluginWithPluginsEnabled):
2081         (tst_QWebPage::createPluginWithPluginsDisabled):
2082
2083 2010-04-22  Dave Moore  <davemoore@chromium.org>
2084
2085         Reviewed by Dimitri Glazkov.
2086
2087         Added notification when the favicons for a page are changed
2088         from a script.
2089         The Document object will notify the frame loader, which will
2090         notify the client. Implementations of FrameLoaderClient will
2091         have to add one method; dispatchDidChangeIcons().
2092
2093         https://bugs.webkit.org/show_bug.cgi?id=33812
2094
2095         * WebCoreSupport/FrameLoaderClientQt.cpp:
2096         (WebCore::FrameLoaderClientQt::dispatchDidChangeIcons):
2097         (WebCore::FrameLoaderClientQt::didChangeTitle):
2098         * WebCoreSupport/FrameLoaderClientQt.h:
2099
2100 2010-04-22  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2101
2102         Reviewed by Kenneth Rohde Christiansen.
2103
2104         [Qt] Remove translatable strings from the hybridPixmap test.
2105         https://bugs.webkit.org/show_bug.cgi?id=37867
2106
2107         * tests/hybridPixmap/widget.ui:
2108
2109 2010-04-22  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2110
2111         Reviewed by Kenneth Rohde Christiansen.
2112
2113         [Qt] Fix autotests .qrc file paths when built in Qt.
2114
2115         Compiling auto-tests from qt/tests/auto/qweb* produced
2116         failing tests since these .pro files include the
2117         ones in WebKit/qt/tests and the .qrc file was
2118         not added to RESOURCES
2119
2120         * tests/benchmarks/loading/loading.pro:
2121         * tests/benchmarks/painting/painting.pro:
2122         * tests/qgraphicswebview/qgraphicswebview.pro:
2123         * tests/qwebelement/qwebelement.pro:
2124         * tests/qwebframe/qwebframe.pro:
2125         * tests/qwebhistory/qwebhistory.pro:
2126         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
2127         * tests/qwebinspector/qwebinspector.pro:
2128         * tests/qwebpage/qwebpage.pro:
2129         * tests/qwebplugindatabase/qwebplugindatabase.pro:
2130         * tests/qwebview/qwebview.pro:
2131         * tests/tests.pri:
2132
2133 2010-04-22  Adam Barth  <abarth@webkit.org>
2134
2135         Unreviewed, rolling out r58069.
2136         http://trac.webkit.org/changeset/58069
2137         https://bugs.webkit.org/show_bug.cgi?id=27751
2138
2139         Broke compile on Windows.
2140
2141         * Api/qwebsettings.cpp:
2142         (QWebSettingsPrivate::apply):
2143         * Api/qwebsettings.h:
2144
2145 2010-04-22  Abhishek Arya  <inferno@chromium.org>
2146
2147         Reviewed by Adam Barth.
2148
2149         Add support for controlling clipboard access from javascript.
2150         Clipboard access from javascript is disabled by default.
2151         https://bugs.webkit.org/show_bug.cgi?id=27751
2152
2153         * Api/qwebsettings.cpp:
2154         (QWebSettingsPrivate::apply):
2155         * Api/qwebsettings.h:
2156
2157 2010-04-21  Jesus Sanchez-Palencia  <jesus@webkit.org>
2158
2159         Reviewed by Kenneth Rohde Christiansen.
2160
2161         Add PageClientQWidget implementation based on the old
2162         QWebPageWidgetClient to PageClientQt files. Also fix
2163         QWebPage::setView() to use PageClientQWidget.
2164
2165         [Qt] PageClientQt specific implementation for QWidget
2166         https://bugs.webkit.org/show_bug.cgi?id=37858
2167
2168         * Api/qwebpage.cpp:
2169         (QWebPage::setView):
2170         * WebCoreSupport/PageClientQt.cpp: Added.
2171         (WebCore::PageClientQWidget::scroll):
2172         (WebCore::PageClientQWidget::update):
2173         (WebCore::PageClientQWidget::setInputMethodEnabled):
2174         (WebCore::PageClientQWidget::inputMethodEnabled):
2175         (WebCore::PageClientQWidget::setInputMethodHint):
2176         (WebCore::PageClientQWidget::cursor):
2177         (WebCore::PageClientQWidget::updateCursor):
2178         (WebCore::PageClientQWidget::palette):
2179         (WebCore::PageClientQWidget::screenNumber):
2180         (WebCore::PageClientQWidget::ownerWidget):
2181         (WebCore::PageClientQWidget::geometryRelativeToOwnerWidget):
2182         (WebCore::PageClientQWidget::pluginParent):
2183         (WebCore::PageClientQWidget::style):
2184         * WebCoreSupport/PageClientQt.h: Added.
2185         (WebCore::PageClientQWidget::PageClientQWidget):
2186         (WebCore::PageClientQWidget::isQWidgetClient):
2187
2188 2010-04-21  Jakub Wieczorek  <jwieczorek@webkit.org>
2189
2190         Reviewed by Darin Adler.
2191
2192         List item markers are not always updated after changes in the DOM.
2193         https://bugs.webkit.org/show_bug.cgi?id=37060
2194
2195         * Api/qwebelement.h: Make DumpRenderTreeSupportQt a friend class.
2196         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2197         (DumpRenderTreeSupportQt::markerTextForListItem): Add a private API to get the marker text for a list item.
2198
2199 2010-04-21  Yi Shen  <yi.4.shen@nokia.com>
2200
2201         Reviewed by Simon Hausmann.
2202
2203         [Qt] Check the request empty or not in ChromeClientQt::createWindow()
2204         https://bugs.webkit.org/show_bug.cgi?id=37821
2205
2206         * WebCoreSupport/ChromeClientQt.cpp:
2207         (WebCore::ChromeClientQt::createWindow):
2208
2209 2010-04-21  Shu Chang  <chang.shu@nokia.com>
2210
2211         Reviewed by Simon Hausmann.
2212
2213         [Qt] Fix Symbian build where QT_NO_SYSTEMTRAYICON is defined.
2214         https://bugs.webkit.org/show_bug.cgi?id=37442
2215
2216         * WebCoreSupport/NotificationPresenterClientQt.cpp:
2217         (NotificationPresenterClientQt::show):
2218         * WebCoreSupport/NotificationPresenterClientQt.h:
2219
2220 2010-04-21  Eric Seidel  <eric@webkit.org>
2221
2222         Unreviewed, rolling out r57963.
2223         http://trac.webkit.org/changeset/57963
2224         https://bugs.webkit.org/show_bug.cgi?id=37759
2225
2226         Three tests started crashing on the Qt bot.
2227
2228         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2229         (DumpRenderTreeSupportQt::isCommandEnabled):
2230         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2231
2232 2010-04-21  Yi Shen  <yi.4.shen@nokia.com>
2233
2234         Reviewed by Simon Hausmann.
2235
2236         [Qt] Add LayoutTestController interface: computedStyleIncludingVisitedInfo
2237         https://bugs.webkit.org/show_bug.cgi?id=37759
2238
2239         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2240         (DumpRenderTreeSupportQt::computedStyleIncludingVisitedInfo):
2241         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2242
2243 2010-04-21  No'am Rosenthal  <noam.rosenthal@nokia.com>
2244
2245         Reviewed by Simon Fraser.
2246
2247         [Qt] Fix or remove the runtime flag for accelerated compositing.
2248         https://bugs.webkit.org/show_bug.cgi?id=37313
2249
2250         This lets the QWebPageClient "veto" the settings value for accelerated compositing.
2251         In this case we allow accelerated compositing only on QGraphicsWebView.
2252
2253         * Api/qgraphicswebview.cpp:
2254         (QGraphicsWebViewPrivate::allowsAcceleratedCompositing):
2255         * WebCoreSupport/ChromeClientQt.cpp:
2256         (WebCore::ChromeClientQt::allowsAcceleratedCompositing):
2257         * WebCoreSupport/ChromeClientQt.h:
2258
2259 2010-04-20  Adam Barth  <abarth@webkit.org>
2260
2261         Unreviewed build fix.
2262
2263         * Api/qwebframe.cpp:
2264         (QWebFrame::setUrl):
2265
2266 2010-04-20  Adam Barth  <abarth@webkit.org>
2267
2268         Reviewed by Eric Seidel.
2269
2270         Factor DocumentWriter out of FrameLoader
2271         https://bugs.webkit.org/show_bug.cgi?id=37175
2272
2273         Update these callsites because the method moved to DocumentWriter.
2274
2275         * WebCoreSupport/FrameLoaderClientQt.cpp:
2276         (WebCore::FrameLoaderClientQt::finishedLoading):
2277         (WebCore::FrameLoaderClientQt::setMainDocumentError):
2278         (WebCore::FrameLoaderClientQt::committedLoad):
2279         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
2280
2281 2010-04-20  Kent Tamura  <tkent@chromium.org>
2282
2283         Reviewed by Darin Adler.
2284
2285         Change a parameter type of chooseIconForFiles()
2286         https://bugs.webkit.org/show_bug.cgi?id=37504
2287
2288         * WebCoreSupport/ChromeClientQt.cpp:
2289         (WebCore::ChromeClientQt::chooseIconForFiles):
2290         * WebCoreSupport/ChromeClientQt.h:
2291
2292 2010-04-19  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2293
2294         Reviewed by Simon Hausmann.
2295
2296         [Qt] Fix compilation against namespaced Qt.
2297
2298         * WebCoreSupport/ChromeClientQt.h:
2299         * WebCoreSupport/QtFallbackWebPopup.h:
2300
2301 2010-04-18  Robert Hogan  <robert@webkit.org>
2302
2303         Reviewed by Simon Hausmann.
2304
2305         [Qt] Add support for LayoutTestController commands:
2306                    setSmartInsertDeleteEnabled
2307                    setSelectTrailingWhitespaceEnabled
2308                    execCommand
2309                    isCommandEnabled
2310
2311         https://bugs.webkit.org/show_bug.cgi?id=35844
2312
2313         * Api/qwebpage.cpp:
2314         (QWebPagePrivate::QWebPagePrivate):
2315         * Api/qwebpage_p.h:
2316         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2317         (DumpRenderTreeSupportQt::setSmartInsertDeleteEnabled):
2318         (DumpRenderTreeSupportQt::setSelectTrailingWhitespaceEnabled):
2319         (DumpRenderTreeSupportQt::executeCoreCommandByName):
2320         (DumpRenderTreeSupportQt::isCommandEnabled):
2321         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2322         * WebCoreSupport/EditorClientQt.cpp:
2323         (WebCore::EditorClientQt::smartInsertDeleteEnabled):
2324         (WebCore::EditorClientQt::toggleSmartInsertDelete):
2325         (WebCore::EditorClientQt::isSelectTrailingWhitespaceEnabled):
2326         * WebCoreSupport/EditorClientQt.h:
2327
2328 2010-04-15  Kent Hansen  <kent.hansen@nokia.com>
2329
2330         Reviewed by Kenneth Rohde Christiansen.
2331
2332         [Qt] Mark QWebFrame::overloadedSlots autotest as expected failure
2333
2334         https://bugs.webkit.org/show_bug.cgi?id=37319
2335
2336         * tests/qwebframe/tst_qwebframe.cpp:
2337
2338 2010-04-09  Antonio Gomes  <tonikitoo@webkit.org>
2339
2340         Reviewed by Kenneth Christiansen and Tor Arne Vestbø.
2341
2342         REGRESSION(r56552): Broken scrollbars size
2343         https://bugs.webkit.org/show_bug.cgi?id=36853
2344
2345         The regression was caused by r56552, which introduced a fix to bug
2346         webkit.org/b/21300. The bug solved an issue with the resize handle on mac,
2347         but did it in a way that affected all Qt platforms and thus broke the behavior
2348         on non-mac platforms.
2349
2350         This patch makes the mac specific change ifdef'ed and only applied for the mac
2351         platform.
2352
2353         * WebCoreSupport/ChromeClientQt.cpp:
2354         (WebCore::ChromeClientQt::windowResizerRect):
2355
2356 2010-04-15  Bruno Schmidt  <bruno.schmidt@gmail.com>
2357
2358         Reviewed by Kenneth Rohde Christiansen.
2359
2360         [Qt] Null QObjects properties cause Segmentation Fault
2361         https://bugs.webkit.org/show_bug.cgi?id=34730
2362
2363         QObjects exported to the QWebkit javascript with properties that are
2364         a null "QObject*" cause Segmentation Fault.
2365
2366         If an QObject is added to the javascript context and it contains
2367         properties of the type QObject* with NULL value, calling the property
2368         causes Segmentation Fault.
2369
2370         Follow the tests for the corrections done over WebCore.
2371
2372         * tests/qwebframe/tst_qwebframe.cpp:
2373         (MyQObject::MyQObject): init the field m_objectStar
2374         (MyQObject::objectStarProperty): read the Object* prop
2375         (MyQObject::setObjectStarProperty): write the Object* prop
2376         (tst_QWebFrame::getSetStaticProperty): new tests for the new prop
2377
2378 2010-04-14  Luiz Agostini  <luiz.agostini@openbossa.org>
2379
2380         Reviewed by Kenneth Rohde Christiansen.
2381
2382         Changing view mode names due to specification changes
2383         https://bugs.webkit.org/show_bug.cgi?id=37615
2384
2385         test: fast/media/media-feature-wgt-view-mode.html
2386
2387         specification: http://dev.w3.org/2006/waf/widgets-vmmf/
2388
2389         * WebCoreSupport/ChromeClientQt.cpp:
2390         (WebCore::ChromeClientQt::isWindowed):
2391         (WebCore::ChromeClientQt::isFullscreen):
2392         (WebCore::ChromeClientQt::isMaximized):
2393         (WebCore::ChromeClientQt::isMinimized):
2394         * WebCoreSupport/ChromeClientQt.h:
2395
2396 2010-04-14  Luiz Agostini  <luiz.agostini@openbossa.org>
2397
2398         Reviewed by Simon Hausmann.
2399
2400         [Qt] Moving setViewMode from DumpRenderTreeSupportQt to qwebpage.cpp
2401         https://bugs.webkit.org/show_bug.cgi?id=37622
2402
2403         Method qt_wrt_setViewMode was removed from qwebpage.cpp by mistake in r57433
2404         (bug 35844). Moving it back.
2405
2406         * Api/qwebpage.cpp:
2407         (qt_wrt_setViewMode):
2408         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2409         (DumpRenderTreeSupportQt::setMediaType):
2410         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2411
2412 2010-04-14  Andreas Kling  <andreas.kling@nokia.com>
2413
2414         Reviewed by Kenneth Rohde Christiansen.
2415
2416         [Qt] Rendering artifacts on Qt plugins when scrolling the page
2417         https://bugs.webkit.org/show_bug.cgi?id=37152
2418
2419         Because we no longer repaint the entire viewport on scroll,
2420         we must trigger a repaint of QtPluginWidgets when their geometry changes.
2421
2422         * WebCoreSupport/FrameLoaderClientQt.cpp:
2423
2424 2010-04-14  Aaron Boodman  <aa@chromium.org>
2425
2426         Reviewed by David Levin.
2427
2428         Support relative URLs for notifications on Chromium. They weren't working previously because WebCore was inserting
2429         the relative URL into a KURL instance, but when KURL is backed by GURL as it is on Chromium, relative URLs are
2430         unsupported. Fixed by resolving the relative URL first.
2431
2432         https://bugs.webkit.org/show_bug.cgi?id=36623
2433
2434         Adding tests for this is difficult because we don't currently have DRT support for notifications on Mac, only Windows.
2435
2436         * WebCoreSupport/NotificationPresenterClientQt.cpp:
2437         (NotificationPresenterClientQt::show): Return type of NotificationContents::iconURL() changed.
2438
2439 2010-04-13  Timothy Hatcher  <timothy@apple.com>
2440
2441         Rename SecurityOrigin::whiteListAccessFromOrigin to addOriginAccessWhitelistEntry.
2442         And SecurityOrigin::resetOriginAccessWhiteLists to resetOriginAccessWhitelists.
2443
2444         SecurityOrigin needs a way to remove individual OriginAccessEntries
2445         https://bugs.webkit.org/show_bug.cgi?id=37449
2446
2447         Reviewed by Dave Hyatt.
2448
2449         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2450         (DumpRenderTreeSupportQt::whiteListAccessFromOrigin):
2451         (DumpRenderTreeSupportQt::resetOriginAccessWhiteLists):
2452
2453 2010-04-11  Sheriff Bot  <webkit.review.bot@gmail.com>
2454
2455         Unreviewed, rolling out r57468.
2456         http://trac.webkit.org/changeset/57468
2457         https://bugs.webkit.org/show_bug.cgi?id=37433
2458
2459         Broke the world...  Must have applied the patch wrong
2460         (Requested by abarth on #webkit).
2461
2462         * WebCoreSupport/FrameLoaderClientQt.cpp:
2463         (WebCore::FrameLoaderClientQt::finishedLoading):
2464         (WebCore::FrameLoaderClientQt::setMainDocumentError):
2465         (WebCore::FrameLoaderClientQt::committedLoad):
2466         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
2467
2468 2010-04-11  Adam Barth  <abarth@webkit.org>
2469
2470         Reviewed by Eric Seidel.
2471
2472         Factor DocumentWriter out of FrameLoader
2473         https://bugs.webkit.org/show_bug.cgi?id=37175
2474
2475         Update these callsites because the method moved to DocumentWriter.
2476
2477         * WebCoreSupport/FrameLoaderClientQt.cpp:
2478         (WebCore::FrameLoaderClientQt::finishedLoading):
2479         (WebCore::FrameLoaderClientQt::setMainDocumentError):
2480         (WebCore::FrameLoaderClientQt::committedLoad):
2481         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
2482
2483 2010-04-11  Robert Hogan  <robert@webkit.org>
2484
2485         Reviewed by Simon Hausmann.
2486
2487         [Qt] Add setWillSendRequestReturnsNull and setWillSendRequestClearHeader
2488
2489         https://bugs.webkit.org/show_bug.cgi?id=37410
2490
2491         * WebCoreSupport/FrameLoaderClientQt.cpp:
2492         (qt_set_will_send_request_returns_null):
2493         (qt_set_will_send_request_clear_headers):
2494         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
2495
2496 2010-04-10  Robert Hogan  <robert@webkit.org>
2497
2498         Reviewed by Kenneth Rohde Christiansen.
2499
2500         Refactor Qt DRT support in QtWebKit
2501
2502         Move all QT DRT support functions to a static class.
2503
2504         https://bugs.webkit.org/show_bug.cgi?id=35844
2505
2506         * Api/qwebframe.cpp: Remove static functions.
2507         * Api/qwebframe.h: Make DumpRenderTreeSupportQt a friend.
2508         * Api/qwebpage.cpp: Remove static functions.
2509         * Api/qwebpage.h: Make DumpRenderTreeSupportQt a friend.
2510         * Api/qwebsecurityorigin.cpp: Remove static functions.
2511         * WebCoreSupport/DumpRenderTreeSupportQt.cpp: Added.
2512         (DumpRenderTreeSupportQt::DumpRenderTreeSupportQt):
2513         (DumpRenderTreeSupportQt::~DumpRenderTreeSupportQt):
2514         (DumpRenderTreeSupportQt::overwritePluginDirectories):
2515         (DumpRenderTreeSupportQt::workerThreadCount):
2516         (DumpRenderTreeSupportQt::setDumpRenderTreeModeEnabled):
2517         (DumpRenderTreeSupportQt::setFrameFlatteningEnabled):
2518         (DumpRenderTreeSupportQt::webPageSetGroupName):
2519         (DumpRenderTreeSupportQt::webPageGroupName):
2520         (DumpRenderTreeSupportQt::webInspectorExecuteScript):
2521         (DumpRenderTreeSupportQt::webInspectorClose):
2522         (DumpRenderTreeSupportQt::webInspectorShow):
2523         (DumpRenderTreeSupportQt::setTimelineProfilingEnabled):
2524         (DumpRenderTreeSupportQt::hasDocumentElement):
2525         (DumpRenderTreeSupportQt::setJavaScriptProfilingEnabled):
2526         (DumpRenderTreeSupportQt::pauseAnimation):
2527         (DumpRenderTreeSupportQt::pauseTransitionOfProperty):
2528         (DumpRenderTreeSupportQt::pauseSVGAnimation):
2529         (DumpRenderTreeSupportQt::numberOfActiveAnimations):
2530         (DumpRenderTreeSupportQt::clearFrameName):
2531         (DumpRenderTreeSupportQt::javaScriptObjectsCount):
2532         (DumpRenderTreeSupportQt::garbageCollectorCollect):
2533         (DumpRenderTreeSupportQt::garbageCollectorCollectOnAlternateThread):
2534         (DumpRenderTreeSupportQt::counterValueForElementById):
2535         (DumpRenderTreeSupportQt::pageNumberForElementById):
2536         (DumpRenderTreeSupportQt::numberOfPages):
2537         (DumpRenderTreeSupportQt::suspendActiveDOMObjects):
2538         (DumpRenderTreeSupportQt::resumeActiveDOMObjects):
2539         (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
2540         (DumpRenderTreeSupportQt::whiteListAccessFromOrigin):
2541         (DumpRenderTreeSupportQt::resetOriginAccessWhiteLists):
2542         (DumpRenderTreeSupportQt::setDomainRelaxationForbiddenForURLScheme):
2543         (DumpRenderTreeSupportQt::setCaretBrowsingEnabled):
2544         (DumpRenderTreeSupportQt::setMediaType):
2545         (DumpRenderTreeSupportQt::setViewMode):
2546         * WebCoreSupport/DumpRenderTreeSupportQt.h: Added.
2547         * WebCoreSupport/EditorClientQt.h:
2548         * tests/qwebpage/tst_qwebpage.cpp:
2549         (tst_QWebPage::multiplePageGroupsAndLocalStorage):
2550         (tst_QWebPage::inputMethodsTextFormat):
2551         (tst_QWebPage::protectBindingsRuntimeObjectsFromCollector):
2552
2553 2010-04-11  Robert Hogan  <robert@webkit.org>
2554
2555         Reviewed by Simon Hausmann.
2556
2557         [Qt] Update layoutTestController.DumpResourceLoadCallbacks to match other ports.
2558
2559         Unskip  http/tests/xmlhttprequest/abort-should-cancel-load.html
2560                 http/tests/misc/will-send-request-returns-null-on-redirect.html
2561                 fast/loader/user-style-sheet-resource-load-callbacks.html
2562                 http/tests/misc/window-dot-stop.html
2563                 http/tests/security/XFrameOptions/x-frame-options-deny-meta-tag-parent-same-origin-allow.html
2564                 http/tests/security/XFrameOptions/x-frame-options-deny.html
2565                 http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-allow.html
2566                 http/tests/security/XFrameOptions/x-frame-options-parent-same-origin-deny.html
2567                 http/tests/xmlhttprequest/abort-should-cancel-load.html
2568
2569         QNetworkReply::OperationCanceledError has a value of 5, so update expected results accordingly.
2570
2571         https://bugs.webkit.org/show_bug.cgi?id=37237
2572
2573         * WebCoreSupport/FrameLoaderClientQt.cpp:
2574         (qt_set_will_send_request_returns_null_on_redirect):
2575         (drtDescriptionSuitableForTestResult):
2576         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
2577         (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
2578         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
2579         (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
2580
2581 2010-04-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2582
2583         Reviewed by Kenneth Rohde Christiansen.
2584
2585         [Qt] Implement Desktop Notifications API for QtWebKit
2586         https://bugs.webkit.org/show_bug.cgi?id=35503
2587
2588         Map WebKit notifications to Qt's SystemTray API and
2589         implement DRT tracing.
2590
2591         This patch does not implement the security part of
2592         WebKit notifications.
2593
2594         * Api/qwebpage.cpp:
2595         (QWebPagePrivate::QWebPagePrivate):
2596         * Api/qwebpage.h:
2597         * Api/qwebpage_p.h:
2598         * WebCoreSupport/ChromeClientQt.cpp:
2599         (WebCore::ChromeClientQt::notificationPresenter):
2600         * WebCoreSupport/ChromeClientQt.h:
2601         * WebCoreSupport/NotificationPresenterClientQt.cpp: Added.
2602         (qt_dump_notification):
2603         (NotificationPresenterClientQt::NotificationPresenterClientQt):
2604         (NotificationPresenterClientQt::show):
2605         (NotificationPresenterClientQt::cancel):
2606         (NotificationPresenterClientQt::notificationObjectDestroyed):
2607         (NotificationPresenterClientQt::requestPermission):
2608         (NotificationPresenterClientQt::checkPermission):
2609         * WebCoreSupport/NotificationPresenterClientQt.h: Added.
2610
2611 2010-04-09  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
2612
2613         Reviewed by Simon Hausmann.
2614
2615         [Qt]Fix compile error with QT_NO_IM
2616         https://bugs.webkit.org/show_bug.cgi?id=36533
2617
2618         * WebCoreSupport/QtFallbackWebPopup.cpp:
2619         (WebCore::QtFallbackWebPopupCombo::hidePopup):
2620
2621 2010-04-09  Yi Shen  <yi.4.shen@nokia.com>
2622
2623         Reviewed by Kenneth Rohde Christiansen.
2624
2625         [Qt] tst_QWebFrame::popupFocus() fails
2626         https://bugs.webkit.org/show_bug.cgi?id=37320
2627
2628         The QWebPopup class has been moved & renamed, so tst_QWebFrame::popupFocus() should use
2629         the class name "QComboBox", rather than "WebCore::QWebPopup" to find the popup menu.
2630
2631         * tests/qwebframe/tst_qwebframe.cpp:
2632
2633 2010-04-09  Antonio Gomes  <tonikitoo@webkit.org>
2634
2635         Reviewed by Holger Freyther.
2636
2637         Removing the use of topLevelWidget of QWidget class since it is deprecated/obsolete
2638         since Qt 4.5. window() method is being used instead now.
2639
2640         See http://doc.trolltech.com/4.5/qwidget-obsolete.html#topLevelWidget for more info.
2641
2642         * WebCoreSupport/ChromeClientQt.cpp:
2643         (WebCore::ChromeClientQt::windowRect):
2644         (WebCore::ChromeClientQt::show):
2645         (WebCore::ChromeClientQt::windowResizerRect):
2646
2647 2010-04-09  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
2648
2649         Reviewed by Simon Hausmann.
2650
2651         [Qt] Fix compile error with QT_NO_ACTION
2652         https://bugs.webkit.org/show_bug.cgi?id=36529
2653
2654         Make sure QT_NO_ACTION is not defined to use QAction
2655
2656         * Api/qgraphicswebview.cpp:
2657         (QGraphicsWebView::pageAction):
2658         * Api/qwebpage.cpp:
2659         (QWebPagePrivate::updateAction):
2660         (QWebPage::updatePositionDependentActions):
2661         * Api/qwebpage.h:
2662         * Api/qwebview.cpp:
2663         * Api/qwebview.h:
2664
2665 2010-04-09  Simon Hausmann  <simon.hausmann@nokia.com>
2666
2667         Reviewed by Lars Knoll.
2668
2669         [Qt] tests/qgraphicswebview fails
2670         https://bugs.webkit.org/show_bug.cgi?id=37317
2671
2672         * Api/qwebpage.cpp:
2673         (QWebPage::userAgentForUrl): Don't crash if the ownerWidget is null.
2674
2675 2010-04-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
2676
2677         Reviewed by Simon Hausmann.
2678
2679         [Qt] Warnings when compiling InspectorClientQt.cpp
2680         https://bugs.webkit.org/show_bug.cgi?id=37266
2681
2682         Add a default: for the switch()-case to avoid
2683         warnings.
2684
2685         * WebCoreSupport/InspectorClientQt.cpp:
2686         (WebCore::variantToSetting):
2687
2688 2010-04-01  Antonio Gomes  <tonikitoo@webkit.org>
2689
2690         Reviewed by David Hyatt.
2691
2692         [Qt] REGRESSION:(r50665) QWebFrame::setScrollBarPolicy(Qt::Vertical,Qt::ScrollBarAlwaysOff) has no effect.
2693         https://bugs.webkit.org/show_bug.cgi?id=29431
2694
2695         Make use of the new lock parameter of set{Vertical,Horizontal}ScrollbarMode.
2696
2697         Always added a qt auto test for set scrollbar policy feature.
2698
2699         * Api/qwebframe.cpp:
2700         (QWebFrame::setScrollBarPolicy):
2701         * tests/qwebframe/tst_qwebframe.cpp:
2702         * WebCoreSupport/FrameLoaderClientQt.cpp:
2703         (FrameLoaderClientQt::transitionToCommittedForNewPage):
2704
2705 2010-04-08  Joe Ligman  <joseph.ligman@nokia.com>
2706
2707         Reviewed by Simon Hausmann.
2708
2709         [Qt] WebKit crashes while input text through input method.
2710         The formatted text underline painting crashes when painting with invalid indexes.
2711         https://bugs.webkit.org/show_bug.cgi?id=36870
2712
2713         * Api/qwebpage.cpp:
2714         (QWebPagePrivate::inputMethodEvent):
2715         * tests/qwebpage/tst_qwebpage.cpp:
2716         (tst_QWebPage::inputMethodsTextFormat_data):
2717         (tst_QWebPage::inputMethodsTextFormat):
2718
2719 2010-04-08  Joe Ligman  <joseph.ligman@nokia.com>
2720
2721         Reviewed by Simon Hausmann.
2722
2723         [Qt] qtwebkit_webframe_scrollRecursively scrolls when body.style.overflow="hidden"
2724         https://bugs.webkit.org/show_bug.cgi?id=36674
2725
2726         The scrolling check was based on the frameview's scrolloffset, and
2727         maximumScrollPosition, which does not acknowledge the overflow properties.
2728
2729         I am now basing the scrolling off the scrollbar position. The scrollbars are
2730         affected by the overflow properties indicating when not to scroll. The scrollbar
2731         positions also continue to work for CSS ::-webkit-scrollbar styles.
2732
2733         * Api/qwebframe.cpp:
2734         (qtwebkit_webframe_scrollRecursively):
2735
2736 2010-04-07  Andrey Kosyakov  <caseq@chromium.org>
2737
2738         Reviewed by Yury Semikhatsky.
2739
2740         Removed redundant FrameLoaderClient::dispatchDidLoadResourceByXMLHttpRequest()
2741         https://bugs.webkit.org/show_bug.cgi?id=36949
2742
2743         * WebCoreSupport/FrameLoaderClientQt.cpp:
2744         * WebCoreSupport/FrameLoaderClientQt.h:
2745
2746 2010-04-07  Dawit Alemayehu  <adawit@kde.org>
2747
2748         Reviewed by Simon Hausmann.
2749
2750         https://bugs.webkit.org/show_bug.cgi?id=36827
2751
2752         Updated the WebCore::shouldTreatAsAttachement function call with the
2753         new more generic replacement WebCore::contentDispositionType.
2754
2755         See comments 39-42 in https://bugs.webkit.org/show_bug.cgi?id=36395
2756
2757         * WebCoreSupport/FrameLoaderClientQt.cpp:
2758         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2759
2760 2010-04-07  Andreas Kling  <andreas.kling@nokia.com>
2761
2762         Reviewed by Simon Hausmann.
2763
2764         [Qt] When providing a widget for the PDF mime type it will cause a crash
2765
2766         m_pluginView may actually be a Widget (for embedded Qt widgets),
2767         so always check isPluginView() before calling PluginView specific methods.
2768
2769         https://bugs.webkit.org/show_bug.cgi?id=29450
2770
2771         * WebCoreSupport/FrameLoaderClientQt.cpp:
2772         (WebCore::FrameLoaderClientQt::finishedLoading):
2773         (WebCore::FrameLoaderClientQt::setMainDocumentError):
2774         (WebCore::FrameLoaderClientQt::committedLoad):
2775
2776 2010-04-06  Diego Gonzalez  <diego.gonzalez@openbossa.org>
2777
2778         Reviewed by Simon Hausmann.
2779
2780         [Qt] Add mechanism to detect QtWebKit 2.0 via the preprocessor
2781         https://bugs.webkit.org/show_bug.cgi?id=36538
2782
2783         * Api/qwebkitglobal.h:
2784
2785 2010-04-02  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2786
2787         Reviewed by Kenneth Rohde Christiansen.
2788
2789         [Qt] [Symbian] Rebaseline Symbian def file
2790         https://bugs.webkit.org/show_bug.cgi?id=37038
2791
2792         Switch the ordinal numbers for qtwebkit_webframe_scrollRecursively
2793         and QWebInspector::closeEvent to match QtWebkit 4.6 branch
2794
2795         Fix the signature for qt_drt_setFrameFlatteningEnabled
2796         after r56718.
2797
2798         Add new QtWebKit API symbols introduced not listed in the file yet.
2799
2800         * symbian/eabi/QtWebKitu.def:
2801
2802 2010-03-30  Antonio Gomes  <tonikitoo@webkit.org>
2803
2804         Reviewed by Adam Treat.
2805
2806         Stored focused frame and document in a vars, instead of querying for them many times.
2807
2808         * Api/qwebpage.cpp:
2809         (QWebPagePrivate::mousePressEvent(QEvent* ev)):
2810         (QWebPagePrivate::mousePressEvent(QGraphicsSceneMouseEvent* ev):
2811
2812 2010-04-02  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
2813
2814         Reviewed by Eric Seidel.
2815
2816         [Qt]Fix compile error with QT_NO_SETTINGS
2817         https://bugs.webkit.org/show_bug.cgi?id=36533
2818
2819         If QT_NO_SETTINGS is defined, QSettings is not available.
2820
2821         * WebCoreSupport/InspectorClientQt.cpp:
2822         (WebCore::InspectorClientQt::populateSetting):
2823         (WebCore::InspectorClientQt::storeSetting):
2824
2825 2010-04-02  Luiz Agostini  <luiz.agostini@openbossa.org>
2826
2827         Reviewed by Kenneth Rohde Christiansen.
2828
2829         [Qt] Maemo5 theme - customized popup for <select multiple> elements
2830         https://bugs.webkit.org/show_bug.cgi?id=36368
2831
2832         Using QtMaemoWebPopup instead of QtFallbackWebPopup for Maemo.
2833
2834         * WebCoreSupport/ChromeClientQt.cpp:
2835         (WebCore::ChromeClientQt::createSelectPopup):
2836         * WebCoreSupport/QtFallbackWebPopup.cpp:
2837         (WebCore::QtFallbackWebPopup::show):
2838         (WebCore::QtFallbackWebPopup::populate):
2839
2840 2010-04-01  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
2841
2842         Reviewed by Kenneth Rohde Christiansen.
2843
2844         Add Single and Multiple Selection Popup for Maemo 5.
2845
2846         [Qt] Maemo5 theme - popup dialogs
2847         https://bugs.webkit.org/show_bug.cgi?id=36789
2848
2849         * WebCoreSupport/QtMaemoWebPopup.cpp:
2850         (WebCore::Maemo5Popup::populateList):
2851         (WebCore::Maemo5Popup::onItemSelected):
2852         (WebCore::QtMaemoWebPopup::createSingleSelectionPopup):
2853         (WebCore::QtMaemoWebPopup::createMultipleSelectionPopup):
2854         (WebCore::Maemo5SingleSelectionPopup::Maemo5SingleSelectionPopup):
2855         (WebCore::MultipleItemListDelegate::MultipleItemListDelegate):
2856         (WebCore::MultipleItemListDelegate::paint):
2857         (WebCore::Maemo5MultipleSelectionPopup::Maemo5MultipleSelectionPopup):
2858         * WebCoreSupport/QtMaemoWebPopup.h:
2859
2860 2010-03-31  Marcus Bulach  <bulach@chromium.org>
2861
2862         Reviewed by Jeremy Orlow.
2863
2864         Adds Geolocation param for cancelGeolocationPermissionRequestForFrame.
2865         https://bugs.webkit.org/show_bug.cgi?id=35031
2866
2867         * WebCoreSupport/ChromeClientQt.h:
2868         (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
2869
2870 2010-03-31  Antti Koivisto  <koivisto@iki.fi>
2871
2872         Reviewed by Kenneth Rohde Christiansen.
2873
2874         https://bugs.webkit.org/show_bug.cgi?id=36446
2875         [Qt] QWebSettings::TiledBackingStoreEnabled attribute lacks documentation and default value
2876
2877         * Api/qgraphicswebview.cpp:
2878         * Api/qwebsettings.cpp:
2879         (QWebSettings::QWebSettings):
2880
2881 2010-03-30  Gavin Barraclough  <barraclough@apple.com>
2882
2883         Rubber stamped by Sam Weinig.
2884
2885         https://bugs.webkit.org/show_bug.cgi?id=36866
2886         Move CString to WTF
2887
2888         * Api/qwebelement.cpp:
2889
2890 2010-03-30  Joe Ligman  <joseph.ligman@nokia.com>
2891
2892         Reviewed by Kenneth Rohde Christiansen.
2893
2894         [Qt] QGraphicsScene mousePressEvent does not set the clickCausedFocus flag
2895         https://bugs.webkit.org/show_bug.cgi?id=35259
2896
2897         The clickCausedFocus flag is not being set in method
2898         mousePressEvent(QGraphicsSceneMouseEvent* ev). This flag is used 
2899         in conjunction with QStyle::RSIP_OnMouseClickAndAlreadyFocused when
2900         deciding to launch the software input panel.
2901
2902         * Api/qwebpage.cpp:
2903         (QWebPagePrivate::mousePressEvent):
2904
2905 2010-03-30  Luiz Agostini  <luiz.agostini@openbossa.org>
2906
2907         Reviewed by Kenneth Rohde Christiansen.
2908
2909         [Qt] Maemo5 theme - QtMaemoWebPopup class
2910         https://bugs.webkit.org/show_bug.cgi?id=36790
2911
2912         A new QtAbstractWebPopup descendant class to be used for maemo menu lists.
2913         This is the first step. The next step will be the dialogs implementation that
2914         will come in bug 36789 and finally to use QtMaemoWebPopup instead of QtFallbackWebPopup
2915         that will come in bug 36368.
2916
2917         * WebCoreSupport/QtMaemoWebPopup.cpp: Added.
2918         (WebCore::QtMaemoWebPopup::QtMaemoWebPopup):
2919         (WebCore::QtMaemoWebPopup::~QtMaemoWebPopup):
2920         (WebCore::QtMaemoWebPopup::createSingleSelectionPopup):
2921         (WebCore::QtMaemoWebPopup::createMultipleSelectionPopup):
2922         (WebCore::QtMaemoWebPopup::createPopup):
2923         (WebCore::QtMaemoWebPopup::show):
2924         (WebCore::QtMaemoWebPopup::hide):
2925         (WebCore::QtMaemoWebPopup::popupClosed):
2926         (WebCore::QtMaemoWebPopup::itemClicked):
2927         * WebCoreSupport/QtMaemoWebPopup.h: Added.
2928         (WebCore::Maemo5Popup::Maemo5Popup):
2929
2930 2010-03-29  Dawit Alemayehu  <adawit@kde.org>
2931
2932         Reviewed by Simon Hausmann.
2933
2934         [Qt] Added support for handling the HTTP "Content-Disposition" header.
2935
2936         https://bugs.webkit.org/show_bug.cgi?id=36395
2937
2938         Whenever a server response contains a "Content-Disposition: attachment..." header, 
2939         treat the request as a download and emit the unsupportedContent signal.
2940
2941         * Api/qwebpage.cpp:
2942         * WebCoreSupport/FrameLoaderClientQt.cpp:
2943         (WebCore::FrameLoaderClientQt::download):
2944         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2945
2946 2010-03-22  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2947
2948         Reviewed by Simon Fraser.
2949
2950         Add support for Widgets 1.0: View Mode Media Feature
2951         https://bugs.webkit.org/show_bug.cgi?id=35446
2952
2953         Add an internal Qt API for changing the view mode media feature
2954         (http://www.w3.org/TR/widgets-vmmf/).
2955
2956         * Api/qwebpage.cpp:
2957         (qt_wrt_setViewMode):
2958         (QWebPagePrivate::priv):
2959         * Api/qwebpage_p.h:
2960         * WebCoreSupport/ChromeClientQt.cpp:
2961         (WebCore::ChromeClientQt::isDocked):
2962         (WebCore::ChromeClientQt::isFloating):
2963         (WebCore::ChromeClientQt::isApplication):
2964         (WebCore::ChromeClientQt::isFullscreen):
2965         * WebCoreSupport/ChromeClientQt.h:
2966
2967 2010-03-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2968
2969         Reviewed by Antti Koivisto.
2970
2971         Use 'Mobile Safari' instead of 'Safari' on mobile Qt platforms.
2972
2973         * Api/qwebpage.cpp:
2974         (QWebPage::userAgentForUrl):
2975
2976 2010-03-29  Simon Hausmann  <simon.hausmann@nokia.com>
2977
2978         Reviewed by Tor Arne Vestbø.
2979
2980         [Qt] unit tests don't compile inside of Qt
2981
2982         https://bugs.webkit.org/show_bug.cgi?id=36756
2983
2984         * tests/tests.pri: Don't do the target substitution inside Qt and find the sources
2985         through VPATH instead of relying on the location of the .pro file exclusively.
2986
2987 2010-03-26  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2988
2989         Reviewed by Antti Koivisto.
2990
2991         Change due to renaming of frame flattening setting.
2992
2993         * Api/qwebpage.cpp:
2994         (qt_drt_setFrameFlatteningEnabled):
2995         * Api/qwebsettings.cpp:
2996         (QWebSettingsPrivate::apply):
2997         * symbian/eabi/QtWebKitu.def:
2998
2999 2010-03-28  Alexey Proskuryakov  <ap@apple.com>
3000
3001         Build fix. Include WindowsKeyboardCodes.h instead of KeyboardCodes.h.
3002
3003         * WebCoreSupport/EditorClientQt.cpp:
3004
3005 2010-03-26  Olivier Goffart  <ogoffart@trolltech.com>
3006
3007         Reviewed by Simon Hausmann.
3008
3009         [Qt] Compile with QT_USE_FAST_OPERATOR_PLUS
3010
3011         * WebCoreSupport/InspectorClientQt.cpp:
3012         (WebCore::InspectorClientQt::populateSetting):
3013         (WebCore::InspectorClientQt::storeSetting):
3014
3015 2010-03-26  David Boddie  <dboddie@trolltech.com>
3016
3017         Reviewed by Simon Hausmann.
3018
3019         [Qt] Doc: Simplified Commercial Editions for Qt 4.7.
3020
3021         * docs/qtwebkit.qdoc:
3022
3023 2010-03-26  Simon Hausmann  <simon.hausmann@nokia.com>
3024
3025         Symbian build fix.
3026
3027         [Qt] Updated the def file with new exports used by QtLauncher.
3028
3029         * symbian/eabi/QtWebKitu.def:
3030
3031 2010-03-25  Yael Aharon  <yael.aharon@nokia.com>
3032
3033         Reviewed by Kenneth Rohde Christiansen.
3034
3035         [Qt] QtLauncher crashes on Mac OS and Linux when exiting with QGraphicsView mode enabled
3036         https://bugs.webkit.org/show_bug.cgi?id=35251
3037
3038         Followed the way QWebView registers for the signal QWebPage::destroyed(), to prevent
3039         QGraphicsWebView from referencing QWebPage after it was deleted.        
3040
3041         * Api/qgraphicswebview.cpp:
3042         (QGraphicsWebViewPrivate::_q_pageDestroyed):
3043         (QGraphicsWebView::setPage):
3044         * Api/qgraphicswebview.h:
3045
3046 2010-03-25  Kent Hansen  <kent.hansen@nokia.com>
3047
3048         Reviewed by Simon Hausmann.
3049
3050         [Qt] QWebFrame::pageChanged() signal is not documented
3051         https://bugs.webkit.org/show_bug.cgi?id=36609
3052
3053         * Api/qwebframe.cpp:
3054
3055 2010-03-25  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3056
3057         Reviewed by Simon Hausmann.
3058
3059         [Qt] Implement ChromeClient::windowResizerRect()
3060
3061         https://bugs.webkit.org/show_bug.cgi?id=21300
3062
3063         We assume the resize corner to be in the lower right corner of
3064         the window and having the width and height of the scrollbars.
3065
3066         The helper function geometryRelativeToOwnerWidget() in the page
3067         client is used to clip the resize rect to the actual size of the
3068         viewport, not the size of the QGraphicsView.
3069
3070         * Api/qgraphicswebview.cpp:
3071         * Api/qwebpage.cpp:
3072         * WebCoreSupport/ChromeClientQt.cpp:
3073
3074 2010-03-25  Shu Chang  <chang.shu@nokia.com>
3075
3076         Reviewed by Simon Hausmann.
3077
3078         [Qt] Added documentation for delete button.
3079         https://bugs.webkit.org/show_bug.cgi?id=31560
3080
3081         * Api/qwebsettings.cpp:
3082
3083 2010-03-25  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
3084
3085         Reviewed by Eric Seidel.
3086
3087         [Qt]Fix compile error with QT_NO_DESKTOPSERVICES
3088         https://bugs.webkit.org/show_bug.cgi?id=36533
3089
3090         * Api/qwebsettings.cpp:
3091         (QWebSettings::enablePersistentStorage):
3092
3093 2010-03-25  Tasuku Suzuki  <tasuku.suzuki@nokia.com>
3094
3095         Reviewed by Eric Seidel.
3096
3097         [Qt]Fix compile error with QT_NO_DEBUG_STREAM
3098         https://bugs.webkit.org/show_bug.cgi?id=36533
3099
3100         * Api/qgraphicswebview.cpp:
3101         (QGraphicsWebViewPrivate::graphicsItemVisibleRect):
3102
3103 2010-03-25  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3104
3105         Reviewed by Eric Seidel.
3106
3107         Make QWebPage not depend on view() but use the client->ownerWidget()
3108         instead. Also, handle the case where there is not page client.
3109
3110         * Api/qwebpage.cpp:
3111         (QWebPagePrivate::createContextMenu):
3112         (QWebPagePrivate::keyPressEvent):
3113         (QWebPage::javaScriptAlert):
3114         (QWebPage::javaScriptConfirm):
3115         (QWebPage::javaScriptPrompt):
3116         (QWebPage::shouldInterruptJavaScript):
3117         (QWebPage::createWindow):
3118         (QWebPage::action):
3119         (QWebPage::extension):
3120         (QWebPage::chooseFile):
3121         (QWebPage::userAgentForUrl):
3122
3123 2010-03-24  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
3124
3125         Reviewed by Kenneth Rohde Christiansen.
3126
3127         Add the FrameFlatteningEnabled WebAttribute to QWebSettings.
3128
3129         [Qt] Missing QWebSettings for Frame Flattening
3130         https://bugs.webkit.org/show_bug.cgi?id=36553
3131
3132         * Api/qwebsettings.cpp:
3133         (QWebSettingsPrivate::apply):
3134         (QWebSettings::QWebSettings):
3135         * Api/qwebsettings.h:
3136
3137 2010-03-24  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
3138
3139         Reviewed by Laszlo Gombos.
3140
3141         Auto-uppercase and predictive text need to be disabled for S60 (as for maemo)
3142         https://bugs.webkit.org/show_bug.cgi?id=33176
3143
3144         * WebCoreSupport/EditorClientQt.cpp:
3145
3146 2010-03-24  Kent Hansen  <kent.hansen@nokia.com>
3147
3148         Reviewed by Simon Hausmann.
3149
3150         [Qt] Rename QWebSettings::XSSAuditorEnabled to XSSAuditingEnabled
3151         https://bugs.webkit.org/show_bug.cgi?id=36522
3152
3153         For consistency with other QWebSettings attributes.
3154
3155         * Api/qwebsettings.cpp:
3156         (QWebSettingsPrivate::apply):
3157         * Api/qwebsettings.h:
3158
3159 2010-03-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3160
3161         Reviewed by Simon Hausmann.
3162
3163         Calling setView(0) on a QWebPage being shown by a QGraphicsWebView,
3164         would uninstall the page client, deleting the QGraphicsWebViewPrivate
3165         instance. If called with an argument, it would do a wrong static_cast
3166         and crash.
3167
3168         * Api/qwebpage.cpp:
3169         (QWebPageWidgetClient::QWebPageWidgetClient):
3170         (QWebPageWidgetClient::isQWidgetClient):
3171         (QWebPageWidgetClient::screenNumber):
3172         (QWebPage::QWebPage):
3173         (QWebPage::setView):
3174         * Api/qgraphicswebview.cpp:
3175         (QGraphicsWebViewPrivate::unsetPageIfExists):
3176         (QGraphicsWebView::setPage):
3177         * Api/qwebpage.cpp:
3178         (QWebPageWidgetClient::isQWidgetClient):
3179         (QWebPageWidgetClient::screenNumber):
3180         (QWebPage::QWebPage):
3181         (QWebPage::setView):
3182         * Api/qwebpage.h:
3183         * Api/qwebview.cpp:
3184         (QWebViewPrivate::unsetPageIfExists):
3185         (QWebView::setPage):
3186
3187 2010-03-24  Kent Tamura  <tkent@chromium.org>
3188
3189         Reviewed by Darin Adler.
3190
3191         Make Icon::createIconForFiles() optional.
3192         https://bugs.webkit.org/show_bug.cgi?id=35072
3193
3194         - Rename iconForFiles() to chooseIconForFiles().
3195         - Call Icon::createIconForFiles() from chooseIconForFiles().
3196
3197         * WebCoreSupport/ChromeClientQt.cpp:
3198         (WebCore::ChromeClientQt::chooseIconForFiles):
3199         * WebCoreSupport/ChromeClientQt.h:
3200
3201 2010-03-23  Luiz Agostini  <luiz.agostini@openbossa.org>
3202
3203         Reviewed by Kenneth Rohde Christiansen.
3204
3205         QGraphicsWebView crash when calling setView on the QWebPage...
3206         https://bugs.webkit.org/show_bug.cgi?id=36436
3207
3208         Checking for pageClient existance before showing popups.
3209
3210         * WebCoreSupport/QtFallbackWebPopup.cpp:
3211         (WebCore::QtFallbackWebPopup::show):
3212
3213 2010-03-23  Anders Bakken <anders.bakken@nokia.com>, Jesus Sanchez-Palencia <jesus.palencia@openbossa.org>
3214
3215         Reviewed by Kenneth Rohde Christiansen.
3216
3217         Check if q->scene() is available before actually using it
3218         on QGraphicsWebViewPrivate.
3219
3220         QGraphicsWebView crash
3221         https://bugs.webkit.org/show_bug.cgi?id=32670
3222
3223         * Api/qgraphicswebview.cpp:
3224         (QGraphicsWebViewPrivate::screenNumber):
3225         (QGraphicsWebViewPrivate::ownerWidget):
3226
3227 2010-03-23  David Leong  <david.leong@nokia.com>
3228
3229         Reviewed by Laszlo Gombos.
3230
3231         Build fix for Symbian Def file.
3232
3233         * symbian/eabi/QtWebKitu.def:
3234
3235 2010-03-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3236
3237         Reviewed by Kenneth Rohde Christiansen.
3238
3239         [Qt] Remove support for Qt v4.4
3240         https://bugs.webkit.org/show_bug.cgi?id=36389
3241
3242         * Api/qwebelement.cpp:
3243         (QWebElement::classes):
3244         * Api/qwebpage.cpp:
3245         (QWebPagePrivate::editorActionForKeyEvent):
3246         (QWebPage::userAgentForUrl):
3247         * WebCoreSupport/EditorClientQt.cpp:
3248         (WebCore::EditorClientQt::handleKeyboardEvent):
3249         * tests/tests.pro:
3250
3251 2010-03-22  Kent Hansen  <kent.hansen@nokia.com>
3252
3253         Reviewed by Laszlo Gombos.
3254
3255         [Qt] Fix qdoc warnings
3256         https://bugs.webkit.org/show_bug.cgi?id=36447
3257
3258         * Api/qgraphicswebview.cpp: Add missing ().
3259         * Api/qwebframe.cpp: Remove reference to non-existent parameter "url".
3260         * Api/qwebsettings.cpp:  Document parameter "location".
3261
3262 2010-03-22  Jakub Wieczorek  <jwieczorek@webkit.org>
3263
3264         Reviewed by Simon Hausmann.
3265
3266         [Qt] Don't construct a QLineEdit every time when painting a text field
3267         https://bugs.webkit.org/show_bug.cgi?id=36373
3268
3269         Add a simple benchmark covering this area.
3270
3271         * tests/benchmarks/painting/tst_painting.cpp:
3272         (tst_Painting::textAreas):
3273
3274 2010-03-22  Yi Shen  <shenyi2006@gmail.com>
3275
3276         Reviewed by Simon Hausmann.
3277
3278         https://bugs.webkit.org/show_bug.cgi?id=35933  
3279         [Qt] [Symbian] Can not backward select (highlight) text using virtual keyboard
3280         Make sure the selection start index is smaller than the selection end index.
3281
3282         * Api/qwebpage.cpp:
3283         (QWebPagePrivate::inputMethodEvent):
3284         * tests/qwebpage/tst_qwebpage.cpp:
3285         (tst_QWebPage::inputMethods):
3286
3287 2010-03-21  Kristian Amlie  <kristian.amlie@nokia.com>
3288
3289         Reviewed by Simon Hausmann.
3290
3291         Fixed updating the VKB display when inputting into QGraphicsWebView.
3292         https://bugs.webkit.org/show_bug.cgi?id=36292
3293
3294         * Api/qgraphicswebview.cpp:
3295         (QGraphicsWebViewPrivate::_q_updateMicroFocus):
3296         (QGraphicsWebView::setPage):
3297         * Api/qgraphicswebview.h:
3298
3299 2010-03-19  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3300
3301         Unreviewed.
3302
3303         Buildfix for Qt v4.5.
3304
3305         * Api/qgraphicswebview.cpp:
3306         (QGraphicsWebViewOverlay::q):
3307
3308 2010-03-18  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3309
3310         Reviewed by Darin Adler.
3311
3312         Make it possible for the Qt DRT to set the media type from
3313         the LayoutTestController.
3314
3315         * Api/qwebframe.cpp:
3316         (qt_drt_setMediaType):
3317
3318 2010-03-18  Joe Ligman  <joseph.ligman@nokia.com>
3319
3320         Reviewed by Simon Hausmann.
3321
3322         [Qt] New API scrollRecursively has several problems.
3323         https://bugs.webkit.org/show_bug.cgi?id=35873
3324
3325         Remove scrollRecursively from the Qt 4.7 API
3326         Update the internal API to accept a hit test position 
3327         for nested scrolling
3328
3329         * Api/qwebframe.cpp:
3330         (webframe_scrollOverflow):
3331         (qtwebkit_webframe_scrollRecursively):
3332         * Api/qwebframe.h:
3333         * Api/qwebframe_p.h:
3334         * tests/qwebframe/tst_qwebframe.cpp:
3335
3336 2010-03-18  Antti Koivisto  <koivisto@iki.fi>
3337
3338         Reviewed by Kenneth Rohde Christiansen.
3339
3340         https://bugs.webkit.org/show_bug.cgi?id=36102
3341         [Qt] Scaling control API for tiled backing store
3342         
3343         The scale is set by passing the QGraphicsWebView scale to the backing store. The
3344         only new API is the tiledBackingStoreFrozen property which allows disabling
3345         all updates (for example during zoom animation).
3346
3347         * Api/qgraphicswebview.cpp:
3348         (QGraphicsWebViewPrivate::_q_scaleChanged):
3349         (QGraphicsWebViewPrivate::updateTiledBackingStoreScale):
3350         (QGraphicsWebView::QGraphicsWebView):
3351         (QGraphicsWebView::isTiledBackingStoreFrozen):
3352         (QGraphicsWebView::setTiledBackingStoreFrozen):
3353         * Api/qgraphicswebview.h:
3354         * Api/qwebframe.cpp:
3355         * Api/qwebframe_p.h:
3356
3357 2010-03-17  Antti Koivisto  <koivisto@iki.fi>
3358
3359         Reviewed by Tor Arne Vestbø.
3360
3361         Fix Qt build with tiled backing store disabled.
3362
3363         * Api/qwebframe.cpp:
3364         * Api/qwebframe_p.h:
3365
3366 2010-03-17  Chang Shu  <chang.shu@nokia.com>
3367
3368         Reviewed by Laszlo Gombos.
3369
3370         https://bugs.webkit.org/show_bug.cgi?id=36139
3371         [Qt] Clean up cache while setting cache quota. This behavior matches other platforms,
3372         such as mac and gtk.
3373
3374          * Api/qwebsettings.cpp:
3375         (QWebSettings::setOfflineWebApplicationCacheQuota):
3376
3377 2010-03-17  Csaba Osztrogonác  <ossy@webkit.org>
3378
3379         Reviewed by Kenneth Rohde Christiansen.
3380
3381         [Qt] Enable accelerated compositing by default
3382         https://bugs.webkit.org/show_bug.cgi?id=35866
3383
3384         * Api/qwebsettings.cpp:
3385         (QWebSettings::QWebSettings):
3386
3387 2010-03-15  Antti Koivisto  <koivisto@iki.fi>
3388
3389         Reviewed by Simon Hausmann.
3390
3391         https://bugs.webkit.org/show_bug.cgi?id=36121
3392         [Qt] Make WebKit scrollbars work with tiling
3393         
3394         - Use the scrollbar overlay (implemented for accelerated compositing) when in tiled mode. 
3395         - Make overlay compile unconditionally, enable on demand. This removes bunch of unneeded ifdefs.
3396         - Update the scroll position to the backing store as needed.
3397         - Renamed some methods.
3398
3399         * Api/qgraphicswebview.cpp:
3400         (QGraphicsWebViewPrivate::):
3401         (QGraphicsWebViewPrivate::createOrDeleteOverlay):
3402         (QGraphicsWebViewPrivate::setRootGraphicsLayer):
3403         (QGraphicsWebViewPrivate::updateCompositingScrollPosition):
3404         (QGraphicsWebViewPrivate::scroll):
3405         (QGraphicsWebViewPrivate::update):
3406         (QGraphicsWebViewPrivate::graphicsItemVisibleRect):
3407         (QGraphicsWebView::paint):
3408         (QGraphicsWebView::setPage):
3409         (QGraphicsWebView::updateGeometry):
3410         (QGraphicsWebView::setGeometry):
3411         * Api/qwebframe.cpp:
3412         (QWebFramePrivate::renderFromTiledBackingStore):
3413         * Api/qwebframe_p.h:
3414
3415 2010-03-15  Robert Hogan  <robert@webkit.org>
3416
3417         Reviewed by Simon Hausmann.
3418
3419         [Qt] Fix crash in QWebView::setPage()
3420
3421         tst_qwebpage was crashing on setPage(0)
3422
3423         https://bugs.webkit.org/show_bug.cgi?id=36137
3424
3425         * Api/qwebview.cpp:
3426         (QWebView::setPage):
3427
3428 2010-03-16  Yury Semikhatsky <yurys@chromium.org>
3429
3430         Reviewed by Pavel Feldman.
3431
3432         Introduce InspectorFrontendClient that provides InspectorFrontend with an interface to the embedder. InspectorClient now serves as a delegate for InspectorController and does not contain methods for managing inspector frontend window. That allows to create remote InspectorFrontendHost.
3433
3434         Introduce InspectorFrontendClient that would provide InspectorFrontend with an interface to the embedder
3435         https://bugs.webkit.org/show_bug.cgi?id=35036
3436
3437         * Api/qwebinspector.cpp:
3438         (QWebInspector::hideEvent):
3439         (QWebInspector::closeEvent):
3440         * Api/qwebinspector.h:
3441         * Api/qwebpage.h:
3442         * WebCoreSupport/InspectorClientQt.cpp:
3443         (WebCore::InspectorClientQt::openInspectorFrontend):
3444         (WebCore::InspectorFrontendClientQt::InspectorFrontendClientQt):
3445         (WebCore::InspectorFrontendClientQt::frontendLoaded):
3446         (WebCore::InspectorFrontendClientQt::localizedStringsURL):
3447         (WebCore::InspectorFrontendClientQt::hiddenPanels):
3448         (WebCore::InspectorFrontendClientQt::bringToFront):
3449         (WebCore::InspectorFrontendClientQt::closeWindow):
3450         (WebCore::InspectorFrontendClientQt::attachWindow):
3451         (WebCore::InspectorFrontendClientQt::detachWindow):
3452         (WebCore::InspectorFrontendClientQt::setAttachedWindowHeight):
3453         (WebCore::InspectorFrontendClientQt::inspectedURLChanged):
3454         (WebCore::InspectorFrontendClientQt::updateWindowTitle):
3455         * WebCoreSupport/InspectorClientQt.h:
3456
3457 2010-03-15  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3458
3459         Unreviewed.
3460
3461         [Qt] Build fix if TILED_BACKING_STORE is disabled.
3462
3463         * Api/qwebframe.cpp:
3464         (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
3465
3466 2010-03-14  Chang Shu  <chang.shu@nokia.com>
3467
3468         Reviewed by Simon Hausmann.
3469
3470         [Qt] [Symbian] Use Symbian native dialog providers for combo pupups.
3471         https://bugs.webkit.org/show_bug.cgi?id=35919
3472
3473         * WebCoreSupport/QtFallbackWebPopup.cpp:
3474         (WebCore::QtFallbackWebPopup::show):
3475         (WebCore::ResetAndDestroy):
3476         (WebCore::QtFallbackWebPopup::showS60BrowserDialog):
3477         * WebCoreSupport/QtFallbackWebPopup.h:
3478
3479 2010-03-14  Antti Koivisto  <koivisto@iki.fi>
3480
3481         Reviewed by Simon Hausmann.
3482
3483         https://bugs.webkit.org/show_bug.cgi?id=35146
3484         Support tiled backing store
3485
3486         Implements a basic tiled backing store mechanism. Tiles are created and 
3487         deleted on demand. The page content is cached to the tiles. Tile content
3488         is kept in sync with the document. Since the backing store covers area
3489         larger than the currently visible viewport, the document can be scrolled
3490         quickly without having to enter rendering tree painting.
3491         
3492         The tile management code is platform independent. This patch has simple QPixmap
3493         based tile implementation for Qt.
3494         
3495         The feature is behind ENABLE_TILED_BACKING_STORE flag.
3496
3497         * Api/qgraphicswebview.cpp:
3498         (QGraphicsWebViewPrivate::visibleRect):
3499         (QGraphicsWebView::paint):
3500         * Api/qwebframe.cpp:
3501         (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
3502         * Api/qwebframe.h:
3503         * Api/qwebsettings.cpp:
3504         (QWebSettingsPrivate::apply):
3505         * Api/qwebsettings.h:
3506
3507 2010-03-13  Csaba Osztrogonác  <ossy@webkit.org>
3508
3509         [Qt] Enable accelerated compositing by default
3510         https://bugs.webkit.org/show_bug.cgi?id=35866
3511
3512         Unreviewed. Roll-out r55955, because it broke 3 tests:
3513         - animations/fill-mode-transform.html
3514         - animations/play-state.html
3515         - animations/simultaneous-start-left.html
3516
3517         * Api/qwebsettings.cpp:
3518         (QWebSettings::QWebSettings):
3519
3520 2010-03-13  Simon Hausmann  <simon.hausmann@nokia.com>
3521
3522         Reviewed by Kenneth Rohde Christiansen.
3523
3524         [Qt] Enable accelerated compositing by default
3525         https://bugs.webkit.org/show_bug.cgi?id=35866
3526
3527         * Api/qwebsettings.cpp:
3528         (QWebSettings::QWebSettings):
3529
3530 2010-03-11  Anders Carlsson  <andersca@apple.com>
3531
3532         Reviewed by David Hyatt.
3533
3534         Remove invalidateContents, it isn't used and it never makes sense to only invalidate the contents.
3535
3536         * WebCoreSupport/ChromeClientQt.cpp:
3537         * WebCoreSupport/ChromeClientQt.h:
3538
3539 2010-03-10  Robert Hogan  <robert@webkit.org>
3540
3541         Reviewed by Simon Hausmann.
3542
3543         [Qt] Add Support for WebKitEnableCaretBrowsing to Qt DRT
3544
3545         Unskip test fast/events/multiline-link-arrow-navigation.html
3546         Fix typo (superfluous space) in QWebSettings docs.
3547
3548         https://bugs.webkit.org/show_bug.cgi?id=35593
3549
3550         * Api/qwebpage.cpp:
3551         (qt_drt_enableCaretBrowsing):
3552         * Api/qwebsettings.cpp:
3553         (QWebSettingsPrivate::apply): fix typo in docs
3554
3555 2010-03-02  Adam Treat  <atreat@rim.com>
3556
3557         Reviewed by Dave Hyatt.
3558
3559         Adapt the qt port to the refactoring of repaint methods.
3560
3561         https://bugs.webkit.org/show_bug.cgi?id=34214
3562
3563         * WebCoreSupport/ChromeClientQt.cpp:
3564         (WebCore::ChromeClientQt::invalidateContents):
3565         (WebCore::ChromeClientQt::invalidateWindow):
3566         (WebCore::ChromeClientQt::invalidateContentsAndWindow):
3567         (WebCore::ChromeClientQt::invalidateContentsForSlowScroll):
3568         * WebCoreSupport/ChromeClientQt.h:
3569
3570 2010-03-08  Eric Uhrhane  <ericu@chromium.org>
3571
3572         Reviewed by David Levin.
3573
3574         Remove the now-redundant Settings fields for the Database
3575         https://bugs.webkit.org/show_bug.cgi?id=35763
3576
3577         No new tests; this code isn't called.
3578
3579         * Api/qwebsettings.cpp:
3580         (QWebSettingsPrivate::apply): Remove the call into Settings.
3581
3582 2010-03-08  Simon Hausmann  <simon.hausmann@nokia.com>
3583
3584         Reviewed by Laszlo Gombos.
3585
3586         [Qt] Binary incompatibility between Qt 4.6's WebKit and trunk in QWebSettings
3587         https://bugs.webkit.org/show_bug.cgi?id=35858
3588
3589         Moved the enum value added in r54873 to the end of the enum, to preserve
3590         binary compatibility. DnsPrefetchEnabled was in the last release and needs
3591         to remain after LocalContentCanAccessRemoteUrls.
3592
3593         * Api/qwebsettings.h:
3594
3595 2010-03-06  Mark Rowe  <mrowe@apple.com>
3596
3597         Rubber-stamped by Sam Weinig.
3598
3599         Remove unnecessary includes of wtf/Platform.h.  This is already pulled in by the prefix header.
3600
3601         * WebCoreSupport/EditCommandQt.cpp:
3602
3603 2010-03-02  Antonio Gomes  <tonikitoo@webkit.org>
3604
3605         Reviewed by Simon Hausmann.
3606         Patch by Antonio Gomes <tonikitoo@webkit.org>
3607
3608         [Qt] QWebSettings attribute for toggle Spatial Navigation on/off
3609         https://bugs.webkit.org/show_bug.cgi?id=33714 (Qt API part)
3610
3611         Added 'SpatialNavigationEnabled' attribute to QWebSettings.
3612
3613         * Api/qwebsettings.cpp:
3614         (QWebSettingsPrivate::apply):
3615         * Api/qwebsettings.h:
3616
3617 2010-03-04  Simon Hausmann  <simon.hausmann@nokia.com>
3618
3619         Reviewed by Kenneth Rohde Christiansen.
3620
3621         [Qt] qwebelement.h does not include QtCore headers correctly
3622         https://bugs.webkit.org/show_bug.cgi?id=35748
3623
3624         The header files of QtCore must be included as QtCore/foo.h.
3625
3626         See also http://bugreports.qt.nokia.com/browse/QTBUG-8661
3627
3628         * Api/qwebelement.h:
3629
3630 2010-03-04  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3631
3632         Reviewed by Tor Arne Vestbø.
3633
3634         [Qt] Make the OUTPUT_DIR variable in qmake projects independent of build-webkit's logic.
3635
3636         This also allows shadow builds relying only on qmake to work properly.
3637
3638         * tests/benchmarks/loading/loading.pro:
3639         * tests/benchmarks/painting/painting.pro:
3640         * tests/hybridPixmap/hybridPixmap.pro:
3641         * tests/qgraphicswebview/qgraphicswebview.pro:
3642         * tests/qwebelement/qwebelement.pro:
3643         * tests/qwebframe/qwebframe.pro:
3644         * tests/qwebhistory/qwebhistory.pro:
3645         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
3646         * tests/qwebinspector/qwebinspector.pro:
3647         * tests/qwebpage/qwebpage.pro:
3648         * tests/qwebplugindatabase/qwebplugindatabase.pro:
3649
3650 2010-03-02  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3651
3652         Reviewed by Kenneth Rohde Christiansen.
3653
3654         [Qt] Fix generation of forwarding headers
3655
3656         The dependencies were a bit wrong, so we ended up not generating
3657         forwarding headers for qwebkitversion.h and qwebkitglobal.h
3658
3659         The forwarding headers are now the only targets depending on the
3660         real headers. All other targets either depend on the generated
3661         class headers, or the forwarding headers.
3662
3663         * Api/DerivedSources.pro:
3664
3665 2010-03-02  Eric Uhrhane  <ericu@chromium.org>
3666
3667         Reviewed by David Levin.
3668
3669         Move database enable bit fully out of settings
3670         This is stage one of a three-stage commit [webkit, then chromium, then
3671         webkit again].  In this change I'm adding calls to
3672         Database::setIsAvailable inside Settings::setDatabaseEnabled and
3673         anywhere else that called it, and switching webkit fully over to using
3674         that flag [added in a previous checkin].  Phase two will remove
3675         Chromium's use of Settings for the Database, and phase three will remove
3676         the Setting for the Database enable entirely, leaving only
3677         Database::isAvailable/setIsAvailable.
3678
3679         No new tests; tested by existing storage tests.
3680
3681         https://bugs.webkit.org/show_bug.cgi?id=35310
3682
3683         * Api/qwebsettings.cpp:
3684         (QWebSettingsPrivate::apply):  Add a call to Database::setIsAvailable
3685
3686 2010-03-02  Simon Hausmann  <simon.hausmann@nokia.com>
3687
3688         Symbian build fix.
3689
3690         [Qt] Updated the def file with one new export, to fix
3691         QtLauncher linkage.
3692
3693         * symbian/eabi/QtWebKitu.def:
3694
3695 2010-03-01  Jakob Petsovits  <jpetsovits@rim.com>
3696
3697         Reviewed by Adam Barth.
3698
3699         Adapt to the new ZoomMode enum.
3700         https://bugs.webkit.org/show_bug.cgi?id=35347
3701
3702         * Api/qwebframe.cpp:
3703         (QWebFrame::setTextSizeMultiplier):
3704         (QWebFrame::setZoomFactor):
3705         * Api/qwebsettings.cpp:
3706         (QWebSettingsPrivate::apply):
3707
3708 2010-02-26  Diego Gonzalez  <diego.gonzalez@openbossa.org>
3709
3710         Reviewed by Simon Hausmann.
3711
3712         Fix documentation of QWebSettings::setUserStyleSheetUrl method
3713
3714         The base 64 data in the exemple shows a not valid code.
3715
3716         REGRESSION: QWebSettings::setUserStyleSheetUrl is not working with a data URL (Base64)
3717         https://bugs.webkit.org/show_bug.cgi?id=34802
3718
3719         * Api/qwebsettings.cpp:
3720
3721 2010-02-26  Jamey Hicks  <jamey.hicks@nokia.com>
3722
3723         Reviewed by Laszlo Gombos.
3724
3725         [Qt] added QWebSettings::setInspectorUrl() and QWebSettings::inspectorUrl()
3726
3727         Enables the use of alternate Web Inspector frontends by changing
3728         the location of the frontend.
3729
3730         This is required so that the Web Inspector may be run from an
3731         external process or an external tool such as Eclipse or Aptana may
3732         be used instead of the in-process Web Inspector UI.
3733         
3734         https://bugs.webkit.org/show_bug.cgi?id=35340
3735
3736         * Api/qwebsettings.cpp:
3737         (QWebSettings::QWebSettings):
3738         (QWebSettings::setInspectorUrl):
3739         (QWebSettings::inspectorUrl):
3740         * Api/qwebsettings.h:
3741         * WebCoreSupport/InspectorClientQt.cpp:
3742         (WebCore::InspectorClientQt::createPage):
3743
3744 2010-02-25  Jarkko Sakkinen  <jarkko.sakkinen@tieto.com>
3745
3746         Reviewed by Kenneth Rohde Christiansen.
3747
3748         Qt WebGL support
3749
3750         Adds enabling and disabling of WebGL support to QWebSettings.
3751         https://bugs.webkit.org/show_bug.cgi?id=35153
3752
3753         * Api/qwebsettings.cpp:
3754         (QWebSettingsPrivate::apply):
3755         (QWebSettings::QWebSettings):
3756         * Api/qwebsettings.h:
3757
3758 2010-02-19  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
3759
3760         Reviewed by Kenneth Rohde Christiansen.
3761
3762         [Qt] Remove QGVLauncher
3763
3764         https://bugs.webkit.org/show_bug.cgi?id=35292
3765
3766         * QGVLauncher/QGVLauncher.pro: Removed.
3767         * QGVLauncher/main.cpp: Removed.
3768
3769 2010-02-23  Steve Block  <steveblock@google.com>
3770
3771         Reviewed by Darin Adler.
3772
3773         Adds ChromeClient::cancelGeolocationPermissionRequestForFrame
3774         https://bugs.webkit.org/show_bug.cgi?id=34962
3775
3776         This method is required so that a Geolocation object can cancel an
3777         asynchronous permission request. This allows the chrome client to cancel
3778         any UI it is showing for the permission request.
3779
3780         * WebCoreSupport/ChromeClientQt.h:
3781         (WebCore::ChromeClientQt::cancelGeolocationPermissionRequestForFrame):
3782
3783 2010-02-22  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
3784
3785         Unreviewed Symbian build fix.
3786
3787         [Qt] Updated the def file with new exports to enable
3788         building DumpRenderTree.
3789
3790         * symbian/eabi/QtWebKitu.def:
3791
3792 2010-02-18  Noam Rosenthal  <noam.rosenthal@nokia.com>
3793
3794         Reviewed by Kenneth Rohde Christiansen.
3795
3796         [Qt] Minor improvement to hybrid QPixmap
3797         https://bugs.webkit.org/show_bug.cgi?id=34507
3798
3799         * tests/hybridPixmap/test.html: use assignToHTMLImageElement on an
3800         existing element instead of toHTMLImageElement which creates a new one
3801
3802 2010-02-17  Dmitry Titov  <dimich@chromium.org>
3803
3804         Reviewed by David Levin, Darin Fisher, Simon Hausmann.
3805
3806         When a live iframe element is moved between pages, it still depends on the old page.
3807         https://bugs.webkit.org/show_bug.cgi?id=34382
3808
3809         * Api/qwebframe_p.h:
3810         (QWebFramePrivate::setPage): Added.
3811         * WebCoreSupport/FrameLoaderClientQt.cpp:
3812         (WebCore::FrameLoaderClientQt::didTransferChildFrameToNewDocument):
3813         The QWebFrame caches a QWebPage which should be replaced when Frame is re-parented.
3814         Also, the QWebFrame is a child (in QT terms) of QWebPage - so update that relationship as well.
3815         Emit a signal that QWebFrame moved to a different QWebPage.
3816
3817         * WebCoreSupport/FrameLoaderClientQt.h:
3818
3819 2010-02-17  Kent Tamura  <tkent@chromium.org>
3820
3821         Reviewed by Eric Seidel.
3822
3823         Introduces new Icon loading interface in order to support
3824         asynchronous loading.
3825         https://bugs.webkit.org/show_bug.cgi?id=32054
3826
3827         Add an empty implementation of ChromeClient::iconForFiles().
3828
3829         * WebCoreSupport/ChromeClientQt.cpp:
3830         (WebCore::ChromeClientQt::iconForFiles):
3831         * WebCoreSupport/ChromeClientQt.h:
3832
3833 2010-02-17  Diego Gonzalez  <diego.gonzalez@openbossa.org>
3834
3835         Reviewed by Ariya Hidayat.
3836
3837         Make possible Qt DRT to get total number of pages to be printed
3838
3839         LayoutTests:
3840             printing/numberOfPages.html
3841
3842         [Qt] DRT: Get total number of pages to be printed
3843         https://bugs.webkit.org/show_bug.cgi?id=34955
3844
3845         * Api/qwebframe.cpp:
3846         (qt_drt_numberOfPages):
3847         (qt_drt_evaluateScriptInIsolatedWorld):
3848
3849 2010-02-16  Ariya Hidayat  <ariya.hidayat@gmail.com>
3850
3851         Reviewed by Simon Hausmann.
3852
3853         [Qt] Allow scrolling to an anchor programmatically.
3854         https://bugs.webkit.org/show_bug.cgi?id=29856
3855
3856         * Api/qwebframe.cpp:
3857         (QWebFrame::scrollToAnchor): New API function.
3858         * Api/qwebframe.h:
3859         * tests/qwebframe/tst_qwebframe.cpp: New tests for scrollToAnchor().
3860
3861 2010-02-16  Ariya Hidayat  <ariya.hidayat@gmail.com>
3862
3863         Reviewed by Laszlo Gombos.
3864
3865         Fix building with Qt < 4.6.
3866         https://bugs.webkit.org/show_bug.cgi?id=34885
3867
3868         * Api/qgraphicswebview.cpp:
3869         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
3870
3871 2010-02-16  Simon Hausmann  <simon.hausmann@nokia.com>
3872
3873         Unreviewed Symbian build fix.
3874
3875         Updated the def file with two new exports used by QtLauncher.
3876
3877         * symbian/eabi/QtWebKitu.def:
3878
3879 2010-02-16  Ismail Donmez  <ismail@namtrac.org>
3880
3881         Reviewed by Pavel Feldman.
3882
3883         Fix compilation with inspector disabled.
3884         https://bugs.webkit.org/show_bug.cgi?id=32724
3885
3886         * Api/qwebpage.cpp:
3887         (qt_drt_webinspector_executeScript):
3888         (qt_drt_webinspector_close):
3889         (qt_drt_webinspector_show):
3890         (qt_drt_setTimelineProfilingEnabled):
3891
3892 2010-02-16  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3893
3894         Reviewed by Simon Hausman.
3895
3896         [Qt] Fix include paths for forwarding headers in standalone builds.
3897
3898         * Api/DerivedSources.pro: Use relative paths for package builds and added some
3899         documentation.
3900
3901 2010-02-15  Noam Rosenthal  <noam.rosenthal@nokia.com>
3902
3903         Reviewed by Simon Hausmann.
3904
3905         [Qt] QtWebkit bridge: enable passing a QWebElement to a signal/slot/property
3906         Add Q_DECLARE_METATYPE to QWebElement, add relevant tests to
3907         tst_qwebframe
3908         https://bugs.webkit.org/show_bug.cgi?id=34901
3909
3910         * Api/qwebelement.h: declare metatype
3911         * tests/qwebframe/tst_qwebframe.cpp:
3912         (MyQObject::webElementProperty): new test for QWebElement
3913         (MyQObject::setWebElementProperty): new test for QWebElement
3914         (MyQObject::myOverloadedSlot): new test for QWebElement
3915
3916 2010-02-15  Robert Hogan  <robert@roberthogan.net>, Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3917
3918         Reviewed by Simon Hausmann.
3919
3920         [Qt] DRT: Support evaluateInWebInspector(), setTimelineProfilingEnabled().
3921
3922         Support LayoutTestController.evaluateInWebInspector(), setTimelineProfilingEnabled() in Qt DRT.
3923
3924         https://bugs.webkit.org/show_bug.cgi?id=33096
3925
3926         This allows the following tests to pass:
3927
3928         inspector/console-format-collections.html
3929         inspector/styles-iframe.html
3930         inspector/syntax-highlight-css.html
3931         inspector/syntax-highlight-javascript.html
3932         inspector/timeline-enum-stability.html
3933         inspector/timeline-layout.html
3934         inspector/timeline-mark-timeline.html
3935         inspector/timeline-paint.html
3936         inspector/timeline-parse-html.html
3937         inspector/timeline-recalculate-styles.html
3938         inspector/timeline-script-tag-1.html
3939         inspector/timeline-script-tag-2.html
3940         inspector/timeline-trivial.html
3941         inspector/cookie-resource-match.html
3942         inspector/elements-img-tooltip.html
3943         inspector/elements-panel-selection-on-refresh.html
3944         inspector/inspected-objects-not-overriden.html
3945         inspector/timeline-event-dispatch.html
3946         inspector/timeline-network-resource.html
3947         inspector/elements-panel-rewrite-href.html
3948         inspector/console-dir.html
3949         inspector/console-dirxml.html
3950         inspector/console-format.html
3951         inspector/console-tests.html
3952         inspector/elements-panel-structure.html
3953         inspector/evaluate-in-frontend.html
3954         inspector/console-clear.html
3955
3956         * Api/qwebpage.cpp:
3957         (qt_drt_webinspector_executeScript):
3958         (qt_drt_webinspector_close):
3959         (qt_drt_webinspector_show):
3960         (qt_drt_setTimelineProfilingEnabled):
3961
3962         * WebCoreSupport/InspectorClientQt.cpp:
3963         (InspectorClientQt::createPage)
3964
3965 2010-02-12  Antti Koivisto  <koivisto@iki.fi>
3966
3967         Reviewed by Kenneth Rohde Christiansen and Simon Hausmann.
3968         
3969         https://bugs.webkit.org/show_bug.cgi?id=34885
3970         Add a QGraphicsWebView mode that makes it automatically resize itself to the size of the content.
3971
3972         This is useful for cases where the client wants to implement page panning and zooming by manipulating
3973         the graphics item.
3974         
3975         Add a option to QGVLauncher to test this mode.
3976
3977         * Api/qgraphicswebview.cpp:
3978         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
3979         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
3980         (QGraphicsWebViewPrivate::_q_contentsSizeChanged):
3981         (QGraphicsWebView::setPage):
3982         (QGraphicsWebView::setResizesToContents):
3983         (QGraphicsWebView::resizesToContents):
3984         * Api/qgraphicswebview.h:
3985         * QGVLauncher/main.cpp:
3986         (WebView::WebView):
3987         (MainView::MainView):
3988         (MainView::setMainWidget):
3989         (MainView::resizeEvent):
3990         (main):
3991
3992 2010-02-12  Diego Gonzalez  <diego.gonzalez@openbossa.org>
3993
3994         Reviewed by Kenneth Rohde Christiansen.
3995
3996         Qt DRT now dump the frame loader callbacks when LayoutTestController()
3997         method is called.
3998
3999         LayoutTests:
4000             http/tests/security/mixedContent/data-url-script-in-iframe.html
4001             http/tests/security/mixedContent/empty-url-plugin-in-frame.html
4002             http/tests/security/mixedContent/insecure-css-in-iframe.html
4003             http/tests/security/mixedContent/insecure-iframe-in-iframe.html
4004             http/tests/security/mixedContent/insecure-image-in-iframe.html
4005             http/tests/security/mixedContent/insecure-plugin-in-iframe.html
4006             http/tests/security/mixedContent/insecure-script-in-iframe.html
4007             http/tests/security/mixedContent/redirect-http-to-https-script-in-iframe.html
4008             http/tests/security/mixedContent/redirect-https-to-http-script-in-iframe.html
4009
4010         [Qt] Make possible Qt DRT dump frame load callbacks
4011         https://bugs.webkit.org/show_bug.cgi?id=34702
4012
4013         * WebCoreSupport/FrameLoaderClientQt.cpp:
4014         (WebCore::FrameLoaderClientQt::didDisplayInsecureContent):
4015         (WebCore::FrameLoaderClientQt::didRunInsecureContent):
4016
4017 2010-02-10  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
4018
4019         Reviewed by Tor Arne Vestbø.
4020
4021         [Qt] Make qtlauncher and qgvlauncher use the generated headers
4022         path to make sure they are correctly generated.
4023
4024         * tests/tests.pri:
4025
4026 2010-02-10  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
4027
4028         Reviewed by Tor Arne Vestbø.
4029
4030         [Qt] Ensure relative paths in generated .pri files to ensure that
4031         a source package with pre-generated derived sources can be compiled.
4032
4033         - Re-add a separate headers.pri file for WEBKIT_API_HEADERS
4034         - Rename the generated headers.pri to classheaders.pri to avoid
4035         confusion with the one generated by synqt since they don't have the
4036         same content.
4037         - Remove private headers list variable from classheaders.pri
4038         - Use $$PWD in classheaders.pri
4039         - Remove classheaders.pri from the installed files
4040
4041         * Api/DerivedSources.pro:
4042
4043 2010-02-10  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
4044
4045         Reviewed by Tor Arne Vestbø.
4046
4047         [Qt] Minor fixes on QtWebKit headers generation.
4048
4049         - Adds QtWebKit to the generated headers destination path
4050         - Improve compatibility with MinGW
4051
4052         * Api/DerivedSources.pro:
4053
4054 2010-02-09  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
4055
4056         Reviewed by nobody, build fix.
4057
4058         [Qt] Fix standalone build with MinGW.
4059
4060         * tests/qwebelement/tst_qwebelement.cpp:
4061         * tests/tests.pri:
4062
4063 2010-02-10  Diego Gonzalez  <diego.gonzalez@openbossa.org>
4064
4065         Reviewed by Kenneth Rohde Christiansen.
4066
4067         Implement pageNumberForElementById() method in Qt DRT LayoutTestController,
4068         to make Qt DRT able to get page number.
4069
4070         LayoutTests:
4071             printing/page-break-always.html
4072             printing/pageNumerForElementById.html
4073             printing/css2.1/page-break-before-000.html
4074             printing/css2.1/page-break-after-000.html
4075             printing/css2.1/page-break-after-004.html
4076             printing/css2.1/page-break-before-001.html
4077             printing/css2.1/page-break-after-001.html
4078             printing/css2.1/page-break-after-002.html
4079             printing/css2.1/page-break-before-002.html
4080             printing/css2.1/page-break-inside-000.html
4081
4082         [Qt] Make possible Qt DRT get a page number for element by ID
4083         https://bugs.webkit.org/show_bug.cgi?id=34777
4084
4085         * Api/qwebframe.cpp:
4086         (qt_drt_pageNumberForElementById):
4087
4088 2010-02-09  Yael Aharon  <yael.aharon@nokia.com>
4089
4090         Reviewed by Adam Barth.
4091
4092         [Qt] Unit test for window.runModalDialog
4093         https://bugs.webkit.org/show_bug.cgi?id=34755
4094
4095         * tests/qwebpage/tst_qwebpage.cpp:
4096         (TestModalPage::TestModalPage):
4097         (TestModalPage::createWindow):
4098         (tst_QWebPage::showModalDialog):
4099
4100 2010-02-09  Andreas Kling  <andreas.kling@nokia.com>
4101
4102         Reviewed by Kenneth Rohde Christiansen.
4103
4104         [Qt] Sync with API changes in Maemo 5 kinetic scrolling
4105
4106         https://bugs.webkit.org/show_bug.cgi?id=34747
4107
4108         This is a forward-port of http://qt.gitorious.org/+qt-developers/qt/x11-maemo/commit/08497561
4109
4110         * Api/qwebview.cpp:
4111         (qt_sendSpontaneousEvent):
4112         (QWebViewKineticScroller::QWebViewKineticScroller):
4113         (QWebViewKineticScroller::setWidget):
4114         (QWebViewKineticScroller::eventFilter):
4115         (QWebViewKineticScroller::cancelLeftMouseButtonPress):
4116         (QWebViewKineticScroller::currentFrame):
4117         (QWebViewKineticScroller::scrollingFrameAt):
4118         (QWebViewKineticScroller::maximumScrollPosition):
4119         (QWebViewKineticScroller::scrollPosition):
4120         (QWebViewKineticScroller::viewportSize):
4121         (QWebViewKineticScroller::setScrollPosition):
4122         (QWebViewKineticScroller::sendEvent):
4123         (QWebView::QWebView):
4124
4125 2010-02-09  Yael Aharon  <yael.aharon@nokia.com>
4126
4127         Reviewed by Kenneth Rohde Christiansen.
4128
4129         [Qt] Webkit in Qt does not have window.showModalDialog
4130         https://bugs.webkit.org/show_bug.cgi?id=25585
4131
4132         Create a new eventloop when runModal() is called.
4133         Added comemnt in QWebPage::createWindow that the application is responsible
4134         for setting the modality of the appropriate window.
4135
4136         * Api/qwebpage.cpp:
4137         * WebCoreSupport/ChromeClientQt.cpp:
4138         (WebCore::ChromeClientQt::ChromeClientQt):
4139         (WebCore::ChromeClientQt::~ChromeClientQt):
4140         (WebCore::ChromeClientQt::canRunModal):
4141         (WebCore::ChromeClientQt::runModal):
4142         * WebCoreSupport/ChromeClientQt.h:
4143
4144 2010-01-19  Kenneth Rohde Christiansen  <kenneth@webkit.org>
4145
4146         Reviewed by Dave Hyatt.
4147
4148         Implement flattening of framesets
4149         https://bugs.webkit.org/show_bug.cgi?id=32717
4150
4151         Privately export the setFrameSetFlatteningEnabled setting for
4152         use with the Qt DRT.
4153
4154         * Api/qwebpage.cpp:
4155         (qt_drt_setFrameSetFlatteningEnabled):
4156         (QWebPagePrivate::core):
4157         * Api/qwebpage_p.h:
4158
4159 2010-02-05  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
4160
4161         [Qt] Fix build on Windows
4162
4163         Reviewed by Kenneth Rohde Christiansen.
4164
4165         DerivedSources for our API headers failed on Windows,
4166         due to Windows not accepting ; as a command separator,
4167         not needing quotes for echo, and needing < and > escaped.
4168
4169         We now detect Windows and set these quote markers and
4170         escape markers accordingly, as well as use && for separating
4171         individual commands.
4172
4173         * Api/DerivedSources.pro:
4174
4175 2010-02-05  Yury Semikhatsky  <yurys@chromium.org>
4176
4177         Reviewed by Pavel Feldman.
4178
4179         Remove unused inmport of ScriptFunctionCall.h
4180
4181         https://bugs.webkit.org/show_bug.cgi?id=33592
4182
4183         * Api/qwebelement.cpp:
4184
4185 2010-02-05  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
4186
4187         Reviewed by Simon Hausmann.
4188
4189         [Qt] Generate convenience headers (QWebView, etc) using qmake
4190
4191         In Qt this is done using syncqt, but we use a pro-file instead
4192         that generates makefile-rules for each of the extra headers.
4193
4194         These extra headers are installed alongside the normal headers.
4195
4196         * Api/DerivedSources.pro: Added. List of headers + pro file magic
4197         * Api/headers.pri: Removed, list of headers is now in the above file
4198
4199 2010-02-04  No'am Rosenthal  <noam.rosenthal@nokia.com>
4200
4201         Reviewed by Ariya Hidayat.
4202
4203         [Qt] Tuning and optimizations to GraphicsLayerQt. Mainly reduced usage
4204         of QTimer::singleShot, and moved syncLayers() from paint() to update()
4205         https://bugs.webkit.org/show_bug.cgi?id=34062
4206
4207         * Api/qgraphicswebview.cpp:
4208         (QGraphicsWebViewPrivate::update): Moved the sync operation to update
4209         (QGraphicsWebView::paint): Moved the sync operation to update
4210
4211 2010-02-03  Andras Becsi  <abecsi@webkit.org>
4212
4213         Unreviewed build fix.
4214
4215         [Qt] Roll-out r54281 because it broke the build on the Qt Release bot.
4216
4217         * Api/qgraphicswebview.cpp:
4218         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
4219         (QGraphicsWebViewPrivate::markForSync):
4220         (QGraphicsWebViewPrivate::update):
4221         (QGraphicsWebView::paint):
4222
4223 2010-02-02  Kenneth Rohde Christiansen  <kenneth@webkit.org>
4224
4225         Reviewed by Ariya Hidayat.
4226
4227         Do not use a proxy widget for the QComboBox on Maemo 5, as it
4228         is not working properly and it is not needed at all, as the
4229         comboboxes comes up in their full width on the screen and
4230         do not depend on view.
4231
4232         * WebCoreSupport/QtFallbackWebPopup.cpp:
4233         (WebCore::QtFallbackWebPopup::show):
4234
4235 2010-02-02  Jessie Berlin  <jberlin@webkit.org>
4236
4237         Rubber Stamped by Holger Freyther.
4238
4239         [Qt] Fix style issue identified in bug:
4240         https://bugs.webkit.org/show_bug.cgi?id=34329
4241
4242         * WebCoreSupport/InspectorClientQt.cpp:
4243         (WebCore::InspectorClientWebPage::InspectorClientWebPage):
4244         Fix indentation.
4245
4246 2010-02-01  Jessie Berlin  <jberlin@webkit.org>
4247
4248         Reviewed by Holger Freyther.
4249
4250         [Qt] Enable inspecting the Web Inspector in QtLauncher
4251
4252         https://bugs.webkit.org/show_bug.cgi?id=34329
4253
4254         * WebCoreSupport/InspectorClientQt.cpp:
4255         (WebCore::InspectorClientWebPage::InspectorClientWebPage):
4256         Allow the DeveloperExtrasEnabled setting to default to true for the page containing the Web Inspector.
4257
4258 2010-02-02  Andreas Kling  <andreas.kling@nokia.com>
4259
4260         Reviewed by Kenneth Rohde Christiansen.
4261
4262         [Qt] Display HTML tags verbatim in JS alert/confirm/prompt boxes
4263
4264         https://bugs.webkit.org/show_bug.cgi?id=34429
4265
4266         * Api/qwebpage.cpp:
4267         (QWebPage::javaScriptAlert):
4268         (QWebPage::javaScriptConfirm):
4269         (QWebPage::javaScriptPrompt):
4270
4271 2010-02-02  Noam Rosenthal  <noam.rosenthal@nokia.com>
4272
4273         Reviewed by Kenneth Rohde Christiansen.
4274
4275         [Qt] Enable a way to measure FPS in QGVLauncher
4276         run QGVLauncher with --show-fps to see ongoing fps measurements
4277         This is not meant as accurate FPS, but rather as a way to find
4278         improvements/regressions
4279         https://bugs.webkit.org/show_bug.cgi?id=34450
4280
4281         * QGVLauncher/main.cpp:
4282         (MainView::MainView): initialize FPS values
4283         (MainView::paintEvent): count a painted frame here
4284         (MainView::printFps): we print the fps with qDebug every 5 seconds.
4285
4286 2010-01-29  Ben Murdoch  <benm@google.com>
4287
4288         Reviewed by Dimitri Glazkov.
4289
4290         [Android] Android needs functionality in the ChromeClient to be informed when touch events are and are not needed by the webpage.
4291         https://bugs.webkit.org/show_bug.cgi?id=34215
4292
4293         Add needTouchEvents() to the ChromeClient which is called when the page decides it needs or no longer needs to be informed of touch events.
4294
4295         * WebCoreSupport/ChromeClientQt.h:
4296         (WebCore::ChromeClientQt::needTouchEvents): Add an empty implementation.
4297
4298 2010-01-29  Kenneth Rohde Christiansen  <kenneth@webkit.org>
4299
4300         Reviewed by Simon Hausmann
4301
4302         Disable auto-uppercase and predictive text on Maemo5, just like the
4303         build-in MicroB Browser.
4304
4305         * WebCoreSupport/EditorClientQt.cpp:
4306         (WebCore::EditorClientQt::setInputMethodState):
4307
4308 2010-01-28  Andreas Kling  <andreas.kling@nokia.com>
4309
4310         Reviewed by Kenneth Rohde Christiansen.
4311
4312         [Qt] Support kinetic scrolling on Maemo 5
4313
4314         https://bugs.webkit.org/show_bug.cgi?id=34267
4315
4316         Patch by Ralf Engels <ralf.engels@nokia.com> and
4317         Robert Griebl <rgriebl@trolltech.com>
4318
4319         * Api/qwebview.cpp:
4320         (QWebViewKineticScroller::QWebViewKineticScroller):
4321         (QWebViewKineticScroller::eventFilter):
4322         (QWebViewKineticScroller::currentFrame):
4323         (QWebViewKineticScroller::scrollingFrameAt):
4324         (QWebViewKineticScroller::attachToWidget):
4325         (QWebViewKineticScroller::removeFromWidget):
4326         (QWebViewKineticScroller::positionRange):
4327         (QWebViewKineticScroller::position):
4328         (QWebViewKineticScroller::viewportSize):
4329         (QWebViewKineticScroller::setPosition):
4330         (QWebView::QWebView):
4331
4332 2010-01-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
4333
4334         Reviewed by Simon Hausmann.
4335
4336         Do not set the combobox font on Maemo5 and S60; use the
4337         default instead.
4338
4339         * WebCoreSupport/QtFallbackWebPopup.cpp:
4340         (WebCore::QtFallbackWebPopup::populate):
4341
4342 2010-01-28  Trond Kjernåsen <trond@trolltech.com>
4343
4344         Reviewed by Simon Hausmann.
4345
4346         [Qt] Fix for endless print loop when printing web pages
4347
4348         * Api/qwebframe.cpp:
4349         (QWebFrame::print):
4350
4351 2010-01-27  Diego Gonzalez  <diego.gonzalez@openbossa.org>
4352
4353         Reviewed by Kenneth Rohde Christiansen.
4354
4355         [Qt] DRT Provide worker thread ability to track counters
4356         https://bugs.webkit.org/show_bug.cgi?id=34221
4357
4358         Implement workerThreadCount() in LayoutTestController of Qt DRT
4359
4360         Tests:
4361         fast/workers/dedicated-worker-lifecycle.html
4362         fast/workers/shared-worker-frame-lifecycle.html
4363         fast/workers/shared-worker-lifecycle.html
4364         fast/workers/worker-lifecycle.html
4365
4366         * Api/qwebpage.cpp:
4367         (qt_drt_workerThreadCount):
4368
4369 2010-01-27  Simon Hausmann  <simon.hausmann@nokia.com>
4370
4371         Reviewed by Laszlo Gombos.
4372
4373         [Qt] Update the .def files with exported symbols
4374
4375         * symbian/eabi/QtWebKitu.def: Add two mangled missing new symbols for arm eabi.
4376
4377 2010-01-27  Kent Hansen  <kent.hansen@nokia.com>
4378
4379         Reviewed by Simon Hausmann.