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