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