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