Unreviewed, rolling out r100448.
[WebKit.git] / Source / WebKit / qt / ChangeLog
1 2011-11-16  Sheriff Bot  <webkit.review.bot@gmail.com>
2
3         Unreviewed, rolling out r100448.
4         http://trac.webkit.org/changeset/100448
5         https://bugs.webkit.org/show_bug.cgi?id=72512
6
7         It caused a regression breaking LayoutTests/http/tests/loading
8         /text-content-type-with-binary-extension.html (Requested by
9         jeez_ on #webkit).
10
11         * WebCoreSupport/FrameLoaderClientQt.cpp:
12         (WebCore::FrameLoaderClientQt::canShowMIMEType):
13
14 2011-11-16  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
15
16         [Qt] FrameLoaderClientQt::canShowMIMEType should always return true
17         https://bugs.webkit.org/show_bug.cgi?id=72169
18
19         Reviewed by Simon Hausmann.
20
21         Currently FrameLoaderClientQt::canShowMIMEType is called after
22         dispatchDecidePolicyForResponse. If decidePolicyForResponse returns
23         PolicyUse and canShowMIMEType returns false, then we have a bug.
24         Therefore, FrameLoaderClientQt::canShowMIMEType now will always
25         return true, following the implemenation of WebKit2.
26
27         * WebCoreSupport/FrameLoaderClientQt.cpp:
28         (WebCore::FrameLoaderClientQt::canShowMIMEType):
29
30 2011-11-15  Huang Dongsung  <luxtella@company100.net>
31
32         [TexMap][Qt] Start PageClientQ[Graphics]Widget::syncTimer only when the syncTimer
33         is inactive.
34         https://bugs.webkit.org/show_bug.cgi?id=70407
35
36         Make sure we only activate the synchronization timer in
37         PageClientQWidget/PageClientQGraphicsWidget if it's not already active,
38         otherwise syncLayers may be called redundantly.
39
40         Reviewed by Noam Rosenthal.
41
42         * WebCoreSupport/PageClientQt.cpp:
43         (WebCore::PageClientQWidget::markForSync):
44         (WebCore::PageClientQWidget::syncLayers):
45         (WebCore::PageClientQGraphicsWidget::syncLayers):
46         (WebCore::PageClientQGraphicsWidget::markForSync):
47         * WebCoreSupport/PageClientQt.h:
48         (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
49
50 2011-11-15  Jochen Eisinger  <jochen@chromium.org>
51
52         Rename ReferrerPolicy to clarify its meaning
53         https://bugs.webkit.org/show_bug.cgi?id=72420
54
55         Reviewed by Nate Chapin.
56
57         * Api/qwebpage.cpp:
58         (openNewWindow):
59         (QWebPage::triggerAction):
60
61 2011-11-15  Anders Carlsson  <andersca@apple.com>
62
63         HostWindow screenToWindow/windowToScreen should be screenToRootView/rootViewToScreen
64         https://bugs.webkit.org/show_bug.cgi?id=72397
65
66         Reviewed by Dan Bernstein.
67
68         * WebCoreSupport/ChromeClientQt.cpp:
69         (WebCore::ChromeClientQt::rootViewToScreen):
70         (WebCore::ChromeClientQt::screenToRootView):
71         * WebCoreSupport/ChromeClientQt.h:
72
73 2011-11-14  Anders Carlsson  <andersca@apple.com>
74
75         HostWindow invalidation functions should use root view coordinates
76         https://bugs.webkit.org/show_bug.cgi?id=72338
77
78         Reviewed by Dan Bernstein.
79
80         * WebCoreSupport/ChromeClientQt.cpp:
81         (WebCore::ChromeClientQt::invalidateRootView):
82         (WebCore::ChromeClientQt::invalidateContentsAndRootView):
83         (WebCore::ChromeClientQt::invalidateContentsForSlowScroll):
84         * WebCoreSupport/ChromeClientQt.h:
85
86 2011-11-11  Pierre Rossi  <pierre.rossi@gmail.com>
87
88         [Qt] Remove the QStyle dependency in Qt's mobile theme
89         https://bugs.webkit.org/show_bug.cgi?id=67773
90
91         This refactoring splits up RenderThemeQt with two
92         subclasses, a QStyle-backed one, and a Mobile version
93         that uses the old mobile theme for now.
94
95         QStyle availability is detected at compile time, and
96         its use is determined by the QT_WEBKIT_USE_MOBILE_THEME
97         environment variable.
98
99         Reviewed by Simon Hausmann.
100
101         * Api/qwebpage.cpp:
102         (QWebPage::swallowContextMenuEvent):
103         * tests/tests.pri:
104
105 2011-11-11  Luiz Agostini  <luiz.agostini@palm.com>
106
107         [Qt] Removing unneeded #ifdef from PopupMenuQt.cpp
108         https://bugs.webkit.org/show_bug.cgi?id=72193
109
110         Reviewed by Noam Rosenthal.
111
112         Part of PopupMenuQt.cpp code is guarded by #ifndef QT_NO_COMBOBOX although that
113         code is not related to the class QComboBox.
114
115         * WebCoreSupport/PopupMenuQt.cpp:
116         (WebCore::PopupMenuQt::show):
117
118 2011-11-11  Bruno de Oliveira Abinader  <bruno.abinader@basyskom.com>
119
120         [Qt] Skip tests when no network is present
121         https://bugs.webkit.org/show_bug.cgi?id=72031
122
123         Reviewed by Simon Hausmann.
124
125         Some benchmark tests requires network connection (they fetch data from
126         external URL's) and so they fail if no network is present. These tests
127         should be skipped instead.
128
129         * tests/benchmarks/loading/tst_loading.cpp:
130         (tst_Loading::load): Skip test if no network is present.
131         * tests/benchmarks/painting/tst_painting.cpp:
132         (tst_Painting::paint): Skip test if no network is present.
133
134 2011-11-11  Sheriff Bot  <webkit.review.bot@gmail.com>
135
136         Unreviewed, rolling out r99964.
137         http://trac.webkit.org/changeset/99964
138         https://bugs.webkit.org/show_bug.cgi?id=72124
139
140         Broke too many Qt tests (Requested by tronical_ on #webkit).
141
142         * Api/qwebpage.cpp:
143         (QWebPage::swallowContextMenuEvent):
144         * tests/tests.pri:
145
146 2011-11-11  Pierre Rossi  <pierre.rossi@gmail.com>
147
148         [Qt] Remove the QStyle dependency in Qt's mobile theme
149         https://bugs.webkit.org/show_bug.cgi?id=67773
150
151         This refactoring splits up RenderThemeQt with two
152         subclasses, a QStyle-backed one, and a Mobile version
153         that uses the old mobile theme for now.
154
155         QStyle availability is detected at compile time, and
156         its use is determined by the QT_WEBKIT_USE_MOBILE_THEME
157         environment variable.
158
159         Reviewed by Simon Hausmann.
160
161         * Api/qwebpage.cpp:
162         (QWebPage::swallowContextMenuEvent):
163         * tests/tests.pri:
164
165 2011-11-11  Alexis Menard  <alexis.menard@openbossa.org>
166
167         [Qt] Add a way to have experimental features in WebKit2
168         https://bugs.webkit.org/show_bug.cgi?id=67707
169
170         Reviewed by Kenneth Rohde Christiansen.
171
172         This patch is adding a new module for accessing private
173         method and property from the view. It requires an import
174         QtWebKit.private in QML to be used.
175
176         * declarative/private/plugin.cpp: Added.
177         (WebKitQmlPluginPrivate::registerTypes):
178         * declarative/private/private.pro: Added.
179         * declarative/private/qmldir: Added.
180
181 2011-11-11  Simon Hausmann  <simon.hausmann@nokia.com>
182
183         [Qt][WK2] Remove QWebNavigationController
184         https://bugs.webkit.org/show_bug.cgi?id=72113
185
186         Reviewed by Andreas Kling.
187
188         * declarative/plugin.cpp:
189         (WebKitQmlPlugin::registerTypes): Don't register QWebNavigationController with qml.
190
191 2011-11-03  Luiz Agostini  <luiz.agostini@palm.com>
192
193         [Qt] Adding methods setGeometry and setFont to QWebSelectMethod class.
194         https://bugs.webkit.org/show_bug.cgi?id=71530
195
196         Reviewed by Simon Hausmann.
197
198         Adding methods setGeometry and setFont so that users of platform plugin may show the
199         popup menus in proper position and using proper font.
200
201         * Api/qwebkitplatformplugin.h:
202         * WebCoreSupport/PopupMenuQt.cpp:
203         (WebCore::PopupMenuQt::show):
204         * examples/platformplugin/WebPlugin.h:
205         (WebPopup::setGeometry):
206         (WebPopup::setFont):
207         * examples/platformplugin/qwebkitplatformplugin.h:
208
209 2011-11-10  Alexis Menard  <alexis.menard@openbossa.org>
210
211         [Qt] Merge QTouchWebView and QDesktopWebView into one class
212         https://bugs.webkit.org/show_bug.cgi?id=71355
213
214         Reviewed by Kenneth Rohde Christiansen.
215
216         Register only QQuickWebView and QQuickWebPage in the plugin.
217
218         * declarative/plugin.cpp:
219         (WebKitQmlPlugin::registerTypes):
220
221 2011-11-09  Simon Hausmann  <simon.hausmann@nokia.com>
222
223         [Qt] Enable exports and constructor functions in static libs
224
225         Reviewed by Tor Arne Vestbø.
226
227         * Api/qwebpage.cpp:
228         (QWebPagePrivate::QWebPagePrivate): Remove unnecessary manual Qt resource
229         initialization.
230
231 2011-11-09  Simon Hausmann  <simon.hausmann@nokia.com>
232
233         Unreviewed, rolling out r99701.
234         http://trac.webkit.org/changeset/99701
235
236         Breaks Qt mac build
237
238         * Api/qwebpage.cpp:
239         (initResources):
240         (QWebPagePrivate::QWebPagePrivate):
241
242 2011-11-09  Simon Hausmann  <simon.hausmann@nokia.com>
243
244         [Qt] Enable exports and constructor functions in static libs
245
246         Reviewed by Tor Arne Vestbø.
247
248         * Api/qwebpage.cpp:
249         (QWebPagePrivate::QWebPagePrivate): Remove unnecessary manual Qt resource
250         initialization.
251
252 2011-11-09  Deepak Sherveghar  <bpwv64@motorola.com>
253
254         [Qt] 4 Layout test fail due to network error constant values clash with WebkitError enum values in FrameloaderclientQt
255         https://bugs.webkit.org/show_bug.cgi?id=71554
256
257         Reviewed by Simon Hausmann.
258
259         We should check the error domain when checking the error code in shouldFallBack()
260
261         * WebCoreSupport/FrameLoaderClientQt.cpp:
262         (WebCore::FrameLoaderClientQt::shouldFallBack): added error domain check
263
264 2011-11-08  Simon Hausmann  <simon.hausmann@nokia.com>
265
266         [Qt] Replace use of QApplication with QGuiApplication
267         https://bugs.webkit.org/show_bug.cgi?id=71794
268
269         Reviewed by Andreas Kling.
270
271         * WebCoreSupport/QtWebComboBox.cpp:
272         (WebCore::QtWebComboBox::showPopupAtCursorPosition): Replace use of QApplication
273         with QCoreApplication.
274
275 2011-11-07  Adam Barth  <abarth@webkit.org>
276
277         Move static "policy" state from SecurityOrigin.cpp to SecurityPolicy.cpp
278         https://bugs.webkit.org/show_bug.cgi?id=71755
279
280         Reviewed by Eric Seidel.
281
282         * Api/qwebpage.cpp:
283         (QWebPagePrivate::QWebPagePrivate):
284         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
285         (DumpRenderTreeSupportQt::whiteListAccessFromOrigin):
286         (DumpRenderTreeSupportQt::removeWhiteListAccessFromOrigin):
287         (DumpRenderTreeSupportQt::resetOriginAccessWhiteLists):
288
289 2011-11-08  Luiz Agostini  <luiz.agostini@palm.com>
290
291         [Qt] Removing qwebkitglobal.h inclusion from qwebkitplatformplugin.h
292         https://bugs.webkit.org/show_bug.cgi?id=71759
293
294         Reviewed by Simon Hausmann.
295
296         qwebkitplatformplugin.h must not depend on qwebkitglobal.h.
297
298         * Api/qwebkitplatformplugin.h:
299
300         Updating the copy of qwebkitplatformplugin.h that is used by the example plugin. The previous
301         one was very outdated.
302
303         * examples/platformplugin/qwebkitplatformplugin.h:
304
305 2011-11-07  Adam Barth  <abarth@webkit.org>
306
307         Move DomainRelaxationForbidden scheme registry to SchemeRegistry
308         https://bugs.webkit.org/show_bug.cgi?id=71750
309
310         Reviewed by Eric Seidel.
311
312         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
313         (DumpRenderTreeSupportQt::setDomainRelaxationForbiddenForURLScheme):
314
315 2011-11-07  Michael Saboff  <msaboff@apple.com>
316
317         Towards 8 Bit Strings: Templatize JSC::Lexer class by character type
318         https://bugs.webkit.org/show_bug.cgi?id=71331
319
320         Changed Identifier() constructor to use JSGlobalData*.
321
322         Reviewed by Darin Adler.
323
324         * Api/qwebframe.cpp:
325         (QWebFrame::addToJavaScriptWindowObject):
326
327 2011-11-07  Simon Hausmann  <simon.hausmann@nokia.com>
328
329         [Qt] Fix failing inspector tests after build system changes
330         https://bugs.webkit.org/show_bug.cgi?id=71677
331
332         Reviewed by Tor Arne Vestbø.
333
334         Ensure symbols from the qt resource system are referenced
335         from outside the static webcore library. One way of doing that is
336         to initialize the resources right away, as explained in the documentation
337         of th Qt resource system.
338
339         * Api/qwebpage.cpp:
340         (initResources):
341         (QWebPagePrivate::QWebPagePrivate):
342
343 2011-11-04  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
344
345         [Qt] Refactor and clean up the qmake build system
346
347         The qmake build system has accumulated a bit of cruft and redundancy
348         over time. There's also a fairly tight coupling between how to build
349         the various targets, and _what_ to build, making it harder to add new
350         rules or sources. This patch aims to elevate these issues somewhat.
351
352         This is a short-list of the changes:
353
354           * The rules for how to build targets are now mostly contained as
355             prf-files in Tools/qmake/mkspecs/features. Using mkspecs also
356             allows us to do pre- and post-processing of each project file,
357             which helps to clean up the actual project files.
358
359           * Derived sources are no longer generated as a separate make-step
360             but is part of each target's project file as a subdir. Makefile
361             rules are used to ensure that we run make on the derived sources
362             before running qmake on the actual target makefile. This makes
363             it easier to keep a proper dependency between derived sources
364             and the target.
365
366           * We use GNU make and the compiler to generate dependencies on
367             UNIX-based systems running Qt 5. This allows us to lessen the
368             need to run qmake, which should reduce compile time.
369
370           * WebKit2 is now build by default if building with Qt 5. It can
371             be disabled by passing --no-webkit2 to build-webkit.
372
373         The result of these changes are hopefully a cleaner and easier
374         build system to modify, and faster build times due to no longer
375         running qmake on every single build. It's also a first step
376         towards possibly generating the list of sources using another
377         build system.
378
379         https://bugs.webkit.org/show_bug.cgi?id=71222
380
381         Reviewed by Simon Hausmann.
382
383         * Api/DerivedSources.pro: Removed.
384         * Api/headers.pri: Removed.
385         * Api/qwebpage.cpp:
386         (QWebPagePrivate::QWebPagePrivate):
387         * QtWebKit.pro: Removed.
388         * WebCoreSupport/FrameLoaderClientQt.h: Rename due to name clash with WK2 header
389         * WebCoreSupport/PlatformStrategiesQt.cpp: Renamed from Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.cpp.
390         (PlatformStrategiesQt::initialize):
391         (PlatformStrategiesQt::PlatformStrategiesQt):
392         (PlatformStrategiesQt::createCookiesStrategy):
393         (PlatformStrategiesQt::createPluginStrategy):
394         (PlatformStrategiesQt::createLocalizationStrategy):
395         (PlatformStrategiesQt::createVisitedLinkStrategy):
396         (PlatformStrategiesQt::notifyCookiesChanged):
397         (PlatformStrategiesQt::refreshPlugins):
398         (PlatformStrategiesQt::getPluginInfo):
399         (PlatformStrategiesQt::inputElementAltText):
400         (PlatformStrategiesQt::resetButtonDefaultLabel):
401         (PlatformStrategiesQt::searchableIndexIntroduction):
402         (PlatformStrategiesQt::submitButtonDefaultLabel):
403         (PlatformStrategiesQt::fileButtonChooseFileLabel):
404         (PlatformStrategiesQt::fileButtonChooseMultipleFilesLabel):
405         (PlatformStrategiesQt::fileButtonNoFileSelectedLabel):
406         (PlatformStrategiesQt::fileButtonNoFilesSelectedLabel):
407         (PlatformStrategiesQt::defaultDetailsSummaryText):
408         (PlatformStrategiesQt::contextMenuItemTagOpenLinkInNewWindow):
409         (PlatformStrategiesQt::contextMenuItemTagDownloadLinkToDisk):
410         (PlatformStrategiesQt::contextMenuItemTagCopyLinkToClipboard):
411         (PlatformStrategiesQt::contextMenuItemTagOpenImageInNewWindow):
412         (PlatformStrategiesQt::contextMenuItemTagDownloadImageToDisk):
413         (PlatformStrategiesQt::contextMenuItemTagCopyImageToClipboard):
414         (PlatformStrategiesQt::contextMenuItemTagCopyImageUrlToClipboard):
415         (PlatformStrategiesQt::contextMenuItemTagOpenVideoInNewWindow):
416         (PlatformStrategiesQt::contextMenuItemTagOpenAudioInNewWindow):
417         (PlatformStrategiesQt::contextMenuItemTagCopyVideoLinkToClipboard):
418         (PlatformStrategiesQt::contextMenuItemTagCopyAudioLinkToClipboard):
419         (PlatformStrategiesQt::contextMenuItemTagToggleMediaControls):
420         (PlatformStrategiesQt::contextMenuItemTagToggleMediaLoop):
421         (PlatformStrategiesQt::contextMenuItemTagEnterVideoFullscreen):
422         (PlatformStrategiesQt::contextMenuItemTagMediaPlay):
423         (PlatformStrategiesQt::contextMenuItemTagMediaPause):
424         (PlatformStrategiesQt::contextMenuItemTagMediaMute):
425         (PlatformStrategiesQt::contextMenuItemTagOpenFrameInNewWindow):
426         (PlatformStrategiesQt::contextMenuItemTagCopy):
427         (PlatformStrategiesQt::contextMenuItemTagGoBack):
428         (PlatformStrategiesQt::contextMenuItemTagGoForward):
429         (PlatformStrategiesQt::contextMenuItemTagStop):
430         (PlatformStrategiesQt::contextMenuItemTagReload):
431         (PlatformStrategiesQt::contextMenuItemTagCut):
432         (PlatformStrategiesQt::contextMenuItemTagPaste):
433         (PlatformStrategiesQt::contextMenuItemTagSelectAll):
434         (PlatformStrategiesQt::contextMenuItemTagNoGuessesFound):
435         (PlatformStrategiesQt::contextMenuItemTagIgnoreSpelling):
436         (PlatformStrategiesQt::contextMenuItemTagLearnSpelling):
437         (PlatformStrategiesQt::contextMenuItemTagSearchWeb):
438         (PlatformStrategiesQt::contextMenuItemTagLookUpInDictionary):
439         (PlatformStrategiesQt::contextMenuItemTagOpenLink):
440         (PlatformStrategiesQt::contextMenuItemTagIgnoreGrammar):
441         (PlatformStrategiesQt::contextMenuItemTagSpellingMenu):
442         (PlatformStrategiesQt::contextMenuItemTagShowSpellingPanel):
443         (PlatformStrategiesQt::contextMenuItemTagCheckSpelling):
444         (PlatformStrategiesQt::contextMenuItemTagCheckSpellingWhileTyping):
445         (PlatformStrategiesQt::contextMenuItemTagCheckGrammarWithSpelling):
446         (PlatformStrategiesQt::contextMenuItemTagFontMenu):
447         (PlatformStrategiesQt::contextMenuItemTagBold):
448         (PlatformStrategiesQt::contextMenuItemTagItalic):
449         (PlatformStrategiesQt::contextMenuItemTagUnderline):
450         (PlatformStrategiesQt::contextMenuItemTagOutline):
451         (PlatformStrategiesQt::contextMenuItemTagWritingDirectionMenu):
452         (PlatformStrategiesQt::contextMenuItemTagTextDirectionMenu):
453         (PlatformStrategiesQt::contextMenuItemTagDefaultDirection):
454         (PlatformStrategiesQt::contextMenuItemTagLeftToRight):
455         (PlatformStrategiesQt::contextMenuItemTagRightToLeft):
456         (PlatformStrategiesQt::contextMenuItemTagInspectElement):
457         (PlatformStrategiesQt::searchMenuNoRecentSearchesText):
458         (PlatformStrategiesQt::searchMenuRecentSearchesText):
459         (PlatformStrategiesQt::searchMenuClearRecentSearchesText):
460         (PlatformStrategiesQt::AXWebAreaText):
461         (PlatformStrategiesQt::AXLinkText):
462         (PlatformStrategiesQt::AXListMarkerText):
463         (PlatformStrategiesQt::AXImageMapText):
464         (PlatformStrategiesQt::AXHeadingText):
465         (PlatformStrategiesQt::AXDefinitionListTermText):
466         (PlatformStrategiesQt::AXDefinitionListDefinitionText):
467         (PlatformStrategiesQt::AXButtonActionVerb):
468         (PlatformStrategiesQt::AXRadioButtonActionVerb):
469         (PlatformStrategiesQt::AXTextFieldActionVerb):
470         (PlatformStrategiesQt::AXCheckedCheckBoxActionVerb):
471         (PlatformStrategiesQt::AXUncheckedCheckBoxActionVerb):
472         (PlatformStrategiesQt::AXMenuListActionVerb):
473         (PlatformStrategiesQt::AXMenuListPopupActionVerb):
474         (PlatformStrategiesQt::AXLinkActionVerb):
475         (PlatformStrategiesQt::missingPluginText):
476         (PlatformStrategiesQt::crashedPluginText):
477         (PlatformStrategiesQt::multipleFileUploadText):
478         (PlatformStrategiesQt::unknownFileSizeText):
479         (PlatformStrategiesQt::imageTitle):
480         (PlatformStrategiesQt::mediaElementLoadingStateText):
481         (PlatformStrategiesQt::mediaElementLiveBroadcastStateText):
482         (PlatformStrategiesQt::localizedMediaControlElementString):
483         (PlatformStrategiesQt::localizedMediaControlElementHelpText):
484         (PlatformStrategiesQt::localizedMediaTimeDescription):
485         (PlatformStrategiesQt::validationMessageValueMissingText):
486         (PlatformStrategiesQt::validationMessageTypeMismatchText):
487         (PlatformStrategiesQt::validationMessagePatternMismatchText):
488         (PlatformStrategiesQt::validationMessageTooLongText):
489         (PlatformStrategiesQt::validationMessageRangeUnderflowText):
490         (PlatformStrategiesQt::validationMessageRangeOverflowText):
491         (PlatformStrategiesQt::validationMessageStepMismatchText):
492         (PlatformStrategiesQt::isLinkVisited):
493         (PlatformStrategiesQt::addVisitedLink):
494         * WebCoreSupport/PlatformStrategiesQt.h: Renamed from Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.h.
495         * declarative/declarative.pro:
496         * docs/docs.pri:
497         * docs/webkitsnippets/webelement/webelement.pro:
498         * tests/MIMESniffing/MIMESniffing.pro:
499         * tests/benchmarks/loading/loading.pro:
500         * tests/benchmarks/painting/painting.pro:
501         * tests/benchmarks/webgl/webgl.pro:
502         * tests/hybridPixmap/hybridPixmap.pro:
503         * tests/qdeclarativewebview/qdeclarativewebview.pro:
504         * tests/qgraphicswebview/qgraphicswebview.pro:
505         * tests/qwebelement/qwebelement.pro:
506         * tests/qwebframe/qwebframe.pro:
507         * tests/qwebhistory/qwebhistory.pro:
508         * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
509         * tests/qwebinspector/qwebinspector.pro:
510         * tests/qwebpage/qwebpage.pro:
511         * tests/qwebplugindatabase/qwebplugindatabase.pro:
512         * tests/qwebview/qwebview.pro:
513         * tests/tests.pri:
514         * tests/tests.pro: Removed.
515
516 2011-11-03  Rafael Brandao  <rafael.lobo@openbossa.org>
517
518         Fix tst_QDeclarativeWebView::basicProperties() and historyNav() autotests
519         https://bugs.webkit.org/show_bug.cgi?id=61042
520
521         Reviewed by Simon Hausmann.
522         
523         At some points we didn't have any guarantee that a favicon has been loaded, so now
524         it stops to wait for the IconChanged signal. It also had some file paths in wrong format,
525         making some files to not be resolved and comparing meaningless bitmaps.
526
527         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
528         (tst_QDeclarativeWebView::initTestCase):
529         (tst_QDeclarativeWebView::basicProperties):
530         (tst_QDeclarativeWebView::historyNav):
531
532 2011-11-03  Simon Hausmann  <simon.hausmann@nokia.com>
533
534         [Qt] Remove Maemo specific code paths
535         https://bugs.webkit.org/show_bug.cgi?id=71476
536
537         Reviewed by Kenneth Rohde Christiansen.
538
539         * Api/qwebpage.cpp:
540         (QWebPage::userAgentForUrl):
541         * Api/qwebview.cpp:
542         (QWebView::QWebView):
543         * QtWebKit.pro:
544         * WebCoreSupport/ChromeClientQt.cpp:
545         (WebCore::ChromeClientQt::createSelectPopup):
546         * WebCoreSupport/EditorClientQt.cpp:
547         (WebCore::EditorClientQt::setInputMethodState):
548         * WebCoreSupport/FrameLoaderClientQt.cpp:
549         (WebCore::FrameLoaderClientQt::createPlugin):
550         * WebCoreSupport/QtMaemoWebPopup.cpp: Removed.
551         * WebCoreSupport/QtMaemoWebPopup.h: Removed.
552         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
553         (tst_QGraphicsWebView::focusInputTypes):
554         * tests/qwebframe/tst_qwebframe.cpp:
555         * tests/qwebview/tst_qwebview.cpp:
556         (tst_QWebView::focusInputTypes):
557
558 2011-11-03  Jesus Sanchez-Palencia  <jesus@webkit.org>
559
560         Reviewed by Kenneth Rohde Christiansen.
561
562         [Qt] QtWebKit should have documentation clarifying its mobile features usage
563         https://bugs.webkit.org/show_bug.cgi?id=41465
564
565         Add "QtWebKit Goes Mobile" documentation
566
567         * docs/qtwebkit-goes-mobile.qdoc: Added.
568         * docs/qtwebkit.qdoc: Linked to qtwebkit-goes-mobile documentation
569         * docs/webkitsnippets/qtwebkit_goes_mobile_snippets.cpp: Added.
570
571 2011-11-03  Fady Samuel  <fsamuel@chromium.org>
572
573         Removing line in computeViewportAttributes that enforces a minimum scale factor to never allow zooming out more than viewport
574         https://bugs.webkit.org/show_bug.cgi?id=70609
575
576         Reviewed by Kenneth Rohde Christiansen.
577
578         * Api/qwebpage.cpp:
579         (QWebPage::viewportAttributesForSize):
580         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
581         (DumpRenderTreeSupportQt::viewportAsText):
582
583 2011-11-03  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
584
585         [Qt][WK2] Download support and API in UIProcess
586         https://bugs.webkit.org/show_bug.cgi?id=68962
587
588         Reviewed by Simon Hausmann.
589
590         Registering new qml type QWebDownloadItem.
591
592         * declarative/plugin.cpp:
593         (WebKitQmlPlugin::registerTypes):
594
595 2011-11-02  Jon Lee  <jonlee@apple.com>
596
597         Expand DragController to provide more information about the dragging session
598         https://bugs.webkit.org/show_bug.cgi?id=71324
599         <rdar://problem/10379175>
600
601         Reviewed by Darin Adler.
602
603         * Api/qwebpage.cpp:
604         (QWebPagePrivate::dragEnterEvent): Minor refactoring because operation is stored in
605         new DragSession struct.
606         (QWebPagePrivate::dragMoveEvent): Ditto.
607
608 2011-11-02  Tom Sepez  <tsepez@chromium.org>
609
610         XSSAuditor is silent
611         https://bugs.webkit.org/show_bug.cgi?id=70973
612
613         Reviewed by Adam Barth.
614
615         * WebCoreSupport/FrameLoaderClientQt.cpp:
616         (WebCore::FrameLoaderClientQt::didDetectXSS):
617         * WebCoreSupport/FrameLoaderClientQt.h:
618
619 2011-11-02  Jon Lee  <jonlee@apple.com>
620
621         <input=file multiple> default text uses singular instead of plural
622         https://bugs.webkit.org/show_bug.cgi?id=71319
623         <rdar://problem/10379021>
624
625         Reviewed by Darin Adler.
626
627         * WebCoreSupport/WebPlatformStrategies.cpp:
628         (WebPlatformStrategies::fileButtonNoFilesSelectedLabel):
629         * WebCoreSupport/WebPlatformStrategies.h:
630
631 2011-11-02  Deepak Sherveghar  <bpwv64@motorola.com>
632
633         [Qt] Failing test media/video-document-types.html
634         https://bugs.webkit.org/show_bug.cgi?id=62108
635
636         Reviewed by Simon Hausmann.
637
638         Match what Mac has been doing since r36001: cancel the main load,
639         and handle failures caused by 'will be handled by plugin' errors.
640
641         * WebCoreSupport/FrameLoaderClientQt.cpp:
642         (WebCore::FrameLoaderClientQt::committedLoad):
643         (WebCore::FrameLoaderClientQt::shouldFallBack):
644
645 2011-11-01  Simon Hausmann  <simon.hausmann@nokia.com>
646
647         [Qt][WK2] Fix build of WebKitTestRunner with ELF symbol visibility
648         https://bugs.webkit.org/show_bug.cgi?id=71299
649
650         Reviewed by Andreas Kling.
651
652         Export an overload of QtDRT::injectInternalsObjects that is used by
653         the WK2 injected bundle.
654
655         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
656         (DumpRenderTreeSupportQt::injectInternalsObject):
657         * WebCoreSupport/DumpRenderTreeSupportQt.h:
658
659 2011-11-01  Alexis Menard  <alexis.menard@openbossa.org>
660
661         Unreviewed Qt documentation fix.
662
663         This signal is Qt 4.8 material.
664
665         * Api/qwebpage.cpp:
666
667 2011-10-31  Mark Hahnenberg  <mhahnenberg@apple.com>
668
669         De-virtualize JSObject::defineGetter
670         https://bugs.webkit.org/show_bug.cgi?id=71134
671
672         Reviewed by Darin Adler.
673
674         Added defineGetter to the MethodTable.  Replaced all virtual versions of defineGetter
675         with static versions.  Replaced all call sites with lookups in the MethodTable.
676
677         * Api/qwebframe.cpp:
678         (QWebFramePrivate::addQtSenderToGlobalObject):
679
680 2011-10-28  Jochen Eisinger  <jochen@chromium.org>
681
682         Rename a number of methods mentioning JavaScript to just Script instead
683         https://bugs.webkit.org/show_bug.cgi?id=71105
684
685         Reviewed by Adam Barth.
686
687         * Api/qwebsettings.cpp:
688         (QWebSettingsPrivate::apply):
689
690 2011-10-28  Simon Hausmann  <simon.hausmann@nokia.com>
691
692         [Qt] Adapt to QSG* to QQuick* API change in qtdeclarative
693         https://bugs.webkit.org/show_bug.cgi?id=70494
694
695         Reviewed by Kenneth Christiansen.
696
697         Use QQuick* instead of QSG* as well as QStandardPaths
698         instead of QDesktopLocation.
699
700         * Api/qwebsettings.cpp:
701         (QWebSettings::enablePersistentStorage):
702
703 2011-10-27  Helder Correia  <helder.correia@palm.com>
704
705         [Qt] Failure to build when QT_NO_MENU defined
706         https://bugs.webkit.org/show_bug.cgi?id=70970
707
708         Reviewed by Andreas Kling.
709
710         iterateContextMenu() must be wrapped around #ifndef QT_NO_MENU.
711
712         Build fix, no new tests.
713
714         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
715
716 2011-10-26  Zalan Bujtas  <zbujtas@gmail.com>
717
718         Name viewport change event consistently.
719         https://bugs.webkit.org/show_bug.cgi?id=70901
720
721         Reviewed by Kenneth Rohde Christiansen.
722
723         Use ViewportPropertiesDidChange term consistently throughout WebKit.
724  
725         * WebCoreSupport/ChromeClientQt.cpp:
726         (WebCore::ChromeClientQt::dispatchViewportPropertiesDidChange):
727         * WebCoreSupport/ChromeClientQt.h:
728
729 2011-10-25  Mark Hahnenberg  <mhahnenberg@apple.com>
730
731         Remove putVirtual
732         https://bugs.webkit.org/show_bug.cgi?id=70740
733
734         Reviewed by Geoffrey Garen.
735
736         Removed all declarations and definitions of putVirtual.
737         Also replaced all call sites to putVirtual with a 
738         corresponding lookup in the MethodTable.
739
740         * Api/qwebframe.cpp:
741         (QWebFrame::addToJavaScriptWindowObject):
742
743 2011-10-24  Deepak Sherveghar  <bpwv64@motorola.com>
744
745         [Qt] fast/events/media-focus-in-standalone-media-document.html fails
746         https://bugs.webkit.org/show_bug.cgi?id=70110
747
748         Reviewed by Simon Hausmann.
749
750         We should check for supported media mime types as well in the MIMETypeRegistry.
751
752         * WebCoreSupport/FrameLoaderClientQt.cpp:
753         (WebCore::FrameLoaderClientQt::canShowMIMEType): check for supported media mime type.
754
755 2011-10-21  Luiz Agostini  <luiz.agostini@palm.com>
756
757         [Qt] Remote debugging needs QWebInspector to work
758         https://bugs.webkit.org/show_bug.cgi?id=70651
759
760         Reviewed by Kenneth Rohde Christiansen.
761
762         Removing QWebInspector dependency from remote inspector.
763
764         * Api/qwebinspector.cpp:
765         * Api/qwebinspector_p.h:
766         (QWebInspectorPrivate::QWebInspectorPrivate):
767         * WebCoreSupport/InspectorClientQt.cpp:
768         (WebCore::InspectorClientQt::InspectorClientQt):
769         (WebCore::InspectorClientQt::openInspectorFrontend):
770         (WebCore::InspectorClientQt::attachAndReplaceRemoteFrontend):
771         (WebCore::InspectorClientQt::detachRemoteFrontend):
772         (WebCore::InspectorClientQt::sendMessageToFrontend):
773         * WebCoreSupport/InspectorClientQt.h:
774         * WebCoreSupport/InspectorServerQt.cpp:
775         (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
776         * WebCoreSupport/InspectorServerQt.h:
777
778 2011-10-21  Luiz Agostini  <luiz.agostini@palm.com>
779
780         [Qt] Wrong type conversion in InspectorServerQt.cpp
781         https://bugs.webkit.org/show_bug.cgi?id=70639
782
783         Reviewed by Noam Rosenthal.
784
785         Wrong type conversion causes WebSocket handshake failures for the remote inspector.
786
787         * WebCoreSupport/InspectorServerQt.cpp:
788         (WebCore::parseWebSocketChallengeNumber):
789
790 2011-10-21  Zeno Albisser  <zeno.albisser@nokia.com>
791
792         [Qt] WebKit build does not respect QMAKE_MAC_SDK variable.
793         https://bugs.webkit.org/show_bug.cgi?id=70596
794
795         Instead of only relying on DARWIN_MAJOR_VERSION we also
796         check QMAKE_MAC_SDK. In case QMAKE_MAC_SDK is not defined
797         we are still falling back to DARWIN_MAJOR_VERSION.
798
799         Patch by Andy Shaw <andy.shaw@digia.com>
800
801         Reviewed by Noam Rosenthal.
802
803         * QtWebKit.pro:
804
805 2011-10-21  Csaba Osztrogonác  <ossy@webkit.org>
806
807         [Qt][WK2] Typo fix.
808
809         * tests/util.h:
810
811 2011-10-21  Csaba Osztrogonác  <ossy@webkit.org>
812
813         [Qt][WK2] Buildfix for newer Qt5. Remove duplicated defines.
814
815         Reviewed by Simon Hausmann.
816
817         * tests/util.h:
818
819 2011-10-21  Sheriff Bot  <webkit.review.bot@gmail.com>
820
821         Unreviewed, rolling out r98085.
822         http://trac.webkit.org/changeset/98085
823         https://bugs.webkit.org/show_bug.cgi?id=70589
824
825         It broke the build (Requested by Ossy on #webkit).
826
827         * tests/util.h:
828
829 2011-10-21  Csaba Osztrogonác  <ossy@webkit.org>
830
831         [Qt][WK2] Unreviewed buildfix for newer Qt5. Remove duplicated defines.
832
833         * tests/util.h:
834         (waitForSignal):
835
836 2011-10-20  Carol Szabo  <carol@webkit.org>
837
838         Tiled Backing Store does not regenerate tiles when it should
839         https://bugs.webkit.org/show_bug.cgi?id=57798
840
841         Reviewed by Darin Adler.
842
843         Provided test for this bug. Changed the name of the resource I added
844         for a previous test so that the name is descriptive such that it can
845         be shared across several tests.
846
847         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
848         (tst_QGraphicsWebView::bug57798):
849         (tst_QGraphicsWebView::bug56929):
850         * tests/qgraphicswebview/tst_qgraphicswebview.qrc:
851
852 2011-10-18  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
853
854         [Qt] Merge QML plugin for WebKit2 with the original WebKit1 plugin
855
856         We don't need a separate plugin, as we no longer expose the WK2
857         APIs under QtWebKit.experimental, but now use QtWebKit. The version
858         was also changed to 3.0 instead of 5.0, as the original plugin was
859         versioned 1.0, and bumping to 3.0 fits the scheme used by QtWebKit releases.
860
861         Reviewed by Andreas Kling.
862
863         * declarative/declarative.pro:
864         * declarative/plugin.cpp:
865         (WebKitQmlPlugin::registerTypes):
866
867 2011-10-15  Adam Barth  <abarth@webkit.org>
868
869         Rename ENABLE(TILED_BACKING_STORE) to USE(TILED_BACKING_STORE)
870         https://bugs.webkit.org/show_bug.cgi?id=70194
871
872         Reviewed by Daniel Bates.
873
874         * Api/qgraphicswebview.cpp:
875         (QGraphicsWebViewPrivate::_q_scaleChanged):
876         (QGraphicsWebView::QGraphicsWebView):
877         (QGraphicsWebView::paint):
878         (QGraphicsWebView::isTiledBackingStoreFrozen):
879         (QGraphicsWebView::setTiledBackingStoreFrozen):
880         * Api/qwebframe.cpp:
881         * Api/qwebframe_p.h:
882         * Api/qwebpage.cpp:
883         (QWebPagePrivate::dynamicPropertyChangeEvent):
884         * Api/qwebsettings.cpp:
885         (QWebSettingsPrivate::apply):
886         * WebCoreSupport/ChromeClientQt.cpp:
887         (WebCore::ChromeClientQt::invalidateWindow):
888         * WebCoreSupport/ChromeClientQt.h:
889         * WebCoreSupport/PageClientQt.cpp:
890         (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
891         * WebCoreSupport/PageClientQt.h:
892         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
893
894 2011-10-15  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
895
896         [Qt] [Symbian] Remove support for the Symbian platform for the QtWebKit port
897         https://bugs.webkit.org/show_bug.cgi?id=69920
898
899         Reviewed by Kenneth Rohde Christiansen.
900
901         * Api/qgraphicswebview.cpp:
902         (QGraphicsWebView::setPage):
903         * Api/qwebpage.cpp:
904         (QWebPage::userAgentForUrl):
905         * Api/qwebview.cpp:
906         (QWebView::QWebView):
907         * QtWebKit.pro:
908         * WebCoreSupport/EditorClientQt.cpp:
909         (WebCore::EditorClientQt::setInputMethodState):
910         * WebCoreSupport/QtFallbackWebPopup.cpp:
911         (WebCore::QtFallbackWebPopup::populate):
912         * declarative/declarative.pro:
913         * declarative/qdeclarativewebview.cpp:
914         (QDeclarativeWebView::setPage):
915         * symbian: Removed.
916         * symbian/backup_registration.xml: Removed.
917         * symbian/bwins: Removed.
918         * symbian/bwins/QtWebKitu.def: Removed.
919         * symbian/eabi: Removed.
920         * symbian/eabi/QtWebKitu.def: Removed.
921         * symbian/platformplugin: Removed.
922         * symbian/platformplugin/HTML5VideoPlugin.cpp: Removed.
923         * symbian/platformplugin/HTML5VideoPlugin.h: Removed.
924         * symbian/platformplugin/HTML5VideoWidget.cpp: Removed.
925         * symbian/platformplugin/HTML5VideoWidget.h: Removed.
926         * symbian/platformplugin/OverlayWidget.cpp: Removed.
927         * symbian/platformplugin/OverlayWidget.h: Removed.
928         * symbian/platformplugin/PlayerButton.cpp: Removed.
929         * symbian/platformplugin/PlayerButton.h: Removed.
930         * symbian/platformplugin/PlayerLabel.cpp: Removed.
931         * symbian/platformplugin/PlayerLabel.h: Removed.
932         * symbian/platformplugin/WebPlugin.cpp: Removed.
933         * symbian/platformplugin/WebPlugin.h: Removed.
934         * symbian/platformplugin/images: Removed.
935         * symbian/platformplugin/images/button_cannotplay.png: Removed.
936         * symbian/platformplugin/images/button_close.png: Removed.
937         * symbian/platformplugin/images/button_pause.png: Removed.
938         * symbian/platformplugin/images/button_play.png: Removed.
939         * symbian/platformplugin/images/button_sound_off.png: Removed.
940         * symbian/platformplugin/images/button_sound_on.png: Removed.
941         * symbian/platformplugin/images/loading_buffering_1.png: Removed.
942         * symbian/platformplugin/images/loading_buffering_2.png: Removed.
943         * symbian/platformplugin/images/loading_buffering_3.png: Removed.
944         * symbian/platformplugin/images/loading_buffering_4.png: Removed.
945         * symbian/platformplugin/platformplugin.pro: Removed.
946         * symbian/platformplugin/platformplugin.qrc: Removed.
947         * symbian/platformplugin/qss: Removed.
948         * symbian/platformplugin/qss/OverlayWidget.qss: Removed.
949         * symbian/platformplugin/qwebkitplatformplugin.h: Removed.
950         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
951         (tst_QGraphicsWebView::focusInputTypes):
952         * tests/qwebframe/qwebframe.pro:
953         * tests/qwebframe/tst_qwebframe.cpp:
954         * tests/qwebview/tst_qwebview.cpp:
955         (tst_QWebView::focusInputTypes):
956         * tests/tests.pri:
957
958 2011-10-14  Mark Hahnenberg  <mhahnenberg@apple.com>
959
960         Rename virtual put to putVirtual
961         https://bugs.webkit.org/show_bug.cgi?id=69851
962
963         Reviewed by Darin Adler.
964
965         Renamed virtual versions of put to putVirtual in prepration for 
966         adding the static put to the MethodTable in ClassInfo since the 
967         compiler gets mad if the virtual and static versions have the same 
968         name.
969
970         * Api/qwebframe.cpp:
971         (QWebFrame::addToJavaScriptWindowObject):
972
973 2011-10-12  Ryosuke Niwa  <rniwa@webkit.org>
974
975         Make the interface of locationAndLengthFromRange and rangeFromLocationAndLength consistent
976         https://bugs.webkit.org/show_bug.cgi?id=69964
977
978         Reviewed by Enrica Casucci.
979
980         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
981         (DumpRenderTreeSupportQt::firstRectForCharacterRange):
982
983 2011-10-13  Adenilson Cavalcanti  <adenilson.silva@openbossa.org>
984
985         [Qt] GeolocationClient cleanups
986         https://bugs.webkit.org/show_bug.cgi?id=69737
987
988         Reviewed by Kenneth Rohde Christiansen.
989
990         Qt5 has a location module, so no need to use an external
991         library like Qt Mobility. This patch will allow the GeolocationClientQt
992         to compile with both Qt5 and Qt4.
993
994         * QtWebKit.pro:
995         * WebCoreSupport/GeolocationClientQt.cpp:
996         (WebCore::GeolocationClientQt::positionUpdated):
997         * WebCoreSupport/GeolocationClientQt.h:
998
999 2011-10-11  Simon Fraser  <simon.fraser@apple.com>
1000
1001         Make custom scrollbar theme for use in DRT, to reduce pixel diffs between platforms
1002         https://bugs.webkit.org/show_bug.cgi?id=68134
1003
1004         Reviewed by Darin Adler.
1005
1006         Use ScrollbarThemeMock when the setting to use mock scrollbars is enabled.
1007         
1008         Make ScrollbarTheme::nativeTheme() private, and add a new static theme() method
1009         that reads the setting, and returns the mock theme if set. All callers now use
1010         theme() rther than nativeTheme(). Add the new ScrollbarTheme.cpp file to the build.
1011
1012         * WebCoreSupport/ChromeClientQt.cpp:
1013         (WebCore::ChromeClientQt::windowResizerRect):
1014
1015 2011-10-11  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1016
1017         [Qt] Remove all references to QTDIR_build and standalone_package
1018
1019         Qt is now modularized, which means we no longer import WebKit into
1020         the Qt source tree. Instead we use git submodules, and building
1021         QtWebKit as "part of Qt" is really building QtWebKit as from trunk.
1022
1023         To decrease the number of buildsystem configurations we also remove
1024         the standalone_package code-path used when we were providing tarballs
1025         with the derived sources pre-generated.
1026
1027         Reviewed by Simon Hausmann.
1028
1029         * Api/DerivedSources.pro:
1030         * QtWebKit.pro:
1031         * declarative/declarative.pro:
1032         * docs/webkitsnippets/webelement/webelement.pro:
1033         * tests/tests.pri:
1034
1035 2011-10-07  Chang Shu  <cshu@webkit.org>
1036
1037         Remove compile time flag ENABLE_PASSWORD_ECHO
1038         https://bugs.webkit.org/show_bug.cgi?id=69647
1039
1040         As we have runtime flag in the page/Settings, we should remove this redundant compile time flag.
1041
1042         Reviewed by Andreas Kling.
1043
1044         * Api/qwebsettings.cpp:
1045         (QWebSettingsPrivate::apply):
1046
1047 2011-10-06  Fady Samuel  <fsamuel@chromium.org>
1048
1049         Code clean-up: Make RenderObject::absoluteBoundingBoxRect and associated methods const and make its parameter useTransforms no longer default to false
1050         https://bugs.webkit.org/show_bug.cgi?id=69009
1051
1052         Reviewed by Simon Fraser.
1053
1054         * Api/qwebframe.cpp:
1055         (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1056
1057 2011-10-06  Simon Hausmann  <simon.hausmann@nokia.com>
1058
1059         [Qt][Wk2] Fix build with Qt 5 when QtScript is built as standalone module
1060         https://bugs.webkit.org/show_bug.cgi?id=69520
1061
1062         Reviewed by Csaba Osztrogonác.
1063
1064         * QtWebKit.pro: Convenience, use qt5 scope.
1065         * declarative/declarative.pro: Ditto.
1066         * tests/tests.pri: Ditto.
1067
1068 2011-10-03  Pierre Rossi  <pierre.rossi@gmail.com>
1069
1070         [Qt] Build fix: Qt::escape is deprecated in Qt5
1071         https://bugs.webkit.org/show_bug.cgi?id=69162
1072
1073         Use QString::toHtmlEscaped in the Qt5 case.
1074
1075         Reviewed by Andreas.
1076
1077         * Api/qwebpage.cpp:
1078         (QWebPage::javaScriptAlert):
1079         (QWebPage::javaScriptConfirm):
1080         (QWebPage::javaScriptPrompt):
1081         * WebCoreSupport/ChromeClientQt.cpp:
1082         (WebCore::ChromeClientQt::setToolTip):
1083
1084 2011-10-01  Sheriff Bot  <webkit.review.bot@gmail.com>
1085
1086         Unreviewed, rolling out r96421.
1087         http://trac.webkit.org/changeset/96421
1088         https://bugs.webkit.org/show_bug.cgi?id=69206
1089
1090         It broke Qt-WK2 build (Requested by ossy on #webkit).
1091
1092         * Api/qwebpage.cpp:
1093         (QWebPage::javaScriptAlert):
1094         (QWebPage::javaScriptConfirm):
1095         (QWebPage::javaScriptPrompt):
1096         * WebCoreSupport/ChromeClientQt.cpp:
1097         (WebCore::ChromeClientQt::setToolTip):
1098
1099 2011-09-30  Pierre Rossi  <pierre.rossi@gmail.com>
1100
1101         [Qt] Build fix: Qt::escape is deprecated in Qt5
1102         https://bugs.webkit.org/show_bug.cgi?id=69162
1103
1104         Use QString::toHtmlEscaped in the Qt5 case.
1105
1106         Reviewed by Andreas Kling.
1107
1108         * Api/qwebpage.cpp:
1109         (QWebPage::javaScriptAlert):
1110         (QWebPage::javaScriptConfirm):
1111         (QWebPage::javaScriptPrompt):
1112         * WebCoreSupport/ChromeClientQt.cpp:
1113         (WebCore::ChromeClientQt::setToolTip):
1114
1115 2011-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1116
1117         [Qt] Fix build against Qt5 after refactor of widgets out of QtGUi
1118
1119         QWidget and friends now live in the QtWidgets library. We update
1120         includes in implementation files and private headers to us the
1121         non-module-prefixed path, and leave the lookup for the include
1122         path. For public headers we have to ifdef the includes as the
1123         user might now have the modules we need in his QT config.
1124
1125         Finally, QSGCanvas is no longer a QWidget but a QWindow, so we
1126         have to update our code and use windowHandle() for setting the
1127         parent relationships.
1128
1129         https://bugs.webkit.org/show_bug.cgi?id=68687
1130
1131         Reviewed by Andreas Kling.
1132
1133         * Api/qgraphicswebview.cpp:
1134         * Api/qgraphicswebview.h:
1135         * Api/qwebframe.h:
1136         * Api/qwebhistory.h:
1137         * Api/qwebpage.h:
1138         * Api/qwebsettings.h:
1139         * Api/qwebview.h:
1140         * QtWebKit.pro:
1141         * WebCoreSupport/PageClientQt.h:
1142         * WebCoreSupport/QtWebComboBox.cpp:
1143         * WebCoreSupport/QtWebComboBox.h:
1144         * declarative/qdeclarativewebview.cpp:
1145         * declarative/qdeclarativewebview_p.h:
1146         * docs/webkitsnippets/webpage/main.cpp:
1147         * examples/platformplugin/WebNotificationPresenter.h:
1148
1149 2011-09-27  Sheriff Bot  <webkit.review.bot@gmail.com>
1150
1151         Unreviewed, rolling out r96108, r96111, r96113, and r96116.
1152         http://trac.webkit.org/changeset/96108
1153         http://trac.webkit.org/changeset/96111
1154         http://trac.webkit.org/changeset/96113
1155         http://trac.webkit.org/changeset/96116
1156         https://bugs.webkit.org/show_bug.cgi?id=68913
1157
1158         Wait for working Qt5 (Requested by ossy on #webkit).
1159
1160         * Api/qgraphicswebview.cpp:
1161         * Api/qgraphicswebview.h:
1162         * Api/qwebframe.h:
1163         * Api/qwebhistory.h:
1164         * Api/qwebpage.h:
1165         * Api/qwebsettings.h:
1166         * Api/qwebview.h:
1167         * QtWebKit.pro:
1168         * WebCoreSupport/PageClientQt.h:
1169         * WebCoreSupport/QtWebComboBox.cpp:
1170         * WebCoreSupport/QtWebComboBox.h:
1171         * declarative/declarative.pro:
1172         * declarative/qdeclarativewebview.cpp:
1173         * declarative/qdeclarativewebview_p.h:
1174         * docs/webkitsnippets/webpage/main.cpp:
1175         * examples/platformplugin/WebNotificationPresenter.h:
1176         * tests/tests.pri:
1177
1178 2011-09-27  Csaba Osztrogonác  <ossy@webkit.org>
1179
1180         [Qt][WK2] Buildfix after r96108.
1181
1182         Rubber-stamped by Andreas Kling.
1183
1184         * tests/tests.pri:
1185
1186 2011-09-27  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1187
1188         [Qt] Fix build of declarative plugin against Qt5
1189
1190         Reviewed by Andreas Kling.
1191
1192         * declarative/declarative.pro:
1193
1194 2011-09-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1195
1196         [Qt] Fix build against Qt5 after refactor of widgets out of QtGUi
1197
1198         QWidget and friends now live in the QtWidgets library. We update
1199         includes in implementation files and private headers to us the
1200         non-module-prefixed path, and leave the lookup for the include
1201         path. For public headers we have to ifdef the includes as the
1202         user might now have the modules we need in his QT config.
1203
1204         Finally, QSGCanvas is no longer a QWidget but a QWindow, so we
1205         have to update our code and use windowHandle() for setting the
1206         parent relationships.
1207
1208         https://bugs.webkit.org/show_bug.cgi?id=68687
1209
1210         Reviewed by Andreas Kling.
1211
1212         * Api/qgraphicswebview.cpp:
1213         * Api/qgraphicswebview.h:
1214         * Api/qwebframe.h:
1215         * Api/qwebhistory.h:
1216         * Api/qwebpage.h:
1217         * Api/qwebsettings.h:
1218         * Api/qwebview.h:
1219         * QtWebKit.pro:
1220         * WebCoreSupport/PageClientQt.h:
1221         * WebCoreSupport/QtWebComboBox.cpp:
1222         * WebCoreSupport/QtWebComboBox.h:
1223         * declarative/qdeclarativewebview.cpp:
1224         * declarative/qdeclarativewebview_p.h:
1225         * docs/webkitsnippets/webpage/main.cpp:
1226         * examples/platformplugin/WebNotificationPresenter.h:
1227
1228 2011-09-24  Adam Barth  <abarth@webkit.org>
1229
1230         Always enable ENABLE(OFFLINE_WEB_APPLICATIONS)
1231         https://bugs.webkit.org/show_bug.cgi?id=68767
1232
1233         Reviewed by Eric Seidel.
1234
1235         * Api/qwebsecurityorigin.cpp:
1236         (QWebSecurityOrigin::setApplicationCacheQuota):
1237         * Api/qwebsettings.cpp:
1238         (QWebSettings::setOfflineWebApplicationCachePath):
1239         (QWebSettings::offlineWebApplicationCachePath):
1240         (QWebSettings::setOfflineWebApplicationCacheQuota):
1241         (QWebSettings::offlineWebApplicationCacheQuota):
1242         * WebCoreSupport/ChromeClientQt.cpp:
1243         (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
1244         * WebCoreSupport/ChromeClientQt.h:
1245         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1246         (DumpRenderTreeSupportQt::clearAllApplicationCaches):
1247
1248 2011-09-21  Andras Becsi  <andras.becsi@nokia.com>
1249
1250         [Qt] Remove Qt specific code from css/SelectorChecker.cpp
1251         https://bugs.webkit.org/show_bug.cgi?id=67702
1252
1253         Reviewed by Csaba Osztrogonác.
1254
1255         * WebCoreSupport/WebPlatformStrategies.cpp: Check the Qt global history here, instead of a platform independent file.
1256         (WebPlatformStrategies::isLinkVisited):
1257         * WebCoreSupport/WebPlatformStrategies.h:
1258
1259 2011-09-20  Jarred Nicholls  <jarred@sencha.com>
1260
1261         [Qt] Permit qrc resources to load in QWebSettings::setUserStyleSheetUrl()
1262         https://bugs.webkit.org/show_bug.cgi?id=51159
1263         
1264         Permit any URL with a local scheme to set a user style sheet. Allow qrc
1265         resource URLs as arguments to QWebSettings::setUserStyleSheetUrl().
1266         
1267         New test case makes sure a qrc URL will properly load a user stylesheet.
1268
1269         Reviewed by Kenneth Rohde Christiansen.
1270         
1271         (tst_QWebPage::userStyleSheetFromQrcUrl):
1272         * tests/qwebpage/tst_qwebpage.qrc:
1273
1274 2011-09-20  Adenilson Cavalcanti  <adenilson.silva@openbossa.org>
1275
1276         [Qt] resizeToContent seems to trigger infinite resize on some pages
1277         https://bugs.webkit.org/show_bug.cgi?id=43852
1278
1279         Reviewed by Kenneth Rohde Christiansen.
1280
1281         Test by Luiz Agostini.
1282
1283         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1284         (ResizeSpy::receiveResize):
1285         (ResizeSpy::size):
1286         (tst_QGraphicsWebView::windowResizeEvent):
1287
1288 2011-09-17  Mihai Parparita  <mihaip@chromium.org>
1289
1290         FrameLoaderClient BackForwardList-related methods are unsued
1291         https://bugs.webkit.org/show_bug.cgi?id=68293
1292
1293         Reviewed by Darin Adler.
1294
1295         Remove FrameLoaderClient methods that were added by r51629, since only        
1296         the old (since-deleted) Android port needed them.
1297
1298         * WebCoreSupport/FrameLoaderClientQt.cpp:
1299         * WebCoreSupport/FrameLoaderClientQt.h:
1300
1301 2011-09-15  Adam Barth  <abarth@webkit.org>
1302
1303         Rename ENABLE(DATABASE) to ENABLE(SQL_DATABASE)
1304         https://bugs.webkit.org/show_bug.cgi?id=68205
1305
1306         Reviewed by Eric Seidel.
1307
1308         * Api/qwebdatabase.cpp:
1309         (QWebDatabase::displayName):
1310         (QWebDatabase::expectedSize):
1311         (QWebDatabase::size):
1312         (QWebDatabase::fileName):
1313         (QWebDatabase::removeDatabase):
1314         (QWebDatabase::removeAllDatabases):
1315         * Api/qwebsecurityorigin.cpp:
1316         (QWebSecurityOrigin::databaseUsage):
1317         (QWebSecurityOrigin::databaseQuota):
1318         (QWebSecurityOrigin::setDatabaseQuota):
1319         (QWebSecurityOrigin::allOrigins):
1320         (QWebSecurityOrigin::databases):
1321         * Api/qwebsettings.cpp:
1322         (QWebSettingsPrivate::apply):
1323         (QWebSettings::setOfflineStoragePath):
1324         (QWebSettings::offlineStoragePath):
1325         * WebCoreSupport/ChromeClientQt.cpp:
1326         * WebCoreSupport/ChromeClientQt.h:
1327
1328 2011-09-13  Zeno Albisser  <zeno.albisser@nokia.com>
1329
1330         [Qt] Fix state of stop/reload actions in QWebPage
1331         https://bugs.webkit.org/show_bug.cgi?id=65977
1332
1333         FrameLoader does ask its DocumentLoader to stop loading subresources before
1334         setting the state to FrameStateCommittedPage. But it does
1335         not check if the the DocumentLoader actually stopped loading before
1336         it changes the state.
1337         Therefore a subresourceLoader can still be active, when we receive the
1338         call to dispatchDidFinishLoad(). This leads to an inconsistent behavior
1339         of the stop/reload actions in QWebPage.
1340         This changeset fixes the inconsistent state by updating the action states
1341         also when frameLoadCompleted() is called.
1342
1343         Reviewed by Chang Shu.
1344
1345         * WebCoreSupport/FrameLoaderClientQt.cpp:
1346         (WebCore::FrameLoaderClientQt::frameLoadCompleted):
1347
1348 2011-09-12  Csaba Osztrogonác  <ossy@webkit.org>
1349
1350         [Qt] Fix "Unmatched parentheses are deprecated." warnings
1351         https://bugs.webkit.org/show_bug.cgi?id=67775
1352
1353         Reviewed by Zoltan Herczeg.
1354
1355         Modify function declarations to single line to make qmake happier.
1356
1357         * Api/qwebframe.h:
1358         * Api/qwebpluginfactory.h:
1359         * Api/qwebview.h:
1360
1361 2011-09-10  Jarred Nicholls  <jarred@sencha.com>
1362
1363         [Qt] QWebSettings::setUserStyleSheetUrl() does not work with windows paths that contain drive letters
1364         https://bugs.webkit.org/show_bug.cgi?id=34884
1365         
1366         KURL::path() alone does not handle removing the leading slash from a windows file path.
1367         Using QUrl::toLocalFile() will turn file:///C:/path into C:/path appropriately.
1368         
1369         New test case that ensures a user stylesheet from the file system will load correctly
1370         on all platforms.
1371
1372         Reviewed by Andreas Kling.
1373
1374         * tests/qwebpage/resources/user.css: Added.
1375         (p):
1376         * tests/qwebpage/tst_qwebpage.cpp:
1377         (tst_QWebPage::userStyleSheetFromFile):
1378
1379 2011-09-09  Fady Samuel  <fsamuel@chromium.org>
1380
1381         Move pageScaleFactor code from Frame.{h|cpp} to Page.{h|cpp}
1382         https://bugs.webkit.org/show_bug.cgi?id=67250
1383
1384         Reviewed by Simon Fraser.
1385
1386         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1387         (DumpRenderTreeSupportQt::scalePageBy):
1388
1389 2011-09-09  Zeno Albisser  <zeno.albisser@nokia.com>
1390
1391         [Qt] QWebElement::encloseWith doesn't work at all
1392         https://bugs.webkit.org/show_bug.cgi?id=62464
1393
1394         Enclosing an element means wrapping something around an element,
1395         not inserting something into an element. Therefore we need to check
1396         if the parent of the element allows insertion rather than checking
1397         the element itself.
1398
1399         Reviewed by Andreas Kling.
1400
1401         * Api/qwebelement.cpp:
1402         (QWebElement::prependOutside):
1403         (QWebElement::appendOutside):
1404         (QWebElement::encloseWith):
1405         * tests/qwebelement/tst_qwebelement.cpp:
1406         (tst_QWebElement::appendAndPrepend):
1407         (tst_QWebElement::encloseWith):
1408
1409 2011-09-08  Sam Weinig  <sam@webkit.org>
1410
1411         Remove the Completion object from JSC, I have never liked it
1412         https://bugs.webkit.org/show_bug.cgi?id=67755
1413
1414         Reviewed by Gavin Barraclough.
1415
1416         * Api/qwebelement.cpp:
1417         (QWebElement::evaluateJavaScript):
1418
1419 2011-09-05  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
1420
1421         [Qt][WK2] Make TiledDrawingArea request tiles only in the direction the viewport is panned to.
1422         https://bugs.webkit.org/show_bug.cgi?id=67606
1423
1424         TiledBackingStore previously used different values for horizontal and vertial multiplication
1425         to calculate the cover area. 
1426         This patch replaces this mechanism, used to give a bigger panning range to vertical panning,
1427         with the possibility to use the motion vector of the viewport to request tiles ahead instead.
1428         This allows economies on rendering resources as tiles won't be rendered beside the trajectory
1429         of the viewport.
1430
1431         * Api/qwebpage.cpp:
1432         (QWebPagePrivate::dynamicPropertyChangeEvent):
1433
1434 2011-09-06  Csaba Osztrogonác  <ossy@webkit.org>
1435
1436         Unreviewed buildfix after r94620.
1437
1438         * WebCoreSupport/FrameLoaderClientQt.cpp:
1439         (WebCore::FrameLoaderClientQt::createFrame):
1440
1441 2011-09-06  Alexis Menard  <alexis.menard@openbossa.org>
1442
1443         [Qt] Move away from QPointer as it is slow and it has a replacement QWeakPointer.
1444         https://bugs.webkit.org/show_bug.cgi?id=67673
1445
1446         Reviewed by Ariya Hidayat.
1447
1448         Move away from QPointer as Qt provides a better and faster solution : QWeakPointer.
1449
1450         * Api/qwebframe.cpp:
1451         (QWebHitTestResult::linkTargetFrame):
1452         (QWebHitTestResult::frame):
1453         * Api/qwebframe_p.h:
1454         * Api/qwebpage.cpp:
1455         (QWebPagePrivate::QWebPagePrivate):
1456         (QWebPagePrivate::~QWebPagePrivate):
1457         (QWebPagePrivate::acceptNavigationRequest):
1458         (QWebPagePrivate::createMainFrame):
1459         (QWebPagePrivate::updateAction):
1460         (QWebPagePrivate::mouseMoveEvent):
1461         (QWebPagePrivate::mousePressEvent):
1462         (QWebPagePrivate::mouseDoubleClickEvent):
1463         (QWebPagePrivate::mouseTripleClickEvent):
1464         (QWebPagePrivate::mouseReleaseEvent):
1465         (QWebPage::createStandardContextMenu):
1466         (QWebPagePrivate::wheelEvent):
1467         (QWebPagePrivate::focusInEvent):
1468         (QWebPage::setPalette):
1469         (QWebPagePrivate::touchEvent):
1470         (QWebPage::~QWebPage):
1471         (QWebPage::mainFrame):
1472         (QWebPage::viewportSize):
1473         (QWebPage::preferredContentsSize):
1474         (QWebPage::setContentEditable):
1475         (QWebPage::updatePositionDependentActions):
1476         * Api/qwebpage_p.h:
1477         * Api/qwebview.cpp:
1478         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1479         (DumpRenderTreeSupportQt::contextMenu):
1480         * WebCoreSupport/FrameLoaderClientQt.cpp:
1481         (WebCore::FrameLoaderClientQt::createFrame):
1482         * tests/qwebframe/tst_qwebframe.cpp:
1483         (tst_QWebFrame::ownership):
1484         * tests/qwebpage/tst_qwebpage.cpp:
1485         (PluginCounterPage::PluginCounterPage):
1486         (PluginTracerPage::createPlugin):
1487         (tst_QWebPage::createViewlessPlugin):
1488         * tests/qwebview/tst_qwebview.cpp:
1489         (tst_QWebView::reusePage):
1490
1491 2011-09-06  Alexis Menard  <alexis.menard@openbossa.org>
1492
1493         [Qt] Fix API test failure after r92823 and r93001.
1494         https://bugs.webkit.org/show_bug.cgi?id=67676
1495
1496         Reviewed by Kenneth Rohde Christiansen.
1497
1498         r92823 and r93001 make WebKit no longer produce wrapping style 
1499         spans on copy and paste and class="Apple-style-span" anymore.
1500         Our expectations need to be updated.
1501
1502         * tests/qwebpage/tst_qwebpage.cpp:
1503         (tst_QWebPage::cursorMovements):
1504         (tst_QWebPage::textSelection):
1505         (tst_QWebPage::findText):
1506
1507 2011-09-06  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
1508
1509         [Qt][Symbian] REGRESSION[94105] DumpRenderTree.exe doesn't build on Symbian
1510         https://bugs.webkit.org/show_bug.cgi?id=67644
1511
1512         Reviewed by Csaba Osztrogonác.
1513
1514         * symbian/eabi/QtWebKitu.def: add missing entry for
1515         FrameLoaderClientQt::dumpProgressFinishedCallback(bool)
1516
1517 2011-09-05  Kaustubh Atrawalkar  <kaustubh@motorola.com>
1518
1519         Logic from HTMLElement::deprecatedCreateContextualFragment moved into
1520         Range::createContextualFragment function.
1521         https://bugs.webkit.org/show_bug.cgi?id=67056
1522
1523         Reviewed by Ryosuke Niwa.
1524
1525         Code Refactoring for deprecatedCreateContextualFragment.
1526
1527         * Api/qwebelement.cpp:
1528         (QWebElement::appendInside):
1529         (QWebElement::prependInside):
1530         (QWebElement::prependOutside):
1531         (QWebElement::appendOutside):
1532         (QWebElement::encloseContentsWith):
1533         (QWebElement::encloseWith):
1534
1535 2011-09-03  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
1536
1537         REGRESSION (r86268): Fix for qt_networkAccessAllowed()
1538         https://bugs.webkit.org/show_bug.cgi?id=67570
1539
1540         Reviewed by Noam Rosenthal.
1541
1542         Replace the ENABLE(QT_BEARER) guard with
1543         !defined(QT_NO_BEARERMANAGEMENT) which is true by
1544         default in Qt 4.7 or later versions.
1545
1546         * Api/qwebsettings.cpp:
1547         (qt_networkAccessAllowed):
1548
1549 2011-09-02  Jade Han  <jade.han@nokia.com>
1550
1551         [Qt][Symbian] REGRESSION(93235) Missing .def update
1552         https://bugs.webkit.org/show_bug.cgi?id=67307
1553
1554         Reviewed by Laszlo Gombos.
1555
1556         * symbian/eabi/QtWebKitu.def:
1557
1558 2011-09-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1559
1560         [Qt] Transform QtFallbackWebPopupCombo into QtWebComboBox
1561         https://bugs.webkit.org/show_bug.cgi?id=67344
1562
1563         Reviewed by Andreas Kling.
1564
1565         Renamed QtFallbackWebPopup to QtWebComboBox and decoupled it from
1566         QtFallbackWebPopup. The new class is a QComboBox with the features that
1567         we need for QtWebKit: tracking when the popup is hidden (via the didHide()
1568         signal) and a convenience method to show its popup in the cursor position.
1569
1570         An important change was made to the combobox: instead of hooking our actions in
1571         showPopup() and hidePopup(), as well as watching for popup visibility events, we
1572         now just watch for the visibility events. This allowed us to get rid of
1573         m_popupVisible and tracking the Show event.
1574
1575         This commit also removed a workaround for input focus added in r40970 after
1576         reviewers request. See bug report for details.
1577
1578         * QtWebKit.pro:
1579         * WebCoreSupport/QtFallbackWebPopup.cpp:
1580         (WebCore::QtFallbackWebPopup::QtFallbackWebPopup):
1581         (WebCore::QtFallbackWebPopup::~QtFallbackWebPopup):
1582         (WebCore::QtFallbackWebPopup::show):
1583         (WebCore::QtFallbackWebPopup::deleteComboBox):
1584         * WebCoreSupport/QtFallbackWebPopup.h:
1585         * WebCoreSupport/QtWebComboBox.cpp: Added.
1586         (WebCore::QtWebComboBox::QtWebComboBox):
1587         (WebCore::QtWebComboBox::showPopupAtCursorPosition):
1588         (WebCore::QtWebComboBox::eventFilter):
1589         * WebCoreSupport/QtWebComboBox.h: Added.
1590
1591         * tests/qwebframe/tst_qwebframe.cpp:
1592         (tst_QWebFrame::popupFocus):
1593         Change the test to use QObject::findChild(). The old method couldn't find our
1594         new class because we defined a new metaclass for it.
1595
1596 2011-08-31  Ryosuke Niwa  <rniwa@webkit.org>
1597
1598         Move text() and textWithHardLineBreaks() from RenderTextControl to HTMLTextFormControlElement
1599         https://bugs.webkit.org/show_bug.cgi?id=67320
1600
1601         Reviewed by Darin Adler.
1602
1603         Call HTMLTextFormControlElement::value() instead of RenderText::text()
1604
1605         * Api/qwebpage.cpp:
1606         (QWebPage::inputMethodQuery):
1607
1608 2011-08-31  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1609
1610         [Qt] Unskip API test for load signals order
1611         https://bugs.webkit.org/show_bug.cgi?id=67285
1612
1613         Reviewed by Andreas Kling.
1614
1615         * tests/qwebpage/tst_qwebpage.cpp:
1616         (tst_QWebPage::loadSignalsOrder):
1617
1618 2011-08-30  Sheriff Bot  <webkit.review.bot@gmail.com>
1619
1620         Unreviewed, rolling out r94142, r94144, r94145, and r94148.
1621         http://trac.webkit.org/changeset/94142
1622         http://trac.webkit.org/changeset/94144
1623         http://trac.webkit.org/changeset/94145
1624         http://trac.webkit.org/changeset/94148
1625         https://bugs.webkit.org/show_bug.cgi?id=67262
1626
1627         Broke isindex element (Requested by rniwa on #webkit).
1628
1629         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1630         (DumpRenderTreeSupportQt::setAutofilled):
1631         (DumpRenderTreeSupportQt::setValueForUser):
1632         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
1633
1634 2011-08-30  Ryosuke Niwa  <rniwa@webkit.org>
1635
1636         Get rid of toInputElement()
1637         https://bugs.webkit.org/show_bug.cgi?id=67175
1638
1639         Reviewed by Darin Adler.
1640
1641         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1642         (DumpRenderTreeSupportQt::setAutofilled):
1643         (DumpRenderTreeSupportQt::setValueForUser):
1644         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
1645
1646 2011-08-30  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1647
1648         Emit last progress notification before calling dispatchDidFinishLoad
1649         https://bugs.webkit.org/show_bug.cgi?id=28851
1650
1651         Reviewed by Adam Barth.
1652
1653         Add infrastructure to dump progressFinishedNotification callback in DRT.
1654
1655         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1656         (DumpRenderTreeSupportQt::dumpProgressFinishedCallback):
1657         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1658         * WebCoreSupport/FrameLoaderClientQt.cpp:
1659         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
1660         * WebCoreSupport/FrameLoaderClientQt.h:
1661
1662 2011-08-30  Kaustubh Atrawalkar  <kaustubh@motorola.com>
1663
1664         The unused ScrollView* argument can and should be removed from
1665         scrollRectIntoView.
1666         https://bugs.webkit.org/show_bug.cgi?id=67117
1667
1668         Reviewed by Darin Adler.
1669
1670         * WebCoreSupport/ChromeClientQt.h:
1671         (WebCore::ChromeClientQt::scrollRectIntoView):
1672
1673 2011-08-25  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
1674
1675         Unreviewed QtWebKit.pro fix for when building inside Qt
1676
1677         Patch by Simo Fält <simo.falt@nokia.com>
1678
1679         The QtWebKit version was being overwritten by a global Qt version when
1680         QtWebKit was built inside Qt. Fixed by moving the version
1681         definition after the inclusion of qbase.pri.
1682
1683         * QtWebKit.pro:
1684
1685 2011-08-25  Sheriff Bot  <webkit.review.bot@gmail.com>
1686
1687         Unreviewed, rolling out r93783.
1688         http://trac.webkit.org/changeset/93783
1689         https://bugs.webkit.org/show_bug.cgi?id=66943
1690
1691         Commited wrong stuff by accident. (Requested by ademar on
1692         #webkit).
1693
1694         * Api/qwebview.cpp:
1695         (QWebView::load):
1696         (QWebView::setHtml):
1697         (QWebView::setContent):
1698         (QWebView::setUrl):
1699         * QtWebKit.pro:
1700
1701 2011-08-25  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
1702
1703         Unreviewed QtWebKit.pro fix for when building inside Qt
1704
1705         Patch by Simo Fält <simo.falt@nokia.com>
1706
1707         The QtWebKit version was being overwritten by a global Qt version when
1708         QtWebKit was built inside Qt. Fixed by moving the version
1709         definition after the inclusion of qbase.pri.
1710
1711         * QtWebKit.pro:
1712
1713 2011-08-23  Tor Arne Vestbø  <tor.arne.vestbo@nokia.com>
1714
1715         [Qt] Fix build on Lion
1716
1717         https://bugs.webkit.org/show_bug.cgi?id=66770
1718
1719         Reviewed by Andreas Kling.
1720
1721         We were mistakenly picking up mac/WebCoreSystemInterface.h instead of
1722         the Qt one, and building on Lion revealed this when a typedef for
1723         IOSurfaceRef was wrapped in PLATFORM(MAC).
1724
1725         For now we fix this by including WebCoreSystemInterface using
1726         brackets, so that we'll pick up the right file based on the
1727         include paths. This also means exposing a few missing enums
1728         in our own version of the file, so those were added.
1729
1730         Lasty, we need to link against the right system interface library
1731         on Lion.
1732
1733         * QtWebKit.pro:
1734
1735 2011-08-21  Lindsay Mathieson  <lindsay.mathieson@gmail.com>
1736
1737         [Qt] Fixes premature plugin unload bug
1738         https://bugs.webkit.org/show_bug.cgi?id=66628
1739         
1740         Reviewed by Benjamin Poulain.
1741
1742         The QtPlatformPlugin was allocated on the stack, so its destructor is unloading the
1743         plugin at the end of the scope. This patch moves the local creation of QtPlatformPlugin
1744         to class member (TextCheckerClientQt::m_platformPlugin), preventing premature unloading
1745         of plugin.            
1746         
1747         * WebCoreSupport/TextCheckerClientQt.cpp:
1748         (WebCore::TextCheckerClientQt::loadSpellChecker):
1749         * WebCoreSupport/TextCheckerClientQt.h:
1750
1751 2011-08-17  Adam Roben  <aroben@apple.com>
1752
1753         Make WebCore keep track of the current device scale factor
1754
1755         Fixes <http://webkit.org/b/66413> WebCore requires every WebKit port to keep track of the
1756         device scale factor
1757
1758         Reviewed by Darin Adler.
1759
1760         * Api/qwebpage.cpp:
1761         (QWebPagePrivate::QWebPagePrivate): Removed pixelRatio.
1762         (QWebPage::viewportAttributesForSize): Now calls Page::setDeviceScaleFactor.
1763
1764         * Api/qwebpage_p.h: Removed pixelRatio.
1765
1766         * WebCoreSupport/ChromeClientQt.cpp:
1767         * WebCoreSupport/ChromeClientQt.h:
1768         Removed deviceScaleFactor.
1769
1770 2011-08-18  Chang Shu  <cshu@webkit.org>
1771
1772         Add support of setPasswordEchoEnabled and setPasswordEchoDuration for password echo feature
1773         https://bugs.webkit.org/show_bug.cgi?id=66052
1774
1775         Reviewed by Alexey Proskuryakov.
1776
1777         Enable password echo under the build flag.
1778
1779         * Api/qwebsettings.cpp:
1780         (QWebSettingsPrivate::apply):
1781
1782 2011-08-16  Chang Shu  <cshu@webkit.org>
1783
1784         Support reset in WebCore::Internals
1785         https://bugs.webkit.org/show_bug.cgi?id=66307
1786
1787         Reviewed by Dimitri Glazkov.
1788
1789         Added framework code in WebKit.
1790
1791         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1792         (DumpRenderTreeSupportQt::resetInternalsObject):
1793         * WebCoreSupport/DumpRenderTreeSupportQt.h:
1794
1795 2011-08-16  Lindsay Mathieson   <lindsay.mathieson@gmail.com>
1796
1797         [Qt] Missing spell check support
1798         https://bugs.webkit.org/show_bug.cgi?id=44114
1799
1800         Reviewed by Benjamin Poulain.
1801
1802         Added a platform plugin to allow spell and grammar check in QtWebKit.
1803
1804         * Api/qwebkitplatformplugin.h:
1805         * QtWebKit.pro:
1806         * WebCoreSupport/EditorClientQt.cpp:
1807         (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
1808         (WebCore::EditorClientQt::isGrammarCheckingEnabled):
1809         (WebCore::EditorClientQt::toggleContinuousSpellChecking):
1810         (WebCore::EditorClientQt::toggleGrammarChecking):
1811         * WebCoreSupport/EditorClientQt.h:
1812         (WebCore::EditorClientQt::textChecker):
1813         * WebCoreSupport/QtPlatformPlugin.cpp:
1814         (WebCore::QtPlatformPlugin::createSpellChecker):
1815         * WebCoreSupport/QtPlatformPlugin.h:
1816         * WebCoreSupport/TextCheckerClientQt.cpp: Added.
1817         (convertToVectorList):
1818         (WebCore::TextCheckerClientQt::ignoreWordInSpellDocument):
1819         (WebCore::TextCheckerClientQt::learnWord):
1820         (WebCore::TextCheckerClientQt::getAutoCorrectSuggestionForMisspelledWord):
1821         (WebCore::TextCheckerClientQt::checkSpellingOfString):
1822         (WebCore::TextCheckerClientQt::checkGrammarOfString):
1823         (WebCore::TextCheckerClientQt::getGuessesForWord):
1824         (WebCore::TextCheckerClientQt::isContinousSpellCheckingEnabled):
1825         (WebCore::TextCheckerClientQt::toggleContinousSpellChecking):
1826         (WebCore::TextCheckerClientQt::isGrammarCheckingEnabled):
1827         (WebCore::TextCheckerClientQt::toggleGrammarChecking):
1828         (WebCore::TextCheckerClientQt::loadSpellChecker):
1829         * WebCoreSupport/TextCheckerClientQt.h: Added.
1830         (WebCore::TextCheckerClientQt::requestCheckingOfString):
1831
1832 2011-08-15  Dmitry Titov  <dimich@chromium.org>
1833
1834         FrameLoaderClient::transferLoadingResourceFromPage does not have enough parameters
1835         https://bugs.webkit.org/show_bug.cgi?id=66165
1836
1837         Reviewed by Darin Fisher.
1838
1839         * WebCoreSupport/FrameLoaderClientQt.cpp:
1840         (WebCore::FrameLoaderClientQt::transferLoadingResourceFromPage):
1841         * WebCoreSupport/FrameLoaderClientQt.h:
1842
1843 2011-08-10  Adam Roben  <aroben@apple.com>
1844
1845         Clear up scale factor terminology
1846
1847         WebKit by and large deals with two scale factors: one intrinsic to the device on which the
1848         software is running, and one that is per-Page and can be controlled via API calls. This
1849         patch names the former "deviceScaleFactor" and the latter "pageScaleFactor", and makes the
1850         code use those names. It should introduce no behavior changes.
1851
1852         Fixes <http://webkit.org/b/55787> WebKit uses multiple conflicting names to refer to the
1853         device scale factor
1854
1855         Reviewed by Simon Fraser.
1856
1857         * WebCoreSupport/ChromeClientQt.cpp:
1858         * WebCoreSupport/ChromeClientQt.h:
1859
1860 2011-08-12  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
1861
1862         [Qt] Add test for correct order of load signals in QWebPage
1863         https://bugs.webkit.org/show_bug.cgi?id=66016
1864
1865         Reviewed by Benjamin Poulain.
1866
1867         Add API test to ensure the order of load signals: loadStarted() needs to be emitted
1868         first, then loadProgress(100), followed by loadFinished().
1869
1870         The test is skipped since this right now is broken, the bug
1871         https://bugs.webkit.org/show_bug.cgi?id=28851 tracks one possible way to fix.
1872
1873         * tests/qwebpage/tst_qwebpage.cpp:
1874         (SpyForLoadSignalsOrder::SpyForLoadSignalsOrder):
1875         (SpyForLoadSignalsOrder::isFinished):
1876         (SpyForLoadSignalsOrder::onLoadProgress):
1877         (tst_QWebPage::loadSignalsOrder_data):
1878         (tst_QWebPage::loadSignalsOrder):
1879
1880 2011-08-12  Alexis Menard  <alexis.menard@openbossa.org>
1881
1882         [Qt] Make sure QtWebKit correctly compiles when building WebKit2 with Qt5.
1883
1884         In order to build correctly the QtQuick1 plugin we need to explicitly
1885         link to the new library added in Qt5 "qtquick1".
1886
1887         Reviewed by Simon Hausmann.
1888
1889         * declarative/declarative.pro:
1890
1891 2011-08-11  Andrew Wason  <rectalogic@rectalogic.com>
1892
1893         REGRESSION: Qt JavaScript bridge signal connection fails
1894         https://bugs.webkit.org/show_bug.cgi?id=66097
1895
1896         Reviewed by Gavin Barraclough.
1897
1898         Unmark tests as expected failures, they pass now.
1899
1900         * tests/qwebframe/tst_qwebframe.cpp:
1901         (tst_QWebFrame::connectAndDisconnect):
1902
1903 2011-08-09  Sheriff Bot  <webkit.review.bot@gmail.com>
1904
1905         Unreviewed, rolling out r92683.
1906         http://trac.webkit.org/changeset/92683
1907         https://bugs.webkit.org/show_bug.cgi?id=65921
1908
1909          "Breaks Qt --minimal build. Revert pending update of the Qt
1910         minimal configuration" (Requested by simathur on #webkit).
1911
1912         * Api/qwebsettings.cpp:
1913         (QWebSettings::enablePersistentStorage):
1914
1915 2011-08-09  Siddharth Mathur  <siddharth.mathur@nokia.com>
1916
1917         [Qt] Simplify code by removing QT_NO_DESKTOPSERVICES and QT_NO_NETWORKDISKCACHE
1918         https://bugs.webkit.org/show_bug.cgi?id=65880
1919
1920         Reviewed by Andreas Kling.
1921
1922         QDesktopServices and QNetworkDiskCache have been around for a while now. Kill flags which 
1923         check for their feature flags. Assume that any reasonable Qt build provides them. 
1924
1925         * Api/qwebsettings.cpp:
1926         (QWebSettings::enablePersistentStorage):
1927
1928 2011-08-05  Dawit Alemayehu  <adawit@kde.org>
1929
1930         Reviewed by Andreas Kling.
1931
1932         Reverted commit r87797, http://trac.webkit.org/changeset/87797, because it
1933         causes the regression reported under bug# 63582.
1934
1935         [Qt] REGRESSION(r87797): Broke KDEWebKit's custom QNAM.
1936         https://bugs.webkit.org/show_bug.cgi?id=63582
1937
1938         * WebCoreSupport/FrameLoaderClientQt.cpp:
1939         (WebCore::FrameLoaderClientQt::setFrame):
1940
1941 2011-08-03  Pavel Feldman  <pfeldman@google.com>
1942
1943         Web Inspector: [Timeline] Hover on paint events and see rect outline around that area.
1944         https://bugs.webkit.org/show_bug.cgi?id=65510
1945
1946         Reviewed by Yury Semikhatsky.
1947
1948         * Api/qwebframe.cpp:
1949         (QWebFramePrivate::renderRelativeCoords):
1950
1951 2011-08-03  Pavel Feldman  <pfeldman@chromium.org>
1952
1953         Web Inspector: remove Node parameter from the InspectorClient::highlight
1954         https://bugs.webkit.org/show_bug.cgi?id=65549
1955
1956         Reviewed by Yury Semikhatsky.
1957
1958         * WebCoreSupport/InspectorClientQt.cpp:
1959         (WebCore::InspectorClientQt::highlight):
1960         * WebCoreSupport/InspectorClientQt.h:
1961
1962 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
1963
1964         [Qt] Fix tst_QDeclarativeWebView::basicProperties() and historyNav() autotests
1965         https://bugs.webkit.org/show_bug.cgi?id=61042
1966         Remove mark as expected fail where unexpected pass and mark failing test case as expected fail
1967
1968         Reviewed by Csaba Osztrogonác.
1969
1970         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
1971         (tst_QDeclarativeWebView::basicProperties):
1972         (tst_QDeclarativeWebView::historyNav):
1973
1974 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
1975
1976         [Qt] Fix tst_QWebPage::viewModes() API test
1977         https://bugs.webkit.org/show_bug.cgi?id=65531
1978
1979         Reviewed by Csaba Osztrogonác.
1980
1981         * tests/qwebpage/tst_qwebpage.cpp: Mark failing test case as expected fail
1982         (tst_QWebPage::viewModes):
1983
1984 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
1985
1986         [Qt] Fix tst_QWebFrame::connectAndDisconnect() API test
1987         https://bugs.webkit.org/show_bug.cgi?id=65170
1988
1989         Reviewed by Csaba Osztrogonác.
1990
1991         * tests/qwebframe/tst_qwebframe.cpp: Mark failing test case as expected fail
1992         (tst_QWebFrame::connectAndDisconnect):
1993
1994 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
1995
1996         [Qt] Fix tst_QWebElement::render() API test
1997         https://bugs.webkit.org/show_bug.cgi?id=65243
1998
1999         Reviewed by Csaba Osztrogonác.
2000
2001         * tests/qwebelement/tst_qwebelement.cpp: Mark failing test case as expected fail
2002         (tst_QWebElement::render):
2003
2004 2011-08-02  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2005
2006         [Qt] tst_QWebElement::style() fails because QWebElement::CascadedStyle doesn't work as expected
2007         https://bugs.webkit.org/show_bug.cgi?id=65244
2008
2009         Reviewed by Csaba Osztrogonác.
2010
2011         * tests/qwebelement/tst_qwebelement.cpp: Mark failing test case as expected fail
2012         (tst_QWebElement::style):
2013
2014 2011-08-01  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
2015
2016         [Qt] Fix tst_QWebPage::loadHtml5Video() API test
2017         https://bugs.webkit.org/show_bug.cgi?id=65452
2018
2019         Reviewed by Csaba Osztrogonác.
2020
2021         * tests/qwebpage/tst_qwebpage.cpp: Mark failing test case as expected fail
2022         (tst_QWebPage::loadHtml5Video):
2023
2024 2011-07-30  Patrick Gansterer  <paroga@webkit.org>
2025
2026         Remove inclusion of MainThread.h from Threading.h
2027         https://bugs.webkit.org/show_bug.cgi?id=65081
2028
2029         Reviewed by Darin Adler.
2030
2031         Add missing include statements for MainThread.
2032
2033         * Api/qwebpage.cpp:
2034
2035 2011-07-27  Benjamin Poulain  <benjamin@webkit.org>
2036
2037         [WK2][Qt] Move from QGraphicsView to Qt Scene Graph
2038         https://bugs.webkit.org/show_bug.cgi?id=62969
2039
2040         Reviewed by Andreas Kling.
2041
2042         Co-authored with Simon Hausmann  <simon.hausmann@nokia.com>
2043
2044         Add the declarative dependency to link WebKit.
2045
2046         * QtWebKit.pro:
2047
2048 2011-07-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2049
2050         [Qt] QtWebkit never finishes loading sites when they are loaded after an initial QUrl fails to load.
2051         https://bugs.webkit.org/show_bug.cgi?id=61328
2052
2053         Reviewed by Andreas Kling.
2054
2055         Change the hooks in FrameLoaderClient we use for emitting signals. Instead of
2056         emitting signals in the progress notification functions, we use the
2057         dispatchDid{Start,Finish,Fail}* functions. The main reason behind this change is
2058         that loading code is prepared to handle load() when inside those functions.
2059
2060         The crash was being caused by setUrl() (and load()) being called when
2061         loadFinished(false) was emitted. The problem here is that when
2062         postProgressFinishedNotification the FrameLoader wasn't ready for taking a load()
2063         call again, because it was still the ProvisionalLoadState but with the
2064         provisionalDocumentLoader already removed.
2065
2066         To emulate the same behavior that QtWebKit had when using
2067         postProgressFinishedNotification, we now keep track of the frame originating the
2068         load, and emit the signals when this frame's client is called.
2069
2070         The patch keeps the existing semantics for QWebPage signals, but we now emit the
2071         QWebFrame signals everytime, not only when they are the originating frame for
2072         loading.
2073
2074         * Api/qwebframe.cpp:
2075         (clearCoreFrame): Document our assumption that activeDocumentLoader will exist.
2076
2077         * WebCoreSupport/FrameLoaderClientQt.h: Remove m_loadError, add a boolean to keep
2078         track whether the frame is originating the load. Remove the signals from
2079         FrameLoaderClientQt since we will emit QWebFrame and QWebPage signals directly.
2080
2081         * WebCoreSupport/FrameLoaderClientQt.cpp:
2082         (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Initialize m_isOriginatingLoad.
2083
2084         (WebCore::FrameLoaderClientQt::setFrame): Do not connect QWebFrame and QWebPage
2085         signals to our signals for load/finished, signal emission will be done manually.
2086
2087         (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad): Emit
2088         loadStarted() signal and make the first notification of estimation change, that
2089         Qt API tests expect to exist and notify 10%.
2090
2091         (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad): Remove reference to
2092         m_loadError and emit loadFinished() signal.
2093
2094         (WebCore::FrameLoaderClientQt::postProgressStartedNotification): Remove signal
2095         emission and mark the originating load as true, since only the originating frame
2096         gets this call in its client.
2097
2098         (WebCore::FrameLoaderClientQt::postProgressFinishedNotification): Remove signal
2099         emission.
2100
2101         (WebCore::FrameLoaderClientQt::callErrorPageExtension): Return whether the call
2102         was successful or not. This wasn't necessary before because a successful call for
2103         error page would lead to a load(), that cleared the m_loadError.
2104         (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad): Remove reference
2105         to m_loadError and emit finished signal indicating error if ErrorPage extension
2106         doesn't handle it.
2107         (WebCore::FrameLoaderClientQt::dispatchDidFailLoad): Ditto.
2108
2109         (WebCore::FrameLoaderClientQt::emitLoadStarted): Emit the loadStarted() signal
2110         for the QWebFrame, and if the originating load also do for the QWebPage.
2111
2112         (WebCore::FrameLoaderClientQt::emitLoadFinished): Same as before but for
2113         loadFinished(). Take care to reset the originating load flag before the signals
2114         are emitted, since they might want to set it back again.
2115
2116         * tests/qwebframe/tst_qwebframe.cpp:
2117         (URLSetter::URLSetter): Object that sets the url using either load() or setUrl()
2118         when a certain signal is emitted in the frame.
2119
2120         (URLSetter::execute):
2121         (tst_QWebFrame::loadInSignalHandlers_data):
2122         (tst_QWebFrame::loadInSignalHandlers): New test inspired by the bug test case. This test
2123         crashes without this patch applied.
2124
2125 2011-07-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2126
2127         [Qt] Fix build in Qt 5 of QDeclarativeWebView
2128         https://bugs.webkit.org/show_bug.cgi?id=65258
2129
2130         Reviewed by Andreas Kling.
2131
2132         In Qt 5, the QGraphicsView-based classes for QtQuick are in the
2133         qtquick1 module, including QDeclarativeItem and QDeclarativeView.
2134
2135         * declarative/qdeclarativewebview_p.h:
2136         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
2137         * tests/tests.pri:
2138         * tests/tests.pro:
2139
2140 2011-07-26  Sadrul Habib Chowdhury  <sadrul@chromium.org>
2141
2142         Add support for download='filename' attribute in anchors.
2143         https://bugs.webkit.org/show_bug.cgi?id=64580
2144
2145         Reviewed by Adam Barth.
2146
2147         * WebCoreSupport/FrameLoaderClientQt.cpp:
2148         (WebCore::FrameLoaderClientQt::startDownload):
2149         * WebCoreSupport/FrameLoaderClientQt.h:
2150
2151 2011-07-26  Alexis Menard  <alexis.menard@openbossa.org>
2152
2153         Reviewed by Andreas Kling.
2154
2155         [Qt] Change default backend to use GStreamer on Linux and QuickTime on Mac.
2156         https://bugs.webkit.org/show_bug.cgi?id=63472
2157
2158         Use the flag WTF_USE_QTKIT=1 rather than USE_QTKIT=1 because that flag doesn't
2159         exist anymore, it's the default. Ditto for GStreamer.
2160
2161         * QtWebKit.pro:
2162
2163 2011-07-25  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2164
2165         [Qt] Add more tests to cover the behavior of loadFinished() signal
2166         https://bugs.webkit.org/show_bug.cgi?id=63490
2167
2168         Reviewed by Benjamin Poulain.
2169
2170         * tests/qwebframe/tst_qwebframe.cpp:
2171         (FakeReply::FakeReply):
2172         (FakeNetworkManager::createRequest): Add a fake reply that gives 404 error code.
2173
2174         (tst_QWebFrame::loadFinishedAfterNotFoundError): Verify that we get loadFinished(false)
2175         after a 404 error without contents.
2176
2177         * tests/qwebpage/tst_qwebpage.cpp:
2178         (tst_QWebPage::errorPageExtensionLoadFinished): Verify if the argument of loadFinished()
2179         is true when we use error page extension to produce our own error pages.
2180
2181 2011-07-19  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2182
2183         [Qt] Improve documentation of QWebView::setPage()
2184         https://bugs.webkit.org/show_bug.cgi?id=64827
2185
2186         Reviewed by Noam Rosenthal.
2187
2188         * Api/qwebview.cpp: Use the word 'page' to refer to a QWebPage instead of 'document'.
2189
2190 2011-07-19  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2191
2192         [Qt] Fix leak of QWebPage in errorPageExtension tests
2193         https://bugs.webkit.org/show_bug.cgi?id=64814
2194
2195         Reviewed by Noam Rosenthal.
2196
2197         QWebView::setPage() doesn't take ownership, so the ErrorPages were leaking. So now
2198         allocate them on the stack. This shouldn't change any behavior.
2199
2200         * tests/qwebpage/tst_qwebpage.cpp:
2201         (tst_QWebPage::errorPageExtension):
2202         (tst_QWebPage::errorPageExtensionInIFrames):
2203         (tst_QWebPage::errorPageExtensionInFrameset):
2204
2205 2011-07-18  Hui Huang  <hui.2.huang@nokia.com>
2206
2207         [Qt] Compiling error in Source/WebKit/qt/tests/qwebelement/tst_qwebelement.cpp with Qt 4.7 or older
2208         https://bugs.webkit.org/show_bug.cgi?id=64560
2209
2210         Reviewed by Noam Rosenthal.
2211
2212         * tests/qwebelement/tst_qwebelement.cpp:
2213         (tst_QWebElement::render):
2214
2215 2011-07-15  Dan Bernstein  <mitz@apple.com>
2216
2217         REGRESSION: Mouse cursor doesn’t hide when full screen video HUD hides
2218         https://bugs.webkit.org/show_bug.cgi?id=64615
2219
2220         Reviewed by Anders Carlsson.
2221
2222         * WebCoreSupport/ChromeClientQt.h:
2223         (WebCore::ChromeClientQt::setCursorHiddenUntilMouseMoves): Added this stub.
2224
2225 2011-07-15  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2226
2227         REGRESSION(91064): Upstream QtWebKit/N9 changes related tovisibleContentRect
2228
2229         Reviewed by Antonio Gomes.
2230
2231         Only set setFixedVisibleContentRect when in resizesToContents mode.
2232
2233         * WebCoreSupport/FrameLoaderClientQt.cpp:
2234         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2235
2236 2011-07-15  Kenneth Rohde Christiansen  <kenneth@webkit.org>
2237
2238         Upstream QtWebKit/N9 changes related to visibleContentRect
2239         https://bugs.webkit.org/show_bug.cgi?id=64589
2240
2241         Reviewed by Simon Hausmann.
2242
2243         * Api/qwebpage.cpp:
2244         (QWebPage::setActualVisibleContentRect):
2245         Change to use setFixedVisibleContentRect.
2246         * WebCoreSupport/FrameLoaderClientQt.cpp:
2247         (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2248         Only set fixedVisibleContentRect for the mainframe.
2249         * symbian/eabi/QtWebKitu.def:
2250
2251 2011-07-13  Joseph Pecoraro  <joepeck@webkit.org>
2252
2253         Improve names of some ApplicationCacheStorage accessor methods
2254         https://bugs.webkit.org/show_bug.cgi?id=64433
2255
2256         Reviewed by Alexey Proskuryakov.
2257
2258         * WebCoreSupport/ChromeClientQt.cpp:
2259         (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
2260         Renamed method.
2261
2262 2011-07-12  Joseph Pecoraro  <joepeck@webkit.org>
2263
2264         ApplicationCache update should not immediately fail when reaching per-origin quota
2265         https://bugs.webkit.org/show_bug.cgi?id=64177
2266
2267         Reviewed by Alexey Proskuryakov.
2268
2269         * Api/qwebpage.cpp:
2270         * Api/qwebpage.h:
2271         * WebCoreSupport/ChromeClientQt.cpp:
2272         (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
2273         * WebCoreSupport/ChromeClientQt.h:
2274         Pass the spaceNeeded value through to the applicationCacheQuotaExceeded signal.
2275
2276 2011-07-11  Ryosuke Niwa  <rniwa@webkit.org>
2277
2278         Move selection related code from RenderTextControl to HTMLTextFormControlElement
2279         https://bugs.webkit.org/show_bug.cgi?id=64133
2280
2281         Reviewed by Dimitri Glazkov.
2282
2283         Replaced calls to WebCore::setSelectionRange by calls to HTMLTextFormControlElement::setSelectionRange.
2284
2285         * Api/qwebpage.cpp:
2286         (QWebPagePrivate::inputMethodEvent):
2287
2288 2011-07-08  Adam Barth  <abarth@webkit.org>
2289
2290         Unreviewed, rolling out r90662.
2291         http://trac.webkit.org/changeset/90662
2292         https://bugs.webkit.org/show_bug.cgi?id=64210
2293
2294         Introduced regressions in Chromium browser tests (Requested by
2295         rniwa on #webkit).
2296
2297         * Api/qwebpage.cpp:
2298         (QWebPagePrivate::inputMethodEvent):
2299
2300 2011-07-08  Ryosuke Niwa  <rniwa@webkit.org>
2301
2302         Move selection related code from RenderTextControl to HTMLTextFormControlElement
2303         https://bugs.webkit.org/show_bug.cgi?id=64133
2304
2305         Reviewed by Dimitri Glazkov.
2306
2307         Replaced calls to WebCore::setSelectionRange by calls to HTMLTextFormControlElement::setSelectionRange.
2308
2309         * Api/qwebpage.cpp:
2310         (QWebPagePrivate::inputMethodEvent):
2311
2312 2011-07-05  Rafael Brandao  <rafael.lobo@openbossa.org>
2313
2314         [Qt] Fix tst_QWebFrame::setHtmlWithResource() API test
2315         https://bugs.webkit.org/show_bug.cgi?id=63235
2316
2317         Modified baseUrl to be a local file in order to get a security origin
2318         that is allowed to request local resources. Removed QSignalSpy from it
2319         as loadFinished always happens, and the original test was split into two.
2320
2321         Reviewed by Benjamin Poulain.
2322
2323         * tests/qwebframe/tst_qwebframe.cpp:
2324         (tst_QWebFrame::setHtmlWithImageResource):
2325         (tst_QWebFrame::setHtmlWithStylesheetResource):
2326         (tst_QWebFrame::setHtmlWithBaseURL):
2327
2328 2011-04-02  Robert Hogan  <robert@webkit.org>
2329
2330         Reviewed by Benjamin Poulain.
2331
2332         [Qt] Support third-party cookie policy for Qt clients
2333
2334         This adds new API to QWebSettings that allows clients to
2335         select one of three third-party cookie blocking policies:
2336
2337           AlwaysAllowThirdPartyCookies
2338           AlwaysBlockThirdPartyCookies
2339           AllowThirdPartyWithExistingCookies
2340
2341         The first two are self-explanatory, the third mimics Safari's
2342         default behaviour of permitting third-party cookies when the user
2343         already has cookies from the third-party site. This was
2344         introduced to allow third-party cookie blocking to play well with
2345         facebook sharing etc. AlwaysAllowThirdPartyCookies is the default.
2346
2347         There is scope for adding an 'exceptions' list API and clients would
2348         struggle to implement it themselves given the paucity of information
2349         available from setCookiesForUrl().
2350
2351         See also: http://gitorious.org/qt/qt/merge_requests/1205
2352                    (commit 154402f56dcf8303a6ce601a52215226af8d31ba)
2353                   http://bugreports.qt.nokia.com/browse/QTBUG-13601
2354
2355         https://bugs.webkit.org/show_bug.cgi?id=45455
2356
2357         * Api/qwebsettings.cpp:
2358         (QWebSettings::QWebSettings):
2359         (QWebSettings::setThirdPartyCookiePolicy):
2360         (QWebSettings::thirdPartyCookiePolicy):
2361         * Api/qwebsettings.h:
2362
2363 2011-07-01  Jade Han  <jade.han@nokia.com>
2364
2365         [Qt][Symbian] Update .def file for Symbian to build Tools
2366         https://bugs.webkit.org/show_bug.cgi?id=61200
2367
2368         Reviewed by Laszlo Gombos.
2369
2370         Add newly introduced symbols to fix building the Tools directory for Symbian.
2371
2372         * symbian/eabi/QtWebKitu.def:
2373
2374 2011-07-01  Jade Han  <jade.han@nokia.com>
2375
2376         Reviewed by Laszlo Gombos.
2377
2378         [Qt][Symbian] Update .def file for Symbian
2379         https://bugs.webkit.org/show_bug.cgi?id=61200
2380
2381         Add newly introduced symbols to fix the Symbian build.
2382
2383         * symbian/eabi/QtWebKitu.def:
2384
2385 2011-06-30  Rafael Brandao  <rafael.lobo@openbossa.org>
2386
2387         Reviewed by Benjamin Poulain.
2388
2389         [Qt] Fix tst_QWebFrame::renderGeometry() API test
2390         https://bugs.webkit.org/show_bug.cgi?id=63236
2391         
2392         This test required a security origin with granted permission to request local resources.
2393         By default, only local files can load local resources. So modified baseUrl to be a local file.
2394
2395         * tests/qwebframe/tst_qwebframe.cpp:
2396         (tst_QWebFrame::renderGeometry):
2397
2398 2011-06-27  Diego Gonzalez  <diegohcg@webkit.org>
2399
2400         Reviewed by Antonio Gomes.
2401
2402         [Qt] DRT: Provide LayoutTestController::setDefersLoading and ::goBack support
2403         https://bugs.webkit.org/show_bug.cgi?id=63489
2404
2405         Unskipped:
2406             loader/navigation-while-deferring-loads.html
2407
2408         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2409         (DumpRenderTreeSupportQt::setDefersLoading):
2410         (DumpRenderTreeSupportQt::goBack):
2411         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2412
2413 2011-06-30  Fabrizio Machado  <fabrizio.machado@nokia.com>
2414
2415         Reviewed by Benjamin Poulain.
2416         
2417         [Qt] QML Webview causes performance drops
2418         https://bugs.webkit.org/show_bug.cgi?id=57554
2419
2420         Remove tiledBackingStoreEnabled from QML WebView.
2421         
2422         * declarative/qdeclarativewebview.cpp:
2423         (QDeclarativeWebView::setPage):
2424
2425 2011-06-30  Kentaro Hara  <haraken@google.com>
2426
2427         Reviewed by Kent Tamura.
2428
2429         Change the label of an HTML5 file chooser button to "Choose Files"
2430         https://bugs.webkit.org/show_bug.cgi?id=49245
2431
2432         We should notify capability of multiple files to users.
2433
2434         Test: fast/forms/input-file-label.html
2435
2436         * WebCoreSupport/WebPlatformStrategies.cpp:
2437         (WebPlatformStrategies::fileButtonChooseFileLabel): Updated the description for "Choose File".
2438         (WebPlatformStrategies::fileButtonChooseMultipleFilesLabel):  Returns a "Choose Files" label.
2439         * WebCoreSupport/WebPlatformStrategies.h:
2440
2441 2011-06-29  Alexis Menard  <alexis.menard@openbossa.org>
2442
2443         Reviewed by Benjamin Poulain.
2444
2445         [Qt] Add Qt dependencies in QtWebKit's main pro file.
2446         https://bugs.webkit.org/show_bug.cgi?id=63639
2447
2448         syncqt, the script which generates the headers inside Qt parses
2449         the main pro file of QtWebKit to check the Qt dependencies. It used
2450         to be WebCore.pro but after the build reorganization QtWebKit.pro is
2451         the new main pro file so we need to add the network dependency just like
2452         we did in WebCore.pro.
2453
2454         * QtWebKit.pro:
2455
2456 2011-06-28  Ilya Sherman  <isherman@chromium.org>
2457
2458         Reviewed by Adam Barth.
2459
2460         form.autocomplete="off" does not work
2461         https://bugs.webkit.org/show_bug.cgi?id=35823
2462
2463         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2464         (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId): Update callsite.
2465
2466 2011-06-27  Diego Gonzalez  <diegohcg@webkit.org>
2467
2468         Reviewed by Kenneth Rohde Christiansen.
2469
2470         [Qt] DRT support for setInteractiveFormValidationEnabled
2471         https://bugs.webkit.org/show_bug.cgi?id=63496
2472
2473         Unskipped:
2474             fast/forms/interactive-validation-prevented.html
2475             fast/forms/interactive-validation-attach-assertion.html
2476             fast/forms/interactive-validation-assertion-by-validate-twice.html
2477             fast/forms/interactive-validation-select-crash.html
2478             fast/forms/interactive-validation-crash-by-style-override.html
2479
2480         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2481         (DumpRenderTreeSupportQt::setInteractiveFormValidationEnabled):
2482         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2483
2484 2011-06-28  Alexis Menard  <alexis.menard@openbossa.org>
2485
2486         Reviewed by Andreas Kling.
2487
2488         [Qt] Use <QtX/x.h> style of headers for Qt tests which rely on it.
2489         https://bugs.webkit.org/show_bug.cgi?id=63562
2490
2491         Some Qt auto-tests rely on <QtX/x.h> types of includes.
2492
2493         * Api/qwebkitplatformplugin.h:
2494         * symbian/platformplugin/qwebkitplatformplugin.h:
2495
2496 2011-06-28  Alexis Menard  <alexis.menard@openbossa.org>
2497
2498         Reviewed by Andreas Kling.
2499
2500         [Qt] Use QtQuick imports in Api tests rather than old deprecated Qt 4.x imports.
2501         https://bugs.webkit.org/show_bug.cgi?id=63533
2502
2503         We need to use the new QtQuick 1.x imports rather than the old deprecated
2504         version.
2505
2506         * tests/qdeclarativewebview/resources/webviewbackgroundcolor.qml:
2507         * tests/qdeclarativewebview/resources/webviewtest.qml:
2508         * tests/qdeclarativewebview/resources/webviewtestdefault.qml:
2509
2510 2011-06-27  Alexis Menard  <alexis.menard@openbossa.org>
2511
2512         Reviewed by Darin Adler.
2513
2514         Use specific headers includes rather than full system headers.
2515         https://bugs.webkit.org/show_bug.cgi?id=63475
2516
2517         Use only needed headers rather than system headers.
2518
2519         * WebCoreSupport/QTKitFullScreenVideoHandler.mm:
2520
2521 2011-06-27  Alexis Menard  <alexis.menard@openbossa.org>
2522
2523         Reviewed by Kenneth Rohde Christiansen.
2524
2525         [Qt] Remove Phonon MediaPlayer from the tree.
2526         https://bugs.webkit.org/show_bug.cgi?id=63448
2527
2528         Remove Phonon related stuff.
2529
2530         * docs/qtwebkit.qdocconf:
2531         * qt_webkit_version.pri:
2532
2533 2011-06-27  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2534
2535         Reviewed by Andreas Kling.
2536
2537         [Qt] tst_QWebFrame::overloadedSlots() fails
2538         https://bugs.webkit.org/show_bug.cgi?id=37319
2539
2540         * tests/qwebframe/tst_qwebframe.cpp:
2541         (tst_QWebFrame::overloadedSlots): Remove expected failure and
2542         fix the comment.
2543
2544 2011-06-20  Robert Hogan  <robert@webkit.org>
2545
2546         Reviewed by Antonio Gomes.
2547
2548         [Qt] Duplicate entry in context menu
2549         https://bugs.webkit.org/show_bug.cgi?id=62139
2550
2551         contextMenuController()->populate() is called from
2552         ContextMenuController::handleContextMenuEvent() so
2553         QWebPage::updatePositionDependentActions() does not need
2554         to call it independently.
2555
2556         Related changesets: 
2557          http://trac.webkit.org/changeset/73535
2558          http://trac.webkit.org/changeset/32389
2559
2560         * Api/qwebpage.cpp:
2561         (QWebPage::updatePositionDependentActions):
2562         * tests/qwebpage/tst_qwebpage.cpp:
2563         (tst_QWebPage::contextMenuCopy):
2564         (tst_QWebPage::contextMenuPopulatedOnce):
2565
2566 2011-06-24  Dominic Cooney  <dominicc@chromium.org>
2567
2568         Reviewed by Dimitri Glazkov.
2569
2570         Convert shadow-DOM related tests to use window.internals
2571         https://bugs.webkit.org/show_bug.cgi?id=61671
2572
2573         Remove shadow-DOM related methods from Qt DRT API. These are not
2574         required any more.
2575
2576         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2577         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2578
2579 2011-06-23  Joe Wild  <joseph.wild@nokia.com>
2580
2581         Reviewed by Laszlo Gombos.
2582
2583         [Qt] The Qt WebKit Symbian .def file needs to be updated so Symbian will build
2584         https://bugs.webkit.org/show_bug.cgi?id=61200
2585
2586         Revert r87060 as it broke compatibility with QtWebKit 2.1 release
2587         and add some newly introduce symbols.
2588
2589         * symbian/eabi/QtWebKitu.def:
2590
2591 2011-06-23  Alexis Menard  <alexis.menard@openbossa.org>
2592
2593         Reviewed by Eric Carlson.
2594
2595         [Qt] Implement fullscreen support on Mac with the QuickTime backend.
2596         https://bugs.webkit.org/show_bug.cgi?id=61728
2597
2598         Implement fullscreen support for Qt when using the QuickTime backend.
2599         We mostly use what is already done for the Mac port.
2600
2601         * QtWebKit.pro:
2602         * WebCoreSupport/ChromeClientQt.cpp:
2603         (WebCore::ChromeClientQt::ChromeClientQt):
2604         (WebCore::ChromeClientQt::~ChromeClientQt):
2605         * WebCoreSupport/ChromeClientQt.h:
2606         * WebCoreSupport/FullScreenVideoQt.cpp:
2607         (WebCore::FullScreenVideoQt::FullScreenVideoQt):
2608         (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
2609         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
2610         (WebCore::FullScreenVideoQt::exitFullScreenForNode):
2611         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
2612         (WebCore::FullScreenVideoQt::isValid):
2613         * WebCoreSupport/FullScreenVideoQt.h:
2614         * WebCoreSupport/QTKitFullScreenVideoHandler.h: Added.
2615         * WebCoreSupport/QTKitFullScreenVideoHandler.mm: Added.
2616         (QTKitFullScreenVideoHandler::QTKitFullScreenVideoHandler):
2617         (QTKitFullScreenVideoHandler::~QTKitFullScreenVideoHandler):
2618         (QTKitFullScreenVideoHandler::enterFullScreen):
2619         (QTKitFullScreenVideoHandler::exitFullScreen):
2620         * WebCoreSupport/WebSystemInterface.mm:
2621         (InitWebCoreSystemInterface):
2622
2623 2011-06-23  Yael Aharon  <yael.aharon@nokia.com>
2624
2625         Reviewed by Andreas Kling.
2626
2627         [Qt] [WK2] Add drag and drop support
2628         https://bugs.webkit.org/show_bug.cgi?id=62838
2629
2630         Call dragEnded from the DragClient to make WebKit1 and WebKit2 consistent.
2631
2632         * WebCoreSupport/DragClientQt.cpp:
2633         (WebCore::DragClientQt::startDrag):
2634
2635 2011-06-23  Joe Wild  <joseph.wild@nokia.com>
2636
2637         Reviewed by Laszlo Gombos.
2638
2639         [Qt] Export files under Symbian Qt WebKit build
2640         https://bugs.webkit.org/show_bug.cgi?id=61207
2641
2642         Export files for the Symbian platform as this is needed by the
2643         production build system.
2644
2645         Janne Koskinen provided the suggestion to use target_predeps,
2646         which is an improvement over the originally suggested patch.
2647
2648         * QtWebKit.pro:
2649
2650 2011-06-23  Csaba Osztrogonác  <ossy@webkit.org>
2651
2652         Rubber-stamped by Andreas Kling.
2653
2654         [Qt] Fix tst_QWebFrame::setHtmlWithResource() API test
2655         https://bugs.webkit.org/show_bug.cgi?id=63235
2656
2657         [Qt] Fix tst_QWebFrame::renderGeometry() API test
2658         https://bugs.webkit.org/show_bug.cgi?id=63236
2659
2660         [Qt] Fix tst_QWebFrame::setUrlWithPendingLoads() API test
2661         https://bugs.webkit.org/show_bug.cgi?id=63237
2662
2663         * tests/qwebframe/tst_qwebframe.cpp: Mark failing test cases as expected fails until real fix.
2664         (tst_QWebFrame::setHtmlWithResource):
2665         (tst_QWebFrame::renderGeometry):
2666
2667 2011-06-23  Csaba Osztrogonác  <ossy@webkit.org>
2668
2669         Rubber-stamped by Andreas Kling.
2670
2671         [Qt] Fix tst_QWebPage::showModalDialog() API test
2672         https://bugs.webkit.org/show_bug.cgi?id=63244
2673
2674         [Qt] Fix tst_QWebPage::testStopScheduledPageRefresh() API test
2675         https://bugs.webkit.org/show_bug.cgi?id=63245
2676
2677         * tests/qwebpage/tst_qwebpage.cpp: Mark failing test cases as expected fails.
2678         (tst_QWebPage::showModalDialog):
2679         (tst_QWebPage::testStopScheduledPageRefresh):
2680
2681 2011-06-22  Ademar de Souza Reis Jr.  <ademar.reis@openbossa.org>
2682
2683         Reviewed by Holger Freyther.
2684
2685         [Qt] Fix Qt namespace on QDeclarativeWebView autotest
2686         https://bugs.webkit.org/show_bug.cgi?id=63147
2687
2688         Applications (such as the test runner) are not supposed to be wrapped
2689         by {QT_BEGIN,QT_END}_NAMESPACE macros, otherwise building Qt (or
2690         QtWebKit) with a specific namespace won't work (will result in main
2691         being undefined).
2692
2693         This was the only test wrapped by these macros, all others are fine.
2694
2695         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: remove
2696         namespace macros.
2697
2698 2011-06-20  Dimitri Glazkov  <dglazkov@chromium.org>
2699
2700         Reviewed by Kent Tamura.
2701
2702         FileChooser should be only created when we need to choose files.
2703         https://bugs.webkit.org/show_bug.cgi?id=63039
2704
2705         * WebCoreSupport/ChromeClientQt.cpp:
2706         (WebCore::ChromeClientQt::runOpenPanel): Changed to use settings.
2707
2708 2011-06-21  Yael Aharon  <yael.aharon@nokia.com>
2709
2710         Reviewed by Andreas Kling.
2711
2712         [Qt] Regression(60942) wrong default action for drag-and-drop.
2713         https://bugs.webkit.org/show_bug.cgi?id=63004
2714
2715         Added special handling for the case that dragOperation is not initialized.
2716         Save the last dropOperation and pass it to the dropEvent, so that it can 
2717         be accepted by QDrag.
2718         Call event->accepted() and not event->acceptProposedAction(), because the
2719         later ignores the dropAction specified in JavaScript.
2720
2721         Tested with the test page attached to https://bugs.webkit.org/show_bug.cgi?id=40401
2722         and did not see any issue.
2723         Also manually tested all combinations of LayoutTests/fast/events/drag-and-drop.html
2724         and they all pass.
2725
2726         * Api/qwebpage.cpp:
2727         (dropActionToDragOp):
2728         (QWebPagePrivate::dragMoveEvent):
2729         (QWebPagePrivate::dropEvent):
2730
2731 2011-06-20  Pavel Feldman  <pfeldman@chromium.org>
2732
2733         Reviewed by Yury Semikhatsky.
2734
2735         Web Inspector: remove LayoutTestController::setTimelineProfilingEnabled.
2736         https://bugs.webkit.org/show_bug.cgi?id=62994
2737
2738         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2739         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2740
2741 2011-06-18  Dimitri Glazkov  <dglazkov@chromium.org>
2742
2743         Reviewed by Darin Adler.
2744
2745         Separate concerns of loading file icons and choosing files.
2746         https://bugs.webkit.org/show_bug.cgi?id=62931
2747
2748         * WebCoreSupport/ChromeClientQt.cpp:
2749         (WebCore::ChromeClientQt::loadIconForFiles): Renamed.
2750         * WebCoreSupport/ChromeClientQt.h:
2751
2752 2011-06-17  Alexis Menard  <alexis.menard@openbossa.org>
2753
2754         Reviewed by Andreas Kling.
2755
2756         [Qt] Fix wrong framework generation on MacOS when inside Qt 4.8.
2757         https://bugs.webkit.org/show_bug.cgi?id=62815
2758
2759         Partially revert r85870 which assumed that QtWebKit will never be build inside Qt
2760         anymore. Everything inside !QTDIR_build condition is not needed in the Qt tree because
2761         qbase.pri is doing the job for us, i.e. using includes generated by syncqt to
2762         setup the mac framework. It also use a correct QMAKE_LFLAGS_SONAME making possible
2763         to actually run an application linked against QtWebKit.
2764
2765         * QtWebKit.pro:
2766
2767 2011-06-16  Sheriff Bot  <webkit.review.bot@gmail.com>
2768
2769         Unreviewed, rolling out r88796.
2770         http://trac.webkit.org/changeset/88796
2771         https://bugs.webkit.org/show_bug.cgi?id=62790
2772
2773         It made fast/dom/nodesFromRect-basic.html time out on Qt,
2774         64-bit, debug mode (Requested by Ossy on #webkit).
2775
2776         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2777         (DumpRenderTreeSupportQt::plainText):
2778         (DumpRenderTreeSupportQt::nodesFromRect):
2779         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2780         * tests/qwebframe/tst_qwebframe.cpp:
2781         (tst_QWebFrame::overloadedSlots):
2782         (tst_QWebFrame::domCycles):
2783
2784 2011-06-15  Diego Gonzalez  <diegohcg@webkit.org>
2785
2786         Reviewed by Kenneth Rohde Christiansen.
2787
2788         [Qt] Inconsistent behavior on a form submit request...
2789         https://bugs.webkit.org/show_bug.cgi?id=45523
2790
2791         The inconsistency occurs when a form submission requests a new window.
2792         Two windows are opened (instead of only one) and the first window is opened
2793         as a blank page.
2794
2795         By default each page is put into their own unique page group, which affects popup windows
2796         and visited links. Page groups (per process only) is a feature making it possible to use
2797         separate settings for each group, so that for instance an integrated browser/email reader
2798         can use different settings for displaying HTML pages and HTML email. To make QtWebKit work
2799         as expected out of the box, we use a default group similar to what other ports are doing.
2800
2801         * Api/qwebpage.cpp:
2802
2803 2011-06-14  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
2804
2805         Reviewed by Andreas Kling.
2806
2807         [Qt] tst_QWebFrame::overloadedSlots() fails
2808         https://bugs.webkit.org/show_bug.cgi?id=37319
2809
2810         Since the implicit conversion was removed, change support functions of DRT to
2811         expect a QVariantMap instead of a QWebElement. This matches the exposed function
2812         in the controller, which takes 'document' and not 'document.documentElement'.
2813
2814         And now that Element -> QWebElement is a perfect match, we must use QWebElement
2815         instead of QVariantMap, like in plainText().
2816
2817         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2818         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2819         (DumpRenderTreeSupportQt::plainText): Fix to use QWebElement instead of
2820         QVariantMap when getting the startContainer. Also use QVariantMap directly,
2821         bridge will do conversion for us now.
2822
2823         (getCoreDocumentFromVariantMap): Extracts the WebCore::Document* from the
2824         QVariantMap that Qt bridge gives us when 'document' is passed from JS.
2825
2826         (DumpRenderTreeSupportQt::nodesFromRect): Use helper function.
2827
2828         * tests/qwebframe/tst_qwebframe.cpp: Splitted the test domCycles() into two
2829         different tests. In practice, the original test just checked whether we could
2830         create a QVariantMap representing 'document' without infinite looping due to
2831         cycles in the DOM. This was more evident before since we haven't a conversion
2832         from JSElement to QWebElement, but from JSElement to QVariantMap.
2833
2834         (tst_QWebFrame::documentHasDocumentElement): Evaluates 'document' and extracts
2835         'documentElement' from it. Compares to QWebFrame::documentElement().
2836
2837         (tst_QWebFrame::documentAllHasDocumentElement): Look inside 'document.all' for
2838         the documentElement.
2839
2840         (tst_QWebFrame::overloadedSlots): Remove expected failure and fix wrong comment.
2841
2842 2011-06-14  Andreas Kling  <kling@webkit.org>
2843
2844         Reviewed by Benjamin Poulain.
2845
2846         [Qt] Don't include convenience "QWebFoo" headers in WebKit code.
2847         https://bugs.webkit.org/show_bug.cgi?id=62632
2848
2849         * WebCoreSupport/FrameNetworkingContextQt.cpp:
2850
2851 2011-06-12  Adam Barth  <abarth@webkit.org>
2852
2853         Reviewed by Alexey Proskuryakov.
2854
2855         Rename FrameLoaderClient::interruptForPolicyChangeError to use the past tense
2856         https://bugs.webkit.org/show_bug.cgi?id=62516
2857
2858         * WebCoreSupport/FrameLoaderClientQt.cpp:
2859         (WebCore::FrameLoaderClientQt::interruptedForPolicyChangeError):
2860         * WebCoreSupport/FrameLoaderClientQt.h:
2861
2862 2011-06-12  Adam Barth  <abarth@webkit.org>
2863
2864         Attempt to fix Qt build.
2865
2866         * WebCoreSupport/FrameLoaderClientQt.cpp:
2867         (drtPrintFrameUserGestureStatus):
2868
2869 2011-06-12  Adam Barth  <abarth@webkit.org>
2870
2871         Reviewed by Eric Seidel.
2872
2873         Remove FrameLoader::isProcessingUserGesture
2874         https://bugs.webkit.org/show_bug.cgi?id=62519
2875
2876         * WebCoreSupport/FrameLoaderClientQt.cpp:
2877         (drtPrintFrameUserGestureStatus):
2878
2879 2011-06-10  Andreas Kling  <kling@webkit.org>
2880
2881         Reviewed by Benjamin Poulain.
2882
2883         [Qt] Fix 'headers' autotest when building inside Qt.
2884         https://bugs.webkit.org/show_bug.cgi?id=62449
2885
2886         * Api/qwebkitplatformplugin.h:
2887
2888 2011-06-10  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
2889
2890         Reviewed by Kenneth Rohde Christiansen.
2891
2892         [Qt] Keep ORIENTATION_EVENTS independent from DEVICE_ORIENTATION
2893         https://bugs.webkit.org/show_bug.cgi?id=62420
2894
2895         ORIENTATION_EVENTS and DEVICE_ORIENTATION features are very similar
2896         but they meant to be independent.
2897
2898         * Api/qwebframe.cpp:
2899         (QWebFramePrivate::_q_orientationChanged):
2900         (QWebFrame::QWebFrame):
2901         * Api/qwebframe_p.h:
2902
2903 2011-06-09  Andras Becsi  <abecsi@webkit.org>
2904
2905         Reviewed by Andreas Kling.
2906
2907         [Qt] Fix the in-tree build on Linux
2908         https://bugs.webkit.org/show_bug.cgi?id=62378
2909
2910         In case of an in-tree build qmake generates defect prl dependencies for
2911         the QtWebKit library, because the inclusion of qtbase.pri adds explicitlib to CONFIG.
2912
2913         * QtWebKit.pro: Remove explicitlib and staticlib from CONFIG.
2914
2915 2011-06-09  Robert Hogan  <robert@webkit.org>
2916
2917         Reviewed by Andreas Kling.
2918
2919         Teach Qt about window.internals
2920         https://bugs.webkit.org/show_bug.cgi?id=61074
2921
2922         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2923         (DumpRenderTreeSupportQt::injectInternalsObject):
2924         * WebCoreSupport/DumpRenderTreeSupportQt.h:
2925
2926 2011-06-08  Andreas Kling  <kling@webkit.org>
2927
2928         Reviewed by Benjamin Poulain.
2929
2930         [Qt] FrameLoaderClient: Check Vector::find() return value for WTF::notFound.
2931         https://bugs.webkit.org/show_bug.cgi?id=62274
2932
2933         Vector::find() returns size_t (which is unsigned), so we should check
2934         for WTF::notFound instead of -1.
2935
2936         * WebCoreSupport/FrameLoaderClientQt.cpp:
2937         (WebCore::FrameLoaderClientQt::createPlugin):
2938
2939 2011-06-07  Noam Rosenthal  <noam.rosenthal@nokia.com>
2940
2941         Reviewed by Andreas Kling.
2942
2943         [Texmap][Qt] Enable TextureMapper by default
2944         https://bugs.webkit.org/show_bug.cgi?id=61740
2945
2946         Enable TextureMapper on Windows+Symbian, disabling the direct OpenGL path. This would mean that
2947         for now QtWebKit on Windows/Symbian would use the Qt backend for TextureMapper.
2948
2949         * WebCoreSupport/PageClientQt.cpp:
2950         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
2951
2952 2011-06-07  Aravind Akella  <aravind.akella@nokia.com>
2953
2954         Reviewed by Laszlo Gombos.
2955
2956         [Qt][Symbian] API test failure qdeclarativewebview
2957         https://bugs.webkit.org/show_bug.cgi?id=59481
2958
2959         QML files cannot be loaded on Symbian due to difference 
2960         in capabilities between qmlwebkitplugin.dll and Qtwebkit.dll.  
2961         A PlatSec error that Qtwebkit.dll has "DRM AllFiles" capabilities 
2962         missing is observed when dynamically loading the QML plugin. 
2963
2964         * declarative/declarative.pro: Match capabilities in QtWebKit.pro.
2965         * symbian/platformplugin/platformplugin.pro: Match capabilities with the other 2 DLLs. 
2966         Also remove TARGET.VID from platformplugin, as it's not used in any other Qt WebKit DLL,
2967         and causes build warnings about undefined VENDOR_VID. 
2968         * tests/tests.pri: Add WriteDeviceData capability for API tests. 
2969
2970 2011-06-04  Robert Hogan  <robert@webkit.org>
2971
2972         Reviewed by Andreas Kling.
2973
2974         [Qt] Fix and unskip acid2
2975         https://bugs.webkit.org/show_bug.cgi?id=62089
2976
2977         shouldFallBack() tells the DOM if it should attempt to render
2978         the next nested <object> if its parent fails to load.
2979
2980         This fix is only required for the fast/css version of the ACID2
2981         test, which loads a non-existent file:// url. The HTTP version of the
2982         test already passes because the loader will render fallback content
2983         on a failed HTTP load without delegating the decision to the client
2984         ( see MainResourceLoader::continueAfterContentPolicy).
2985
2986         Some ports also check for WebKitErrorPluginWillHandleLoad when deciding
2987         what to return. This error isn't currently set by Qt so we don't check
2988         it. (Other ports set it when the erring document is a MediaDocument, maybe
2989         we should do that too at some point).
2990
2991         * WebCoreSupport/FrameLoaderClientQt.cpp:
2992         (WebCore::FrameLoaderClientQt::shouldFallBack):
2993
2994 2011-06-03  Rafael Brandao  <rafael.lobo@openbossa.org>
2995
2996         Reviewed by Andreas Kling.
2997
2998         [Qt] It made two Qt API tests fail
2999         https://bugs.webkit.org/show_bug.cgi?id=58847
3000
3001         Modified failing test's base url so it could get a valid origin
3002         and make use of local storage. Also added another test that checks
3003         local storage visibility in both scenarios.
3004
3005         * tests/qwebpage/tst_qwebpage.cpp:
3006         (tst_QWebPage::testOptionalJSObjects):
3007         (checkLocalStorageVisibility):
3008         (tst_QWebPage::testLocalStorageVisibility):
3009
3010 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
3011
3012         Reviewed by Andreas Kling.
3013
3014         [Qt] Warning fixes on comparisons between a signed and an unsigned.
3015
3016         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3017         (DumpRenderTreeSupportQt::computedStyleIncludingVisitedInfo):
3018         (DumpRenderTreeSupportQt::nodesFromRect):
3019
3020 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
3021
3022         Reviewed by Andreas Kling.
3023
3024         To support building namespaced Qt, we require that forward-declarations
3025         of Qt classes be wrapped in QT_BEGIN_NAMESPACE and QT_END_NAMESPACE.
3026
3027         * WebCoreSupport/FrameLoaderClientQt.h:
3028
3029 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
3030
3031         Unreviewed build fix after r87902.
3032
3033         To support building namespaced Qt, we require that forward-declarations
3034         of Qt classes be wrapped in QT_BEGIN_NAMESPACE and QT_END_NAMESPACE but
3035         only on classes inside Qt.
3036         
3037         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3038
3039 2011-06-03  Alexis Menard  <alexis.menard@openbossa.org>
3040
3041         Reviewed by Benjamin Poulain.
3042
3043         Some warning fixes. Values in switch not handled, and
3044         a comparison between a signed and an unsigned.
3045
3046         * Api/qwebpage.cpp:
3047         (QWebPagePrivate::inputMethodEvent):
3048         (QWebPagePrivate::dynamicPropertyChangeEvent):
3049         (QWebPage::action):
3050
3051 2011-06-02  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3052
3053         Reviewed by Andreas Kling.
3054
3055         [Qt] Fix enum order in qwebpage.h public API header
3056         https://bugs.webkit.org/show_bug.cgi?id=61959
3057
3058         Since qwebpage.h is a public header, we can't change the values of
3059         the enumerations. This patch moves the new enumeration to the end
3060         of the list. As a bonus, adds a missing entry in
3061         editorCommandWebActions table.
3062
3063         * Api/qwebpage.cpp:
3064         * Api/qwebpage.h:
3065
3066 2011-06-02  Andreas Kling  <kling@webkit.org>
3067
3068         Rubber-stamped by Simon Hausmann.
3069
3070         Remove Qt's precompiled header hack as it was broken, and was not even
3071         used unless building WebKit inside a Qt tree.
3072
3073         * WebKit_pch.h: Removed.
3074
3075 2011-06-02  Andreas Kling  <kling@webkit.org>
3076
3077         Unreviewed build fix.
3078
3079         To support building namespaced Qt, we require that forward-declarations
3080         of Qt classes be wrapped in QT_BEGIN_NAMESPACE and QT_END_NAMESPACE.
3081
3082         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3083
3084 2011-06-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3085
3086         Reviewed by Kenneth Rohde Christiansen.
3087
3088         [Qt]Fix tst_QWebFrame::setUrlToInvalid() autotest after r84762
3089         https://bugs.webkit.org/show_bug.cgi?id=59345
3090
3091         KURL and QUrl disagree whether certain URLs are valid or not. The regression here
3092         was caused by the fact that now KURL accepts "http:/example.com" (note only one
3093         slash) and our test case used a strange edge case that's transformed into a
3094         "one-slash" URL that now KURL can handle.
3095
3096         QtWebKit approach in this case is to do a best effort and accept the QUrl if KURL
3097         can understand it. So I've updated the test to use a more meaningful example and
3098         show that an invalid URL gets converted to a valid URL if possible.
3099
3100         * tests/qwebframe/tst_qwebframe.cpp:
3101         (tst_QWebFrame::setUrlToInvalid):
3102
3103 2011-06-01  Andreas Kling  <kling@webkit.org>
3104
3105         Reviewed by Benjamin Poulain.
3106
3107         REGRESSION: [Qt] QNetworkReply delivered by the unsupportedContent() signal does not contain downloaded data
3108         https://bugs.webkit.org/show_bug.cgi?id=49650
3109
3110         Defer emission of QWebPage::unsupportedContent() until we're back in the event loop.
3111         This lets the QNAM backend finish with the reply without handing over ownership to the user code.
3112
3113         No new tests since this doesn't fail for qrc:// or file:// URLs and our tests can't depend on http:// URLs.
3114
3115         To correctly solve this issue, we need changes to Qt, tracked here:
3116         http://bugreports.qt.nokia.com/browse/QTBUG-18718
3117
3118         * WebCoreSupport/FrameLoaderClientQt.cpp:
3119         (WebCore::FrameLoaderClientQt::setFrame):
3120         (WebCore::FrameLoaderClientQt::download):
3121         * WebCoreSupport/FrameLoaderClientQt.h:
3122
3123 2011-06-01  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3124
3125         Reviewed by Tor Arne Vestbø.
3126
3127         [Qt] Rewrite tst_QDeclarativeWebView::multipleWindows() to not depend on Grid internals
3128         https://bugs.webkit.org/show_bug.cgi?id=61739
3129
3130         The skipped test was imported from Qt source repository, and used private headers
3131         to peek in the QML Grid element. This patch changes the QML used to expose the
3132         information we want to test: number of pages opened and the first page opened.
3133
3134         * tests/qdeclarativewebview/resources/newwindows.html:
3135         Added <body> tags. We have no reason to not use them in the test.
3136
3137         * tests/qdeclarativewebview/resources/newwindows.qml:
3138         Moved the timer out of the page component, used anchors for setting webview size,
3139         changed the way we count pages opened. Also changed coding style a bit.
3140
3141         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp:
3142         (tst_QDeclarativeWebView::multipleWindows):
3143         We now look for properties with the information we want in the rootItem: pagesOpened and
3144         firstPageOpened.
3145
3146 2011-05-31  Rafael Brandao  <rafael.lobo@openbossa.org>
3147
3148         Reviewed by Andreas Kling.
3149
3150         [Qt] tst_QWebFrame::render() failing
3151         https://bugs.webkit.org/show_bug.cgi?id=60893
3152         
3153         The test was expecting the frame contents to be already loaded
3154         before rendering it into a QPicture. Renamed the test to fit
3155         its real purpose more accordingly.
3156
3157         * tests/qwebframe/tst_qwebframe.cpp:
3158         (tst_QWebFrame::renderGeometry):
3159
3160 2011-05-30  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3161
3162         Reviewed by Andreas Kling.
3163
3164         [Qt] Fix unnecessary wait in API autotest tst_QWebFrame::scrollbarsOff
3165         https://bugs.webkit.org/show_bug.cgi?id=61711
3166
3167         The loadFinished() signal was emitted directly inside the call for setHtml, so
3168         the test was waiting the loadFinished() signal with a big timeout. Change this by
3169         a very small timeout and a verification with signal spy.
3170
3171         In practice, setHtml() will either directly call loadFinished() or queue it to
3172         the next event loop run, and test will work for both situations.
3173
3174         * tests/qwebframe/tst_qwebframe.cpp:
3175         (tst_QWebFrame::scrollbarsOff):
3176
3177 2011-05-30  Noam Rosenthal  <noam.rosenthal@nokia.com>
3178
3179         Reviewed by Kenneth Rohde Christiansen.
3180
3181         [Texmap][Qt] Disable accelerated plugins/media in until they're working.
3182         https://bugs.webkit.org/show_bug.cgi?id=61687
3183
3184         Turn off accelerated compositing for media and plugins when in texture-mapper.
3185
3186         * Api/qwebsettings.cpp:
3187         (QWebSettingsPrivate::apply):
3188
3189 2011-05-28  Adam Barth  <abarth@webkit.org>
3190
3191         Reviewed by Alexey Proskuryakov.
3192
3193         Audit all uses of KURL::prettyURL
3194         https://bugs.webkit.org/show_bug.cgi?id=61201
3195
3196         Update callers of prettyURL to just call string.
3197
3198         * WebCoreSupport/ChromeClientQt.cpp:
3199         (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3200         * WebCoreSupport/FrameLoaderClientQt.cpp:
3201         (WebCore::FrameLoaderClientQt::updateGlobalHistory):
3202         (WebCore::FrameLoaderClientQt::cancelledError):
3203         (WebCore::FrameLoaderClientQt::blockedError):
3204         (WebCore::FrameLoaderClientQt::objectContentType):
3205         (WebCore::FrameLoaderClientQt::createPlugin):
3206
3207 2011-05-27  Alexis Menard  <alexis.menard@openbossa.org>
3208
3209         Reviewed by Csaba Osztrogonác.
3210
3211         [Qt] Fix tst_QGraphicsWebView::setPalette(inactiveBG) autotest
3212         https://bugs.webkit.org/show_bug.cgi?id=61044
3213
3214         Make sure to set the active window on the application too.
3215
3216         * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
3217         (tst_QGraphicsWebView::setPalette):
3218
3219 2011-05-26  Alexis Menard  <alexis.menard@openbossa.org>
3220
3221         Unreviewed build fix for Qt and QuickTime backend.
3222
3223         r87328 added a new system interface, we need to add it too.
3224
3225         * WebCoreSupport/WebSystemInterface.mm:
3226         (InitWebCoreSystemInterface):
3227
3228 2011-05-25  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3229
3230         Reviewed by Andreas Kling.
3231
3232         [Qt] JSC bridge: implement __qt_sender__ without using Scope Chain
3233         https://bugs.webkit.org/show_bug.cgi?id=61343
3234
3235         Create a '__qt_sender__' property in the global object, that returns the top of
3236         the qtSenderStack. This is an alternative implementation for the feature of
3237         providing a way for a function (acting as a Qt 'slot') discover which object
3238         emitted the signal that caused it to be executed.
3239
3240         This reduces the coupling of the Qt bridge and JSC internal implementation. The
3241         patch tries to use as much JSC public API as possible.
3242
3243         This behavior is covered by the tst_QWebFrame::connectAndDisconnect() auto test.
3244
3245         * WebCoreSupport/FrameLoaderClientQt.cpp:
3246         (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
3247         Instead of emitting the QWebPage::javaScriptWindowObjectCleared() directly, calls
3248         a QWebPagePrivate function to do it.
3249
3250         * Api/qwebframe_p.h:
3251         * Api/qwebframe.cpp:
3252         (QWebFramePrivate::didClearedWindowObject):
3253         Before emitting the signal mentioned, adds the '__qt_sender__' to the fresh
3254         global object.
3255
3256         (qtSenderCallback):
3257         Returns the JSObjectRef corresponding to the top of qtSenderStack.
3258
3259         (QWebFramePrivate::addQtSenderToGlobalObject):
3260         Create a property with a qtSenderCallback as getter function in the global object.
3261
3262 2011-05-25  Alexis Menard  <alexis.menard@openbossa.org>
3263
3264         Reviewed by Eric Carlson.
3265
3266         [Qt] Enable usage of QuickTime mediaplayer for the Qt port on Mac.
3267         https://bugs.webkit.org/show_bug.cgi?id=61279
3268
3269         Enable the usage of QuickTime backend for the Qt port. It can be enabled by
3270         passing DEFINES+=USE_QTKIT=1 when calling build-webkit.
3271
3272         * Api/qwebpage.cpp:
3273         (QWebPagePrivate::QWebPagePrivate):
3274         * QtWebKit.pro:
3275         * WebCoreSupport/FullScreenVideoQt.cpp:
3276         (WebCore::FullScreenVideoQt::enterFullScreenForNode):
3277         (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
3278         (WebCore::FullScreenVideoQt::isValid):
3279         * WebCoreSupport/WebSystemInterface.h: Added.
3280         * WebCoreSupport/WebSystemInterface.mm: Added.
3281         (InitWebCoreSystemInterface):
3282
3283 2011-05-25  Qi Zhang  <qi.2.zhang@nokia.com>
3284
3285         Reviewed by Andreas Kling.
3286
3287         [Qt] fast/css/disabled-author-styles.html failed
3288         https://bugs.webkit.org/show_bug.cgi?id=61438
3289
3290         Provided API setAuthorAndUserStylesEnabled for DumpRenderTree.
3291
3292         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3293         (DumpRenderTreeSupportQt::setAuthorAndUserStylesEnabled):
3294         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3295
3296 2011-05-24  Adam Barth  <abarth@webkit.org>
3297
3298         Reviewed by Eric Seidel.
3299
3300         Add FIXME comments about removing FrameLoader::isProcessingUserGesture
3301         https://bugs.webkit.org/show_bug.cgi?id=61395
3302
3303         * WebCoreSupport/FrameLoaderClientQt.cpp:
3304         (drtPrintFrameUserGestureStatus):
3305
3306 2011-05-23  Luiz Agostini  <luiz.agostini@openbossa.org>
3307
3308         Reviewed by Andreas Kling.
3309
3310         [Qt] When opening a combo-box the popup renders badly.
3311         https://bugs.webkit.org/show_bug.cgi?id=61288
3312
3313         Removing combobox palette changes from QtFallbackWebPopup::show() because they
3314         are causing rendering problems for some styles.
3315
3316         The changes in palette are not needed because the background and foreground
3317         colors are already set by QStandardItem::setBackground() and QStandardItem::setForeground()
3318         in method QtFallbackWebPopup::populate().
3319
3320         * WebCoreSupport/QtFallbackWebPopup.cpp:
3321         (WebCore::QtFallbackWebPopup::show):
3322
3323 2011-05-23  Joe Wild  <joseph.wild@nokia.com>
3324
3325         Reviewed by Andreas Kling.
3326
3327         [Qt] The Qt WebKit Symbian .def file needs to be updated so Symbian will build
3328         https://bugs.webkit.org/show_bug.cgi?id=61200
3329
3330         * symbian/eabi/QtWebKitu.def:
3331
3332 2011-05-22  Hui Huang  <hui.2.huang@nokia.com>, Yi Shen  <yi.4.shen@nokia.com>
3333
3334         Reviewed by Laszlo Gombos.
3335
3336         [Qt] Upstream Symbian platform plugin
3337         https://bugs.webkit.org/show_bug.cgi?id=58435
3338
3339         Upstream Symbian platform plugin with html5 video player.
3340
3341         * symbian/platformplugin/HTML5VideoPlugin.cpp: Added.
3342         (HTML5FullScreenVideoHandler::HTML5FullScreenVideoHandler):
3343         (HTML5FullScreenVideoHandler::enterFullScreen):
3344         (HTML5FullScreenVideoHandler::exitFullScreen):
3345         (HTML5FullScreenVideoHandler::onPlayerError):
3346         (HTML5FullScreenVideoHandler::onPlayerStateChanged):
3347         (HTML5FullScreenVideoHandler::onMediaStatusChanged):
3348         (HTML5VideoPlugin::supportsExtension):
3349         (HTML5VideoPlugin::createExtension):
3350         * symbian/platformplugin/HTML5VideoPlugin.h: Added.
3351         (HTML5FullScreenVideoHandler::requiresFullScreenForVideoPlayback):
3352         (HTML5FullScreenVideoHandler::isFullScreen):
3353         (HTML5FullScreenVideoHandler::updateScreenRect):
3354         * symbian/platformplugin/HTML5VideoWidget.cpp: Added.
3355         (HTML5VideoWidget::HTML5VideoWidget):
3356         (HTML5VideoWidget::setDuration):
3357         (HTML5VideoWidget::mousePressEvent):
3358         (HTML5VideoWidget::onPlayerStopped):
3359         (HTML5VideoWidget::onPlayerError):
3360         (HTML5VideoWidget::onEndOfMedia):
3361         (HTML5VideoWidget::onBufferingMedia):
3362         (HTML5VideoWidget::onBufferedMedia):
3363         (HTML5VideoWidget::onControlClicked):
3364         (HTML5VideoWidget::onPositionChanged):
3365         (HTML5VideoWidget::onSliderMoved):
3366         (HTML5VideoWidget::onCloseClicked):
3367         (HTML5VideoWidget::showFullScreen):
3368         (HTML5VideoWidget::setVolume):
3369         * symbian/platformplugin/HTML5VideoWidget.h: Added.
3370         * symbian/platformplugin/OverlayWidget.cpp: Added.
3371         (OverlayWidget::OverlayWidget):
3372         (OverlayWidget::~OverlayWidget):
3373         (OverlayWidget::setDuration):
3374         (OverlayWidget::setPosition):
3375         (OverlayWidget::setVolume):
3376         (OverlayWidget::mousePressEvent):
3377         (OverlayWidget::onPlayerStopped):
3378         (OverlayWidget::onPlayerError):
3379         (OverlayWidget::onEndOfMedia):
3380         (OverlayWidget::onBufferingMedia):
3381         (OverlayWidget::onBufferedMedia):
3382         (OverlayWidget::timeToString):
3383         (OverlayWidget::applyStyleSheet):
3384         (OverlayWidget::onControlClicked):
3385         (OverlayWidget::onSliderMoved):
3386         (OverlayWidget::onSoundClicked):
3387         (OverlayWidget::onCloseClicked):
3388         (OverlayWidget::onVolumeSliderReleased):
3389         (OverlayWidget::onVolumeSliderMoved):
3390         (OverlayWidget::onTimerTimeout):
3391         (OverlayWidget::showFullScreen):
3392         * symbian/platformplugin/OverlayWidget.h: Added.
3393         * symbian/platformplugin/PlayerButton.cpp: Added.
3394         (PlayerButton::PlayerButton):
3395         (PlayerButton::event):
3396         * symbian/platformplugin/PlayerButton.h: Added.
3397         * symbian/platformplugin/PlayerLabel.cpp: Added.
3398         (PlayerLabel::PlayerLabel):
3399         (PlayerLabel::onPlayerError):
3400         (PlayerLabel::startBufferingAnimation):
3401         (PlayerLabel::stopBufferingAnimation):
3402         (PlayerLabel::onAnimationTimeout):
3403         * symbian/platformplugin/PlayerLabel.h: Added.
3404         * symbian/platformplugin/WebPlugin.cpp:
3405         (WebPlugin::createExtension):
3406         * symbian/platformplugin/images: Added.
3407         * symbian/platformplugin/images/button_cannotplay.png: Added.
3408         * symbian/platformplugin/images/button_close.png: Added.
3409         * symbian/platformplugin/images/button_pause.png: Added.
3410         * symbian/platformplugin/images/button_play.png: Added.
3411         * symbian/platformplugin/images/button_sound_off.png: Added.
3412         * symbian/platformplugin/images/button_sound_on.png: Added.
3413         * symbian/platformplugin/images/loading_buffering_1.png: Added.
3414         * symbian/platformplugin/images/loading_buffering_2.png: Added.
3415         * symbian/platformplugin/images/loading_buffering_3.png: Added.
3416         * symbian/platformplugin/images/loading_buffering_4.png: Added.
3417         * symbian/platformplugin/platformplugin.pro:
3418         * symbian/platformplugin/platformplugin.qrc: Added.
3419         * symbian/platformplugin/qss: Added.
3420         * symbian/platformplugin/qss/OverlayWidget.qss: Added.
3421
3422 2011-05-22  Robert Hogan  <robert@webkit.org>
3423
3424         Reviewed by Kenneth Rohde Christiansen.
3425
3426         Fix policyDelegate in Qt DRT
3427
3428         https://bugs.webkit.org/show_bug.cgi?id=61247
3429         
3430         Use the 'policy delegate' implemented in FrameLoaderClient
3431         for layout tests. The partial implementation in DumpRenderTreeQt
3432         is redundant.
3433
3434         * WebCoreSupport/FrameLoaderClientQt.cpp:
3435         (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3436
3437 2011-05-22  Andrew Wason  <rectalogic@rectalogic.com>
3438
3439         Reviewed by Benjamin Poulain.
3440
3441         [Qt] Implement toImageData() in QtWebKit Bridge
3442         https://bugs.webkit.org/show_bug.cgi?id=60897
3443
3444         * docs/qtwebkit-bridge.qdoc:
3445         * docs/webkitsnippets/qtwebkit_bridge_snippets.cpp:
3446         (wrapInFunction):
3447          Document Qt bridge toImageData() feature.
3448         * tests/hybridPixmap/test.html:
3449         * tests/hybridPixmap/widget.cpp:
3450         (Widget::Widget):
3451         (Widget::abcImage):
3452         * tests/hybridPixmap/widget.h:
3453          Add tests for Qt bridge toImageData() feature.
3454
3455 2011-05-20  Simon Fraser  <simon.fraser@apple.com>
3456
3457         Reviewed by Sam Weinig.
3458
3459         numberOfActiveAnimations() can include animations from documents in the page cache
3460         https://bugs.webkit.org/show_bug.cgi?id=53641
3461
3462         Pass the Frame's document as the one to count animations on.
3463
3464         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3465         (DumpRenderTreeSupportQt::numberOfActiveAnimations):
3466
3467 2011-05-20  Csaba Osztrogonác  <ossy@webkit.org>
3468
3469         Reviewed by Benjamin Poulain.
3470
3471         [Qt] tst_QWebElement::style() fails because QWebElement::InlineStyle doesn't work as expected
3472         https://bugs.webkit.org/show_bug.cgi?id=60372
3473
3474         * tests/qwebelement/tst_qwebelement.cpp: Mark failing test case as expected fail.
3475         (tst_QWebElement::style):
3476
3477 2011-05-20  Csaba Osztrogonác  <ossy@webkit.org>
3478
3479         Reviewed by Benjamin Poulain.
3480
3481         [Qt] Fix tst_QDeclarativeWebView::basicProperties() and historyNav() autotests
3482         https://bugs.webkit.org/show_bug.cgi?id=61042
3483
3484         * tests/qdeclarativewebview/tst_qdeclarativewebview.cpp: Mark failing test cases as expected fails.
3485         (tst_QDeclarativeWebView::basicProperties):
3486         (tst_QDeclarativeWebView::historyNav):
3487
3488 2011-05-20  Csaba Osztrogonác  <ossy@webkit.org>
3489
3490         Reviewed by Benjamin Poulain.
3491
3492         [Qt] Fix tst_QWebPage::testOptionalJSObjects() autotest
3493         https://bugs.webkit.org/show_bug.cgi?id=61045
3494
3495         * tests/qwebpage/tst_qwebpage.cpp:
3496         (tst_QWebPage::testOptionalJSObjects): Mark failing test cases as expected fails.
3497
3498 2011-05-20  Peter Varga  <pvarga@webkit.org>
3499
3500         Reviewed by Simon Hausmann.
3501
3502         [Qt][V8] Use qtscript-staging's shipped version of V8 when building with --v8
3503         https://bugs.webkit.org/show_bug.cgi?id=56649
3504
3505         Use the provided V8 and functionality of
3506         http://qt.gitorious.org/+qt-developers/qt/qtscript-staging to build QtWebKit+V8.
3507         Based on the original patch of Andras Becsi <abecsi@webkit.org>.
3508
3509         * Api/qwebframe.cpp:
3510         (QWebFrame::addToJavaScriptWindowObject): Fix QString deprecated
3511         warning.
3512         * QtWebKit.pro: Adding the V8 library should happen in the final build
3513         step.
3514         * WebCoreSupport/ChromeClientQt.cpp: Add missing head.
3515         * WebCoreSupport/DumpRenderTreeSupportQt.cpp: Ditto.
3516
3517 2011-05-20  Csaba Osztrogonác  <ossy@webkit.org>
3518
3519         Reviewed by Benjamin Poulain.
3520
3521         [Qt]Fix tst_QWebFrame::setUrlToInvalid() autotest after r84762
3522         https://bugs.webkit.org/show_bug.cgi?id=59345
3523
3524         * tests/qwebframe/tst_qwebframe.cpp:
3525         (tst_QWebFrame::setUrlToInvalid): Mark failing test cases as expected fails.
3526
3527 2011-05-19  Zsolt Fehér  <h490267@stud.u-szeged.hu>
3528
3529         Reviewed by Csaba Osztrogonác.
3530
3531         [Qt] Implement eventSender.scalePageBy
3532         https://bugs.webkit.org/show_bug.cgi?id=60015
3533
3534         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3535         (DumpRenderTreeSupportQt::scalePageBy):
3536         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3537
3538 2011-05-18  Yi Shen  <yi.4.shen@nokia.com>
3539
3540         Reviewed by Andreas Kling.
3541
3542         [Qt] Enterkey to go to Newline does not work in the text area(in HTML form)
3543         https://bugs.webkit.org/show_bug.cgi?id=33179
3544
3545         Remove the implementation of the handleInputMethodKeydown, which introduces
3546         a regression(r82243) on Linux. Also, add more Api tests for the EnterKey event.
3547
3548         * WebCoreSupport/EditorClientQt.cpp:
3549         (WebCore::EditorClientQt::handleInputMethodKeydown): Remove implementation.
3550         * tests/qwebpage/tst_qwebpage.cpp:
3551         (tst_QWebPage::inputMethods): Add more tests.
3552
3553 2011-05-18  Kristóf Kosztyó  <Kosztyo.Kristof@stud.u-szeged.hu>
3554
3555         Reviewed by Csaba Osztrogonác.
3556
3557         [Qt] Implement layoutTestController.setValueForUser()
3558         https://bugs.webkit.org/show_bug.cgi?id=60956
3559
3560         * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3561         (DumpRenderTreeSupportQt::setValueForUser):
3562         * WebCoreSupport/DumpRenderTreeSupportQt.h:
3563
3564 2011-05-16  Robert Hogan  <robert@webkit.org>
3565
3566         Reviewed by Kenneth Rohde Christiansen.
3567
3568         plugins/invalidate_rect.html fails on linux ports
3569
3570         Add ChromeClientQt::allowsAcceleratedCompositing().
3571
3572         https://bugs.webkit.org/show_bug.cgi?id=54051
3573
3574         * WebCoreSupport/ChromeClientQt.cpp:
3575         (WebCore::ChromeClientQt::allowsAcceleratedCompositing):
3576         * WebCoreSupport/ChromeClientQt.h:
3577
3578 2011-05-17  Caio Marcelo de Oliveira Filho  <caio.oliveira@openbossa.org>
3579
3580         Reviewed by Andreas Kling.
3581
3582         [Qt] Simplify syntax in test code to make prepare-ChangeLog less confused
3583         https://bugs.webkit.org/show_bug.cgi?id=60978
3584
3585         Backslash to escape newlines was confusing both prepare-ChangeLog and the
3586         QtCreator highlight system.
3587
3588         * tests/qwebframe/tst_qwebframe.cpp:
3589         (tst_QWebFrame::evalJSV):
3590         Remove usage of backslash to escape newlines in string literal.
3591
3592 2011-05-17  Young Han Lee  <joybro@company100.net>
3593
3594         Reviewed by Csaba Osztrogonác.
3595
3596         [Texmap][Qt] Enable strict PassOwnPtr for Qt with texmap enabled.
3597         https://bugs.webkit.org/show_bug.cgi?id=60947
3598
3599         * WebCoreSupport/PageClientQt.cpp:
3600         (WebCore::PageClientQWidget::setRootGraphicsLayer):
3601
3602 2011-05-16  Jon Lee  <jonlee@apple.com>
3603
3604         Reviewed by Simon Fraser.
3605
3606         Can't horizontally scroll iframes and overflow because wheel events are always accepted
3607         https://bugs.webkit.org/show_bug.cgi?id=60779
3608
3609         * WebCoreSupport/ChromeClientQt.h:
3610         (WebCore::ChromeClientQt::shouldRubberBandInDirection): Default impl of new ChromeClient method
3611         (WebCore::ChromeClientQt::numWheelEventHandlersChanged): Default impl of new ChromeClient method
3612
3613 2011-05-16  Andreas Kling  <kling@webkit.org>
3614
3615         Reviewed by Kenneth Rohde Christiansen.
3616
3617         REGRESSION(r83820): [Qt] Accelerated compositing no longer works in QGraphicsWebView.
3618         https://bugs.webkit.org/show_bug.cgi?id=60892
3619
3620         Don't set the ItemClipsChildrenToShape flag for the root platform layer,
3621         since that is now the overflow controls layer. The clip layer, which was
3622         previously the root platform layer, already gets the flag by way of
3623         the GraphicsLayer mask-to-bounds flag.
3624
3625         * WebCoreSupport/PageClientQt.cpp:
3626         (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
3627
3628 2011-05-16  Adam Barth  <abarth@webkit.org>
3629
3630         Partial revert of r86537.  FullScreenVideoQt.h can't depend on OwnPtr.h
3631         because moc_FullScreenVideoQt.cpp fails to include config.h.
3632         Apparently, having moc_Fu