1 2011-01-17 Yi Shen <yi.4.shen@nokia.com>
3 Reviewed by Andreas Kling.
5 [Qt] Extend the Platform Plugin to support full screen video handler
6 https://bugs.webkit.org/show_bug.cgi?id=51249
8 Add a new webkit platform plugin interface to support full screen video handler.
10 * Api/qwebkitplatformplugin.h:
11 (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
12 (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
13 * WebCoreSupport/ChromeClientQt.cpp:
14 (WebCore::ChromeClientQt::ChromeClientQt):
15 (WebCore::ChromeClientQt::~ChromeClientQt):
16 (WebCore::ChromeClientQt::fullScreenVideo):
17 (WebCore::ChromeClientQt::supportsFullscreenForNode):
18 (WebCore::ChromeClientQt::requiresFullscreenForVideoPlayback):
19 (WebCore::ChromeClientQt::enterFullscreenForNode):
20 (WebCore::ChromeClientQt::exitFullscreenForNode):
21 * WebCoreSupport/ChromeClientQt.h:
22 * WebCoreSupport/FullScreenVideoQt.cpp: Added.
23 (WebCore::FullScreenVideoQt::FullScreenVideoQt):
24 (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
25 (WebCore::FullScreenVideoQt::enterFullScreenForNode):
26 (WebCore::FullScreenVideoQt::exitFullScreenForNode):
27 (WebCore::FullScreenVideoQt::aboutToClose):
28 (WebCore::FullScreenVideoQt::mediaPlayer):
29 (WebCore::FullScreenVideoQt::mediaPlayerForNode):
30 (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
31 * WebCoreSupport/FullScreenVideoQt.h: Added.
32 (WebCore::FullScreenVideoQt::isValid):
33 * WebCoreSupport/QtPlatformPlugin.cpp:
34 (WebCore::QtPlatformPlugin::createFullScreenVideoHandler):
35 * WebCoreSupport/QtPlatformPlugin.h:
36 * examples/platformplugin/WebPlugin.cpp:
37 (FullScreenVideoWidget::FullScreenVideoWidget):
38 (FullScreenVideoWidget::event):
39 (FullScreenVideoWidget::keyPressEvent):
40 (FullScreenVideoHandler::FullScreenVideoHandler):
41 (FullScreenVideoHandler::~FullScreenVideoHandler):
42 (FullScreenVideoHandler::requiresFullScreenForVideoPlayback):
43 (FullScreenVideoHandler::enterFullScreen):
44 (FullScreenVideoHandler::exitFullScreen):
45 (WebPlugin::supportsExtension):
46 (WebPlugin::createExtension):
47 * examples/platformplugin/WebPlugin.h:
48 (FullScreenVideoWidget::~FullScreenVideoWidget):
49 * examples/platformplugin/platformplugin.pro:
50 * examples/platformplugin/qwebkitplatformplugin.h:
51 (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
52 (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
54 2011-01-16 Adam Barth <abarth@webkit.org>
56 Rubber-stamped by Eric Seidel.
58 Move WebKit into Source
59 https://bugs.webkit.org/show_bug.cgi?id=52530
61 * Api/DerivedSources.pro:
62 * declarative/declarative.pro:
66 2011-01-15 Sheriff Bot <webkit.review.bot@gmail.com>
68 Unreviewed, rolling out r75708.
69 http://trac.webkit.org/changeset/75708
70 https://bugs.webkit.org/show_bug.cgi?id=52521
72 Breaks Qt build if mobility is not installed. (Requested by
73 benjaminp on #webkit).
75 * Api/qwebkitplatformplugin.h:
76 * WebCoreSupport/ChromeClientQt.cpp:
77 (WebCore::ChromeClientQt::ChromeClientQt):
78 (WebCore::ChromeClientQt::~ChromeClientQt):
79 * WebCoreSupport/ChromeClientQt.h:
80 * WebCoreSupport/FullScreenVideoQt.cpp: Removed.
81 * WebCoreSupport/FullScreenVideoQt.h: Removed.
82 * WebCoreSupport/QtPlatformPlugin.cpp:
83 * WebCoreSupport/QtPlatformPlugin.h:
84 * examples/platformplugin/WebPlugin.cpp:
85 (WebPlugin::supportsExtension):
86 (WebPlugin::createExtension):
87 * examples/platformplugin/WebPlugin.h:
88 * examples/platformplugin/platformplugin.pro:
89 * examples/platformplugin/qwebkitplatformplugin.h:
91 2011-01-15 Robert Hogan <robert@webkit.org>
93 Reviewed by Kenneth Rohde Christiansen.
95 [Qt] plugins/no-mime-with-valid-extension.html fails
96 Check extension of resource against installed
97 plugins when determining mime-type.
99 https://bugs.webkit.org/show_bug.cgi?id=52288
100 https://bugs.webkit.org/show_bug.cgi?id=50657
102 * WebCoreSupport/FrameLoaderClientQt.cpp:
103 (WebCore::FrameLoaderClientQt::objectContentType):
105 2011-01-14 Sam Magnuson <smagnuso@gmail.com>
107 Reviewed by Kenneth Rohde Christiansen.
109 [Qt] Compile with QT_NO_GRAPHICSVIEW
110 https://bugs.webkit.org/show_bug.cgi?id=49750
112 * Api/qgraphicswebview.cpp:
113 * Api/qgraphicswebview.h:
117 * WebCoreSupport/FrameLoaderClientQt.cpp:
118 (WebCore::FrameLoaderClientQt::createPlugin):
119 * WebCoreSupport/PageClientQt.cpp:
120 * WebCoreSupport/PageClientQt.h:
122 2011-01-14 Yuzo Fujishima <yuzo@google.com>
124 Reviewed by Antti Koivisto.
126 Rename cache() to memoryCache()
127 https://bugs.webkit.org/show_bug.cgi?id=52433
130 (QWebPagePrivate::_q_cleanupLeakMessages):
131 * Api/qwebsettings.cpp:
132 (QWebSettings::clearMemoryCaches):
133 (QWebSettings::setObjectCacheCapacities):
135 2011-01-14 Konstantin Tokarev <annulen@yandex.ru>
137 Reviewed by Laszlo Gombos.
139 [Qt] Fixed compilation when QT_NO_SHORTCUT is defined
140 https://bugs.webkit.org/show_bug.cgi?id=52460
142 This patch fixes compilation when QT_NO_SHORTCUT is defined in Qt
145 * WebCoreSupport/EditorClientQt.cpp:
146 (WebCore::EditorClientQt::handleKeyboardEvent): Added QT_NO_SHORTCUT guards
148 2011-01-13 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
150 Reviewed by Simon Hausmann.
152 [Qt] Need a way to inform the application when a Netscape plugin is created.
153 https://bugs.webkit.org/show_bug.cgi?id=30179
155 Added "c" style static method for the application to hook up for
156 receiving notifications when a plugin is created.
158 * symbian/bwins/QtWebKitu.def:
159 * symbian/eabi/QtWebKitu.def:
161 2011-01-13 Yi Shen <yi.4.shen@nokia.com>
163 Reviewed by Simon Hausmann.
165 [Qt] Extend the Platform Plugin to support full screen video handler
166 https://bugs.webkit.org/show_bug.cgi?id=51249
168 Add a new webkit platform plugin interface to support full screen video handler.
170 * Api/qwebkitplatformplugin.h:
171 (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
172 (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
173 * WebCoreSupport/ChromeClientQt.cpp:
174 (WebCore::ChromeClientQt::ChromeClientQt):
175 (WebCore::ChromeClientQt::~ChromeClientQt):
176 (WebCore::ChromeClientQt::fullScreenVideo):
177 (WebCore::ChromeClientQt::supportsFullscreenForNode):
178 (WebCore::ChromeClientQt::requiresFullscreenForVideoPlayback):
179 (WebCore::ChromeClientQt::enterFullscreenForNode):
180 (WebCore::ChromeClientQt::exitFullscreenForNode):
181 * WebCoreSupport/ChromeClientQt.h:
182 * WebCoreSupport/FullScreenVideoQt.cpp: Added.
183 (WebCore::FullScreenVideoQt::FullScreenVideoQt):
184 (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
185 (WebCore::FullScreenVideoQt::enterFullScreenForNode):
186 (WebCore::FullScreenVideoQt::exitFullScreenForNode):
187 (WebCore::FullScreenVideoQt::aboutToClose):
188 (WebCore::FullScreenVideoQt::mediaPlayer):
189 (WebCore::FullScreenVideoQt::mediaPlayerForNode):
190 (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
191 * WebCoreSupport/FullScreenVideoQt.h: Added.
192 (WebCore::FullScreenVideoQt::isValid):
193 * WebCoreSupport/QtPlatformPlugin.cpp:
194 (WebCore::QtPlatformPlugin::createFullScreenVideoHandler):
195 * WebCoreSupport/QtPlatformPlugin.h:
196 * examples/platformplugin/WebPlugin.cpp:
197 (FullScreenVideoWidget::FullScreenVideoWidget):
198 (FullScreenVideoWidget::event):
199 (FullScreenVideoWidget::keyPressEvent):
200 (FullScreenVideoHandler::FullScreenVideoHandler):
201 (FullScreenVideoHandler::~FullScreenVideoHandler):
202 (FullScreenVideoHandler::requiresFullScreenForVideoPlayback):
203 (FullScreenVideoHandler::enterFullScreen):
204 (FullScreenVideoHandler::exitFullScreen):
205 (WebPlugin::supportsExtension):
206 (WebPlugin::createExtension):
207 * examples/platformplugin/WebPlugin.h:
208 (FullScreenVideoWidget::~FullScreenVideoWidget):
209 * examples/platformplugin/platformplugin.pro:
210 * examples/platformplugin/qwebkitplatformplugin.h:
211 (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
212 (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
214 2011-01-12 Robert Hogan <robert@webkit.org>
216 Reviewed by Kenneth Rohde Christiansen.
218 [Qt] Search input field doesn't have cancel button
220 Add a cancel button to the search field and make it customizable
221 by the client. For now, use the close dialog button associated
222 with the application's style as the default.
224 https://bugs.webkit.org/show_bug.cgi?id=42887
226 * Api/qwebsettings.cpp:
228 * Api/qwebsettings.h:
230 2011-01-12 Sheriff Bot <webkit.review.bot@gmail.com>
232 Unreviewed, rolling out r74344.
233 http://trac.webkit.org/changeset/74344
234 https://bugs.webkit.org/show_bug.cgi?id=52290
236 broke QWebPluginFactory for unusual mime-types (Requested by
239 * WebCoreSupport/FrameLoaderClientQt.cpp:
240 (WebCore::FrameLoaderClientQt::createPlugin):
242 2011-01-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
244 Reviewed by Kenneth Rohde Christiansen.
246 [Qt] Remove uses of QFuture since it isn't supported on all platforms.
247 https://bugs.webkit.org/show_bug.cgi?id=51204
249 * tests/qwebpage/tst_qwebpage.cpp:
250 (QtNAMThread::QtNAMThread):
251 (QtNAMThread::networkAccessManager):
254 2011-01-11 Benjamin Poulain <benjamin.poulain@nokia.com>
256 Reviewed by Kenneth Rohde Christiansen.
258 [Qt] Fix tst_QWebPage::geolocationRequestJS()
259 https://bugs.webkit.org/show_bug.cgi?id=46814
261 Skip the test when WebKit is compiled without geolocation.
263 * tests/qwebpage/tst_qwebpage.cpp:
264 (tst_QWebPage::geolocationRequestJS):
266 2011-01-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
268 Reviewed by Csaba Osztrogonác.
270 [Qt] Baseline qt_minimal configuration
271 https://bugs.webkit.org/show_bug.cgi?id=51313
273 * WebCoreSupport/PopupMenuQt.cpp:
274 (WebCore::PopupMenuQt::show): Add QT_NO_COMBOBOX guard.
276 * WebCoreSupport/QtFallbackWebPopup.cpp:
277 (WebCore::QtFallbackWebPopup::populate): Add QT_NO_TOOLTIP guard.
279 * tests/qwebframe/tst_qwebframe.cpp: Add QT_NO_COMBOBOX guard.
280 * tests/qwebpage/tst_qwebpage.cpp:
281 (PluginPage::createPlugin): Add QT_NO_INPUTDIALOG guard.
283 2011-01-10 Adam Barth <abarth@webkit.org>
285 Reviewed by Darin Adler.
287 Introduce the notion of a "display-isolated" URL scheme for use by
289 https://bugs.webkit.org/show_bug.cgi?id=50182
291 Update to new function name.
293 * Api/qwebsecurityorigin.cpp:
294 (QWebSecurityOrigin::localSchemes):
296 2011-01-10 Benjamin Poulain <benjamin.poulain@nokia.com>
298 Reviewed by Kenneth Rohde Christiansen.
300 [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
301 https://bugs.webkit.org/show_bug.cgi?id=52081
303 Add an autotest for checking the result of Navigator.cookiesEnabled depending
304 on the status of the cookie jar.
306 * tests/qwebpage/tst_qwebpage.cpp:
307 (tst_QWebPage::navigatorCookieEnabled):
309 2011-01-09 Sheriff Bot <webkit.review.bot@gmail.com>
311 Unreviewed, rolling out r75337.
312 http://trac.webkit.org/changeset/75337
313 https://bugs.webkit.org/show_bug.cgi?id=52137
315 It made fast/dom/navigator-detached-no-crash.html crash
316 (Requested by Ossy on #webkit).
318 * tests/qwebpage/tst_qwebpage.cpp:
320 2011-01-09 Xianzhu Wang <phnixwxz@gmail.com>
322 Reviewed by Darin Fisher.
324 https://bugs.webkit.org/show_bug.cgi?id=41441
325 createWindow method should only do window-creating without URL navigation
329 * WebCoreSupport/ChromeClientQt.cpp:
330 (WebCore::ChromeClientQt::createWindow):
332 2011-01-08 Benjamin Poulain <benjamin.poulain@nokia.com>
334 Reviewed by Kenneth Rohde Christiansen.
336 [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
337 https://bugs.webkit.org/show_bug.cgi?id=52081
339 Add an autotest for checking the result of Navigator.cookiesEnabled depending
340 on the status of the cookie jar.
342 * tests/qwebpage/tst_qwebpage.cpp:
343 (tst_QWebPage::navigatorCookieEnabled):
345 2011-01-07 Adam Barth <abarth@webkit.org>
347 Rubber-stamped by Eric Seidel.
349 Move WebCore to Source
350 https://bugs.webkit.org/show_bug.cgi?id=52050
352 Update documentation to reference new location of WebCore.
354 * docs/qtwebkit.qdoc:
356 2011-01-07 Andreas Kling <kling@webkit.org>
358 Reviewed by Adam Barth.
360 [Qt] Add selectedHtml function to QWebView
361 https://bugs.webkit.org/show_bug.cgi?id=35028
363 Add QWebView::selectedHtml() and QWebPage::selectedHtml()
364 which return the current selection range's HTML representation.
367 (QWebPage::selectedHtml):
370 (QWebView::selectedText):
371 (QWebView::selectedHtml):
373 * tests/qwebpage/tst_qwebpage.cpp:
374 (tst_QWebPage::cursorMovements):
375 (tst_QWebPage::textSelection):
376 (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
377 (tst_QWebPage::findText):
379 2011-01-06 Robert Hogan <robert@webkit.org>
381 Reviewed by Antonio Gomes.
383 [Qt] Introduce QDRTNode for passing WebCore::Node across JS bridge
385 This allows LayoutTestController to pass WebCore::Node back to
388 Also amend nodesFromRect-links-and-text.html and
389 nodesFromRect-inner-documents.html so that they do not produce
390 platform-specific results.
393 fast/dom/nodesFromRect-links-and-text.html
394 fast/dom/nodesFromRect-inner-documents.html
396 https://bugs.webkit.org/show_bug.cgi?id=48957
398 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
399 (QDRTNode::QDRTNode):
400 (QDRTNode::~QDRTNode):
401 (DumpRenderTreeSupportQt::nodesFromRect):
402 * WebCoreSupport/DumpRenderTreeSupportQt.h:
404 2011-01-04 Girish Ramakrishnan <girish@forwardbias.in>
406 Reviewed by Simon Hausmann.
407 Acked by Aaron Kennedy <aaron.kennedy@nokia.com>
409 [Qt] QML WebView does not transfer focus to underlying QGraphicsWebView
411 QML WebView creates QGraphicsWebView as it's child. The WebView is not
412 setup as a focus proxy of the QGraphicsWebView. Thus, even though the
413 WebView gets focus, the QGraphicsWebView does not get focus.
414 In QML, focus proxies or "focus scopes" are created using FocusScope.
415 This change makes WebView a FocusScope and sets the focus on the
418 https://bugs.webkit.org/show_bug.cgi?id=51094
420 * declarative/qdeclarativewebview.cpp:
421 (QDeclarativeWebView::init):
423 2011-01-05 Yi Shen <yi.4.shen@nokia.com>
425 Reviewed by Andreas Kling.
427 [Qt] Sync qwebkitplatformplugin.h in the plugin example
428 https://bugs.webkit.org/show_bug.cgi?id=51882
430 Make examples/platformplugin/qwebkitplatformplugin.h exactly the same
431 as the one in the Api folder.
433 * examples/platformplugin/qwebkitplatformplugin.h:
435 2011-01-04 Zhe Su <suzhe@chromium.org>
437 Reviewed by Kenneth Russell.
439 Fix test LayoutTests/fast/events/ime-composition-events-001.html.
441 https://bugs.webkit.org/show_bug.cgi?id=51693
444 (QWebPagePrivate::inputMethodEvent): Calls editor->insertText() to
445 insert the commit string when no composition text is available.
447 2011-01-03 Yi Shen <yi.4.shen@nokia.com>
449 Reviewed by Adam Barth.
451 [Qt] Add SelectAll option to the context menu for the editor
452 https://bugs.webkit.org/show_bug.cgi?id=50049
454 Enable SelectAll for the Qt context menu.
457 (webActionForContextMenuAction):
459 * WebCoreSupport/WebPlatformStrategies.cpp:
460 (WebPlatformStrategies::contextMenuItemTagSelectAll):
461 * WebCoreSupport/WebPlatformStrategies.h:
463 2011-01-03 Antonio Gomes <agomes@rim.com>
465 Unreviewed crash fix.
467 Follow up of r74891: potential crash fix (bogus assertion).
469 * WebCoreSupport/EditorClientQt.cpp:
470 (WebCore::editorCommandForKeyDownEvent):
472 2011-01-03 Noam Rosenthal <noam.rosenthal@nokia.com>
474 Reviewed by Andreas Kling.
476 [Qt] document.getElementById(...) doesn't return the right object in combination with QGraphicsWidget
477 https://bugs.webkit.org/show_bug.cgi?id=51464
479 Added a way to bind any QObject created as a plugin to JavaScript,
480 by adding a custom membe to WebCore::Widget.
481 Added a test to make sure plugins created as QGraphicsWidget are
482 accessible through JavaScript.
484 * WebCoreSupport/FrameLoaderClientQt.cpp:
485 * tests/qwebpage/tst_qwebpage.cpp:
486 (PluginPage::createPlugin):
487 (tst_QWebPage::graphicsWidgetPlugin):
489 2011-01-02 Antonio Gomes <agomes@rim.com>
491 Reviewed by Kenneth Rohde Christiansen.
493 [Qt] Refactor EditorClientQt::handleKeyboardEvent
494 https://bugs.webkit.org/show_bug.cgi?id=51306
496 EditorClientQt::handleKeyboardEvent relies on QWebPagePrivate::editorActionForKeyEvent()
497 to handle all editor commands that have a QAction associted with it.
498 In practice, that covers most of editor commands (as one can see in editorCommandWebActions,
499 in qwebpage.cpp). However, there are some key down events that are associated to no QAction
500 or need special handling when features like spatial navigation or
501 caret browsing are enabled. Currently, these cases are being handled with confusing
502 and nested if/else switch's statements in EditorClientQt::handleKeyboardEvent(),
503 and the code is hardly readable.
505 This patch introduces a mapping hash for those cases, simplifying much
506 the code. Basically, nested switches statements mixed with if/else's were
507 refactored, and early returns were added right after an event gets consumed
510 Since it is a refactor only patch, there is no funcionality change at
511 all, and then no new tests are being added.
513 * WebCoreSupport/EditorClientQt.cpp:
514 (WebCore::interpretKeyEvent):
515 (WebCore::EditorClientQt::handleKeyboardEvent):
517 2011-01-01 Adam Barth <abarth@webkit.org>
519 Reviewed by Eric Seidel.
521 Move JavaScriptCore to Source
522 https://bugs.webkit.org/show_bug.cgi?id=51604
525 * docs/qtwebkit.qdocconf:
526 - Point to JavaScriptCore in its new location.
528 2010-12-29 Kent Hansen <kent.hansen@nokia.com>
530 Reviewed by Simon Hausmann.
532 [Qt] Fix compilation with Qt in namespace
533 https://bugs.webkit.org/show_bug.cgi?id=51701
535 * Api/qwebkitplatformplugin.h:
536 * WebCoreSupport/InspectorServerQt.h:
537 * tests/hybridPixmap/widget.h:
539 2010-12-23 Jan Erik Hanssen <jhanssen@sencha.com>
541 Reviewed by Alexey Proskuryakov.
543 [Qt] Composition text is not removed from the editor when composition is cancelled
544 https://bugs.webkit.org/show_bug.cgi?id=29391
546 Ensure that the composition text is cleared when an empty QInputMethodEvent
547 is received and the editor is in composition mode.
550 (QWebPagePrivate::inputMethodEvent):
552 2010-12-23 Jan Erik Hanssen <jhanssen@sencha.com>
554 Reviewed by Andreas Kling.
556 [Qt] copy and paste greek symbols to Word, TextEdit results in ?'s being shown
557 https://bugs.webkit.org/show_bug.cgi?id=35635
559 Test that QClipboard contains the charset information and unicode data
560 after copying unicode text.
562 * tests/qwebpage/tst_qwebpage.cpp:
563 (tst_QWebPage::macCopyUnicodeToClipboard):
565 2010-12-22 Sam Weinig <sam@webkit.org>
567 Reviewed by Darin Adler.
569 WebKit2 needs to mirror the frame tree in the UIProcess
570 https://bugs.webkit.org/show_bug.cgi?id=51546
572 - Add client functions to notify that a frame has been added or
573 removed from the page cache.
575 * WebCoreSupport/FrameLoaderClientQt.cpp:
576 (WebCore::FrameLoaderClientQt::didSaveToPageCache):
577 (WebCore::FrameLoaderClientQt::didRestoreFromPageCache):
578 * WebCoreSupport/FrameLoaderClientQt.h:
580 2010-12-22 Ryosuke Niwa <rniwa@webkit.org>
582 Reviewed by Eric Seidel.
584 Editor.h doesn't need to include SelectionController.h
585 https://bugs.webkit.org/show_bug.cgi?id=51441
587 Renamed SelectionController::EDirection to SelectionDirection.
589 * WebCoreSupport/EditorClientQt.cpp:
590 (WebCore::EditorClientQt::handleKeyboardEvent):
592 2010-12-23 Dawit Alemayehu <adawit@kde.org>
594 Reviewed by Kenneth Rohde Christiansen.
596 [Qt] Add a 'hasSelection' function to QWebView and QWebPage.
597 https://bugs.webkit.org/show_bug.cgi?id=48722
599 This is a convenience API that optimizes the case where checking for
600 the presence of selected content and accessing the selected content
601 are two separate actions in the client. See comment #12 in the above
602 bug report link for details.
605 (QWebPage::hasSelection):
608 (QWebView::hasSelection):
610 * tests/qwebpage/tst_qwebpage.cpp:
611 (tst_QWebPage::textSelection):
613 2010-12-20 Benjamin Poulain <benjamin.poulain@nokia.com>
615 Reviewed by Andreas Kling.
617 [Qt] Improve the readability of FrameLoaderClientQt::createPlugin()
618 https://bugs.webkit.org/show_bug.cgi?id=51330
620 Redefine the scopes to improve readability. Objects are now created in
621 the scope they are used in.
623 * WebCoreSupport/FrameLoaderClientQt.cpp:
624 (WebCore::FrameLoaderClientQt::createPlugin):
626 2010-12-17 Ariya Hidayat <ariya@sencha.com>
628 Reviewed by Antonio Gomes.
630 [Qt] GraphicsContext should respect QWebView render hints
631 https://bugs.webkit.org/show_bug.cgi?id=51208
633 Adjust the test since SmoothPixmapTransform is set by default.
635 * tests/qwebview/tst_qwebview.cpp:
636 (tst_QWebView::renderHints):
638 2010-12-05 Antonio Gomes <agomes@rim.com>
640 Reviewed by Ariya Hidayat.
642 [Qt] Fix caret browsing navigation mode
643 https://bugs.webkit.org/show_bug.cgi?id=50536
645 Caret browsing can consume editing commands even when the start
646 of current selection is not a editable content. r69582 missed this
647 case because caret browsing feature testing is very poor today.
649 This commit reintroduces part of the removed code in r69582 but
650 guarded by a isCaretBrowsingEnabled() check. No regression found.
652 * WebCoreSupport/EditorClientQt.cpp:
653 (WebCore::EditorClientQt::handleKeyboardEvent):
655 2010-12-17 Yi Shen <yi.4.shen@nokia.com>
657 Reviewed by Kenneth Rohde Christiansen.
659 [Qt] QWebPage sends out a RequestSoftwareInputPanel event
660 incorrectly in particular case
661 https://bugs.webkit.org/show_bug.cgi?id=50419
663 Add HitTestResult check before firing RequestSoftwareInputPanel event.
666 (QWebPagePrivate::mouseReleaseEvent):
667 (QWebPagePrivate::handleSoftwareInputPanel):
669 * tests/qwebpage/tst_qwebpage.cpp:
671 (tst_QWebPage::inputMethods):
673 2010-12-17 Eric Seidel <eric@webkit.org>
675 Unreviewed, rolling out r74229.
676 http://trac.webkit.org/changeset/74229
677 https://bugs.webkit.org/show_bug.cgi?id=50536
679 Broken on Snow Leopard and possibly other platforms
681 * WebCoreSupport/EditorClientQt.cpp:
682 (WebCore::EditorClientQt::handleKeyboardEvent):
684 2010-12-05 Antonio Gomes <agomes@rim.com>
686 Reviewed by Ariya Hidayat.
688 [Qt] Fix caret browsing navigation mode
689 https://bugs.webkit.org/show_bug.cgi?id=50536
691 Caret browsing can consume editing commands even when the start
692 of current selection is not a editable content. r69582 missed this
693 case because caret browsing feature testing is very poor today.
695 This commit reintroduces part of the removed code in r69582 but
696 guarded by a isCaretBrowsingEnabled() check. No regression found.
698 * WebCoreSupport/EditorClientQt.cpp:
699 (WebCore::EditorClientQt::handleKeyboardEvent):
701 2010-12-16 Ariya Hidayat <ariya@sencha.com>
703 Reviewed by Andreas Kling.
705 [Qt] GraphicsContext should respect QWebView render hints
706 https://bugs.webkit.org/show_bug.cgi?id=51208
708 Add some checks to ensure that GraphicsContext (via QWebFrame)
709 does not clobber the render hints.
712 (QWebViewPrivate::QWebViewPrivate):
713 * tests/qwebframe/tst_qwebframe.cpp:
715 2010-12-15 Laszlo Gombos <laszlo.1.gombos@nokia.com>
717 Reviewed by Antonio Gomes.
719 [Qt] Fix tst_QWebPage::geolocationRequestJS()
720 https://bugs.webkit.org/show_bug.cgi?id=46814
722 Change the test case according to the changes introduced by
723 r72603 and enable the test case.
725 * tests/qwebpage/tst_qwebpage.cpp:
726 (tst_QWebPage::geolocationRequestJS):
728 2010-12-14 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
730 Reviewed by Laszlo Gombos.
732 [Qt] Flash plugins should be windowless on QGraphicsWebView on Symbian
733 Remove #idef SYMBIAN introduced by r69396.
734 https://bugs.webkit.org/show_bug.cgi?id=50487
736 * WebCoreSupport/FrameLoaderClientQt.cpp:
737 (WebCore::FrameLoaderClientQt::createPlugin):
739 2010-10-28 MORITA Hajime <morrita@google.com>
741 Reviewed by Ojan Vafai.
743 spellcheck does not check pasted text
744 https://bugs.webkit.org/show_bug.cgi?id=40092
746 Added a stub implememntation.
748 * WebCoreSupport/EditorClientQt.h:
749 (WebCore::EditorClientQt::requestCheckingOfString):
751 2010-12-11 Yi Shen <yi.4.shen@nokia.com>
753 Reviewed by Kenneth Rohde Christiansen.
755 [Qt] Memory leaks for QWebPageClient
756 https://bugs.webkit.org/show_bug.cgi?id=50267
758 Use OwnPtr to solve this memory leak issue.
760 * Api/qgraphicswebview.cpp:
761 (QGraphicsWebViewPrivate::overlay):
762 (QGraphicsWebViewPrivate::QWebViewPrivate::pageClient):
763 (QGraphicsWebViewPrivate::syncLayers):
764 (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
765 (QGraphicsWebViewPrivate::_q_scaleChanged):
766 (QGraphicsWebViewPrivate::detachCurrentPage):
769 (QWebViewPrivate::detachCurrentPage):
770 * WebCoreSupport/ChromeClientQt.cpp:
771 (WebCore::ChromeClientQt::platformPageClient):
772 * WebCoreSupport/EditorClientQt.cpp:
773 (WebCore::EditorClientQt::setInputMethodState):
774 * WebCoreSupport/FrameLoaderClientQt.cpp:
775 (WebCore::FrameLoaderClientQt::createPlugin):
777 2010-12-11 Jan Erik Hanssen <jhanssen@sencha.com>
779 Reviewed by Andreas Kling.
781 [Qt] QWebFrame does not support QNetworkRequest::CacheLoadControl
782 https://bugs.webkit.org/show_bug.cgi?id=35671
784 Make QWebFrame respect the QNetworkRequest::CacheLoadControl attribute
785 set on the request, if any.
788 (cacheLoadControlToCachePolicy):
790 * tests/qwebframe/tst_qwebframe.cpp:
792 2010-10-11 Diego Gonzalez <diegohcg@webkit.org>
794 Reviewed by Kenneth Rohde Christiansen.
796 [Qt] Mock DeviceOrientation client for DRT
797 https://bugs.webkit.org/show_bug.cgi?id=47490
799 * WebCoreSupport/DeviceOrientationClientMockQt.cpp: Added.
800 (WebCore::DeviceOrientationClientMockQt::client):
801 (WebCore::DeviceOrientationClientMockQt::DeviceOrientationClientMockQt):
802 (WebCore::DeviceOrientationClientMockQt::~DeviceOrientationClientMockQt):
803 (WebCore::DeviceOrientationClientMockQt::setController):
804 (WebCore::DeviceOrientationClientMockQt::startUpdating):
805 (WebCore::DeviceOrientationClientMockQt::stopUpdating):
806 (WebCore::DeviceOrientationClientMockQt::lastOrientation):
807 (WebCore::DeviceOrientationClientMockQt::deviceOrientationControllerDestroyed):
808 (WebCore::DeviceOrientationClientMockQt::setOrientation):
809 * WebCoreSupport/DeviceOrientationClientMockQt.h: Added.
810 * WebCoreSupport/DeviceOrientationClientQt.cpp:
811 * WebCoreSupport/DeviceOrientationProviderQt.cpp:
812 (WebCore::DeviceOrientationProviderQt::DeviceOrientationProviderQt):
813 (WebCore::DeviceOrientationProviderQt::~DeviceOrientationProviderQt):
814 (WebCore::DeviceOrientationProviderQt::changeDeviceOrientation):
815 * WebCoreSupport/DeviceOrientationProviderQt.h:
816 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
817 (DumpRenderTreeSupportQt::activeMockDeviceOrientationClient):
818 (DumpRenderTreeSupportQt::removeMockDeviceOrientation):
819 (DumpRenderTreeSupportQt::setMockDeviceOrientation):
820 * WebCoreSupport/DumpRenderTreeSupportQt.h:
822 2010-12-10 Krithigassree Sambamurthy <krithigassree.sambamurthy@nokia.com>
824 Reviewed by Joseph Pecoraro.
826 Bug 43455 - [Qt]: Implement Application Cache Quotas
827 https://bugs.webkit.org/show_bug.cgi?id=43455
829 Added new signal to report ApplicationCache Database
835 Added new functions to accomodate new appcache layout
836 test origin-quota.html.
838 * Api/qwebsecurityorigin.cpp:
839 (QWebSecurityOrigin::setApplicationCacheQuota):
840 * Api/qwebsecurityorigin.h:
841 * WebCoreSupport/ChromeClientQt.cpp:
842 (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
843 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
844 (DumpRenderTreeSupportQt::clearAllApplicationCaches):
845 * WebCoreSupport/DumpRenderTreeSupportQt.h:
847 2010-12-10 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
849 Reviewed by Kenneth Rohde Christiansen.
851 [Qt] Support a QNetworkAccessManager affined to a different thread.
852 https://bugs.webkit.org/show_bug.cgi?id=50080
854 This patch introduce thread safe proxy classes for QNetworkAccessManager
856 If run in the same thread, these objects will forward the calls with
857 Qt::DirectConnection bindings, while in the other case they will use
858 Qt::QueuedConnection to carry requests accross threads.
860 This patch basically:
861 - Makes sure that all access goes through these objects
862 - Reorders signal connections to make sure we are connected when the
864 - Makes sure that no QObject in the WebCore thread is a child of the
865 reply which might be in a different thread.
866 - Forward the data directly in QByteArrays in signals instead of collecting
867 the data when the signal is handled.
869 New test: tst_QWebPage::networkAccessManagerOnDifferentThread
871 * WebCoreSupport/FrameLoaderClientQt.cpp:
872 (WebCore::FrameLoaderClientQt::download):
873 * tests/qwebpage/tst_qwebpage.cpp:
874 (QtNAMThread::QtNAMThread):
875 (QtNAMThread::~QtNAMThread):
876 (QtNAMThread::networkAccessManager):
878 (tst_QWebPage::networkAccessManagerOnDifferentThread):
880 2010-12-09 Sheriff Bot <webkit.review.bot@gmail.com>
882 Unreviewed, rolling out r73635.
883 http://trac.webkit.org/changeset/73635
884 https://bugs.webkit.org/show_bug.cgi?id=50778
886 'Side-effects on 3 css tests needs closer review' (Requested
887 by mwenge on #webkit).
889 * Api/qwebsettings.cpp:
891 * Api/qwebsettings.h:
893 2010-12-09 Robert Hogan <robert@webkit.org>
895 Reviewed by Andreas Kling.
897 [Qt] Search input field doesn't have cancel button
899 Add a cancel button to the search field and make it customizable
900 by the client. For now, use the close dialog button associated
901 with the application's style as the default.
903 https://bugs.webkit.org/show_bug.cgi?id=42887
905 * Api/qwebsettings.cpp:
907 * Api/qwebsettings.h:
909 2010-12-09 Siddharth Mathur <siddharth.mathur@nokia.com>
911 Reviewed by Laszlo Gombos.
913 Use BUILDING_WEBKIT like other ports
914 https://bugs.webkit.org/show_bug.cgi?id=50713
916 * Api/qwebkitglobal.h: change BUILD_WEBKIT to BUILDING_WEBKIT
918 2010-12-08 Qi Zhang <qi.2.zhang@nokia.com>
920 Reviewed by Kenneth Rohde Christiansen.
922 [Qt] Support OrientationChange event
923 https://bugs.webkit.org/show_bug.cgi?id=50685
925 Get OrientationChange event from qtmobility then send to webkit.
928 (QWebFrame::orientationChanged):
929 (QWebFrame::QWebFrame):
933 2010-12-07 Brian Weinstein <bweinstein@apple.com>
935 Reviewed by John Sullivan.
937 Layering Violation in ContextMenu - member variable of type HitTestResult
938 https://bugs.webkit.org/show_bug.cgi?id=50586
940 Update users of ContextMenu and ContextMenuController to match where the new functions
944 (QWebPagePrivate::createContextMenu):
945 (QWebPage::updatePositionDependentActions):
947 2010-12-07 Darin Adler <darin@apple.com>
952 (frameLoadRequest): Added missing parentheses.
954 2010-12-06 Darin Adler <darin@apple.com>
956 Reviewed by Sam Weinig.
958 Pass security origin to make local file decision correctly
959 https://bugs.webkit.org/show_bug.cgi?id=48603
962 (frameLoadRequest): Pass security origin.
964 2010-12-07 Martin Robinson <mrobinson@igalia.com>
966 Unreviewed, rolling out r73392.
967 http://trac.webkit.org/changeset/73392
968 https://bugs.webkit.org/show_bug.cgi?id=50489
970 This commit caused crashes on the GTK+ bots
974 * WebCoreSupport/FrameLoaderClientQt.cpp:
975 (WebCore::FrameLoaderClientQt::finishedLoading):
977 2010-12-06 Nate Chapin <japhet@chromium.org>
979 Reviewed by Adam Barth.
981 Update calls to DocumentWriter.
982 https://bugs.webkit.org/show_bug.cgi?id=50489
986 * WebCoreSupport/FrameLoaderClientQt.cpp:
987 (WebCore::FrameLoaderClientQt::finishedLoading):
989 2010-12-01 Jia Pu <jpu@apple.com>
991 Reviewed by Darin Adler.
993 Support multiple correction candidates panel for misspelled word on Mac OS X.
994 https://bugs.webkit.org/show_bug.cgi?id=50137
995 <rdar://problem/8568059>
997 Adopted new function signature defined in base class.
999 * WebCoreSupport/EditorClientQt.cpp:
1000 (WebCore::EditorClientQt::getGuessesForWord):
1001 * WebCoreSupport/EditorClientQt.h:
1003 2010-11-30 Benjamin Poulain <benjamin.poulain@nokia.com>
1005 Reviewed by Kenneth Rohde Christiansen.
1007 [Qt] Implement layoutTestController.findString
1008 https://bugs.webkit.org/show_bug.cgi?id=50236
1010 Add support for the new advanced findString().
1012 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1013 (DumpRenderTreeSupportQt::findString):
1014 * WebCoreSupport/DumpRenderTreeSupportQt.h:
1016 2010-11-30 Ojan Vafai <ojan@chromium.org>
1018 Revert r72876. It caused a ~30% perf regression in chromium's bloat-http test
1019 https://bugs.webkit.org/show_bug.cgi?id=50288
1021 2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
1022 Reviewed by Darin Adler.
1023 Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
1024 https://bugs.webkit.org/show_bug.cgi?id=50182
1025 A display-isolated URL can only be displayed (e.g., put in an iframe,
1026 hyperlinked to) by documents from that scheme. In a sense, this is a
1027 generalization of some of the protections we give file URLs, but
1028 instead of lumping them all together into one "local" bucket, this
1029 patch creates a separate bucket for each scheme.
1030 For a while, I tried using a separate bucket for each origin. That
1031 would have played nicely with what Blob URLs are trying to do, but some
1032 "chrome" URL pages rely on being able to display other chrome URL
1033 pages, even in different origins. For example, the New Tab Page shows
1034 thumbnails from the "thumbnail" host.
1035 This patch also removes a bunch of unused code. I've also propagated
1036 the "deprecated" status of deprecatedCanDisplay to
1037 deprecatedShouldTreatURLAsLocal because that method has no other
1038 callers and is really asking for uppercase/lowercase bugs. I dream of
1039 someday removing these functions.
1040 2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
1041 Reviewed by Darin Adler.
1042 Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
1043 https://bugs.webkit.org/show_bug.cgi?id=50182
1044 This patch adds a Chromium API for registering schemes as
1045 display-isolated. In a subsequent patch, I'll change the "chrome"
1046 scheme in Chrome to be display isolated instead of local. That will
1047 prevent file URLs from linking to chrome URLs.
1049 * Api/qwebsecurityorigin.cpp:
1050 (QWebSecurityOrigin::localSchemes):
1052 2010-11-29 Vangelis Kokkevis <vangelis@chromium.org>
1054 Reviewed by Simon Fraser.
1056 Provide more fine grained control to ports over when to turn on accelerated
1058 https://bugs.webkit.org/show_bug.cgi?id=49998
1060 As part of this change, the old hasAcceleratedCompositing method on the ChromeClient
1061 has now been replaced by allowedCompositingTriggers which returns a bitfield of
1062 all the features which can trigger the compositor.
1065 * WebCoreSupport/ChromeClientQt.cpp:
1066 (WebCore::ChromeClientQt::allowedCompositingTriggers):
1067 * WebCoreSupport/ChromeClientQt.h:
1069 2010-11-30 Thiago Macieira <thiago.macieira@nokia.com>
1071 Reviewed by Andreas Kling.
1073 [Qt] QWebFrame::load(QNetworkRequest) should respect the CustomVerbAttribute
1075 For CustomOperation requests, pass the CustomVerbAttribute on to
1076 the WebCore::ResourceRequest.
1078 * Api/qwebframe.cpp:
1081 2010-11-25 Norbert Leser <norbert.leser@nokia.com>
1083 Reviewed by Laszlo Gombos.
1085 Updated Symbian DEF file for ARM target due to API changes
1086 via committs r72600-72603 (see bug# 46810)
1088 * symbian/eabi/QtWebKitu.def:
1090 2010-11-25 Kenneth Rohde Christiansen <kenneth@webkit.org>
1092 Reviewed by Andreas Kling and Simon Hausmann.
1094 [Qt] Calculate the -webkit-pixel-radio using the device DPI.
1095 http://webkit.org/b/50059
1097 Also, update the documentation on what a DIP is and how to override
1098 the device DPI in the case the system reports the wrong one (which
1099 unfortunately is common on X11).
1102 (QWebPagePrivate::QWebPagePrivate):
1103 (QWebPage::viewportAttributesForSize):
1105 * WebCoreSupport/ChromeClientQt.cpp:
1106 (WebCore::ChromeClientQt::scaleFactor):
1108 2010-11-24 Kristian Amlie <kristian.amlie@nokia.com>
1110 Reviewed by Andreas Kling.
1112 Fixed handling of QInputMethodEvents with nonzero replacementLength.
1114 These types of events replace text that is already in the widget, but
1115 WebKit did not check for replacementLength at all.
1117 https://bugs.webkit.org/show_bug.cgi?id=49787
1120 (QWebPagePrivate::inputMethodEvent):
1121 * tests/qwebpage/tst_qwebpage.cpp:
1122 (tst_QWebPage::inputMethods):
1124 2010-11-24 Andras Becsi <abecsi@inf.u-szeged.hu>
1126 Reviewed by Kenneth Rohde Christiansen.
1128 Make WebKit2 compile with !ENABLE(INSPECTOR).
1129 https://bugs.webkit.org/show_bug.cgi?id=49973
1131 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1132 (DumpRenderTreeSupportQt::setJavaScriptProfilingEnabled):
1134 2010-11-24 Sheriff Bot <webkit.review.bot@gmail.com>
1136 Unreviewed, rolling out r72650.
1137 http://trac.webkit.org/changeset/72650
1138 https://bugs.webkit.org/show_bug.cgi?id=50010
1140 breaks focus in scenes focus item other than graphicswebiview
1141 (Requested by tronical_ on #webkit).
1143 * Api/qgraphicswebview.cpp:
1144 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
1145 (QGraphicsWebView::QGraphicsWebView):
1146 (QGraphicsWebView::itemChange):
1147 * Api/qgraphicswebview.h:
1148 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1150 2010-11-24 Jan Erik Hanssen <jhanssen@sencha.com>
1152 Reviewed by Kenneth Rohde Christiansen.
1154 [Qt] Html autofocus not working with QGraphicsWebView
1155 https://bugs.webkit.org/show_bug.cgi?id=43169
1157 QGraphicsScene does not propagate Qt::ActivateWindowFocusReason focus
1158 events when there are no active items.
1160 * Api/qgraphicswebview.cpp:
1161 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
1162 (QGraphicsWebView::QGraphicsWebView):
1163 (QGraphicsWebView::eventFilter):
1164 (QGraphicsWebView::itemChange):
1165 * Api/qgraphicswebview.h:
1166 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1167 (FocusPage::FocusPage):
1169 (FocusPage::gotFocus):
1170 (tst_QGraphicsWebView::receivesFocusInOnShow):
1172 2010-11-23 Kenneth Rohde Christiansen <kenneth@webkit.org>
1174 Reviewed by Andreas Kling.
1176 Adapt to setShouldDelegateScrolling not being a real setting anymore.
1177 We now similarily to setUseFixedLayout and setPaintEntireContents
1178 set it on the FrameView wen transitioning to a new page.
1180 * Api/qgraphicswebview.cpp:
1181 (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1182 * WebCoreSupport/FrameLoaderClientQt.cpp:
1183 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1185 2010-11-23 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1187 Reviewed by Kenneth Rohde Christiansen.
1189 [Qt] Fix compilation with !ENABLE(INSPECTOR)
1190 https://bugs.webkit.org/show_bug.cgi?id=49942
1192 Add ENABLE(INSPECTOR) to the Qt specific files following r71981.
1194 * WebCoreSupport/InspectorClientQt.cpp:
1195 (WebCore::InspectorClientQt::inspectorDestroyed):
1196 (WebCore::InspectorClientQt::openInspectorFrontend):
1197 (WebCore::InspectorClientQt::sendMessageToFrontend):
1198 * WebCoreSupport/InspectorServerQt.cpp:
1199 (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
1201 2010-11-23 Simon Hausmann <simon.hausmann@nokia.com>
1203 Reviewed by Andreas Kling.
1205 [Qt] Restore binary compatibility with the QtWebKit 2.1 branch
1207 Re-order the enums by adding new enum entries to the end.
1209 * Api/qwebsettings.h:
1211 2010-11-23 Simon Hausmann <simon.hausmann@nokia.com>
1213 Reviewed by Tor Arne Vestbø.
1215 [Qt] Review the setUserPermission & friends API
1216 https://bugs.webkit.org/show_bug.cgi?id=46810
1218 Renamed requestPermissionFromUser to featurePermissionRequested
1219 and cancelRequestsForPermission to featurePermissionRequestCanceled.
1222 * WebCoreSupport/GeolocationPermissionClientQt.cpp:
1223 (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
1224 (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
1225 * WebCoreSupport/NotificationPresenterClientQt.cpp:
1226 (WebCore::NotificationPresenterClientQt::requestPermission):
1227 (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
1229 2010-11-23 Simon Hausmann <simon.hausmann@nokia.com>
1231 Reviewed by Tor Arne Vestbø.
1233 [Qt] Review the setUserPermission & friends API
1234 https://bugs.webkit.org/show_bug.cgi?id=46810
1236 Rename setUserPermission to setFeaturePermission
1239 (QWebPage::setFeaturePermission):
1241 * tests/qwebpage/tst_qwebpage.cpp:
1242 (JSTestPage::requestPermission):
1244 2010-11-23 Simon Hausmann <simon.hausmann@nokia.com>
1246 Reviewed by Tor Arne Vestbø.
1248 [Qt] Review the setUserPermission & friends API
1249 https://bugs.webkit.org/show_bug.cgi?id=46810
1251 Rename PermissionDomain to Feature, NotificationsPermissionDomain to Notifications
1252 and GeolocationPermissionDomain to Geolocation.
1255 (QWebPage::setUserPermission):
1257 * WebCoreSupport/GeolocationPermissionClientQt.cpp:
1258 (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
1259 (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
1260 * WebCoreSupport/NotificationPresenterClientQt.cpp:
1261 (WebCore::NotificationPresenterClientQt::requestPermission):
1262 (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
1263 * tests/qwebpage/tst_qwebpage.cpp:
1264 (JSTestPage::requestPermission):
1265 (tst_QWebPage::geolocationRequestJS):
1267 2010-11-23 Simon Hausmann <simon.hausmann@nokia.com>
1269 Reviewed by Tor Arne Vestbø.
1271 [Qt] Review the setUserPermission & friends API
1272 https://bugs.webkit.org/show_bug.cgi?id=46810
1274 Add a ByUser suffix to PermissionGranted/Denied. In the future
1275 we can add PermissionGrantedByDefault.
1278 (QWebPage::setUserPermission):
1280 * WebCoreSupport/GeolocationPermissionClientQt.cpp:
1281 (WebCore::GeolocationPermissionClientQt::setPermission):
1282 * tests/qwebpage/tst_qwebpage.cpp:
1283 (JSTestPage::requestPermission):
1285 2010-11-22 Jan Erik Hanssen <jhanssen@sencha.com>
1287 Reviewed by Kenneth Rohde Christiansen.
1289 [Qt] QWebElement::appendInside() doesn't work on head elements
1290 https://bugs.webkit.org/show_bug.cgi?id=49166
1292 Make QWebElement::appendInside() call
1293 Element::deprecatedCreateContextualFragment(), bypassing the check for
1294 the HEAD tag in the HTMLElement implementation of this function.
1296 * Api/qwebelement.cpp:
1297 (QWebElement::appendInside):
1298 * tests/qwebelement/tst_qwebelement.cpp:
1299 (tst_QWebElement::addElementToHead):
1301 2010-11-20 Andreas Kling <kling@webkit.org>
1303 Reviewed by Antonio Gomes.
1305 [Qt] Dragging a selection should use a rendering of the selection as "cursor" for the drag
1306 https://bugs.webkit.org/show_bug.cgi?id=49870
1308 * WebCoreSupport/DragClientQt.cpp:
1309 (WebCore::DragClientQt::startDrag): Pass the DragImage to QDrag::setPixmap()
1311 2010-11-20 Sam Magnuson <smagnuso@gmail.com>
1313 Reviewed by Andreas Kling.
1315 [Qt] crash when attempting to add a JS object
1316 https://bugs.webkit.org/show_bug.cgi?id=49287
1318 * Api/qwebframe.cpp:
1319 (QWebFrame::addToJavaScriptWindowObject):
1321 Test: LayoutTests/fast/frames/sandboxed-iframe-plugins.html
1323 2010-11-20 Sheriff Bot <webkit.review.bot@gmail.com>
1325 Unreviewed, rolling out r72471.
1326 http://trac.webkit.org/changeset/72471
1327 https://bugs.webkit.org/show_bug.cgi?id=49865
1329 broke two IME tests on Qt (Requested by kling on #webkit).
1332 (QWebPagePrivate::inputMethodEvent):
1333 * tests/qwebpage/tst_qwebpage.cpp:
1334 (tst_QWebPage::inputMethods):
1336 2010-11-19 Kristian Amlie <kristian.amlie@nokia.com>
1338 Reviewed by Andreas Kling.
1340 Fixed handling of QInputMethodEvents with nonzero replacementLength.
1342 These types of events replace text that is already in the widget, but
1343 WebKit did not check for replacementLength at all.
1345 Also made sure that the preeditString is always respected, even if
1346 there is committed text. This is how QLineEdit does it.
1348 https://bugs.webkit.org/show_bug.cgi?id=49787
1351 (QWebPagePrivate::inputMethodEvent):
1352 * tests/qwebpage/tst_qwebpage.cpp:
1353 (tst_QWebPage::inputMethods):
1355 2010-11-19 Benjamin Poulain <benjamin.poulain@nokia.com>
1357 Reviewed by Kenneth Rohde Christiansen.
1359 [Qt] Transition and animation do not work with QWebView anymore
1360 https://bugs.webkit.org/show_bug.cgi?id=49797
1362 Accelerated compositing should not be enabled on QWebView without
1365 * WebCoreSupport/PageClientQt.h:
1366 (WebCore::PageClientQWidget::allowsAcceleratedCompositing):
1368 2010-11-19 Yi Shen <yi.4.shen@nokia.com>
1370 Reviewed by Laszlo Gombos.
1372 [Qt] Memory leak in QWebInspector
1373 https://bugs.webkit.org/show_bug.cgi?id=49765
1375 Delete QWebInspectorPrivate in ~QWebInspector()
1377 * Api/qwebinspector.cpp:
1378 (QWebInspector::~QWebInspector):
1380 2010-11-19 Sam Magnuson <smagnuso@gmail.com>
1382 Reviewed by Andreas Kling.
1384 [Qt] Compile with QT_NO_UNDOCOMMAND
1385 https://bugs.webkit.org/show_bug.cgi?id=49752
1387 * WebCoreSupport/EditCommandQt.cpp:
1388 (EditCommandQt::EditCommandQt):
1389 * WebCoreSupport/EditCommandQt.h:
1391 2010-11-19 Yi Shen <yi.4.shen@nokia.com>
1393 Reviewed by Andreas Kling.
1395 https://bugs.webkit.org/show_bug.cgi?id=49200
1396 [Qt] bugs in Composition mode for QWebPage::inputMethodEvent & inputMethodQuery()
1398 Make QWebPage work as following when editor is in composition mode:
1399 1. anchor position and cursor position are the same and always >= 0
1400 2. current selection is always null
1403 (QWebPagePrivate::inputMethodEvent):
1404 (QWebPage::inputMethodQuery):
1405 * tests/qwebpage/tst_qwebpage.cpp:
1406 (tst_QWebPage::inputMethods):
1408 2010-11-18 Gavin Barraclough <barraclough@apple.com>
1410 Build fix - update error messages folllowing r72360.
1412 * tests/qwebframe/tst_qwebframe.cpp:
1414 2010-11-12 Luiz Agostini <luiz.agostini@openbossa.org>
1416 Reviewed by Andreas Kling.
1418 [Qt] Static platform plugin support
1419 https://bugs.webkit.org/show_bug.cgi?id=49470
1421 Adding support for statically linked platform plugins.
1423 * WebCoreSupport/QtPlatformPlugin.cpp:
1424 (WebCore::QtPlatformPlugin::loadStaticallyLinkedPlugin):
1425 (WebCore::QtPlatformPlugin::plugin):
1426 * WebCoreSupport/QtPlatformPlugin.h:
1428 2010-11-17 Andreas Kling <kling@webkit.org>
1430 Reviewed by Kenneth Rohde Christiansen.
1432 Reuse the size of the actualVisibleContentRect when loading a new page
1433 or navigating session history.
1435 * WebCoreSupport/FrameLoaderClientQt.cpp:
1436 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1438 2010-11-17 Dimitri Glazkov <dglazkov@chromium.org>
1440 Reviewed by Darin Adler.
1442 Converge means of querying a parent node into one way, which is Node::parentNode.
1443 https://bugs.webkit.org/show_bug.cgi?id=49686
1445 * Api/qwebelement.cpp:
1446 (QWebElement::prependOutside): Changed to use parentNode.
1447 (QWebElement::appendOutside): Ditto.
1448 (QWebElement::encloseContentsWith): Ditto.
1449 (QWebElement::encloseWith): Ditto.
1451 2010-11-16 Simon Hausmann <simon.hausmann@nokia.com>
1453 Reviewed by Andreas Kling.
1455 [Qt] Remove synchronous QWebPage::checkPermissions signal
1456 https://bugs.webkit.org/show_bug.cgi?id=46810
1458 As decided in the API review, we remove this signal and replace its only use currently
1459 with cached credentials.
1462 (QWebPage::setUserPermission): Pass the WebCore frame instead of the QWebFrame.
1464 * WebCoreSupport/NotificationPresenterClientQt.cpp:
1465 (WebCore::NotificationPresenterClientQt::checkPermission): Replaced explicit
1466 signal emission with hash lookup of previously granted permission (or not).
1467 (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission): Remove
1468 any previously cached/granted permission for the given script execution context.
1469 (WebCore::NotificationPresenterClientQt::allowNotificationForFrame): Do not
1470 only serve pending permission requests but before calling the JS callbacks, remember
1471 the permission for subsequent synchronous checkPermission() calls.
1472 * WebCoreSupport/NotificationPresenterClientQt.h: Add cache for permissions.
1474 2010-11-15 Gavin Barraclough <barraclough@apple.com>
1476 Reviewed by NOBODY build fix.
1478 Fix test broken by earlier patch.
1480 * tests/qwebframe/tst_qwebframe.cpp:
1482 2010-11-15 Yi Shen <yi.4.shen@nokia.com>
1484 Reviewed by Andreas Kling.
1486 [Qt] ZoomTextOnly doesn't work
1487 https://bugs.webkit.org/show_bug.cgi?id=49568
1489 Check QWebSettings::ZoomTextOnly attribute before applying zoom
1491 * Api/qwebframe.cpp:
1492 (QWebFrame::textSizeMultiplier):
1493 (QWebFrame::setZoomFactor):
1494 (QWebFrame::zoomFactor):
1495 * Api/qwebframe_p.h:
1496 (QWebFramePrivate::QWebFramePrivate):
1498 2010-11-14 Andreas Kling <kling@webkit.org>
1500 Reviewed by Antonio Gomes.
1502 REGRESSION(r71895): API test javaScriptWindowObjectCleared fails
1503 https://bugs.webkit.org/show_bug.cgi?id=49466
1505 As of r71895 empty inline scripts are no longer executed and so
1506 the javaScriptWindowObjectCleared() signal is no longer triggered
1507 by <script></script>.
1509 * tests/qwebframe/tst_qwebframe.cpp:
1511 2010-11-12 Jacob Dinu <dinu.jacob@nokia.com>
1513 Reviewed by Andreas Kling.
1515 [Qt] Update .def file for Symbian
1516 https://bugs.webkit.org/show_bug.cgi?id=49456
1518 Added missing symbols from revisions r69825, r70470, r71806
1520 * symbian/eabi/QtWebKitu.def:
1522 2010-11-12 Benjamin Poulain <benjamin.poulain@nokia.com>
1524 Reviewed by Andreas Kling.
1526 [Qt] Need to implement WebKit::pluginWillHandleLoadError for WebKit2
1527 https://bugs.webkit.org/show_bug.cgi?id=48764
1529 Add the missing error.
1531 * WebCoreSupport/FrameLoaderClientQt.cpp:
1532 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
1534 2010-11-11 Yi Shen <yi.4.shen@nokia.com>
1536 Reviewed by Andreas Kling.
1538 [Qt] QWebScriptWorld::world() may crash
1539 https://bugs.webkit.org/show_bug.cgi?id=49342
1541 * Api/qwebscriptworld.cpp:
1542 (QWebScriptWorld::world):
1544 2010-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
1546 Reviewed by Andreas Kling.
1548 [Qt] Add an API for overriding the actual visible content rect in WebCore
1549 https://bugs.webkit.org/show_bug.cgi?id=49373
1552 (QWebPage::setActualVisibleContentRect):
1555 2010-11-11 Andreas Kling <kling@webkit.org>
1557 Reviewed by Kenneth Rohde Christiansen.
1559 FrameView: Don't clip to visibleContentRect in paintEntireContents mode
1560 https://bugs.webkit.org/show_bug.cgi?id=49375
1562 Use paintEntireContents in combination with tiling, allowing to
1563 actually set visibleContentRect to something different from
1564 the actual contents size.
1566 * Api/qgraphicswebview.cpp:
1567 (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1568 * WebCoreSupport/FrameLoaderClientQt.cpp:
1569 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1571 2010-11-10 Sheriff Bot <webkit.review.bot@gmail.com>
1573 Unreviewed, rolling out r71733.
1574 http://trac.webkit.org/changeset/71733
1575 https://bugs.webkit.org/show_bug.cgi?id=49319
1577 made qt bot crashy and sad (Requested by kling on #webkit).
1579 * Api/qgraphicswebview.cpp:
1580 (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1581 * WebCoreSupport/FrameLoaderClientQt.cpp:
1582 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1584 2010-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
1586 Reviewed by Andreas Kling.
1588 Use paintEntireContents in combination with tiling, allowing to
1589 actually set visibleContentRect to something different from
1590 the actual contents size.
1592 * Api/qgraphicswebview.cpp:
1593 (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1594 * WebCoreSupport/FrameLoaderClientQt.cpp:
1595 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1597 2010-11-08 Benjamin Poulain <benjamin.poulain@nokia.com>
1599 Reviewed by Andreas Kling.
1601 [Qt] build error in WebKit/qt/Api/qwebpage.cpp in Qt 4.7.0
1602 https://bugs.webkit.org/show_bug.cgi?id=47427
1604 Add a missing guard in order to be able to compile when
1605 ENABLE(TOUCH_EVENTS) is not defined.
1608 (QWebPagePrivate::touchEvent):
1610 2010-11-08 Alexey Proskuryakov <ap@apple.com>
1612 Reviewed by Darin Adler.
1614 https://bugs.webkit.org/show_bug.cgi?id=48685
1615 Notify UI process about focused frame
1617 Added an empty implementation of the new ChromeClient method.
1619 * WebCoreSupport/ChromeClientQt.cpp:
1620 (WebCore::ChromeClientQt::focusedNodeChanged): Removed unneeded namespace prefix.
1621 (WebCore::ChromeClientQt::focusedFrameChanged):
1622 * WebCoreSupport/ChromeClientQt.h:
1624 2010-11-08 Noam Rosenthal <noam.rosenthal@nokia.com>
1626 Reviewed by Kenneth Rohde Christiansen.
1628 [Texmap] [Qt] Texture mapper initial implementation
1629 https://bugs.webkit.org/show_bug.cgi?id=47070
1631 Reorganized the textureMapper to be a member of QWebFramePrivate, to help with making
1632 TextureMapper thread-safe.
1634 * Api/qwebframe.cpp:
1635 (QWebFramePrivate::renderCompositedLayers):
1636 * Api/qwebframe_p.h:
1637 * WebCoreSupport/PageClientQt.cpp:
1638 (WebCore::PlatformLayerProxyQt::setTextureMapper):
1639 (WebCore::PlatformLayerProxyQt::textureMapper):
1640 (WebCore::PlatformLayerProxyQWidget::PlatformLayerProxyQWidget):
1641 (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsObject):
1643 2010-11-07 Adam Barth <abarth@webkit.org>
1645 Reviewed by Eric Seidel.
1647 Rename Cache to MemoryCache
1648 https://bugs.webkit.org/show_bug.cgi?id=49159
1651 * Api/qwebsettings.cpp:
1653 2010-11-07 Chang Shu <chang.shu@nokia.com>
1655 Reviewed by Antonio Gomes.
1657 Add a helper function to avoid duplicated code.
1658 https://bugs.webkit.org/show_bug.cgi?id=49085
1660 * WebCoreSupport/EditorClientQt.cpp:
1661 (WebCore::EditorClientQt::handleKeyboardEvent):
1663 2010-11-05 Chris Marrin <cmarrin@apple.com>
1665 Reviewed by Simon Fraser.
1667 Move resumeAnimations/suspendAnimations from Frame to AnimationController.
1668 https://bugs.webkit.org/show_bug.cgi?id=49073
1670 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1671 (DumpRenderTreeSupportQt::suspendAnimations):
1672 (DumpRenderTreeSupportQt::resumeAnimations):
1674 2010-11-03 Antonio Gomes <tonikitoo@webkit.org>, Andre Pedralho <andre.pedralho@gmail.com>
1676 Reviewed by Kenneth Rohde Christiansen and Antti Koivisto.
1678 [Qt] Making effective use of nodesFromRect.
1679 https://bugs.webkit.org/show_bug.cgi?id=44089
1681 Patch adds a helper class (named TouchAdjuster) to improve tap actions
1682 on mobile touch devices. TouchAdjuster makes use of the newly added rect
1683 based hit test extension through the Document::nodesFromRect method.
1684 Given a rectangle as input, nodesFromRect returns a z-index ordered list
1685 of nodes whose boundaries intersect the rectangle.
1687 Basically the TouchAdjuster class intercepts the QGraphicsSceneMouseEvent
1688 passed to both QWebPagePrivate::mouse{Press,Release}Event methods before
1689 they are passed down to WebCore. The goal is to infer the target click position.
1690 For that, a rectangle is built up using the event position as a center point and
1691 expanding it based on the values and directions set in the Platform Plugin
1692 QWebTouchModifier::hitTestPadding.
1694 TouchAdjuster iterates over the list of nodes returned by nodesFromRect and
1695 picks the clickable one that has the largest intersection area with the hit
1696 test rectangle. The target position is then the center point of this intersection
1699 In case of no clickable node intersects the hit test area, the click position
1702 TouchAdjuster is *only* working for QGraphicsWebView based views.
1705 (QWebPagePrivate::mousePressEvent):
1706 (QWebPagePrivate::mouseReleaseEvent):
1707 (QWebPagePrivate::adjustPointForClicking):
1708 (QWebPagePrivate::TouchAdjuster::TouchAdjuster):
1709 (QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch):
1710 (isClickableElement):
1712 (isValidFrameOwner):
1716 2010-10-20 Chang Shu <chang.shu@nokia.com>, Antonio Gomes <tonikitoo@webkit.org>
1718 Reviewed by Simon Fraser.
1720 [Qt] Makes <input type=text> and <textarea> functional with
1721 Spatial Navigation enabled. Before this patch, the focus cannot
1722 move away from input box once it is in. This patch allows focus
1723 move to neighbor nodes when the caret reaches the edge of the texts.
1724 This patch does not support yet cases where the focused <input>
1725 has a JS handler for the arrow keys.
1726 https://bugs.webkit.org/show_bug.cgi?id=37153
1728 * WebCoreSupport/EditorClientQt.cpp:
1729 (WebCore::EditorClientQt::handleKeyboardEvent):
1731 2010-11-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
1733 Reviewed by David Hyatt.
1735 Delegate scrolling via a separate method
1736 https://bugs.webkit.org/show_bug.cgi?id=48988
1738 Implement delegatedScrollRequested and make it emit the
1739 scrollRequested signal for Qt.
1741 * WebCoreSupport/ChromeClientQt.cpp:
1742 (WebCore::ChromeClientQt::delegatedScrollRequested):
1743 * WebCoreSupport/ChromeClientQt.h:
1745 2010-11-04 Robert Hogan <robert@webkit.org>
1747 Reviewed by Andreas Kling.
1749 [Qt] Clarify expected return values of innerXml(), outerXml()
1751 If you put HTML in (e.g. using setHTML()) you will get HTML out,
1752 even if you marked it up as XML.
1754 https://bugs.webkit.org/show_bug.cgi?id=44876
1756 * Api/qwebelement.cpp:
1758 2010-11-03 Andre Pedralho <andre.pedralho@gmail.com>
1760 Reviewed by Kenneth Rohde Christiansen.
1762 Using the Platform Plugin to define the default values for the padding of HitTestResult.
1763 https://bugs.webkit.org/show_bug.cgi?id=48450
1765 * Api/qwebkitplatformplugin.h:
1766 (QWebTouchModifier::~QWebTouchModifier):
1767 * WebCoreSupport/QtPlatformPlugin.cpp:
1768 (WebCore::QtPlatformPlugin::createTouchModifier):
1769 * WebCoreSupport/QtPlatformPlugin.h:
1770 * examples/platformplugin/WebPlugin.cpp:
1771 (WebPlugin::supportsExtension):
1772 (WebPlugin::createExtension):
1773 * examples/platformplugin/WebPlugin.h:
1774 (TouchModifier::hitTestPaddingForTouch):
1775 * examples/platformplugin/qwebkitplatformplugin.h:
1776 (QWebTouchModifier::~QWebTouchModifier):
1778 2010-11-03 Andreas Kling <kling@webkit.org>
1780 Reviewed by Kenneth Rohde Christiansen.
1782 [Qt] QGWV: Keep the scrolling delegation intact when switching pages
1784 * Api/qgraphicswebview.cpp:
1785 (QGraphicsWebViewPrivate::updateResizesToContentsForPage): Turn on/off
1786 scrolling delegation depending on the resizeToContents mode.
1787 (QGraphicsWebViewPrivate::detachCurrentPage): Turn off scrolling delegation.
1788 (QGraphicsWebView::setResizesToContents):
1790 2010-11-03 Kenneth Rohde Christiansen <kenneth@webkit.org>
1792 Reviewed by Andreas Kling.
1794 Make it possible to delegate scrolling to the UI
1795 https://bugs.webkit.org/show_bug.cgi?id=48907
1797 Enable scrolling delegation when setResizesToContents is active.
1799 * Api/qgraphicswebview.cpp:
1800 (QGraphicsWebView::setResizesToContents):
1802 2010-11-03 Daniel Bates <dbates@rim.com>
1804 For unnamed frames, window.name returns a generated name
1805 https://bugs.webkit.org/show_bug.cgi?id=6751
1809 Substitute FrameTree::uniqueName() for FrameTree::name() in the Qt port.
1811 * Api/qwebframe.cpp:
1812 (QWebFrame::frameName):
1814 2010-11-02 Noam Rosenthal <noam.rosenthal@nokia.com>
1816 Reviewed by Kenneth Rohde Christiansen.
1818 Some refactor for texmap to enable WebKit2: remove globals, and allow TextureMapper to exist without a GraphicsContext.
1819 This will allow rendering the TextureMapperNode tree without an active QPainter, into the current GL context.
1820 Most of the changes simply move the globas in TextureMapperGL into members of that class.
1822 [Texmap] [Qt] Texture mapper initial implementation
1823 https://bugs.webkit.org/show_bug.cgi?id=47070
1825 * Api/qwebframe.cpp:
1826 (QWebFramePrivate::renderFromTiledBackingStore):
1827 (QWebFramePrivate::renderCompositedLayers):
1828 (QWebFramePrivate::renderRelativeCoords):
1829 * Api/qwebframe_p.h:
1831 2010-11-01 Brady Eidson <beidson@apple.com>
1833 Reviewed by Anders Carlsson.
1835 <rdar://problem/7660547> and https://bugs.webkit.org/show_bug.cgi?id=48699
1836 Context menu support for WebKit 2.
1838 * WebCoreSupport/ChromeClientQt.h:
1839 (WebCore::ChromeClientQt::showContextMenu):
1841 2010-10-31 Robert Hogan <robert@webkit.org>
1843 Reviewed by Antonio Gomes.
1845 [Qt] Support nodesFromRect in DRT
1847 https://bugs.webkit.org/show_bug.cgi?id=48716
1849 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1850 (DumpRenderTreeSupportQt::nodesFromRect):
1851 * WebCoreSupport/DumpRenderTreeSupportQt.h:
1853 2010-10-31 Andreas Kling <kling@webkit.org>
1855 Reviewed by Kenneth Rohde Christiansen.
1857 [Qt] Short-circuit QWebPage::selectedText() if frame has no selection
1858 https://bugs.webkit.org/show_bug.cgi?id=48736
1860 Do an early return if the selection is empty.
1862 No new tests, this is covered by tst_QWebPage::findText().
1865 (QWebPage::selectedText):
1867 2010-10-30 Andreas Kling <kling@webkit.org>
1869 Reviewed by Antonio Gomes.
1871 [Qt] IM: Don't manipulate selection via RenderTextControl
1872 https://bugs.webkit.org/show_bug.cgi?id=48700
1874 Go directly through the Frame's SelectionController instead.
1876 No new tests, this is covered by tst_QWebPage::inputMethods.
1879 (QWebPagePrivate::inputMethodEvent):
1880 (QWebPage::inputMethodQuery):
1882 2010-10-29 Daniel Bates <dbates@rim.com>
1884 No review, rolling out 70971.
1885 http://trac.webkit.org/changeset/70971
1886 https://bugs.webkit.org/show_bug.cgi?id=6751
1888 Rolling out changeset 70971 <http://trac.webkit.org/changeset/70971> since
1889 it caused layout test failures on all bots. In particular, the
1890 child count in a generated frame name differs after this patch. We need
1891 to look into this further.
1893 * Api/qwebframe.cpp:
1894 (QWebFrame::frameName):
1896 2010-10-28 Antonio Gomes <agomes@rim.com>
1898 Reviewed by Ojan Vafai.
1900 Needs a "LinuxEditingBehavior", perhaps with a better name
1901 https://bugs.webkit.org/show_bug.cgi?id=36627
1903 Adding support to Qt's DRTSupport class to test the newly introduced Unix editing behavior.
1905 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1906 (DumpRenderTreeSupportQt::setEditingBehavior):
1908 2010-10-29 Daniel Bates <dbates@rim.com>
1910 Reviewed by Adam Barth.
1912 For unnamed frames, window.name returns a generated name
1913 https://bugs.webkit.org/show_bug.cgi?id=6751
1915 Modified Qt-port to use FrameTree::uniqueName().
1917 * Api/qwebframe.cpp:
1918 (QWebFrame::frameName):
1920 2010-10-29 Andreas Kling <kling@webkit.org>
1922 Reviewed by Ariya Hidayat.
1924 [Qt] QWebPage's InputMethod event handling calls ShortcutOverride handler too
1925 https://bugs.webkit.org/show_bug.cgi?id=48692
1928 (QWebPage::event): Add missing break statement.
1930 2010-10-29 Ryosuke Niwa <rniwa@webkit.org>
1932 Reviewed by Darin Adler.
1934 Remove RenderTextControl::setSelectionRange
1935 https://bugs.webkit.org/show_bug.cgi?id=47870
1937 Converted RenderTextControll::setSelectionRange to a global function.
1940 (QWebPagePrivate::inputMethodEvent): Calls setSelectionRange.
1942 2010-10-29 Darin Adler <darin@apple.com>
1944 Reviewed by Sam Weinig.
1946 Change BackForwardList clients to use BackForwardListImpl to prepare for further refactoring
1947 https://bugs.webkit.org/show_bug.cgi?id=48574
1949 * Api/qwebhistory.cpp:
1950 (QWebHistory::clear):
1951 * Api/qwebhistory_p.h:
1953 (QWebPagePrivate::QWebPagePrivate):
1954 Use BackForwardListImpl.
1956 2010-10-29 Alexey Proskuryakov <ap@apple.com>
1958 Reviewed by Darin Adler.
1960 https://bugs.webkit.org/show_bug.cgi?id=48576
1961 Let WebKit2 client know when a frame is a frameset
1963 Added a blank implementation of the new FrameLoaderClient method.
1965 * WebCoreSupport/FrameLoaderClientQt.h:
1966 * WebCoreSupport/FrameLoaderClientQt.cpp:
1967 (WebCore::FrameLoaderClientQt::dispatchDidBecomeFrameset):
1969 2010-10-29 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1971 Reviewed by Andreas Kling.
1973 [Qt] Fix tst_QWebFrame on XVFB.
1974 https://bugs.webkit.org/show_bug.cgi?id=48637
1976 These tests relied on a window manager to activate the window.
1979 - tst_QWebFrame::popupFocus()
1980 - tst_QwebFrame::inputFieldFocus()
1982 * tests/qwebframe/tst_qwebframe.cpp:
1984 2010-10-28 Noam Rosenthal <noam.rosenthal@nokia.com>
1986 Reviewed by Ariya Hidayat.
1988 [Texmap] [Qt] Texture mapper initial implementation
1989 https://bugs.webkit.org/show_bug.cgi?id=47070
1993 * WebCoreSupport/PageClientQt.cpp:
1994 (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsObject):
1995 (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
1996 (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
1997 * WebCoreSupport/PageClientQt.h:
1999 2010-10-28 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2001 Reviewed by Andreas Kling.
2003 [Qt] QWebElement: Don't retrieve CSS rules through DOMWindow.
2004 https://bugs.webkit.org/show_bug.cgi?id=48519
2006 JavaScript is prevented from retrieving cross-domain CSS rules since r70335.
2007 This patch allow QWebElement to retrive style without this limitation
2008 by asking the Document directly instead of going through DOMWindow.
2011 - tst_QWebFrame::setHtmlWithResource()
2012 - tst_QWebElement::style()
2014 * Api/qwebelement.cpp:
2015 (QWebElement::styleProperty):
2017 2010-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
2019 Reviewed by Andreas Kling.
2021 Make Qt viewportAttributesForSize not assert on (0, 0) size
2022 https://bugs.webkit.org/show_bug.cgi?id=48524
2024 We now return an invalid (isValid() == false) ViewportAttributes
2025 instance when the supplied size is (0, 0).
2028 (QWebPage::viewportAttributesForSize):
2030 2010-10-27 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2032 Reviewed by Kenneth Rohde Christiansen.
2034 [Qt] Fix tst_QWebFrame::popupFocus().
2035 https://bugs.webkit.org/show_bug.cgi?id=48432
2037 - Call setFocus() before show() to work around a but in Qt.
2038 - Remove the check on combo at the end since hidePopup() leads
2039 indirectly to its destruction and segfault.
2041 * tests/qwebframe/tst_qwebframe.cpp:
2043 2010-10-26 Jenn Braithwaite <jennb@chromium.org>
2045 Reviewed by Dmitry Titov.
2047 Resource tracking failure when trying to move a frame between documents
2048 https://bugs.webkit.org/show_bug.cgi?id=44713
2050 * WebCoreSupport/FrameLoaderClientQt.cpp:
2051 (WebCore::FrameLoaderClientQt::transferLoadingResourceFromPage):
2053 * WebCoreSupport/FrameLoaderClientQt.h:
2055 2010-10-26 Yi Shen <yi.4.shen@nokia.com>
2057 Reviewed by Andreas Kling.
2059 [Qt] Skipping popup focus test for symbian
2060 https://bugs.webkit.org/show_bug.cgi?id=48324
2062 * tests/qwebframe/tst_qwebframe.cpp:
2064 2010-10-26 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2066 Reviewed by Andreas Kling.
2068 [Qt] Unit tests: setHtml("data:text/html,...") -> load(QUrl("data:text/html,..."))
2069 https://bugs.webkit.org/show_bug.cgi?id=48319
2071 These tests were failing since the new HTML parser.
2072 This patch removes the content type from the error page as well.
2074 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2075 (tst_QGraphicsWebView::crashOnViewlessWebPages):
2076 * tests/qwebelement/tst_qwebelement.cpp:
2077 (tst_QWebElement::frame):
2078 * tests/qwebpage/tst_qwebpage.cpp:
2079 (tst_QWebPage::loadFinished):
2080 (ErrorPage::extension):
2081 (tst_QWebPage::errorPageExtension):
2082 (tst_QWebPage::errorPageExtensionInIFrames):
2083 (tst_QWebPage::errorPageExtensionInFrameset):
2085 2010-10-25 No'am Rosenthal <noam.rosenthal@nokia.com>
2087 Reviewed by Kenneth Rohde Christiansen.
2089 [Texmap] [Qt] Texture mapper initial implementation
2090 https://bugs.webkit.org/show_bug.cgi?id=47070
2092 Glue layer (WebCoreSupport) changes to allow connecting TextureMapper to a Qt PageClient, i.e.
2093 a QWebView or a QGraphicsWebView. This enables the new type, TextureMapperPlatformLayer, to be recognized both by
2094 the compositor and by the page client.
2095 Note that this is temporarily an opt-in, under USE(TEXTURE_MAPPER)
2098 * Api/qwebframe_p.h:
2099 (QWebFramePrivate::QWebFramePrivate):
2101 (QWebPage::setView):
2102 * WebCoreSupport/ChromeClientQt.cpp:
2103 (WebCore::ChromeClientQt::attachRootGraphicsLayer):
2104 * WebCoreSupport/PageClientQt.cpp:
2105 (WebCore::PlatformLayerProxyQt::PlatformLayerProxyQt):
2106 (WebCore::PlatformLayerProxyQt::~PlatformLayerProxyQt):
2107 (WebCore::PlatformLayerProxyQt::setSizeChanged):
2108 (WebCore::PlatformLayerProxyQWidget::PlatformLayerProxyQWidget):
2109 (WebCore::PlatformLayerProxyQWidget::eventFilter):
2110 (WebCore::PlatformLayerProxyQWidget::setNeedsDisplay):
2111 (WebCore::PlatformLayerProxyQWidget::setNeedsDisplayInRect):
2112 (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsWidget):
2113 (WebCore::PlatformLayerProxyQGraphicsObject::setNeedsDisplay):
2114 (WebCore::PlatformLayerProxyQGraphicsObject::setNeedsDisplayInRect):
2115 (WebCore::PageClientQWidget::setRootGraphicsLayer):
2116 (WebCore::PageClientQWidget::markForSync):
2117 (WebCore::PageClientQWidget::syncLayers):
2118 (WebCore::PageClientQGraphicsWidget::updateCompositingScrollPosition):
2119 (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
2120 (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
2121 * WebCoreSupport/PageClientQt.h:
2122 (WebCore::PageClientQWidget::PageClientQWidget):
2123 (WebCore::PageClientQWidget::allowsAcceleratedCompositing):
2124 (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
2126 2010-10-25 Johnny Ding <jnd@chromium.org>
2128 Reviewed by Tony Chang.
2130 Dump the gesture status of frame in frame load callbacks in DumpRenderTree
2131 by adding a new method dumpUserGestureInFrameLoadCallbacks.
2132 Now only dump the gesture status in "DidStartProvisionalLoad" callback.
2133 https://bugs.webkit.org/show_bug.cgi?id=47849
2135 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2136 (DumpRenderTreeSupportQt::dumpUserGestureInFrameLoader):
2137 * WebCoreSupport/DumpRenderTreeSupportQt.h:
2138 * WebCoreSupport/FrameLoaderClientQt.cpp:
2139 (drtPrintFrameUserGestureStatus):
2140 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
2141 (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
2142 (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
2143 (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
2144 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2145 * WebCoreSupport/FrameLoaderClientQt.h:
2147 2010-10-22 Sam Weinig <sam@webkit.org>
2149 Reviewed by Anders Carlsson.
2151 WebKit2 needs to pass the current event modifier flags when requesting a new window
2152 https://bugs.webkit.org/show_bug.cgi?id=48140
2156 * WebCoreSupport/ChromeClientQt.cpp:
2157 (WebCore::ChromeClientQt::createWindow):
2158 * WebCoreSupport/ChromeClientQt.h:
2159 * WebCoreSupport/FrameLoaderClientQt.cpp:
2160 (WebCore::FrameLoaderClientQt::dispatchCreatePage):
2161 * WebCoreSupport/FrameLoaderClientQt.h:
2162 Add NavigationAction parameter.
2164 2010-10-22 Yi Shen <yi.4.shen@nokia.com>
2166 Reviewed by Andreas Kling.
2168 [Qt] InspectorClientQt crashes when deleting a qwebpage which has an inspector
2169 https://bugs.webkit.org/show_bug.cgi?id=48079
2172 (QWebPagePrivate::~QWebPagePrivate):
2173 (QWebPage::~QWebPage):
2175 2010-10-22 Benjamin Poulain <benjamin.poulain@nokia.com>
2177 Reviewed by Simon Hausmann.
2179 [Qt] All widgets are rendered incorrectly when rendered through a cache
2180 https://bugs.webkit.org/show_bug.cgi?id=47767
2182 Add a new test for rendering with tiling.
2184 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2185 (tst_QGraphicsWebView::widgetsRenderingThroughCache):
2187 2010-10-21 Robert Hogan <robert@webkit.org>
2189 Reviewed by Simon Hausmann.
2191 [Qt] Sending a QInputMethodEvent::Selection event forces the
2192 Editor to go into Composition mode
2194 Improve QWebPage handling of input method events:
2195 - Selections don't trigger entering composition mode.
2196 - Handle multiple selections
2198 Also remove redundant cancellation of composition in tst_qwebpage.
2199 There is no composition in progress at that point.
2201 Finally, move infiniteLoopJS() to the end of the tst_qwebpage unit
2202 tests - so you don't have to wait for it to complete when running
2205 https://bugs.webkit.org/show_bug.cgi?id=39625
2208 (QWebPagePrivate::inputMethodEvent):
2209 (QWebPage::inputMethodQuery):
2210 * tests/qwebpage/tst_qwebpage.cpp:
2211 (tst_QWebPage::inputMethods):
2213 2010-10-20 Luiz Agostini <luiz.agostini@openbossa.org>
2215 Reviewed by Antonio Gomes.
2217 [Qt] Wrong null check in PopupMenuQt
2218 https://bugs.webkit.org/show_bug.cgi?id=47945
2220 Wrong null check in PopupMenuQt.
2222 * WebCoreSupport/PopupMenuQt.cpp:
2223 (WebCore::PopupMenuQt::hide):
2225 2010-10-18 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
2227 Reviewed by Laszlo Gombos.
2229 [Qt] Export QWebPage::ViewportAttributes class.
2230 https://bugs.webkit.org/show_bug.cgi?id=47845
2233 * symbian/eabi/QtWebKitu.def:
2235 2010-10-18 Pavel Feldman <pfeldman@chromium.org>
2237 Reviewed by Simon Fraser.
2239 Web Inspector: [crash] when Inspector Open in CSSStyleSelector::loadPendingImages().
2240 https://bugs.webkit.org/show_bug.cgi?id=46224
2242 * WebCoreSupport/InspectorClientQt.cpp:
2243 (WebCore::InspectorClientQt::sendMessageToFrontend):
2245 2010-10-18 No'am Rosenthal <noam.rosenthal@nokia.com>
2247 Reviewed by Andreas Kling.
2249 [Qt] AC rendering bugs
2251 This fixes a regression that was introduced by making scrolling in accelerated compositing automatic,
2252 which made our explicit function to scroll the compositing layers superfluous, making the scrolling behavior
2253 when graphics layers are present incorrect. The fix simply removes those redundant functions.
2255 https://bugs.webkit.org/show_bug.cgi?id=47571
2257 * WebCoreSupport/PageClientQt.cpp:
2258 (WebCore::PageClientQGraphicsWidget::scroll):
2259 (WebCore::PageClientQGraphicsWidget::update):
2260 (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
2261 * WebCoreSupport/PageClientQt.h:
2263 2010-10-18 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2265 Reviewed by nobody, build fix.
2267 [Qt] Fix the build with MSVC.
2269 Splitting the condition in two to prevent qmake parentheses issues.
2271 * Api/DerivedSources.pro:
2273 2010-10-18 Yi Shen <yi.4.shen@nokia.com>
2275 Reviewed by Antonio Gomes.
2277 [QT] Unable to load pages on QtTestBrowser after canceling a page load.
2278 https://bugs.webkit.org/show_bug.cgi?id=43827
2281 (QWebPage::triggerAction):
2283 2010-10-15 Qi Zhang <qi.2.zhang@nokia.com>
2285 Reviewed by Andreas Kling.
2287 [Qt] window.close() doesn't work in qt
2288 https://bugs.webkit.org/show_bug.cgi?id=46186
2290 Introduce new attribute in QWebSettings to trigger "setAllowScriptsToCloseWindow"
2292 * Api/qwebsettings.cpp:
2293 (QWebSettingsPrivate::apply):
2294 * Api/qwebsettings.h:
2296 2010-10-15 Andreas Kling <kling@webkit.org>
2298 Reviewed by Kenneth Rohde Christiansen.
2300 [Qt] Unbreak scrolling the ContentsLayer with QWebView
2302 r69777 broke scrolling the contents layer in QWebView by not restoring
2303 the painter clip after painting each part of the dirty region.
2305 * Api/qwebframe.cpp:
2306 (QWebFramePrivate::renderRelativeCoords):
2308 2010-09-27 Dawit Alemayehu <adawit@kde.org>
2310 Reviewed by Andreas Kling.
2312 [Qt] Added functions for obtaining and checking the supported content types.
2313 http://webkit.org/b/37880
2316 (extractContentTypeFromHash):
2317 (extractContentTypeFromPluginVector):
2318 (QWebPage::supportedContentTypes):
2319 (QWebPage::supportsContentType):
2320 * tests/qwebpage/tst_qwebpage.cpp:
2321 (tst_QWebPage::supportedContentType):
2323 2010-10-14 Sheriff Bot <webkit.review.bot@gmail.com>
2325 Unreviewed, rolling out r69795.
2326 http://trac.webkit.org/changeset/69795
2327 https://bugs.webkit.org/show_bug.cgi?id=47687
2329 'See discussion at webkit.org/b/47609' (Requested by mwenge on
2332 * WebCoreSupport/FrameLoaderClientQt.cpp:
2333 (WebCore::FrameLoaderClientQt::canHandleRequest):
2334 (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
2336 2010-10-14 Robert Hogan <robert@webkit.org>
2338 Reviewed by Antonio Gomes.
2340 [Qt] Fix http/tests/misc/redirect-to-external-url.html
2342 Support the test in FrameLoaderClientQt and unskip.
2344 https://bugs.webkit.org/show_bug.cgi?id=47609
2346 * WebCoreSupport/FrameLoaderClientQt.cpp:
2347 (WebCore::FrameLoaderClientQt::canHandleRequest):
2348 (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
2350 2010-10-14 No'am Rosenthal <noam.rosenthal@nokia.com>
2352 Reviewed by Kenneth Rohde Christiansen.
2354 [Texmap] [Qt] Texture mapper initial implementation
2355 https://bugs.webkit.org/show_bug.cgi?id=47070
2357 Allow rendering of accelerated-compositing with TextureMapper, inside a QWebFrame. The frame will render the regular content,
2358 either normally or through tiled backingstore, then let the TextureMapper layer render itself to the active context, and
2359 then render the scrollbar and pan icon. This is different from the current implementation, which uses additional QGraphicsItems for AC
2360 and the scrollbar overlay.
2362 * Api/qgraphicswebview.cpp:
2363 (QGraphicsWebView::paint):
2364 * Api/qwebframe.cpp:
2365 (QWebFramePrivate::renderFromTiledBackingStore):
2366 (QWebFramePrivate::renderRelativeCoords):
2368 2010-10-13 Gavin Barraclough <barraclough@apple.com>
2370 Reviewed by Oliver Hunt.
2372 https://bugs.webkit.org/show_bug.cgi?id=43987
2373 Switch XMLHttpRequest, FileReader, and FileReaderSync to use a Stringbuilder
2374 to construct their internal result string. Remove ScriptString (this is now
2377 * WebCoreSupport/FrameLoaderClientQt.cpp:
2379 2010-10-13 Dinu Jacob <dinu.jacob@nokia.com>
2381 Reviewed by Andreas Kling.
2383 [Qt] Update .def file for Symbian
2384 https://bugs.webkit.org/show_bug.cgi?id=47540
2386 Updated symbols for Symbian - added viewportAttributesForSize and
2387 made viewportConfigurationForSize absent based on the API change in
2390 * symbian/eabi/QtWebKitu.def:
2392 2010-10-12 David Leong <david.leong@nokia.com>
2394 Reviewed by Laszlo Gombos.
2396 [Qt] Enable Netscape plugin metadata caching on Linux
2397 https://bugs.webkit.org/show_bug.cgi?id=46287
2399 QWebSettings::enablePersistentStorage will now store the netscape
2400 plugin cache to QDesktopServices::CacheLocation.
2402 * Api/qwebsettings.cpp:
2403 (QWebSettings::enablePersistentStorage):
2405 2010-10-12 Yael Aharon <yael.aharon@nokia.com>
2407 Reviewed by Antonio Gomes.
2409 [Qt] Editing commands should not be executed on non-editable content.
2410 https://bugs.webkit.org/show_bug.cgi?id=47426
2412 Remove calls to editor()->command() when we are not in editable content.
2413 There is no value in doing that, and in some cases, it prevents scrolling.
2415 * WebCoreSupport/EditorClientQt.cpp:
2416 (WebCore::EditorClientQt::handleKeyboardEvent):
2418 2010-10-08 Hui Huang <hui.2.huang@nokia.com>
2420 Reviewed by Simon Hausmann.
2422 ifdef out code that rewrites Flash Plug-in wmode for Symbian build
2423 https://bugs.webkit.org/show_bug.cgi?id=43484
2425 * WebCoreSupport/FrameLoaderClientQt.cpp:
2426 (WebCore::FrameLoaderClientQt::createPlugin):
2428 2010-10-07 Andreas Kling <kling@webkit.org>
2430 Reviewed by Simon Hausmann.
2432 [Qt] API: ViewportConfiguration => ViewportArguments
2433 https://bugs.webkit.org/show_bug.cgi?id=47325
2436 (QWebPage::ViewportAttributes::ViewportAttributes):
2437 (QWebPage::ViewportAttributes::~ViewportAttributes):
2438 (QWebPage::ViewportAttributes::operator=):
2439 (QWebPage::viewportAttributesForSize):
2442 (QtViewportAttributesPrivate::QtViewportAttributesPrivate):
2444 2010-10-07 Luiz Agostini <luiz.agostini@openbossa.org>
2446 Reviewed by Kenneth Rohde Christiansen.
2448 Fixing viewport meta tag user-scalable handling
2449 https://bugs.webkit.org/show_bug.cgi?id=47330
2451 user-scalable attribute was not considered in viewport meta tag handling.
2454 (QWebPage::viewportConfigurationForSize):
2456 2010-10-05 Diego Gonzalez <diegohcg@webkit.org>
2458 Reviewed by Andreas Kling.
2460 [Qt] Hook up accelerometer data via Qt DeviceMotion
2461 https://bugs.webkit.org/show_bug.cgi?id=47105
2463 Get accelerometer necessary data via Qt mobility library using a
2464 provider class. Enable, also the RotationRate using the current device
2465 orientation provider.
2467 * WebCoreSupport/DeviceMotionClientQt.cpp:
2468 (WebCore::DeviceMotionClientQt::DeviceMotionClientQt):
2469 (WebCore::DeviceMotionClientQt::~DeviceMotionClientQt):
2470 (WebCore::DeviceMotionClientQt::startUpdating):
2471 (WebCore::DeviceMotionClientQt::stopUpdating):
2472 (WebCore::DeviceMotionClientQt::currentDeviceMotion):
2473 (WebCore::DeviceMotionClientQt::changeDeviceMotion):
2474 * WebCoreSupport/DeviceMotionClientQt.h:
2475 * WebCoreSupport/DeviceMotionProviderQt.cpp: Added.
2476 (WebCore::DeviceMotionProviderQt::DeviceMotionProviderQt):
2477 (WebCore::DeviceMotionProviderQt::~DeviceMotionProviderQt):
2478 (WebCore::DeviceMotionProviderQt::start):
2479 (WebCore::DeviceMotionProviderQt::stop):
2480 (WebCore::DeviceMotionProviderQt::filter):
2481 * WebCoreSupport/DeviceMotionProviderQt.h: Added.
2482 (WebCore::DeviceMotionProviderQt::currentDeviceMotion):
2484 2010-10-07 Luiz Agostini <luiz.agostini@openbossa.org>
2486 Reviewed by Kenneth Rohde Christiansen.
2488 Some viewport meta tag api refactoring
2489 https://bugs.webkit.org/show_bug.cgi?id=47334
2491 WebCore::findConfigurationForViewportData renamed to computeViewportAttributes.
2492 WebCore::ViewportAttributes::layoutViewport renamed to layoutSize.
2495 (QWebPage::viewportConfigurationForSize):
2496 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2497 (DumpRenderTreeSupportQt::viewportAsText):
2499 2010-10-07 Keith Kyzivat <keith.kyzivat@nokia.com>
2501 Reviewed by Simon Hausmann.
2503 [Qt] Update .def file for Symbian
2504 https://bugs.webkit.org/show_bug.cgi?id=47336
2505 Fix and re-freeze symbols for symbian - viewportConfigurationForSize
2506 API changed, allowGeolocationRequest removed from API, several
2507 DumpRenderTree support calls added.
2509 * symbian/eabi/QtWebKitu.def:
2511 2010-10-06 Ragner Magalhaes <ragner.magalhaes@openbossa.org>
2513 Reviewed by Antonio Gomes.
2515 [Qt] Duplicated code in QWebPagePrivate
2516 https://bugs.webkit.org/show_bug.cgi?id=47195
2518 Remove duplicated code from QWebPagePrivate class for QGraphicsView and QWidget's mouse events.
2521 (QWebPagePrivate::mouseMoveEvent):
2522 (QWebPagePrivate::mousePressEvent):
2523 (QWebPagePrivate::mouseDoubleClickEvent):
2524 (QWebPagePrivate::mouseTripleClickEvent):
2525 (QWebPagePrivate::mouseReleaseEvent):
2526 (QWebPagePrivate::wheelEvent):
2527 (QWebPagePrivate::dragEnterEvent):
2528 (QWebPagePrivate::dragLeaveEvent):
2529 (QWebPagePrivate::dragMoveEvent):
2530 (QWebPagePrivate::dropEvent):
2533 2010-10-06 Luiz Agostini <luiz.agostini@openbossa.org>
2535 Reviewed by Kenneth Rohde Christiansen.
2537 Renaming WebCore::ViewportConfiguration to WebCore::ViewportAttributes
2538 https://bugs.webkit.org/show_bug.cgi?id=47268
2540 Renaming WebCore::ViewportConfiguration to WebCore::ViewportAttributes
2543 (QWebPage::viewportConfigurationForSize):
2544 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2545 (DumpRenderTreeSupportQt::viewportAsText):
2547 2010-10-05 Andrew Wilson <atwilson@chromium.org>
2549 Reviewed by Andreas Kling.
2551 Notification onclick() events don't act like user gestures
2552 https://bugs.webkit.org/show_bug.cgi?id=47137
2554 * WebCoreSupport/NotificationPresenterClientQt.cpp:
2555 (WebCore::NotificationPresenterClientQt::notificationClicked):
2556 Use UserGestureIndicator to make sure click events are treated like user gestures.
2558 2010-10-05 Robert Hogan <robert@webkit.org>
2560 Reviewed by Andreas Kling.
2562 [Qt] Fix url conversion in QWebHistory
2564 Converting from KURL to WFT::String to QUrl does not
2565 permit proper percent encoding later.
2567 https://bugs.webkit.org/show_bug.cgi?id=47048
2569 * Api/qwebhistory.cpp:
2570 (QWebHistoryItem::originalUrl):
2571 (QWebHistoryItem::url):
2573 2010-10-05 Jakob Petsovits <jpetsovits@rim.com>
2575 Reviewed by Andreas Kling.
2577 [Qt] Make build work with QT_NO_CURSOR
2578 https://bugs.webkit.org/show_bug.cgi?id=46097
2580 Add a missing semicolon.
2582 * WebCoreSupport/ChromeClientQt.cpp:
2583 (WebCore::ChromeClientQt::setCursor):
2585 2010-10-05 Simon Hausmann <simon.hausmann@nokia.com>
2587 Unreviewed build fix.
2589 [Symbian] Fix build issue due to gaps in ordinals in the def file
2591 Restore previously removed symbols and mark them absent instead. We must
2592 not remove symbols from this file, because it breaks binary compatibility
2593 (when re-assigning the ordinals of the following symbols) or it causes build
2594 breakage when instead having a gap in the ordinal sequence. Instead removing
2595 a symbol is done by marking it as absent.
2597 * symbian/eabi/QtWebKitu.def:
2599 2010-10-04 Adam Barth <abarth@webkit.org>
2601 Reviewed by Darin Adler.
2603 Rename RedirectScheduler to NavigationScheduler
2604 https://bugs.webkit.org/show_bug.cgi?id=47037
2606 Update for name change.
2609 (QWebPage::triggerAction):
2611 2010-10-04 Diego Gonzalez <diegohcg@webkit.org>
2613 Reviewed by Kenneth Rohde Christiansen.
2615 [Qt] Hook up DeviceOrientation data for Qt support
2616 https://bugs.webkit.org/show_bug.cgi?id=47052
2618 Get DeviceOrientation necessary data via Qt mobility library
2619 using a provider class.
2621 * WebCoreSupport/DeviceOrientationClientQt.cpp:
2622 (WebCore::DeviceOrientationClientQt::DeviceOrientationClientQt):
2623 (WebCore::DeviceOrientationClientQt::~DeviceOrientationClientQt):
2624 (WebCore::DeviceOrientationClientQt::startUpdating):
2625 (WebCore::DeviceOrientationClientQt::stopUpdating):
2626 (WebCore::DeviceOrientationClientQt::lastOrientation):
2627 (WebCore::DeviceOrientationClientQt::changeDeviceOrientation):
2628 * WebCoreSupport/DeviceOrientationClientQt.h:
2629 * WebCoreSupport/DeviceOrientationProviderQt.cpp: Added.
2630 (WebCore::DeviceOrientationProviderQt::DeviceOrientationProviderQt):
2631 (WebCore::DeviceOrientationProviderQt::~DeviceOrientationProviderQt):
2632 (WebCore::DeviceOrientationProviderQt::start):
2633 (WebCore::DeviceOrientationProviderQt::stop):
2634 (WebCore::DeviceOrientationProviderQt::filter):
2635 * WebCoreSupport/DeviceOrientationProviderQt.h: Added.
2636 (WebCore::DeviceOrientationProviderQt::isActive):
2637 (WebCore::DeviceOrientationProviderQt::orientation):
2638 (WebCore::DeviceOrientationProviderQt::hasAlpha):
2640 2010-09-28 Luiz Agostini <luiz.agostini@openbossa.org>
2642 Reviewed by Kenneth Rohde Christiansen.
2644 Viewport data change notifications
2645 https://bugs.webkit.org/show_bug.cgi?id=46755
2647 Regarding viewport meta tags, what matters for browser developers is to know when the viewport data has
2648 changed and its current value. Viewport data belongs to the document, but it is useful to keep the current
2649 viewport data in Page as a reference, to be able to send notifications only when the current viewport
2652 * Api/qwebframe.cpp:
2653 * Api/qwebframe_p.h:
2655 (QWebPagePrivate::viewportArguments):
2656 (QWebPage::viewportConfigurationForSize):
2658 * WebCoreSupport/ChromeClientQt.cpp:
2659 (WebCore::ChromeClientQt::viewportDataChanged):
2660 * WebCoreSupport/ChromeClientQt.h:
2661 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2662 (DumpRenderTreeSupportQt::viewportAsText):
2664 2010-10-04 Simon Hausmann <simon.hausmann@nokia.com>
2666 Rubber-stamped by Tor Arne Vestbø.
2668 [Qt] Fix platform plugin support after r68128
2670 Replaced the qobject_cast from the QObject derived extension to a
2671 static_cast. qobject_cast works by comparing pointers to meta-object
2672 instances, of which there are two each: one compiled into WebKit and
2673 one compiled into the plugin.
2675 The platform plugin ensures the validity of the interface contract
2676 through its version and the initial safe qobject_cast from QObject
2677 to QWebKitPlatformPlugin. After that it is safe to use static_cast,
2678 and with the recent changes even required.
2680 * WebCoreSupport/QtPlatformPlugin.cpp:
2681 (WebCore::QtPlatformPlugin::createSelectInputMethod):
2682 (WebCore::QtPlatformPlugin::createNotificationPresenter):
2683 (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer):
2685 2010-10-02 Diego Gonzalez <diegohcg@webkit.org>
2687 Reviewed by Kenneth Rohde Christiansen.
2689 [Qt] Provide Qt support for DeviceMotion/Orientation clients
2690 https://bugs.webkit.org/show_bug.cgi?id=47051
2692 Dummy implementation of DeviceMotion/Orientation client classes
2693 to make possible to hook up motion/orientation data
2694 in further implementations.
2697 (QWebPagePrivate::QWebPagePrivate):
2698 * WebCoreSupport/DeviceMotionClientQt.cpp: Added.
2699 (WebCore::DeviceMotionClientQt::DeviceMotionClientQt):
2700 (WebCore::DeviceMotionClientQt::setController):
2701 (WebCore::DeviceMotionClientQt::startUpdating):
2702 (WebCore::DeviceMotionClientQt::stopUpdating):
2703 (WebCore::DeviceMotionClientQt::currentDeviceMotion):
2704 (WebCore::DeviceMotionClientQt::deviceMotionControllerDestroyed):
2705 * WebCoreSupport/DeviceMotionClientQt.h: Added.
2706 (WebCore::DeviceMotionClientQt::~DeviceMotionClientQt):
2707 * WebCoreSupport/DeviceOrientationClientQt.cpp: Added.
2708 (WebCore::DeviceOrientationClientQt::DeviceOrientationClientQt):
2709 (WebCore::DeviceOrientationClientQt::setController):
2710 (WebCore::DeviceOrientationClientQt::startUpdating):
2711 (WebCore::DeviceOrientationClientQt::stopUpdating):
2712 (WebCore::DeviceOrientationClientQt::lastOrientation):
2713 (WebCore::DeviceOrientationClientQt::deviceOrientationControllerDestroyed):
2714 * WebCoreSupport/DeviceOrientationClientQt.h: Added.
2715 (WebCore::DeviceOrientationClientQt::~DeviceOrientationClientQt):
2717 2010-09-30 Robert Hogan <robert@webkit.org>
2719 Reviewed by Andreas Kling.
2721 [Qt] Support for PlainTextController
2723 Unskip editing/text-iterator/basic-iteration.html
2725 https://bugs.webkit.org/show_bug.cgi?id=38805
2727 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2728 (DumpRenderTreeSupportQt::plainText):
2729 * WebCoreSupport/DumpRenderTreeSupportQt.h:
2731 2010-09-30 Andreas Kling <andreas.kling@nokia.com>
2733 Reviewed by Tor Arne Vestbø.
2735 [Qt] V8 port: Unbreak build
2737 Add missing <wtf/text/CString.h> include.
2739 * WebCoreSupport/InspectorServerQt.cpp:
2741 2010-09-30 Benjamin Poulain <benjamin.poulain@nokia.com>
2743 Reviewed by Andreas Kling.
2745 [Qt] Crash if an scene with accelerated compositing layout during the paint event
2746 https://bugs.webkit.org/show_bug.cgi?id=46812
2748 Delay the deletion of the overlay after the current event is processed.
2750 Removing the overlay can sometimes be done inside the rendering code of
2751 the overlay itself. When the rendering code is using the reference after
2752 the deletion of the overlay, WebKit crashes.
2754 * Api/qgraphicswebview.cpp:
2755 (QGraphicsWebViewPrivate::overlay):
2756 * WebCoreSupport/PageClientQt.cpp:
2757 (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
2758 (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
2759 * WebCoreSupport/PageClientQt.h:
2760 (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
2762 2010-09-30 Benjamin Poulain <benjamin.poulain@nokia.com>
2764 Reviewed by Andreas Kling.
2766 [Qt] Fix tst_QWebPage::geolocationRequestJS()
2767 https://bugs.webkit.org/show_bug.cgi?id=46814
2769 Disable the test. This test cannot pass with a
2770 standard build of WebKit, it is disabled until the API is finilized.
2772 * tests/qwebpage/tst_qwebpage.cpp:
2773 (tst_QWebPage::geolocationRequestJS):
2775 2010-09-29 Andreas Kling <andreas.kling@nokia.com>
2777 Reviewed by Ariya Hidayat.
2779 [Qt] Don't keep local reference to QGraphicsItemOverlay in QGWVPrivate
2780 https://bugs.webkit.org/show_bug.cgi?id=46812
2782 Get the QGraphicsItemOverlay* via the QWebPageClient (d->page->d->client)
2783 instead of keeping a local pointer to it.
2785 This is cleanup for a follow-up patch.
2787 * Api/qgraphicswebview.cpp:
2788 (QGraphicsWebViewPrivate::overlay):
2789 (QGraphicsWebView::paint):
2790 (QGraphicsWebView::setPage):
2791 (QGraphicsWebView::updateGeometry):
2792 (QGraphicsWebView::setGeometry):
2794 2010-09-28 Jenn Braithwaite <jennb@chromium.org>
2796 Reviewed by Dmitry Titov.
2798 Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument.
2799 https://bugs.webkit.org/show_bug.cgi?id=46663
2801 * WebCoreSupport/FrameLoaderClientQt.cpp:
2802 (WebCore::FrameLoaderClientQt::didTransferChildFrameToNewDocument):
2803 * WebCoreSupport/FrameLoaderClientQt.h:
2805 2010-09-28 Andreas Kling <andreas.kling@nokia.com>
2807 Reviewed by Kenneth Rohde Christiansen.
2809 [Qt] Clean up QWebPage::ViewportConfiguration API
2810 https://bugs.webkit.org/show_bug.cgi?id=46730
2812 - Pass QSize parameter as const-reference
2816 (QWebPage::viewportConfigurationForSize):
2819 2010-09-28 Andras Becsi <abecsi@webkit.org>
2821 Reviewed by Csaba Osztrogonác.
2823 Undefined reference errors when linking due to gperf and inlining.
2826 EFL CMake changes by Leandro Pereira <leandro@profusion.mobi>
2828 Refactor gperf code generation and usage to fix the debug build with gcc>4.4.
2829 Hitherto gperf generated C code, these files were included in multiple C++ files across WebCore
2830 to access the functionality provided. This resulted in debug build failure with newer gcc versions
2831 because of a behaviour change of gcc, which disables C style inlining in debug mode.
2832 The make-hash-tools.pl script lets gperf generate C++ code for all gperf files now, which are compiled
2833 in their own compilation unit.
2834 The functionality provided by the generated code is wrapped behind HashTools.h, so there is no need
2835 for multiple inclusions of generated C files to access these functions.
2837 * WebCoreSupport/FrameLoaderClientQt.cpp:
2838 (WebCore::FrameLoaderClientQt::createPlugin):
2840 2010-09-28 Benjamin Poulain <benjamin.poulain@nokia.com>
2842 Reviewed by Andreas Kling.
2844 [Qt] Remove support for Qt 4.5
2845 https://bugs.webkit.org/show_bug.cgi?id=46718
2847 Remove the code for versions of Qt prior to 4.6.
2849 * Api/qgraphicswebview.cpp:
2850 (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
2851 (QGraphicsWebView::QGraphicsWebView):
2852 (QGraphicsWebView::sceneEvent):
2853 (QGraphicsWebViewPrivate::detachCurrentPage):
2854 * Api/qwebframe.cpp:
2857 (QWebPagePrivate::QWebPagePrivate):
2858 (QWebPagePrivate::handleSoftwareInputPanel):
2859 (QWebPagePrivate::inputMethodEvent):
2860 (QWebPagePrivate::touchEvent):
2861 (QWebPage::inputMethodQuery):
2866 (QWebView::QWebView):
2867 (QWebViewPrivate::detachCurrentPage):
2869 * WebCoreSupport/EditorClientQt.cpp:
2870 (WebCore::EditorClientQt::setInputMethodState):
2871 * WebCoreSupport/FrameLoaderClientQt.cpp:
2872 (WebCore::FrameLoaderClientQt::createPlugin):
2873 * WebCoreSupport/PageClientQt.cpp:
2874 (WebCore::PageClientQWidget::setInputMethodHints):
2875 (WebCore::PageClientQGraphicsWidget::setInputMethodEnabled):
2876 (WebCore::PageClientQGraphicsWidget::inputMethodEnabled):
2877 (WebCore::PageClientQGraphicsWidget::setInputMethodHints):
2878 * WebCoreSupport/PageClientQt.h:
2879 (WebCore::QGraphicsItemOverlay::page):
2880 * tests/qwebframe/tst_qwebframe.cpp:
2881 * tests/qwebpage/tst_qwebpage.cpp:
2882 (tst_QWebPage::inputMethods_data):
2884 (inputMethodEnabled):
2885 (tst_QWebPage::inputMethods):
2886 (tst_QWebPage::originatingObjectInNetworkRequests):
2887 * tests/qwebview/tst_qwebview.cpp:
2888 (tst_QWebView::reusePage):
2890 2010-09-28 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2892 Reviewed by Simon Hausmann.
2894 Clean up QWebPage initialization
2899 2010-09-28 Benjamin Poulain <benjamin.poulain@nokia.com>
2901 Reviewed by Kenneth Rohde Christiansen.
2903 [Qt] tst_QWebPage::testStopScheduledPageRefresh() fails on MeeGo handset
2904 https://bugs.webkit.org/show_bug.cgi?id=46706
2906 The test require the network to succeed or fail in order to work.
2907 On MeeGo, the network can simply timeout the because of the netword access
2908 management. This patch makes the test use local URLs to avoid the
2911 * tests/qwebpage/tst_qwebpage.cpp:
2912 (TestNetworkManager::TestNetworkManager):
2914 2010-09-27 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
2916 Reviewed by Antonio Gomes.
2918 [Qt] Remove setDeviceSize methods
2919 https://bugs.webkit.org/show_bug.cgi?id=46347
2921 Remove our setDeviceHeight() API and obtain it automatically from the
2922 system. Also for testing purposes, make it possible to override the
2923 values via two newly introduced environment variables.
2925 * Api/qgraphicswebview.cpp:
2926 * Api/qgraphicswebview.h:
2929 (queryDeviceSizeForScreenContainingWidget):
2930 (QWebPage::viewportConfigurationForSize):
2931 * WebCoreSupport/PageClientQt.cpp:
2932 (WebCore::PageClientQGraphicsWidget::windowRect):
2933 * symbian/eabi/QtWebKitu.def:
2935 2010-09-27 Girish Ramakrishnan <girish@forwardbias.in>
2937 Reviewed by Antonio Gomes.
2939 Enable local rendering of NPAPI plugins on Maemo6.
2941 https://bugs.webkit.org/show_bug.cgi?id=46618
2943 * WebCoreSupport/FrameLoaderClientQt.cpp:
2944 (WebCore::FrameLoaderClientQt::createPlugin):
2946 2010-09-27 Benjamin Poulain <benjamin.poulain@nokia.com>
2948 Reviewed by Andreas Kling.
2950 [Qt] tst_QWebFrame::popupFocus() randomly fail on MeeGo handset because the focus is not set on the window
2951 https://bugs.webkit.org/show_bug.cgi?id=46617
2953 This patch avoid the race condition by waiting for the window
2954 to be mapped on screen before attempting any actions.
2956 * tests/qwebframe/tst_qwebframe.cpp:
2958 2010-09-24 Luiz Agostini <luiz.agostini@openbossa.org>
2960 Reviewed by Kenneth Rohde Christiansen.
2962 Keep viewport information in Document
2963 https://bugs.webkit.org/show_bug.cgi?id=46385
2965 The viewport meta data (layout viewport, scale) needs to be set again when bringing
2966 back a page from the page cache. As the viewport metadata is only retrieved while parsing
2967 the document, we need to store it in the Document class.
2969 * Api/qwebframe.cpp:
2970 (QWebFramePrivate::viewportArguments):
2971 * Api/qwebframe_p.h:
2973 (QWebPage::viewportConfigurationForSize):
2974 * WebCoreSupport/ChromeClientQt.cpp:
2975 (WebCore::ChromeClientQt::didReceiveViewportArguments):
2976 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2977 (DumpRenderTreeSupportQt::viewportAsText):
2978 * WebCoreSupport/FrameLoaderClientQt.cpp:
2979 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
2981 2010-09-23 Ademar de Souza Reis Jr <ademar.reis@openbossa.org>
2983 Reviewed by Kenneth Rohde Christiansen.
2985 Fix QWebHapticFeedbackPlayer exposure via QWebKitPlatformPlugin
2987 [Qt] QWebHapticFeedbackPlayer needs correct exposure through QWebKitPlatformPlugin
2988 https://bugs.webkit.org/show_bug.cgi?id=46402
2990 QWebHapticFeedbackPlayer is exported through
2991 QWebKitPlatformPlugin::createExtension(), but
2992 createHapticFeedbackPlayer() and the correct
2993 inheritage are missing.
2995 * Api/qwebkitplatformplugin.h:
2996 * WebCoreSupport/QtPlatformPlugin.cpp:
2997 (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer):
2998 * WebCoreSupport/QtPlatformPlugin.h:
3000 2010-09-23 Nate Chapin <japhet@chromium.org>
3002 Reviewed by Darin Fisher.
3004 Add hyperlink auditing settings (i.e., <a ping>).
3005 https://bugs.webkit.org/show_bug.cgi?id=30458
3007 * Api/qwebsettings.cpp:
3008 (QWebSettingsPrivate::apply):
3009 (QWebSettings::QWebSettings):
3010 * Api/qwebsettings.h:
3012 2010-09-23 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
3014 Reviewed by Simon Hausmann.
3016 [Qt] Refactor QtWebKitPlatformPlugin interface
3018 Make it easier to keep source-compability for the
3019 QtWebKitPlatformPlugin interface, and run qmake
3020 on the example (but not build) for convenience.
3022 https://bugs.webkit.org/show_bug.cgi?id=46345
3024 * Api/qwebkitplatformplugin.h:
3025 * WebCoreSupport/QtPlatformPlugin.cpp:
3026 * examples/platformplugin/README:
3027 * examples/platformplugin/WebPlugin.cpp:
3028 * examples/platformplugin/WebPlugin.h:
3029 * examples/platformplugin/qwebkitplatformplugin.h:
3031 2010-09-22 Andras Becsi <abecsi@webkit.org>
3033 Speculative build fix for the Qt Windows bots.
3035 * Api/DerivedSources.pro:
3037 2010-09-22 Jamey Hicks <jamey.hicks@nokia.com>
3039 Reviewed by Kenneth Rohde Christiansen.
3041 [Qt] Web Inspector: Remote Web Inspector support for QtWebKit
3042 https://bugs.webkit.org/show_bug.cgi?id=43988
3044 Runs a web debug server on port specified by QtTestBrowser
3045 argument -remote-inspector-port. Property
3046 _q_webInspectorServerPort of the QWebPage instance will be set
3047 according to the argument. All pages with that property set will
3048 be remotely inspectable.
3050 URL for remote inspection of first QWebPage is
3051 http://localhost:9222/webkit/inspector/inspector.html?page=1
3052 where 1 is the number of the QWebPage instance.
3054 The base URL yields an index page with links to the individual inspectors:
3055 http://localhost:9222/
3057 * Api/qwebinspector.cpp:
3058 (QWebInspectorPrivate::attachAndReplaceRemoteFrontend):
3059 (QWebInspectorPrivate::detachRemoteFrontend):
3060 * Api/qwebinspector_p.h:
3061 (QWebInspectorPrivate::QWebInspectorPrivate):
3063 (QWebPagePrivate::dynamicPropertyChangeEvent):
3064 (QWebPagePrivate::inspectorServerPort):
3067 * WebCoreSupport/InspectorClientQt.cpp:
3068 (WebCore::InspectorClientQt::InspectorClientQt):
3069 (WebCore::InspectorClientQt::inspectorDestroyed):
3070 (WebCore::InspectorClientQt::openInspectorFrontend):
3071 (WebCore::InspectorClientQt::attachAndReplaceRemoteFrontend):
3072 (WebCore::InspectorClientQt::detachRemoteFrontend):
3073 (WebCore::InspectorClientQt::sendMessageToFrontend):
3074 * WebCoreSupport/InspectorClientQt.h:
3075 * WebCoreSupport/InspectorServerQt.cpp: Added.
3076 (WebCore::generateWebSocketChallengeResponse):
3077 (WebCore::parseWebSocketChallengeNumber):
3078 (WebCore::InspectorServerQt::server):
3079 (WebCore::InspectorServerQt::InspectorServerQt):
3080 (WebCore::InspectorServerQt::~InspectorServerQt):
3081 (WebCore::InspectorServerQt::listen):
3082 (WebCore::InspectorServerQt::close):
3083 (WebCore::InspectorServerQt::inspectorClientForPage):
3084 (WebCore::InspectorServerQt::registerClient):
3085 (WebCore::InspectorServerQt::unregisterClient):
3086 (WebCore::InspectorServerQt::newConnection):
3087 (WebCore::InspectorServerRequestHandlerQt::InspectorServerRequestHandlerQt):
3088 (WebCore::InspectorServerRequestHandlerQt::~InspectorServerRequestHandlerQt):
3089 (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
3090 (WebCore::InspectorServerRequestHandlerQt::tcpConnectionDisconnected):
3091 (WebCore::InspectorServerRequestHandlerQt::webSocketSend):
3092 (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
3093 (WebCore::RemoteFrontendChannel::RemoteFrontendChannel):
3094 (WebCore::RemoteFrontendChannel::sendMessageToFrontend):
3095 * WebCoreSupport/InspectorServerQt.h: Added.
3097 2010-09-22 Balazs Kelemen <kb@inf.u-szeged.hu>
3099 Reviewed by Kenneth Rohde Christiansen.
3101 [Qt] PluginStrategy implementation is broken
3102 https://bugs.webkit.org/show_bug.cgi?id=46078
3104 Remove the QWebPage* member from WebPlatformStrategies.
3105 Get the originator QWebPage of the getPluginInfo call via
3108 (QWebPagePrivate::QWebPagePrivate):
3109 * WebCoreSupport/WebPlatformStrategies.cpp:
3110 (WebPlatformStrategies::initialize):
3111 (WebPlatformStrategies::WebPlatformStrategies):
3112 (WebPlatformStrategies::getPluginInfo):
3113 Use the ChromeClient for accessing the originator QWebPage.
3114 * WebCoreSupport/WebPlatformStrategies.h:
3116 2010-09-22 İsmail Dönmez <ismail@namtrac.org>
3118 Reviewed by Andreas Kling.
3120 [Qt] Buildfix for WinCE
3122 * Api/DerivedSources.pro:
3124 2010-09-20 Philippe Normand <pnormand@igalia.com>
3126 Reviewed by Eric Carlson.
3128 [GTK] enhanced context menu for media elements
3129 https://bugs.webkit.org/show_bug.cgi?id=45021
3131 * WebCoreSupport/WebPlatformStrategies.cpp:
3132 * WebCoreSupport/WebPlatformStrategies.h:
3133 (WebPlatformStrategies::contextMenuItemTagOpenVideoInNewWindow):
3134 (WebPlatformStrategies::contextMenuItemTagOpenAudioInNewWindow):
3135 (WebPlatformStrategies::contextMenuItemTagCopyVideoLinkToClipboard):
3136 (WebPlatformStrategies::contextMenuItemTagCopyAudioLinkToClipboard):
3137 (WebPlatformStrategies::contextMenuItemTagToggleMediaControls)
3138 (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop)
3139 (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen)
3140 (WebPlatformStrategies::contextMenuItemTagMediaPlay)
3141 (WebPlatformStrategies::contextMenuItemTagMediaPause)
3142 (WebPlatformStrategies::contextMenuItemTagMediaMute)
3144 2010-09-20 Jacob Dinu <dinu.jacob@nokia.com>
3146 Reviewed by Adam Barth.
3148 Added a new qwebpage test for loading a cached page
3149 https://bugs.webkit.org/show_bug.cgi?id=41155
3151 * tests/qwebpage/tst_qwebpage.cpp:
3152 (tst_QWebPage::loadCachedPage):
3154 2010-09-08 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3156 Reviewed by Simon Hausmann.
3158 [Qt] Fix forward includes generation for MSVC when sh is in PATH.
3160 MSVC's nmake isn't affected by having sh in PATH.
3162 * Api/DerivedSources.pro:
3164 2010-09-18 Ademar de Souza Reis Jr <ademar.reis@openbossa.org>
3166 Reviewed by Kenneth Rohde Christiansen.
3168 Enable Platform Strategies on Qt
3170 [Qt] Turn on PLATFORM_STRATEGIES
3171 https://bugs.webkit.org/show_bug.cgi?id=45831
3174 (QWebPagePrivate::QWebPagePrivate): Initialize the PlatformStrategy
3176 * WebCoreSupport/WebPlatformStrategies.cpp: Added, code was moved
3177 from platform/qt/Localizations.cpp and plugins/qt/PluginDataQt.cpp
3178 (WebPlatformStrategies::initialize): create the singleton,
3179 following the same "pattern" used by Mac and Win ports.
3180 (WebPlatformStrategies::WebPlatformStrategies):
3181 (WebPlatformStrategies::createPluginStrategy):
3182 (WebPlatformStrategies::createLocalizationStrategy):
3183 (WebPlatformStrategies::createVisitedLinkStrategy):
3184 (WebPlatformStrategies::refreshPlugins):
3185 (WebPlatformStrategies::getPluginInfo):
3186 (WebPlatformStrategies::inputElementAltText):
3187 (WebPlatformStrategies::resetButtonDefaultLabel):
3188 (WebPlatformStrategies::searchableIndexIntroduction):
3189 (WebPlatformStrategies::submitButtonDefaultLabel):
3190 (WebPlatformStrategies::fileButtonChooseFileLabel):
3191 (WebPlatformStrategies::fileButtonNoFileSelectedLabel):
3192 (WebPlatformStrategies::contextMenuItemTagOpenLinkInNewWindow):
3193 (WebPlatformStrategies::contextMenuItemTagDownloadLinkToDisk):
3194 (WebPlatformStrategies::contextMenuItemTagCopyLinkToClipboard):
3195 (WebPlatformStrategies::contextMenuItemTagOpenImageInNewWindow):
3196 (WebPlatformStrategies::contextMenuItemTagDownloadImageToDisk):
3197 (WebPlatformStrategies::contextMenuItemTagCopyImageToClipboard):
3198 (WebPlatformStrategies::contextMenuItemTagOpenFrameInNewWindow):
3199 (WebPlatformStrategies::contextMenuItemTagCopy):
3200 (WebPlatformStrategies::contextMenuItemTagGoBack):
3201 (WebPlatformStrategies::contextMenuItemTagGoForward):
3202 (WebPlatformStrategies::contextMenuItemTagStop):
3203 (WebPlatformStrategies::contextMenuItemTagReload):
3204 (WebPlatformStrategies::contextMenuItemTagCut):
3205 (WebPlatformStrategies::contextMenuItemTagPaste):
3206 (WebPlatformStrategies::contextMenuItemTagNoGuessesFound):
3207 (WebPlatformStrategies::contextMenuItemTagIgnoreSpelling):
3208 (WebPlatformStrategies::contextMenuItemTagLearnSpelling):
3209 (WebPlatformStrategies::contextMenuItemTagSearchWeb):
3210 (WebPlatformStrategies::contextMenuItemTagLookUpInDictionary):
3211 (WebPlatformStrategies::contextMenuItemTagOpenLink):
3212 (WebPlatformStrategies::contextMenuItemTagIgnoreGrammar):
3213 (WebPlatformStrategies::contextMenuItemTagSpellingMenu):
3214 (WebPlatformStrategies::contextMenuItemTagShowSpellingPanel):
3215 (WebPlatformStrategies::contextMenuItemTagCheckSpelling):
3216 (WebPlatformStrategies::contextMenuItemTagCheckSpellingWhileTyping):
3217 (WebPlatformStrategies::contextMenuItemTagCheckGrammarWithSpelling):
3218 (WebPlatformStrategies::contextMenuItemTagFontMenu):
3219 (WebPlatformStrategies::contextMenuItemTagBold):
3220 (WebPlatformStrategies::contextMenuItemTagItalic):
3221 (WebPlatformStrategies::contextMenuItemTagUnderline):
3222 (WebPlatformStrategies::contextMenuItemTagOutline):
3223 (WebPlatformStrategies::contextMenuItemTagWritingDirectionMenu):
3224 (WebPlatformStrategies::contextMenuItemTagTextDirectionMenu):
3225 (WebPlatformStrategies::contextMenuItemTagDefaultDirection):
3226 (WebPlatformStrategies::contextMenuItemTagLeftToRight):
3227 (WebPlatformStrategies::contextMenuItemTagRightToLeft):
3228 (WebPlatformStrategies::contextMenuItemTagInspectElement):
3229 (WebPlatformStrategies::searchMenuNoRecentSearchesText):
3230 (WebPlatformStrategies::searchMenuRecentSearchesText):
3231 (WebPlatformStrategies::searchMenuClearRecentSearchesText):
3232 (WebPlatformStrategies::AXWebAreaText):
3233 (WebPlatformStrategies::AXLinkText):
3234 (WebPlatformStrategies::AXListMarkerText):
3235 (WebPlatformStrategies::AXImageMapText):
3236 (WebPlatformStrategies::AXHeadingText):
3237 (WebPlatformStrategies::AXDefinitionListTermText):
3238 (WebPlatformStrategies::AXDefinitionListDefinitionText):
3239 (WebPlatformStrategies::AXButtonActionVerb):
3240 (WebPlatformStrategies::AXRadioButtonActionVerb):
3241 (WebPlatformStrategies::AXTextFieldActionVerb):
3242 (WebPlatformStrategies::AXCheckedCheckBoxActionVerb):
3243 (WebPlatformStrategies::AXUncheckedCheckBoxActionVerb):
3244 (WebPlatformStrategies::AXMenuListActionVerb):
3245 (WebPlatformStrategies::AXMenuListPopupActionVerb):
3246 (WebPlatformStrategies::AXLinkActionVerb):
3247 (WebPlatformStrategies::missingPluginText):
3248 (WebPlatformStrategies::crashedPluginText):
3249 (WebPlatformStrategies::multipleFileUploadText):
3250 (WebPlatformStrategies::unknownFileSizeText):
3251 (WebPlatformStrategies::imageTitle):
3252 (WebPlatformStrategies::mediaElementLoadingStateText):
3253 (WebPlatformStrategies::mediaElementLiveBroadcastStateText):
3254 (WebPlatformStrategies::localizedMediaControlElementString):
3255 (WebPlatformStrategies::localizedMediaControlElementHelpText):
3256 (WebPlatformStrategies::localizedMediaTimeDescription):
3257 (WebPlatformStrategies::validationMessageValueMissingText):
3258 (WebPlatformStrategies::validationMessageTypeMismatchText):
3259 (WebPlatformStrategies::validationMessagePatternMismatchText):
3260 (WebPlatformStrategies::validationMessageTooLongText):
3261 (WebPlatformStrategies::validationMessageRangeUnderflowText):
3262 (WebPlatformStrategies::validationMessageRangeOverflowText):
3263 (WebPlatformStrategies::validationMessageStepMismatchText):
3264 (WebPlatformStrategies::isLinkVisited):
3265 (WebPlatformStrategies::addVisitedLink):
3266 * WebCoreSupport/WebPlatformStrategies.h: Added, based on Mac and Win
3269 2010-09-18 Andreas Kling <andreas.kling@nokia.com>
3271 Reviewed by Antonio Gomes.
3273 [Qt] V8 port: Add FrameLoaderClientQt::allowScriptExtension()
3274 https://bugs.webkit.org/show_bug.cgi?id=46034
3276 r67749 added FrameLoaderClient::allowScriptExtension() (V8-specific)
3277 Add a stub implementation that simply returns false for now.
3279 * WebCoreSupport/FrameLoaderClientQt.h:
3280 (WebCore::FrameLoaderClientQt::allowScriptExtension):
3282 2010-09-17 Darin Adler <darin@apple.com>
3284 Reviewed by Sam Weinig.
3286 REGRESSION (r60104): Zoom level is unexpectedly reset on page reload
3287 https://bugs.webkit.org/show_bug.cgi?id=42863
3289 * Api/qwebframe.cpp:
3290 (QWebFrame::setTextSizeMultiplier):
3291 (QWebFrame::textSizeMultiplier):
3292 (QWebFrame::setZoomFactor):
3293 (QWebFrame::zoomFactor):
3294 Call functions on Frame instead of FrameView.
3296 2010-09-16 Darin Adler <darin@apple.com>
3300 * WebCoreSupport/EditorClientQt.cpp:
3301 (WebCore::EditorClientQt::setInputMethodState): Updated for change
3302 in name of isUrlField to isURLField.
3304 2010-09-16 Darin Adler <darin@apple.com>
3306 Reviewed by Andreas Kling.
3308 Reduce use of HTMLInputElement::inputType so we can remove it later
3309 https://bugs.webkit.org/show_bug.cgi?id=45903
3311 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3312 (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
3313 Use isPasswordField.
3315 2010-09-16 Robert Hogan <robert@webkit.org>
3317 Reviewed by Antonio Gomes.
3319 [Qt] Support globalhistory tests
3320 https://bugs.webkit.org/show_bug.cgi?id=45774
3322 * WebCoreSupport/ChromeClientQt.cpp:
3323 (WebCore::ChromeClientQt::populateVisitedLinks):
3324 * WebCoreSupport/ChromeClientQt.h:
3325 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3326 (DumpRenderTreeSupportQt::dumpHistoryCallbacks):
3327 (DumpRenderTreeSupportQt::dumpVisitedLinksCallbacks):
3328 * WebCoreSupport/DumpRenderTreeSupportQt.h:
3329 * WebCoreSupport/FrameLoaderClientQt.cpp:
3330 (WebCore::FrameLoaderClientQt::setTitle):
3331 (WebCore::FrameLoaderClientQt::updateGlobalHistory):
3332 (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks):
3333 * WebCoreSupport/FrameLoaderClientQt.h:
3335 2010-09-16 Diego Gonzalez <diegohcg@webkit.org>
3337 Reviewed by Kenneth Rohde Christiansen.
3339 [Qt] Remove FrameLoaderClientQt::webFrame() to use NetworkingContext to get the WebFrame to avoid layering violations
3340 https://bugs.webkit.org/show_bug.cgi?id=42293
3342 * Api/qwebframe.cpp:
3343 (QWebFrame::childFrames):
3344 (QWebFramePrivate::kit):
3346 (QWebPage::currentFrame):
3347 * WebCoreSupport/ChromeClientQt.cpp:
3348 (WebCore::ChromeClientQt::runJavaScriptAlert):
3349 (WebCore::ChromeClientQt::runJavaScriptConfirm):
3350 (WebCore::ChromeClientQt::runJavaScriptPrompt):
3351 (WebCore::ChromeClientQt::contentsSizeChanged):
3352 * WebCoreSupport/FrameLoaderClientQt.cpp:
3353 (WebCore::FrameLoaderClientQt::chooseFile):
3354 * WebCoreSupport/FrameLoaderClientQt.h:
3356 2010-09-15 Simon Hausmann <simon.hausmann@nokia.com>
3358 [Qt] Update the Symbian def files
3360 Re-freeze with the viewport meta tag updates.
3362 * symbian/eabi/QtWebKitu.def:
3364 2010-09-14 Andreas Kling <andreas.kling@nokia.com>
3366 Reviewed by Kenneth Rohde Christiansen.
3368 [Qt] V8 port: Get inspector up and running
3369 https://bugs.webkit.org/show_bug.cgi?id=45771
3371 * WebCoreSupport/InspectorClientQt.cpp:
3372 (WebCore::ensureDebuggerScriptLoaded): Added, loads DebuggerScript.js into ScriptDebugServer.
3373 (WebCore::InspectorClientQt::openInspectorFrontend): Ensure that DebuggerScript.js is loaded
3374 before opening an inspector.
3376 2010-09-14 Enrico Ros <eros@codeaurora.org>
3378 Reviewed by Andreas Kling.
3380 [Qt] Respect title attribute on option elements
3381 https://bugs.webkit.org/show_bug.cgi?id=45084
3383 Set the tooltip in the combo box model, so it's reflected in the view.
3385 * WebCoreSupport/QtFallbackWebPopup.cpp:
3386 (WebCore::QtFallbackWebPopup::populate):
3388 2010-09-13 Daniel Bates <dbates@rim.com>
3390 https://bugs.webkit.org/show_bug.cgi?id=45732
3392 Fix the Qt build. I missed this when reviewing the patch
3395 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3396 (DumpRenderTreeSupportQt::suspendActiveDOMObjects): Change enum value ActiveDOMObject::JavaScriptPaused to
3397 ActiveDOMObject::JavaScriptDebuggerPaused
3399 2010-09-13 Eric Carlson <eric.carlson@apple.com>
3401 Reviewed by Daniel Bates.
3403 [Qt] DumpRenderTreeSupportQt::suspendActiveDOMObjects needs a new parameter
3404 https://bugs.webkit.org/show_bug.cgi?id=45732
3406 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3407 (DumpRenderTreeSupportQt::suspendActiveDOMObjects): Pass ActiveDOMObject::JavaScriptPaused
3408 to suspendActiveDOMObjects.
3410 2010-09-13 Enrica Casucci <enrica@apple.com>
3412 Reviewed by Sam Weinig.
3414 Paste should be implemented in WebCore like Copy and Cut for Mac also.
3415 https://bugs.webkit.org/show_bug.cgi?id=45494
3416 <rdar://problem/7660537>
3418 On the Mac platform, the implementation of the paste operation is all done
3419 at the WebKit level. In order to support it on WebKit2 it is necessary to
3420 refactor the code and move this functionality at the level of WebCore like
3421 we already have on Windows.
3422 The original code relies on some in AppKit functions that call back into
3423 WebKit causing problems in WebKit2. All this functionality has been moved
3424 at the level of the editor client where it can be dealt with appropriately.
3426 * WebCoreSupport/FrameLoaderClientQt.cpp:
3427 (WebCore::FrameLoaderClientQt::canShowMIMETypeAsHTML): Added stub.
3428 * WebCoreSupport/FrameLoaderClientQt.h:
3430 2010-08-27 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
3432 Reviewed by Antti Koivisto.
3434 Add a Qt API for the viewport meta tag support based on the
3435 following draft spec:
3437 http://people.opera.com/rune/TR/ED-css-viewport-20100806/
3439 Add common handling of viewport meta tag based on new Opera spec
3440 https://bugs.webkit.org/show_bug.cgi?id=44201
3442 * Api/qwebframe_p.h:
3443 (QWebFramePrivate::QWebFramePrivate):
3445 (QWebPage::ViewportConfiguration::ViewportConfiguration):
3446 (QWebPage::ViewportConfiguration::~ViewportConfiguration):
3447 (QWebPage::ViewportConfiguration::operator=):
3448 (QWebPage::viewportConfigurationForSize):
3449 (QWebPage::setPreferredContentsSize):
3452 (QtViewportConfigurationPrivate::QtViewportConfigurationPrivate):
3453 * WebCoreSupport/ChromeClientQt.cpp:
3454 (WebCore::ChromeClientQt::didReceiveViewportArguments):
3455 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3456 (DumpRenderTreeSupportQt::viewportAsText):
3457 * WebCoreSupport/DumpRenderTreeSupportQt.h:
3458 * WebCoreSupport/FrameLoaderClientQt.cpp:
3459 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
3460 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
3462 2010-09-12 Martin Smith <martin.smith@nokia.com>
3464 Reviewed by Simon Hausmann.
3466 doc: Changed the title so lists of contents sort better.
3468 * docs/qtwebkit.qdoc:
3470 2010-09-12 David Boddie <david.boddie@nokia.com>
3472 Reviewed by Simon Hausmann.
3474 Doc: More work on the QML documentation.
3476 * declarative/qdeclarativewebview.cpp:
3478 2010-09-12 Martin Jones <martin.jones@nokia.com>
3480 Reviewed by Simon Hausmann.
3482 [Qml] Ensure WebView gets focus when an editable node is clicked on.
3484 Task-number: QTBUG-13342
3486 * declarative/qdeclarativewebview.cpp:
3487 (GraphicsWebView::mousePressEvent):
3489 2010-09-12 David Boddie <david.boddie@nokia.com>
3491 Reviewed by Simon Hausmann.
3495 * declarative/qdeclarativewebview.cpp:
3497 2010-09-12 Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
3499 Reviewed by Simon Hausmann.
3501 [Qt] let WebKit inject itself into the qt configuration
3503 Task-number: QTBUG-12379
3505 * qt_webkit_version.pri: Use the faster + instead of *
3506 operator to add webkit to the config.
3508 2010-09-12 Martin Smith <martin.smith@nokia.com>
3510 Reviewed by Simon Hausmann.
3512 [Qt] Fix group of declarative web view in QML docs.
3514 * declarative/qdeclarativewebview.cpp:
3516 2010-09-12 Simon Hausmann <simon.hausmann@nokia.com>
3518 Reviewed by Andreas Kling.
3520 [Qt] Partial implementation of Qt bridge using V8 and QtScript.
3522 * Api/qwebelement.cpp:
3523 (QWebElement::evaluateJavaScript): Stub it out for now,
3524 to compile, until we have a conversion path between v8::Object
3526 * Api/qwebframe.cpp:
3527 (QWebFrame::addToJavaScriptWindowObject): Implemented using
3528 few lines of QtScript code.
3529 (QWebFrame::evaluateJavaScript): Ditto.
3531 2010-09-12 Simon Hausmann <simon.hausmann@nokia.com>
3533 Reviewed by Andreas Kling.
3535 Fix the build with V8.
3537 This is a temporary kludge until the scriptworld stuff is properly
3538 ported, as part of the upcoming DRT work.
3540 * Api/qwebscriptworld.cpp:
3541 (QWebScriptWorld::QWebScriptWorld):
3543 2010-09-11 Andreas Kling <andreas.kling@nokia.com>
3545 Reviewed by Simon Hausmann.
3547 [Qt] V8 port for Qt platform: Qt WebCoreSupport changes
3548 https://bugs.webkit.org/show_bug.cgi?id=45149
3550 Original patch by Vlad Burlik <volodimir.burlik@nokia.com>
3552 Implemented the V8 specifics needed in DumpRenderTreeSupportQt and
3553 FrameLoaderClientQt.
3555 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3556 (DumpRenderTreeSupportQt::javaScriptObjectsCount):
3557 (DumpRenderTreeSupportQt::garbageCollectorCollect):
3558 (DumpRenderTreeSupportQt::garbageCollectorCollectOnAlternateThread):
3559 (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
3560 * WebCoreSupport/FrameLoaderClientQt.cpp:
3561 (WebCore::FrameLoaderClientQt::didCreateScriptContextForFrame):
3562 (WebCore::FrameLoaderClientQt::didDestroyScriptContextForFrame):
3563 (WebCore::FrameLoaderClientQt::didCreateIsolatedScriptContext):
3564 (WebCore::FrameLoaderClientQt::createDocumentLoader):
3565 * WebCoreSupport/FrameLoaderClientQt.h:
3567 2010-09-11 Vlad Burlik <volodimir.burlik@nokia.com>
3569 Reviewed by Andreas Kling.
3571 [Qt] V8 port for QT platform: QT API implementation changes
3572 https://bugs.webkit.org/show_bug.cgi?id=45148
3574 V8 Implementation of QWebFrame::addToJavaScriptWindowObject()
3575 and QWebFrame::evaluateJavaScript()
3577 * Api/qwebelement.cpp:
3578 (setupScriptContext): JSC and V8 variations
3579 (QWebElement::evaluateJavaScript):
3580 * Api/qwebelement.h:
3581 * Api/qwebframe.cpp: QObject injection to V8 world
3582 (QWebFrame::addToJavaScriptWindowObject):
3583 (QWebFrame::evaluateJavaScript):
3584 * Api/qwebpage.cpp: Use ScriptController type definitions instead of direct references to JSC or V8
3585 (QWebPagePrivate::QWebPagePrivate):
3587 2010-09-10 yi shen <yi.4.shen@nokia.com>
3589 Reviewed by Antonio Gomes.