a4844d9c6e08003259d96bb595604d23a6406421
[WebKit-https.git] / Source / WebKit / qt / ChangeLog
1 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
2
3         Final part of "sync" to "flush" renaming
4         https://bugs.webkit.org/show_bug.cgi?id=98430
5
6         Reviewed by Tim Horton.
7
8         Change method names on GraphicsLayer and GraphicsLayerClient that
9         refer to "sync" to use the term "flush" instead, to be consistent
10         with the rest of the code.
11
12         * WebCoreSupport/PageClientQt.cpp:
13         (WebCore::TextureMapperLayerClientQt::syncRootLayer):
14
15 2012-10-04  Simon Fraser  <simon.fraser@apple.com>
16
17         Standardize on "flush" terminology for compositing layer flushing/syncing
18         https://bugs.webkit.org/show_bug.cgi?id=98321
19
20         Reviewed by Simon Fraser.
21
22         Rename compositing-related methods that refer to "syncing" to instead
23         refer to "flushing".
24
25         * WebCoreSupport/ChromeClientQt.cpp:
26         (WebCore::ChromeClientQt::scheduleCompositingLayerFlush):
27         * WebCoreSupport/ChromeClientQt.h:
28         (ChromeClientQt):
29         * WebCoreSupport/PageClientQt.cpp:
30         (WebCore::PageClientQGraphicsWidget::syncLayers):
31
32 2012-10-03  Balazs Kelemen  <kbalazs@webkit.org>
33
34         [Qt] Enable mock scrollbars
35         https://bugs.webkit.org/show_bug.cgi?id=98011
36
37         Reviewed by Csaba Osztrogonác.
38
39         Added helper to enable mock scrollbars.
40
41         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
42         (DumpRenderTreeSupportQt::enableMockScrollbars):
43         * WebCoreSupport/DumpRenderTreeSupportQt.h:
44
45 2012-10-01  Brady Eidson  <beidson@apple.com>
46
47         Remove the Safari 2 -> Safari 3 icon database import code.
48         https://bugs.webkit.org/show_bug.cgi?id=98113
49
50         Reviewed by Maciej Stachowiak.
51
52         Nuke the performImport() IconDatabaseClient method.
53
54         * WebCoreSupport/IconDatabaseClientQt.cpp:
55         * WebCoreSupport/IconDatabaseClientQt.h:
56         (IconDatabaseClientQt):
57
58 2012-09-28  Mikhail Pozdnyakov  <mikhail.pozdnyakov@intel.com>
59
60         Code inside FrameLoaderClient::canShowMIMEType() implementations can be shared among different WK ports
61         https://bugs.webkit.org/show_bug.cgi?id=97547
62
63         Reviewed by Adam Barth.
64
65         Newly added WebCore::MIMETypeRegistry::canShowMIMEType() function is used
66         inside WebCore::FrameLoaderClientQt::canShowMIMEType().
67
68         * WebCoreSupport/FrameLoaderClientQt.cpp:
69         (WebCore::FrameLoaderClientQt::canShowMIMEType):
70
71 2012-09-27  Allan Sandfeld Jensen  <allan.jensen@digia.com>
72
73         Unify event handling of middle mouse button.
74         https://bugs.webkit.org/show_bug.cgi?id=97690
75
76         Reviewed by Tony Chang.
77
78         Remove port specific handling of middle mouse button press.
79
80         * Api/qwebpage.cpp:
81         (QWebPagePrivate::mouseReleaseEvent):
82         * Api/qwebpage_p.h:
83         (QWebPagePrivate):
84
85 2012-09-26  Simon Hausmann  <simon.hausmann@digia.com>
86
87         [Qt] Remove Qt Quick 1 support
88
89         Reviewed by Kenneth Rohde Christiansen.
90
91         It is being moved to the Qt5 QtQuick1 module.
92
93         A circular dependency exists otherwise in Qt, where QtWebKit would depend on QtQuick1,
94         which in turn depends on QtTools (for designer plugin), which in turn depends on QtWebKit
95         (for assistant help html rendering).
96
97         * declarative/plugin.cpp:
98         (WebKitQmlPlugin::registerTypes):
99         * declarative/public.pri:
100         * declarative/qdeclarativewebview.cpp: Removed.
101         * declarative/qdeclarativewebview_p.h: Removed.
102         * tests/qdeclarativewebview/qdeclarativewebview.pro: Removed.
103         * tests/qdeclarativewebview/resources/basic.html: Removed.
104         * tests/qdeclarativewebview/resources/basic.png: Removed.
105         * tests/qdeclarativewebview/resources/basic.qml: Removed.
106         * tests/qdeclarativewebview/resources/elements.html: Removed.
107         * tests/qdeclarativewebview/resources/elements.qml: Removed.
108         * tests/qdeclarativewebview/resources/forward.html: Removed.
109         * tests/qdeclarativewebview/resources/forward.png: Removed.
110         * tests/qdeclarativewebview/resources/javaScript.html: Removed.
111         * tests/qdeclarativewebview/resources/javaScript.qml: Removed.
112         * tests/qdeclarativewebview/resources/loadError.qml: Removed.
113         * tests/qdeclarativewebview/resources/newwindows.html: Removed.
114         * tests/qdeclarativewebview/resources/newwindows.qml: Removed.
115         * tests/qdeclarativewebview/resources/propertychanges.qml: Removed.
116         * tests/qdeclarativewebview/resources/sample.html: Removed.
117         * tests/qdeclarativewebview/resources/sethtml.qml: Removed.
118         * tests/qdeclarativewebview/resources/webviewbackgroundcolor.qml: Removed.
119         * tests/qdeclarativewebview/resources/webviewtest.qml: Removed.
120         * tests/qdeclarativewebview/resources/webviewtestdefault.qml: Removed.
121         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: Removed.
122         * tests/qdeclarativewebview/tst_qdeclarativewebview.qrc: Removed.
123
124 2012-09-25  Beth Dakin  <bdakin@apple.com>
125
126         https://bugs.webkit.org/show_bug.cgi?id=95397
127         Need to merge didFirstVisuallyNonEmptyLayout and 
128         didNewFirstVisuallyNonEmptyLayout
129         -and corresponding-
130         <rdar://problem/10791680>
131
132         Reviewed by Sam Weinig.
133
134         Remove dispatchDidFirstLayout, 
135         dispatchDidFirstVisuallyNonEmptyLayout, and 
136         dispatchDidNewFirstVisuallyNonEmptyLayout. Their functionality 
137         is now replaced by dispatchDidLayout(LayoutMilestoneOptions)
138         * WebCoreSupport/FrameLoaderClientQt.cpp:
139         (WebCore::FrameLoaderClientQt::dispatchDidLayout):
140         * WebCoreSupport/FrameLoaderClientQt.h:
141         (FrameLoaderClientQt):
142
143         It is now necessary to opt into getting any of the 
144         "layout milestone" notifications.
145         * Api/qwebpage.cpp:
146         (QWebPagePrivate::QWebPagePrivate):
147
148 2012-09-25  Simon Hausmann  <simon.hausmann@digia.com>
149
150         [Qt] Fix failing assertion when calling QWebSettings::setIconDatabasePath multiple times
151
152         Reviewed by Jocelyn Turcotte.
153
154         This happens in various auto-tests. We can implement this by closing the database before
155         opening it with the new path.
156
157         * Api/qwebsettings.cpp:
158         (QWebSettings::setIconDatabasePath):
159
160 2012-09-24  Benjamin Poulain  <bpoulain@apple.com>
161
162         Fix Geolocation error reporting in the test support
163         https://bugs.webkit.org/show_bug.cgi?id=97386
164
165         Reviewed by Sam Weinig.
166
167         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
168         (DumpRenderTreeSupportQt::setMockGeolocationPositionUnavailableError):
169         * WebCoreSupport/DumpRenderTreeSupportQt.h:
170
171 2012-09-20  Csaba Osztrogonác  <ossy@webkit.org>
172
173         [Qt] Enable CSS regions by default
174         https://bugs.webkit.org/show_bug.cgi?id=97196
175
176         Reviewed by Dirk Schulze.
177
178         * Api/qwebsettings.cpp:
179         (QWebSettings::QWebSettings):
180
181 2012-09-17  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
182
183         [Qt] Use UndoStep::editingAction() to set the text of undo/redo actions
184         https://bugs.webkit.org/show_bug.cgi?id=96921
185
186         Reviewed by Ryosuke Niwa.
187
188         Set the text of QUndoCommands we create for undo/redo actions based on the
189         editing action from UndoStep.
190
191         This change is visible using QtTestBrowser, and looking at the Edit menu after
192         doing HTML editing changes. I've used http://simple-rte.rniwa.com for testing.
193
194         * WebCoreSupport/UndoStepQt.cpp:
195         (undoNameForEditAction): This function returns a localized name of the action.
196         (UndoStepQt::UndoStepQt): Set the text based on UndoStep::editingAction.
197         * tests/qwebpage/tst_qwebpage.cpp:
198         (tst_QWebPage):
199         (tst_QWebPage::undoActionHaveCustomText): Create a new test to verify that the text
200         describing the undo action after inserting a text and indenting the text is different.
201
202 2012-09-17  Leo Franchi  <lfranchi@kde.org>
203
204         [Qt] Inspector WebSocket backend protocol update
205         https://bugs.webkit.org/show_bug.cgi?id=77031
206
207         Also adds support for multi-frame messages and non-text messages.
208         Thanks to Jocelyn Turcotte for most of the WebSocket update code!
209
210         Reviewed by Simon Hausmann.
211
212         * WebCoreSupport/InspectorServerQt.cpp:
213         (WebCore):
214         (WebCore::generateWebSocketChallengeResponse):
215         (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
216         (WebCore::InspectorServerRequestHandlerQt::webSocketSend):
217         (WebCore::applyMask):
218         (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
219         * WebCoreSupport/InspectorServerQt.h:
220         (InspectorServerRequestHandlerQt):
221
222 2012-09-15  Pierre Rossi  <pierre.rossi@gmail.com>
223
224         [Qt] QDoc fixes for Qt 5 documentation
225         https://bugs.webkit.org/show_bug.cgi?id=96796
226
227         Reviewed by Simon Hausmann.
228
229         Produce fewer warnings and a better documentation.
230         Having two QML modules providing a WebView component is a bit too much for poor old qdoc to
231         cope with (or would require a lot of painful disambiguation by hand). Since the plan is to have
232         QDeclarativeWebView living in the qtquick1 module, we can already take it out of the 
233         documentation generation for now.
234
235         * declarative/qdeclarativewebview.cpp: s/qmlclass/qmltype/ out of principle
236         * docs/qtwebkit.qdocconf: Remove the \i alias that caused a warning. Use *.h as headers suffix, not sources.
237         Also remove QDeclarativeWebView from the documentation.
238
239 2012-09-13  Lauro Neto  <lauro.neto@openbossa.org>
240
241         [Qt][WK2] fast/forms/access-key-for-all-elements.html fails
242         https://bugs.webkit.org/show_bug.cgi?id=73917
243
244         Reviewed by Simon Hausmann.
245
246         Access-key tests were failing due to hardcoded Mac OS X in the
247         Qt WK2 user agent string. This commit moves the WK1 implementation
248         to a shared one to be used by both versions.
249
250         Change QWebPage to use the shared user agent implementation.
251
252         * Api/qwebpage.cpp:
253         (QWebPage::userAgentForUrl):
254
255 2012-09-13  Oswald Buddenhagen  <oswald.buddenhagen@nokia.com>
256
257         [Qt] Fix qdoc executable preparation
258
259         Reviewed by Tor Arne Vestbø.
260
261         * docs/docs.pri:
262
263 2012-09-12  Sheriff Bot  <webkit.review.bot@gmail.com>
264
265         Unreviewed, rolling out r127876.
266         http://trac.webkit.org/changeset/127876
267         https://bugs.webkit.org/show_bug.cgi?id=96600
268
269         mouse click doesn't work for spin button if spin button in
270         iframe (Requested by yosin on #webkit).
271
272         * Api/qwebframe.cpp:
273         (QWebFrame::hitTestContent):
274         * Api/qwebpage.cpp:
275         (QWebPagePrivate::handleSoftwareInputPanel):
276         (QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch):
277         (QWebPage::updatePositionDependentActions):
278         * WebCoreSupport/FrameLoaderClientQt.cpp:
279         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
280
281 2012-09-12  Roland Takacs  <rtakacs@inf.u-szeged.hu>
282
283         [Qt] Segmentation fault when closing QtTestBrowser
284         https://bugs.webkit.org/show_bug.cgi?id=95003
285
286         Reviewed by Simon Hausmann.
287
288         Defined a new QObject* variable that points to the QGLWidget that was created
289         in 'createPlatformGraphicsContext3DFromWidget'.
290         It is neccessary for deallocating it.
291
292         * WebCoreSupport/PageClientQt.cpp:
293         (createPlatformGraphicsContext3DFromWidget):
294         (WebCore::PageClientQWidget::createPlatformGraphicsContext3D):
295         (WebCore::PageClientQGraphicsWidget::createPlatformGraphicsContext3D):
296         * WebCoreSupport/PageClientQt.h:
297         (PageClientQWidget):
298         (PageClientQGraphicsWidget):
299
300 2012-09-12  Andras Becsi  <andras.becsi@nokia.com>
301
302         [Qt] Add module identifier directive to the qmldir files
303         https://bugs.webkit.org/show_bug.cgi?id=96406
304
305         Reviewed by Simon Hausmann.
306
307         Qt5 QML modules need to be identified. Type registrations are only permitted
308         into the namespace identified in the qmldir file's module identifier directive.
309         Additionally this also facilitates the protection against external registrations.
310         This patch suppresses a warning when importing the QtWebKit module.
311
312         * declarative/experimental/qmldir:
313         * declarative/qmldir:
314
315 2012-09-11  Marcelo Lira  <marcelo.lira@openbossa.org>
316
317         Restore original value of mock scrollbars enabled in InternalSettings
318         https://bugs.webkit.org/show_bug.cgi?id=87680
319
320         Reviewed by Adam Barth.
321
322         Added backup support for mock scrollbars state in
323         InternalSettings::Backup, and removed support for these
324         from Qt's DumpRenderTree.
325
326         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
327         * WebCoreSupport/DumpRenderTreeSupportQt.h:
328
329 2012-09-11  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
330
331         [Qt] Add a configure step to the Qt build system
332
333         This allows building the Qt port using just 'qmake WebKit.pro'. Using
334         the build-webkit script is still supported, and will add slightly more
335         logic to the build, such as detecting the need for clean or incremental
336         builds.
337
338         Internally, the build system now uses a new variable, WEBKIT_CONFIG, for
339         all things related to configuring the build, such as use/have/enable flags,
340         and these are translated to defines in default_post. Project files should
341         no longer check contains(DEFINES,...) to detect features, but use the new
342         enable?(), use?(), and have?() functions. The no_webkit1 and no_webkit2
343         options have been translated into WEBKIT_CONFIG options as well, and can
344         be checked using build?().
345
346         Reviewed by Simon Hausmann.
347
348         * declarative/declarative.pro:
349         * declarative/public.pri:
350         * tests/qgraphicswebview/qgraphicswebview.pro:
351
352 2012-09-11  Andras Becsi  <andras.becsi@nokia.com>
353
354         [Qt][WK2] Fix the build with recent Qt5
355         https://bugs.webkit.org/show_bug.cgi?id=96283
356
357         Reviewed by Simon Hausmann.
358
359         We should not use deprecated Qt API because doing that results
360         in build failure since all the deprecated API was disabled
361         in qtbase (https://codereview.qt-project.org/#change,24890).
362
363         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
364         (tst_QGraphicsWebView::widgetsRenderingThroughCache):
365         (tst_QGraphicsWebView::setPalette):
366         (tst_QGraphicsWebView::compareCanvasToImage):
367         * tests/qobjectbridge/tst_qobjectbridge.cpp:
368         (tst_QObjectBridge::ownership):
369         * tests/qwebframe/tst_qwebframe.cpp:
370         (tst_QWebFrame::popupFocus):
371         (tst_QWebFrame::inputFieldFocus):
372         (tst_QWebFrame::evaluateWillCauseRepaint):
373         * tests/qwebpage/tst_qwebpage.cpp:
374         (Navigation):
375         (PluginCounterPage):
376         * tests/qwebview/tst_qwebview.cpp:
377         (tst_QWebView::reusePage):
378         (tst_QWebView::focusInputTypes):
379         (tst_QWebView::setPalette):
380         (tst_QWebView::renderingAfterMaxAndBack):
381
382 2012-09-09  Emil A Eklund  <eae@chromium.org>
383
384         Rename Node::getRect/getPixelSnappedRect and remove ContainerNode::getRect
385         https://bugs.webkit.org/show_bug.cgi?id=81413
386
387         Reviewed by David Hyatt.
388
389         Update qwebelement and qwebpage to call pixelSnappedBoundingBox.
390
391         * Api/qwebelement.cpp:
392         (QWebElement::geometry):
393         (QWebElement::render):
394         * Api/qwebpage.cpp:
395         (QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch):
396
397 2012-09-07  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
398
399         Simplify hitTestResultAtPoint and nodesFromRect APIs
400         https://bugs.webkit.org/show_bug.cgi?id=95720
401
402         Reviewed by Antonio Gomes.
403
404         Update calls to new API.
405
406         * Api/qwebframe.cpp:
407         (QWebFrame::hitTestContent):
408         * Api/qwebpage.cpp:
409         (QWebPagePrivate::handleSoftwareInputPanel):
410         (QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch):
411         (QWebPage::updatePositionDependentActions):
412         * WebCoreSupport/FrameLoaderClientQt.cpp:
413         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
414
415 2012-09-07  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
416
417         X11 Global Selection
418         https://bugs.webkit.org/show_bug.cgi?id=88238
419
420         Reviewed by Tony Chang.
421
422         Use new editor command for pasting global selection, and update it using
423         the respondToChangedSelection callback.
424
425         * Api/qwebpage.cpp:
426         (QWebPagePrivate::handleClipboard):
427         * WebCoreSupport/EditorClientQt.cpp:
428         (WebCore::EditorClientQt::respondToChangedSelection):
429         (WebCore::EditorClientQt::supportsGlobalSelection):
430         * WebCoreSupport/EditorClientQt.h:
431         (EditorClientQt):
432
433 2012-09-05  Sam Weinig  <sam@webkit.org>
434
435         Part 2 of removing PlatformString.h, remove PlatformString.h
436         https://bugs.webkit.org/show_bug.cgi?id=95931
437
438         Reviewed by Adam Barth.
439
440         Remove PlatformString.h
441
442         * Api/qwebdatabase_p.h:
443         * Api/qwebframe_p.h:
444         * Api/qwebhistory.cpp:
445         * Api/qwebhistoryinterface.cpp:
446         * Api/qwebpage_p.h:
447         * Api/qwebsettings.cpp:
448         * WebCoreSupport/ChromeClientQt.h:
449         * WebCoreSupport/InspectorClientQt.cpp:
450
451 2012-09-05  Kaustubh Atrawalkar  <kaustubh@motorola.com>
452
453         [DRT] LTC:: Move printing related APIs from LayoutTestController to Internals
454         https://bugs.webkit.org/show_bug.cgi?id=92735
455
456         Reviewed by Hajime Morita.
457
458         Move numberOfPages, pageProperty & pageSizeAndMarginsInPixels in Internals and remove duplicated code from DumprenderTree & WebkitTestRunner.
459
460         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
461         (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
462         * WebCoreSupport/DumpRenderTreeSupportQt.h:
463
464 2012-09-04  Jon Lee  <jonlee@apple.com>
465
466         [Qt] REGRESSION(r127321): It made 3 notification test timeout
467         https://bugs.webkit.org/show_bug.cgi?id=95638
468
469         Reviewed by Csaba Osztrogonác.
470
471         Dispatch show event instead of display after r127321.
472
473         * WebCoreSupport/NotificationPresenterClientQt.cpp:
474         (WebCore::NotificationPresenterClientQt::sendDisplayEvent):
475
476 2012-08-31  Simon Hausmann  <simon.hausmann@nokia.com>
477
478         [Qt] Port convertValueToQVariant to use the JSC C API
479         https://bugs.webkit.org/show_bug.cgi?id=94695
480
481         Reviewed by Kenneth Rohde Christiansen.
482
483         Minor adaptations are needed here to accomodate the changed signature of
484         convertValueToQVariant.
485
486         * Api/qwebelement.cpp:
487         (QWebElement::evaluateJavaScript):
488         (convertJSValueToWebElementVariant):
489         * Api/qwebframe.cpp:
490         (QWebFrame::evaluateJavaScript):
491         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
492         (convertJSValueToNodeVariant):
493
494 2012-08-30  Geoffrey Garen  <ggaren@apple.com>
495
496         Use one object instead of two for closures, eliminating ScopeChainNode
497         https://bugs.webkit.org/show_bug.cgi?id=95501
498
499         Reviewed by Filip Pizlo.
500
501         Mechanical change to update for JSC interface change.
502
503         * Api/qwebelement.cpp:
504         (QWebElement::evaluateJavaScript):
505
506 2012-08-30  Benjamin Poulain  <bpoulain@apple.com>
507
508         Replace JSC::UString by WTF::String
509         https://bugs.webkit.org/show_bug.cgi?id=95271
510
511         Reviewed by Geoffrey Garen.
512
513         Replace UString by String.
514
515         * Api/qwebelement.cpp:
516         (QWebElement::evaluateJavaScript):
517
518 2012-08-29  Simon Hausmann  <simon.hausmann@nokia.com>
519
520         [Qt] Fix doc generation with make docs
521         https://bugs.webkit.org/show_bug.cgi?id=95340
522
523         Reviewed by Kenneth Rohde Christiansen.
524
525         Fix doc target, similar to what the other Qt 5 modules are using and comment out the indexes
526         line, because cross-referencing doesn't work right now and the use of the QTDIR environment
527         is wrong, too.
528
529         * docs/docs.pri:
530         * docs/qtwebkit.qdocconf:
531
532 2012-08-22  Simon Hausmann  <simon.hausmann@nokia.com>
533
534         [Qt] REGRESSION(r125428): fast/profiler/nested-start-and-stop-profiler.html fails
535         https://bugs.webkit.org/show_bug.cgi?id=93897
536
537         Reviewed by Kenneth Rohde Christiansen.
538
539         Fixed some test expectations.
540
541         * tests/qobjectbridge/tst_qobjectbridge.cpp:
542         (tst_QObjectBridge::objectDeleted): Since runtime methods are real function objects again, we
543         can go back to testing Function.prototype.call, as it was done before r125428.
544         (tst_QObjectBridge::introspectQtMethods_data): Removed tests for the length property.
545         (tst_QObjectBridge::introspectQtMethods): Changed test expectation of the properties of
546         run-time methods back to being non-configurable, as before r125428.
547
548 2012-08-28  Sheriff Bot  <webkit.review.bot@gmail.com>
549
550         Unreviewed, rolling out r126914.
551         http://trac.webkit.org/changeset/126914
552         https://bugs.webkit.org/show_bug.cgi?id=95239
553
554         it breaks everything and fixes nothing (Requested by pizlo on
555         #webkit).
556
557         * Api/qwebpage.cpp:
558         (extractContentTypeFromPluginVector):
559         * Api/qwebplugindatabase.cpp:
560         (QWebPluginInfo::mimeTypes):
561         * WebCoreSupport/PlatformStrategiesQt.cpp:
562         (PlatformStrategiesQt::getPluginInfo):
563
564 2012-08-28  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
565
566         Rename first/second to key/value in HashMap iterators
567         https://bugs.webkit.org/show_bug.cgi?id=82784
568
569         Reviewed by Eric Seidel.
570
571         * Api/qwebpage.cpp:
572         (extractContentTypeFromPluginVector):
573         * Api/qwebplugindatabase.cpp:
574         (QWebPluginInfo::mimeTypes):
575         * WebCoreSupport/PlatformStrategiesQt.cpp:
576         (PlatformStrategiesQt::getPluginInfo):
577
578 2012-08-27  Sheriff Bot  <webkit.review.bot@gmail.com>
579
580         Unreviewed, rolling out r126836.
581         http://trac.webkit.org/changeset/126836
582         https://bugs.webkit.org/show_bug.cgi?id=95163
583
584         Broke all Apple ports, EFL, and Qt. (Requested by tkent on
585         #webkit).
586
587         * Api/qwebpage.cpp:
588         (extractContentTypeFromPluginVector):
589         * Api/qwebplugindatabase.cpp:
590         (QWebPluginInfo::mimeTypes):
591         * WebCoreSupport/PlatformStrategiesQt.cpp:
592         (PlatformStrategiesQt::getPluginInfo):
593
594 2012-08-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
595
596         Rename first/second to key/value in HashMap iterators
597         https://bugs.webkit.org/show_bug.cgi?id=82784
598
599         Reviewed by Eric Seidel.
600
601         * Api/qwebpage.cpp:
602         (extractContentTypeFromPluginVector):
603         * Api/qwebplugindatabase.cpp:
604         (QWebPluginInfo::mimeTypes):
605         * WebCoreSupport/PlatformStrategiesQt.cpp:
606         (PlatformStrategiesQt::getPluginInfo):
607
608 2012-08-22  Sheriff Bot  <webkit.review.bot@gmail.com>
609
610         Unreviewed, rolling out r126287.
611         http://trac.webkit.org/changeset/126287
612         https://bugs.webkit.org/show_bug.cgi?id=94708
613
614         It made WK1 layout testing 3.7x slower (>1hours) (Requested by
615         ossy on #webkit).
616
617         * tests/qobjectbridge/tst_qobjectbridge.cpp:
618         (tst_QObjectBridge::objectDeleted):
619         (tst_QObjectBridge::introspectQtMethods_data):
620         (tst_QObjectBridge::introspectQtMethods):
621
622 2012-08-22  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
623
624         [Qt] Optionally support smooth-scrolling on all platforms
625         https://bugs.webkit.org/show_bug.cgi?id=74926
626
627         Reviewed by Simon Hausmann.
628
629         Expose the enable scroll animator setting.
630
631         * Api/qwebsettings.cpp:
632         (QWebSettingsPrivate::apply):
633         (QWebSettings::QWebSettings):
634         * Api/qwebsettings.h:
635
636 2012-08-22  Simon Hausmann  <simon.hausmann@nokia.com>
637
638         [Qt] REGRESSION(r125428): fast/profiler/nested-start-and-stop-profiler.html fails
639         https://bugs.webkit.org/show_bug.cgi?id=93897
640
641         Reviewed by Kenneth Rohde Christiansen.
642
643         Fixed some test expectations.
644
645         * tests/qobjectbridge/tst_qobjectbridge.cpp:
646         (tst_QObjectBridge::objectDeleted): Since runtime methods are real function objects again, we
647         can go back to testing Function.prototype.call, as it was done before r125428.
648         (tst_QObjectBridge::introspectQtMethods_data): Removed tests for the length property.
649         (tst_QObjectBridge::introspectQtMethods): Changed test expectation of the properties of
650         run-time methods back to being non-configurable, as before r125428.
651
652 2012-08-21  Sheriff Bot  <webkit.review.bot@gmail.com>
653
654         Unreviewed, rolling out r126146.
655         http://trac.webkit.org/changeset/126146
656         https://bugs.webkit.org/show_bug.cgi?id=94606
657
658         It made all tests assert (Requested by Ossy on #webkit).
659
660         * tests/qobjectbridge/tst_qobjectbridge.cpp:
661         (tst_QObjectBridge::objectDeleted):
662         (tst_QObjectBridge::introspectQtMethods_data):
663         (tst_QObjectBridge::introspectQtMethods):
664
665 2012-08-17  Simon Hausmann  <simon.hausmann@nokia.com>
666
667         [Qt] REGRESSION(r125428): fast/profiler/nested-start-and-stop-profiler.html fails
668         https://bugs.webkit.org/show_bug.cgi?id=93897
669
670         Reviewed by Kenneth Rohde Christiansen.
671
672         Fixed some test expectations.
673
674         * tests/qobjectbridge/tst_qobjectbridge.cpp:
675         (tst_QObjectBridge::objectDeleted): Since runtime methods are real function objects again, we
676         can go back to testing Function.prototype.call, as it was done before r125428.
677         (tst_QObjectBridge::introspectQtMethods_data): Removed tests for the length property.
678         (tst_QObjectBridge::introspectQtMethods): Changed test expectation of the properties of
679         run-time methods back to being non-configurable, as before r125428.
680
681 2012-08-15  Ryosuke Niwa  <rniwa@webkit.org>
682
683         Update manual tests and comments to refer to TestRunner instead of LayoutTestController
684         https://bugs.webkit.org/show_bug.cgi?id=94168
685
686         Reviewed by Kent Tamura.
687
688         * Api/qwebelement.cpp:
689         (convertJSValueToWebElementVariant):
690         * WebCoreSupport/DumpRenderTreeSupportQt.h:
691
692 2012-08-14  Adam Barth  <abarth@webkit.org>
693
694         Delete Frame::domWindow() and Frame::existingDOMWindow()
695         https://bugs.webkit.org/show_bug.cgi?id=93990
696
697         Reviewed by Eric Seidel.
698
699         * WebCoreSupport/FrameLoaderClientQt.cpp:
700         (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
701
702 2012-08-14  Lauro Neto  <lauro.neto@openbossa.org>
703
704         Convert signals/slots to Q_* macros.
705
706         [Qt] Use Q_SLOTS and Q_SIGNALS instead of slots and signals
707         https://bugs.webkit.org/show_bug.cgi?id=93996
708
709         Reviewed by Kenneth Rohde Christiansen.
710
711         Change usage of keyword-conflicting 'signals' and 'slots' for
712         Q_SIGNALS and Q_SLOTS macro.
713
714         * WebCoreSupport/FrameLoaderClientQt.h:
715         (FrameLoaderClientQt):
716         * WebCoreSupport/FullScreenVideoQt.h:
717         (FullScreenVideoQt):
718         * WebCoreSupport/FullScreenVideoWidget.h:
719         (FullScreenVideoWidget):
720         * WebCoreSupport/IconDatabaseClientQt.h:
721         (IconDatabaseClientQt):
722         * WebCoreSupport/InspectorClientQt.cpp:
723         (InspectorClientWebPage):
724         * WebCoreSupport/InspectorServerQt.h:
725         (InspectorServerQt):
726         (InspectorServerRequestHandlerQt):
727         * WebCoreSupport/PopupMenuQt.h:
728         (PopupMenuQt):
729         * WebCoreSupport/QtFallbackWebPopup.h:
730         (QtFallbackWebPopup):
731         * docs/webkitsnippets/qtwebkit_bridge_snippets.cpp:
732         (wrapInFunction):
733         * docs/webkitsnippets/webpage/main.cpp:
734         (Thumbnailer):
735         * examples/platformplugin/WebPlugin.h:
736         (Popup):
737         (WebPopup):
738         * tests/benchmarks/webgl/tst_webgl.cpp:
739         (tst_WebGlPerformance):
740         * tests/hybridPixmap/tst_hybridPixmap.cpp:
741         (tst_hybridPixmap):
742         * tests/hybridPixmap/widget.h:
743         (Widget):
744         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
745         (tst_QDeclarativeWebView):
746         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
747         (tst_QGraphicsWebView):
748         (WebPage):
749         (ResizeSpy):
750         * tests/qobjectbridge/tst_qobjectbridge.cpp:
751         (MyWebElementSlotOnlyObject):
752         (tst_QObjectBridge):
753         (TestPluginWidget):
754         * tests/qwebelement/tst_qwebelement.cpp:
755         (tst_QWebElement):
756         * tests/qwebframe/tst_qwebframe.cpp:
757         (tst_QWebFrame):
758         (FakeReply):
759         * tests/qwebhistory/tst_qwebhistory.cpp:
760         * tests/qwebhistoryinterface/tst_qwebhistoryinterface.cpp:
761         (tst_QWebHistoryInterface):
762         * tests/qwebinspector/tst_qwebinspector.cpp:
763         (tst_QWebInspector):
764         * tests/qwebpage/tst_qwebpage.cpp:
765         (tst_QWebPage):
766         (JSTestPage):
767         (RepaintRequestedRenderer):
768         (SpyForLoadSignalsOrder):
769         * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
770         (tst_QWebPluginDatabase):
771         * tests/qwebview/tst_qwebview.cpp:
772         (tst_QWebView):
773         (WebViewCrashTest):
774
775 2012-08-14  Simon Hausmann  <simon.hausmann@nokia.com>
776
777         [Qt] Fix failing tst_QWebPage::findText unit test
778         https://bugs.webkit.org/show_bug.cgi?id=93951
779
780         Reviewed by Kenneth Rohde Christiansen.
781
782         Adjust the expected text, as the HTML editing code improved to avoid unnecessary tags.
783
784         * tests/qwebpage/tst_qwebpage.cpp:
785         (tst_QWebPage::findText):
786
787 2012-08-13  Tom Sepez  <tsepez@chromium.org>
788
789         [chromium] release FrameLoaderClientImpl::m_pluginWidget refptr upon Plugin Document detach.
790         https://bugs.webkit.org/show_bug.cgi?id=93283
791
792         Reviewed by Eric Seidel.
793
794         Change the client redirectDataToPlugin method(s) to expect the possibility of
795         a NULL argument, keeping existing behaviour otherwise.
796
797         * WebCoreSupport/FrameLoaderClientQt.cpp:
798         (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
799
800 2012-08-13  Simon Hausmann  <simon.hausmann@nokia.com>
801
802         [Qt] Port meta method/signal/slot handling in run-time bridge to use JSC C API
803         https://bugs.webkit.org/show_bug.cgi?id=93476
804
805         Reviewed by Kenneth Rohde Christiansen.
806
807         Changed semantics of some test expectations. Similarly to r125032 when generating
808         error exceptions for connect/disconnect, we cannot generate explicit type error
809         exceptions but only generic errors. Another change is that the meta-method wrapper
810         doesn't support the call() through Function.prototype anymore. See WebCore changelog
811         for details.
812
813         * tests/qobjectbridge/tst_qobjectbridge.cpp:
814         (tst_QObjectBridge::connectAndDisconnect):
815         (tst_QObjectBridge::objectDeleted):
816         (tst_QObjectBridge::introspectQtMethods):
817
818 2012-08-13  Kwang Yul Seo  <skyul@company100.net>
819
820         [Qt] Add gprof.prf to build WebKit with gprof enabled
821         https://bugs.webkit.org/show_bug.cgi?id=90283
822
823         Reviewed by Eric Seidel.
824
825         * tests/MIMESniffing/MIMESniffing.pro:
826         Don't build MIMESniffing.cpp because MIMESniffing test links
827         WebKitQt statically when gprof is enabled.
828
829 2012-08-12  Loïc Yhuel  <loic.yhuel@softathome.com>
830
831         [Qt] Make it possible to build without QtTest/QtPrintSupport
832         https://bugs.webkit.org/show_bug.cgi?id=93492
833
834         Reviewed by Tor Arne Vestbø.
835
836         * Api/qwebframe.cpp:
837         (QWebFrame::print): Does nothing if no printsupport
838         * Api/qwebview.cpp:
839         (QWebView::print): Does nothing if no printsupport
840
841 2012-08-11  Pierre Rossi  <pierre.rossi@gmail.com>
842
843         [Qt] Add support for HTML5 state object history API in FrameLoaderClientQt
844         https://bugs.webkit.org/show_bug.cgi?id=93648
845
846         Reviewed by Kenneth Rohde Christiansen.
847
848         Add support for push/replace/pop by implementing dispatchDidNavigateWithinPage.
849
850         * WebCoreSupport/FrameLoaderClientQt.cpp:
851         (WebCore::FrameLoaderClientQt::dispatchDidNavigateWithinPage):
852         (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
853         (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
854         (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
855         * WebCoreSupport/FrameLoaderClientQt.h:
856         (FrameLoaderClientQt):
857         * tests/qwebframe/tst_qwebframe.cpp:
858         (tst_QWebFrame):
859         (tst_QWebFrame::setUrlUsingStateObject): Added. Tests that the urlChanged signal is fired.
860
861 2012-08-10  Simon Hausmann  <simon.hausmann@nokia.com>
862
863         [Qt] Remove QRegExp <> JS RegExp conversion
864         https://bugs.webkit.org/show_bug.cgi?id=93716
865
866         Reviewed by Kenneth Rohde Christiansen.
867
868         Removed tests that cover the automatic QRegExp <> JS RegExp conversion. See WebCore
869         ChangeLog for details.
870
871         * tests/qobjectbridge/tst_qobjectbridge.cpp:
872         (MyQObject::emitMySignalWithDateTimeArg):
873         (MyQObject):
874         (tst_QObjectBridge::overloadedSlots):
875         (tst_QObjectBridge::typeConversion):
876
877 2012-08-09  Simon Hausmann  <simon.hausmann@nokia.com>
878
879         [Qt] Remove support for __qt_sender__ in QObject bridge
880         https://bugs.webkit.org/show_bug.cgi?id=93649
881
882         Reviewed by Kenneth Rohde Christiansen.
883
884         Support for __qt_sender__ has also been removed from QtScript/QJSEngine. The right
885         JavaScript solution to the problem is Function.prototype.bind.
886
887         * Api/qwebframe.cpp:
888         (QWebFramePrivate::didClearWindowObject):
889         * Api/qwebframe_p.h:
890         (QWebFramePrivate):
891         * tests/qobjectbridge/tst_qobjectbridge.cpp:
892         (tst_QObjectBridge::connectAndDisconnect):
893
894 2012-08-08  Simon Hausmann  <simon.hausmann@nokia.com>
895
896         [Qt] Port internal findMethodIndex method matcher to use JSC C API
897         https://bugs.webkit.org/show_bug.cgi?id=93463
898
899         Reviewed by Kenneth Rohde Christiansen.
900
901         Adjust the expectations of the unit test for some of the exceptions the
902         method throws when signals/slots cannot be found/matched. The C API doesn't allow
903         us to create syntax (type) errors, only generic error exceptions.
904
905         * tests/qobjectbridge/tst_qobjectbridge.cpp:
906         (tst_QObjectBridge::callQtInvokable):
907
908 2012-08-08  Simon Hausmann  <simon.hausmann@nokia.com>
909
910         [Qt] Add unit test for QObject bindings for scriptable plugins
911         https://bugs.webkit.org/show_bug.cgi?id=93462
912
913         Reviewed by Kenneth Rohde Christiansen.
914
915         The bindings code is subject to refactoring in the future, so added a unit test to verify that
916         accessing an embedded QWidget from JavaScript goes through the QObject bindings.
917
918         * tests/qobjectbridge/tst_qobjectbridge.cpp:
919         (tst_QObjectBridge):
920         (TestPluginWidget):
921         (TestPluginWidget::TestPluginWidget):
922         (TestPluginWidget::slotWithReturnValue):
923         (TestWebPage):
924         (TestWebPage::TestWebPage):
925         (TestWebPage::createPlugin):
926         (tst_QObjectBridge::scriptablePlugin):
927
928 2012-08-07  Simon Hausmann  <simon.hausmann@nokia.com>
929
930         Unreviewed trivial fix: Missed HAVE_QT5 removal as part of r124879
931
932         Fixes failing auto-test.
933
934         * tests/qobjectbridge/tst_qobjectbridge.cpp:
935         (tst_QObjectBridge::enumerate_data):
936
937 2012-08-02  Simon Hausmann  <simon.hausmann@nokia.com>
938
939         [Qt] Remove Qt 4 specific code paths
940         https://bugs.webkit.org/show_bug.cgi?id=88161
941
942         Reviewed by Kenneth Rohde Christiansen.
943
944         * Api/qgraphicswebview.cpp:
945         (QGraphicsWebView::sceneEvent):
946         * Api/qgraphicswebview.h:
947         * Api/qwebframe.cpp:
948         * Api/qwebframe.h:
949         * Api/qwebframe_p.h:
950         * Api/qwebpage.cpp:
951         (QWebPage::event):
952         * Api/qwebpage.h:
953         * Api/qwebsettings.cpp:
954         (QWebSettings::enablePersistentStorage):
955         * Api/qwebview.cpp:
956         (QWebView::QWebView):
957         (QWebView::event):
958         * Api/qwebview.h:
959         * WebCoreSupport/ChromeClientQt.cpp:
960         (WebCore::ChromeClientQt::setToolTip):
961         * WebCoreSupport/FrameLoaderClientQt.cpp:
962         (WebCore::FrameLoaderClientQt::createPlugin):
963         * WebCoreSupport/GeolocationClientQt.cpp:
964         * WebCoreSupport/GeolocationClientQt.h:
965         * WebCoreSupport/PageClientQt.cpp:
966         (createPlatformGraphicsContext3DFromWidget):
967         (QWebPageClient::ownerWindow):
968         * WebCoreSupport/WebEventConversion.cpp:
969         (WebCore::WebKitPlatformTouchEvent::WebKitPlatformTouchEvent):
970         * declarative/declarative.pro:
971         * declarative/plugin.cpp:
972         * declarative/public.pri:
973         * examples/platformplugin/WebPlugin.cpp:
974         (WebPlugin::createExtension):
975         * examples/platformplugin/WebPlugin.h:
976         (WebPlugin):
977         * examples/platformplugin/platformplugin.pro:
978         * tests/qobjectbridge/tst_qobjectbridge.cpp:
979         (tst_QObjectBridge::arrayObjectEnumerable):
980         (tst_QObjectBridge::ownership):
981         (tst_QObjectBridge::qObjectWrapperWithSameIdentity):
982         * tests/tests.pri:
983         * tests/util.h:
984
985 2012-08-01  Zeno Albisser  <zeno@webkit.org>
986
987         [Qt]REGRESSION(r123786): It made 3 fast/animation tests fail.
988         https://bugs.webkit.org/show_bug.cgi?id=92490
989
990         QAbstractAnimation:start() is implicitly calling updateTime
991         without going through the event loop. This resulted in executing
992         scripted animation callbacks right when registering a first callback.
993
994         Reviewed by Noam Rosenthal.
995
996         * WebCoreSupport/ChromeClientQt.cpp:
997         (WebCore::RefreshAnimation::scheduleAnimation):
998             Invoke QAbstractAnimation::start() method through the event loop.
999
1000 2012-07-27  Csaba Osztrogonác  <ossy@webkit.org>
1001
1002         [Qt][WK2] REGRESSION(r119127): resetting window.internals settings between tests doesn't work properly
1003         https://bugs.webkit.org/show_bug.cgi?id=88064
1004
1005         Reviewed by Zoltan Herczeg.
1006
1007         Add missing DumpRenderTreeSupportQt::resetInternalsObject(JSContextRef context) function.
1008
1009         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1010         (DumpRenderTreeSupportQt::resetInternalsObject):
1011         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1012
1013 2012-07-26  Zeno Albisser  <zeno@webkit.org>
1014
1015         Unreviewed Qt buildfix after r123786.
1016
1017         Qt-minimal builds with ENABLE_REQUEST_ANIMATION_FRAME=0.
1018         Therefore adding #ifdefs to allow for that configuration.
1019
1020         * WebCoreSupport/ChromeClientQt.cpp:
1021         (WebCore):
1022         * WebCoreSupport/ChromeClientQt.h:
1023         (ChromeClientQt):
1024
1025 2012-07-26  Zeno Albisser  <zeno@webkit.org>
1026
1027         [Qt] requestAnimationFrame should only trigger when a new frame can be displayed.
1028         https://bugs.webkit.org/show_bug.cgi?id=88638
1029
1030         Disable REQUEST_ANIMATION_FRAME_TIMER for the Qt port and tie
1031         the servicing of scripted animations to the renderNextFrame call for WK2.
1032         For WK1 we rely on the RefreshAnimation that is based on QAbstractAnimation.
1033
1034         Reviewed by Jocelyn Turcotte.
1035
1036         * WebCoreSupport/ChromeClientQt.cpp:
1037         (RefreshAnimation):
1038             Add a RefreshAnimation that is based on QAbstractAnimation
1039             and drives the servicing of the scripted animations for WK1.
1040         (WebCore::RefreshAnimation::RefreshAnimation):
1041         (WebCore::RefreshAnimation::duration):
1042         (WebCore::RefreshAnimation::scheduleAnimation):
1043             Set m_animationScheduled to true and start the animation
1044             timer in case it is not running yet.
1045         (WebCore::RefreshAnimation::updateCurrentTime):
1046             Call serviceScriptedAnimations if m_animationScheduled is true.
1047             If this is not the case, the animation timer can be stopped,
1048             because no animation needs to be scheduled anymore.
1049         (WebCore):
1050         (WebCore::ChromeClientQt::scheduleAnimation):
1051             Create and start the RefreshAnimation instance with the
1052             first call to scheduleAnimation.
1053         * WebCoreSupport/ChromeClientQt.h:
1054         (WebCore):
1055         (ChromeClientQt):
1056
1057 2012-07-26  Kaustubh Atrawalkar  <kaustubh@motorola.com>
1058
1059         [DRT] LTC:: pageNumberForElementById() could be moved to Internals
1060         https://bugs.webkit.org/show_bug.cgi?id=92091
1061
1062         Reviewed by Adam Barth.
1063
1064         Move the pageNumberForElementById from LayoutTestCotroller to Internals and
1065         remove the old platform specific implementations as it exclusively tests WebCore functionality.
1066
1067         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1068         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1069
1070 2012-07-24  Pierre Rossi  <pierre.rossi@gmail.com>
1071
1072         [Qt][WK1] color input type support
1073         https://bugs.webkit.org/show_bug.cgi?id=91998
1074
1075         Reviewed by Simon Hausmann.
1076
1077         Using QColorDialog. This is private for now, but
1078         it could be exposed via a virtual function in
1079         QWebPage at a later point in a Qt 5 minor release
1080         if there are requests for that.
1081
1082         * Api/qwebpage.cpp:
1083         (QWebPagePrivate::colorSelectionRequested):
1084         * Api/qwebpage_p.h:
1085         (QWebPagePrivate):
1086         * WebCoreSupport/ChromeClientQt.cpp:
1087         (WebCore::ChromeClientQt::createColorChooser):
1088
1089 2012-07-23  Oswald Buddenhagen  <oswald.buddenhagen@nokia.com>
1090
1091         [Qt] Fix compilation against namespaced Qt
1092
1093         Reviewed by Simon Hausmann.
1094
1095         * WebCoreSupport/GeolocationClientQt.h:
1096         * examples/platformplugin/WebPlugin.h:
1097
1098 2012-07-23  Pierre Rossi  <pierre.rossi@gmail.com>
1099
1100         Unify numTouchEventHandlersChanged and needTouchEvents in the chrome client
1101         https://bugs.webkit.org/show_bug.cgi?id=91006
1102
1103         Reviewed by Ryosuke Niwa.
1104
1105         Remove numTouchEventHandlersChanged stub.
1106
1107         * WebCoreSupport/ChromeClientQt.h:
1108
1109 2012-07-23  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1110
1111         [Qt] RenderThemeQtMobile highlight colors are not being used
1112         https://bugs.webkit.org/show_bug.cgi?id=92004
1113
1114         Reviewed by Noam Rosenthal.
1115
1116         * WebCoreSupport/RenderThemeQStyle.cpp:
1117         (WebCore::RenderThemeQStyle::setPaletteFromPageClientIfExists): Moved here since
1118         it's used only by RenderThemeQStyle. Remove unnecessary check for m_page->chrome().
1119         (WebCore):
1120         (WebCore::RenderThemeQStyle::colorPalette):
1121         * WebCoreSupport/RenderThemeQStyle.h:
1122         (RenderThemeQStyle):
1123
1124 2012-07-22  Kent Tamura  <tkent@chromium.org>
1125
1126         Rename ENABLE_METER_TAG and ENABLE_PROGRESS_TAG to ENABLE_METER_ELEMENT and ENABLE_PROGRESS_ELEMENT respectively
1127         https://bugs.webkit.org/show_bug.cgi?id=91941
1128
1129         Reviewed by Kentaro Hara.
1130
1131         A flag name for an elmement should be ENABLE_*_ELEMENT.
1132
1133         * WebCoreSupport/RenderThemeQStyle.cpp:
1134         (WebCore):
1135         * WebCoreSupport/RenderThemeQStyle.h:
1136
1137 2012-07-19  No'am Rosenthal  <noam.rosenthal@nokia.com>
1138
1139         [Qt] Enable CSS shaders in Qt (software mode)
1140         https://bugs.webkit.org/show_bug.cgi?id=85140
1141
1142         Reviewed by Simon Hausmann.
1143
1144         Enable CSS Shaders in settings when WebGL is enabled.
1145
1146         * Api/qwebsettings.cpp:
1147         (QWebSettingsPrivate::apply):
1148
1149 2012-07-19  Simon Hausmann  <simon.hausmann@nokia.com>
1150
1151         [Qt] Remove support for Qt versions before 4.8.0
1152         https://bugs.webkit.org/show_bug.cgi?id=91730
1153
1154         Reviewed by Kenneth Rohde Christiansen.
1155
1156         Remove Qt version check #ifdefs for Qt versions before 4.8.0.
1157
1158         * Api/qwebsettings.cpp:
1159         (QWebSettingsPrivate):
1160         (QWebSettings::QWebSettings):
1161         (QWebSettings::thirdPartyCookiePolicy):
1162         * Api/qwebsettings.h:
1163         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1164         (DumpRenderTreeSupportQt::thirdPartyCookiePolicyAllows):
1165         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1166         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
1167         (tst_QDeclarativeWebView):
1168         (tst_QDeclarativeWebView::backgroundColor):
1169         * tests/qwebelement/tst_qwebelement.cpp:
1170         (tst_QWebElement::render):
1171         * tests/qwebpage/tst_qwebpage.cpp:
1172         (tst_QWebPage):
1173         (tst_QWebPage::thirdPartyCookiePolicy):
1174
1175 2012-07-17  Gabor Ballabas  <gaborb@inf.u-szeged.hu>
1176
1177         [Qt][V8] Remove the V8 related codepaths and configuration
1178         https://bugs.webkit.org/show_bug.cgi?id=90863
1179
1180         Reviewed by Simon Hausmann.
1181
1182         * Api/qwebelement.cpp:
1183         (setupScriptContext):
1184         (QWebElement::evaluateJavaScript):
1185         (convertWebElementVariantToJSValue):
1186         (QtWebElementRuntime::initialize):
1187         * Api/qwebframe.cpp:
1188         (QWebFramePrivate::didClearWindowObject):
1189         (QWebFramePrivate::addQtSenderToGlobalObject):
1190         (QWebFrame::addToJavaScriptWindowObject):
1191         (QWebFrame::evaluateJavaScript):
1192         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1193         (convertNodeVariantToJSValue):
1194         (QtDRTNodeRuntime::initialize):
1195         (DumpRenderTreeSupportQt::javaScriptObjectsCount):
1196         (DumpRenderTreeSupportQt::garbageCollectorCollect):
1197         (DumpRenderTreeSupportQt::garbageCollectorCollectOnAlternateThread):
1198         (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
1199         (DumpRenderTreeSupportQt::injectInternalsObject):
1200         (DumpRenderTreeSupportQt::resetInternalsObject):
1201         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1202         * WebCoreSupport/FrameLoaderClientQt.cpp:
1203         (WebCore::FrameLoaderClientQt::createDocumentLoader):
1204         * WebCoreSupport/FrameLoaderClientQt.h:
1205         (FrameLoaderClientQt):
1206         * v8/ForwardingHeaders/v8-debug.h: Removed.
1207         * v8/ForwardingHeaders/v8-preparser.h: Removed.
1208         * v8/ForwardingHeaders/v8-profiler.h: Removed.
1209         * v8/ForwardingHeaders/v8-testing.h: Removed.
1210         * v8/ForwardingHeaders/v8.h: Removed.
1211         * v8/ForwardingHeaders/v8stdint.h: Removed.
1212
1213 2012-07-17  Vivek Galatage  <vivekgalatage@gmail.com>
1214
1215         Web Inspector: refactor InspectorController::connectFrontend() to accept InspectorFrontendChannel.
1216         https://bugs.webkit.org/show_bug.cgi?id=91196
1217
1218         Reviewed by Pavel Feldman.
1219
1220         Refactoring InspectorClients. InspectorClient::openInspectorFrontend
1221         now returning the InspectorFrontendChannel.
1222
1223         * WebCoreSupport/InspectorClientQt.cpp:
1224         (WebCore::InspectorClientQt::openInspectorFrontend):
1225         (WebCore::InspectorClientQt::attachAndReplaceRemoteFrontend):
1226         * WebCoreSupport/InspectorClientQt.h:
1227         (InspectorClientQt):
1228
1229 2012-07-17  Sheriff Bot  <webkit.review.bot@gmail.com>
1230
1231         Unreviewed, rolling out r122834.
1232         http://trac.webkit.org/changeset/122834
1233         https://bugs.webkit.org/show_bug.cgi?id=91492
1234
1235         it broke the chromium (Requested by kkristof on #webkit).
1236
1237         * Api/qwebelement.cpp:
1238         (setupScriptContext):
1239         (QWebElement::evaluateJavaScript):
1240         (QtWebElementRuntime::initialize):
1241         * Api/qwebframe.cpp:
1242         (QWebFramePrivate::didClearWindowObject):
1243         (QWebFrame::addToJavaScriptWindowObject):
1244         (QWebFrame::evaluateJavaScript):
1245         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1246         (QtDRTNodeRuntime::initialize):
1247         (DumpRenderTreeSupportQt::javaScriptObjectsCount):
1248         (DumpRenderTreeSupportQt::garbageCollectorCollect):
1249         (DumpRenderTreeSupportQt::garbageCollectorCollectOnAlternateThread):
1250         (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
1251         (DumpRenderTreeSupportQt::injectInternalsObject):
1252         (DumpRenderTreeSupportQt::resetInternalsObject):
1253         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1254         (Bindings):
1255         * WebCoreSupport/FrameLoaderClientQt.cpp:
1256         (WebCore):
1257         (WebCore::FrameLoaderClientQt::didCreateScriptContext):
1258         (WebCore::FrameLoaderClientQt::willReleaseScriptContext):
1259         (WebCore::FrameLoaderClientQt::didCreateIsolatedScriptContext):
1260         (WebCore::FrameLoaderClientQt::createDocumentLoader):
1261         * WebCoreSupport/FrameLoaderClientQt.h:
1262         (FrameLoaderClientQt):
1263         (WebCore::FrameLoaderClientQt::allowScriptExtension):
1264         * v8/ForwardingHeaders/v8-debug.h: Added.
1265         * v8/ForwardingHeaders/v8-preparser.h: Added.
1266         * v8/ForwardingHeaders/v8-profiler.h: Added.
1267         * v8/ForwardingHeaders/v8-testing.h: Added.
1268         * v8/ForwardingHeaders/v8.h: Added.
1269         * v8/ForwardingHeaders/v8stdint.h: Added.
1270
1271 2012-07-17  Gabor Ballabas  <gaborb@inf.u-szeged.hu>
1272
1273         [Qt][V8] Remove the V8 related codepaths and configuration
1274         https://bugs.webkit.org/show_bug.cgi?id=90863
1275
1276         Reviewed by Simon Hausmann.
1277
1278         * Api/qwebelement.cpp:
1279         (setupScriptContext):
1280         (QWebElement::evaluateJavaScript):
1281         (convertWebElementVariantToJSValue):
1282         (QtWebElementRuntime::initialize):
1283         * Api/qwebframe.cpp:
1284         (QWebFramePrivate::didClearWindowObject):
1285         (QWebFramePrivate::addQtSenderToGlobalObject):
1286         (QWebFrame::addToJavaScriptWindowObject):
1287         (QWebFrame::evaluateJavaScript):
1288         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1289         (convertNodeVariantToJSValue):
1290         (QtDRTNodeRuntime::initialize):
1291         (DumpRenderTreeSupportQt::javaScriptObjectsCount):
1292         (DumpRenderTreeSupportQt::garbageCollectorCollect):
1293         (DumpRenderTreeSupportQt::garbageCollectorCollectOnAlternateThread):
1294         (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
1295         (DumpRenderTreeSupportQt::injectInternalsObject):
1296         (DumpRenderTreeSupportQt::resetInternalsObject):
1297         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1298         * WebCoreSupport/FrameLoaderClientQt.cpp:
1299         (WebCore::FrameLoaderClientQt::createDocumentLoader):
1300         * WebCoreSupport/FrameLoaderClientQt.h:
1301         (FrameLoaderClientQt):
1302         * v8/ForwardingHeaders/v8-debug.h: Removed.
1303         * v8/ForwardingHeaders/v8-preparser.h: Removed.
1304         * v8/ForwardingHeaders/v8-profiler.h: Removed.
1305         * v8/ForwardingHeaders/v8-testing.h: Removed.
1306         * v8/ForwardingHeaders/v8.h: Removed.
1307         * v8/ForwardingHeaders/v8stdint.h: Removed.
1308
1309 2012-07-16  Simon Hausmann  <simon.hausmann@nokia.com>
1310
1311         [Qt] Fix inconsistent DLL linkage on Windows with WebKit1
1312         https://bugs.webkit.org/show_bug.cgi?id=91375
1313
1314         Reviewed by Laszlo Gombos.
1315
1316         Export QWebHistoryItemPrivate as required for tests. Unfortunately we cannot use
1317         Q_AUTOTEST_EXPORT outside of Qt.
1318
1319         * Api/qwebhistory_p.h:
1320
1321 2012-07-16  Zoltan Horvath  <zoltan@webkit.org>
1322
1323         [Qt] Change NativeImagePtr from QPixmap* to QImage*
1324         https://bugs.webkit.org/show_bug.cgi?id=88785
1325
1326         Reviewed by Simon Hausmann.
1327
1328         Since we use raster engine there is no difference between QPixmap and QImage, so we are going
1329         to use QImage everywhere where it is possible. This refactoring contains the change of the
1330         NativeImagePtr typedef from QPixmap* to QImage* and covers the related modifications.
1331
1332         Part of the change is similar to Viatcheslav Ostapenko's internal work.
1333
1334         Covered by existing tests.
1335
1336         * Api/qwebframe.cpp:
1337         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1338         * Api/qwebhistory.cpp:
1339         (QWebHistoryItem::icon):
1340         * Api/qwebsettings.cpp:
1341         (QWebSettings::iconForUrl):
1342         (QWebSettings::setWebGraphic):
1343         (QWebSettings::webGraphic):
1344         * WebCoreSupport/DragClientQt.cpp:
1345         (WebCore::DragClientQt::startDrag):
1346         * WebCoreSupport/InitWebCoreQt.cpp:
1347         (WebCore::initializeWebCoreQt):
1348
1349 2012-07-16  Frederik Gladhorn  <frederik.gladhorn@nokia.com>
1350
1351         Accessible Widget for QWebView
1352         https://bugs.webkit.org/show_bug.cgi?id=91073
1353
1354         Added classes that allow navigation to the web view widget.
1355         This is the glue to later access webkit's accessible objects
1356         though the Qt accessibility framework.
1357
1358         Reviewed by Simon Hausmann.
1359
1360         * Api/qwebview.cpp:
1361         (QWebView::QWebView):
1362         * Api/qwebviewaccessible.cpp: Added.
1363         (accessibleInterfaceFactory):
1364         (QWebFrameAccessible::QWebFrameAccessible):
1365         (QWebFrameAccessible::frame):
1366         (QWebFrameAccessible::parent):
1367         (QWebFrameAccessible::text):
1368         (QWebFrameAccessible::childCount):
1369         (QWebFrameAccessible::child):
1370         (QWebFrameAccessible::indexOfChild):
1371         (QWebFrameAccessible::state):
1372         (QWebFrameAccessible::role):
1373         (QWebFrameAccessible::navigate):
1374         (QWebPageAccessible::QWebPageAccessible):
1375         (QWebPageAccessible::page):
1376         (QWebPageAccessible::text):
1377         (QWebPageAccessible::parent):
1378         (QWebPageAccessible::child):
1379         (QWebPageAccessible::childCount):
1380         (QWebPageAccessible::indexOfChild):
1381         (QWebPageAccessible::navigate):
1382         (QWebPageAccessible::role):
1383         (QWebPageAccessible::state):
1384         (QWebViewAccessible::QWebViewAccessible):
1385         (QWebViewAccessible::view):
1386         (QWebViewAccessible::childCount):
1387         (QWebViewAccessible::child):
1388         * Api/qwebviewaccessible_p.h: Added.
1389         (QWebFrameAccessible):
1390         (QWebPageAccessible):
1391         (QWebViewAccessible):
1392
1393 2012-07-12  Huang Dongsung  <luxtella@company100.net>
1394
1395         [Qt] Increase the drawing performance by merging dirty rects.
1396         https://bugs.webkit.org/show_bug.cgi?id=91075
1397
1398         Reviewed by Noam Rosenthal.
1399
1400         QWebFramePrivate calls FrameView::paintContents as many as the number of dirty
1401         rects, so it causes too many redundant render tree traversals.
1402         I changed it to merge dirty rects and call FrameView::paintContents only once.
1403         The algorithm to merge rects is copied from GTK.
1404
1405         When parallel image decoders are in use, each image is independently repainted
1406         when decoding is finished. This creates a lot by repaint requests. So by merging
1407         these repaint requests, I could improve rendering performance.
1408
1409         For example, I tested parallel image decoders on the locally mirrored Pinterest site.
1410         QWebFramePrivate called FrameView::paintContents 165 times after parallel image
1411         decoders decoded all the images. It took about 120ms on my six-core Intel Xeon machine.
1412         This patch decreases painting time from 120ms to 30ms.
1413
1414         * Api/qwebframe.cpp:
1415         (coalesceRectsIfPossible):
1416         (QWebFramePrivate::renderRelativeCoords):
1417
1418 2012-07-11  Steffen Imhof  <steffen.imhof@basyskom.com>
1419
1420         [Qt] Middle clicking a scrollbar causes text to be pasted.
1421         https://bugs.webkit.org/show_bug.cgi?id=78444
1422
1423         Check if the event was already accepted before handling the clipboard.
1424
1425         Reviewed by Simon Hausmann.
1426
1427         * Api/qwebpage.cpp:
1428         (QWebPagePrivate::mouseReleaseEvent):
1429
1430 2012-07-10  Adam Barth  <abarth@webkit.org>
1431
1432         WebCore::Settings for Hixie76 WebSocket protocol doesn't do anything and should be removed
1433         https://bugs.webkit.org/show_bug.cgi?id=90910
1434
1435         Reviewed by Eric Seidel.
1436
1437         * Api/qwebpage.cpp:
1438         (QWebPagePrivate::QWebPagePrivate):
1439         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1440         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1441
1442 2012-07-09  No'am Rosenthal  <noam.rosenthal@nokia.com>
1443
1444         Shared code that is guarded with ENABLE(WEBGL) should be guarded with USE()
1445         https://bugs.webkit.org/show_bug.cgi?id=90506
1446
1447         Reviewed by Martin Robinson.
1448
1449         Updated necessary parts of PageClientQt to be guarded with USE(3D_GRAPHICS) instead of
1450         ENABLE(WEBGL). The WebKit1 glue to WebGL still requires the Qt OpenGL module, so it's
1451         disable if QT_OPENGL_LIB is not defined.
1452
1453         * WebCoreSupport/PageClientQt.cpp:
1454         (createPlatformGraphicsContext3DFromWidget):
1455         (WebCore):
1456         * WebCoreSupport/PageClientQt.h:
1457         (PageClientQWidget):
1458         (PageClientQGraphicsWidget):
1459
1460 2012-07-06  Csaba Osztrogonác  <ossy@webkit.org>
1461
1462         [Qt] Buildfix for newer Qt5
1463         https://bugs.webkit.org/show_bug.cgi?id=90519
1464
1465         Reviewed by Tor Arne Vestbø.
1466
1467         * WebCoreSupport/QtFallbackWebPopup.cpp: Include QtGui/QStandardItemModel instead of deprecated QStandardItemModel.
1468
1469 2012-07-06  Oswald Buddenhagen  <oswald.buddenhagen@nokia.com>
1470
1471         [Qt] Adjust to changed generation of master include file
1472
1473         The responsiblity for creating the master include was moved out of syncqt.
1474         @ignore_for_master_contents still stays, as syncqt (ab-)uses this for
1475         determining whether a header is private.
1476
1477         https://bugs.webkit.org/show_bug.cgi?id=90461
1478
1479         Reviewed by Tor Arne Vestbø.
1480
1481         * Api/qwebscriptworld.h:
1482         * tests/util.h:
1483
1484 2012-07-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1485
1486         [Qt] Get rid of un-needed QT += declarative for Qt 5
1487
1488         The declarative module has been renamed to quick1 in Qt 5, and the
1489         engine-only module for Qt 5 is named 'qml'. For many of the instances
1490         we could just remove 'declarative', since the project file was only
1491         used for Qt5/WebKit2 builds. In the other cases the module was wrapped
1492         in a haveQt(4) scope.
1493
1494         Reviewed by Csaba Osztrogonác.
1495
1496         * declarative/experimental/experimental.pri:
1497         * declarative/public.pri:
1498
1499 2012-07-03  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1500
1501         [Qt] Make use of .qmake.cache for caching features
1502
1503         Instead of loading() features from the files that need them (and re-running
1504         a bunch of checks), we now run feature detection as part of configure.pro,
1505         and have build-webkit write the computed feature-defines and CONFIG to
1506         .qmake.cache, which is then loaded by qmake _before_ even defaults_pre
1507         when building WebKit.pro.
1508
1509         At some point we'll be able to selectivly prevent running of config tests
1510         in configure.pro, which means we don't need a separate code-path for
1511         the build-webkit --help case.
1512
1513         We should also move the code in build-webkit that now uses .webkit.config
1514         to detect clean builds, to use .qmake.cache, since we now store the same
1515         thing there.
1516
1517         Original patch by Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
1518
1519         Reviewed by Tor Arne Vestbø.
1520
1521         * declarative/declarative.pro:
1522         * declarative/public.pri:
1523         * tests/qgraphicswebview/qgraphicswebview.pro:
1524
1525 2012-07-03  Sheriff Bot  <webkit.review.bot@gmail.com>
1526
1527         Unreviewed, rolling out r121766.
1528         http://trac.webkit.org/changeset/121766
1529         https://bugs.webkit.org/show_bug.cgi?id=90465
1530
1531         It caused flakey build errors on the bots (Requested by Ossy
1532         on #webkit).
1533
1534         * declarative/declarative.pro:
1535         * declarative/public.pri:
1536         * tests/qgraphicswebview/qgraphicswebview.pro:
1537
1538 2012-07-03  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1539
1540         [Qt] Make use of .qmake.cache for caching features
1541
1542         Instead of loading() features from the files that need them (and re-running
1543         a bunch of checks), we now run feature detection as part of configure.pro,
1544         and have build-webkit write the computed feature-defines and CONFIG to
1545         .qmake.cache, which is then loaded by qmake _before_ even defaults_pre
1546         when building WebKit.pro.
1547
1548         At some point we'll be able to selectivly prevent running of config tests
1549         in configure.pro, which means we don't need a separate code-path for
1550         the build-webkit --help case.
1551
1552         We should also move the code in build-webkit that now uses .webkit.config
1553         to detect clean builds, to use .qmake.cache, since we now store the same
1554         thing there.
1555
1556         Original patch by Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
1557
1558         Reviewed by Tor Arne Vestbø.
1559
1560         * declarative/declarative.pro:
1561         * declarative/public.pri:
1562         * tests/qgraphicswebview/qgraphicswebview.pro:
1563
1564 2012-07-02  No'am Rosenthal  <noam.rosenthal@nokia.com>
1565
1566         [Qt] Get rid of GraphicsLayerQt
1567         https://bugs.webkit.org/show_bug.cgi?id=78598
1568
1569         Reviewed by Luiz Agostini.
1570
1571         Removed all references to GraphicsLayerQt, including #ifdef code paths that only apply
1572         when TEXTURE_MAPPER is disabled.
1573
1574         * Api/qgraphicswebview.cpp:
1575         (QGraphicsWebView::paint):
1576         * Api/qwebframe.cpp:
1577         (QWebFramePrivate::renderFromTiledBackingStore):
1578         (QWebFramePrivate::renderRelativeCoords):
1579         * Api/qwebframe_p.h:
1580         (QWebFramePrivate::QWebFramePrivate):
1581         (QWebFramePrivate):
1582         * Api/qwebsettings.cpp:
1583         (QWebSettingsPrivate::apply):
1584         * WebCoreSupport/PageClientQt.cpp:
1585         (WebCore):
1586         (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
1587         (WebCore::PageClientQGraphicsWidget::update):
1588         (WebCore::PageClientQGraphicsWidget::syncLayers):
1589         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
1590         * WebCoreSupport/PageClientQt.h:
1591         (WebCore):
1592         (WebCore::PageClientQWidget::PageClientQWidget):
1593         (PageClientQWidget):
1594         (PageClientQGraphicsWidget):
1595
1596 2012-07-02  Benjamin Poulain  <bpoulain@apple.com>
1597
1598         Do not do any logging initialization when logging is disabled
1599         https://bugs.webkit.org/show_bug.cgi?id=90228
1600
1601         Reviewed by Simon Fraser.
1602
1603         * WebCoreSupport/InitWebCoreQt.cpp:
1604         (WebCore::initializeWebCoreQt):
1605
1606 2012-06-29  Konrad Piascik  <kpiascik@rim.com>
1607
1608         Don't hardcode target dpi of 160 (it should be 96 on desktop)
1609         https://bugs.webkit.org/show_bug.cgi?id=88114
1610
1611         Reviewed by Adam Barth.
1612
1613         Updated the call to computeViewportAttributes.
1614
1615         * Api/qwebpage.cpp:
1616         (QWebPage::viewportAttributesForSize):
1617         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1618         (DumpRenderTreeSupportQt::viewportAsText):
1619
1620 2012-06-28  Alexander Pavlov  <apavlov@chromium.org>
1621
1622         [Qt] inspector/styles/inject-stylesheet.html makes 4 tests flakey (TEXT PASS)
1623         https://bugs.webkit.org/show_bug.cgi?id=90167
1624
1625         Reviewed by Csaba Osztrogonác.
1626
1627         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1628         (DumpRenderTreeSupportQt::removeUserStyleSheets):
1629         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1630
1631 2012-06-28  Csaba Osztrogonác  <ossy@webkit.org>
1632
1633         [Qt] Restore original value of mock scrollbars between tests
1634         https://bugs.webkit.org/show_bug.cgi?id=90155
1635
1636         Reviewed by Simon Hausmann.
1637
1638         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1639         (DumpRenderTreeSupportQt::setMockScrollbarsEnabled):
1640         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1641
1642 2012-06-25  Mark Hahnenberg  <mhahnenberg@apple.com>
1643
1644         JSLock should be per-JSGlobalData
1645         https://bugs.webkit.org/show_bug.cgi?id=89123
1646
1647         Reviewed by Geoffrey Garen.
1648
1649         Changed all sites that used JSLock to instead use the new JSLockHolder
1650         and pass in the correct JS context that the code is about to interact with that 
1651         needs protection. Also added a couple JSLocks to places that didn't already 
1652         have it that needed it.
1653
1654         * Api/qwebframe.cpp:
1655         (QWebFramePrivate::addQtSenderToGlobalObject):
1656         (QWebFrame::addToJavaScriptWindowObject):
1657         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1658         (DumpRenderTreeSupportQt::injectInternalsObject):
1659         (DumpRenderTreeSupportQt::resetInternalsObject):
1660
1661 2012-06-27  Simon Hausmann  <simon.hausmann@nokia.com>
1662
1663         [Qt] Fix compilation of example platform plugin with Qt 5
1664
1665         Reviewed by Kenneth Christiansen.
1666
1667         Use QLatin1String where appropriate and use the Qt 5 plugin
1668         system with Qt 5.
1669
1670         * examples/platformplugin/WebPlugin.cpp:
1671         (SingleSelectionPopup::SingleSelectionPopup):
1672         (MultipleItemListDelegate::MultipleItemListDelegate):
1673         (MultipleSelectionPopup::MultipleSelectionPopup):
1674         * examples/platformplugin/WebPlugin.h:
1675         (WebPlugin):
1676
1677 2012-06-26  Tony Chang  <tony@chromium.org>
1678
1679         [Qt] Enable grid layout LayoutTests
1680         https://bugs.webkit.org/show_bug.cgi?id=89909
1681
1682         Reviewed by Csaba Osztrogonác.
1683
1684         These tests pass, we just need to hook up the overridePreference.
1685
1686         * Api/qwebsettings.cpp:
1687         (QWebSettingsPrivate::apply):
1688         (QWebSettings::QWebSettings):
1689         * Api/qwebsettings.h: Add enum value for CSS grid layout
1690
1691 2012-06-25  Simon Hausmann  <simon.hausmann@nokia.com>
1692
1693         Unreviewed build fix: Don't do QT += widgets with Qt 4
1694
1695         * examples/platformplugin/platformplugin.pro:
1696
1697 2012-06-23  Sheriff Bot  <webkit.review.bot@gmail.com>
1698
1699         Unreviewed, rolling out r121058.
1700         http://trac.webkit.org/changeset/121058
1701         https://bugs.webkit.org/show_bug.cgi?id=89809
1702
1703         Patch causes plugins tests to crash in GTK debug builds
1704         (Requested by zdobersek on #webkit).
1705
1706         * Api/qwebframe.cpp:
1707         (QWebFramePrivate::addQtSenderToGlobalObject):
1708         (QWebFrame::addToJavaScriptWindowObject):
1709         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1710         (DumpRenderTreeSupportQt::injectInternalsObject):
1711         (DumpRenderTreeSupportQt::resetInternalsObject):
1712
1713 2012-06-20  Mark Hahnenberg  <mhahnenberg@apple.com>
1714
1715         JSLock should be per-JSGlobalData
1716         https://bugs.webkit.org/show_bug.cgi?id=89123
1717
1718         Reviewed by Gavin Barraclough.
1719
1720         Changed all sites that used JSLock to instead use the new JSLockHolder
1721         and pass in the correct JS context that the code is about to interact with that 
1722         needs protection.
1723
1724         * Api/qwebframe.cpp:
1725         (QWebFramePrivate::addQtSenderToGlobalObject):
1726         (QWebFrame::addToJavaScriptWindowObject):
1727         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1728         (DumpRenderTreeSupportQt::injectInternalsObject):
1729         (DumpRenderTreeSupportQt::resetInternalsObject):
1730
1731 2012-06-22  Amy Ousterhout  <aousterh@chromium.org>
1732
1733         Renamed DeviceOrientation to DeviceOrientationData
1734         https://bugs.webkit.org/show_bug.cgi?id=88663
1735
1736         Reviewed by Steve Block.
1737
1738         Updated files to use the renamed DeviceOrientationData instead of DeviceOrientation.
1739         This change makes DeviceOrientationData consistent with DeviceMotionData.
1740         
1741         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1742         (DumpRenderTreeSupportQt::setMockDeviceOrientation):
1743         
1744 2012-06-21  Thiago Marcos P. Santos  <thiago.santos@intel.com>
1745
1746         [WK2][Qt] Color chooser API missing
1747         https://bugs.webkit.org/show_bug.cgi?id=87749
1748
1749         Reviewed by Kenneth Rohde Christiansen.
1750
1751         Added ColorChooser API stub to WebKit. Otherwise
1752         it will break the build for Qt WebKit2 (that now has
1753         complete support for color chooser) when INPUT_TYPE_COLOR is set.
1754
1755         * WebCoreSupport/ChromeClientQt.cpp:
1756         (WebCore):
1757         (WebCore::ChromeClientQt::createColorChooser):
1758         * WebCoreSupport/ChromeClientQt.h:
1759         (ChromeClientQt):
1760
1761 2012-06-20  Simon Hausmann  <simon.hausmann@nokia.com>
1762
1763         [Qt] Unreviewed build fix
1764
1765         The platform plugin example uses QGridLayout and thus needs QT += widgets
1766
1767         * examples/platformplugin/platformplugin.pro:
1768
1769 2012-06-19  Csaba Osztrogonác  <ossy@webkit.org>
1770
1771         [Qt] Buildfix for newer Qt5, use QPointer instead of the deprecated QWeakPointer.
1772         https://bugs.webkit.org/show_bug.cgi?id=89449
1773
1774         Reviewed by Simon Hausmann.
1775
1776         * Api/qwebframe_p.h:
1777         (QWebHitTestResultPrivate):
1778         * Api/qwebpage_p.h:
1779         (QWebPagePrivate):
1780         * WebCoreSupport/FrameLoaderClientQt.cpp:
1781         (WebCore::FrameLoaderClientQt::createFrame):
1782         * WebCoreSupport/PageClientQt.h:
1783         (PageClientQGraphicsWidget):
1784
1785 2012-06-19  Albert Astals Cid  <albert.astals@canonical.com>
1786
1787         [Qt] Document the versions enums where added
1788         https://bugs.webkit.org/show_bug.cgi?id=89452
1789
1790         Reviewed by Simon Hausmann.
1791
1792         * Api/qwebpage.cpp:
1793
1794 2012-06-19  Sergio Villar Senin  <svillar@igalia.com>
1795
1796         Calling nativeImageForCurrentFrame() causes assertion failure: m_verifier.isSafeToUse()
1797         https://bugs.webkit.org/show_bug.cgi?id=67582
1798
1799         Reviewed by David Levin.
1800
1801         Use synchronousNativeIconForPageURL() to retrieve favicons.
1802
1803         * Api/qwebhistory.cpp:
1804         (QWebHistoryItem::icon):
1805         * Api/qwebsettings.cpp:
1806         (QWebSettings::iconForUrl):
1807
1808 2012-06-18  Andras Becsi  <andras.becsi@nokia.com>
1809
1810         [Qt] Update QML plugins to Qt 5 style
1811         https://bugs.webkit.org/show_bug.cgi?id=89027
1812
1813         Reviewed by Csaba Osztrogonác.
1814
1815         Since support for Qt 4 style plugins was removed from Qt 5
1816         we need to update our plugins to the new style to be able
1817         to build with a more recent Qt 5 hash.
1818         Add empty plugin description json files for now.
1819
1820         * declarative/experimental/plugin.cpp:
1821         * declarative/experimental/plugin.json: Added.
1822         * declarative/plugin.cpp:
1823         (WebKitQmlPlugin):
1824         * declarative/plugin.json: Added.
1825
1826 2012-06-13  Simon Hausmann  <simon.hausmann@nokia.com>
1827
1828         [Qt] Remove dependency to QtScript for the Qt 5 build
1829         https://bugs.webkit.org/show_bug.cgi?id=88993
1830
1831         Reviewed by Kenneth Rohde Christiansen.
1832
1833         When building against Qt 5, replace the use of QScriptEngine::ValueOwnership with
1834         a (compatible) QWebFrame::ValueOwnership enum.
1835
1836         * Api/qwebframe.cpp:
1837         (qtSenderCallback):
1838         (QWebFrame::addToJavaScriptWindowObject):
1839         * Api/qwebframe.h:
1840         * tests/qobjectbridge/tst_qobjectbridge.cpp:
1841         (tst_QObjectBridge::arrayObjectEnumerable):
1842         (tst_QObjectBridge::ownership):
1843         (tst_QObjectBridge::qObjectWrapperWithSameIdentity):
1844
1845
1846 2012-06-12  Csaba Osztrogonác  <ossy@webkit.org>
1847
1848         [Qt][Mac] Unreviewed buildfix after r120076.
1849
1850         * WebCoreSupport/QTKitFullScreenVideoHandler.h:
1851
1852 2012-06-11  Kaustubh Atrawalkar  <kaustubh@motorola.com>
1853
1854         [DRT] LTC:: counterValueForElementById() could be moved to Internals.
1855         https://bugs.webkit.org/show_bug.cgi?id=84406
1856
1857         Reviewed by Hajime Morita.
1858
1859         Move the counterValueForElementById from LayoutTestCotroller to Internals and
1860         remove the old platform specific implementations as it exclusively tests WebCore functionality.
1861
1862         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1863         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1864
1865 2012-06-11  Csaba Osztrogonác  <ossy@webkit.org>
1866
1867         [Qt][Win] Add missing includes to fix the build
1868         https://bugs.webkit.org/show_bug.cgi?id=88538
1869
1870         Reviewed by Simon Hausmann.
1871
1872         * Api/qwebframe.cpp:
1873         * WebCoreSupport/ChromeClientQt.cpp:
1874         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1875         * WebCoreSupport/GeolocationClientQt.cpp:
1876         * WebCoreSupport/IconDatabaseClientQt.cpp:
1877
1878 2012-06-08  Simon Hausmann  <simon.hausmann@nokia.com>
1879
1880         Unreviewed, fix file permissions.
1881
1882         * WebCoreSupport/FrameLoaderClientQt.cpp:
1883
1884 2012-06-07  Zoltan Horvath  <zoltan@webkit.org>
1885
1886         [Qt] Qt DRT should load external resources - cleanup
1887         https://bugs.webkit.org/show_bug.cgi?id=88568
1888
1889         Make things more straighforward to load external URLs in DRT.
1890
1891         Reviewed by Ryosuke Niwa.
1892
1893         * WebCoreSupport/FrameLoaderClientQt.cpp:
1894         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
1895
1896 2012-06-06  Zoltan Horvath  <zoltan@webkit.org>
1897
1898         [Qt] Qt DRT / WTR should be able to load external resources
1899         https://bugs.webkit.org/show_bug.cgi?id=87326
1900
1901         Reviewed by Hajime Morita.
1902
1903         Allow external resources to be loaded when the main frame's URL is also an external resource.
1904         This change is analogous to r118231 for Mac port and to r119153 Chromium port.
1905
1906         * WebCoreSupport/FrameLoaderClientQt.cpp:
1907         (WebCore::blockRequest):
1908         (WebCore):
1909         (WebCore::isLocalhost):
1910         (WebCore::hostIsUsedBySomeTestsToGenerateError):
1911         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
1912
1913 2012-06-05  Max Feil  <mfeil@rim.com>
1914
1915         [BlackBerry] Conditionally enlarge HTML5 video controls in fullscreen mode
1916         https://bugs.webkit.org/show_bug.cgi?id=87551
1917
1918         Reviewed by Antonio Gomes.
1919
1920         Add a new parameter to adjustSliderThumbSize() for BlackBerry
1921         port. Fixing compiles of other ports.
1922
1923         * WebCoreSupport/RenderThemeQStyle.cpp:
1924         (WebCore::RenderThemeQStyle::adjustSliderThumbSize):
1925         * WebCoreSupport/RenderThemeQStyle.h:
1926         (RenderThemeQStyle):
1927
1928 2012-06-04  Sheriff Bot  <webkit.review.bot@gmail.com>
1929
1930         Unreviewed, rolling out r119384.
1931         http://trac.webkit.org/changeset/119384
1932         https://bugs.webkit.org/show_bug.cgi?id=88227
1933
1934         Need to update some tests, I'll roll in later. (Requested by
1935         Zoltan on #webkit).
1936
1937         * WebCoreSupport/FrameLoaderClientQt.cpp:
1938         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
1939
1940 2012-06-04  Zoltan Horvath  <zoltan@webkit.org>
1941
1942         [Qt] Qt DRT / WTR should be able to load external resources
1943         https://bugs.webkit.org/show_bug.cgi?id=87326
1944
1945         Reviewed by Ryosuke Niwa.
1946
1947         Allow external resources to be loaded when the main frame's URL is also an external resource.
1948         This change is analogous to r118231 for Mac port and to r119153 Chromium port.
1949
1950         * WebCoreSupport/FrameLoaderClientQt.cpp:
1951         (WebCore::blockRequest):
1952         (WebCore):
1953         (WebCore::isLocalhost):
1954         (WebCore::hostIsUsedBySomeTestsToGenerateError):
1955         (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
1956
1957 2012-06-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1958
1959         [Qt] Don't use WebKit HAVE() macro in public Qt headers
1960
1961         Reviewed by Kenneth Rohde Christiansen.
1962
1963         * Api/qgraphicswebview.h:
1964         * Api/qwebframe_p.h:
1965         * Api/qwebpage.h:
1966         * Api/qwebview.h:
1967
1968 2012-06-02  Zoltan Arvai  <zarvai@inf.u-szeged.hu>
1969
1970         [Qt] Use 'Ok' and 'Cancel' buttons in JavaScript confirm box.
1971         https://bugs.webkit.org/show_bug.cgi?id=76190
1972         Based on Johannes Obermayrs (johannesobermayr@gmx.de) patch.
1973         See: http://www.javascripter.net/faq/confirm.htm
1974         Fixes: https://bugs.kde.org/show_bug.cgi?id=287629
1975
1976         Reviewed by Simon Hausmann.
1977
1978         * Api/qwebpage.cpp:
1979         (QWebPage::javaScriptConfirm):
1980
1981 2012-06-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1982
1983         [Qt] Fix QObject bridge tests in Qt5 after (not so) recent QVariant changes
1984         https://bugs.webkit.org/show_bug.cgi?id=88127
1985
1986         Reviewed by Noam Rosenthal.
1987
1988         We were checking for invalid QVariants in a very odd way. Since in Qt5 the
1989         userType of invalid changed to not be Void, this broke the tests for QtWebKit
1990         with Qt5. Replace those checks with QVariant::isValid() calls.
1991
1992         * tests/qobjectbridge/tst_qobjectbridge.cpp:
1993         (tst_QObjectBridge::evalJS):
1994         (tst_QObjectBridge::evalJSV):
1995
1996 2012-06-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1997
1998         [Qt] Move QObject bridge related tests from tst_qwebframe to tst_qobjectbridge
1999         https://bugs.webkit.org/show_bug.cgi?id=88117
2000
2001         Reviewed by Noam Rosenthal.
2002
2003         Five tests (classEnums, classConstructor, transferInvokable, findObject and
2004         findChildren) were removed since they contained commented code since the file was
2005         added back in 2008. The QObject bridge tests were probably inspired in similar
2006         tests for QtScript, so many features not yet implemented were present in QtWebKit
2007         tests but commented.
2008
2009         Other minor changes:
2010         - Moved MyEnumTestQObject near the only test function that uses it.
2011         - Removed unnecessary Q_INVOKABLE from setBrushProperty.
2012         - Removed some bits of dead / commented code.
2013
2014         * tests/qobjectbridge/qobjectbridge.pro: Added.
2015         * tests/qobjectbridge/tst_qobjectbridge.cpp: Copied from Source/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp.
2016         Kept only the tests related to QObject bridge implementation.
2017         * tests/qwebframe/tst_qwebframe.cpp:
2018         (tst_QWebFrame):
2019         (tst_QWebFrame::init):
2020         (tst_QWebFrame::cleanup):
2021
2022 2012-06-01  Thiago Marcos P. Santos  <thiago.santos@intel.com>
2023
2024         [Qt] Remove deprecated to/fromAscii()
2025         https://bugs.webkit.org/show_bug.cgi?id=88086
2026
2027         Reviewed by Simon Hausmann.
2028
2029         Replacing to/fromAscii with to/fromLatin1 since it
2030         is deprecated on Qt5.
2031
2032         * WebCoreSupport/InspectorClientQt.cpp:
2033         (WebCore):
2034         * WebCoreSupport/InspectorServerQt.cpp:
2035         (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
2036         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
2037         (tst_QDeclarativeWebView::settings):
2038
2039 2012-05-31  Hajime Morrita  <morrita@chromium.org>
2040
2041         REGRESSION(r117572): editing/spelling/spellcheck-async-remove-frame.html crashes on Mac
2042         https://bugs.webkit.org/show_bug.cgi?id=86859
2043
2044         Reviewed by Ryosuke Niwa.
2045
2046         * WebCoreSupport/TextCheckerClientQt.h:
2047         (WebCore::TextCheckerClientQt::requestCheckingOfString):
2048
2049 2012-05-31  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2050
2051         [Qt] Simplify QT_VERSION_CHECKS for Qt5 by introducing HAVE(QT5)
2052         https://bugs.webkit.org/show_bug.cgi?id=87955
2053
2054         Reviewed by Simon Hausmann.
2055
2056         * Api/qgraphicswebview.cpp:
2057         * Api/qgraphicswebview.h:
2058         * Api/qwebframe.cpp:
2059         * Api/qwebframe_p.h:
2060         * Api/qwebpage.cpp:
2061         * Api/qwebpage.h:
2062         * Api/qwebsettings.cpp:
2063         * Api/qwebview.cpp:
2064         * Api/qwebview.h:
2065         * WebCoreSupport/FrameLoaderClientQt.cpp:
2066         * WebCoreSupport/GeolocationClientQt.cpp:
2067         * WebCoreSupport/GeolocationClientQt.h:
2068         * WebCoreSupport/PageClientQt.cpp:
2069         * WebCoreSupport/WebEventConversion.cpp:
2070         * declarative/plugin.cpp:
2071         * tests/qwebframe/tst_qwebframe.cpp:
2072         * tests/util.h:
2073
2074 2012-05-29  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2075
2076         [Qt] Sync up favicon-implementation with WebView url changes in r118158
2077
2078         https://bugs.webkit.org/show_bug.cgi?id=87133
2079
2080         We now base64-encode the page url in the image-provider url, so that any
2081         normalization done by QUrl will not mess up the page-url. The logic of
2082         creating and parsing the provider-url has been moved into the image
2083         provider, to keep it in one place.
2084
2085         We were also releasing icons (even ones we hadn't retained), which we can't
2086         do since we don't know when the icon url is no longer in use.
2087
2088         Reviewed-by Simon Hausmann.
2089
2090         * declarative/plugin.cpp:
2091         * declarative/public.pri:
2092
2093 2012-05-25  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
2094
2095         WebKitTestRunner needs to support layoutTestController.setJavaScriptProfilingEnabled
2096         https://bugs.webkit.org/show_bug.cgi?id=42328
2097
2098         Reviewed by Eric Seidel.
2099
2100         Removed unneeded setJavaScriptProfilingEnabled function from DRT after its
2101         move to windows.internals.settings.
2102
2103         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2104         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2105
2106 2012-05-27  Simon Hausmann  <simon.hausmann@nokia.com>
2107
2108         [Qt] Trivial unreviewed build fix with newer Qt
2109
2110         * Api/qwebpage.cpp:
2111         (QWebPage::javaScriptPrompt): Don't use deprecated QString/QChar functions.
2112
2113 2012-05-24  Ryosuke Niwa  <rniwa@webkit.org>
2114
2115         createContextualFragment and insertAdjacentHTML should throw syntax error
2116         https://bugs.webkit.org/show_bug.cgi?id=87454
2117
2118         Reviewed by Darin Adler.
2119
2120         Pass an ExceptionCode to createContextualFragment.
2121
2122         * Api/qwebelement.cpp:
2123         (QWebElement::appendInside):
2124         (QWebElement::prependInside):
2125         (QWebElement::prependOutside):
2126         (QWebElement::appendOutside):
2127         (QWebElement::encloseContentsWith):
2128         (QWebElement::encloseWith):
2129
2130 2012-05-25  Csaba Osztrogonác  <ossy@webkit.org>
2131
2132         [Qt] Buildfix for newer Qt5
2133         https://bugs.webkit.org/show_bug.cgi?id=87257
2134
2135         Reviewed by Simon Hausmann.
2136
2137         * Api/qgraphicswebview.h: QtWidgets/qicon.h -> QtGui/qicon.h renaming.
2138         * Api/qwebframe.h: QtWidgets/qicon.h -> QtGui/qicon.h renaming.
2139         * Api/qwebhistory.h: QtWidgets/qicon.h -> QtGui/qicon.h renaming.
2140         * Api/qwebsettings.h: QtWidgets/qicon.h -> QtGui/qicon.h renaming.
2141         * Api/qwebview.h: QtWidgets/qicon.h -> QtGui/qicon.h renaming.
2142         * WebCoreSupport/FrameLoaderClientQt.cpp: Adjust QCoreApplication::translate() parameter list to newer Qt 5.
2143         (WebCore::FrameLoaderClientQt::cancelledError):
2144         (WebCore::FrameLoaderClientQt::blockedError):
2145         (WebCore::FrameLoaderClientQt::cannotShowURLError):
2146         (WebCore::FrameLoaderClientQt::interruptedForPolicyChangeError):
2147         (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2148         (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2149         (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
2150         * declarative/experimental/plugin.cpp: QDeclarativeExtensionPlugin -> QQmlExtensionPlugin renaming.
2151         * declarative/plugin.cpp: QDeclarativeExtensionPlugin -> QQmlExtensionPlugin renaming.
2152         (WebKitQmlPlugin):
2153
2154 2012-05-24  Ryosuke Niwa  <rniwa@webkit.org>
2155
2156         There are too many poorly named functions to create a fragment from markup
2157         https://bugs.webkit.org/show_bug.cgi?id=87339
2158
2159         Reviewed by Eric Seidel.
2160
2161         Replace calls to Range::createDocumentFragmentForElement by calls to
2162         createContextualDocumentFragment.
2163
2164         * Api/qwebelement.cpp:
2165         (QWebElement::appendInside):
2166         (QWebElement::prependInside):
2167         (QWebElement::prependOutside):
2168         (QWebElement::appendOutside):
2169         (QWebElement::encloseContentsWith):
2170         (QWebElement::encloseWith):
2171
2172 2012-05-24  Gabor Ballabas  <gaborb@inf.u-szeged.hu>
2173
2174         [Qt]  Fix Webkit1 + V8 build.
2175         https://bugs.webkit.org/show_bug.cgi?id=87368
2176
2177         Reviewed by Eric Seidel.
2178
2179         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2180         (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
2181
2182 2012-05-24  Steffen Imhof  <steffen.imhof@basyskom.com>
2183
2184         https://bugs.webkit.org/show_bug.cgi?id=67093
2185         [Qt] Default window.alert shows HTML entities in certain cases
2186
2187         Instead of HTML escaping the text of JS alerts (which does not work
2188         consistently because of Qt's automatisms), build message boxes
2189         explicitly to be able set the text format to plain text.
2190         QInputDialog is a bit hacky, because there is no way to access or
2191         control the contained QLabel.
2192
2193         Reviewed by Simon Hausmann.
2194
2195         * Api/qwebpage.cpp:
2196         (QWebPage::javaScriptAlert):
2197         (QWebPage::javaScriptConfirm):
2198         (QWebPage::javaScriptPrompt):
2199
2200 2012-05-21  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2201
2202         Move setEditingBehavior() from layoutTestController to window.internals
2203         https://bugs.webkit.org/show_bug.cgi?id=42689
2204
2205         Reviewed by Hajime Morita and Kenneth Rohde Christiansen.
2206
2207         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2208         (DumpRenderTreeSupportQt::setWindowsBehaviorAsEditingBehavior): Reduce the job
2209         done by this function to the minimal.
2210         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2211
2212 2012-05-18  MORITA Hajime  <morrita@google.com>
2213
2214         https://bugs.webkit.org/show_bug.cgi?id=85515
2215         Stale frame in WebCore::SpellChecker::didCheckSucceeded
2216
2217         Reviewed by Ryosuke Niwa.
2218
2219         * WebCoreSupport/EditorClientQt.h:
2220         (WebCore::EditorClientQt::frameWillDetachPage):
2221
2222 2012-05-17  Hironori Bono  <hbono@chromium.org>
2223
2224         [Refactoring] Move platform-specific code in Editor::respondToChangedSelection to the WebKit layer
2225         https://bugs.webkit.org/show_bug.cgi?id=86591
2226
2227         Reviewed by Ryosuke Niwa.
2228
2229         This change adds a TextCheckerClient::shouldEraseMarkersAfterChangeSelection
2230         function to remove platform-specific code from Editor::respondToChangedSelection
2231         function.
2232
2233         No new tests, no change in behavior.
2234
2235         * WebCoreSupport/TextCheckerClientQt.cpp:
2236         (WebCore::TextCheckerClientQt::shouldEraseMarkersAfterChangeSelection):
2237         (WebCore):
2238         * WebCoreSupport/TextCheckerClientQt.h:
2239         (TextCheckerClientQt):
2240
2241 2012-05-17  Dan Bernstein  <mitz@apple.com>
2242
2243         REGRESSION (r117428): WebKit API/SPI was removed
2244         https://bugs.webkit.org/show_bug.cgi?id=86748
2245
2246         Reverted r117428.
2247
2248         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2249         (DumpRenderTreeSupportQt::setDomainRelaxationForbiddenForURLScheme):
2250         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2251
2252 2012-05-17  Tsarko Yaroslav  <eriktsarko@googlemail.com>
2253
2254         Reviewed by Yury Semikhatsky.
2255
2256         Bug 71271: [Qt] Web Inspector: local inspector client UI becomes unresponsive on debugger pause during
2257         https://bugs.webkit.org/show_bug.cgi?id=71271
2258
2259         Web Inspector should not belong to any other page groups since it is a specialized debugger window.
2260         The reason for this change is when debugger pauses web page it pauses all the pages in the page group of debuggee.
2261         This leads that Web Inspector front-end is paused too leading to locked Web Inspector GUI (bugzilla ticket 71271).
2262
2263         * WebCoreSupport/InspectorClientQt.cpp:
2264         (WebCore::InspectorClientQt::openInspectorFrontend):
2265
2266 2012-05-17  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2267
2268         Convert setDomainRelaxationForbiddenForURLScheme to use InternalSettings interface
2269         https://bugs.webkit.org/show_bug.cgi?id=86704
2270
2271         Reviewed by Eric Seidel.
2272
2273         Remove setDomainRelaxationForbiddenForURLScheme functions, because it is able to work in the
2274         cross-port way through the InternalSettings interface.
2275
2276         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2277         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2278
2279 2012-05-15  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2280
2281         [Qt] Add infra for testing double-tap to zoom functionality etc
2282         https://bugs.webkit.org/show_bug.cgi?id=86474
2283
2284         Reviewed by Simon Hausmann.
2285
2286         The WebViewportInfo class was renamed to QWebKitTest in preparation
2287         of becoming a separate module. Adapt the use API.
2288
2289         * declarative/experimental/plugin.cpp:
2290
2291 2012-05-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2292
2293         Move resumeAnimations to use Internals interface
2294         https://bugs.webkit.org/show_bug.cgi?id=86063
2295
2296         Reviewed by Alexey Proskuryakov.
2297
2298         Remove resumeAnimations functions, because it is able to work in the 
2299         cross-port way through the Internals interface.
2300
2301         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2302         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2303
2304 2012-05-10  Marius Storm-Olsen  <marius.storm-olsen@nokia.com>
2305
2306         [Qt] Fix \sa usage in documentation
2307
2308         Ensure comma between elements (6 missing).
2309
2310         Reviewed by Tor Arne Vestbø.
2311
2312         * Api/qwebpage.cpp:
2313
2314 2012-05-09  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2315
2316         Move suspendAnimations to use Internals interface.
2317         https://bugs.webkit.org/show_bug.cgi?id=85986
2318
2319         Reviewed by Ryosuke Niwa.
2320
2321         Remove suspendAnimations functions, because it is able to work in the 
2322         cross-port way through the Internals interface.
2323
2324         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2325         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2326
2327 2012-05-08  Balazs Kelemen  <kbalazs@webkit.org>
2328
2329         [Qt] X11 plugins need to be reworked for Qt5+WK1
2330         https://bugs.webkit.org/show_bug.cgi?id=80691
2331
2332         Reviewed by Simon Hausmann.
2333
2334         * Api/qwebsettings.cpp:
2335         (QWebSettings::enablePersistentStorage):
2336         Build fix for Qt5.
2337         * WebCoreSupport/FrameLoaderClientQt.cpp:
2338         (WebCore::FrameLoaderClientQt::createPlugin):
2339         Inject the wmode parameter for flash so it will
2340         work in windowless, non-transparent mode which
2341         is the only one we support currently.
2342         * WebCoreSupport/PageClientQt.cpp:
2343         (WebCore):
2344         (WebCore::QWebPageClient::ownerWindow):
2345         Added a getter for the top level window so the PluginView
2346         can get it without calling into QtWidgets code.
2347
2348 2012-05-06  Gyuyoung Kim  <gyuyoung.kim@samsung.com>
2349
2350         Convert isPageBoxVisible to use Internals interface.
2351         https://bugs.webkit.org/show_bug.cgi?id=85692
2352
2353         Reviewed by Darin Adler.
2354
2355         Remove isPageBoxVisible functions, because it is able to work in the
2356         cross-port way through the Internals interface.
2357
2358         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2359         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2360
2361 2012-05-04  Nate Chapin  <japhet@chromium.org>
2362
2363         Don't require FrameLoaderClient to manufacture a commitData() call for empty documents.
2364         https://bugs.webkit.org/show_bug.cgi?id=85533
2365
2366         Reviewed by Alexey Proskuryakov.
2367
2368         * WebCoreSupport/FrameLoaderClientQt.cpp:
2369         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
2370         (WebCore):
2371         (WebCore::FrameLoaderClientQt::finishedLoading):
2372         * WebCoreSupport/FrameLoaderClientQt.h:
2373         (WebCore::FrameLoaderClientQt::makeRepresentation):
2374         (WebCore::FrameLoaderClientQt::revertToProvisionalState):
2375         (FrameLoaderClientQt):
2376
2377 2012-05-03  Fady Samuel  <fsamuel@chromium.org>
2378
2379         Removing line in computeViewportAttributes that enforces a minimum scale factor to never allow zooming out more than viewport
2380         https://bugs.webkit.org/show_bug.cgi?id=70609
2381
2382         Reviewed by Kenneth Rohde Christiansen.
2383
2384         * Api/qwebpage.cpp:
2385         (QWebPage::viewportAttributesForSize):
2386         * Api/qwebpage.h:
2387         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2388         (DumpRenderTreeSupportQt::viewportAsText):
2389
2390 2012-04-27  Jon Lee  <jonlee@apple.com>
2391
2392         Migrate permission functions to Notification from NotificationCenter
2393         https://bugs.webkit.org/show_bug.cgi?id=80485
2394         <rdar://problem/10965458>
2395
2396         Reviewed by Jian Li.
2397
2398         * WebCoreSupport/NotificationPresenterClientQt.h:
2399         (NotificationPresenterClientQt): Add stub implementation of requestPermission.
2400         (WebCore::NotificationPresenterClientQt::requestPermission):
2401
2402 2012-05-02  Sheriff Bot  <webkit.review.bot@gmail.com>
2403
2404         Unreviewed, rolling out r115907.
2405         http://trac.webkit.org/changeset/115907
2406         https://bugs.webkit.org/show_bug.cgi?id=85458
2407
2408         It broke all viewport tests on Qt and on GTK (Requested by
2409         Ossy on #webkit).
2410
2411         * Api/qwebpage.cpp:
2412         (QWebPage::viewportAttributesForSize):
2413         * Api/qwebpage.h:
2414         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2415         (DumpRenderTreeSupportQt::viewportAsText):
2416
2417 2012-04-18  Jon Honeycutt  <jhoneycutt@apple.com>
2418
2419         FrameLoaderClient::dispatchWillSendSubmitEvent() should be given more
2420         information about the form being submitted
2421         https://bugs.webkit.org/show_bug.cgi?id=84297
2422
2423         Reviewed by Andy Estes.
2424
2425         * WebCoreSupport/FrameLoaderClientQt.h:
2426         (WebCore::FrameLoaderClientQt::dispatchWillSendSubmitEvent):
2427         Updated method declaration.
2428
2429 2012-05-02  Fady Samuel  <fsamuel@chromium.org>
2430
2431         Removing line in computeViewportAttributes that enforces a minimum scale factor to never allow zooming out more than viewport
2432         https://bugs.webkit.org/show_bug.cgi?id=70609
2433
2434         Reviewed by Kenneth Rohde Christiansen.
2435
2436         * Api/qwebpage.h:
2437         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2438         (DumpRenderTreeSupportQt::viewportAsText):
2439
2440 2012-05-02  Milian Wolff  <milian.wolff@kdab.com>
2441
2442         [Qt] Pass page-height to PrintContext::begin to fix print layouting
2443         https://bugs.webkit.org/show_bug.cgi?id=84864
2444
2445         Reviewed by Simon Hausmann.
2446
2447         * Api/qwebframe.cpp:
2448         (QWebFrame::print):
2449
2450 2012-05-02  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2451
2452         [Qt] Add initial QML documentation
2453         https://bugs.webkit.org/show_bug.cgi?id=85370
2454
2455         Reviewed by Simon Hausmann.
2456
2457         * docs/qtwebkit.qdocconf: Add WebKit2 dirs.
2458
2459 2012-05-02  Csaba Osztrogonác  <ossy@webkit.org>
2460
2461         [Qt] Buildfix after r115812 for !ENABLE(DEVICE_ORIENTATION) builds.
2462         https://bugs.webkit.org/show_bug.cgi?id=64595
2463
2464         Reviewed by Kenneth Rohde Christiansen.
2465
2466         * Api/qwebpage.cpp:
2467
2468 2012-04-27  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
2469
2470         Move WebKit1 specific conversion of touch-events to WebKit1
2471         https://bugs.webkit.org/show_bug.cgi?id=84951
2472
2473         Reviewed by Kenneth Rohde Christiansen.
2474
2475         Fix compile when touch-events are disabled.
2476
2477         * WebCoreSupport/WebEventConversion.cpp:
2478         (WebCore):
2479         * WebCoreSupport/WebEventConversion.h:
2480         (WebCore):
2481
2482 2012-04-26  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
2483
2484         Move WebKit1 specific conversion of touch-events to WebKit1.
2485         https://bugs.webkit.org/show_bug.cgi?id=84951
2486
2487         Reviewed by Kenneth Rohde Christiansen.
2488
2489         * Api/qwebpage.cpp:
2490         (QWebPagePrivate::touchEvent):
2491         * WebCoreSupport/WebEventConversion.cpp:
2492         (WebKitPlatformTouchEvent):
2493         (WebKitPlatformTouchPoint):
2494         (WebCore::WebKitPlatformTouchEvent::WebKitPlatformTouchEvent):
2495         (WebCore::WebKitPlatformTouchPoint::WebKitPlatformTouchPoint):
2496         (WebCore::convertTouchEvent):
2497         * WebCoreSupport/WebEventConversion.h:
2498
2499 2012-04-25  Alexis Menard  <alexis.menard@openbossa.org>
2500
2501         Rename CSSStyleSelector files to StyleResolver.
2502         https://bugs.webkit.org/show_bug.cgi?id=84814
2503
2504         Reviewed by Antti Koivisto.
2505
2506         Rename CSSStyleSelector files to match the new class name StyleResolver.
2507         Update the includes all over the code base to the new name.
2508
2509         * Api/qwebelement.cpp:
2510         * WebCoreSupport/RenderThemeQStyle.cpp:
2511
2512 2012-04-25  Milian Wolff  <milian.wolff@kdab.com>
2513
2514         [Qt] add LayoutTestController::setPrinting support to Qt unit tests
2515         https://bugs.webkit.org/show_bug.cgi?id=84246
2516
2517         Reviewed by Simon Hausmann.
2518
2519         * Api/qwebframe.cpp:
2520         (QWebFrame::paintPagesWithBoundaries):
2521         * Api/qwebframe.h:
2522         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2523         (DumpRenderTreeSupportQt::paintPagesWithBoundaries):
2524         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2525
2526 2012-04-24  Alexis Menard  <alexis.menard@openbossa.org>
2527
2528         Replace occurences of style selector from variables and methods names by style resolver.
2529         https://bugs.webkit.org/show_bug.cgi?id=84765
2530
2531         Reviewed by Andreas Kling.
2532
2533         Rename methods and variables to follow the new name StyleResolver. It requires to update the
2534         local variables, methods parameters, and function names to match the new name and to remove
2535         the concept of "selector" to avoid clashing with the CSS concept. The next and last patch
2536         will be to rename CSSStyleSelector file and update the includes.
2537
2538         * Api/qwebelement.cpp:
2539         (QWebElement::styleProperty):
2540         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2541         (DumpRenderTreeSupportQt::setMediaType):
2542         * WebCoreSupport/RenderThemeQStyle.cpp:
2543         (WebCore::RenderThemeQStyle::adjustButtonStyle):
2544         (WebCore::RenderThemeQStyle::adjustTextAreaStyle):
2545         (WebCore::RenderThemeQStyle::adjustMenuListButtonStyle):
2546         (WebCore::RenderThemeQStyle::adjustSliderThumbStyle):
2547         (WebCore::RenderThemeQStyle::adjustSearchFieldDecorationStyle):
2548         (WebCore::RenderThemeQStyle::adjustSearchFieldResultsDecorationStyle):
2549
2550 2012-04-24  Alexis Menard  <alexis.menard@openbossa.org>
2551
2552         Rename CSSStyleSelector class to StyleResolver.
2553         https://bugs.webkit.org/show_bug.cgi?id=84734
2554
2555         Reviewed by Andreas Kling.
2556
2557         The name CSSStyleSelector is confusing as it conflicts a bit with
2558         the CSS concept of selectors. One could think it's an encapsulation
2559         of the CSS selectors but it's not, in fact this class is responsible
2560         of finding the RenderStyle for a given element. This is the first patch
2561         as I will later rename the files, and then rename the local variables.
2562
2563         * WebCoreSupport/RenderThemeQStyle.cpp:
2564         (WebCore::RenderThemeQStyle::adjustButtonStyle):
2565         (WebCore::RenderThemeQStyle::adjustTextAreaStyle):
2566         (WebCore::RenderThemeQStyle::adjustMenuListButtonStyle):
2567         (WebCore::RenderThemeQStyle::adjustSliderTrackStyle):
2568         (WebCore::RenderThemeQStyle::adjustSliderThumbStyle):
2569         (WebCore::RenderThemeQStyle::adjustSearchFieldDecorationStyle):
2570         (WebCore::RenderThemeQStyle::adjustSearchFieldResultsDecorationStyle):
2571         * WebCoreSupport/RenderThemeQStyle.h:
2572         (RenderThemeQStyle):
2573
2574 2012-04-24  Yael Aharon  <yael.aharon@nokia.com>
2575
2576         [Qt] Move notification icon download out of WebCore
2577         https://bugs.webkit.org/show_bug.cgi?id=80700
2578
2579         Reviewed by Simon Hausmann.
2580
2581         Remove the code that handles the notification's icon and use the icon url instead.
2582         The "display" event has to be asynchronous, so a timer was added to achieve that.
2583         The platform plugin API and example were updated to reflect this change.
2584         This change does not address the recent changes in web notifications spec.
2585
2586         * Api/qwebkitplatformplugin.h:
2587         (QWebNotificationData):
2588         * WebCoreSupport/NotificationPresenterClientQt.cpp:
2589         (WebCore::NotificationWrapper::NotificationWrapper):
2590         (WebCore::NotificationWrapper::sendDisplayEvent):
2591         (WebCore):
2592         (WebCore::NotificationWrapper::iconUrl):
2593         (WebCore::NotificationPresenterClientQt::show):
2594         (WebCore::NotificationPresenterClientQt::displayNotification):
2595         (WebCore::NotificationPresenterClientQt::sendDisplayEvent):
2596         * WebCoreSupport/NotificationPresenterClientQt.h:
2597         (NotificationWrapper):
2598         (NotificationPresenterClientQt):
2599         * examples/platformplugin/WebNotificationPresenter.cpp:
2600         (WebNotificationWidget::showNotification):
2601         * examples/platformplugin/qwebkitplatformplugin.h:
2602         (QWebNotificationData):
2603
2604 2012-04-18  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
2605
2606         Clean-up WheelEvent Conversion.
2607         https://bugs.webkit.org/show_bug.cgi?id=84243
2608
2609         Reviewed by Simon Hausmann.
2610
2611         * WebCoreSupport/WebEventConversion.cpp:
2612         (WebCore::WebKitPlatformWheelEvent::applyDelta):
2613
2614 2012-04-13  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2615
2616         [Qt] Build fix with QT_NO_BEARERMANAGEMENT
2617
2618         Reviewed by Jocelyn Turcotte.
2619
2620         * tests/benchmarks/loading/tst_loading.cpp:
2621         (tst_Loading):
2622         (tst_Loading::load):
2623         * tests/benchmarks/painting/tst_painting.cpp:
2624         (tst_Painting):
2625         (tst_Painting::paint):
2626
2627 2012-04-13  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
2628
2629         [Qt] Fix build on OS X
2630
2631         We were manually including the directories needed from WTF, instead of
2632         using the WEBKIT qmake variable to add dependencies, which also adds
2633         other tricks from WTF.pri, such as the right include paths for ICU.
2634
2635         Reviewed by Simon Hausmann.
2636
2637         * declarative/experimental/experimental.pri:
2638         * declarative/public.pri:
2639
2640 2012-04-12  Balazs Kelemen  <kbalazs@webkit.org>
2641
2642         [Qt] Fix WebKit1 build with V8
2643         https://bugs.webkit.org/show_bug.cgi?id=83322
2644
2645         Reviewed by Adam Barth.
2646
2647         * WebCoreSupport/FrameLoaderClientQt.cpp:
2648         (WebCore::FrameLoaderClientQt::didCreateScriptContext):
2649         * WebCoreSupport/FrameLoaderClientQt.h:
2650         (FrameLoaderClientQt):
2651         (WebCore::FrameLoaderClientQt::allowScriptExtension):
2652         * WebCoreSupport/InitWebCoreQt.cpp:
2653
2654 2012-03-05  Pierre Rossi  <pierre.rossi@gmail.com>
2655
2656         [Qt] Use QRawFont when building with Qt 5
2657         https://bugs.webkit.org/show_bug.cgi?id=78001
2658
2659         Since QFont is not used internally, we now need
2660         to query for a QFont that should be a good
2661         enough match.
2662
2663         Reviewed by Simon Hausmann.
2664
2665         * Api/qwebpage.cpp:
2666         (QWebPage::inputMethodQuery):
2667         * WebCoreSupport/PopupMenuQt.cpp:
2668         (WebCore::PopupMenuQt::show):
2669         * WebCoreSupport/RenderThemeQStyle.cpp:
2670         (WebCore::RenderThemeQStyle::computeSizeBasedOnStyle):
2671
2672 2012-04-06  Levi Weintraub  <leviw@chromium.org>
2673
2674         Correct LayoutUnit usgae in RenderThemeQt and RenderThemeQStyle
2675         https://bugs.webkit.org/show_bug.cgi?id=83376
2676
2677         Reviewed by Eric Seidel.
2678
2679         Calculating the progress animation using the pixel-snapped RenderProgress size instead
2680         of the internal sub-pixel version.
2681
2682         * WebCoreSupport/RenderThemeQStyle.cpp:
2683         (WebCore::RenderThemeQStyle::animationDurationForProgressBar):
2684
2685 2012-04-05  Patrick Gansterer  <paroga@webkit.org>
2686
2687         [Qt] Correct <wtf/*.h> include paths.
2688         https://bugs.webkit.org/show_bug.cgi?id=83270
2689
2690         Reviewed by Eric Seidel.
2691
2692         Modify the #include declerations so that the
2693         wtf types are included using the full path.
2694
2695         * Api/qwebpage.cpp:
2696         * WebCoreSupport/ContextMenuClientQt.h:
2697         * WebCoreSupport/EditorClientQt.h:
2698         * WebCoreSupport/FrameLoaderClientQt.h:
2699         * WebCoreSupport/InspectorServerQt.cpp:
2700
2701 2012-04-05  Csaba Osztrogonác  <ossy@webkit.org>
2702
2703         [Qt] Fix includes after QtDeclarative -> QtQML renaming
2704         https://bugs.webkit.org/show_bug.cgi?id=82195
2705
2706         Relanding r112651, because Qt5 is updated everywhere.
2707
2708         * declarative/experimental/plugin.cpp:
2709         * declarative/plugin.cpp:
2710         (WebKitQmlPlugin::initializeEngine):
2711
2712 2012-04-04  Andras Becsi  <andras.becsi@nokia.com>
2713
2714         [Qt][WK2] Make the WebView a subclass of Flickable
2715         https://bugs.webkit.org/show_bug.cgi?id=83033
2716
2717         Reviewed by Kenneth Rohde Christiansen.
2718
2719         Add needed dependency to quick-private for projects that include the WebView header.
2720
2721         * declarative/experimental/experimental.pri:
2722         * declarative/public.pri:
2723
2724 2012-04-03  Alexis Menard  <alexis.menard@openbossa.org>
2725
2726         [Part 2] We should use CSSPropertyID rather than integers when manipulating CSS property ids.
2727         https://bugs.webkit.org/show_bug.cgi?id=82977
2728
2729         Reviewed by Andreas Kling.
2730
2731         Update the code to use CSSPropertyID rather than an integer.
2732
2733         * Api/qwebelement.cpp:
2734         (QWebElement::setStyleProperty):
2735
2736 2012-04-02  Alexis Menard  <alexis.menard@openbossa.org>
2737
2738         We should use CSSPropertyID rather than integers when manipulating CSS property ids.
2739         https://bugs.webkit.org/show_bug.cgi?id=82941
2740
2741         Reviewed by Andreas Kling.
2742
2743         CSSPropertyID enum holds all the CSS property ids but many parts of WebKit treat the ids
2744         as integers. While it's not incorrect it is nicer to use the enum as a parameter of
2745         functions manipulating property ids, as we ensure that the value passed will be an
2746         existing value. It will also feel more correct after this patch that CSSProperty::id()
2747         return a value of the enum rather than an integer. As this modification is quite big this
2748         is the first part only so it will be easier to review.
2749
2750         * Api/qwebelement.cpp:
2751         (QWebElement::styleProperty): Adapt to the API change and also remove an unecessary name->id
2752         conversion.
2753
2754 2012-04-02  Casper van Donderen  <casper.vandonderen@nokia.com>
2755
2756         Qt: Doc: Fix typo which marks document to be printed in console font.
2757         https://bugs.webkit.org/show_bug.cgi?id=82893
2758
2759         Reviewed by Simon Hausmann.
2760
2761         The qtwebkit-bridge.qdoc file contained a typo where a \c {} was
2762         missing its closing curly bracket, this marked the rest of the page as
2763         text to be printed using the code/console font.
2764         * docs/qtwebkit-bridge.qdoc:
2765
2766 2012-04-02  Sheriff Bot  <webkit.review.bot@gmail.com>
2767
2768         Unreviewed, rolling out r112651.
2769         http://trac.webkit.org/changeset/112651
2770         https://bugs.webkit.org/show_bug.cgi?id=82887
2771
2772         It doesn't work with older Qt5 (Requested by Ossy on #webkit).
2773
2774         * declarative/experimental/plugin.cpp:
2775         * declarative/plugin.cpp:
2776         (WebKitQmlPlugin::initializeEngine):
2777
2778 2012-04-01  Jon Lee  <jonlee@apple.com>
2779
2780         Rename notification properties and functions
2781         https://bugs.webkit.org/show_bug.cgi?id=80482
2782         <rdar://problem/10912432>
2783
2784         Reviewed by Kentaro Hara.
2785
2786         * WebCoreSupport/NotificationPresenterClientQt.cpp:
2787         (WebCore::NotificationPresenterClientQt::show): Refactor to call tag().
2788         (WebCore::NotificationPresenterClientQt::removeReplacedNotificationFromQueue): Refactor to call tag().
2789
2790 2012-03-30  Emil A Eklund  <eae@chromium.org>
2791
2792         Change WebKit/WebKit2 platform code to use pixel snapped values
2793         https://bugs.webkit.org/show_bug.cgi?id=82549
2794
2795         Reviewed by Eric Seidel.
2796
2797         * Api/qwebelement.cpp:
2798         (QWebElement::geometry):
2799         Replace getRect with getPixelSnappedRect to avoid having to expose
2800         subpixel types to the platform layer.
2801         
2802         * Api/qwebpage.cpp:
2803         (QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch):
2804         Use pixel snapped element rect when comparing with the touch rect as the
2805         touch rect use screen cordinates which are represented with pixel
2806         accuracy.
2807         
2808         * WebCoreSupport/ChromeClientQt.h:
2809         (WebCore::ChromeClientQt::scrollRectIntoView):
2810         Change scrollRectIntoView to take a LayoutRect to match base class
2811         interface.
2812
2813 2012-03-30  Mark Pilgrim  <pilgrim@chromium.org>
2814
2815         GEOLOCATION should be implemented as Page Supplement
2816         https://bugs.webkit.org/show_bug.cgi?id=82228
2817
2818         Reviewed by Adam Barth.
2819
2820         Geolocation is now a Supplement in Page so the interface
2821         has changed for setting up the page's geolocation client
2822         initially and accessing the controller later.
2823
2824         * Api/qwebpage.cpp:
2825         (QWebPagePrivate::QWebPagePrivate):
2826         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2827         (DumpRenderTreeSupportQt::resetGeolocationMock):
2828         (DumpRenderTreeSupportQt::setMockGeolocationPermission):
2829         (DumpRenderTreeSupportQt::setMockGeolocationPosition):
2830         (DumpRenderTreeSupportQt::setMockGeolocationError):
2831         (DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests):
2832         * WebCoreSupport/GeolocationClientQt.cpp:
2833         (WebCore::GeolocationClientQt::positionUpdated):
2834         (WebCore::GeolocationClientQt::startUpdating):
2835
2836 2012-03-29  Ádám Kallai  <kadam@inf.u-szeged.hu>
2837
2838         [Qt] Build fix by renameing QtDeclarative to QtQml in header calls.
2839         https://bugs.webkit.org/show_bug.cgi?id=82195
2840
2841         Reviewed by Simon Hausmann.
2842
2843         * declarative/experimental/plugin.cpp:
2844         * declarative/plugin.cpp:
2845         (WebKitQmlPlugin::initializeEngine):
2846
2847 2012-03-29  Sheriff Bot  <webkit.review.bot@gmail.com>
2848
2849         Unreviewed, rolling out r112553.
2850         http://trac.webkit.org/changeset/112553
2851         https://bugs.webkit.org/show_bug.cgi?id=82638
2852
2853         It made all tests crash on Qt WK2 (Requested by Ossy_away on
2854         #webkit).
2855
2856         * Api/qwebpage.cpp:
2857         (QWebPagePrivate::QWebPagePrivate):
2858         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2859         (DumpRenderTreeSupportQt::resetGeolocationMock):
2860         (DumpRenderTreeSupportQt::setMockGeolocationPermission):
2861         (DumpRenderTreeSupportQt::setMockGeolocationPosition):
2862         (DumpRenderTreeSupportQt::setMockGeolocationError):
2863         (DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests):
2864         * WebCoreSupport/GeolocationClientQt.cpp:
2865         (WebCore::GeolocationClientQt::positionUpdated):
2866         (WebCore::GeolocationClientQt::startUpdating):
2867
2868 2012-03-29  Mark Pilgrim  <pilgrim@chromium.org>
2869
2870         GEOLOCATION should be implemented as Page Supplement
2871         https://bugs.webkit.org/show_bug.cgi?id=82228
2872
2873         Reviewed by Adam Barth.
2874
2875         Geolocation is now a Supplement in Page so the interface
2876         has changed for setting up the page's geolocation client
2877         initially and accessing the controller later.
2878
2879         * Api/qwebpage.cpp:
2880         (QWebPagePrivate::QWebPagePrivate):
2881         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2882         (DumpRenderTreeSupportQt::resetGeolocationMock):
2883         (DumpRenderTreeSupportQt::setMockGeolocationPermission):
2884         (DumpRenderTreeSupportQt::setMockGeolocationPosition):
2885         (DumpRenderTreeSupportQt::setMockGeolocationError):
2886         (DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests):
2887         * WebCoreSupport/GeolocationClientQt.cpp:
2888         (WebCore::GeolocationClientQt::positionUpdated):
2889         (WebCore::GeolocationClientQt::startUpdating):
2890
2891 2012-03-28  Nate Chapin  <japhet@chromium.org>
2892
2893         Remove dispatchDidLoadMainResource callback, since no
2894         port implements it.
2895         https://bugs.webkit.org/show_bug.cgi?id=82539
2896
2897         Reviewed by Alexey Proskuryakov.
2898
2899         * WebCoreSupport/FrameLoaderClientQt.cpp:
2900         (WebCore):
2901         * WebCoreSupport/FrameLoaderClientQt.h:
2902         (FrameLoaderClientQt):
2903
2904 2012-03-20  Eric Seidel  <eric@webkit.org>
2905
2906         Move wtf/Platform.h from JavaScriptCore to Source/WTF/wtf
2907         https://bugs.webkit.org/show_bug.cgi?id=80911
2908
2909         Reviewed by Adam Barth.
2910
2911         Fix WTF header include paths since although
2912         Source/WTF is included, no longer are all the
2913         subdirectories (thus "RefPtr.h" can't work).
2914
2915         * Api/qwebdatabase_p.h:
2916         * Api/qwebscriptworld_p.h:
2917         * Api/qwebsecurityorigin_p.h:
2918         * WebCoreSupport/InspectorClientQt.h:
2919         * WebCoreSupport/QtFallbackWebPopup.h:
2920         * WebCoreSupport/QtWebComboBox.h:
2921         * declarative/experimental/experimental.pri:
2922         * declarative/public.pri:
2923         * tests/MIMESniffing/MIMESniffing.pro:
2924
2925 2012-03-19  Adam Barth  <abarth@webkit.org>
2926
2927         Remove support for "magic" iframe
2928         https://bugs.webkit.org/show_bug.cgi?id=81590
2929
2930         Reviewed by Eric Seidel.
2931
2932         Remove FrameLoaderClient methods that no longer exist.
2933
2934         * WebCoreSupport/FrameLoaderClientQt.cpp:
2935         (WebCore):
2936         * WebCoreSupport/FrameLoaderClientQt.h:
2937         (FrameLoaderClientQt):
2938
2939 2012-03-19  Emil A Eklund  <eae@chromium.org>
2940
2941         [mac/qt/chromium] Change platform code to use pixelSnappedRect methods
2942         https://bugs.webkit.org/show_bug.cgi?id=81016
2943
2944         Reviewed by Eric Seidel.
2945
2946         * Api/qwebelement.cpp:
2947         (QWebElement::geometry):
2948         (QWebElement::render):
2949
2950 2012-03-16  Teemu Katajisto  <teemu.katajisto@digia.com>
2951
2952         [Qt] QtWebKit documentation missing a few since 4.6 information
2953         https://bugs.webkit.org/show_bug.cgi?id=81328
2954
2955         Reviewed by Simon Hausmann.
2956
2957         * Api/qwebpage.cpp:
2958         * Api/qwebsettings.cpp:
2959
2960 2012-03-15  Yuta Kitamura  <yutak@chromium.org>
2961
2962         [Qt] Change default WebSocket protocol to the latest one
2963         https://bugs.webkit.org/show_bug.cgi?id=73630
2964
2965         Reviewed by Simon Hausmann.
2966
2967         * Api/qwebpage.cpp:
2968         (QWebPagePrivate::QWebPagePrivate):
2969         Use RFC6455 WebSocket protocol by default.
2970
2971 2012-03-07  Jon Lee  <jonlee@apple.com>
2972
2973         Move NotificationContents into Notification
2974         https://bugs.webkit.org/show_bug.cgi?id=80487
2975         <rdar://problem/10965519>
2976
2977         Reviewed by Jian Li.
2978
2979         Refactor to use accessor methods on Notification.
2980         * WebCoreSupport/NotificationPresenterClientQt.cpp:
2981         (WebCore::NotificationWrapper::title):
2982         (WebCore::NotificationWrapper::message):
2983         (WebCore::NotificationPresenterClientQt::displayNotification):
2984         (WebCore::NotificationPresenterClientQt::cancel):
2985         (WebCore::NotificationPresenterClientQt::notificationClicked):
2986         (WebCore::NotificationPresenterClientQt::dumpReplacedIdText):
2987         (WebCore::NotificationPresenterClientQt::dumpShowText):
2988
2989 2012-03-13  Jon Lee  <jonlee@apple.com>
2990
2991         Separate NOTIFICATIONS and LEGACY_NOTIFICATIONS
2992         https://bugs.webkit.org/show_bug.cgi?id=80922
2993         <rdar://problem/11035082>
2994
2995         Reviewed by Jian Li.
2996
2997         You can include either NOTIFICATIONS or LEGACY_NOTIFICATIONS and have a complete API.
2998         LEGACY_NOTIFICATIONS should cover all of the previous functionality, and NOTIFICATIONS will cover the
2999         new API. Therefore, APIs that are common between the two will have:
3000         #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
3001
3002         This patch initially sets both to be exactly the same. As other bugs with patches begin to migrate to
3003         the new API, the defines will begin to split. This allows ports to decide which set of APIs to include.
3004
3005         Update everything to be #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
3006         * Api/qwebpage.cpp:
3007         (QWebPagePrivate::QWebPagePrivate):
3008         (QWebPagePrivate::~QWebPagePrivate):
3009         (QWebPage::setFeaturePermission):
3010         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3011         (DumpRenderTreeSupportQt::dumpNotification):
3012         (DumpRenderTreeSupportQt::simulateDesktopNotificationClick):
3013         * WebCoreSupport/NotificationPresenterClientQt.cpp:
3014         (WebCore):
3015         (WebCore::NotificationWrapper::NotificationWrapper):
3016         (WebCore::NotificationWrapper::close):
3017         (WebCore::NotificationWrapper::title):
3018         (WebCore::NotificationWrapper::message):
3019         (WebCore::NotificationWrapper::iconData):
3020         (WebCore::NotificationWrapper::openerPageUrl):
3021         (WebCore::NotificationWrapper::notificationClicked):
3022         (WebCore::NotificationWrapper::notificationClosed):
3023         * WebCoreSupport/NotificationPresenterClientQt.h:
3024         (WebCore):
3025
3026 2012-03-14  Csaba Osztrogonác  <ossy@webkit.org>
3027
3028         Last buildfix for Qt after r110595. :)
3029
3030         Reviewed by Benjamin Poulain.
3031
3032         * Api/qwebpage.cpp:
3033         * WebCoreSupport/GeolocationClientQt.h:
3034
3035 2012-03-13  Benjamin Poulain  <bpoulain@apple.com>
3036
3037         Attempt to fix QtMinimal bot after r110595
3038
3039         * Api/qwebpage.cpp:
3040         (QWebPagePrivate::QWebPagePrivate):
3041
3042 2012-03-13  Benjamin Poulain  <bpoulain@apple.com>
3043
3044         Another attempt at fixing QtMinimal bot after r110595
3045
3046         Blind fix, unreviewed.
3047
3048         * WebCoreSupport/GeolocationClientQt.h:
3049
3050 2012-03-13  Benjamin Poulain  <bpoulain@apple.com>
3051
3052         Attempt to fix QtMinimal bot after r110595
3053
3054         Blind fix, unreviewed.
3055
3056         * Api/qwebpage.cpp:
3057         (QWebPagePrivate::QWebPagePrivate):
3058         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3059         (DumpRenderTreeSupportQt::resetGeolocationMock):
3060         (DumpRenderTreeSupportQt::setMockGeolocationPermission):
3061         (DumpRenderTreeSupportQt::setMockGeolocationPosition):
3062         (DumpRenderTreeSupportQt::setMockGeolocationError):
3063         (DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests):
3064         * WebCoreSupport/GeolocationPermissionClientQt.h:
3065
3066 2012-03-13  Adam Barth  <abarth@webkit.org> && Benjamin Poulain  <bpoulain@apple.com>
3067
3068         Always enable ENABLE(CLIENT_BASED_GEOLOCATION)
3069         https://bugs.webkit.org/show_bug.cgi?id=78853
3070
3071         Reviewed by Adam Barth.
3072
3073         * Api/qwebpage.cpp:
3074         (QWebPagePrivate::QWebPagePrivate):
3075         * WebCoreSupport/ChromeClientQt.h:
3076         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3077         (toGeolocationClientMock):
3078         (DumpRenderTreeSupportQt::resetGeolocationMock):
3079         (DumpRenderTreeSupportQt::setMockGeolocationPermission):
3080         (DumpRenderTreeSupportQt::setMockGeolocationPosition):
3081         (DumpRenderTreeSupportQt::setMockGeolocationError):
3082         (DumpRenderTreeSupportQt::numberOfPendingGeolocationPermissionRequests):
3083         * WebCoreSupport/GeolocationClientQt.h:
3084         (WebCore):
3085
3086 2012-03-12  Antonio Gomes  <agomes@rim.com>
3087
3088         Convert nodesFromRect tests to use Internals interface
3089         https://bugs.webkit.org/show_bug.cgi?id=80886
3090
3091         Reviewed by Ryosuke Niwa.
3092
3093         Removed DRTSupportQt::nodesFromRect support, since
3094         it can work in the cross-port way through the
3095         Internals interface.
3096
3097         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3098         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3099
3100 2012-03-09  Jon Lee  <jonlee@apple.com>
3101
3102         Rename NotificationPresenter to NotificationClient
3103         https://bugs.webkit.org/show_bug.cgi?id=80488
3104         <rdar://problem/10965558>
3105
3106         Reviewed by Kentaro Hara.
3107
3108         Refactor to use renamed WebCore::NotificationClient.
3109         * WebCoreSupport/NotificationPresenterClientQt.cpp:
3110         (WebCore::NotificationPresenterClientQt::checkPermission):
3111         (WebCore::NotificationPresenterClientQt::allowNotificationForFrame):
3112         * WebCoreSupport/NotificationPresenterClientQt.h:
3113         (NotificationPresenterClientQt):
3114
3115 2012-03-09  Emil A Eklund  <eae@chromium.org>
3116
3117         Add roundedPoint to HitTestResult and change platform code to use it
3118         https://bugs.webkit.org/show_bug.cgi?id=80715
3119
3120         Reviewed by James Robinson.
3121
3122         Change ports to use roundedPoint to avoid exposing subpixel types to
3123         platform code.
3124
3125         * Api/qwebframe.cpp:
3126         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
3127
3128 2012-03-09  Jon Lee  <jonlee@apple.com>
3129
3130         Add support for ENABLE(LEGACY_NOTIFICATIONS)
3131         https://bugs.webkit.org/show_bug.cgi?id=80497
3132
3133         Reviewed by Adam Barth.
3134
3135         Prep for b80472: Update API for Web Notifications
3136         * examples/platformplugin/platformplugin.pro:
3137
3138 2012-03-09  Csaba Osztrogonác  <ossy@webkit.org>
3139
3140         [Qt] Fix compilation without QtQuick1
3141         https://bugs.webkit.org/show_bug.cgi?id=80503
3142
3143         Qt 4.8 API test fix after r110050.
3144
3145         Reviewed by Zoltan Herczeg.
3146
3147         * declarative/public.pri: Add load(features) to ensure HAVE_QQUICK1=1 is set.
3148
3149 2012-03-08  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
3150
3151         [Qt] Use Qt's module system for install rules and depending on QtWebKit
3152
3153         Instead of rolling our own install rules we now use the same approach as
3154         every other Qt module, by loading qt_module.prf and qt_module_config.prf.
3155
3156         This ensures that we follow the same semantics as the rest of Qt on
3157         what sort of config options are enabled by default (create_cmake eg.).
3158         It also allows us to use QT += webkit instead of the workaround we had
3159         with CONFIG += qtwebkit.
3160
3161         We do however force Qt to always treat our build as a non-developer build,
3162         so the libraries will end up in the WebKit lib directory instead of the
3163         qtbase directory (as with a normal developer-build). This allows us to
3164         keep the webkit-build self-contained. If Qt is a developer build we still
3165         copy the module file manually to Qt, so that you don't have to install
3166         WebKit to make it available.
3167
3168         For non-developer builds of Qt, it is still possible to use the built
3169         WebKit libraries without having to install them, by having the variable
3170         QMAKE_EXTRA_MODULE_FORWARDS set in the project's .qmake.cache file,
3171         pointing to $WEBKITOUTUTDIR/$CONFIGURATION/modules.
3172
3173         https://bugs.webkit.org/show_bug.cgi?id=80590
3174
3175         Reviewed by Simon Hausmann.
3176
3177         * declarative/experimental/experimental.pri:
3178         * declarative/experimental/plugin.cpp:
3179         * declarative/plugin.cpp:
3180         * declarative/public.pri:
3181         * tests/tests.pri:
3182
3183 2012-03-08  Antti Koivisto  <antti@apple.com>
3184
3185         https://bugs.webkit.org/show_bug.cgi?id=80370
3186         Enable matched declaration caching for elements with a style attribute
3187
3188         Reviewed by Andreas Kling
3189
3190         * Api/qwebelement.cpp:
3191         (QWebElement::styleProperty):
3192         (QWebElement::setStyleProperty):
3193
3194 2012-03-07  Simon Hausmann  <simon.hausmann@nokia.com>
3195
3196         [Qt] Fix compilation without QtQuick1
3197         https://bugs.webkit.org/show_bug.cgi?id=80503
3198
3199         Reviewed by Tor Arne Vestbø.
3200
3201         Compile and enable the QtQuick1/QML1 plugin and webview
3202         only if we're using Qt 4 at the moment. QQuick1 clashes
3203         with QQuick2 right now because both declare QDeclarativeEngine
3204         and friends as classes.
3205
3206         * declarative/plugin.cpp:
3207         (WebKitQmlPlugin::registerTypes):
3208         * declarative/public.pri:
3209         * tests/tests.pri:
3210
3211 2012-03-07  Kangil Han  <kangil.han@samsung.com>
3212
3213         [DRT] Remove PlainTextController implementations.
3214         https://bugs.webkit.org/show_bug.cgi?id=79959
3215
3216         Reviewed by Hajime Morita.
3217
3218         PlainTextController usages in existing tests have been
3219         replaced by internals API by bug 78570.
3220         So this patch will remove PlainTextController implementations
3221         to avoid further usage in new tests.
3222
3223         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3224         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3225
3226 2012-03-06  Philippe Normand  <pnormand@igalia.com>
3227
3228         [GStreamer] disable GStreamerGWorld when building against 0.11
3229         https://bugs.webkit.org/show_bug.cgi?id=77088
3230
3231         Reviewed by Martin Robinson.
3232
3233         * WebCoreSupport/ChromeClientQt.cpp:
3234         (WebCore::ChromeClientQt::ChromeClientQt):
3235         (WebCore::ChromeClientQt::~ChromeClientQt):
3236         (WebCore):
3237         * WebCoreSupport/FullScreenVideoQt.cpp:
3238         (WebCore):
3239         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
3240         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
3241         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
3242         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
3243         (WebCore::FullScreenVideoQt::isValid):
3244         * WebCoreSupport/FullScreenVideoQt.h:
3245         (WebCore):
3246
3247 2012-03-03  Simon Hausmann  <simon.hausmann@nokia.com>
3248
3249         [Qt] Fix static_libs_as_shared build
3250         https://bugs.webkit.org/show_bug.cgi?id=80214
3251
3252         Reviewed by Tor Arne Vestbø.
3253
3254         Add helper function to be called by WebProcess main
3255         to potentially initialize the QStyle theme.
3256
3257         * WebCoreSupport/InitWebCoreQt.cpp:
3258         (WebKit):
3259         (WebKit::initializeWebKit2Theme):
3260
3261 2012-03-02  Casper van Donderen  <casper.vandonderen@nokia.com>
3262
3263         [Qt] Documentation cleanup
3264         https://bugs.webkit.org/show_bug.cgi?id=80131
3265
3266         Reviewed by Simon Hausmann.
3267
3268         QDoc uses different commands to do bold, lists, and italics.
3269         This change updates the documentation accordingly.
3270         QTBUG-24578
3271
3272         * Api/qwebframe.cpp:
3273         * Api/qwebhistory.cpp:
3274         * Api/qwebinspector.cpp:
3275         * Api/qwebpage.cpp:
3276         * Api/qwebpluginfactory.cpp:
3277         * Api/qwebsettings.cpp:
3278         * declarative/qdeclarativewebview.cpp:
3279         * docs/qtwebkit-bridge.qdoc:
3280         * docs/qtwebkit.qdoc:
3281         * docs/qtwebkit.qdocconf:
3282
3283 2012-03-02  Simon Hausmann  <simon.hausmann@nokia.com>
3284
3285         [Qt] Build system cleanup
3286
3287         Rubber-stamped by Antti Koivisto.
3288
3289         * tests/MIMESniffing/MIMESniffing.pro: Don't link in WTFAssertions.cpp for ASSERT, now
3290         that the symbols are properly exported with export macros from the DLL.
3291
3292 2012-03-02  Simon Hausmann  <simon.hausmann@nokia.com>
3293
3294         [Qt] Move QStyle theming code out of WebCore into WebKit1
3295         https://bugs.webkit.org/show_bug.cgi?id=80128
3296
3297         Reviewed by Kenneth Rohde Christiansen.
3298
3299         Moved the bulk of the QStyle dependant code here, where it's okay to depend on QtWidgets/QStyle.
3300         Install the QStyle factory functions in initWebCoreQt.cpp.
3301
3302         * Api/qwebpage.cpp:
3303         (QWebPage::swallowContextMenuEvent):
3304         * WebCoreSupport/InitWebCoreQt.cpp:
3305         (WebCore::initializeWebCoreQt):
3306         * WebCoreSupport/RenderThemeQStyle.cpp: Renamed from Source/WebCore/platform/qt/RenderThemeQStyle.cpp.
3307         (WebCore):
3308         (WebCore::initStyleOption):
3309         (WebCore::RenderThemeQStyle::getStylePainter):
3310         (WebCore::StylePainterQStyle::StylePainterQStyle):
3311         (WebCore::StylePainterQStyle::init):
3312         (WebCore::RenderThemeQStyle::create):
3313         (WebCore::RenderThemeQStyle::RenderThemeQStyle):
3314         (WebCore::RenderThemeQStyle::~RenderThemeQStyle):
3315         (WebCore::RenderThemeQStyle::fallbackStyle):
3316         (WebCore::RenderThemeQStyle::qStyle):
3317         (WebCore::RenderThemeQStyle::findFrameLineWidth):
3318         (WebCore::RenderThemeQStyle::inflateButtonRect):
3319         (WebCore::RenderThemeQStyle::computeSizeBasedOnStyle):
3320         (WebCore::RenderThemeQStyle::adjustButtonStyle):
3321         (WebCore::RenderThemeQStyle::setButtonPadding):
3322         (WebCore::RenderThemeQStyle::paintButton):
3323         (WebCore::RenderThemeQStyle::paintTextField):
3324         (WebCore::RenderThemeQStyle::adjustTextAreaStyle):
3325         (WebCore::RenderThemeQStyle::paintTextArea):
3326         (WebCore::RenderThemeQStyle::setPopupPadding):
3327         (WebCore::RenderThemeQStyle::paintMenuList):
3328         (WebCore::RenderThemeQStyle::adjustMenuListButtonStyle):
3329         (WebCore::RenderThemeQStyle::paintMenuListButton):
3330         (WebCore::RenderThemeQStyle::animationDurationForProgressBar):
3331         (WebCore::RenderThemeQStyle::paintProgressBar):
3332         (WebCore::RenderThemeQStyle::paintSliderTrack):
3333         (WebCore::RenderThemeQStyle::adjustSliderTrackStyle):
3334         (WebCore::RenderThemeQStyle::paintSliderThumb):
3335         (WebCore::RenderThemeQStyle::adjustSliderThumbStyle):
3336         (WebCore::RenderThemeQStyle::paintSearchField):
3337         (WebCore::RenderThemeQStyle::adjustSearchFieldDecorationStyle):
3338         (WebCore::RenderThemeQStyle::paintSearchFieldDecoration):
3339         (WebCore::RenderThemeQStyle::adjustSearchFieldResultsDecorationStyle):
3340         (WebCore::RenderThemeQStyle::paintSearchFieldResultsDecoration):
3341         (WebCore::RenderThemeQStyle::paintInnerSpinButton):
3342         (WebCore::RenderThemeQStyle::initializeCommonQStyleOptions):
3343         (WebCore::RenderThemeQStyle::adjustSliderThumbSize):
3344         * WebCoreSupport/RenderThemeQStyle.h: Renamed from Source/WebCore/platform/qt/RenderThemeQStyle.h.
3345         (WebCore):
3346         (RenderThemeQStyle):
3347         (StylePainterQStyle):
3348         (WebCore::StylePainterQStyle::isValid):
3349         (WebCore::StylePainterQStyle::drawPrimitive):
3350         (WebCore::StylePainterQStyle::drawControl):
3351         (WebCore::StylePainterQStyle::drawComplexControl):
3352         * WebCoreSupport/ScrollbarThemeQStyle.cpp: Copied from Source/WebCore/platform/qt/ScrollbarThemeQt.cpp.
3353         (WebCore):
3354         (WebCore::ScrollbarThemeQStyle::~ScrollbarThemeQStyle):
3355         (WebCore::scPart):
3356         (WebCore::scrollbarPart):
3357         (WebCore::styleOptionSlider):
3358         (WebCore::ScrollbarThemeQStyle::paint):
3359         (WebCore::ScrollbarThemeQStyle::hitTest):
3360         (WebCore::ScrollbarThemeQStyle::shouldCenterOnThumb):
3361         (WebCore::ScrollbarThemeQStyle::invalidatePart):
3362         (WebCore::ScrollbarThemeQStyle::scrollbarThickness):
3363         (WebCore::ScrollbarThemeQStyle::thumbPosition):
3364         (WebCore::ScrollbarThemeQStyle::thumbLength):
3365         (WebCore::ScrollbarThemeQStyle::trackPosition):
3366         (WebCore::ScrollbarThemeQStyle::trackLength):
3367         (WebCore::ScrollbarThemeQStyle::paintScrollCorner):
3368         (WebCore::ScrollbarThemeQStyle::style):
3369         * WebCoreSupport/ScrollbarThemeQStyle.h: Renamed from Source/WebCore/platform/qt/ScrollbarThemeQt.h.
3370         (WebCore):
3371         (ScrollbarThemeQStyle):
3372
3373 2012-02-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3374
3375         [Qt] Move registration of experimental types to the proper plugin
3376         https://bugs.webkit.org/show_bug.cgi?id=79706
3377
3378         Reviewed by Tor Arne Vestbø.
3379
3380         * declarative/experimental/plugin.cpp:
3381         * declarative/plugin.cpp:
3382         (WebKitQmlPlugin::registerTypes):
3383
3384 2012-02-28  Antti Koivisto  <antti@apple.com>
3385
3386         Try to fix build.
3387
3388         Not reviewed.
3389
3390         * Api/qwebelement.cpp:
3391         (QWebElement::styleProperty):
3392
3393 2012-02-26  Hajime Morrita  <morrita@chromium.org>
3394
3395         Move ChromeClient::showContextMenu() to ContextMenuClient
3396         https://bugs.webkit.org/show_bug.cgi?id=79427
3397
3398         Reviewed by Adam Barth.
3399
3400         * WebCoreSupport/ChromeClientQt.h:
3401         (ChromeClientQt):
3402
3403 2012-02-24  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
3404
3405         [Qt] API: Unify the loading properties and signals.
3406         https://bugs.webkit.org/show_bug.cgi?id=79486
3407
3408         Reviewed by Simon Hausmann.
3409
3410         * declarative/plugin.cpp:
3411         (WebKitQmlPlugin::registerTypes):
3412
3413 2012-02-24  Holger Hans Peter Freyther  <holger@moiji-mobile.com>
3414
3415         [Qt] Build fix. macro "QSKIP" now only takes 1 argument on Qt5
3416         https://bugs.webkit.org/show_bug.cgi?id=79328
3417
3418         Reviewed by Csaba Osztrogonác.
3419
3420         Introduce an alternative QSKIP that can work with both Qt4
3421         and Qt5 without adding #ifdef to each usage site.
3422
3423         * tests/benchmarks/loading/tst_loading.cpp:
3424         (tst_Loading::load):
3425         * tests/benchmarks/painting/tst_painting.cpp:
3426         (tst_Painting::paint):
3427         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
3428         (tst_QDeclarativeWebView::elementAreaAt):
3429         * tests/qwebframe/tst_qwebframe.cpp:
3430         (tst_QWebFrame::setHtmlWithBaseURL):
3431         * tests/qwebpage/tst_qwebpage.cpp:
3432         (tst_QWebPage::geolocationRequestJS):
3433         (tst_QWebPage::loadHtml5Video):
3434         (tst_QWebPage::screenshot):
3435         * tests/qwebview/tst_qwebview.cpp:
3436         (tst_QWebView::reusePage):
3437
3438 2012-02-24  Shinya Kawanaka  <shinyak@chromium.org>
3439
3440         SpellCheckRequest needs to know the context where the spellcheck happened.
3441         https://bugs.webkit.org/show_bug.cgi?id=79320
3442
3443         Reviewed by Hajime Morita.
3444
3445         * WebCoreSupport/TextCheckerClientQt.h:
3446         (WebCore::TextCheckerClientQt::requestCheckingOfString):
3447
3448 2012-02-23  Simon Hausmann  <simon.hausmann@nokia.com>
3449
3450         [Qt] Add support for touch cancellation
3451         https://bugs.webkit.org/show_bug.cgi?id=79348
3452
3453         Reviewed by Kenneth Rohde Christiansen.
3454
3455         Forward incoming touch cancellation events to the WebCore
3456         event handler.
3457
3458         * Api/qgraphicswebview.cpp:
3459         (QGraphicsWebView::sceneEvent):
3460         * Api/qwebpage.cpp:
3461         (QWebPage::event):
3462         * Api/qwebview.cpp:
3463         (QWebView::event):
3464
3465 2012-02-22  Hajime Morrita  <morrita@chromium.org>
3466
3467         NOTIFICATIONS should be implemented as PageSupplement
3468         https://bugs.webkit.org/show_bug.cgi?id=79052
3469
3470         Reviewed by Adam Barth.
3471
3472         * Api/qwebpage.cpp:
3473         (QWebPagePrivate::QWebPagePrivate):
3474
3475 2012-02-21  Ryosuke Niwa  <rniwa@webkit.org>
3476
3477         Remove the remaining uses of CSSStyleDeclaration in Editor
3478         https://bugs.webkit.org/show_bug.cgi?id=78939
3479
3480         Reviewed by Enrica Casucci.
3481
3482         * WebCoreSupport/EditorClientQt.cpp:
3483         (WebCore::EditorClientQt::shouldApplyStyle):
3484         * WebCoreSupport/EditorClientQt.h:
3485         (EditorClientQt):
3486
3487 2012-02-22  Mihnea Ovidenie  <mihnea@adobe.com>
3488
3489         [Qt] REGRESSION(r108108): It made 3 fast/repaint tests fail
3490         https://bugs.webkit.org/show_bug.cgi?id=78960
3491
3492         Reviewed by Csaba Osztrogonác.
3493
3494         * Api/qwebsettings.cpp:
3495         (QWebSettingsPrivate::apply):
3496         (QWebSettings::QWebSettings):
3497         * Api/qwebsettings.h:
3498
3499 2012-02-22  Simon Hausmann  <simon.hausmann@nokia.com>
3500
3501         [Qt] Move QMenu dependant scrollbar context menu handling out of WebCore
3502         https://bugs.webkit.org/show_bug.cgi?id=79233
3503
3504         Reviewed by Kenneth Rohde Christiansen.
3505
3506         Move scrollbar context menu handling here, it's the only place where it is
3507         used.
3508
3509         * Api/qwebpage.cpp:
3510         (handleScrollbarContextMenuEvent):
3511         (QWebPage::swallowContextMenuEvent):
3512
3513 2012-02-22  Kenneth Rohde Christiansen  <kenneth@webkit.org>
3514
3515         Merge setVisibleRectTrajectoryVector and adjustVisibleRect to
3516         the more descriptive coverWithTilesIfNeeded
3517         https://bugs.webkit.org/show_bug.cgi?id=79230
3518
3519         Reviewed by Simon Hausmann.
3520
3521         * Api/qgraphicswebview.cpp:
3522         (QGraphicsWebView::paint):
3523
3524             Use coverWithTilesIfNeeded().
3525
3526 2012-02-22  Ryosuke Niwa  <rniwa@webkit.org>
3527
3528         Remove the remaining uses of CSSStyleDeclaration in Editor
3529         https://bugs.webkit.org/show_bug.cgi?id=78939
3530
3531         Reviewed by Enrica Casucci.
3532
3533         * WebCoreSupport/EditorClientQt.cpp:
3534         (WebCore::EditorClientQt::shouldApplyStyle):
3535         * WebCoreSupport/EditorClientQt.h:
3536         (EditorClientQt):
3537
3538 2012-02-21  Csaba Osztrogonác  <ossy@webkit.org>
3539
3540         [Qt] tst_QWebPage::infiniteLoopJS() timeouts with DFG JIT
3541         https://bugs.webkit.org/show_bug.cgi?id=79040
3542
3543         Reviewed by Simon Hausmann.
3544
3545         * tests/qwebpage/tst_qwebpage.cpp:
3546         (tst_QWebPage): Disable tst_QWebPage::infiniteLoopJS() until proper fix.
3547
3548 2012-02-21  Andras Becsi  <andras.becsi@nokia.com>
3549
3550         [Qt] Print warning when importing experimental WK2 APIs in QML
3551         https://bugs.webkit.org/show_bug.cgi?id=78817
3552
3553         Reviewed by Simon Hausmann.
3554
3555         * declarative/experimental/plugin.cpp:
3556
3557 2012-02-20  Benjamin Poulain  <benjamin@webkit.org>
3558
3559         Get rid of the LocalizationStrategy
3560         https://bugs.webkit.org/show_bug.cgi?id=78324
3561
3562         Reviewed by Sam Weinig.
3563
3564         Move the localization code from PlatformStrategiesQt.cpp
3565         to LocalizedStringsQt.cpp.
3566
3567         Get rid of LocalizationStrategy from PlatformStrategiesQt
3568
3569         * WebCoreSupport/PlatformStrategiesQt.cpp:
3570         * WebCoreSupport/PlatformStrategiesQt.h:
3571         (PlatformStrategiesQt):
3572
3573 2012-02-16  Simon Hausmann  <simon.hausmann@nokia.com>
3574
3575         Unreviewed brown-paper bag build fix.
3576
3577         * WebCoreSupport/WebEventConversion.cpp:
3578         (WebCore::WebKitPlatformWheelEvent::WebKitPlatformWheelEvent):
3579