2011-01-17 Yi Shen <yi.4.shen@nokia.com>
[WebKit-https.git] / Source / WebKit / qt / ChangeLog
1 2011-01-17  Yi Shen  <yi.4.shen@nokia.com>
2
3         Reviewed by Andreas Kling.
4
5         [Qt] Extend the Platform Plugin to support full screen video handler
6         https://bugs.webkit.org/show_bug.cgi?id=51249
7
8         Add a new webkit platform plugin interface to support full screen video handler.
9
10         * Api/qwebkitplatformplugin.h:
11         (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
12         (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
13         * WebCoreSupport/ChromeClientQt.cpp:
14         (WebCore::ChromeClientQt::ChromeClientQt):
15         (WebCore::ChromeClientQt::~ChromeClientQt):
16         (WebCore::ChromeClientQt::fullScreenVideo):
17         (WebCore::ChromeClientQt::supportsFullscreenForNode):
18         (WebCore::ChromeClientQt::requiresFullscreenForVideoPlayback):
19         (WebCore::ChromeClientQt::enterFullscreenForNode):
20         (WebCore::ChromeClientQt::exitFullscreenForNode):
21         * WebCoreSupport/ChromeClientQt.h:
22         * WebCoreSupport/FullScreenVideoQt.cpp: Added.
23         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
24         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
25         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
26         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
27         (WebCore::FullScreenVideoQt::aboutToClose):
28         (WebCore::FullScreenVideoQt::mediaPlayer):
29         (WebCore::FullScreenVideoQt::mediaPlayerForNode):
30         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
31         * WebCoreSupport/FullScreenVideoQt.h: Added.
32         (WebCore::FullScreenVideoQt::isValid):
33         * WebCoreSupport/QtPlatformPlugin.cpp:
34         (WebCore::QtPlatformPlugin::createFullScreenVideoHandler):
35         * WebCoreSupport/QtPlatformPlugin.h:
36         * examples/platformplugin/WebPlugin.cpp:
37         (FullScreenVideoWidget::FullScreenVideoWidget):
38         (FullScreenVideoWidget::event):
39         (FullScreenVideoWidget::keyPressEvent):
40         (FullScreenVideoHandler::FullScreenVideoHandler):
41         (FullScreenVideoHandler::~FullScreenVideoHandler):
42         (FullScreenVideoHandler::requiresFullScreenForVideoPlayback):
43         (FullScreenVideoHandler::enterFullScreen):
44         (FullScreenVideoHandler::exitFullScreen):
45         (WebPlugin::supportsExtension):
46         (WebPlugin::createExtension):
47         * examples/platformplugin/WebPlugin.h:
48         (FullScreenVideoWidget::~FullScreenVideoWidget):
49         * examples/platformplugin/platformplugin.pro:
50         * examples/platformplugin/qwebkitplatformplugin.h:
51         (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
52         (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
53
54 2011-01-16  Adam Barth  <abarth@webkit.org>
55
56         Rubber-stamped by Eric Seidel.
57
58         Move WebKit into Source
59         https://bugs.webkit.org/show_bug.cgi?id=52530
60
61         * Api/DerivedSources.pro:
62         * declarative/declarative.pro:
63         * docs/docs.pri:
64         * tests/tests.pri:
65
66 2011-01-15  Sheriff Bot  <webkit.review.bot@gmail.com>
67
68         Unreviewed, rolling out r75708.
69         http://trac.webkit.org/changeset/75708
70         https://bugs.webkit.org/show_bug.cgi?id=52521
71
72         Breaks Qt build if mobility is not installed. (Requested by
73         benjaminp on #webkit).
74
75         * Api/qwebkitplatformplugin.h:
76         * WebCoreSupport/ChromeClientQt.cpp:
77         (WebCore::ChromeClientQt::ChromeClientQt):
78         (WebCore::ChromeClientQt::~ChromeClientQt):
79         * WebCoreSupport/ChromeClientQt.h:
80         * WebCoreSupport/FullScreenVideoQt.cpp: Removed.
81         * WebCoreSupport/FullScreenVideoQt.h: Removed.
82         * WebCoreSupport/QtPlatformPlugin.cpp:
83         * WebCoreSupport/QtPlatformPlugin.h:
84         * examples/platformplugin/WebPlugin.cpp:
85         (WebPlugin::supportsExtension):
86         (WebPlugin::createExtension):
87         * examples/platformplugin/WebPlugin.h:
88         * examples/platformplugin/platformplugin.pro:
89         * examples/platformplugin/qwebkitplatformplugin.h:
90
91 2011-01-15  Robert Hogan  <robert@webkit.org>
92
93         Reviewed by Kenneth Rohde Christiansen.
94
95         [Qt] plugins/no-mime-with-valid-extension.html fails
96         Check extension of resource against installed
97         plugins when determining mime-type.
98
99         https://bugs.webkit.org/show_bug.cgi?id=52288
100         https://bugs.webkit.org/show_bug.cgi?id=50657
101
102         * WebCoreSupport/FrameLoaderClientQt.cpp:
103         (WebCore::FrameLoaderClientQt::objectContentType):
104
105 2011-01-14  Sam Magnuson  <smagnuso@gmail.com>
106
107         Reviewed by Kenneth Rohde Christiansen.
108
109         [Qt] Compile with QT_NO_GRAPHICSVIEW
110         https://bugs.webkit.org/show_bug.cgi?id=49750
111
112         * Api/qgraphicswebview.cpp:
113         * Api/qgraphicswebview.h:
114         * Api/qwebpage.cpp:
115         (QWebPage::event):
116         * Api/qwebpage_p.h:
117         * WebCoreSupport/FrameLoaderClientQt.cpp:
118         (WebCore::FrameLoaderClientQt::createPlugin):
119         * WebCoreSupport/PageClientQt.cpp:
120         * WebCoreSupport/PageClientQt.h:
121
122 2011-01-14  Yuzo Fujishima  <yuzo@google.com>
123
124         Reviewed by Antti Koivisto.
125
126         Rename cache() to memoryCache()
127         https://bugs.webkit.org/show_bug.cgi?id=52433
128
129         * Api/qwebpage.cpp:
130         (QWebPagePrivate::_q_cleanupLeakMessages):
131         * Api/qwebsettings.cpp:
132         (QWebSettings::clearMemoryCaches):
133         (QWebSettings::setObjectCacheCapacities):
134
135 2011-01-14  Konstantin Tokarev  <annulen@yandex.ru>
136
137         Reviewed by Laszlo Gombos.
138
139         [Qt] Fixed compilation when QT_NO_SHORTCUT is defined
140         https://bugs.webkit.org/show_bug.cgi?id=52460
141
142         This patch fixes compilation when QT_NO_SHORTCUT is defined in Qt
143         configuration.
144
145         * WebCoreSupport/EditorClientQt.cpp:
146         (WebCore::EditorClientQt::handleKeyboardEvent): Added QT_NO_SHORTCUT guards
147
148 2011-01-13  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
149
150         Reviewed by Simon Hausmann.
151
152         [Qt] Need a way to inform the application when a Netscape plugin is created.
153         https://bugs.webkit.org/show_bug.cgi?id=30179
154
155         Added "c" style static method for the application to hook up for
156         receiving notifications when a plugin is created.
157
158         * symbian/bwins/QtWebKitu.def:
159         * symbian/eabi/QtWebKitu.def:
160
161 2011-01-13  Yi Shen  <yi.4.shen@nokia.com>
162
163         Reviewed by Simon Hausmann.
164
165         [Qt] Extend the Platform Plugin to support full screen video handler
166         https://bugs.webkit.org/show_bug.cgi?id=51249
167
168         Add a new webkit platform plugin interface to support full screen video handler.
169
170         * Api/qwebkitplatformplugin.h:
171         (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
172         (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
173         * WebCoreSupport/ChromeClientQt.cpp:
174         (WebCore::ChromeClientQt::ChromeClientQt):
175         (WebCore::ChromeClientQt::~ChromeClientQt):
176         (WebCore::ChromeClientQt::fullScreenVideo):
177         (WebCore::ChromeClientQt::supportsFullscreenForNode):
178         (WebCore::ChromeClientQt::requiresFullscreenForVideoPlayback):
179         (WebCore::ChromeClientQt::enterFullscreenForNode):
180         (WebCore::ChromeClientQt::exitFullscreenForNode):
181         * WebCoreSupport/ChromeClientQt.h:
182         * WebCoreSupport/FullScreenVideoQt.cpp: Added.
183         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
184         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
185         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
186         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
187         (WebCore::FullScreenVideoQt::aboutToClose):
188         (WebCore::FullScreenVideoQt::mediaPlayer):
189         (WebCore::FullScreenVideoQt::mediaPlayerForNode):
190         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
191         * WebCoreSupport/FullScreenVideoQt.h: Added.
192         (WebCore::FullScreenVideoQt::isValid):
193         * WebCoreSupport/QtPlatformPlugin.cpp:
194         (WebCore::QtPlatformPlugin::createFullScreenVideoHandler):
195         * WebCoreSupport/QtPlatformPlugin.h:
196         * examples/platformplugin/WebPlugin.cpp:
197         (FullScreenVideoWidget::FullScreenVideoWidget):
198         (FullScreenVideoWidget::event):
199         (FullScreenVideoWidget::keyPressEvent):
200         (FullScreenVideoHandler::FullScreenVideoHandler):
201         (FullScreenVideoHandler::~FullScreenVideoHandler):
202         (FullScreenVideoHandler::requiresFullScreenForVideoPlayback):
203         (FullScreenVideoHandler::enterFullScreen):
204         (FullScreenVideoHandler::exitFullScreen):
205         (WebPlugin::supportsExtension):
206         (WebPlugin::createExtension):
207         * examples/platformplugin/WebPlugin.h:
208         (FullScreenVideoWidget::~FullScreenVideoWidget):
209         * examples/platformplugin/platformplugin.pro:
210         * examples/platformplugin/qwebkitplatformplugin.h:
211         (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
212         (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
213
214 2011-01-12  Robert Hogan  <robert@webkit.org>
215
216         Reviewed by Kenneth Rohde Christiansen.
217
218         [Qt] Search input field doesn't have cancel button
219
220         Add a cancel button to the search field and make it customizable
221         by the client. For now, use the close dialog button associated
222         with the application's style as the default.
223
224         https://bugs.webkit.org/show_bug.cgi?id=42887
225
226         * Api/qwebsettings.cpp:
227         (graphics):
228         * Api/qwebsettings.h:
229
230 2011-01-12  Sheriff Bot  <webkit.review.bot@gmail.com>
231
232         Unreviewed, rolling out r74344.
233         http://trac.webkit.org/changeset/74344
234         https://bugs.webkit.org/show_bug.cgi?id=52290
235
236         broke QWebPluginFactory for unusual mime-types (Requested by
237         kling on #webkit).
238
239         * WebCoreSupport/FrameLoaderClientQt.cpp:
240         (WebCore::FrameLoaderClientQt::createPlugin):
241
242 2011-01-11  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
243
244         Reviewed by Kenneth Rohde Christiansen.
245
246         [Qt] Remove uses of QFuture since it isn't supported on all platforms.
247         https://bugs.webkit.org/show_bug.cgi?id=51204
248
249         * tests/qwebpage/tst_qwebpage.cpp:
250         (QtNAMThread::QtNAMThread):
251         (QtNAMThread::networkAccessManager):
252         (QtNAMThread::run):
253
254 2011-01-11  Benjamin Poulain  <benjamin.poulain@nokia.com>
255
256         Reviewed by Kenneth Rohde Christiansen.
257
258         [Qt] Fix tst_QWebPage::geolocationRequestJS()
259         https://bugs.webkit.org/show_bug.cgi?id=46814
260
261         Skip the test when WebKit is compiled without geolocation.
262
263         * tests/qwebpage/tst_qwebpage.cpp:
264         (tst_QWebPage::geolocationRequestJS):
265
266 2011-01-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
267
268         Reviewed by Csaba Osztrogonác.
269
270         [Qt] Baseline qt_minimal configuration
271         https://bugs.webkit.org/show_bug.cgi?id=51313
272
273         * WebCoreSupport/PopupMenuQt.cpp:
274         (WebCore::PopupMenuQt::show): Add QT_NO_COMBOBOX guard.
275
276         * WebCoreSupport/QtFallbackWebPopup.cpp:
277         (WebCore::QtFallbackWebPopup::populate): Add QT_NO_TOOLTIP guard.
278
279         * tests/qwebframe/tst_qwebframe.cpp: Add QT_NO_COMBOBOX guard.
280         * tests/qwebpage/tst_qwebpage.cpp:
281         (PluginPage::createPlugin): Add QT_NO_INPUTDIALOG guard.
282
283 2011-01-10  Adam Barth  <abarth@webkit.org>
284
285         Reviewed by Darin Adler.
286
287         Introduce the notion of a "display-isolated" URL scheme for use by
288         Chrome-internal URLs
289         https://bugs.webkit.org/show_bug.cgi?id=50182
290
291         Update to new function name.
292
293         * Api/qwebsecurityorigin.cpp:
294         (QWebSecurityOrigin::localSchemes):
295
296 2011-01-10  Benjamin Poulain  <benjamin.poulain@nokia.com>
297
298         Reviewed by Kenneth Rohde Christiansen.
299
300         [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
301         https://bugs.webkit.org/show_bug.cgi?id=52081
302
303         Add an autotest for checking the result of Navigator.cookiesEnabled depending
304         on the status of the cookie jar.
305
306         * tests/qwebpage/tst_qwebpage.cpp:
307         (tst_QWebPage::navigatorCookieEnabled):
308
309 2011-01-09  Sheriff Bot  <webkit.review.bot@gmail.com>
310
311         Unreviewed, rolling out r75337.
312         http://trac.webkit.org/changeset/75337
313         https://bugs.webkit.org/show_bug.cgi?id=52137
314
315         It made fast/dom/navigator-detached-no-crash.html crash
316         (Requested by Ossy on #webkit).
317
318         * tests/qwebpage/tst_qwebpage.cpp:
319
320 2011-01-09  Xianzhu Wang <phnixwxz@gmail.com>
321
322         Reviewed by Darin Fisher.
323
324         https://bugs.webkit.org/show_bug.cgi?id=41441
325         createWindow method should only do window-creating without URL navigation
326
327         * Api/qwebpage.cpp:
328         (openNewWindow):
329         * WebCoreSupport/ChromeClientQt.cpp:
330         (WebCore::ChromeClientQt::createWindow):
331
332 2011-01-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
333
334         Reviewed by Kenneth Rohde Christiansen.
335
336         [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
337         https://bugs.webkit.org/show_bug.cgi?id=52081
338
339         Add an autotest for checking the result of Navigator.cookiesEnabled depending
340         on the status of the cookie jar.
341
342         * tests/qwebpage/tst_qwebpage.cpp:
343         (tst_QWebPage::navigatorCookieEnabled):
344
345 2011-01-07  Adam Barth  <abarth@webkit.org>
346
347         Rubber-stamped by Eric Seidel.
348
349         Move WebCore to Source
350         https://bugs.webkit.org/show_bug.cgi?id=52050
351
352         Update documentation to reference new location of WebCore.
353
354         * docs/qtwebkit.qdoc:
355
356 2011-01-07  Andreas Kling  <kling@webkit.org>
357
358         Reviewed by Adam Barth.
359
360         [Qt] Add selectedHtml function to QWebView
361         https://bugs.webkit.org/show_bug.cgi?id=35028
362
363         Add QWebView::selectedHtml() and QWebPage::selectedHtml()
364         which return the current selection range's HTML representation.
365
366         * Api/qwebpage.cpp:
367         (QWebPage::selectedHtml):
368         * Api/qwebpage.h:
369         * Api/qwebview.cpp:
370         (QWebView::selectedText):
371         (QWebView::selectedHtml):
372         * Api/qwebview.h:
373         * tests/qwebpage/tst_qwebpage.cpp:
374         (tst_QWebPage::cursorMovements):
375         (tst_QWebPage::textSelection):
376         (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
377         (tst_QWebPage::findText):
378
379 2011-01-06  Robert Hogan  <robert@webkit.org>
380
381         Reviewed by Antonio Gomes.
382
383         [Qt] Introduce QDRTNode for passing WebCore::Node across JS bridge
384
385         This allows LayoutTestController to pass WebCore::Node back to
386         layout tests.
387
388         Also amend nodesFromRect-links-and-text.html and
389         nodesFromRect-inner-documents.html so that they do not produce
390         platform-specific results.
391
392         Unskip:
393         fast/dom/nodesFromRect-links-and-text.html
394         fast/dom/nodesFromRect-inner-documents.html
395
396         https://bugs.webkit.org/show_bug.cgi?id=48957
397
398         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
399         (QDRTNode::QDRTNode):
400         (QDRTNode::~QDRTNode):
401         (DumpRenderTreeSupportQt::nodesFromRect):
402         * WebCoreSupport/DumpRenderTreeSupportQt.h:
403
404 2011-01-04  Girish Ramakrishnan  <girish@forwardbias.in>
405
406         Reviewed by Simon Hausmann.
407         Acked by Aaron Kennedy <aaron.kennedy@nokia.com>
408
409         [Qt] QML WebView does not transfer focus to underlying QGraphicsWebView
410
411         QML WebView creates QGraphicsWebView as it's child. The WebView is not
412         setup as a focus proxy of the QGraphicsWebView. Thus, even though the
413         WebView gets focus, the QGraphicsWebView does not get focus.
414         In QML, focus proxies or "focus scopes" are created using FocusScope.
415         This change makes WebView a FocusScope and sets the focus on the
416         QGraphicsWebView. 
417
418         https://bugs.webkit.org/show_bug.cgi?id=51094
419
420         * declarative/qdeclarativewebview.cpp:
421         (QDeclarativeWebView::init):
422
423 2011-01-05  Yi Shen  <yi.4.shen@nokia.com>
424
425         Reviewed by Andreas Kling.
426
427         [Qt] Sync qwebkitplatformplugin.h in the plugin example
428         https://bugs.webkit.org/show_bug.cgi?id=51882
429
430         Make examples/platformplugin/qwebkitplatformplugin.h exactly the same
431         as the one in the Api folder.
432
433         * examples/platformplugin/qwebkitplatformplugin.h:
434
435 2011-01-04  Zhe Su  <suzhe@chromium.org>
436
437         Reviewed by Kenneth Russell.
438
439         Fix test LayoutTests/fast/events/ime-composition-events-001.html.
440
441         https://bugs.webkit.org/show_bug.cgi?id=51693
442
443         * Api/qwebpage.cpp:
444         (QWebPagePrivate::inputMethodEvent): Calls editor->insertText() to
445         insert the commit string when no composition text is available.
446
447 2011-01-03  Yi Shen  <yi.4.shen@nokia.com>
448
449         Reviewed by Adam Barth.
450
451         [Qt] Add SelectAll option to the context menu for the editor
452         https://bugs.webkit.org/show_bug.cgi?id=50049
453
454         Enable SelectAll for the Qt context menu.
455
456         * Api/qwebpage.cpp:
457         (webActionForContextMenuAction):
458         (QWebPage::action):
459         * WebCoreSupport/WebPlatformStrategies.cpp:
460         (WebPlatformStrategies::contextMenuItemTagSelectAll):
461         * WebCoreSupport/WebPlatformStrategies.h:
462
463 2011-01-03  Antonio Gomes  <agomes@rim.com>
464
465         Unreviewed crash fix.
466
467         Follow up of r74891: potential crash fix (bogus assertion).
468
469         * WebCoreSupport/EditorClientQt.cpp:
470         (WebCore::editorCommandForKeyDownEvent):
471
472 2011-01-03  Noam Rosenthal  <noam.rosenthal@nokia.com>
473
474         Reviewed by Andreas Kling.
475
476         [Qt] document.getElementById(...) doesn't return the right object in combination with QGraphicsWidget
477         https://bugs.webkit.org/show_bug.cgi?id=51464
478
479         Added a way to bind any QObject created as a plugin to JavaScript, 
480         by adding a custom membe to WebCore::Widget. 
481         Added a test to make sure plugins created as QGraphicsWidget are 
482         accessible through JavaScript.
483
484         * WebCoreSupport/FrameLoaderClientQt.cpp:
485         * tests/qwebpage/tst_qwebpage.cpp:
486         (PluginPage::createPlugin):
487         (tst_QWebPage::graphicsWidgetPlugin):
488
489 2011-01-02  Antonio Gomes  <agomes@rim.com>
490
491         Reviewed by Kenneth Rohde Christiansen.
492
493         [Qt] Refactor EditorClientQt::handleKeyboardEvent
494         https://bugs.webkit.org/show_bug.cgi?id=51306
495
496         EditorClientQt::handleKeyboardEvent relies on QWebPagePrivate::editorActionForKeyEvent()
497         to handle all editor commands that have a QAction associted with it.
498         In practice, that covers most of editor commands (as one can see in editorCommandWebActions,
499         in qwebpage.cpp). However, there are some key down events that are associated to no QAction
500         or need special handling when features like spatial navigation or
501         caret browsing are enabled. Currently, these cases are being handled with confusing
502         and nested if/else switch's statements in EditorClientQt::handleKeyboardEvent(),
503         and the code is hardly readable.
504
505         This patch introduces a mapping hash for those cases, simplifying much
506         the code. Basically, nested switches statements mixed with if/else's were
507         refactored, and early returns were added right after an event gets consumed
508         by the Editor.
509
510         Since it is a refactor only patch, there is no funcionality change at
511         all, and then no new tests are being added.
512
513         * WebCoreSupport/EditorClientQt.cpp:
514         (WebCore::interpretKeyEvent):
515         (WebCore::EditorClientQt::handleKeyboardEvent):
516
517 2011-01-01  Adam Barth  <abarth@webkit.org>
518
519         Reviewed by Eric Seidel.
520
521         Move JavaScriptCore to Source
522         https://bugs.webkit.org/show_bug.cgi?id=51604
523
524         * WebKit_pch.h:
525         * docs/qtwebkit.qdocconf:
526           - Point to JavaScriptCore in its new location.
527
528 2010-12-29  Kent Hansen  <kent.hansen@nokia.com>
529
530         Reviewed by Simon Hausmann.
531
532         [Qt] Fix compilation with Qt in namespace
533         https://bugs.webkit.org/show_bug.cgi?id=51701
534
535         * Api/qwebkitplatformplugin.h:
536         * WebCoreSupport/InspectorServerQt.h:
537         * tests/hybridPixmap/widget.h:
538
539 2010-12-23  Jan Erik Hanssen  <jhanssen@sencha.com>
540
541         Reviewed by Alexey Proskuryakov.
542
543         [Qt] Composition text is not removed from the editor when composition is cancelled
544         https://bugs.webkit.org/show_bug.cgi?id=29391
545
546         Ensure that the composition text is cleared when an empty QInputMethodEvent
547         is received and the editor is in composition mode.
548
549         * Api/qwebpage.cpp:
550         (QWebPagePrivate::inputMethodEvent):
551
552 2010-12-23  Jan Erik Hanssen  <jhanssen@sencha.com>
553
554         Reviewed by Andreas Kling.
555
556         [Qt] copy and paste greek symbols to Word, TextEdit results in ?'s being shown
557         https://bugs.webkit.org/show_bug.cgi?id=35635
558
559         Test that QClipboard contains the charset information and unicode data
560         after copying unicode text.
561
562         * tests/qwebpage/tst_qwebpage.cpp:
563         (tst_QWebPage::macCopyUnicodeToClipboard):
564
565 2010-12-22  Sam Weinig  <sam@webkit.org>
566
567         Reviewed by Darin Adler.
568
569         WebKit2 needs to mirror the frame tree in the UIProcess
570         https://bugs.webkit.org/show_bug.cgi?id=51546
571
572         - Add client functions to notify that a frame has been added or
573           removed from the page cache.
574
575         * WebCoreSupport/FrameLoaderClientQt.cpp:
576         (WebCore::FrameLoaderClientQt::didSaveToPageCache):
577         (WebCore::FrameLoaderClientQt::didRestoreFromPageCache):
578         * WebCoreSupport/FrameLoaderClientQt.h:
579
580 2010-12-22  Ryosuke Niwa  <rniwa@webkit.org>
581
582         Reviewed by Eric Seidel.
583
584         Editor.h doesn't need to include SelectionController.h
585         https://bugs.webkit.org/show_bug.cgi?id=51441
586
587         Renamed SelectionController::EDirection to SelectionDirection.
588
589         * WebCoreSupport/EditorClientQt.cpp:
590         (WebCore::EditorClientQt::handleKeyboardEvent):
591
592 2010-12-23  Dawit Alemayehu  <adawit@kde.org>
593
594         Reviewed by Kenneth Rohde Christiansen.
595
596         [Qt] Add a 'hasSelection' function to QWebView and QWebPage.
597         https://bugs.webkit.org/show_bug.cgi?id=48722
598
599         This is a convenience API that optimizes the case where checking for
600         the presence of selected content and accessing the selected content
601         are two separate actions in the client. See comment #12 in the above
602         bug report link for details.
603
604         * Api/qwebpage.cpp:
605         (QWebPage::hasSelection):
606         * Api/qwebpage.h:
607         * Api/qwebview.cpp:
608         (QWebView::hasSelection):
609         * Api/qwebview.h:
610         * tests/qwebpage/tst_qwebpage.cpp:
611         (tst_QWebPage::textSelection):
612
613 2010-12-20  Benjamin Poulain  <benjamin.poulain@nokia.com>
614
615         Reviewed by Andreas Kling.
616
617         [Qt] Improve the readability of FrameLoaderClientQt::createPlugin()
618         https://bugs.webkit.org/show_bug.cgi?id=51330
619
620         Redefine the scopes to improve readability. Objects are now created in
621         the scope they are used in.
622
623         * WebCoreSupport/FrameLoaderClientQt.cpp:
624         (WebCore::FrameLoaderClientQt::createPlugin):
625
626 2010-12-17  Ariya Hidayat  <ariya@sencha.com>
627
628         Reviewed by Antonio Gomes.
629
630         [Qt] GraphicsContext should respect QWebView render hints
631         https://bugs.webkit.org/show_bug.cgi?id=51208
632
633         Adjust the test since SmoothPixmapTransform is set by default.
634
635         * tests/qwebview/tst_qwebview.cpp:
636         (tst_QWebView::renderHints):
637
638 2010-12-05  Antonio Gomes  <agomes@rim.com>
639
640         Reviewed by Ariya Hidayat.
641
642         [Qt] Fix caret browsing navigation mode
643         https://bugs.webkit.org/show_bug.cgi?id=50536
644
645         Caret browsing can consume editing commands even when the start
646         of current selection is not a editable content. r69582 missed this
647         case because caret browsing feature testing is very poor today.
648
649         This commit reintroduces part of the removed code in r69582 but
650         guarded by a isCaretBrowsingEnabled() check. No regression found.
651
652         * WebCoreSupport/EditorClientQt.cpp:
653         (WebCore::EditorClientQt::handleKeyboardEvent):
654
655 2010-12-17  Yi Shen  <yi.4.shen@nokia.com>
656
657         Reviewed by Kenneth Rohde Christiansen.
658
659         [Qt] QWebPage sends out a RequestSoftwareInputPanel event 
660         incorrectly in particular case
661         https://bugs.webkit.org/show_bug.cgi?id=50419
662
663         Add HitTestResult check before firing RequestSoftwareInputPanel event.
664
665         * Api/qwebpage.cpp:
666         (QWebPagePrivate::mouseReleaseEvent):
667         (QWebPagePrivate::handleSoftwareInputPanel):
668         * Api/qwebpage_p.h:
669         * tests/qwebpage/tst_qwebpage.cpp:
670         (clickOnPage):
671         (tst_QWebPage::inputMethods):
672
673 2010-12-17  Eric Seidel  <eric@webkit.org>
674
675         Unreviewed, rolling out r74229.
676         http://trac.webkit.org/changeset/74229
677         https://bugs.webkit.org/show_bug.cgi?id=50536
678
679         Broken on Snow Leopard and possibly other platforms
680
681         * WebCoreSupport/EditorClientQt.cpp:
682         (WebCore::EditorClientQt::handleKeyboardEvent):
683
684 2010-12-05  Antonio Gomes  <agomes@rim.com>
685
686         Reviewed by Ariya Hidayat.
687
688         [Qt] Fix caret browsing navigation mode
689         https://bugs.webkit.org/show_bug.cgi?id=50536
690
691         Caret browsing can consume editing commands even when the start
692         of current selection is not a editable content. r69582 missed this
693         case because caret browsing feature testing is very poor today.
694
695         This commit reintroduces part of the removed code in r69582 but
696         guarded by a isCaretBrowsingEnabled() check. No regression found.
697
698         * WebCoreSupport/EditorClientQt.cpp:
699         (WebCore::EditorClientQt::handleKeyboardEvent):
700
701 2010-12-16  Ariya Hidayat  <ariya@sencha.com>
702
703         Reviewed by Andreas Kling.
704
705         [Qt] GraphicsContext should respect QWebView render hints
706         https://bugs.webkit.org/show_bug.cgi?id=51208
707
708         Add some checks to ensure that GraphicsContext (via QWebFrame)
709         does not clobber the render hints.
710
711         * Api/qwebview.cpp:
712         (QWebViewPrivate::QWebViewPrivate):
713         * tests/qwebframe/tst_qwebframe.cpp:
714
715 2010-12-15  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
716
717         Reviewed by Antonio Gomes.
718
719         [Qt] Fix tst_QWebPage::geolocationRequestJS()
720         https://bugs.webkit.org/show_bug.cgi?id=46814
721
722         Change the test case according to the changes introduced by
723         r72603 and enable the test case.
724
725         * tests/qwebpage/tst_qwebpage.cpp:
726         (tst_QWebPage::geolocationRequestJS):
727
728 2010-12-14  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
729
730         Reviewed by Laszlo Gombos.
731
732         [Qt] Flash plugins should be windowless on QGraphicsWebView on Symbian
733         Remove #idef SYMBIAN introduced by r69396.
734         https://bugs.webkit.org/show_bug.cgi?id=50487
735
736         * WebCoreSupport/FrameLoaderClientQt.cpp:
737         (WebCore::FrameLoaderClientQt::createPlugin):
738
739 2010-10-28  MORITA Hajime  <morrita@google.com>
740
741         Reviewed by Ojan Vafai.
742
743         spellcheck does not check pasted text
744         https://bugs.webkit.org/show_bug.cgi?id=40092
745
746         Added a stub implememntation.
747
748         * WebCoreSupport/EditorClientQt.h:
749         (WebCore::EditorClientQt::requestCheckingOfString):
750
751 2010-12-11  Yi Shen  <yi.4.shen@nokia.com>
752
753         Reviewed by Kenneth Rohde Christiansen.
754
755         [Qt] Memory leaks for QWebPageClient
756         https://bugs.webkit.org/show_bug.cgi?id=50267
757
758         Use OwnPtr to solve this memory leak issue.
759
760         * Api/qgraphicswebview.cpp:
761         (QGraphicsWebViewPrivate::overlay):
762         (QGraphicsWebViewPrivate::QWebViewPrivate::pageClient):
763         (QGraphicsWebViewPrivate::syncLayers):
764         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
765         (QGraphicsWebViewPrivate::_q_scaleChanged):
766         (QGraphicsWebViewPrivate::detachCurrentPage):
767         * Api/qwebpage_p.h:
768         * Api/qwebview.cpp:
769         (QWebViewPrivate::detachCurrentPage):
770         * WebCoreSupport/ChromeClientQt.cpp:
771         (WebCore::ChromeClientQt::platformPageClient):
772         * WebCoreSupport/EditorClientQt.cpp:
773         (WebCore::EditorClientQt::setInputMethodState):
774         * WebCoreSupport/FrameLoaderClientQt.cpp:
775         (WebCore::FrameLoaderClientQt::createPlugin):
776
777 2010-12-11  Jan Erik Hanssen  <jhanssen@sencha.com>
778
779         Reviewed by Andreas Kling.
780
781         [Qt] QWebFrame does not support QNetworkRequest::CacheLoadControl
782         https://bugs.webkit.org/show_bug.cgi?id=35671
783
784         Make QWebFrame respect the QNetworkRequest::CacheLoadControl attribute
785         set on the request, if any.
786
787         * Api/qwebframe.cpp:
788         (cacheLoadControlToCachePolicy):
789         (QWebFrame::load):
790         * tests/qwebframe/tst_qwebframe.cpp:
791
792 2010-10-11  Diego Gonzalez  <diegohcg@webkit.org>
793
794         Reviewed by Kenneth Rohde Christiansen.
795
796         [Qt] Mock DeviceOrientation client for DRT
797         https://bugs.webkit.org/show_bug.cgi?id=47490
798
799         * WebCoreSupport/DeviceOrientationClientMockQt.cpp: Added.
800         (WebCore::DeviceOrientationClientMockQt::client):
801         (WebCore::DeviceOrientationClientMockQt::DeviceOrientationClientMockQt):
802         (WebCore::DeviceOrientationClientMockQt::~DeviceOrientationClientMockQt):
803         (WebCore::DeviceOrientationClientMockQt::setController):
804         (WebCore::DeviceOrientationClientMockQt::startUpdating):
805         (WebCore::DeviceOrientationClientMockQt::stopUpdating):
806         (WebCore::DeviceOrientationClientMockQt::lastOrientation):
807         (WebCore::DeviceOrientationClientMockQt::deviceOrientationControllerDestroyed):
808         (WebCore::DeviceOrientationClientMockQt::setOrientation):
809         * WebCoreSupport/DeviceOrientationClientMockQt.h: Added.
810         * WebCoreSupport/DeviceOrientationClientQt.cpp:
811         * WebCoreSupport/DeviceOrientationProviderQt.cpp:
812         (WebCore::DeviceOrientationProviderQt::DeviceOrientationProviderQt):
813         (WebCore::DeviceOrientationProviderQt::~DeviceOrientationProviderQt):
814         (WebCore::DeviceOrientationProviderQt::changeDeviceOrientation):
815         * WebCoreSupport/DeviceOrientationProviderQt.h:
816         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
817         (DumpRenderTreeSupportQt::activeMockDeviceOrientationClient):
818         (DumpRenderTreeSupportQt::removeMockDeviceOrientation):
819         (DumpRenderTreeSupportQt::setMockDeviceOrientation):
820         * WebCoreSupport/DumpRenderTreeSupportQt.h:
821
822 2010-12-10  Krithigassree Sambamurthy  <krithigassree.sambamurthy@nokia.com>
823
824         Reviewed by Joseph Pecoraro.
825
826         Bug 43455 - [Qt]: Implement Application Cache Quotas
827         https://bugs.webkit.org/show_bug.cgi?id=43455
828
829         Added new signal to report ApplicationCache Database
830         quota.
831
832         * Api/qwebpage.cpp:
833         * Api/qwebpage.h:
834
835         Added new functions to accomodate new appcache layout
836         test origin-quota.html.
837
838         * Api/qwebsecurityorigin.cpp:
839         (QWebSecurityOrigin::setApplicationCacheQuota):
840         * Api/qwebsecurityorigin.h:
841         * WebCoreSupport/ChromeClientQt.cpp:
842         (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
843         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
844         (DumpRenderTreeSupportQt::clearAllApplicationCaches):
845         * WebCoreSupport/DumpRenderTreeSupportQt.h:
846
847 2010-12-10  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
848
849         Reviewed by Kenneth Rohde Christiansen.
850
851         [Qt] Support a QNetworkAccessManager affined to a different thread.
852         https://bugs.webkit.org/show_bug.cgi?id=50080
853
854         This patch introduce thread safe proxy classes for QNetworkAccessManager
855         and QNetworkReply.
856         If run in the same thread, these objects will forward the calls with
857         Qt::DirectConnection bindings, while in the other case they will use
858         Qt::QueuedConnection to carry requests accross threads.
859
860         This patch basically:
861         - Makes sure that all access goes through these objects
862         - Reorders signal connections to make sure we are connected when the
863           signal comes
864         - Makes sure that no QObject in the WebCore thread is a child of the
865           reply which might be in a different thread.
866         - Forward the data directly in QByteArrays in signals instead of collecting
867           the data when the signal is handled.
868
869         New test: tst_QWebPage::networkAccessManagerOnDifferentThread
870
871         * WebCoreSupport/FrameLoaderClientQt.cpp:
872         (WebCore::FrameLoaderClientQt::download):
873         * tests/qwebpage/tst_qwebpage.cpp:
874         (QtNAMThread::QtNAMThread):
875         (QtNAMThread::~QtNAMThread):
876         (QtNAMThread::networkAccessManager):
877         (QtNAMThread::run):
878         (tst_QWebPage::networkAccessManagerOnDifferentThread):
879
880 2010-12-09  Sheriff Bot  <webkit.review.bot@gmail.com>
881
882         Unreviewed, rolling out r73635.
883         http://trac.webkit.org/changeset/73635
884         https://bugs.webkit.org/show_bug.cgi?id=50778
885
886         'Side-effects on 3 css tests needs closer review' (Requested
887         by mwenge on #webkit).
888
889         * Api/qwebsettings.cpp:
890         (graphics):
891         * Api/qwebsettings.h:
892
893 2010-12-09  Robert Hogan  <robert@webkit.org>
894
895         Reviewed by Andreas Kling.
896
897         [Qt] Search input field doesn't have cancel button
898
899         Add a cancel button to the search field and make it customizable
900         by the client. For now, use the close dialog button associated
901         with the application's style as the default.
902
903         https://bugs.webkit.org/show_bug.cgi?id=42887
904
905         * Api/qwebsettings.cpp:
906         (graphics):
907         * Api/qwebsettings.h:
908
909 2010-12-09  Siddharth Mathur  <siddharth.mathur@nokia.com>
910
911         Reviewed by Laszlo Gombos.
912
913         Use BUILDING_WEBKIT like other ports
914         https://bugs.webkit.org/show_bug.cgi?id=50713
915
916         * Api/qwebkitglobal.h: change BUILD_WEBKIT to BUILDING_WEBKIT
917
918 2010-12-08  Qi Zhang  <qi.2.zhang@nokia.com>
919
920         Reviewed by Kenneth Rohde Christiansen.
921
922         [Qt] Support OrientationChange event
923         https://bugs.webkit.org/show_bug.cgi?id=50685
924
925         Get OrientationChange event from qtmobility then send to webkit.
926
927         * Api/qwebframe.cpp:
928         (QWebFrame::orientationChanged):
929         (QWebFrame::QWebFrame):
930         * Api/qwebframe.h:
931         * Api/qwebframe_p.h:
932
933 2010-12-07  Brian Weinstein  <bweinstein@apple.com>
934
935         Reviewed by John Sullivan.
936
937         Layering Violation in ContextMenu - member variable of type HitTestResult
938         https://bugs.webkit.org/show_bug.cgi?id=50586
939         
940         Update users of ContextMenu and ContextMenuController to match where the new functions 
941         are located.
942
943         * Api/qwebpage.cpp:
944         (QWebPagePrivate::createContextMenu):
945         (QWebPage::updatePositionDependentActions):
946
947 2010-12-07  Darin Adler  <darin@apple.com>
948
949         Try to fix build.
950
951         * Api/qwebpage.cpp:
952         (frameLoadRequest): Added missing parentheses.
953
954 2010-12-06  Darin Adler  <darin@apple.com>
955
956         Reviewed by Sam Weinig.
957
958         Pass security origin to make local file decision correctly
959         https://bugs.webkit.org/show_bug.cgi?id=48603
960
961         * Api/qwebpage.cpp:
962         (frameLoadRequest): Pass security origin.
963
964 2010-12-07  Martin Robinson  <mrobinson@igalia.com>
965
966         Unreviewed, rolling out r73392.
967         http://trac.webkit.org/changeset/73392
968         https://bugs.webkit.org/show_bug.cgi?id=50489
969
970         This commit caused crashes on the GTK+ bots
971
972         * Api/qwebframe.cpp:
973         (QWebFrame::setUrl):
974         * WebCoreSupport/FrameLoaderClientQt.cpp:
975         (WebCore::FrameLoaderClientQt::finishedLoading):
976
977 2010-12-06  Nate Chapin  <japhet@chromium.org>
978
979         Reviewed by Adam Barth.
980
981         Update calls to DocumentWriter.
982         https://bugs.webkit.org/show_bug.cgi?id=50489
983
984         * Api/qwebframe.cpp:
985         (QWebFrame::setUrl):
986         * WebCoreSupport/FrameLoaderClientQt.cpp:
987         (WebCore::FrameLoaderClientQt::finishedLoading):
988
989 2010-12-01  Jia Pu  <jpu@apple.com>
990
991         Reviewed by Darin Adler.
992
993         Support multiple correction candidates panel for misspelled word on Mac OS X.
994         https://bugs.webkit.org/show_bug.cgi?id=50137
995         <rdar://problem/8568059>
996
997         Adopted new function signature defined in base class.
998
999         * WebCoreSupport/EditorClientQt.cpp:
1000         (WebCore::EditorClientQt::getGuessesForWord):
1001         * WebCoreSupport/EditorClientQt.h:
1002
1003 2010-11-30  Benjamin Poulain  <benjamin.poulain@nokia.com>
1004
1005         Reviewed by Kenneth Rohde Christiansen.
1006
1007         [Qt] Implement layoutTestController.findString
1008         https://bugs.webkit.org/show_bug.cgi?id=50236
1009
1010         Add support for the new advanced findString().
1011
1012         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1013         (DumpRenderTreeSupportQt::findString):
1014         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1015
1016 2010-11-30  Ojan Vafai  <ojan@chromium.org>
1017
1018         Revert r72876. It caused a ~30% perf regression in chromium's bloat-http test
1019         https://bugs.webkit.org/show_bug.cgi?id=50288
1020
1021         2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
1022         Reviewed by Darin Adler.
1023         Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
1024         https://bugs.webkit.org/show_bug.cgi?id=50182
1025         A display-isolated URL can only be displayed (e.g., put in an iframe,
1026         hyperlinked to) by documents from that scheme. In a sense, this is a
1027         generalization of some of the protections we give file URLs, but
1028         instead of lumping them all together into one "local" bucket, this
1029         patch creates a separate bucket for each scheme.
1030         For a while, I tried using a separate bucket for each origin. That
1031         would have played nicely with what Blob URLs are trying to do, but some
1032         "chrome" URL pages rely on being able to display other chrome URL
1033         pages, even in different origins. For example, the New Tab Page shows
1034         thumbnails from the "thumbnail" host.
1035         This patch also removes a bunch of unused code. I've also propagated
1036         the "deprecated" status of deprecatedCanDisplay to
1037         deprecatedShouldTreatURLAsLocal because that method has no other
1038         callers and is really asking for uppercase/lowercase bugs. I dream of
1039         someday removing these functions.
1040         2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
1041         Reviewed by Darin Adler.
1042         Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
1043          https://bugs.webkit.org/show_bug.cgi?id=50182
1044         This patch adds a Chromium API for registering schemes as
1045         display-isolated. In a subsequent patch, I'll change the "chrome"
1046         scheme in Chrome to be display isolated instead of local. That will
1047         prevent file URLs from linking to chrome URLs.
1048
1049         * Api/qwebsecurityorigin.cpp:
1050         (QWebSecurityOrigin::localSchemes):
1051
1052 2010-11-29  Vangelis Kokkevis  <vangelis@chromium.org>
1053
1054         Reviewed by Simon Fraser.
1055
1056         Provide more fine grained control to ports over when to turn on accelerated
1057         compositing.
1058         https://bugs.webkit.org/show_bug.cgi?id=49998
1059
1060         As part of this change, the old hasAcceleratedCompositing method on the ChromeClient
1061         has now been replaced by allowedCompositingTriggers which returns a bitfield of
1062         all the features which can trigger the compositor.
1063
1064
1065         * WebCoreSupport/ChromeClientQt.cpp:
1066         (WebCore::ChromeClientQt::allowedCompositingTriggers):
1067         * WebCoreSupport/ChromeClientQt.h:
1068
1069 2010-11-30  Thiago Macieira  <thiago.macieira@nokia.com>
1070
1071         Reviewed by Andreas Kling.
1072
1073         [Qt] QWebFrame::load(QNetworkRequest) should respect the CustomVerbAttribute
1074
1075         For CustomOperation requests, pass the CustomVerbAttribute on to
1076         the WebCore::ResourceRequest.
1077
1078         * Api/qwebframe.cpp:
1079         (QWebFrame::load):
1080
1081 2010-11-25  Norbert Leser  <norbert.leser@nokia.com>
1082
1083         Reviewed by Laszlo Gombos.
1084
1085         Updated Symbian DEF file for ARM target due to API changes
1086         via committs r72600-72603 (see bug# 46810)
1087
1088         * symbian/eabi/QtWebKitu.def:
1089
1090 2010-11-25  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1091
1092         Reviewed by Andreas Kling and Simon Hausmann.
1093
1094         [Qt] Calculate the -webkit-pixel-radio using the device DPI.
1095         http://webkit.org/b/50059
1096
1097         Also, update the documentation on what a DIP is and how to override
1098         the device DPI in the case the system reports the wrong one (which
1099         unfortunately is common on X11).
1100
1101         * Api/qwebpage.cpp:
1102         (QWebPagePrivate::QWebPagePrivate):
1103         (QWebPage::viewportAttributesForSize):
1104         * Api/qwebpage_p.h:
1105         * WebCoreSupport/ChromeClientQt.cpp:
1106         (WebCore::ChromeClientQt::scaleFactor):
1107
1108 2010-11-24  Kristian Amlie  <kristian.amlie@nokia.com>
1109
1110         Reviewed by Andreas Kling.
1111
1112         Fixed handling of QInputMethodEvents with nonzero replacementLength.
1113
1114         These types of events replace text that is already in the widget, but
1115         WebKit did not check for replacementLength at all.
1116
1117         https://bugs.webkit.org/show_bug.cgi?id=49787
1118
1119         * Api/qwebpage.cpp:
1120         (QWebPagePrivate::inputMethodEvent):
1121         * tests/qwebpage/tst_qwebpage.cpp:
1122         (tst_QWebPage::inputMethods):
1123
1124 2010-11-24  Andras Becsi  <abecsi@inf.u-szeged.hu>
1125
1126         Reviewed by Kenneth Rohde Christiansen.
1127
1128         Make WebKit2 compile with !ENABLE(INSPECTOR).
1129         https://bugs.webkit.org/show_bug.cgi?id=49973
1130
1131         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1132         (DumpRenderTreeSupportQt::setJavaScriptProfilingEnabled):
1133
1134 2010-11-24  Sheriff Bot  <webkit.review.bot@gmail.com>
1135
1136         Unreviewed, rolling out r72650.
1137         http://trac.webkit.org/changeset/72650
1138         https://bugs.webkit.org/show_bug.cgi?id=50010
1139
1140         breaks focus in scenes focus item other than graphicswebiview
1141         (Requested by tronical_ on #webkit).
1142
1143         * Api/qgraphicswebview.cpp:
1144         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
1145         (QGraphicsWebView::QGraphicsWebView):
1146         (QGraphicsWebView::itemChange):
1147         * Api/qgraphicswebview.h:
1148         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1149
1150 2010-11-24  Jan Erik Hanssen  <jhanssen@sencha.com>
1151
1152         Reviewed by Kenneth Rohde Christiansen.
1153
1154         [Qt] Html autofocus not working with QGraphicsWebView
1155         https://bugs.webkit.org/show_bug.cgi?id=43169
1156
1157         QGraphicsScene does not propagate Qt::ActivateWindowFocusReason focus
1158         events when there are no active items.
1159
1160         * Api/qgraphicswebview.cpp:
1161         (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
1162         (QGraphicsWebView::QGraphicsWebView):
1163         (QGraphicsWebView::eventFilter):
1164         (QGraphicsWebView::itemChange):
1165         * Api/qgraphicswebview.h:
1166         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1167         (FocusPage::FocusPage):
1168         (FocusPage::event):
1169         (FocusPage::gotFocus):
1170         (tst_QGraphicsWebView::receivesFocusInOnShow):
1171
1172 2010-11-23  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1173
1174         Reviewed by Andreas Kling.
1175
1176         Adapt to setShouldDelegateScrolling not being a real setting anymore.
1177         We now similarily to setUseFixedLayout and setPaintEntireContents
1178         set it on the FrameView wen transitioning to a new page.
1179
1180         * Api/qgraphicswebview.cpp:
1181         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1182         * WebCoreSupport/FrameLoaderClientQt.cpp:
1183         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1184
1185 2010-11-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1186
1187         Reviewed by Kenneth Rohde Christiansen.
1188
1189         [Qt] Fix compilation with !ENABLE(INSPECTOR)
1190         https://bugs.webkit.org/show_bug.cgi?id=49942
1191
1192         Add ENABLE(INSPECTOR) to the Qt specific files following r71981.
1193
1194         * WebCoreSupport/InspectorClientQt.cpp:
1195         (WebCore::InspectorClientQt::inspectorDestroyed):
1196         (WebCore::InspectorClientQt::openInspectorFrontend):
1197         (WebCore::InspectorClientQt::sendMessageToFrontend):
1198         * WebCoreSupport/InspectorServerQt.cpp:
1199         (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
1200
1201 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
1202
1203         Reviewed by Andreas Kling.
1204
1205         [Qt] Restore binary compatibility with the QtWebKit 2.1 branch
1206
1207         Re-order the enums by adding new enum entries to the end.
1208
1209         * Api/qwebsettings.h:
1210
1211 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
1212
1213         Reviewed by Tor Arne Vestbø.
1214
1215         [Qt] Review the setUserPermission & friends API
1216         https://bugs.webkit.org/show_bug.cgi?id=46810
1217
1218         Renamed requestPermissionFromUser to featurePermissionRequested
1219         and cancelRequestsForPermission to featurePermissionRequestCanceled.
1220
1221         * Api/qwebpage.h:
1222         * WebCoreSupport/GeolocationPermissionClientQt.cpp:
1223         (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
1224         (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
1225         * WebCoreSupport/NotificationPresenterClientQt.cpp:
1226         (WebCore::NotificationPresenterClientQt::requestPermission):
1227         (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
1228
1229 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
1230
1231         Reviewed by Tor Arne Vestbø.
1232
1233         [Qt] Review the setUserPermission & friends API
1234         https://bugs.webkit.org/show_bug.cgi?id=46810
1235
1236         Rename setUserPermission to setFeaturePermission
1237
1238         * Api/qwebpage.cpp:
1239         (QWebPage::setFeaturePermission):
1240         * Api/qwebpage.h:
1241         * tests/qwebpage/tst_qwebpage.cpp:
1242         (JSTestPage::requestPermission):
1243
1244 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
1245
1246         Reviewed by Tor Arne Vestbø.
1247
1248         [Qt] Review the setUserPermission & friends API
1249         https://bugs.webkit.org/show_bug.cgi?id=46810
1250
1251         Rename PermissionDomain to Feature, NotificationsPermissionDomain to Notifications
1252         and GeolocationPermissionDomain to Geolocation.
1253
1254         * Api/qwebpage.cpp:
1255         (QWebPage::setUserPermission):
1256         * Api/qwebpage.h:
1257         * WebCoreSupport/GeolocationPermissionClientQt.cpp:
1258         (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
1259         (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
1260         * WebCoreSupport/NotificationPresenterClientQt.cpp:
1261         (WebCore::NotificationPresenterClientQt::requestPermission):
1262         (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
1263         * tests/qwebpage/tst_qwebpage.cpp:
1264         (JSTestPage::requestPermission):
1265         (tst_QWebPage::geolocationRequestJS):
1266
1267 2010-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
1268
1269         Reviewed by Tor Arne Vestbø.
1270
1271         [Qt] Review the setUserPermission & friends API
1272         https://bugs.webkit.org/show_bug.cgi?id=46810
1273
1274         Add a ByUser suffix to PermissionGranted/Denied. In the future
1275         we can add PermissionGrantedByDefault.
1276
1277         * Api/qwebpage.cpp:
1278         (QWebPage::setUserPermission):
1279         * Api/qwebpage.h:
1280         * WebCoreSupport/GeolocationPermissionClientQt.cpp:
1281         (WebCore::GeolocationPermissionClientQt::setPermission):
1282         * tests/qwebpage/tst_qwebpage.cpp:
1283         (JSTestPage::requestPermission):
1284
1285 2010-11-22  Jan Erik Hanssen  <jhanssen@sencha.com>
1286
1287         Reviewed by Kenneth Rohde Christiansen.
1288
1289         [Qt] QWebElement::appendInside() doesn't work on head elements
1290         https://bugs.webkit.org/show_bug.cgi?id=49166
1291
1292         Make QWebElement::appendInside() call 
1293         Element::deprecatedCreateContextualFragment(), bypassing the check for
1294         the HEAD tag in the HTMLElement implementation of this function.
1295
1296         * Api/qwebelement.cpp:
1297         (QWebElement::appendInside):
1298         * tests/qwebelement/tst_qwebelement.cpp:
1299         (tst_QWebElement::addElementToHead):
1300
1301 2010-11-20  Andreas Kling  <kling@webkit.org>
1302
1303         Reviewed by Antonio Gomes.
1304
1305         [Qt] Dragging a selection should use a rendering of the selection as "cursor" for the drag
1306         https://bugs.webkit.org/show_bug.cgi?id=49870
1307
1308         * WebCoreSupport/DragClientQt.cpp:
1309         (WebCore::DragClientQt::startDrag): Pass the DragImage to QDrag::setPixmap()
1310
1311 2010-11-20  Sam Magnuson  <smagnuso@gmail.com>
1312
1313         Reviewed by Andreas Kling.
1314
1315         [Qt] crash when attempting to add a JS object
1316         https://bugs.webkit.org/show_bug.cgi?id=49287
1317
1318         * Api/qwebframe.cpp:
1319         (QWebFrame::addToJavaScriptWindowObject):
1320
1321         Test: LayoutTests/fast/frames/sandboxed-iframe-plugins.html
1322
1323 2010-11-20  Sheriff Bot  <webkit.review.bot@gmail.com>
1324
1325         Unreviewed, rolling out r72471.
1326         http://trac.webkit.org/changeset/72471
1327         https://bugs.webkit.org/show_bug.cgi?id=49865
1328
1329         broke two IME tests on Qt (Requested by kling on #webkit).
1330
1331         * Api/qwebpage.cpp:
1332         (QWebPagePrivate::inputMethodEvent):
1333         * tests/qwebpage/tst_qwebpage.cpp:
1334         (tst_QWebPage::inputMethods):
1335
1336 2010-11-19  Kristian Amlie  <kristian.amlie@nokia.com>
1337
1338         Reviewed by Andreas Kling.
1339
1340         Fixed handling of QInputMethodEvents with nonzero replacementLength.
1341
1342         These types of events replace text that is already in the widget, but
1343         WebKit did not check for replacementLength at all.
1344
1345         Also made sure that the preeditString is always respected, even if
1346         there is committed text. This is how QLineEdit does it.
1347
1348         https://bugs.webkit.org/show_bug.cgi?id=49787
1349
1350         * Api/qwebpage.cpp:
1351         (QWebPagePrivate::inputMethodEvent):
1352         * tests/qwebpage/tst_qwebpage.cpp:
1353         (tst_QWebPage::inputMethods):
1354
1355 2010-11-19  Benjamin Poulain  <benjamin.poulain@nokia.com>
1356
1357         Reviewed by Kenneth Rohde Christiansen.
1358
1359         [Qt] Transition and animation do not work with QWebView anymore
1360         https://bugs.webkit.org/show_bug.cgi?id=49797
1361
1362         Accelerated compositing should not be enabled on QWebView without
1363         texture mapper.
1364
1365         * WebCoreSupport/PageClientQt.h:
1366         (WebCore::PageClientQWidget::allowsAcceleratedCompositing):
1367
1368 2010-11-19  Yi Shen  <yi.4.shen@nokia.com>
1369
1370         Reviewed by Laszlo Gombos.
1371
1372         [Qt] Memory leak in QWebInspector
1373         https://bugs.webkit.org/show_bug.cgi?id=49765
1374
1375         Delete QWebInspectorPrivate in ~QWebInspector()
1376
1377         * Api/qwebinspector.cpp:
1378         (QWebInspector::~QWebInspector):
1379
1380 2010-11-19  Sam Magnuson  <smagnuso@gmail.com>
1381
1382         Reviewed by Andreas Kling.
1383
1384         [Qt] Compile with QT_NO_UNDOCOMMAND
1385         https://bugs.webkit.org/show_bug.cgi?id=49752
1386
1387         * WebCoreSupport/EditCommandQt.cpp:
1388         (EditCommandQt::EditCommandQt):
1389         * WebCoreSupport/EditCommandQt.h:
1390
1391 2010-11-19  Yi Shen  <yi.4.shen@nokia.com>
1392
1393         Reviewed by Andreas Kling.
1394
1395         https://bugs.webkit.org/show_bug.cgi?id=49200
1396         [Qt] bugs in Composition mode for QWebPage::inputMethodEvent & inputMethodQuery()
1397
1398         Make QWebPage work as following when editor is in composition mode:
1399         1. anchor position and cursor position are the same and always >= 0
1400         2. current selection is always null
1401
1402         * Api/qwebpage.cpp:
1403         (QWebPagePrivate::inputMethodEvent):
1404         (QWebPage::inputMethodQuery):
1405         * tests/qwebpage/tst_qwebpage.cpp:
1406         (tst_QWebPage::inputMethods):
1407
1408 2010-11-18  Gavin Barraclough  <barraclough@apple.com>
1409
1410         Build fix - update error messages folllowing r72360.
1411
1412         * tests/qwebframe/tst_qwebframe.cpp:
1413
1414 2010-11-12  Luiz Agostini  <luiz.agostini@openbossa.org>
1415
1416         Reviewed by Andreas Kling.
1417
1418         [Qt] Static platform plugin support
1419         https://bugs.webkit.org/show_bug.cgi?id=49470
1420
1421         Adding support for statically linked platform plugins.
1422
1423         * WebCoreSupport/QtPlatformPlugin.cpp:
1424         (WebCore::QtPlatformPlugin::loadStaticallyLinkedPlugin):
1425         (WebCore::QtPlatformPlugin::plugin):
1426         * WebCoreSupport/QtPlatformPlugin.h:
1427
1428 2010-11-17  Andreas Kling  <kling@webkit.org>
1429
1430         Reviewed by Kenneth Rohde Christiansen.
1431
1432         Reuse the size of the actualVisibleContentRect when loading a new page
1433         or navigating session history.
1434
1435         * WebCoreSupport/FrameLoaderClientQt.cpp:
1436         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1437
1438 2010-11-17  Dimitri Glazkov  <dglazkov@chromium.org>
1439
1440         Reviewed by Darin Adler.
1441
1442         Converge means of querying a parent node into one way, which is Node::parentNode.
1443         https://bugs.webkit.org/show_bug.cgi?id=49686
1444
1445         * Api/qwebelement.cpp:
1446         (QWebElement::prependOutside): Changed to use parentNode.
1447         (QWebElement::appendOutside): Ditto.
1448         (QWebElement::encloseContentsWith): Ditto.
1449         (QWebElement::encloseWith): Ditto.
1450
1451 2010-11-16  Simon Hausmann  <simon.hausmann@nokia.com>
1452
1453         Reviewed by Andreas Kling.
1454
1455         [Qt] Remove synchronous QWebPage::checkPermissions signal
1456         https://bugs.webkit.org/show_bug.cgi?id=46810
1457
1458         As decided in the API review, we remove this signal and replace its only use currently
1459         with cached credentials.
1460
1461         * Api/qwebpage.cpp:
1462         (QWebPage::setUserPermission): Pass the WebCore frame instead of the QWebFrame.
1463         * Api/qwebpage.h:
1464         * WebCoreSupport/NotificationPresenterClientQt.cpp:
1465         (WebCore::NotificationPresenterClientQt::checkPermission): Replaced explicit
1466         signal emission with hash lookup of previously granted permission (or not).
1467         (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission): Remove
1468         any previously cached/granted permission for the given script execution context.
1469         (WebCore::NotificationPresenterClientQt::allowNotificationForFrame): Do not
1470         only serve pending permission requests but before calling the JS callbacks, remember
1471         the permission for subsequent synchronous checkPermission() calls.
1472         * WebCoreSupport/NotificationPresenterClientQt.h: Add cache for permissions.
1473
1474 2010-11-15  Gavin Barraclough  <barraclough@apple.com>
1475
1476         Reviewed by NOBODY build fix.
1477
1478         Fix test broken by earlier patch.
1479
1480         * tests/qwebframe/tst_qwebframe.cpp:
1481
1482 2010-11-15  Yi Shen  <yi.4.shen@nokia.com>
1483
1484         Reviewed by Andreas Kling.
1485
1486         [Qt] ZoomTextOnly doesn't work
1487         https://bugs.webkit.org/show_bug.cgi?id=49568
1488
1489         Check QWebSettings::ZoomTextOnly attribute before applying zoom
1490
1491         * Api/qwebframe.cpp:
1492         (QWebFrame::textSizeMultiplier):
1493         (QWebFrame::setZoomFactor):
1494         (QWebFrame::zoomFactor):
1495         * Api/qwebframe_p.h:
1496         (QWebFramePrivate::QWebFramePrivate):
1497
1498 2010-11-14  Andreas Kling  <kling@webkit.org>
1499
1500         Reviewed by Antonio Gomes.
1501
1502         REGRESSION(r71895): API test javaScriptWindowObjectCleared fails
1503         https://bugs.webkit.org/show_bug.cgi?id=49466
1504
1505         As of r71895 empty inline scripts are no longer executed and so
1506         the javaScriptWindowObjectCleared() signal is no longer triggered
1507         by <script></script>.
1508
1509         * tests/qwebframe/tst_qwebframe.cpp:
1510
1511 2010-11-12  Jacob Dinu  <dinu.jacob@nokia.com>
1512
1513         Reviewed by Andreas Kling.
1514
1515         [Qt] Update .def file for Symbian
1516         https://bugs.webkit.org/show_bug.cgi?id=49456
1517
1518         Added missing symbols from revisions r69825, r70470, r71806
1519
1520         * symbian/eabi/QtWebKitu.def:
1521
1522 2010-11-12  Benjamin Poulain  <benjamin.poulain@nokia.com>
1523
1524         Reviewed by Andreas Kling.
1525
1526         [Qt] Need to implement WebKit::pluginWillHandleLoadError for WebKit2
1527         https://bugs.webkit.org/show_bug.cgi?id=48764
1528
1529         Add the missing error.
1530
1531         * WebCoreSupport/FrameLoaderClientQt.cpp:
1532         (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
1533
1534 2010-11-11  Yi Shen  <yi.4.shen@nokia.com>
1535
1536         Reviewed by Andreas Kling.
1537
1538         [Qt] QWebScriptWorld::world() may crash
1539         https://bugs.webkit.org/show_bug.cgi?id=49342
1540
1541         * Api/qwebscriptworld.cpp:
1542         (QWebScriptWorld::world):
1543
1544 2010-11-11  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1545
1546         Reviewed by Andreas Kling.
1547
1548         [Qt] Add an API for overriding the actual visible content rect in WebCore
1549         https://bugs.webkit.org/show_bug.cgi?id=49373
1550
1551         * Api/qwebpage.cpp:
1552         (QWebPage::setActualVisibleContentRect):
1553         * Api/qwebpage.h:
1554
1555 2010-11-11  Andreas Kling  <kling@webkit.org>
1556
1557         Reviewed by Kenneth Rohde Christiansen.
1558
1559         FrameView: Don't clip to visibleContentRect in paintEntireContents mode
1560         https://bugs.webkit.org/show_bug.cgi?id=49375
1561
1562         Use paintEntireContents in combination with tiling, allowing to
1563         actually set visibleContentRect to something different from
1564         the actual contents size.
1565
1566         * Api/qgraphicswebview.cpp:
1567         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1568         * WebCoreSupport/FrameLoaderClientQt.cpp:
1569         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1570
1571 2010-11-10  Sheriff Bot  <webkit.review.bot@gmail.com>
1572
1573         Unreviewed, rolling out r71733.
1574         http://trac.webkit.org/changeset/71733
1575         https://bugs.webkit.org/show_bug.cgi?id=49319
1576
1577         made qt bot crashy and sad (Requested by kling on #webkit).
1578
1579         * Api/qgraphicswebview.cpp:
1580         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1581         * WebCoreSupport/FrameLoaderClientQt.cpp:
1582         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1583
1584 2010-11-10  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1585
1586         Reviewed by Andreas Kling.
1587
1588         Use paintEntireContents in combination with tiling, allowing to
1589         actually set visibleContentRect to something different from
1590         the actual contents size.
1591
1592         * Api/qgraphicswebview.cpp:
1593         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1594         * WebCoreSupport/FrameLoaderClientQt.cpp:
1595         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1596
1597 2010-11-08  Benjamin Poulain  <benjamin.poulain@nokia.com>
1598
1599         Reviewed by Andreas Kling.
1600
1601         [Qt] build error in WebKit/qt/Api/qwebpage.cpp in Qt 4.7.0
1602         https://bugs.webkit.org/show_bug.cgi?id=47427
1603
1604         Add a missing guard in order to be able to compile when
1605         ENABLE(TOUCH_EVENTS) is not defined.
1606
1607         * Api/qwebpage.cpp:
1608         (QWebPagePrivate::touchEvent):
1609
1610 2010-11-08  Alexey Proskuryakov  <ap@apple.com>
1611
1612         Reviewed by Darin Adler.
1613
1614         https://bugs.webkit.org/show_bug.cgi?id=48685
1615         Notify UI process about focused frame
1616
1617         Added an empty implementation of the new ChromeClient method.
1618
1619         * WebCoreSupport/ChromeClientQt.cpp:
1620         (WebCore::ChromeClientQt::focusedNodeChanged): Removed unneeded namespace prefix.
1621         (WebCore::ChromeClientQt::focusedFrameChanged):
1622         * WebCoreSupport/ChromeClientQt.h:
1623
1624 2010-11-08  Noam Rosenthal  <noam.rosenthal@nokia.com>
1625
1626         Reviewed by Kenneth Rohde Christiansen.
1627
1628         [Texmap] [Qt] Texture mapper initial implementation
1629         https://bugs.webkit.org/show_bug.cgi?id=47070
1630
1631         Reorganized the textureMapper to be a member of QWebFramePrivate, to help with making
1632         TextureMapper thread-safe.
1633
1634         * Api/qwebframe.cpp:
1635         (QWebFramePrivate::renderCompositedLayers):
1636         * Api/qwebframe_p.h:
1637         * WebCoreSupport/PageClientQt.cpp:
1638         (WebCore::PlatformLayerProxyQt::setTextureMapper):
1639         (WebCore::PlatformLayerProxyQt::textureMapper):
1640         (WebCore::PlatformLayerProxyQWidget::PlatformLayerProxyQWidget):
1641         (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsObject):
1642
1643 2010-11-07  Adam Barth  <abarth@webkit.org>
1644
1645         Reviewed by Eric Seidel.
1646
1647         Rename Cache to MemoryCache
1648         https://bugs.webkit.org/show_bug.cgi?id=49159
1649
1650         * Api/qwebpage.cpp:
1651         * Api/qwebsettings.cpp:
1652
1653 2010-11-07  Chang Shu  <chang.shu@nokia.com>
1654
1655         Reviewed by Antonio Gomes.
1656
1657         Add a helper function to avoid duplicated code.
1658         https://bugs.webkit.org/show_bug.cgi?id=49085
1659
1660         * WebCoreSupport/EditorClientQt.cpp:
1661         (WebCore::EditorClientQt::handleKeyboardEvent):
1662
1663 2010-11-05  Chris Marrin  <cmarrin@apple.com>
1664
1665         Reviewed by Simon Fraser.
1666
1667         Move resumeAnimations/suspendAnimations from Frame to AnimationController.
1668         https://bugs.webkit.org/show_bug.cgi?id=49073
1669
1670         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1671         (DumpRenderTreeSupportQt::suspendAnimations):
1672         (DumpRenderTreeSupportQt::resumeAnimations):
1673
1674 2010-11-03  Antonio Gomes  <tonikitoo@webkit.org>, Andre Pedralho  <andre.pedralho@gmail.com>
1675
1676         Reviewed by Kenneth Rohde Christiansen and Antti Koivisto.
1677
1678         [Qt] Making effective use of nodesFromRect.
1679         https://bugs.webkit.org/show_bug.cgi?id=44089
1680
1681         Patch adds a helper class (named TouchAdjuster) to improve tap actions
1682         on mobile touch devices. TouchAdjuster makes use of the newly added rect
1683         based hit test extension through the Document::nodesFromRect method.
1684         Given a rectangle as input, nodesFromRect returns a z-index ordered list
1685         of nodes whose boundaries intersect the rectangle.
1686
1687         Basically the TouchAdjuster class intercepts the QGraphicsSceneMouseEvent
1688         passed to both QWebPagePrivate::mouse{Press,Release}Event methods before
1689         they are passed down to WebCore. The goal is to infer the target click position.
1690         For that, a rectangle is built up using the event position as a center point and
1691         expanding it based on the values and directions set in the Platform Plugin
1692         QWebTouchModifier::hitTestPadding.
1693
1694         TouchAdjuster iterates over the list of nodes returned by nodesFromRect and
1695         picks the clickable one that has the largest intersection area with the hit
1696         test rectangle. The target position is then the center point of this intersection
1697         area.
1698
1699         In case of no clickable node intersects the hit test area, the click position
1700         is not altered.
1701
1702         TouchAdjuster is *only* working for QGraphicsWebView based views.
1703
1704         * Api/qwebpage.cpp:
1705         (QWebPagePrivate::mousePressEvent):
1706         (QWebPagePrivate::mouseReleaseEvent):
1707         (QWebPagePrivate::adjustPointForClicking):
1708         (QWebPagePrivate::TouchAdjuster::TouchAdjuster):
1709         (QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch):
1710         (isClickableElement):
1711         (hasMouseListener):
1712         (isValidFrameOwner):
1713         (nodeToElement):
1714         * Api/qwebpage_p.h:
1715
1716 2010-10-20  Chang Shu  <chang.shu@nokia.com>, Antonio Gomes <tonikitoo@webkit.org>
1717
1718         Reviewed by Simon Fraser.
1719
1720         [Qt] Makes <input type=text> and <textarea> functional with
1721         Spatial Navigation enabled. Before this patch, the focus cannot
1722         move away from input box once it is in. This patch allows focus
1723         move to neighbor nodes when the caret reaches the edge of the texts.
1724         This patch does not support yet cases where the focused <input>
1725         has a JS handler for the arrow keys.
1726         https://bugs.webkit.org/show_bug.cgi?id=37153
1727
1728         * WebCoreSupport/EditorClientQt.cpp:
1729         (WebCore::EditorClientQt::handleKeyboardEvent):
1730
1731 2010-11-04  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1732
1733         Reviewed by David Hyatt.
1734
1735         Delegate scrolling via a separate method
1736         https://bugs.webkit.org/show_bug.cgi?id=48988
1737
1738         Implement delegatedScrollRequested and make it emit the
1739         scrollRequested signal for Qt.
1740
1741         * WebCoreSupport/ChromeClientQt.cpp:
1742         (WebCore::ChromeClientQt::delegatedScrollRequested):
1743         * WebCoreSupport/ChromeClientQt.h:
1744
1745 2010-11-04  Robert Hogan  <robert@webkit.org>
1746
1747         Reviewed by Andreas Kling.
1748
1749         [Qt] Clarify expected return values of innerXml(), outerXml()
1750
1751         If you put HTML in (e.g. using setHTML()) you will get HTML out,
1752         even if you marked it up as XML.
1753
1754         https://bugs.webkit.org/show_bug.cgi?id=44876
1755
1756         * Api/qwebelement.cpp:
1757
1758 2010-11-03  Andre Pedralho  <andre.pedralho@gmail.com>
1759
1760         Reviewed by Kenneth Rohde Christiansen.
1761
1762         Using the Platform Plugin to define the default values for the padding of HitTestResult.
1763         https://bugs.webkit.org/show_bug.cgi?id=48450
1764
1765         * Api/qwebkitplatformplugin.h:
1766         (QWebTouchModifier::~QWebTouchModifier):
1767         * WebCoreSupport/QtPlatformPlugin.cpp:
1768         (WebCore::QtPlatformPlugin::createTouchModifier):
1769         * WebCoreSupport/QtPlatformPlugin.h:
1770         * examples/platformplugin/WebPlugin.cpp:
1771         (WebPlugin::supportsExtension):
1772         (WebPlugin::createExtension):
1773         * examples/platformplugin/WebPlugin.h:
1774         (TouchModifier::hitTestPaddingForTouch):
1775         * examples/platformplugin/qwebkitplatformplugin.h:
1776         (QWebTouchModifier::~QWebTouchModifier):
1777
1778 2010-11-03  Andreas Kling  <kling@webkit.org>
1779
1780         Reviewed by Kenneth Rohde Christiansen.
1781
1782         [Qt] QGWV: Keep the scrolling delegation intact when switching pages
1783
1784         * Api/qgraphicswebview.cpp:
1785         (QGraphicsWebViewPrivate::updateResizesToContentsForPage): Turn on/off
1786         scrolling delegation depending on the resizeToContents mode.
1787         (QGraphicsWebViewPrivate::detachCurrentPage): Turn off scrolling delegation.
1788         (QGraphicsWebView::setResizesToContents):
1789
1790 2010-11-03  Kenneth Rohde Christiansen  <kenneth@webkit.org>
1791
1792         Reviewed by Andreas Kling.
1793
1794         Make it possible to delegate scrolling to the UI
1795         https://bugs.webkit.org/show_bug.cgi?id=48907
1796
1797         Enable scrolling delegation when setResizesToContents is active.
1798
1799         * Api/qgraphicswebview.cpp:
1800         (QGraphicsWebView::setResizesToContents):
1801
1802 2010-11-03  Daniel Bates  <dbates@rim.com>
1803
1804         For unnamed frames, window.name returns a generated name
1805         https://bugs.webkit.org/show_bug.cgi?id=6751
1806
1807         Part 1 of 2.
1808
1809         Substitute FrameTree::uniqueName() for FrameTree::name() in the Qt port.
1810
1811         * Api/qwebframe.cpp:
1812         (QWebFrame::frameName):
1813
1814 2010-11-02  Noam Rosenthal  <noam.rosenthal@nokia.com>
1815
1816         Reviewed by Kenneth Rohde Christiansen.
1817
1818         Some refactor for texmap to enable WebKit2: remove globals, and allow TextureMapper to exist without a GraphicsContext.
1819         This will allow rendering the TextureMapperNode tree without an active QPainter, into the current GL context.
1820         Most of the changes simply move the globas in TextureMapperGL into members of that class.
1821
1822         [Texmap] [Qt] Texture mapper initial implementation
1823         https://bugs.webkit.org/show_bug.cgi?id=47070
1824
1825         * Api/qwebframe.cpp:
1826         (QWebFramePrivate::renderFromTiledBackingStore):
1827         (QWebFramePrivate::renderCompositedLayers):
1828         (QWebFramePrivate::renderRelativeCoords):
1829         * Api/qwebframe_p.h:
1830
1831 2010-11-01  Brady Eidson  <beidson@apple.com>
1832
1833         Reviewed by Anders Carlsson.
1834
1835         <rdar://problem/7660547> and https://bugs.webkit.org/show_bug.cgi?id=48699
1836         Context menu support for WebKit 2.
1837
1838         * WebCoreSupport/ChromeClientQt.h:
1839         (WebCore::ChromeClientQt::showContextMenu):
1840
1841 2010-10-31  Robert Hogan  <robert@webkit.org>
1842
1843         Reviewed by Antonio Gomes.
1844
1845         [Qt] Support nodesFromRect in DRT
1846
1847         https://bugs.webkit.org/show_bug.cgi?id=48716
1848
1849         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1850         (DumpRenderTreeSupportQt::nodesFromRect):
1851         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1852
1853 2010-10-31  Andreas Kling  <kling@webkit.org>
1854
1855         Reviewed by Kenneth Rohde Christiansen.
1856
1857         [Qt] Short-circuit QWebPage::selectedText() if frame has no selection
1858         https://bugs.webkit.org/show_bug.cgi?id=48736
1859
1860         Do an early return if the selection is empty.
1861
1862         No new tests, this is covered by tst_QWebPage::findText().
1863
1864         * Api/qwebpage.cpp:
1865         (QWebPage::selectedText):
1866
1867 2010-10-30  Andreas Kling  <kling@webkit.org>
1868
1869         Reviewed by Antonio Gomes.
1870
1871         [Qt] IM: Don't manipulate selection via RenderTextControl
1872         https://bugs.webkit.org/show_bug.cgi?id=48700
1873
1874         Go directly through the Frame's SelectionController instead.
1875
1876         No new tests, this is covered by tst_QWebPage::inputMethods.
1877
1878         * Api/qwebpage.cpp:
1879         (QWebPagePrivate::inputMethodEvent):
1880         (QWebPage::inputMethodQuery):
1881
1882 2010-10-29  Daniel Bates  <dbates@rim.com>
1883
1884         No review, rolling out 70971.
1885         http://trac.webkit.org/changeset/70971
1886         https://bugs.webkit.org/show_bug.cgi?id=6751
1887
1888         Rolling out changeset 70971 <http://trac.webkit.org/changeset/70971> since
1889         it caused layout test failures on all bots. In particular, the
1890         child count in a generated frame name differs after this patch. We need
1891         to look into this further.
1892
1893         * Api/qwebframe.cpp:
1894         (QWebFrame::frameName):
1895
1896 2010-10-28  Antonio Gomes  <agomes@rim.com>
1897
1898         Reviewed by Ojan Vafai.
1899
1900         Needs a "LinuxEditingBehavior", perhaps with a better name
1901         https://bugs.webkit.org/show_bug.cgi?id=36627
1902
1903         Adding support to Qt's DRTSupport class to test the newly introduced Unix editing behavior.
1904
1905         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1906         (DumpRenderTreeSupportQt::setEditingBehavior):
1907
1908 2010-10-29  Daniel Bates  <dbates@rim.com>
1909
1910         Reviewed by Adam Barth.
1911
1912         For unnamed frames, window.name returns a generated name
1913         https://bugs.webkit.org/show_bug.cgi?id=6751
1914
1915         Modified Qt-port to use FrameTree::uniqueName().
1916
1917         * Api/qwebframe.cpp:
1918         (QWebFrame::frameName):
1919
1920 2010-10-29  Andreas Kling  <kling@webkit.org>
1921
1922         Reviewed by Ariya Hidayat.
1923
1924         [Qt] QWebPage's InputMethod event handling calls ShortcutOverride handler too
1925         https://bugs.webkit.org/show_bug.cgi?id=48692
1926
1927         * Api/qwebpage.cpp:
1928         (QWebPage::event): Add missing break statement.
1929
1930 2010-10-29  Ryosuke Niwa  <rniwa@webkit.org>
1931
1932         Reviewed by Darin Adler.
1933
1934         Remove RenderTextControl::setSelectionRange
1935         https://bugs.webkit.org/show_bug.cgi?id=47870
1936
1937         Converted RenderTextControll::setSelectionRange to a global function.
1938
1939         * Api/qwebpage.cpp:
1940         (QWebPagePrivate::inputMethodEvent): Calls setSelectionRange.
1941
1942 2010-10-29  Darin Adler  <darin@apple.com>
1943
1944         Reviewed by Sam Weinig.
1945
1946         Change BackForwardList clients to use BackForwardListImpl to prepare for further refactoring
1947         https://bugs.webkit.org/show_bug.cgi?id=48574
1948
1949         * Api/qwebhistory.cpp:
1950         (QWebHistory::clear):
1951         * Api/qwebhistory_p.h:
1952         * Api/qwebpage.cpp:
1953         (QWebPagePrivate::QWebPagePrivate):
1954         Use BackForwardListImpl.
1955
1956 2010-10-29  Alexey Proskuryakov  <ap@apple.com>
1957
1958         Reviewed by Darin Adler.
1959
1960         https://bugs.webkit.org/show_bug.cgi?id=48576
1961         Let WebKit2 client know when a frame is a frameset
1962
1963         Added a blank implementation of the new FrameLoaderClient method.
1964
1965         * WebCoreSupport/FrameLoaderClientQt.h:
1966         * WebCoreSupport/FrameLoaderClientQt.cpp:
1967         (WebCore::FrameLoaderClientQt::dispatchDidBecomeFrameset):
1968
1969 2010-10-29  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1970
1971         Reviewed by Andreas Kling.
1972
1973         [Qt] Fix tst_QWebFrame on XVFB.
1974         https://bugs.webkit.org/show_bug.cgi?id=48637
1975
1976         These tests relied on a window manager to activate the window.
1977
1978         Fixes:
1979         - tst_QWebFrame::popupFocus()
1980         - tst_QwebFrame::inputFieldFocus()
1981
1982         * tests/qwebframe/tst_qwebframe.cpp:
1983
1984 2010-10-28  Noam Rosenthal  <noam.rosenthal@nokia.com>
1985
1986         Reviewed by Ariya Hidayat.
1987
1988         [Texmap] [Qt] Texture mapper initial implementation
1989         https://bugs.webkit.org/show_bug.cgi?id=47070
1990
1991         Build fix,
1992
1993         * WebCoreSupport/PageClientQt.cpp:
1994         (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsObject):
1995         (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
1996         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
1997         * WebCoreSupport/PageClientQt.h:
1998
1999 2010-10-28  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2000
2001         Reviewed by Andreas Kling.
2002
2003         [Qt] QWebElement: Don't retrieve CSS rules through DOMWindow.
2004         https://bugs.webkit.org/show_bug.cgi?id=48519
2005
2006         JavaScript is prevented from retrieving cross-domain CSS rules since r70335.
2007         This patch allow QWebElement to retrive style without this limitation
2008         by asking the Document directly instead of going through DOMWindow.
2009
2010         Fixes:
2011         - tst_QWebFrame::setHtmlWithResource()
2012         - tst_QWebElement::style()
2013
2014         * Api/qwebelement.cpp:
2015         (QWebElement::styleProperty):
2016
2017 2010-10-28  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2018
2019         Reviewed by Andreas Kling.
2020
2021         Make Qt viewportAttributesForSize not assert on (0, 0) size
2022         https://bugs.webkit.org/show_bug.cgi?id=48524
2023
2024         We now return an invalid (isValid() == false) ViewportAttributes
2025         instance when the supplied size is (0, 0).
2026
2027         * Api/qwebpage.cpp:
2028         (QWebPage::viewportAttributesForSize):
2029
2030 2010-10-27  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2031
2032         Reviewed by Kenneth Rohde Christiansen.
2033
2034         [Qt] Fix tst_QWebFrame::popupFocus().
2035         https://bugs.webkit.org/show_bug.cgi?id=48432
2036
2037         - Call setFocus() before show() to work around a but in Qt.
2038         - Remove the check on combo at the end since hidePopup() leads
2039           indirectly to its destruction and segfault.
2040
2041         * tests/qwebframe/tst_qwebframe.cpp:
2042
2043 2010-10-26  Jenn Braithwaite  <jennb@chromium.org>
2044
2045         Reviewed by Dmitry Titov.
2046
2047         Resource tracking failure when trying to move a frame between documents
2048         https://bugs.webkit.org/show_bug.cgi?id=44713
2049
2050         * WebCoreSupport/FrameLoaderClientQt.cpp:
2051         (WebCore::FrameLoaderClientQt::transferLoadingResourceFromPage):
2052         Emtpy method.
2053         * WebCoreSupport/FrameLoaderClientQt.h:
2054
2055 2010-10-26  Yi Shen  <yi.4.shen@nokia.com>
2056
2057         Reviewed by Andreas Kling.
2058
2059         [Qt] Skipping popup focus test for symbian
2060         https://bugs.webkit.org/show_bug.cgi?id=48324
2061
2062         * tests/qwebframe/tst_qwebframe.cpp:
2063
2064 2010-10-26  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2065
2066         Reviewed by Andreas Kling.
2067
2068         [Qt] Unit tests: setHtml("data:text/html,...") -> load(QUrl("data:text/html,..."))
2069         https://bugs.webkit.org/show_bug.cgi?id=48319
2070
2071         These tests were failing since the new HTML parser.
2072         This patch removes the content type from the error page as well.
2073
2074         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2075         (tst_QGraphicsWebView::crashOnViewlessWebPages):
2076         * tests/qwebelement/tst_qwebelement.cpp:
2077         (tst_QWebElement::frame):
2078         * tests/qwebpage/tst_qwebpage.cpp:
2079         (tst_QWebPage::loadFinished):
2080         (ErrorPage::extension):
2081         (tst_QWebPage::errorPageExtension):
2082         (tst_QWebPage::errorPageExtensionInIFrames):
2083         (tst_QWebPage::errorPageExtensionInFrameset):
2084
2085 2010-10-25  No'am Rosenthal  <noam.rosenthal@nokia.com>
2086
2087         Reviewed by Kenneth Rohde Christiansen.
2088
2089         [Texmap] [Qt] Texture mapper initial implementation
2090         https://bugs.webkit.org/show_bug.cgi?id=47070
2091
2092         Glue layer (WebCoreSupport) changes to allow connecting TextureMapper to a Qt PageClient, i.e.
2093         a QWebView or a QGraphicsWebView. This enables the new type, TextureMapperPlatformLayer, to be recognized both by
2094         the compositor and by the page client.
2095         Note that this is temporarily an opt-in, under USE(TEXTURE_MAPPER)
2096
2097         * Api/qwebframe.h:
2098         * Api/qwebframe_p.h:
2099         (QWebFramePrivate::QWebFramePrivate):
2100         * Api/qwebpage.cpp:
2101         (QWebPage::setView):
2102         * WebCoreSupport/ChromeClientQt.cpp:
2103         (WebCore::ChromeClientQt::attachRootGraphicsLayer):
2104         * WebCoreSupport/PageClientQt.cpp:
2105         (WebCore::PlatformLayerProxyQt::PlatformLayerProxyQt):
2106         (WebCore::PlatformLayerProxyQt::~PlatformLayerProxyQt):
2107         (WebCore::PlatformLayerProxyQt::setSizeChanged):
2108         (WebCore::PlatformLayerProxyQWidget::PlatformLayerProxyQWidget):
2109         (WebCore::PlatformLayerProxyQWidget::eventFilter):
2110         (WebCore::PlatformLayerProxyQWidget::setNeedsDisplay):
2111         (WebCore::PlatformLayerProxyQWidget::setNeedsDisplayInRect):
2112         (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsWidget):
2113         (WebCore::PlatformLayerProxyQGraphicsObject::setNeedsDisplay):
2114         (WebCore::PlatformLayerProxyQGraphicsObject::setNeedsDisplayInRect):
2115         (WebCore::PageClientQWidget::setRootGraphicsLayer):
2116         (WebCore::PageClientQWidget::markForSync):
2117         (WebCore::PageClientQWidget::syncLayers):
2118         (WebCore::PageClientQGraphicsWidget::updateCompositingScrollPosition):
2119         (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
2120         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
2121         * WebCoreSupport/PageClientQt.h:
2122         (WebCore::PageClientQWidget::PageClientQWidget):
2123         (WebCore::PageClientQWidget::allowsAcceleratedCompositing):
2124         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
2125
2126 2010-10-25  Johnny Ding  <jnd@chromium.org>
2127
2128         Reviewed by Tony Chang.
2129
2130         Dump the gesture status of frame in frame load callbacks in DumpRenderTree
2131         by adding a new method dumpUserGestureInFrameLoadCallbacks.
2132         Now only dump the gesture status in "DidStartProvisionalLoad" callback.
2133         https://bugs.webkit.org/show_bug.cgi?id=47849
2134
2135         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2136         (DumpRenderTreeSupportQt::dumpUserGestureInFrameLoader):
2137         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2138         * WebCoreSupport/FrameLoaderClientQt.cpp:
2139         (drtPrintFrameUserGestureStatus):
2140         (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
2141         (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
2142         (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
2143         (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
2144         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2145         * WebCoreSupport/FrameLoaderClientQt.h:
2146
2147 2010-10-22  Sam Weinig  <sam@webkit.org>
2148
2149         Reviewed by Anders Carlsson.
2150
2151         WebKit2 needs to pass the current event modifier flags when requesting a new window
2152         https://bugs.webkit.org/show_bug.cgi?id=48140
2153
2154         * Api/qwebpage.cpp:
2155         (openNewWindow):
2156         * WebCoreSupport/ChromeClientQt.cpp:
2157         (WebCore::ChromeClientQt::createWindow):
2158         * WebCoreSupport/ChromeClientQt.h:
2159         * WebCoreSupport/FrameLoaderClientQt.cpp:
2160         (WebCore::FrameLoaderClientQt::dispatchCreatePage):
2161         * WebCoreSupport/FrameLoaderClientQt.h:
2162         Add NavigationAction parameter.
2163
2164 2010-10-22  Yi Shen  <yi.4.shen@nokia.com>
2165
2166         Reviewed by Andreas Kling.
2167
2168         [Qt] InspectorClientQt crashes when deleting a qwebpage which has an inspector
2169         https://bugs.webkit.org/show_bug.cgi?id=48079
2170
2171         * Api/qwebpage.cpp:
2172         (QWebPagePrivate::~QWebPagePrivate):
2173         (QWebPage::~QWebPage):
2174
2175 2010-10-22  Benjamin Poulain  <benjamin.poulain@nokia.com>
2176
2177         Reviewed by Simon Hausmann.
2178
2179         [Qt] All widgets are rendered incorrectly when rendered through a cache
2180         https://bugs.webkit.org/show_bug.cgi?id=47767
2181
2182         Add a new test for rendering with tiling.
2183
2184         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2185         (tst_QGraphicsWebView::widgetsRenderingThroughCache):
2186
2187 2010-10-21  Robert Hogan  <robert@webkit.org>
2188
2189         Reviewed by Simon Hausmann.
2190
2191         [Qt] Sending a QInputMethodEvent::Selection event forces the
2192              Editor to go into Composition mode
2193
2194         Improve QWebPage handling of input method events:
2195          - Selections don't trigger entering composition mode.
2196          - Handle multiple selections
2197
2198         Also remove redundant cancellation of composition in tst_qwebpage.
2199         There is no composition in progress at that point.
2200
2201         Finally, move infiniteLoopJS() to the end of the tst_qwebpage unit
2202         tests - so you don't have to wait for it to complete when running
2203         other tests.
2204
2205         https://bugs.webkit.org/show_bug.cgi?id=39625
2206
2207         * Api/qwebpage.cpp:
2208         (QWebPagePrivate::inputMethodEvent):
2209         (QWebPage::inputMethodQuery):
2210         * tests/qwebpage/tst_qwebpage.cpp:
2211         (tst_QWebPage::inputMethods):
2212
2213 2010-10-20  Luiz Agostini  <luiz.agostini@openbossa.org>
2214
2215         Reviewed by Antonio Gomes.
2216
2217         [Qt] Wrong null check in PopupMenuQt
2218         https://bugs.webkit.org/show_bug.cgi?id=47945
2219
2220         Wrong null check in PopupMenuQt.
2221
2222         * WebCoreSupport/PopupMenuQt.cpp:
2223         (WebCore::PopupMenuQt::hide):
2224
2225 2010-10-18  Viatcheslav Ostapenko  <ostapenko.viatcheslav@nokia.com>
2226
2227         Reviewed by Laszlo Gombos.
2228
2229         [Qt] Export QWebPage::ViewportAttributes class.
2230         https://bugs.webkit.org/show_bug.cgi?id=47845
2231
2232         * Api/qwebpage.h:
2233         * symbian/eabi/QtWebKitu.def:
2234
2235 2010-10-18  Pavel Feldman  <pfeldman@chromium.org>
2236
2237         Reviewed by Simon Fraser.
2238
2239         Web Inspector: [crash] when Inspector Open in CSSStyleSelector::loadPendingImages().
2240         https://bugs.webkit.org/show_bug.cgi?id=46224
2241
2242         * WebCoreSupport/InspectorClientQt.cpp:
2243         (WebCore::InspectorClientQt::sendMessageToFrontend):
2244
2245 2010-10-18  No'am Rosenthal  <noam.rosenthal@nokia.com>
2246
2247         Reviewed by Andreas Kling.
2248
2249         [Qt] AC rendering bugs
2250
2251         This fixes a regression that was introduced by making scrolling in accelerated compositing automatic,
2252         which made our explicit function to scroll the compositing layers superfluous, making the scrolling behavior
2253         when graphics layers are present incorrect. The fix simply removes those redundant functions.
2254
2255         https://bugs.webkit.org/show_bug.cgi?id=47571
2256
2257         * WebCoreSupport/PageClientQt.cpp:
2258         (WebCore::PageClientQGraphicsWidget::scroll):
2259         (WebCore::PageClientQGraphicsWidget::update):
2260         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
2261         * WebCoreSupport/PageClientQt.h:
2262
2263 2010-10-18  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
2264
2265         Reviewed by nobody, build fix.
2266
2267         [Qt] Fix the build with MSVC.
2268
2269         Splitting the condition in two to prevent qmake parentheses issues.
2270
2271         * Api/DerivedSources.pro:
2272
2273 2010-10-18  Yi Shen  <yi.4.shen@nokia.com>
2274
2275         Reviewed by Antonio Gomes.
2276
2277         [QT] Unable to load pages on QtTestBrowser after canceling a page load. 
2278         https://bugs.webkit.org/show_bug.cgi?id=43827
2279
2280         * Api/qwebpage.cpp:
2281         (QWebPage::triggerAction):
2282
2283 2010-10-15  Qi Zhang  <qi.2.zhang@nokia.com>
2284
2285         Reviewed by Andreas Kling.
2286
2287         [Qt] window.close() doesn't work in qt
2288         https://bugs.webkit.org/show_bug.cgi?id=46186
2289
2290         Introduce new attribute in QWebSettings to trigger "setAllowScriptsToCloseWindow"
2291
2292         * Api/qwebsettings.cpp:
2293         (QWebSettingsPrivate::apply):
2294         * Api/qwebsettings.h:
2295
2296 2010-10-15  Andreas Kling  <kling@webkit.org>
2297
2298         Reviewed by Kenneth Rohde Christiansen.
2299
2300         [Qt] Unbreak scrolling the ContentsLayer with QWebView
2301
2302         r69777 broke scrolling the contents layer in QWebView by not restoring
2303         the painter clip after painting each part of the dirty region.
2304
2305         * Api/qwebframe.cpp:
2306         (QWebFramePrivate::renderRelativeCoords):
2307
2308 2010-09-27 Dawit Alemayehu  <adawit@kde.org>
2309
2310         Reviewed by Andreas Kling.
2311
2312         [Qt] Added functions for obtaining and checking the supported content types.
2313         http://webkit.org/b/37880
2314
2315         * Api/qwebpage.cpp:
2316         (extractContentTypeFromHash):
2317         (extractContentTypeFromPluginVector):
2318         (QWebPage::supportedContentTypes):
2319         (QWebPage::supportsContentType):
2320         * tests/qwebpage/tst_qwebpage.cpp:
2321         (tst_QWebPage::supportedContentType):
2322
2323 2010-10-14  Sheriff Bot  <webkit.review.bot@gmail.com>
2324
2325         Unreviewed, rolling out r69795.
2326         http://trac.webkit.org/changeset/69795
2327         https://bugs.webkit.org/show_bug.cgi?id=47687
2328
2329         'See discussion at webkit.org/b/47609' (Requested by mwenge on
2330         #webkit).
2331
2332         * WebCoreSupport/FrameLoaderClientQt.cpp:
2333         (WebCore::FrameLoaderClientQt::canHandleRequest):
2334         (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
2335
2336 2010-10-14  Robert Hogan  <robert@webkit.org>
2337
2338         Reviewed by Antonio Gomes.
2339
2340         [Qt] Fix http/tests/misc/redirect-to-external-url.html
2341
2342         Support the test in FrameLoaderClientQt and unskip.
2343
2344         https://bugs.webkit.org/show_bug.cgi?id=47609
2345
2346         * WebCoreSupport/FrameLoaderClientQt.cpp:
2347         (WebCore::FrameLoaderClientQt::canHandleRequest):
2348         (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
2349
2350 2010-10-14  No'am Rosenthal  <noam.rosenthal@nokia.com>
2351
2352         Reviewed by Kenneth Rohde Christiansen.
2353
2354         [Texmap] [Qt] Texture mapper initial implementation
2355         https://bugs.webkit.org/show_bug.cgi?id=47070
2356
2357         Allow rendering of accelerated-compositing with TextureMapper, inside a QWebFrame. The frame will render the regular content,
2358         either normally or through tiled backingstore, then let the TextureMapper layer render itself to the active context, and
2359         then render the scrollbar and pan icon. This is different from the current implementation, which uses additional QGraphicsItems for AC
2360         and the scrollbar overlay.
2361
2362         * Api/qgraphicswebview.cpp:
2363         (QGraphicsWebView::paint):
2364         * Api/qwebframe.cpp:
2365         (QWebFramePrivate::renderFromTiledBackingStore):
2366         (QWebFramePrivate::renderRelativeCoords):
2367
2368 2010-10-13  Gavin Barraclough  <barraclough@apple.com>
2369
2370         Reviewed by Oliver Hunt.
2371
2372         https://bugs.webkit.org/show_bug.cgi?id=43987
2373         Switch XMLHttpRequest, FileReader, and FileReaderSync to use a Stringbuilder
2374         to construct their internal result string.  Remove ScriptString (this is now
2375         redundant).
2376
2377         * WebCoreSupport/FrameLoaderClientQt.cpp:
2378
2379 2010-10-13  Dinu Jacob  <dinu.jacob@nokia.com>
2380
2381         Reviewed by Andreas Kling.
2382
2383         [Qt] Update .def file for Symbian
2384         https://bugs.webkit.org/show_bug.cgi?id=47540
2385
2386         Updated symbols for Symbian - added viewportAttributesForSize and
2387         made viewportConfigurationForSize absent based on the API change in
2388         47325
2389
2390         * symbian/eabi/QtWebKitu.def:
2391
2392 2010-10-12  David Leong  <david.leong@nokia.com>
2393
2394         Reviewed by Laszlo Gombos.
2395
2396         [Qt] Enable Netscape plugin metadata caching on Linux 
2397         https://bugs.webkit.org/show_bug.cgi?id=46287
2398         
2399         QWebSettings::enablePersistentStorage will now store the netscape
2400         plugin cache to QDesktopServices::CacheLocation.
2401         
2402         * Api/qwebsettings.cpp:
2403         (QWebSettings::enablePersistentStorage):
2404
2405 2010-10-12  Yael Aharon  <yael.aharon@nokia.com>
2406
2407         Reviewed by Antonio Gomes.
2408
2409         [Qt] Editing commands should not be executed on non-editable content.
2410         https://bugs.webkit.org/show_bug.cgi?id=47426
2411
2412         Remove calls to editor()->command() when we are not in editable content.
2413         There is no value in doing that, and in some cases, it prevents scrolling.
2414
2415         * WebCoreSupport/EditorClientQt.cpp:
2416         (WebCore::EditorClientQt::handleKeyboardEvent):
2417
2418 2010-10-08  Hui Huang  <hui.2.huang@nokia.com>
2419
2420         Reviewed by Simon Hausmann.
2421
2422         ifdef out code that rewrites Flash Plug-in wmode for Symbian build
2423         https://bugs.webkit.org/show_bug.cgi?id=43484
2424
2425         * WebCoreSupport/FrameLoaderClientQt.cpp:
2426         (WebCore::FrameLoaderClientQt::createPlugin):
2427
2428 2010-10-07  Andreas Kling  <kling@webkit.org>
2429
2430         Reviewed by Simon Hausmann.
2431
2432         [Qt] API: ViewportConfiguration => ViewportArguments
2433         https://bugs.webkit.org/show_bug.cgi?id=47325
2434
2435         * Api/qwebpage.cpp:
2436         (QWebPage::ViewportAttributes::ViewportAttributes):
2437         (QWebPage::ViewportAttributes::~ViewportAttributes):
2438         (QWebPage::ViewportAttributes::operator=):
2439         (QWebPage::viewportAttributesForSize):
2440         * Api/qwebpage.h:
2441         * Api/qwebpage_p.h:
2442         (QtViewportAttributesPrivate::QtViewportAttributesPrivate):
2443
2444 2010-10-07  Luiz Agostini  <luiz.agostini@openbossa.org>
2445
2446         Reviewed by Kenneth Rohde Christiansen.
2447
2448         Fixing viewport meta tag user-scalable handling
2449         https://bugs.webkit.org/show_bug.cgi?id=47330
2450
2451         user-scalable attribute was not considered in viewport meta tag handling.
2452
2453         * Api/qwebpage.cpp:
2454         (QWebPage::viewportConfigurationForSize):
2455
2456 2010-10-05  Diego Gonzalez  <diegohcg@webkit.org>
2457
2458         Reviewed by Andreas Kling.
2459
2460         [Qt] Hook up accelerometer data via Qt DeviceMotion
2461         https://bugs.webkit.org/show_bug.cgi?id=47105
2462
2463         Get accelerometer necessary data via Qt mobility library using a
2464         provider class. Enable, also the RotationRate using the current device
2465         orientation provider.
2466
2467         * WebCoreSupport/DeviceMotionClientQt.cpp:
2468         (WebCore::DeviceMotionClientQt::DeviceMotionClientQt):
2469         (WebCore::DeviceMotionClientQt::~DeviceMotionClientQt):
2470         (WebCore::DeviceMotionClientQt::startUpdating):
2471         (WebCore::DeviceMotionClientQt::stopUpdating):
2472         (WebCore::DeviceMotionClientQt::currentDeviceMotion):
2473         (WebCore::DeviceMotionClientQt::changeDeviceMotion):
2474         * WebCoreSupport/DeviceMotionClientQt.h:
2475         * WebCoreSupport/DeviceMotionProviderQt.cpp: Added.
2476         (WebCore::DeviceMotionProviderQt::DeviceMotionProviderQt):
2477         (WebCore::DeviceMotionProviderQt::~DeviceMotionProviderQt):
2478         (WebCore::DeviceMotionProviderQt::start):
2479         (WebCore::DeviceMotionProviderQt::stop):
2480         (WebCore::DeviceMotionProviderQt::filter):
2481         * WebCoreSupport/DeviceMotionProviderQt.h: Added.
2482         (WebCore::DeviceMotionProviderQt::currentDeviceMotion):
2483
2484 2010-10-07  Luiz Agostini  <luiz.agostini@openbossa.org>
2485
2486         Reviewed by Kenneth Rohde Christiansen.
2487
2488         Some viewport meta tag api refactoring
2489         https://bugs.webkit.org/show_bug.cgi?id=47334
2490
2491         WebCore::findConfigurationForViewportData renamed to computeViewportAttributes.
2492         WebCore::ViewportAttributes::layoutViewport renamed to layoutSize.
2493
2494         * Api/qwebpage.cpp:
2495         (QWebPage::viewportConfigurationForSize):
2496         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2497         (DumpRenderTreeSupportQt::viewportAsText):
2498
2499 2010-10-07  Keith Kyzivat  <keith.kyzivat@nokia.com>
2500
2501         Reviewed by Simon Hausmann.
2502
2503         [Qt] Update .def file for Symbian
2504         https://bugs.webkit.org/show_bug.cgi?id=47336
2505         Fix and re-freeze symbols for symbian - viewportConfigurationForSize
2506         API changed, allowGeolocationRequest removed from API, several
2507         DumpRenderTree support calls added.
2508
2509         * symbian/eabi/QtWebKitu.def:
2510
2511 2010-10-06  Ragner Magalhaes  <ragner.magalhaes@openbossa.org>
2512
2513         Reviewed by Antonio Gomes.
2514
2515         [Qt] Duplicated code in QWebPagePrivate
2516         https://bugs.webkit.org/show_bug.cgi?id=47195
2517
2518         Remove duplicated code from QWebPagePrivate class for QGraphicsView and QWidget's mouse events.
2519
2520         * Api/qwebpage.cpp:
2521         (QWebPagePrivate::mouseMoveEvent):
2522         (QWebPagePrivate::mousePressEvent):
2523         (QWebPagePrivate::mouseDoubleClickEvent):
2524         (QWebPagePrivate::mouseTripleClickEvent):
2525         (QWebPagePrivate::mouseReleaseEvent):
2526         (QWebPagePrivate::wheelEvent):
2527         (QWebPagePrivate::dragEnterEvent):
2528         (QWebPagePrivate::dragLeaveEvent):
2529         (QWebPagePrivate::dragMoveEvent):
2530         (QWebPagePrivate::dropEvent):
2531         * Api/qwebpage_p.h:
2532
2533 2010-10-06  Luiz Agostini  <luiz.agostini@openbossa.org>
2534
2535         Reviewed by Kenneth Rohde Christiansen.
2536
2537         Renaming WebCore::ViewportConfiguration to WebCore::ViewportAttributes
2538         https://bugs.webkit.org/show_bug.cgi?id=47268
2539
2540         Renaming WebCore::ViewportConfiguration to WebCore::ViewportAttributes
2541
2542         * Api/qwebpage.cpp:
2543         (QWebPage::viewportConfigurationForSize):
2544         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2545         (DumpRenderTreeSupportQt::viewportAsText):
2546
2547 2010-10-05  Andrew Wilson  <atwilson@chromium.org>
2548
2549         Reviewed by Andreas Kling.
2550
2551         Notification onclick() events don't act like user gestures
2552         https://bugs.webkit.org/show_bug.cgi?id=47137
2553
2554         * WebCoreSupport/NotificationPresenterClientQt.cpp:
2555         (WebCore::NotificationPresenterClientQt::notificationClicked):
2556         Use UserGestureIndicator to make sure click events are treated like user gestures.
2557
2558 2010-10-05  Robert Hogan  <robert@webkit.org>
2559
2560         Reviewed by Andreas Kling.
2561
2562         [Qt] Fix url conversion in QWebHistory
2563
2564         Converting from KURL to WFT::String to QUrl does not
2565         permit proper percent encoding later.
2566
2567         https://bugs.webkit.org/show_bug.cgi?id=47048
2568
2569         * Api/qwebhistory.cpp:
2570         (QWebHistoryItem::originalUrl):
2571         (QWebHistoryItem::url):
2572
2573 2010-10-05  Jakob Petsovits  <jpetsovits@rim.com>
2574
2575         Reviewed by Andreas Kling.
2576
2577         [Qt] Make build work with QT_NO_CURSOR
2578         https://bugs.webkit.org/show_bug.cgi?id=46097
2579
2580         Add a missing semicolon.
2581
2582         * WebCoreSupport/ChromeClientQt.cpp:
2583         (WebCore::ChromeClientQt::setCursor):
2584
2585 2010-10-05  Simon Hausmann  <simon.hausmann@nokia.com>
2586
2587         Unreviewed build fix.
2588
2589         [Symbian] Fix build issue due to gaps in ordinals in the def file
2590
2591         Restore previously removed symbols and mark them absent instead. We must
2592         not remove symbols from this file, because it breaks binary compatibility
2593         (when re-assigning the ordinals of the following symbols) or it causes build
2594         breakage when instead having a gap in the ordinal sequence. Instead removing
2595         a symbol is done by marking it as absent.
2596
2597         * symbian/eabi/QtWebKitu.def:
2598
2599 2010-10-04  Adam Barth  <abarth@webkit.org>
2600
2601         Reviewed by Darin Adler.
2602
2603         Rename RedirectScheduler to NavigationScheduler
2604         https://bugs.webkit.org/show_bug.cgi?id=47037
2605
2606         Update for name change.
2607
2608         * Api/qwebpage.cpp:
2609         (QWebPage::triggerAction):
2610
2611 2010-10-04  Diego Gonzalez  <diegohcg@webkit.org>
2612
2613         Reviewed by Kenneth Rohde Christiansen.
2614
2615         [Qt] Hook up DeviceOrientation data for Qt support
2616         https://bugs.webkit.org/show_bug.cgi?id=47052
2617
2618         Get DeviceOrientation necessary data via Qt mobility library
2619         using a provider class.
2620
2621         * WebCoreSupport/DeviceOrientationClientQt.cpp:
2622         (WebCore::DeviceOrientationClientQt::DeviceOrientationClientQt):
2623         (WebCore::DeviceOrientationClientQt::~DeviceOrientationClientQt):
2624         (WebCore::DeviceOrientationClientQt::startUpdating):
2625         (WebCore::DeviceOrientationClientQt::stopUpdating):
2626         (WebCore::DeviceOrientationClientQt::lastOrientation):
2627         (WebCore::DeviceOrientationClientQt::changeDeviceOrientation):
2628         * WebCoreSupport/DeviceOrientationClientQt.h:
2629         * WebCoreSupport/DeviceOrientationProviderQt.cpp: Added.
2630         (WebCore::DeviceOrientationProviderQt::DeviceOrientationProviderQt):
2631         (WebCore::DeviceOrientationProviderQt::~DeviceOrientationProviderQt):
2632         (WebCore::DeviceOrientationProviderQt::start):
2633         (WebCore::DeviceOrientationProviderQt::stop):
2634         (WebCore::DeviceOrientationProviderQt::filter):
2635         * WebCoreSupport/DeviceOrientationProviderQt.h: Added.
2636         (WebCore::DeviceOrientationProviderQt::isActive):
2637         (WebCore::DeviceOrientationProviderQt::orientation):
2638         (WebCore::DeviceOrientationProviderQt::hasAlpha):
2639
2640 2010-09-28  Luiz Agostini  <luiz.agostini@openbossa.org>
2641
2642         Reviewed by Kenneth Rohde Christiansen.
2643
2644         Viewport data change notifications
2645         https://bugs.webkit.org/show_bug.cgi?id=46755
2646
2647         Regarding viewport meta tags, what matters for browser developers is to know when the viewport data has
2648         changed and its current value. Viewport data belongs to the document, but it is useful to keep the current
2649         viewport data in Page as a reference, to be able to send notifications only when the current viewport
2650         has changed.
2651
2652         * Api/qwebframe.cpp:
2653         * Api/qwebframe_p.h:
2654         * Api/qwebpage.cpp:
2655         (QWebPagePrivate::viewportArguments):
2656         (QWebPage::viewportConfigurationForSize):
2657         * Api/qwebpage_p.h:
2658         * WebCoreSupport/ChromeClientQt.cpp:
2659         (WebCore::ChromeClientQt::viewportDataChanged):
2660         * WebCoreSupport/ChromeClientQt.h:
2661         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2662         (DumpRenderTreeSupportQt::viewportAsText):
2663
2664 2010-10-04  Simon Hausmann  <simon.hausmann@nokia.com>
2665
2666         Rubber-stamped by Tor Arne Vestbø.
2667
2668         [Qt] Fix platform plugin support after r68128
2669
2670         Replaced the qobject_cast from the QObject derived extension to a
2671         static_cast. qobject_cast works by comparing pointers to meta-object
2672         instances, of which there are two each: one compiled into WebKit and
2673         one compiled into the plugin.
2674
2675         The platform plugin ensures the validity of the interface contract
2676         through its version and the initial safe qobject_cast from QObject
2677         to QWebKitPlatformPlugin. After that it is safe to use static_cast,
2678         and with the recent changes even required.
2679
2680         * WebCoreSupport/QtPlatformPlugin.cpp:
2681         (WebCore::QtPlatformPlugin::createSelectInputMethod):
2682         (WebCore::QtPlatformPlugin::createNotificationPresenter):
2683         (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer):
2684
2685 2010-10-02  Diego Gonzalez  <diegohcg@webkit.org>
2686
2687         Reviewed by Kenneth Rohde Christiansen.
2688
2689         [Qt] Provide Qt support for DeviceMotion/Orientation clients
2690         https://bugs.webkit.org/show_bug.cgi?id=47051
2691
2692         Dummy implementation of DeviceMotion/Orientation client classes
2693         to make possible to hook up motion/orientation data
2694         in further implementations.
2695
2696         * Api/qwebpage.cpp:
2697         (QWebPagePrivate::QWebPagePrivate):
2698         * WebCoreSupport/DeviceMotionClientQt.cpp: Added.
2699         (WebCore::DeviceMotionClientQt::DeviceMotionClientQt):
2700         (WebCore::DeviceMotionClientQt::setController):
2701         (WebCore::DeviceMotionClientQt::startUpdating):
2702         (WebCore::DeviceMotionClientQt::stopUpdating):
2703         (WebCore::DeviceMotionClientQt::currentDeviceMotion):
2704         (WebCore::DeviceMotionClientQt::deviceMotionControllerDestroyed):
2705         * WebCoreSupport/DeviceMotionClientQt.h: Added.
2706         (WebCore::DeviceMotionClientQt::~DeviceMotionClientQt):
2707         * WebCoreSupport/DeviceOrientationClientQt.cpp: Added.
2708         (WebCore::DeviceOrientationClientQt::DeviceOrientationClientQt):
2709         (WebCore::DeviceOrientationClientQt::setController):
2710         (WebCore::DeviceOrientationClientQt::startUpdating):
2711         (WebCore::DeviceOrientationClientQt::stopUpdating):
2712         (WebCore::DeviceOrientationClientQt::lastOrientation):
2713         (WebCore::DeviceOrientationClientQt::deviceOrientationControllerDestroyed):
2714         * WebCoreSupport/DeviceOrientationClientQt.h: Added.
2715         (WebCore::DeviceOrientationClientQt::~DeviceOrientationClientQt):
2716
2717 2010-09-30  Robert Hogan  <robert@webkit.org>
2718
2719         Reviewed by Andreas Kling.
2720
2721         [Qt] Support for PlainTextController
2722
2723         Unskip editing/text-iterator/basic-iteration.html
2724
2725         https://bugs.webkit.org/show_bug.cgi?id=38805
2726
2727         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2728         (DumpRenderTreeSupportQt::plainText):
2729         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2730
2731 2010-09-30  Andreas Kling  <andreas.kling@nokia.com>
2732
2733         Reviewed by Tor Arne Vestbø.
2734
2735         [Qt] V8 port: Unbreak build
2736
2737         Add missing <wtf/text/CString.h> include.
2738
2739         * WebCoreSupport/InspectorServerQt.cpp:
2740
2741 2010-09-30  Benjamin Poulain  <benjamin.poulain@nokia.com>
2742
2743         Reviewed by Andreas Kling.
2744
2745         [Qt] Crash if an scene with accelerated compositing layout during the paint event
2746         https://bugs.webkit.org/show_bug.cgi?id=46812
2747
2748         Delay the deletion of the overlay after the current event is processed.
2749
2750         Removing the overlay can sometimes be done inside the rendering code of
2751         the overlay itself. When the rendering code is using the reference after
2752         the deletion of the overlay, WebKit crashes.
2753
2754         * Api/qgraphicswebview.cpp:
2755         (QGraphicsWebViewPrivate::overlay):
2756         * WebCoreSupport/PageClientQt.cpp:
2757         (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
2758         (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
2759         * WebCoreSupport/PageClientQt.h:
2760         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
2761
2762 2010-09-30  Benjamin Poulain  <benjamin.poulain@nokia.com>
2763
2764         Reviewed by Andreas Kling.
2765
2766         [Qt] Fix tst_QWebPage::geolocationRequestJS()
2767         https://bugs.webkit.org/show_bug.cgi?id=46814
2768
2769         Disable the test. This test cannot pass with a
2770         standard build of WebKit, it is disabled until the API is finilized.
2771
2772         * tests/qwebpage/tst_qwebpage.cpp:
2773         (tst_QWebPage::geolocationRequestJS):
2774
2775 2010-09-29  Andreas Kling  <andreas.kling@nokia.com>
2776
2777         Reviewed by Ariya Hidayat.
2778
2779         [Qt] Don't keep local reference to QGraphicsItemOverlay in QGWVPrivate
2780         https://bugs.webkit.org/show_bug.cgi?id=46812
2781
2782         Get the QGraphicsItemOverlay* via the QWebPageClient (d->page->d->client)
2783         instead of keeping a local pointer to it.
2784
2785         This is cleanup for a follow-up patch.
2786
2787         * Api/qgraphicswebview.cpp:
2788         (QGraphicsWebViewPrivate::overlay):
2789         (QGraphicsWebView::paint):
2790         (QGraphicsWebView::setPage):
2791         (QGraphicsWebView::updateGeometry):
2792         (QGraphicsWebView::setGeometry):
2793
2794 2010-09-28  Jenn Braithwaite  <jennb@chromium.org>
2795
2796         Reviewed by Dmitry Titov.
2797
2798         Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument.
2799         https://bugs.webkit.org/show_bug.cgi?id=46663
2800
2801         * WebCoreSupport/FrameLoaderClientQt.cpp:
2802         (WebCore::FrameLoaderClientQt::didTransferChildFrameToNewDocument):
2803         * WebCoreSupport/FrameLoaderClientQt.h:
2804
2805 2010-09-28  Andreas Kling  <andreas.kling@nokia.com>
2806
2807         Reviewed by Kenneth Rohde Christiansen.
2808
2809         [Qt] Clean up QWebPage::ViewportConfiguration API
2810         https://bugs.webkit.org/show_bug.cgi?id=46730
2811
2812         - Pass QSize parameter as const-reference
2813         - Style fixes
2814
2815         * Api/qwebpage.cpp:
2816         (QWebPage::viewportConfigurationForSize):
2817         * Api/qwebpage.h:
2818
2819 2010-09-28  Andras Becsi  <abecsi@webkit.org>
2820
2821         Reviewed by Csaba Osztrogonác.
2822
2823         Undefined reference errors when linking due to gperf and inlining.
2824         webkit.org/b/29244
2825
2826         EFL CMake changes by Leandro Pereira <leandro@profusion.mobi>
2827
2828         Refactor gperf code generation and usage to fix the debug build with gcc>4.4.
2829         Hitherto gperf generated C code, these files were included in multiple C++ files across WebCore
2830         to access the functionality provided. This resulted in debug build failure with newer gcc versions
2831         because of a behaviour change of gcc, which disables C style inlining in debug mode.
2832         The make-hash-tools.pl script lets gperf generate C++ code for all gperf files now, which are compiled
2833         in their own compilation unit.
2834         The functionality provided by the generated code is wrapped behind HashTools.h, so there is no need
2835         for multiple inclusions of generated C files to access these functions.
2836
2837         * WebCoreSupport/FrameLoaderClientQt.cpp:
2838         (WebCore::FrameLoaderClientQt::createPlugin):
2839
2840 2010-09-28  Benjamin Poulain  <benjamin.poulain@nokia.com>
2841
2842         Reviewed by Andreas Kling.
2843
2844         [Qt] Remove support for Qt 4.5
2845         https://bugs.webkit.org/show_bug.cgi?id=46718
2846
2847         Remove the code for versions of Qt prior to 4.6.
2848
2849         * Api/qgraphicswebview.cpp:
2850         (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
2851         (QGraphicsWebView::QGraphicsWebView):
2852         (QGraphicsWebView::sceneEvent):
2853         (QGraphicsWebViewPrivate::detachCurrentPage):
2854         * Api/qwebframe.cpp:
2855         (QWebFrame::load):
2856         * Api/qwebpage.cpp:
2857         (QWebPagePrivate::QWebPagePrivate):
2858         (QWebPagePrivate::handleSoftwareInputPanel):
2859         (QWebPagePrivate::inputMethodEvent):
2860         (QWebPagePrivate::touchEvent):
2861         (QWebPage::inputMethodQuery):
2862         (QWebPage::view):
2863         (QWebPage::event):
2864         * Api/qwebpage_p.h:
2865         * Api/qwebview.cpp:
2866         (QWebView::QWebView):
2867         (QWebViewPrivate::detachCurrentPage):
2868         (QWebView::event):
2869         * WebCoreSupport/EditorClientQt.cpp:
2870         (WebCore::EditorClientQt::setInputMethodState):
2871         * WebCoreSupport/FrameLoaderClientQt.cpp:
2872         (WebCore::FrameLoaderClientQt::createPlugin):
2873         * WebCoreSupport/PageClientQt.cpp:
2874         (WebCore::PageClientQWidget::setInputMethodHints):
2875         (WebCore::PageClientQGraphicsWidget::setInputMethodEnabled):
2876         (WebCore::PageClientQGraphicsWidget::inputMethodEnabled):
2877         (WebCore::PageClientQGraphicsWidget::setInputMethodHints):
2878         * WebCoreSupport/PageClientQt.h:
2879         (WebCore::QGraphicsItemOverlay::page):
2880         * tests/qwebframe/tst_qwebframe.cpp:
2881         * tests/qwebpage/tst_qwebpage.cpp:
2882         (tst_QWebPage::inputMethods_data):
2883         (inputMethodHints):
2884         (inputMethodEnabled):
2885         (tst_QWebPage::inputMethods):
2886         (tst_QWebPage::originatingObjectInNetworkRequests):
2887         * tests/qwebview/tst_qwebview.cpp:
2888         (tst_QWebView::reusePage):
2889
2890 2010-09-28  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2891
2892         Reviewed by Simon Hausmann.
2893
2894         Clean up QWebPage initialization
2895
2896         * Api/qwebpage.cpp:
2897         * Api/qwebpage_p.h:
2898
2899 2010-09-28  Benjamin Poulain  <benjamin.poulain@nokia.com>
2900
2901         Reviewed by Kenneth Rohde Christiansen.
2902
2903         [Qt] tst_QWebPage::testStopScheduledPageRefresh() fails on MeeGo handset
2904         https://bugs.webkit.org/show_bug.cgi?id=46706
2905
2906         The test require the network to succeed or fail in order to work.
2907         On MeeGo, the network can simply timeout the because of the netword access
2908         management. This patch makes the test use local URLs to avoid the
2909         problem.
2910
2911         * tests/qwebpage/tst_qwebpage.cpp:
2912         (TestNetworkManager::TestNetworkManager):
2913
2914 2010-09-27  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
2915
2916         Reviewed by Antonio Gomes.
2917
2918         [Qt] Remove setDeviceSize methods
2919         https://bugs.webkit.org/show_bug.cgi?id=46347
2920
2921         Remove our setDeviceHeight() API and obtain it automatically from the
2922         system. Also for testing purposes, make it possible to override the
2923         values via two newly introduced environment variables.
2924
2925         * Api/qgraphicswebview.cpp:
2926         * Api/qgraphicswebview.h:
2927         * Api/qwebpage.cpp:
2928         (getintenv):
2929         (queryDeviceSizeForScreenContainingWidget):
2930         (QWebPage::viewportConfigurationForSize):
2931         * WebCoreSupport/PageClientQt.cpp:
2932         (WebCore::PageClientQGraphicsWidget::windowRect):
2933         * symbian/eabi/QtWebKitu.def:
2934
2935 2010-09-27  Girish Ramakrishnan  <girish@forwardbias.in>
2936
2937         Reviewed by Antonio Gomes.
2938
2939         Enable local rendering of NPAPI plugins on Maemo6.
2940
2941         https://bugs.webkit.org/show_bug.cgi?id=46618
2942
2943         * WebCoreSupport/FrameLoaderClientQt.cpp:
2944         (WebCore::FrameLoaderClientQt::createPlugin):
2945
2946 2010-09-27  Benjamin Poulain  <benjamin.poulain@nokia.com>
2947
2948         Reviewed by Andreas Kling.
2949
2950         [Qt] tst_QWebFrame::popupFocus() randomly fail on MeeGo handset because the focus is not set on the window
2951         https://bugs.webkit.org/show_bug.cgi?id=46617
2952
2953         This patch avoid the race condition by waiting for the window
2954         to be mapped on screen before attempting any actions.
2955
2956         * tests/qwebframe/tst_qwebframe.cpp:
2957
2958 2010-09-24  Luiz Agostini  <luiz.agostini@openbossa.org>
2959
2960         Reviewed by Kenneth Rohde Christiansen.
2961
2962         Keep viewport information in Document
2963         https://bugs.webkit.org/show_bug.cgi?id=46385
2964
2965         The viewport meta data (layout viewport, scale) needs to be set again when bringing
2966         back a page from the page cache. As the viewport metadata is only retrieved while parsing
2967         the document, we need to store it in the Document class.
2968
2969         * Api/qwebframe.cpp:
2970         (QWebFramePrivate::viewportArguments):
2971         * Api/qwebframe_p.h:
2972         * Api/qwebpage.cpp:
2973         (QWebPage::viewportConfigurationForSize):
2974         * WebCoreSupport/ChromeClientQt.cpp:
2975         (WebCore::ChromeClientQt::didReceiveViewportArguments):
2976         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2977         (DumpRenderTreeSupportQt::viewportAsText):
2978         * WebCoreSupport/FrameLoaderClientQt.cpp:
2979         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
2980
2981 2010-09-23  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>
2982
2983         Reviewed by Kenneth Rohde Christiansen.
2984
2985         Fix QWebHapticFeedbackPlayer exposure via QWebKitPlatformPlugin
2986
2987         [Qt] QWebHapticFeedbackPlayer needs correct exposure through QWebKitPlatformPlugin
2988         https://bugs.webkit.org/show_bug.cgi?id=46402
2989
2990         QWebHapticFeedbackPlayer is exported through
2991         QWebKitPlatformPlugin::createExtension(), but
2992         createHapticFeedbackPlayer() and the correct
2993         inheritage are missing.
2994
2995         * Api/qwebkitplatformplugin.h:
2996         * WebCoreSupport/QtPlatformPlugin.cpp:
2997         (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer):
2998         * WebCoreSupport/QtPlatformPlugin.h:
2999
3000 2010-09-23  Nate Chapin  <japhet@chromium.org>
3001
3002         Reviewed by Darin Fisher.
3003
3004         Add hyperlink auditing settings (i.e., <a ping>).
3005         https://bugs.webkit.org/show_bug.cgi?id=30458
3006
3007         * Api/qwebsettings.cpp:
3008         (QWebSettingsPrivate::apply):
3009         (QWebSettings::QWebSettings):
3010         * Api/qwebsettings.h:
3011
3012 2010-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3013
3014         Reviewed by Simon Hausmann.
3015
3016         [Qt] Refactor QtWebKitPlatformPlugin interface
3017
3018         Make it easier to keep source-compability for the 
3019         QtWebKitPlatformPlugin interface, and run qmake
3020         on the example (but not build) for convenience.
3021
3022         https://bugs.webkit.org/show_bug.cgi?id=46345
3023
3024         * Api/qwebkitplatformplugin.h:
3025         * WebCoreSupport/QtPlatformPlugin.cpp:
3026         * examples/platformplugin/README:
3027         * examples/platformplugin/WebPlugin.cpp:
3028         * examples/platformplugin/WebPlugin.h:
3029         * examples/platformplugin/qwebkitplatformplugin.h:
3030
3031 2010-09-22  Andras Becsi  <abecsi@webkit.org>
3032
3033         Speculative build fix for the Qt Windows bots.
3034
3035         * Api/DerivedSources.pro:
3036
3037 2010-09-22  Jamey Hicks  <jamey.hicks@nokia.com>
3038
3039         Reviewed by Kenneth Rohde Christiansen.
3040
3041         [Qt] Web Inspector: Remote Web Inspector support for QtWebKit
3042         https://bugs.webkit.org/show_bug.cgi?id=43988
3043
3044         Runs a web debug server on port specified by QtTestBrowser
3045         argument -remote-inspector-port. Property
3046         _q_webInspectorServerPort of the QWebPage instance will be set
3047         according to the argument. All pages with that property set will
3048         be remotely inspectable.
3049
3050         URL for remote inspection of first QWebPage is
3051             http://localhost:9222/webkit/inspector/inspector.html?page=1
3052         where 1 is the number of the QWebPage instance.
3053
3054         The base URL yields an index page with links to the individual inspectors:
3055             http://localhost:9222/
3056
3057         * Api/qwebinspector.cpp:
3058         (QWebInspectorPrivate::attachAndReplaceRemoteFrontend):
3059         (QWebInspectorPrivate::detachRemoteFrontend):
3060         * Api/qwebinspector_p.h:
3061         (QWebInspectorPrivate::QWebInspectorPrivate):
3062         * Api/qwebpage.cpp:
3063         (QWebPagePrivate::dynamicPropertyChangeEvent):
3064         (QWebPagePrivate::inspectorServerPort):
3065         * Api/qwebpage.h:
3066         * Api/qwebpage_p.h:
3067         * WebCoreSupport/InspectorClientQt.cpp:
3068         (WebCore::InspectorClientQt::InspectorClientQt):
3069         (WebCore::InspectorClientQt::inspectorDestroyed):
3070         (WebCore::InspectorClientQt::openInspectorFrontend):
3071         (WebCore::InspectorClientQt::attachAndReplaceRemoteFrontend):
3072         (WebCore::InspectorClientQt::detachRemoteFrontend):
3073         (WebCore::InspectorClientQt::sendMessageToFrontend):
3074         * WebCoreSupport/InspectorClientQt.h:
3075         * WebCoreSupport/InspectorServerQt.cpp: Added.
3076         (WebCore::generateWebSocketChallengeResponse):
3077         (WebCore::parseWebSocketChallengeNumber):
3078         (WebCore::InspectorServerQt::server):
3079         (WebCore::InspectorServerQt::InspectorServerQt):
3080         (WebCore::InspectorServerQt::~InspectorServerQt):
3081         (WebCore::InspectorServerQt::listen):
3082         (WebCore::InspectorServerQt::close):
3083         (WebCore::InspectorServerQt::inspectorClientForPage):
3084         (WebCore::InspectorServerQt::registerClient):
3085         (WebCore::InspectorServerQt::unregisterClient):
3086         (WebCore::InspectorServerQt::newConnection):
3087         (WebCore::InspectorServerRequestHandlerQt::InspectorServerRequestHandlerQt):
3088         (WebCore::InspectorServerRequestHandlerQt::~InspectorServerRequestHandlerQt):
3089         (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
3090         (WebCore::InspectorServerRequestHandlerQt::tcpConnectionDisconnected):
3091         (WebCore::InspectorServerRequestHandlerQt::webSocketSend):
3092         (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
3093         (WebCore::RemoteFrontendChannel::RemoteFrontendChannel):
3094         (WebCore::RemoteFrontendChannel::sendMessageToFrontend):
3095         * WebCoreSupport/InspectorServerQt.h: Added.
3096
3097 2010-09-22  Balazs Kelemen  <kb@inf.u-szeged.hu>
3098
3099         Reviewed by Kenneth Rohde Christiansen.
3100
3101         [Qt] PluginStrategy implementation is broken
3102         https://bugs.webkit.org/show_bug.cgi?id=46078
3103
3104         Remove the QWebPage* member from WebPlatformStrategies.
3105         Get the originator QWebPage of the getPluginInfo call via
3106         the Page* argument.
3107         * Api/qwebpage.cpp:
3108         (QWebPagePrivate::QWebPagePrivate):
3109         * WebCoreSupport/WebPlatformStrategies.cpp:
3110         (WebPlatformStrategies::initialize): 
3111         (WebPlatformStrategies::WebPlatformStrategies):
3112         (WebPlatformStrategies::getPluginInfo):
3113         Use the ChromeClient for accessing the originator QWebPage.
3114         * WebCoreSupport/WebPlatformStrategies.h:
3115
3116 2010-09-22  İsmail Dönmez  <ismail@namtrac.org>
3117
3118         Reviewed by Andreas Kling.
3119
3120         [Qt] Buildfix for WinCE
3121
3122         * Api/DerivedSources.pro:
3123
3124 2010-09-20  Philippe Normand  <pnormand@igalia.com>
3125
3126         Reviewed by Eric Carlson.
3127
3128         [GTK] enhanced context menu for media elements
3129         https://bugs.webkit.org/show_bug.cgi?id=45021
3130
3131         * WebCoreSupport/WebPlatformStrategies.cpp:
3132         * WebCoreSupport/WebPlatformStrategies.h:
3133         (WebPlatformStrategies::contextMenuItemTagOpenVideoInNewWindow):
3134         (WebPlatformStrategies::contextMenuItemTagOpenAudioInNewWindow):
3135         (WebPlatformStrategies::contextMenuItemTagCopyVideoLinkToClipboard):
3136         (WebPlatformStrategies::contextMenuItemTagCopyAudioLinkToClipboard):
3137         (WebPlatformStrategies::contextMenuItemTagToggleMediaControls)
3138         (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop)
3139         (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen)
3140         (WebPlatformStrategies::contextMenuItemTagMediaPlay)
3141         (WebPlatformStrategies::contextMenuItemTagMediaPause)
3142         (WebPlatformStrategies::contextMenuItemTagMediaMute)
3143
3144 2010-09-20  Jacob Dinu  <dinu.jacob@nokia.com>
3145
3146         Reviewed by Adam Barth.
3147
3148         Added a new qwebpage test for loading a cached page
3149         https://bugs.webkit.org/show_bug.cgi?id=41155
3150
3151         * tests/qwebpage/tst_qwebpage.cpp:
3152         (tst_QWebPage::loadCachedPage):
3153
3154 2010-09-08  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3155
3156         Reviewed by Simon Hausmann.
3157
3158         [Qt] Fix forward includes generation for MSVC when sh is in PATH.
3159
3160         MSVC's nmake isn't affected by having sh in PATH.
3161
3162         * Api/DerivedSources.pro:
3163
3164 2010-09-18  Ademar de Souza Reis Jr  <ademar.reis@openbossa.org>
3165
3166         Reviewed by Kenneth Rohde Christiansen.
3167
3168         Enable Platform Strategies on Qt
3169
3170         [Qt] Turn on PLATFORM_STRATEGIES
3171         https://bugs.webkit.org/show_bug.cgi?id=45831
3172
3173         * Api/qwebpage.cpp:
3174         (QWebPagePrivate::QWebPagePrivate): Initialize the PlatformStrategy
3175         singleton.
3176         * WebCoreSupport/WebPlatformStrategies.cpp: Added, code was moved
3177         from platform/qt/Localizations.cpp and plugins/qt/PluginDataQt.cpp
3178         (WebPlatformStrategies::initialize): create the singleton,
3179         following the same "pattern" used by Mac and Win ports.
3180         (WebPlatformStrategies::WebPlatformStrategies):
3181         (WebPlatformStrategies::createPluginStrategy):
3182         (WebPlatformStrategies::createLocalizationStrategy):
3183         (WebPlatformStrategies::createVisitedLinkStrategy):
3184         (WebPlatformStrategies::refreshPlugins):
3185         (WebPlatformStrategies::getPluginInfo):
3186         (WebPlatformStrategies::inputElementAltText):
3187         (WebPlatformStrategies::resetButtonDefaultLabel):
3188         (WebPlatformStrategies::searchableIndexIntroduction):
3189         (WebPlatformStrategies::submitButtonDefaultLabel):
3190         (WebPlatformStrategies::fileButtonChooseFileLabel):
3191         (WebPlatformStrategies::fileButtonNoFileSelectedLabel):
3192         (WebPlatformStrategies::contextMenuItemTagOpenLinkInNewWindow):
3193         (WebPlatformStrategies::contextMenuItemTagDownloadLinkToDisk):
3194         (WebPlatformStrategies::contextMenuItemTagCopyLinkToClipboard):
3195         (WebPlatformStrategies::contextMenuItemTagOpenImageInNewWindow):
3196         (WebPlatformStrategies::contextMenuItemTagDownloadImageToDisk):
3197         (WebPlatformStrategies::contextMenuItemTagCopyImageToClipboard):
3198         (WebPlatformStrategies::contextMenuItemTagOpenFrameInNewWindow):
3199         (WebPlatformStrategies::contextMenuItemTagCopy):
3200         (WebPlatformStrategies::contextMenuItemTagGoBack):
3201         (WebPlatformStrategies::contextMenuItemTagGoForward):
3202         (WebPlatformStrategies::contextMenuItemTagStop):
3203         (WebPlatformStrategies::contextMenuItemTagReload):
3204         (WebPlatformStrategies::contextMenuItemTagCut):
3205         (WebPlatformStrategies::contextMenuItemTagPaste):
3206         (WebPlatformStrategies::contextMenuItemTagNoGuessesFound):
3207         (WebPlatformStrategies::contextMenuItemTagIgnoreSpelling):
3208         (WebPlatformStrategies::contextMenuItemTagLearnSpelling):
3209         (WebPlatformStrategies::contextMenuItemTagSearchWeb):
3210         (WebPlatformStrategies::contextMenuItemTagLookUpInDictionary):
3211         (WebPlatformStrategies::contextMenuItemTagOpenLink):
3212         (WebPlatformStrategies::contextMenuItemTagIgnoreGrammar):
3213         (WebPlatformStrategies::contextMenuItemTagSpellingMenu):
3214         (WebPlatformStrategies::contextMenuItemTagShowSpellingPanel):
3215         (WebPlatformStrategies::contextMenuItemTagCheckSpelling):
3216         (WebPlatformStrategies::contextMenuItemTagCheckSpellingWhileTyping):
3217         (WebPlatformStrategies::contextMenuItemTagCheckGrammarWithSpelling):
3218         (WebPlatformStrategies::contextMenuItemTagFontMenu):
3219         (WebPlatformStrategies::contextMenuItemTagBold):
3220         (WebPlatformStrategies::contextMenuItemTagItalic):
3221         (WebPlatformStrategies::contextMenuItemTagUnderline):
3222         (WebPlatformStrategies::contextMenuItemTagOutline):
3223         (WebPlatformStrategies::contextMenuItemTagWritingDirectionMenu):
3224         (WebPlatformStrategies::contextMenuItemTagTextDirectionMenu):
3225         (WebPlatformStrategies::contextMenuItemTagDefaultDirection):
3226         (WebPlatformStrategies::contextMenuItemTagLeftToRight):
3227         (WebPlatformStrategies::contextMenuItemTagRightToLeft):
3228         (WebPlatformStrategies::contextMenuItemTagInspectElement):
3229         (WebPlatformStrategies::searchMenuNoRecentSearchesText):
3230         (WebPlatformStrategies::searchMenuRecentSearchesText):
3231         (WebPlatformStrategies::searchMenuClearRecentSearchesText):
3232         (WebPlatformStrategies::AXWebAreaText):
3233         (WebPlatformStrategies::AXLinkText):
3234         (WebPlatformStrategies::AXListMarkerText):
3235         (WebPlatformStrategies::AXImageMapText):
3236         (WebPlatformStrategies::AXHeadingText):
3237         (WebPlatformStrategies::AXDefinitionListTermText):
3238         (WebPlatformStrategies::AXDefinitionListDefinitionText):
3239         (WebPlatformStrategies::AXButtonActionVerb):
3240         (WebPlatformStrategies::AXRadioButtonActionVerb):
3241         (WebPlatformStrategies::AXTextFieldActionVerb):
3242         (WebPlatformStrategies::AXCheckedCheckBoxActionVerb):
3243         (WebPlatformStrategies::AXUncheckedCheckBoxActionVerb):
3244         (WebPlatformStrategies::AXMenuListActionVerb):
3245         (WebPlatformStrategies::AXMenuListPopupActionVerb):
3246         (WebPlatformStrategies::AXLinkActionVerb):
3247         (WebPlatformStrategies::missingPluginText):
3248         (WebPlatformStrategies::crashedPluginText):
3249         (WebPlatformStrategies::multipleFileUploadText):
3250         (WebPlatformStrategies::unknownFileSizeText):
3251         (WebPlatformStrategies::imageTitle):
3252         (WebPlatformStrategies::mediaElementLoadingStateText):
3253         (WebPlatformStrategies::mediaElementLiveBroadcastStateText):
3254         (WebPlatformStrategies::localizedMediaControlElementString):
3255         (WebPlatformStrategies::localizedMediaControlElementHelpText):
3256         (WebPlatformStrategies::localizedMediaTimeDescription):
3257         (WebPlatformStrategies::validationMessageValueMissingText):
3258         (WebPlatformStrategies::validationMessageTypeMismatchText):
3259         (WebPlatformStrategies::validationMessagePatternMismatchText):
3260         (WebPlatformStrategies::validationMessageTooLongText):
3261         (WebPlatformStrategies::validationMessageRangeUnderflowText):
3262         (WebPlatformStrategies::validationMessageRangeOverflowText):
3263         (WebPlatformStrategies::validationMessageStepMismatchText):
3264         (WebPlatformStrategies::isLinkVisited):
3265         (WebPlatformStrategies::addVisitedLink):
3266         * WebCoreSupport/WebPlatformStrategies.h: Added, based on Mac and Win
3267         versions.
3268
3269 2010-09-18  Andreas Kling  <andreas.kling@nokia.com>
3270
3271         Reviewed by Antonio Gomes.
3272
3273         [Qt] V8 port: Add FrameLoaderClientQt::allowScriptExtension()
3274         https://bugs.webkit.org/show_bug.cgi?id=46034
3275
3276         r67749 added FrameLoaderClient::allowScriptExtension() (V8-specific)
3277         Add a stub implementation that simply returns false for now.
3278
3279         * WebCoreSupport/FrameLoaderClientQt.h:
3280         (WebCore::FrameLoaderClientQt::allowScriptExtension):
3281
3282 2010-09-17  Darin Adler  <darin@apple.com>
3283
3284         Reviewed by Sam Weinig.
3285
3286         REGRESSION (r60104): Zoom level is unexpectedly reset on page reload
3287         https://bugs.webkit.org/show_bug.cgi?id=42863
3288
3289         * Api/qwebframe.cpp:
3290         (QWebFrame::setTextSizeMultiplier):
3291         (QWebFrame::textSizeMultiplier):
3292         (QWebFrame::setZoomFactor):
3293         (QWebFrame::zoomFactor):
3294         Call functions on Frame instead of FrameView.
3295
3296 2010-09-16  Darin Adler  <darin@apple.com>
3297
3298         Fix build.
3299
3300         * WebCoreSupport/EditorClientQt.cpp:
3301         (WebCore::EditorClientQt::setInputMethodState): Updated for change
3302         in name of isUrlField to isURLField.
3303
3304 2010-09-16  Darin Adler  <darin@apple.com>
3305
3306         Reviewed by Andreas Kling.
3307
3308         Reduce use of HTMLInputElement::inputType so we can remove it later
3309         https://bugs.webkit.org/show_bug.cgi?id=45903
3310
3311         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3312         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
3313         Use isPasswordField.
3314
3315 2010-09-16  Robert Hogan  <robert@webkit.org>
3316
3317         Reviewed by Antonio Gomes.
3318
3319         [Qt] Support globalhistory tests
3320         https://bugs.webkit.org/show_bug.cgi?id=45774
3321
3322         * WebCoreSupport/ChromeClientQt.cpp:
3323         (WebCore::ChromeClientQt::populateVisitedLinks):
3324         * WebCoreSupport/ChromeClientQt.h:
3325         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3326         (DumpRenderTreeSupportQt::dumpHistoryCallbacks):
3327         (DumpRenderTreeSupportQt::dumpVisitedLinksCallbacks):
3328         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3329         * WebCoreSupport/FrameLoaderClientQt.cpp:
3330         (WebCore::FrameLoaderClientQt::setTitle):
3331         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
3332         (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks):
3333         * WebCoreSupport/FrameLoaderClientQt.h:
3334
3335 2010-09-16  Diego Gonzalez  <diegohcg@webkit.org>
3336
3337         Reviewed by Kenneth Rohde Christiansen.
3338
3339         [Qt] Remove FrameLoaderClientQt::webFrame() to use NetworkingContext to get the WebFrame to avoid layering violations
3340         https://bugs.webkit.org/show_bug.cgi?id=42293
3341
3342         * Api/qwebframe.cpp:
3343         (QWebFrame::childFrames):
3344         (QWebFramePrivate::kit):
3345         * Api/qwebpage.cpp:
3346         (QWebPage::currentFrame):
3347         * WebCoreSupport/ChromeClientQt.cpp:
3348         (WebCore::ChromeClientQt::runJavaScriptAlert):
3349         (WebCore::ChromeClientQt::runJavaScriptConfirm):
3350         (WebCore::ChromeClientQt::runJavaScriptPrompt):
3351         (WebCore::ChromeClientQt::contentsSizeChanged):
3352         * WebCoreSupport/FrameLoaderClientQt.cpp:
3353         (WebCore::FrameLoaderClientQt::chooseFile):
3354         * WebCoreSupport/FrameLoaderClientQt.h:
3355
3356 2010-09-15  Simon Hausmann  <simon.hausmann@nokia.com>
3357
3358         [Qt] Update the Symbian def files
3359
3360         Re-freeze with the viewport meta tag updates.
3361
3362         * symbian/eabi/QtWebKitu.def:
3363
3364 2010-09-14  Andreas Kling  <andreas.kling@nokia.com>
3365
3366         Reviewed by Kenneth Rohde Christiansen.
3367
3368         [Qt] V8 port: Get inspector up and running
3369         https://bugs.webkit.org/show_bug.cgi?id=45771
3370
3371         * WebCoreSupport/InspectorClientQt.cpp:
3372         (WebCore::ensureDebuggerScriptLoaded): Added, loads DebuggerScript.js into ScriptDebugServer.
3373         (WebCore::InspectorClientQt::openInspectorFrontend): Ensure that DebuggerScript.js is loaded
3374         before opening an inspector.
3375
3376 2010-09-14  Enrico Ros  <eros@codeaurora.org>
3377
3378         Reviewed by Andreas Kling.
3379
3380         [Qt] Respect title attribute on option elements
3381         https://bugs.webkit.org/show_bug.cgi?id=45084
3382
3383         Set the tooltip in the combo box model, so it's reflected in the view.
3384
3385         * WebCoreSupport/QtFallbackWebPopup.cpp:
3386         (WebCore::QtFallbackWebPopup::populate):
3387
3388 2010-09-13  Daniel Bates  <dbates@rim.com>
3389
3390         https://bugs.webkit.org/show_bug.cgi?id=45732
3391
3392         Fix the Qt build. I missed this when reviewing the patch
3393         for Bug #45732.
3394
3395         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3396         (DumpRenderTreeSupportQt::suspendActiveDOMObjects): Change enum value ActiveDOMObject::JavaScriptPaused to
3397         ActiveDOMObject::JavaScriptDebuggerPaused
3398
3399 2010-09-13  Eric Carlson  <eric.carlson@apple.com>
3400
3401         Reviewed by Daniel Bates.
3402
3403         [Qt] DumpRenderTreeSupportQt::suspendActiveDOMObjects needs a new parameter
3404         https://bugs.webkit.org/show_bug.cgi?id=45732
3405
3406         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3407         (DumpRenderTreeSupportQt::suspendActiveDOMObjects): Pass ActiveDOMObject::JavaScriptPaused
3408         to suspendActiveDOMObjects.
3409
3410 2010-09-13  Enrica Casucci  <enrica@apple.com>
3411
3412         Reviewed by Sam Weinig.
3413
3414         Paste should be implemented in WebCore like Copy and Cut for Mac also.
3415         https://bugs.webkit.org/show_bug.cgi?id=45494
3416         <rdar://problem/7660537>
3417
3418         On the Mac platform, the implementation of the paste operation is all done
3419         at the WebKit level. In order to support it on WebKit2 it is necessary to
3420         refactor the code and move this functionality at the level of WebCore like
3421         we already have on Windows.
3422         The original code relies on some in AppKit functions that call back into
3423         WebKit causing problems in WebKit2. All this functionality has been moved
3424         at the level of the editor client where it can be dealt with appropriately.
3425
3426         * WebCoreSupport/FrameLoaderClientQt.cpp:
3427         (WebCore::FrameLoaderClientQt::canShowMIMETypeAsHTML): Added stub.
3428         * WebCoreSupport/FrameLoaderClientQt.h:
3429
3430 2010-08-27  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>
3431
3432         Reviewed by Antti Koivisto.
3433
3434         Add a Qt API for the viewport meta tag support based on the
3435         following draft spec:
3436
3437         http://people.opera.com/rune/TR/ED-css-viewport-20100806/
3438
3439         Add common handling of viewport meta tag based on new Opera spec
3440         https://bugs.webkit.org/show_bug.cgi?id=44201
3441
3442         * Api/qwebframe_p.h:
3443         (QWebFramePrivate::QWebFramePrivate):
3444         * Api/qwebpage.cpp:
3445         (QWebPage::ViewportConfiguration::ViewportConfiguration):
3446         (QWebPage::ViewportConfiguration::~ViewportConfiguration):
3447         (QWebPage::ViewportConfiguration::operator=):
3448         (QWebPage::viewportConfigurationForSize):
3449         (QWebPage::setPreferredContentsSize):
3450         * Api/qwebpage.h:
3451         * Api/qwebpage_p.h:
3452         (QtViewportConfigurationPrivate::QtViewportConfigurationPrivate):
3453         * WebCoreSupport/ChromeClientQt.cpp:
3454         (WebCore::ChromeClientQt::didReceiveViewportArguments):
3455         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3456         (DumpRenderTreeSupportQt::viewportAsText):
3457         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3458         * WebCoreSupport/FrameLoaderClientQt.cpp:
3459         (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
3460         (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
3461
3462 2010-09-12  Martin Smith  <martin.smith@nokia.com>
3463
3464         Reviewed by Simon Hausmann.
3465
3466         doc: Changed the title so lists of contents sort better.
3467
3468         * docs/qtwebkit.qdoc:
3469
3470 2010-09-12  David Boddie  <david.boddie@nokia.com>
3471
3472         Reviewed by Simon Hausmann.
3473
3474         Doc: More work on the QML documentation.
3475
3476         * declarative/qdeclarativewebview.cpp:
3477
3478 2010-09-12  Martin Jones  <martin.jones@nokia.com>
3479
3480         Reviewed by Simon Hausmann.
3481
3482         [Qml] Ensure WebView gets focus when an editable node is clicked on.
3483
3484         Task-number: QTBUG-13342
3485
3486         * declarative/qdeclarativewebview.cpp:
3487         (GraphicsWebView::mousePressEvent):
3488
3489 2010-09-12  David Boddie  <david.boddie@nokia.com>
3490
3491         Reviewed by Simon Hausmann.
3492
3493         Doc: qdoc fixes.
3494
3495         * declarative/qdeclarativewebview.cpp:
3496
3497 2010-09-12  Oswald Buddenhagen  <oswald.buddenhagen@nokia.com>
3498
3499         Reviewed by Simon Hausmann.
3500
3501         [Qt] let WebKit inject itself into the qt configuration
3502
3503         Task-number: QTBUG-12379
3504
3505         * qt_webkit_version.pri: Use the faster + instead of *
3506         operator to add webkit to the config.
3507
3508 2010-09-12  Martin Smith  <martin.smith@nokia.com>
3509
3510         Reviewed by Simon Hausmann.
3511
3512         [Qt] Fix group of declarative web view in QML docs.
3513
3514         * declarative/qdeclarativewebview.cpp:
3515
3516 2010-09-12  Simon Hausmann  <simon.hausmann@nokia.com>
3517
3518         Reviewed by Andreas Kling.
3519
3520         [Qt] Partial implementation of Qt bridge using V8 and QtScript.
3521
3522         * Api/qwebelement.cpp:
3523         (QWebElement::evaluateJavaScript): Stub it out for now,
3524         to compile, until we have a conversion path between v8::Object
3525         and QScriptValue.
3526         * Api/qwebframe.cpp:
3527         (QWebFrame::addToJavaScriptWindowObject): Implemented using
3528         few lines of QtScript code.
3529         (QWebFrame::evaluateJavaScript): Ditto.
3530
3531 2010-09-12  Simon Hausmann  <simon.hausmann@nokia.com>
3532
3533         Reviewed by Andreas Kling.
3534
3535         Fix the build with V8.
3536
3537         This is a temporary kludge until the scriptworld stuff is properly
3538         ported, as part of the upcoming DRT work.
3539
3540         * Api/qwebscriptworld.cpp:
3541         (QWebScriptWorld::QWebScriptWorld):
3542
3543 2010-09-11  Andreas Kling  <andreas.kling@nokia.com>
3544
3545         Reviewed by Simon Hausmann.
3546
3547         [Qt] V8 port for Qt platform: Qt WebCoreSupport changes
3548         https://bugs.webkit.org/show_bug.cgi?id=45149
3549
3550         Original patch by Vlad Burlik <volodimir.burlik@nokia.com>
3551
3552         Implemented the V8 specifics needed in DumpRenderTreeSupportQt and
3553         FrameLoaderClientQt.
3554
3555         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3556         (DumpRenderTreeSupportQt::javaScriptObjectsCount):
3557         (DumpRenderTreeSupportQt::garbageCollectorCollect):
3558         (DumpRenderTreeSupportQt::garbageCollectorCollectOnAlternateThread):
3559         (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
3560         * WebCoreSupport/FrameLoaderClientQt.cpp:
3561         (WebCore::FrameLoaderClientQt::didCreateScriptContextForFrame):
3562         (WebCore::FrameLoaderClientQt::didDestroyScriptContextForFrame):
3563         (WebCore::FrameLoaderClientQt::didCreateIsolatedScriptContext):
3564         (WebCore::FrameLoaderClientQt::createDocumentLoader):
3565         * WebCoreSupport/FrameLoaderClientQt.h:
3566
3567 2010-09-11  Vlad Burlik  <volodimir.burlik@nokia.com>
3568
3569         Reviewed by Andreas Kling.
3570
3571         [Qt] V8 port for QT platform: QT API implementation changes
3572         https://bugs.webkit.org/show_bug.cgi?id=45148
3573
3574         V8 Implementation of QWebFrame::addToJavaScriptWindowObject()
3575         and QWebFrame::evaluateJavaScript()
3576
3577         * Api/qwebelement.cpp:
3578         (setupScriptContext): JSC and V8 variations
3579         (QWebElement::evaluateJavaScript):
3580         * Api/qwebelement.h:
3581         * Api/qwebframe.cpp: QObject injection to V8 world
3582         (QWebFrame::addToJavaScriptWindowObject):
3583         (QWebFrame::evaluateJavaScript):
3584         * Api/qwebpage.cpp: Use ScriptController type definitions instead of direct references to JSC or V8
3585         (QWebPagePrivate::QWebPagePrivate):
3586
3587 2010-09-10  yi shen  <yi.4.shen@nokia.com>
3588
3589         Reviewed by Antonio Gomes.
3590