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