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