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