1 2011-01-16 Adam Barth <abarth@webkit.org>
3 Rubber-stamped by Eric Seidel.
5 Move WebKit into Source
6 https://bugs.webkit.org/show_bug.cgi?id=52530
8 * Api/DerivedSources.pro:
9 * declarative/declarative.pro:
13 2011-01-15 Sheriff Bot <webkit.review.bot@gmail.com>
15 Unreviewed, rolling out r75708.
16 http://trac.webkit.org/changeset/75708
17 https://bugs.webkit.org/show_bug.cgi?id=52521
19 Breaks Qt build if mobility is not installed. (Requested by
20 benjaminp on #webkit).
22 * Api/qwebkitplatformplugin.h:
23 * WebCoreSupport/ChromeClientQt.cpp:
24 (WebCore::ChromeClientQt::ChromeClientQt):
25 (WebCore::ChromeClientQt::~ChromeClientQt):
26 * WebCoreSupport/ChromeClientQt.h:
27 * WebCoreSupport/FullScreenVideoQt.cpp: Removed.
28 * WebCoreSupport/FullScreenVideoQt.h: Removed.
29 * WebCoreSupport/QtPlatformPlugin.cpp:
30 * WebCoreSupport/QtPlatformPlugin.h:
31 * examples/platformplugin/WebPlugin.cpp:
32 (WebPlugin::supportsExtension):
33 (WebPlugin::createExtension):
34 * examples/platformplugin/WebPlugin.h:
35 * examples/platformplugin/platformplugin.pro:
36 * examples/platformplugin/qwebkitplatformplugin.h:
38 2011-01-15 Robert Hogan <robert@webkit.org>
40 Reviewed by Kenneth Rohde Christiansen.
42 [Qt] plugins/no-mime-with-valid-extension.html fails
43 Check extension of resource against installed
44 plugins when determining mime-type.
46 https://bugs.webkit.org/show_bug.cgi?id=52288
47 https://bugs.webkit.org/show_bug.cgi?id=50657
49 * WebCoreSupport/FrameLoaderClientQt.cpp:
50 (WebCore::FrameLoaderClientQt::objectContentType):
52 2011-01-14 Sam Magnuson <smagnuso@gmail.com>
54 Reviewed by Kenneth Rohde Christiansen.
56 [Qt] Compile with QT_NO_GRAPHICSVIEW
57 https://bugs.webkit.org/show_bug.cgi?id=49750
59 * Api/qgraphicswebview.cpp:
60 * Api/qgraphicswebview.h:
64 * WebCoreSupport/FrameLoaderClientQt.cpp:
65 (WebCore::FrameLoaderClientQt::createPlugin):
66 * WebCoreSupport/PageClientQt.cpp:
67 * WebCoreSupport/PageClientQt.h:
69 2011-01-14 Yuzo Fujishima <yuzo@google.com>
71 Reviewed by Antti Koivisto.
73 Rename cache() to memoryCache()
74 https://bugs.webkit.org/show_bug.cgi?id=52433
77 (QWebPagePrivate::_q_cleanupLeakMessages):
78 * Api/qwebsettings.cpp:
79 (QWebSettings::clearMemoryCaches):
80 (QWebSettings::setObjectCacheCapacities):
82 2011-01-14 Konstantin Tokarev <annulen@yandex.ru>
84 Reviewed by Laszlo Gombos.
86 [Qt] Fixed compilation when QT_NO_SHORTCUT is defined
87 https://bugs.webkit.org/show_bug.cgi?id=52460
89 This patch fixes compilation when QT_NO_SHORTCUT is defined in Qt
92 * WebCoreSupport/EditorClientQt.cpp:
93 (WebCore::EditorClientQt::handleKeyboardEvent): Added QT_NO_SHORTCUT guards
95 2011-01-13 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
97 Reviewed by Simon Hausmann.
99 [Qt] Need a way to inform the application when a Netscape plugin is created.
100 https://bugs.webkit.org/show_bug.cgi?id=30179
102 Added "c" style static method for the application to hook up for
103 receiving notifications when a plugin is created.
105 * symbian/bwins/QtWebKitu.def:
106 * symbian/eabi/QtWebKitu.def:
108 2011-01-13 Yi Shen <yi.4.shen@nokia.com>
110 Reviewed by Simon Hausmann.
112 [Qt] Extend the Platform Plugin to support full screen video handler
113 https://bugs.webkit.org/show_bug.cgi?id=51249
115 Add a new webkit platform plugin interface to support full screen video handler.
117 * Api/qwebkitplatformplugin.h:
118 (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
119 (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
120 * WebCoreSupport/ChromeClientQt.cpp:
121 (WebCore::ChromeClientQt::ChromeClientQt):
122 (WebCore::ChromeClientQt::~ChromeClientQt):
123 (WebCore::ChromeClientQt::fullScreenVideo):
124 (WebCore::ChromeClientQt::supportsFullscreenForNode):
125 (WebCore::ChromeClientQt::requiresFullscreenForVideoPlayback):
126 (WebCore::ChromeClientQt::enterFullscreenForNode):
127 (WebCore::ChromeClientQt::exitFullscreenForNode):
128 * WebCoreSupport/ChromeClientQt.h:
129 * WebCoreSupport/FullScreenVideoQt.cpp: Added.
130 (WebCore::FullScreenVideoQt::FullScreenVideoQt):
131 (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
132 (WebCore::FullScreenVideoQt::enterFullScreenForNode):
133 (WebCore::FullScreenVideoQt::exitFullScreenForNode):
134 (WebCore::FullScreenVideoQt::aboutToClose):
135 (WebCore::FullScreenVideoQt::mediaPlayer):
136 (WebCore::FullScreenVideoQt::mediaPlayerForNode):
137 (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
138 * WebCoreSupport/FullScreenVideoQt.h: Added.
139 (WebCore::FullScreenVideoQt::isValid):
140 * WebCoreSupport/QtPlatformPlugin.cpp:
141 (WebCore::QtPlatformPlugin::createFullScreenVideoHandler):
142 * WebCoreSupport/QtPlatformPlugin.h:
143 * examples/platformplugin/WebPlugin.cpp:
144 (FullScreenVideoWidget::FullScreenVideoWidget):
145 (FullScreenVideoWidget::event):
146 (FullScreenVideoWidget::keyPressEvent):
147 (FullScreenVideoHandler::FullScreenVideoHandler):
148 (FullScreenVideoHandler::~FullScreenVideoHandler):
149 (FullScreenVideoHandler::requiresFullScreenForVideoPlayback):
150 (FullScreenVideoHandler::enterFullScreen):
151 (FullScreenVideoHandler::exitFullScreen):
152 (WebPlugin::supportsExtension):
153 (WebPlugin::createExtension):
154 * examples/platformplugin/WebPlugin.h:
155 (FullScreenVideoWidget::~FullScreenVideoWidget):
156 * examples/platformplugin/platformplugin.pro:
157 * examples/platformplugin/qwebkitplatformplugin.h:
158 (QWebFullScreenVideoHandler::QWebFullScreenVideoHandler):
159 (QWebFullScreenVideoHandler::~QWebFullScreenVideoHandler):
161 2011-01-12 Robert Hogan <robert@webkit.org>
163 Reviewed by Kenneth Rohde Christiansen.
165 [Qt] Search input field doesn't have cancel button
167 Add a cancel button to the search field and make it customizable
168 by the client. For now, use the close dialog button associated
169 with the application's style as the default.
171 https://bugs.webkit.org/show_bug.cgi?id=42887
173 * Api/qwebsettings.cpp:
175 * Api/qwebsettings.h:
177 2011-01-12 Sheriff Bot <webkit.review.bot@gmail.com>
179 Unreviewed, rolling out r74344.
180 http://trac.webkit.org/changeset/74344
181 https://bugs.webkit.org/show_bug.cgi?id=52290
183 broke QWebPluginFactory for unusual mime-types (Requested by
186 * WebCoreSupport/FrameLoaderClientQt.cpp:
187 (WebCore::FrameLoaderClientQt::createPlugin):
189 2011-01-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
191 Reviewed by Kenneth Rohde Christiansen.
193 [Qt] Remove uses of QFuture since it isn't supported on all platforms.
194 https://bugs.webkit.org/show_bug.cgi?id=51204
196 * tests/qwebpage/tst_qwebpage.cpp:
197 (QtNAMThread::QtNAMThread):
198 (QtNAMThread::networkAccessManager):
201 2011-01-11 Benjamin Poulain <benjamin.poulain@nokia.com>
203 Reviewed by Kenneth Rohde Christiansen.
205 [Qt] Fix tst_QWebPage::geolocationRequestJS()
206 https://bugs.webkit.org/show_bug.cgi?id=46814
208 Skip the test when WebKit is compiled without geolocation.
210 * tests/qwebpage/tst_qwebpage.cpp:
211 (tst_QWebPage::geolocationRequestJS):
213 2011-01-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
215 Reviewed by Csaba Osztrogonác.
217 [Qt] Baseline qt_minimal configuration
218 https://bugs.webkit.org/show_bug.cgi?id=51313
220 * WebCoreSupport/PopupMenuQt.cpp:
221 (WebCore::PopupMenuQt::show): Add QT_NO_COMBOBOX guard.
223 * WebCoreSupport/QtFallbackWebPopup.cpp:
224 (WebCore::QtFallbackWebPopup::populate): Add QT_NO_TOOLTIP guard.
226 * tests/qwebframe/tst_qwebframe.cpp: Add QT_NO_COMBOBOX guard.
227 * tests/qwebpage/tst_qwebpage.cpp:
228 (PluginPage::createPlugin): Add QT_NO_INPUTDIALOG guard.
230 2011-01-10 Adam Barth <abarth@webkit.org>
232 Reviewed by Darin Adler.
234 Introduce the notion of a "display-isolated" URL scheme for use by
236 https://bugs.webkit.org/show_bug.cgi?id=50182
238 Update to new function name.
240 * Api/qwebsecurityorigin.cpp:
241 (QWebSecurityOrigin::localSchemes):
243 2011-01-10 Benjamin Poulain <benjamin.poulain@nokia.com>
245 Reviewed by Kenneth Rohde Christiansen.
247 [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
248 https://bugs.webkit.org/show_bug.cgi?id=52081
250 Add an autotest for checking the result of Navigator.cookiesEnabled depending
251 on the status of the cookie jar.
253 * tests/qwebpage/tst_qwebpage.cpp:
254 (tst_QWebPage::navigatorCookieEnabled):
256 2011-01-09 Sheriff Bot <webkit.review.bot@gmail.com>
258 Unreviewed, rolling out r75337.
259 http://trac.webkit.org/changeset/75337
260 https://bugs.webkit.org/show_bug.cgi?id=52137
262 It made fast/dom/navigator-detached-no-crash.html crash
263 (Requested by Ossy on #webkit).
265 * tests/qwebpage/tst_qwebpage.cpp:
267 2011-01-09 Xianzhu Wang <phnixwxz@gmail.com>
269 Reviewed by Darin Fisher.
271 https://bugs.webkit.org/show_bug.cgi?id=41441
272 createWindow method should only do window-creating without URL navigation
276 * WebCoreSupport/ChromeClientQt.cpp:
277 (WebCore::ChromeClientQt::createWindow):
279 2011-01-08 Benjamin Poulain <benjamin.poulain@nokia.com>
281 Reviewed by Kenneth Rohde Christiansen.
283 [Qt] Navigator.cookiesEnabled return true for Qt even if there is no cookie jar
284 https://bugs.webkit.org/show_bug.cgi?id=52081
286 Add an autotest for checking the result of Navigator.cookiesEnabled depending
287 on the status of the cookie jar.
289 * tests/qwebpage/tst_qwebpage.cpp:
290 (tst_QWebPage::navigatorCookieEnabled):
292 2011-01-07 Adam Barth <abarth@webkit.org>
294 Rubber-stamped by Eric Seidel.
296 Move WebCore to Source
297 https://bugs.webkit.org/show_bug.cgi?id=52050
299 Update documentation to reference new location of WebCore.
301 * docs/qtwebkit.qdoc:
303 2011-01-07 Andreas Kling <kling@webkit.org>
305 Reviewed by Adam Barth.
307 [Qt] Add selectedHtml function to QWebView
308 https://bugs.webkit.org/show_bug.cgi?id=35028
310 Add QWebView::selectedHtml() and QWebPage::selectedHtml()
311 which return the current selection range's HTML representation.
314 (QWebPage::selectedHtml):
317 (QWebView::selectedText):
318 (QWebView::selectedHtml):
320 * tests/qwebpage/tst_qwebpage.cpp:
321 (tst_QWebPage::cursorMovements):
322 (tst_QWebPage::textSelection):
323 (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
324 (tst_QWebPage::findText):
326 2011-01-06 Robert Hogan <robert@webkit.org>
328 Reviewed by Antonio Gomes.
330 [Qt] Introduce QDRTNode for passing WebCore::Node across JS bridge
332 This allows LayoutTestController to pass WebCore::Node back to
335 Also amend nodesFromRect-links-and-text.html and
336 nodesFromRect-inner-documents.html so that they do not produce
337 platform-specific results.
340 fast/dom/nodesFromRect-links-and-text.html
341 fast/dom/nodesFromRect-inner-documents.html
343 https://bugs.webkit.org/show_bug.cgi?id=48957
345 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
346 (QDRTNode::QDRTNode):
347 (QDRTNode::~QDRTNode):
348 (DumpRenderTreeSupportQt::nodesFromRect):
349 * WebCoreSupport/DumpRenderTreeSupportQt.h:
351 2011-01-04 Girish Ramakrishnan <girish@forwardbias.in>
353 Reviewed by Simon Hausmann.
354 Acked by Aaron Kennedy <aaron.kennedy@nokia.com>
356 [Qt] QML WebView does not transfer focus to underlying QGraphicsWebView
358 QML WebView creates QGraphicsWebView as it's child. The WebView is not
359 setup as a focus proxy of the QGraphicsWebView. Thus, even though the
360 WebView gets focus, the QGraphicsWebView does not get focus.
361 In QML, focus proxies or "focus scopes" are created using FocusScope.
362 This change makes WebView a FocusScope and sets the focus on the
365 https://bugs.webkit.org/show_bug.cgi?id=51094
367 * declarative/qdeclarativewebview.cpp:
368 (QDeclarativeWebView::init):
370 2011-01-05 Yi Shen <yi.4.shen@nokia.com>
372 Reviewed by Andreas Kling.
374 [Qt] Sync qwebkitplatformplugin.h in the plugin example
375 https://bugs.webkit.org/show_bug.cgi?id=51882
377 Make examples/platformplugin/qwebkitplatformplugin.h exactly the same
378 as the one in the Api folder.
380 * examples/platformplugin/qwebkitplatformplugin.h:
382 2011-01-04 Zhe Su <suzhe@chromium.org>
384 Reviewed by Kenneth Russell.
386 Fix test LayoutTests/fast/events/ime-composition-events-001.html.
388 https://bugs.webkit.org/show_bug.cgi?id=51693
391 (QWebPagePrivate::inputMethodEvent): Calls editor->insertText() to
392 insert the commit string when no composition text is available.
394 2011-01-03 Yi Shen <yi.4.shen@nokia.com>
396 Reviewed by Adam Barth.
398 [Qt] Add SelectAll option to the context menu for the editor
399 https://bugs.webkit.org/show_bug.cgi?id=50049
401 Enable SelectAll for the Qt context menu.
404 (webActionForContextMenuAction):
406 * WebCoreSupport/WebPlatformStrategies.cpp:
407 (WebPlatformStrategies::contextMenuItemTagSelectAll):
408 * WebCoreSupport/WebPlatformStrategies.h:
410 2011-01-03 Antonio Gomes <agomes@rim.com>
412 Unreviewed crash fix.
414 Follow up of r74891: potential crash fix (bogus assertion).
416 * WebCoreSupport/EditorClientQt.cpp:
417 (WebCore::editorCommandForKeyDownEvent):
419 2011-01-03 Noam Rosenthal <noam.rosenthal@nokia.com>
421 Reviewed by Andreas Kling.
423 [Qt] document.getElementById(...) doesn't return the right object in combination with QGraphicsWidget
424 https://bugs.webkit.org/show_bug.cgi?id=51464
426 Added a way to bind any QObject created as a plugin to JavaScript,
427 by adding a custom membe to WebCore::Widget.
428 Added a test to make sure plugins created as QGraphicsWidget are
429 accessible through JavaScript.
431 * WebCoreSupport/FrameLoaderClientQt.cpp:
432 * tests/qwebpage/tst_qwebpage.cpp:
433 (PluginPage::createPlugin):
434 (tst_QWebPage::graphicsWidgetPlugin):
436 2011-01-02 Antonio Gomes <agomes@rim.com>
438 Reviewed by Kenneth Rohde Christiansen.
440 [Qt] Refactor EditorClientQt::handleKeyboardEvent
441 https://bugs.webkit.org/show_bug.cgi?id=51306
443 EditorClientQt::handleKeyboardEvent relies on QWebPagePrivate::editorActionForKeyEvent()
444 to handle all editor commands that have a QAction associted with it.
445 In practice, that covers most of editor commands (as one can see in editorCommandWebActions,
446 in qwebpage.cpp). However, there are some key down events that are associated to no QAction
447 or need special handling when features like spatial navigation or
448 caret browsing are enabled. Currently, these cases are being handled with confusing
449 and nested if/else switch's statements in EditorClientQt::handleKeyboardEvent(),
450 and the code is hardly readable.
452 This patch introduces a mapping hash for those cases, simplifying much
453 the code. Basically, nested switches statements mixed with if/else's were
454 refactored, and early returns were added right after an event gets consumed
457 Since it is a refactor only patch, there is no funcionality change at
458 all, and then no new tests are being added.
460 * WebCoreSupport/EditorClientQt.cpp:
461 (WebCore::interpretKeyEvent):
462 (WebCore::EditorClientQt::handleKeyboardEvent):
464 2011-01-01 Adam Barth <abarth@webkit.org>
466 Reviewed by Eric Seidel.
468 Move JavaScriptCore to Source
469 https://bugs.webkit.org/show_bug.cgi?id=51604
472 * docs/qtwebkit.qdocconf:
473 - Point to JavaScriptCore in its new location.
475 2010-12-29 Kent Hansen <kent.hansen@nokia.com>
477 Reviewed by Simon Hausmann.
479 [Qt] Fix compilation with Qt in namespace
480 https://bugs.webkit.org/show_bug.cgi?id=51701
482 * Api/qwebkitplatformplugin.h:
483 * WebCoreSupport/InspectorServerQt.h:
484 * tests/hybridPixmap/widget.h:
486 2010-12-23 Jan Erik Hanssen <jhanssen@sencha.com>
488 Reviewed by Alexey Proskuryakov.
490 [Qt] Composition text is not removed from the editor when composition is cancelled
491 https://bugs.webkit.org/show_bug.cgi?id=29391
493 Ensure that the composition text is cleared when an empty QInputMethodEvent
494 is received and the editor is in composition mode.
497 (QWebPagePrivate::inputMethodEvent):
499 2010-12-23 Jan Erik Hanssen <jhanssen@sencha.com>
501 Reviewed by Andreas Kling.
503 [Qt] copy and paste greek symbols to Word, TextEdit results in ?'s being shown
504 https://bugs.webkit.org/show_bug.cgi?id=35635
506 Test that QClipboard contains the charset information and unicode data
507 after copying unicode text.
509 * tests/qwebpage/tst_qwebpage.cpp:
510 (tst_QWebPage::macCopyUnicodeToClipboard):
512 2010-12-22 Sam Weinig <sam@webkit.org>
514 Reviewed by Darin Adler.
516 WebKit2 needs to mirror the frame tree in the UIProcess
517 https://bugs.webkit.org/show_bug.cgi?id=51546
519 - Add client functions to notify that a frame has been added or
520 removed from the page cache.
522 * WebCoreSupport/FrameLoaderClientQt.cpp:
523 (WebCore::FrameLoaderClientQt::didSaveToPageCache):
524 (WebCore::FrameLoaderClientQt::didRestoreFromPageCache):
525 * WebCoreSupport/FrameLoaderClientQt.h:
527 2010-12-22 Ryosuke Niwa <rniwa@webkit.org>
529 Reviewed by Eric Seidel.
531 Editor.h doesn't need to include SelectionController.h
532 https://bugs.webkit.org/show_bug.cgi?id=51441
534 Renamed SelectionController::EDirection to SelectionDirection.
536 * WebCoreSupport/EditorClientQt.cpp:
537 (WebCore::EditorClientQt::handleKeyboardEvent):
539 2010-12-23 Dawit Alemayehu <adawit@kde.org>
541 Reviewed by Kenneth Rohde Christiansen.
543 [Qt] Add a 'hasSelection' function to QWebView and QWebPage.
544 https://bugs.webkit.org/show_bug.cgi?id=48722
546 This is a convenience API that optimizes the case where checking for
547 the presence of selected content and accessing the selected content
548 are two separate actions in the client. See comment #12 in the above
549 bug report link for details.
552 (QWebPage::hasSelection):
555 (QWebView::hasSelection):
557 * tests/qwebpage/tst_qwebpage.cpp:
558 (tst_QWebPage::textSelection):
560 2010-12-20 Benjamin Poulain <benjamin.poulain@nokia.com>
562 Reviewed by Andreas Kling.
564 [Qt] Improve the readability of FrameLoaderClientQt::createPlugin()
565 https://bugs.webkit.org/show_bug.cgi?id=51330
567 Redefine the scopes to improve readability. Objects are now created in
568 the scope they are used in.
570 * WebCoreSupport/FrameLoaderClientQt.cpp:
571 (WebCore::FrameLoaderClientQt::createPlugin):
573 2010-12-17 Ariya Hidayat <ariya@sencha.com>
575 Reviewed by Antonio Gomes.
577 [Qt] GraphicsContext should respect QWebView render hints
578 https://bugs.webkit.org/show_bug.cgi?id=51208
580 Adjust the test since SmoothPixmapTransform is set by default.
582 * tests/qwebview/tst_qwebview.cpp:
583 (tst_QWebView::renderHints):
585 2010-12-05 Antonio Gomes <agomes@rim.com>
587 Reviewed by Ariya Hidayat.
589 [Qt] Fix caret browsing navigation mode
590 https://bugs.webkit.org/show_bug.cgi?id=50536
592 Caret browsing can consume editing commands even when the start
593 of current selection is not a editable content. r69582 missed this
594 case because caret browsing feature testing is very poor today.
596 This commit reintroduces part of the removed code in r69582 but
597 guarded by a isCaretBrowsingEnabled() check. No regression found.
599 * WebCoreSupport/EditorClientQt.cpp:
600 (WebCore::EditorClientQt::handleKeyboardEvent):
602 2010-12-17 Yi Shen <yi.4.shen@nokia.com>
604 Reviewed by Kenneth Rohde Christiansen.
606 [Qt] QWebPage sends out a RequestSoftwareInputPanel event
607 incorrectly in particular case
608 https://bugs.webkit.org/show_bug.cgi?id=50419
610 Add HitTestResult check before firing RequestSoftwareInputPanel event.
613 (QWebPagePrivate::mouseReleaseEvent):
614 (QWebPagePrivate::handleSoftwareInputPanel):
616 * tests/qwebpage/tst_qwebpage.cpp:
618 (tst_QWebPage::inputMethods):
620 2010-12-17 Eric Seidel <eric@webkit.org>
622 Unreviewed, rolling out r74229.
623 http://trac.webkit.org/changeset/74229
624 https://bugs.webkit.org/show_bug.cgi?id=50536
626 Broken on Snow Leopard and possibly other platforms
628 * WebCoreSupport/EditorClientQt.cpp:
629 (WebCore::EditorClientQt::handleKeyboardEvent):
631 2010-12-05 Antonio Gomes <agomes@rim.com>
633 Reviewed by Ariya Hidayat.
635 [Qt] Fix caret browsing navigation mode
636 https://bugs.webkit.org/show_bug.cgi?id=50536
638 Caret browsing can consume editing commands even when the start
639 of current selection is not a editable content. r69582 missed this
640 case because caret browsing feature testing is very poor today.
642 This commit reintroduces part of the removed code in r69582 but
643 guarded by a isCaretBrowsingEnabled() check. No regression found.
645 * WebCoreSupport/EditorClientQt.cpp:
646 (WebCore::EditorClientQt::handleKeyboardEvent):
648 2010-12-16 Ariya Hidayat <ariya@sencha.com>
650 Reviewed by Andreas Kling.
652 [Qt] GraphicsContext should respect QWebView render hints
653 https://bugs.webkit.org/show_bug.cgi?id=51208
655 Add some checks to ensure that GraphicsContext (via QWebFrame)
656 does not clobber the render hints.
659 (QWebViewPrivate::QWebViewPrivate):
660 * tests/qwebframe/tst_qwebframe.cpp:
662 2010-12-15 Laszlo Gombos <laszlo.1.gombos@nokia.com>
664 Reviewed by Antonio Gomes.
666 [Qt] Fix tst_QWebPage::geolocationRequestJS()
667 https://bugs.webkit.org/show_bug.cgi?id=46814
669 Change the test case according to the changes introduced by
670 r72603 and enable the test case.
672 * tests/qwebpage/tst_qwebpage.cpp:
673 (tst_QWebPage::geolocationRequestJS):
675 2010-12-14 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
677 Reviewed by Laszlo Gombos.
679 [Qt] Flash plugins should be windowless on QGraphicsWebView on Symbian
680 Remove #idef SYMBIAN introduced by r69396.
681 https://bugs.webkit.org/show_bug.cgi?id=50487
683 * WebCoreSupport/FrameLoaderClientQt.cpp:
684 (WebCore::FrameLoaderClientQt::createPlugin):
686 2010-10-28 MORITA Hajime <morrita@google.com>
688 Reviewed by Ojan Vafai.
690 spellcheck does not check pasted text
691 https://bugs.webkit.org/show_bug.cgi?id=40092
693 Added a stub implememntation.
695 * WebCoreSupport/EditorClientQt.h:
696 (WebCore::EditorClientQt::requestCheckingOfString):
698 2010-12-11 Yi Shen <yi.4.shen@nokia.com>
700 Reviewed by Kenneth Rohde Christiansen.
702 [Qt] Memory leaks for QWebPageClient
703 https://bugs.webkit.org/show_bug.cgi?id=50267
705 Use OwnPtr to solve this memory leak issue.
707 * Api/qgraphicswebview.cpp:
708 (QGraphicsWebViewPrivate::overlay):
709 (QGraphicsWebViewPrivate::QWebViewPrivate::pageClient):
710 (QGraphicsWebViewPrivate::syncLayers):
711 (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
712 (QGraphicsWebViewPrivate::_q_scaleChanged):
713 (QGraphicsWebViewPrivate::detachCurrentPage):
716 (QWebViewPrivate::detachCurrentPage):
717 * WebCoreSupport/ChromeClientQt.cpp:
718 (WebCore::ChromeClientQt::platformPageClient):
719 * WebCoreSupport/EditorClientQt.cpp:
720 (WebCore::EditorClientQt::setInputMethodState):
721 * WebCoreSupport/FrameLoaderClientQt.cpp:
722 (WebCore::FrameLoaderClientQt::createPlugin):
724 2010-12-11 Jan Erik Hanssen <jhanssen@sencha.com>
726 Reviewed by Andreas Kling.
728 [Qt] QWebFrame does not support QNetworkRequest::CacheLoadControl
729 https://bugs.webkit.org/show_bug.cgi?id=35671
731 Make QWebFrame respect the QNetworkRequest::CacheLoadControl attribute
732 set on the request, if any.
735 (cacheLoadControlToCachePolicy):
737 * tests/qwebframe/tst_qwebframe.cpp:
739 2010-10-11 Diego Gonzalez <diegohcg@webkit.org>
741 Reviewed by Kenneth Rohde Christiansen.
743 [Qt] Mock DeviceOrientation client for DRT
744 https://bugs.webkit.org/show_bug.cgi?id=47490
746 * WebCoreSupport/DeviceOrientationClientMockQt.cpp: Added.
747 (WebCore::DeviceOrientationClientMockQt::client):
748 (WebCore::DeviceOrientationClientMockQt::DeviceOrientationClientMockQt):
749 (WebCore::DeviceOrientationClientMockQt::~DeviceOrientationClientMockQt):
750 (WebCore::DeviceOrientationClientMockQt::setController):
751 (WebCore::DeviceOrientationClientMockQt::startUpdating):
752 (WebCore::DeviceOrientationClientMockQt::stopUpdating):
753 (WebCore::DeviceOrientationClientMockQt::lastOrientation):
754 (WebCore::DeviceOrientationClientMockQt::deviceOrientationControllerDestroyed):
755 (WebCore::DeviceOrientationClientMockQt::setOrientation):
756 * WebCoreSupport/DeviceOrientationClientMockQt.h: Added.
757 * WebCoreSupport/DeviceOrientationClientQt.cpp:
758 * WebCoreSupport/DeviceOrientationProviderQt.cpp:
759 (WebCore::DeviceOrientationProviderQt::DeviceOrientationProviderQt):
760 (WebCore::DeviceOrientationProviderQt::~DeviceOrientationProviderQt):
761 (WebCore::DeviceOrientationProviderQt::changeDeviceOrientation):
762 * WebCoreSupport/DeviceOrientationProviderQt.h:
763 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
764 (DumpRenderTreeSupportQt::activeMockDeviceOrientationClient):
765 (DumpRenderTreeSupportQt::removeMockDeviceOrientation):
766 (DumpRenderTreeSupportQt::setMockDeviceOrientation):
767 * WebCoreSupport/DumpRenderTreeSupportQt.h:
769 2010-12-10 Krithigassree Sambamurthy <krithigassree.sambamurthy@nokia.com>
771 Reviewed by Joseph Pecoraro.
773 Bug 43455 - [Qt]: Implement Application Cache Quotas
774 https://bugs.webkit.org/show_bug.cgi?id=43455
776 Added new signal to report ApplicationCache Database
782 Added new functions to accomodate new appcache layout
783 test origin-quota.html.
785 * Api/qwebsecurityorigin.cpp:
786 (QWebSecurityOrigin::setApplicationCacheQuota):
787 * Api/qwebsecurityorigin.h:
788 * WebCoreSupport/ChromeClientQt.cpp:
789 (WebCore::ChromeClientQt::reachedApplicationCacheOriginQuota):
790 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
791 (DumpRenderTreeSupportQt::clearAllApplicationCaches):
792 * WebCoreSupport/DumpRenderTreeSupportQt.h:
794 2010-12-10 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
796 Reviewed by Kenneth Rohde Christiansen.
798 [Qt] Support a QNetworkAccessManager affined to a different thread.
799 https://bugs.webkit.org/show_bug.cgi?id=50080
801 This patch introduce thread safe proxy classes for QNetworkAccessManager
803 If run in the same thread, these objects will forward the calls with
804 Qt::DirectConnection bindings, while in the other case they will use
805 Qt::QueuedConnection to carry requests accross threads.
807 This patch basically:
808 - Makes sure that all access goes through these objects
809 - Reorders signal connections to make sure we are connected when the
811 - Makes sure that no QObject in the WebCore thread is a child of the
812 reply which might be in a different thread.
813 - Forward the data directly in QByteArrays in signals instead of collecting
814 the data when the signal is handled.
816 New test: tst_QWebPage::networkAccessManagerOnDifferentThread
818 * WebCoreSupport/FrameLoaderClientQt.cpp:
819 (WebCore::FrameLoaderClientQt::download):
820 * tests/qwebpage/tst_qwebpage.cpp:
821 (QtNAMThread::QtNAMThread):
822 (QtNAMThread::~QtNAMThread):
823 (QtNAMThread::networkAccessManager):
825 (tst_QWebPage::networkAccessManagerOnDifferentThread):
827 2010-12-09 Sheriff Bot <webkit.review.bot@gmail.com>
829 Unreviewed, rolling out r73635.
830 http://trac.webkit.org/changeset/73635
831 https://bugs.webkit.org/show_bug.cgi?id=50778
833 'Side-effects on 3 css tests needs closer review' (Requested
834 by mwenge on #webkit).
836 * Api/qwebsettings.cpp:
838 * Api/qwebsettings.h:
840 2010-12-09 Robert Hogan <robert@webkit.org>
842 Reviewed by Andreas Kling.
844 [Qt] Search input field doesn't have cancel button
846 Add a cancel button to the search field and make it customizable
847 by the client. For now, use the close dialog button associated
848 with the application's style as the default.
850 https://bugs.webkit.org/show_bug.cgi?id=42887
852 * Api/qwebsettings.cpp:
854 * Api/qwebsettings.h:
856 2010-12-09 Siddharth Mathur <siddharth.mathur@nokia.com>
858 Reviewed by Laszlo Gombos.
860 Use BUILDING_WEBKIT like other ports
861 https://bugs.webkit.org/show_bug.cgi?id=50713
863 * Api/qwebkitglobal.h: change BUILD_WEBKIT to BUILDING_WEBKIT
865 2010-12-08 Qi Zhang <qi.2.zhang@nokia.com>
867 Reviewed by Kenneth Rohde Christiansen.
869 [Qt] Support OrientationChange event
870 https://bugs.webkit.org/show_bug.cgi?id=50685
872 Get OrientationChange event from qtmobility then send to webkit.
875 (QWebFrame::orientationChanged):
876 (QWebFrame::QWebFrame):
880 2010-12-07 Brian Weinstein <bweinstein@apple.com>
882 Reviewed by John Sullivan.
884 Layering Violation in ContextMenu - member variable of type HitTestResult
885 https://bugs.webkit.org/show_bug.cgi?id=50586
887 Update users of ContextMenu and ContextMenuController to match where the new functions
891 (QWebPagePrivate::createContextMenu):
892 (QWebPage::updatePositionDependentActions):
894 2010-12-07 Darin Adler <darin@apple.com>
899 (frameLoadRequest): Added missing parentheses.
901 2010-12-06 Darin Adler <darin@apple.com>
903 Reviewed by Sam Weinig.
905 Pass security origin to make local file decision correctly
906 https://bugs.webkit.org/show_bug.cgi?id=48603
909 (frameLoadRequest): Pass security origin.
911 2010-12-07 Martin Robinson <mrobinson@igalia.com>
913 Unreviewed, rolling out r73392.
914 http://trac.webkit.org/changeset/73392
915 https://bugs.webkit.org/show_bug.cgi?id=50489
917 This commit caused crashes on the GTK+ bots
921 * WebCoreSupport/FrameLoaderClientQt.cpp:
922 (WebCore::FrameLoaderClientQt::finishedLoading):
924 2010-12-06 Nate Chapin <japhet@chromium.org>
926 Reviewed by Adam Barth.
928 Update calls to DocumentWriter.
929 https://bugs.webkit.org/show_bug.cgi?id=50489
933 * WebCoreSupport/FrameLoaderClientQt.cpp:
934 (WebCore::FrameLoaderClientQt::finishedLoading):
936 2010-12-01 Jia Pu <jpu@apple.com>
938 Reviewed by Darin Adler.
940 Support multiple correction candidates panel for misspelled word on Mac OS X.
941 https://bugs.webkit.org/show_bug.cgi?id=50137
942 <rdar://problem/8568059>
944 Adopted new function signature defined in base class.
946 * WebCoreSupport/EditorClientQt.cpp:
947 (WebCore::EditorClientQt::getGuessesForWord):
948 * WebCoreSupport/EditorClientQt.h:
950 2010-11-30 Benjamin Poulain <benjamin.poulain@nokia.com>
952 Reviewed by Kenneth Rohde Christiansen.
954 [Qt] Implement layoutTestController.findString
955 https://bugs.webkit.org/show_bug.cgi?id=50236
957 Add support for the new advanced findString().
959 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
960 (DumpRenderTreeSupportQt::findString):
961 * WebCoreSupport/DumpRenderTreeSupportQt.h:
963 2010-11-30 Ojan Vafai <ojan@chromium.org>
965 Revert r72876. It caused a ~30% perf regression in chromium's bloat-http test
966 https://bugs.webkit.org/show_bug.cgi?id=50288
968 2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
969 Reviewed by Darin Adler.
970 Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
971 https://bugs.webkit.org/show_bug.cgi?id=50182
972 A display-isolated URL can only be displayed (e.g., put in an iframe,
973 hyperlinked to) by documents from that scheme. In a sense, this is a
974 generalization of some of the protections we give file URLs, but
975 instead of lumping them all together into one "local" bucket, this
976 patch creates a separate bucket for each scheme.
977 For a while, I tried using a separate bucket for each origin. That
978 would have played nicely with what Blob URLs are trying to do, but some
979 "chrome" URL pages rely on being able to display other chrome URL
980 pages, even in different origins. For example, the New Tab Page shows
981 thumbnails from the "thumbnail" host.
982 This patch also removes a bunch of unused code. I've also propagated
983 the "deprecated" status of deprecatedCanDisplay to
984 deprecatedShouldTreatURLAsLocal because that method has no other
985 callers and is really asking for uppercase/lowercase bugs. I dream of
986 someday removing these functions.
987 2010-11-29 Adam Barth <abarth@webkit.org (:abarth) (r)>
988 Reviewed by Darin Adler.
989 Introduce the notion of a "display-isolated" URL scheme for use by Chrome-internal URLs
990 https://bugs.webkit.org/show_bug.cgi?id=50182
991 This patch adds a Chromium API for registering schemes as
992 display-isolated. In a subsequent patch, I'll change the "chrome"
993 scheme in Chrome to be display isolated instead of local. That will
994 prevent file URLs from linking to chrome URLs.
996 * Api/qwebsecurityorigin.cpp:
997 (QWebSecurityOrigin::localSchemes):
999 2010-11-29 Vangelis Kokkevis <vangelis@chromium.org>
1001 Reviewed by Simon Fraser.
1003 Provide more fine grained control to ports over when to turn on accelerated
1005 https://bugs.webkit.org/show_bug.cgi?id=49998
1007 As part of this change, the old hasAcceleratedCompositing method on the ChromeClient
1008 has now been replaced by allowedCompositingTriggers which returns a bitfield of
1009 all the features which can trigger the compositor.
1012 * WebCoreSupport/ChromeClientQt.cpp:
1013 (WebCore::ChromeClientQt::allowedCompositingTriggers):
1014 * WebCoreSupport/ChromeClientQt.h:
1016 2010-11-30 Thiago Macieira <thiago.macieira@nokia.com>
1018 Reviewed by Andreas Kling.
1020 [Qt] QWebFrame::load(QNetworkRequest) should respect the CustomVerbAttribute
1022 For CustomOperation requests, pass the CustomVerbAttribute on to
1023 the WebCore::ResourceRequest.
1025 * Api/qwebframe.cpp:
1028 2010-11-25 Norbert Leser <norbert.leser@nokia.com>
1030 Reviewed by Laszlo Gombos.
1032 Updated Symbian DEF file for ARM target due to API changes
1033 via committs r72600-72603 (see bug# 46810)
1035 * symbian/eabi/QtWebKitu.def:
1037 2010-11-25 Kenneth Rohde Christiansen <kenneth@webkit.org>
1039 Reviewed by Andreas Kling and Simon Hausmann.
1041 [Qt] Calculate the -webkit-pixel-radio using the device DPI.
1042 http://webkit.org/b/50059
1044 Also, update the documentation on what a DIP is and how to override
1045 the device DPI in the case the system reports the wrong one (which
1046 unfortunately is common on X11).
1049 (QWebPagePrivate::QWebPagePrivate):
1050 (QWebPage::viewportAttributesForSize):
1052 * WebCoreSupport/ChromeClientQt.cpp:
1053 (WebCore::ChromeClientQt::scaleFactor):
1055 2010-11-24 Kristian Amlie <kristian.amlie@nokia.com>
1057 Reviewed by Andreas Kling.
1059 Fixed handling of QInputMethodEvents with nonzero replacementLength.
1061 These types of events replace text that is already in the widget, but
1062 WebKit did not check for replacementLength at all.
1064 https://bugs.webkit.org/show_bug.cgi?id=49787
1067 (QWebPagePrivate::inputMethodEvent):
1068 * tests/qwebpage/tst_qwebpage.cpp:
1069 (tst_QWebPage::inputMethods):
1071 2010-11-24 Andras Becsi <abecsi@inf.u-szeged.hu>
1073 Reviewed by Kenneth Rohde Christiansen.
1075 Make WebKit2 compile with !ENABLE(INSPECTOR).
1076 https://bugs.webkit.org/show_bug.cgi?id=49973
1078 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1079 (DumpRenderTreeSupportQt::setJavaScriptProfilingEnabled):
1081 2010-11-24 Sheriff Bot <webkit.review.bot@gmail.com>
1083 Unreviewed, rolling out r72650.
1084 http://trac.webkit.org/changeset/72650
1085 https://bugs.webkit.org/show_bug.cgi?id=50010
1087 breaks focus in scenes focus item other than graphicswebiview
1088 (Requested by tronical_ on #webkit).
1090 * Api/qgraphicswebview.cpp:
1091 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
1092 (QGraphicsWebView::QGraphicsWebView):
1093 (QGraphicsWebView::itemChange):
1094 * Api/qgraphicswebview.h:
1095 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1097 2010-11-24 Jan Erik Hanssen <jhanssen@sencha.com>
1099 Reviewed by Kenneth Rohde Christiansen.
1101 [Qt] Html autofocus not working with QGraphicsWebView
1102 https://bugs.webkit.org/show_bug.cgi?id=43169
1104 QGraphicsScene does not propagate Qt::ActivateWindowFocusReason focus
1105 events when there are no active items.
1107 * Api/qgraphicswebview.cpp:
1108 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
1109 (QGraphicsWebView::QGraphicsWebView):
1110 (QGraphicsWebView::eventFilter):
1111 (QGraphicsWebView::itemChange):
1112 * Api/qgraphicswebview.h:
1113 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1114 (FocusPage::FocusPage):
1116 (FocusPage::gotFocus):
1117 (tst_QGraphicsWebView::receivesFocusInOnShow):
1119 2010-11-23 Kenneth Rohde Christiansen <kenneth@webkit.org>
1121 Reviewed by Andreas Kling.
1123 Adapt to setShouldDelegateScrolling not being a real setting anymore.
1124 We now similarily to setUseFixedLayout and setPaintEntireContents
1125 set it on the FrameView wen transitioning to a new page.
1127 * Api/qgraphicswebview.cpp:
1128 (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1129 * WebCoreSupport/FrameLoaderClientQt.cpp:
1130 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1132 2010-11-23 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1134 Reviewed by Kenneth Rohde Christiansen.
1136 [Qt] Fix compilation with !ENABLE(INSPECTOR)
1137 https://bugs.webkit.org/show_bug.cgi?id=49942
1139 Add ENABLE(INSPECTOR) to the Qt specific files following r71981.
1141 * WebCoreSupport/InspectorClientQt.cpp:
1142 (WebCore::InspectorClientQt::inspectorDestroyed):
1143 (WebCore::InspectorClientQt::openInspectorFrontend):
1144 (WebCore::InspectorClientQt::sendMessageToFrontend):
1145 * WebCoreSupport/InspectorServerQt.cpp:
1146 (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
1148 2010-11-23 Simon Hausmann <simon.hausmann@nokia.com>
1150 Reviewed by Andreas Kling.
1152 [Qt] Restore binary compatibility with the QtWebKit 2.1 branch
1154 Re-order the enums by adding new enum entries to the end.
1156 * Api/qwebsettings.h:
1158 2010-11-23 Simon Hausmann <simon.hausmann@nokia.com>
1160 Reviewed by Tor Arne Vestbø.
1162 [Qt] Review the setUserPermission & friends API
1163 https://bugs.webkit.org/show_bug.cgi?id=46810
1165 Renamed requestPermissionFromUser to featurePermissionRequested
1166 and cancelRequestsForPermission to featurePermissionRequestCanceled.
1169 * WebCoreSupport/GeolocationPermissionClientQt.cpp:
1170 (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
1171 (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
1172 * WebCoreSupport/NotificationPresenterClientQt.cpp:
1173 (WebCore::NotificationPresenterClientQt::requestPermission):
1174 (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
1176 2010-11-23 Simon Hausmann <simon.hausmann@nokia.com>
1178 Reviewed by Tor Arne Vestbø.
1180 [Qt] Review the setUserPermission & friends API
1181 https://bugs.webkit.org/show_bug.cgi?id=46810
1183 Rename setUserPermission to setFeaturePermission
1186 (QWebPage::setFeaturePermission):
1188 * tests/qwebpage/tst_qwebpage.cpp:
1189 (JSTestPage::requestPermission):
1191 2010-11-23 Simon Hausmann <simon.hausmann@nokia.com>
1193 Reviewed by Tor Arne Vestbø.
1195 [Qt] Review the setUserPermission & friends API
1196 https://bugs.webkit.org/show_bug.cgi?id=46810
1198 Rename PermissionDomain to Feature, NotificationsPermissionDomain to Notifications
1199 and GeolocationPermissionDomain to Geolocation.
1202 (QWebPage::setUserPermission):
1204 * WebCoreSupport/GeolocationPermissionClientQt.cpp:
1205 (WebCore::GeolocationPermissionClientQt::requestGeolocationPermissionForFrame):
1206 (WebCore::GeolocationPermissionClientQt::cancelGeolocationPermissionRequestForFrame):
1207 * WebCoreSupport/NotificationPresenterClientQt.cpp:
1208 (WebCore::NotificationPresenterClientQt::requestPermission):
1209 (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission):
1210 * tests/qwebpage/tst_qwebpage.cpp:
1211 (JSTestPage::requestPermission):
1212 (tst_QWebPage::geolocationRequestJS):
1214 2010-11-23 Simon Hausmann <simon.hausmann@nokia.com>
1216 Reviewed by Tor Arne Vestbø.
1218 [Qt] Review the setUserPermission & friends API
1219 https://bugs.webkit.org/show_bug.cgi?id=46810
1221 Add a ByUser suffix to PermissionGranted/Denied. In the future
1222 we can add PermissionGrantedByDefault.
1225 (QWebPage::setUserPermission):
1227 * WebCoreSupport/GeolocationPermissionClientQt.cpp:
1228 (WebCore::GeolocationPermissionClientQt::setPermission):
1229 * tests/qwebpage/tst_qwebpage.cpp:
1230 (JSTestPage::requestPermission):
1232 2010-11-22 Jan Erik Hanssen <jhanssen@sencha.com>
1234 Reviewed by Kenneth Rohde Christiansen.
1236 [Qt] QWebElement::appendInside() doesn't work on head elements
1237 https://bugs.webkit.org/show_bug.cgi?id=49166
1239 Make QWebElement::appendInside() call
1240 Element::deprecatedCreateContextualFragment(), bypassing the check for
1241 the HEAD tag in the HTMLElement implementation of this function.
1243 * Api/qwebelement.cpp:
1244 (QWebElement::appendInside):
1245 * tests/qwebelement/tst_qwebelement.cpp:
1246 (tst_QWebElement::addElementToHead):
1248 2010-11-20 Andreas Kling <kling@webkit.org>
1250 Reviewed by Antonio Gomes.
1252 [Qt] Dragging a selection should use a rendering of the selection as "cursor" for the drag
1253 https://bugs.webkit.org/show_bug.cgi?id=49870
1255 * WebCoreSupport/DragClientQt.cpp:
1256 (WebCore::DragClientQt::startDrag): Pass the DragImage to QDrag::setPixmap()
1258 2010-11-20 Sam Magnuson <smagnuso@gmail.com>
1260 Reviewed by Andreas Kling.
1262 [Qt] crash when attempting to add a JS object
1263 https://bugs.webkit.org/show_bug.cgi?id=49287
1265 * Api/qwebframe.cpp:
1266 (QWebFrame::addToJavaScriptWindowObject):
1268 Test: LayoutTests/fast/frames/sandboxed-iframe-plugins.html
1270 2010-11-20 Sheriff Bot <webkit.review.bot@gmail.com>
1272 Unreviewed, rolling out r72471.
1273 http://trac.webkit.org/changeset/72471
1274 https://bugs.webkit.org/show_bug.cgi?id=49865
1276 broke two IME tests on Qt (Requested by kling on #webkit).
1279 (QWebPagePrivate::inputMethodEvent):
1280 * tests/qwebpage/tst_qwebpage.cpp:
1281 (tst_QWebPage::inputMethods):
1283 2010-11-19 Kristian Amlie <kristian.amlie@nokia.com>
1285 Reviewed by Andreas Kling.
1287 Fixed handling of QInputMethodEvents with nonzero replacementLength.
1289 These types of events replace text that is already in the widget, but
1290 WebKit did not check for replacementLength at all.
1292 Also made sure that the preeditString is always respected, even if
1293 there is committed text. This is how QLineEdit does it.
1295 https://bugs.webkit.org/show_bug.cgi?id=49787
1298 (QWebPagePrivate::inputMethodEvent):
1299 * tests/qwebpage/tst_qwebpage.cpp:
1300 (tst_QWebPage::inputMethods):
1302 2010-11-19 Benjamin Poulain <benjamin.poulain@nokia.com>
1304 Reviewed by Kenneth Rohde Christiansen.
1306 [Qt] Transition and animation do not work with QWebView anymore
1307 https://bugs.webkit.org/show_bug.cgi?id=49797
1309 Accelerated compositing should not be enabled on QWebView without
1312 * WebCoreSupport/PageClientQt.h:
1313 (WebCore::PageClientQWidget::allowsAcceleratedCompositing):
1315 2010-11-19 Yi Shen <yi.4.shen@nokia.com>
1317 Reviewed by Laszlo Gombos.
1319 [Qt] Memory leak in QWebInspector
1320 https://bugs.webkit.org/show_bug.cgi?id=49765
1322 Delete QWebInspectorPrivate in ~QWebInspector()
1324 * Api/qwebinspector.cpp:
1325 (QWebInspector::~QWebInspector):
1327 2010-11-19 Sam Magnuson <smagnuso@gmail.com>
1329 Reviewed by Andreas Kling.
1331 [Qt] Compile with QT_NO_UNDOCOMMAND
1332 https://bugs.webkit.org/show_bug.cgi?id=49752
1334 * WebCoreSupport/EditCommandQt.cpp:
1335 (EditCommandQt::EditCommandQt):
1336 * WebCoreSupport/EditCommandQt.h:
1338 2010-11-19 Yi Shen <yi.4.shen@nokia.com>
1340 Reviewed by Andreas Kling.
1342 https://bugs.webkit.org/show_bug.cgi?id=49200
1343 [Qt] bugs in Composition mode for QWebPage::inputMethodEvent & inputMethodQuery()
1345 Make QWebPage work as following when editor is in composition mode:
1346 1. anchor position and cursor position are the same and always >= 0
1347 2. current selection is always null
1350 (QWebPagePrivate::inputMethodEvent):
1351 (QWebPage::inputMethodQuery):
1352 * tests/qwebpage/tst_qwebpage.cpp:
1353 (tst_QWebPage::inputMethods):
1355 2010-11-18 Gavin Barraclough <barraclough@apple.com>
1357 Build fix - update error messages folllowing r72360.
1359 * tests/qwebframe/tst_qwebframe.cpp:
1361 2010-11-12 Luiz Agostini <luiz.agostini@openbossa.org>
1363 Reviewed by Andreas Kling.
1365 [Qt] Static platform plugin support
1366 https://bugs.webkit.org/show_bug.cgi?id=49470
1368 Adding support for statically linked platform plugins.
1370 * WebCoreSupport/QtPlatformPlugin.cpp:
1371 (WebCore::QtPlatformPlugin::loadStaticallyLinkedPlugin):
1372 (WebCore::QtPlatformPlugin::plugin):
1373 * WebCoreSupport/QtPlatformPlugin.h:
1375 2010-11-17 Andreas Kling <kling@webkit.org>
1377 Reviewed by Kenneth Rohde Christiansen.
1379 Reuse the size of the actualVisibleContentRect when loading a new page
1380 or navigating session history.
1382 * WebCoreSupport/FrameLoaderClientQt.cpp:
1383 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1385 2010-11-17 Dimitri Glazkov <dglazkov@chromium.org>
1387 Reviewed by Darin Adler.
1389 Converge means of querying a parent node into one way, which is Node::parentNode.
1390 https://bugs.webkit.org/show_bug.cgi?id=49686
1392 * Api/qwebelement.cpp:
1393 (QWebElement::prependOutside): Changed to use parentNode.
1394 (QWebElement::appendOutside): Ditto.
1395 (QWebElement::encloseContentsWith): Ditto.
1396 (QWebElement::encloseWith): Ditto.
1398 2010-11-16 Simon Hausmann <simon.hausmann@nokia.com>
1400 Reviewed by Andreas Kling.
1402 [Qt] Remove synchronous QWebPage::checkPermissions signal
1403 https://bugs.webkit.org/show_bug.cgi?id=46810
1405 As decided in the API review, we remove this signal and replace its only use currently
1406 with cached credentials.
1409 (QWebPage::setUserPermission): Pass the WebCore frame instead of the QWebFrame.
1411 * WebCoreSupport/NotificationPresenterClientQt.cpp:
1412 (WebCore::NotificationPresenterClientQt::checkPermission): Replaced explicit
1413 signal emission with hash lookup of previously granted permission (or not).
1414 (WebCore::NotificationPresenterClientQt::cancelRequestsForPermission): Remove
1415 any previously cached/granted permission for the given script execution context.
1416 (WebCore::NotificationPresenterClientQt::allowNotificationForFrame): Do not
1417 only serve pending permission requests but before calling the JS callbacks, remember
1418 the permission for subsequent synchronous checkPermission() calls.
1419 * WebCoreSupport/NotificationPresenterClientQt.h: Add cache for permissions.
1421 2010-11-15 Gavin Barraclough <barraclough@apple.com>
1423 Reviewed by NOBODY build fix.
1425 Fix test broken by earlier patch.
1427 * tests/qwebframe/tst_qwebframe.cpp:
1429 2010-11-15 Yi Shen <yi.4.shen@nokia.com>
1431 Reviewed by Andreas Kling.
1433 [Qt] ZoomTextOnly doesn't work
1434 https://bugs.webkit.org/show_bug.cgi?id=49568
1436 Check QWebSettings::ZoomTextOnly attribute before applying zoom
1438 * Api/qwebframe.cpp:
1439 (QWebFrame::textSizeMultiplier):
1440 (QWebFrame::setZoomFactor):
1441 (QWebFrame::zoomFactor):
1442 * Api/qwebframe_p.h:
1443 (QWebFramePrivate::QWebFramePrivate):
1445 2010-11-14 Andreas Kling <kling@webkit.org>
1447 Reviewed by Antonio Gomes.
1449 REGRESSION(r71895): API test javaScriptWindowObjectCleared fails
1450 https://bugs.webkit.org/show_bug.cgi?id=49466
1452 As of r71895 empty inline scripts are no longer executed and so
1453 the javaScriptWindowObjectCleared() signal is no longer triggered
1454 by <script></script>.
1456 * tests/qwebframe/tst_qwebframe.cpp:
1458 2010-11-12 Jacob Dinu <dinu.jacob@nokia.com>
1460 Reviewed by Andreas Kling.
1462 [Qt] Update .def file for Symbian
1463 https://bugs.webkit.org/show_bug.cgi?id=49456
1465 Added missing symbols from revisions r69825, r70470, r71806
1467 * symbian/eabi/QtWebKitu.def:
1469 2010-11-12 Benjamin Poulain <benjamin.poulain@nokia.com>
1471 Reviewed by Andreas Kling.
1473 [Qt] Need to implement WebKit::pluginWillHandleLoadError for WebKit2
1474 https://bugs.webkit.org/show_bug.cgi?id=48764
1476 Add the missing error.
1478 * WebCoreSupport/FrameLoaderClientQt.cpp:
1479 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
1481 2010-11-11 Yi Shen <yi.4.shen@nokia.com>
1483 Reviewed by Andreas Kling.
1485 [Qt] QWebScriptWorld::world() may crash
1486 https://bugs.webkit.org/show_bug.cgi?id=49342
1488 * Api/qwebscriptworld.cpp:
1489 (QWebScriptWorld::world):
1491 2010-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
1493 Reviewed by Andreas Kling.
1495 [Qt] Add an API for overriding the actual visible content rect in WebCore
1496 https://bugs.webkit.org/show_bug.cgi?id=49373
1499 (QWebPage::setActualVisibleContentRect):
1502 2010-11-11 Andreas Kling <kling@webkit.org>
1504 Reviewed by Kenneth Rohde Christiansen.
1506 FrameView: Don't clip to visibleContentRect in paintEntireContents mode
1507 https://bugs.webkit.org/show_bug.cgi?id=49375
1509 Use paintEntireContents in combination with tiling, allowing to
1510 actually set visibleContentRect to something different from
1511 the actual contents size.
1513 * Api/qgraphicswebview.cpp:
1514 (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1515 * WebCoreSupport/FrameLoaderClientQt.cpp:
1516 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1518 2010-11-10 Sheriff Bot <webkit.review.bot@gmail.com>
1520 Unreviewed, rolling out r71733.
1521 http://trac.webkit.org/changeset/71733
1522 https://bugs.webkit.org/show_bug.cgi?id=49319
1524 made qt bot crashy and sad (Requested by kling on #webkit).
1526 * Api/qgraphicswebview.cpp:
1527 (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1528 * WebCoreSupport/FrameLoaderClientQt.cpp:
1529 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1531 2010-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
1533 Reviewed by Andreas Kling.
1535 Use paintEntireContents in combination with tiling, allowing to
1536 actually set visibleContentRect to something different from
1537 the actual contents size.
1539 * Api/qgraphicswebview.cpp:
1540 (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
1541 * WebCoreSupport/FrameLoaderClientQt.cpp:
1542 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1544 2010-11-08 Benjamin Poulain <benjamin.poulain@nokia.com>
1546 Reviewed by Andreas Kling.
1548 [Qt] build error in WebKit/qt/Api/qwebpage.cpp in Qt 4.7.0
1549 https://bugs.webkit.org/show_bug.cgi?id=47427
1551 Add a missing guard in order to be able to compile when
1552 ENABLE(TOUCH_EVENTS) is not defined.
1555 (QWebPagePrivate::touchEvent):
1557 2010-11-08 Alexey Proskuryakov <ap@apple.com>
1559 Reviewed by Darin Adler.
1561 https://bugs.webkit.org/show_bug.cgi?id=48685
1562 Notify UI process about focused frame
1564 Added an empty implementation of the new ChromeClient method.
1566 * WebCoreSupport/ChromeClientQt.cpp:
1567 (WebCore::ChromeClientQt::focusedNodeChanged): Removed unneeded namespace prefix.
1568 (WebCore::ChromeClientQt::focusedFrameChanged):
1569 * WebCoreSupport/ChromeClientQt.h:
1571 2010-11-08 Noam Rosenthal <noam.rosenthal@nokia.com>
1573 Reviewed by Kenneth Rohde Christiansen.
1575 [Texmap] [Qt] Texture mapper initial implementation
1576 https://bugs.webkit.org/show_bug.cgi?id=47070
1578 Reorganized the textureMapper to be a member of QWebFramePrivate, to help with making
1579 TextureMapper thread-safe.
1581 * Api/qwebframe.cpp:
1582 (QWebFramePrivate::renderCompositedLayers):
1583 * Api/qwebframe_p.h:
1584 * WebCoreSupport/PageClientQt.cpp:
1585 (WebCore::PlatformLayerProxyQt::setTextureMapper):
1586 (WebCore::PlatformLayerProxyQt::textureMapper):
1587 (WebCore::PlatformLayerProxyQWidget::PlatformLayerProxyQWidget):
1588 (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsObject):
1590 2010-11-07 Adam Barth <abarth@webkit.org>
1592 Reviewed by Eric Seidel.
1594 Rename Cache to MemoryCache
1595 https://bugs.webkit.org/show_bug.cgi?id=49159
1598 * Api/qwebsettings.cpp:
1600 2010-11-07 Chang Shu <chang.shu@nokia.com>
1602 Reviewed by Antonio Gomes.
1604 Add a helper function to avoid duplicated code.
1605 https://bugs.webkit.org/show_bug.cgi?id=49085
1607 * WebCoreSupport/EditorClientQt.cpp:
1608 (WebCore::EditorClientQt::handleKeyboardEvent):
1610 2010-11-05 Chris Marrin <cmarrin@apple.com>
1612 Reviewed by Simon Fraser.
1614 Move resumeAnimations/suspendAnimations from Frame to AnimationController.
1615 https://bugs.webkit.org/show_bug.cgi?id=49073
1617 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1618 (DumpRenderTreeSupportQt::suspendAnimations):
1619 (DumpRenderTreeSupportQt::resumeAnimations):
1621 2010-11-03 Antonio Gomes <tonikitoo@webkit.org>, Andre Pedralho <andre.pedralho@gmail.com>
1623 Reviewed by Kenneth Rohde Christiansen and Antti Koivisto.
1625 [Qt] Making effective use of nodesFromRect.
1626 https://bugs.webkit.org/show_bug.cgi?id=44089
1628 Patch adds a helper class (named TouchAdjuster) to improve tap actions
1629 on mobile touch devices. TouchAdjuster makes use of the newly added rect
1630 based hit test extension through the Document::nodesFromRect method.
1631 Given a rectangle as input, nodesFromRect returns a z-index ordered list
1632 of nodes whose boundaries intersect the rectangle.
1634 Basically the TouchAdjuster class intercepts the QGraphicsSceneMouseEvent
1635 passed to both QWebPagePrivate::mouse{Press,Release}Event methods before
1636 they are passed down to WebCore. The goal is to infer the target click position.
1637 For that, a rectangle is built up using the event position as a center point and
1638 expanding it based on the values and directions set in the Platform Plugin
1639 QWebTouchModifier::hitTestPadding.
1641 TouchAdjuster iterates over the list of nodes returned by nodesFromRect and
1642 picks the clickable one that has the largest intersection area with the hit
1643 test rectangle. The target position is then the center point of this intersection
1646 In case of no clickable node intersects the hit test area, the click position
1649 TouchAdjuster is *only* working for QGraphicsWebView based views.
1652 (QWebPagePrivate::mousePressEvent):
1653 (QWebPagePrivate::mouseReleaseEvent):
1654 (QWebPagePrivate::adjustPointForClicking):
1655 (QWebPagePrivate::TouchAdjuster::TouchAdjuster):
1656 (QWebPagePrivate::TouchAdjuster::findCandidatePointForTouch):
1657 (isClickableElement):
1659 (isValidFrameOwner):
1663 2010-10-20 Chang Shu <chang.shu@nokia.com>, Antonio Gomes <tonikitoo@webkit.org>
1665 Reviewed by Simon Fraser.
1667 [Qt] Makes <input type=text> and <textarea> functional with
1668 Spatial Navigation enabled. Before this patch, the focus cannot
1669 move away from input box once it is in. This patch allows focus
1670 move to neighbor nodes when the caret reaches the edge of the texts.
1671 This patch does not support yet cases where the focused <input>
1672 has a JS handler for the arrow keys.
1673 https://bugs.webkit.org/show_bug.cgi?id=37153
1675 * WebCoreSupport/EditorClientQt.cpp:
1676 (WebCore::EditorClientQt::handleKeyboardEvent):
1678 2010-11-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
1680 Reviewed by David Hyatt.
1682 Delegate scrolling via a separate method
1683 https://bugs.webkit.org/show_bug.cgi?id=48988
1685 Implement delegatedScrollRequested and make it emit the
1686 scrollRequested signal for Qt.
1688 * WebCoreSupport/ChromeClientQt.cpp:
1689 (WebCore::ChromeClientQt::delegatedScrollRequested):
1690 * WebCoreSupport/ChromeClientQt.h:
1692 2010-11-04 Robert Hogan <robert@webkit.org>
1694 Reviewed by Andreas Kling.
1696 [Qt] Clarify expected return values of innerXml(), outerXml()
1698 If you put HTML in (e.g. using setHTML()) you will get HTML out,
1699 even if you marked it up as XML.
1701 https://bugs.webkit.org/show_bug.cgi?id=44876
1703 * Api/qwebelement.cpp:
1705 2010-11-03 Andre Pedralho <andre.pedralho@gmail.com>
1707 Reviewed by Kenneth Rohde Christiansen.
1709 Using the Platform Plugin to define the default values for the padding of HitTestResult.
1710 https://bugs.webkit.org/show_bug.cgi?id=48450
1712 * Api/qwebkitplatformplugin.h:
1713 (QWebTouchModifier::~QWebTouchModifier):
1714 * WebCoreSupport/QtPlatformPlugin.cpp:
1715 (WebCore::QtPlatformPlugin::createTouchModifier):
1716 * WebCoreSupport/QtPlatformPlugin.h:
1717 * examples/platformplugin/WebPlugin.cpp:
1718 (WebPlugin::supportsExtension):
1719 (WebPlugin::createExtension):
1720 * examples/platformplugin/WebPlugin.h:
1721 (TouchModifier::hitTestPaddingForTouch):
1722 * examples/platformplugin/qwebkitplatformplugin.h:
1723 (QWebTouchModifier::~QWebTouchModifier):
1725 2010-11-03 Andreas Kling <kling@webkit.org>
1727 Reviewed by Kenneth Rohde Christiansen.
1729 [Qt] QGWV: Keep the scrolling delegation intact when switching pages
1731 * Api/qgraphicswebview.cpp:
1732 (QGraphicsWebViewPrivate::updateResizesToContentsForPage): Turn on/off
1733 scrolling delegation depending on the resizeToContents mode.
1734 (QGraphicsWebViewPrivate::detachCurrentPage): Turn off scrolling delegation.
1735 (QGraphicsWebView::setResizesToContents):
1737 2010-11-03 Kenneth Rohde Christiansen <kenneth@webkit.org>
1739 Reviewed by Andreas Kling.
1741 Make it possible to delegate scrolling to the UI
1742 https://bugs.webkit.org/show_bug.cgi?id=48907
1744 Enable scrolling delegation when setResizesToContents is active.
1746 * Api/qgraphicswebview.cpp:
1747 (QGraphicsWebView::setResizesToContents):
1749 2010-11-03 Daniel Bates <dbates@rim.com>
1751 For unnamed frames, window.name returns a generated name
1752 https://bugs.webkit.org/show_bug.cgi?id=6751
1756 Substitute FrameTree::uniqueName() for FrameTree::name() in the Qt port.
1758 * Api/qwebframe.cpp:
1759 (QWebFrame::frameName):
1761 2010-11-02 Noam Rosenthal <noam.rosenthal@nokia.com>
1763 Reviewed by Kenneth Rohde Christiansen.
1765 Some refactor for texmap to enable WebKit2: remove globals, and allow TextureMapper to exist without a GraphicsContext.
1766 This will allow rendering the TextureMapperNode tree without an active QPainter, into the current GL context.
1767 Most of the changes simply move the globas in TextureMapperGL into members of that class.
1769 [Texmap] [Qt] Texture mapper initial implementation
1770 https://bugs.webkit.org/show_bug.cgi?id=47070
1772 * Api/qwebframe.cpp:
1773 (QWebFramePrivate::renderFromTiledBackingStore):
1774 (QWebFramePrivate::renderCompositedLayers):
1775 (QWebFramePrivate::renderRelativeCoords):
1776 * Api/qwebframe_p.h:
1778 2010-11-01 Brady Eidson <beidson@apple.com>
1780 Reviewed by Anders Carlsson.
1782 <rdar://problem/7660547> and https://bugs.webkit.org/show_bug.cgi?id=48699
1783 Context menu support for WebKit 2.
1785 * WebCoreSupport/ChromeClientQt.h:
1786 (WebCore::ChromeClientQt::showContextMenu):
1788 2010-10-31 Robert Hogan <robert@webkit.org>
1790 Reviewed by Antonio Gomes.
1792 [Qt] Support nodesFromRect in DRT
1794 https://bugs.webkit.org/show_bug.cgi?id=48716
1796 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1797 (DumpRenderTreeSupportQt::nodesFromRect):
1798 * WebCoreSupport/DumpRenderTreeSupportQt.h:
1800 2010-10-31 Andreas Kling <kling@webkit.org>
1802 Reviewed by Kenneth Rohde Christiansen.
1804 [Qt] Short-circuit QWebPage::selectedText() if frame has no selection
1805 https://bugs.webkit.org/show_bug.cgi?id=48736
1807 Do an early return if the selection is empty.
1809 No new tests, this is covered by tst_QWebPage::findText().
1812 (QWebPage::selectedText):
1814 2010-10-30 Andreas Kling <kling@webkit.org>
1816 Reviewed by Antonio Gomes.
1818 [Qt] IM: Don't manipulate selection via RenderTextControl
1819 https://bugs.webkit.org/show_bug.cgi?id=48700
1821 Go directly through the Frame's SelectionController instead.
1823 No new tests, this is covered by tst_QWebPage::inputMethods.
1826 (QWebPagePrivate::inputMethodEvent):
1827 (QWebPage::inputMethodQuery):
1829 2010-10-29 Daniel Bates <dbates@rim.com>
1831 No review, rolling out 70971.
1832 http://trac.webkit.org/changeset/70971
1833 https://bugs.webkit.org/show_bug.cgi?id=6751
1835 Rolling out changeset 70971 <http://trac.webkit.org/changeset/70971> since
1836 it caused layout test failures on all bots. In particular, the
1837 child count in a generated frame name differs after this patch. We need
1838 to look into this further.
1840 * Api/qwebframe.cpp:
1841 (QWebFrame::frameName):
1843 2010-10-28 Antonio Gomes <agomes@rim.com>
1845 Reviewed by Ojan Vafai.
1847 Needs a "LinuxEditingBehavior", perhaps with a better name
1848 https://bugs.webkit.org/show_bug.cgi?id=36627
1850 Adding support to Qt's DRTSupport class to test the newly introduced Unix editing behavior.
1852 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
1853 (DumpRenderTreeSupportQt::setEditingBehavior):
1855 2010-10-29 Daniel Bates <dbates@rim.com>
1857 Reviewed by Adam Barth.
1859 For unnamed frames, window.name returns a generated name
1860 https://bugs.webkit.org/show_bug.cgi?id=6751
1862 Modified Qt-port to use FrameTree::uniqueName().
1864 * Api/qwebframe.cpp:
1865 (QWebFrame::frameName):
1867 2010-10-29 Andreas Kling <kling@webkit.org>
1869 Reviewed by Ariya Hidayat.
1871 [Qt] QWebPage's InputMethod event handling calls ShortcutOverride handler too
1872 https://bugs.webkit.org/show_bug.cgi?id=48692
1875 (QWebPage::event): Add missing break statement.
1877 2010-10-29 Ryosuke Niwa <rniwa@webkit.org>
1879 Reviewed by Darin Adler.
1881 Remove RenderTextControl::setSelectionRange
1882 https://bugs.webkit.org/show_bug.cgi?id=47870
1884 Converted RenderTextControll::setSelectionRange to a global function.
1887 (QWebPagePrivate::inputMethodEvent): Calls setSelectionRange.
1889 2010-10-29 Darin Adler <darin@apple.com>
1891 Reviewed by Sam Weinig.
1893 Change BackForwardList clients to use BackForwardListImpl to prepare for further refactoring
1894 https://bugs.webkit.org/show_bug.cgi?id=48574
1896 * Api/qwebhistory.cpp:
1897 (QWebHistory::clear):
1898 * Api/qwebhistory_p.h:
1900 (QWebPagePrivate::QWebPagePrivate):
1901 Use BackForwardListImpl.
1903 2010-10-29 Alexey Proskuryakov <ap@apple.com>
1905 Reviewed by Darin Adler.
1907 https://bugs.webkit.org/show_bug.cgi?id=48576
1908 Let WebKit2 client know when a frame is a frameset
1910 Added a blank implementation of the new FrameLoaderClient method.
1912 * WebCoreSupport/FrameLoaderClientQt.h:
1913 * WebCoreSupport/FrameLoaderClientQt.cpp:
1914 (WebCore::FrameLoaderClientQt::dispatchDidBecomeFrameset):
1916 2010-10-29 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1918 Reviewed by Andreas Kling.
1920 [Qt] Fix tst_QWebFrame on XVFB.
1921 https://bugs.webkit.org/show_bug.cgi?id=48637
1923 These tests relied on a window manager to activate the window.
1926 - tst_QWebFrame::popupFocus()
1927 - tst_QwebFrame::inputFieldFocus()
1929 * tests/qwebframe/tst_qwebframe.cpp:
1931 2010-10-28 Noam Rosenthal <noam.rosenthal@nokia.com>
1933 Reviewed by Ariya Hidayat.
1935 [Texmap] [Qt] Texture mapper initial implementation
1936 https://bugs.webkit.org/show_bug.cgi?id=47070
1940 * WebCoreSupport/PageClientQt.cpp:
1941 (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsObject):
1942 (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
1943 (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
1944 * WebCoreSupport/PageClientQt.h:
1946 2010-10-28 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1948 Reviewed by Andreas Kling.
1950 [Qt] QWebElement: Don't retrieve CSS rules through DOMWindow.
1951 https://bugs.webkit.org/show_bug.cgi?id=48519
1953 JavaScript is prevented from retrieving cross-domain CSS rules since r70335.
1954 This patch allow QWebElement to retrive style without this limitation
1955 by asking the Document directly instead of going through DOMWindow.
1958 - tst_QWebFrame::setHtmlWithResource()
1959 - tst_QWebElement::style()
1961 * Api/qwebelement.cpp:
1962 (QWebElement::styleProperty):
1964 2010-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
1966 Reviewed by Andreas Kling.
1968 Make Qt viewportAttributesForSize not assert on (0, 0) size
1969 https://bugs.webkit.org/show_bug.cgi?id=48524
1971 We now return an invalid (isValid() == false) ViewportAttributes
1972 instance when the supplied size is (0, 0).
1975 (QWebPage::viewportAttributesForSize):
1977 2010-10-27 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1979 Reviewed by Kenneth Rohde Christiansen.
1981 [Qt] Fix tst_QWebFrame::popupFocus().
1982 https://bugs.webkit.org/show_bug.cgi?id=48432
1984 - Call setFocus() before show() to work around a but in Qt.
1985 - Remove the check on combo at the end since hidePopup() leads
1986 indirectly to its destruction and segfault.
1988 * tests/qwebframe/tst_qwebframe.cpp:
1990 2010-10-26 Jenn Braithwaite <jennb@chromium.org>
1992 Reviewed by Dmitry Titov.
1994 Resource tracking failure when trying to move a frame between documents
1995 https://bugs.webkit.org/show_bug.cgi?id=44713
1997 * WebCoreSupport/FrameLoaderClientQt.cpp:
1998 (WebCore::FrameLoaderClientQt::transferLoadingResourceFromPage):
2000 * WebCoreSupport/FrameLoaderClientQt.h:
2002 2010-10-26 Yi Shen <yi.4.shen@nokia.com>
2004 Reviewed by Andreas Kling.
2006 [Qt] Skipping popup focus test for symbian
2007 https://bugs.webkit.org/show_bug.cgi?id=48324
2009 * tests/qwebframe/tst_qwebframe.cpp:
2011 2010-10-26 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2013 Reviewed by Andreas Kling.
2015 [Qt] Unit tests: setHtml("data:text/html,...") -> load(QUrl("data:text/html,..."))
2016 https://bugs.webkit.org/show_bug.cgi?id=48319
2018 These tests were failing since the new HTML parser.
2019 This patch removes the content type from the error page as well.
2021 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2022 (tst_QGraphicsWebView::crashOnViewlessWebPages):
2023 * tests/qwebelement/tst_qwebelement.cpp:
2024 (tst_QWebElement::frame):
2025 * tests/qwebpage/tst_qwebpage.cpp:
2026 (tst_QWebPage::loadFinished):
2027 (ErrorPage::extension):
2028 (tst_QWebPage::errorPageExtension):
2029 (tst_QWebPage::errorPageExtensionInIFrames):
2030 (tst_QWebPage::errorPageExtensionInFrameset):
2032 2010-10-25 No'am Rosenthal <noam.rosenthal@nokia.com>
2034 Reviewed by Kenneth Rohde Christiansen.
2036 [Texmap] [Qt] Texture mapper initial implementation
2037 https://bugs.webkit.org/show_bug.cgi?id=47070
2039 Glue layer (WebCoreSupport) changes to allow connecting TextureMapper to a Qt PageClient, i.e.
2040 a QWebView or a QGraphicsWebView. This enables the new type, TextureMapperPlatformLayer, to be recognized both by
2041 the compositor and by the page client.
2042 Note that this is temporarily an opt-in, under USE(TEXTURE_MAPPER)
2045 * Api/qwebframe_p.h:
2046 (QWebFramePrivate::QWebFramePrivate):
2048 (QWebPage::setView):
2049 * WebCoreSupport/ChromeClientQt.cpp:
2050 (WebCore::ChromeClientQt::attachRootGraphicsLayer):
2051 * WebCoreSupport/PageClientQt.cpp:
2052 (WebCore::PlatformLayerProxyQt::PlatformLayerProxyQt):
2053 (WebCore::PlatformLayerProxyQt::~PlatformLayerProxyQt):
2054 (WebCore::PlatformLayerProxyQt::setSizeChanged):
2055 (WebCore::PlatformLayerProxyQWidget::PlatformLayerProxyQWidget):
2056 (WebCore::PlatformLayerProxyQWidget::eventFilter):
2057 (WebCore::PlatformLayerProxyQWidget::setNeedsDisplay):
2058 (WebCore::PlatformLayerProxyQWidget::setNeedsDisplayInRect):
2059 (WebCore::PlatformLayerProxyQGraphicsObject::PlatformLayerProxyQGraphicsWidget):
2060 (WebCore::PlatformLayerProxyQGraphicsObject::setNeedsDisplay):
2061 (WebCore::PlatformLayerProxyQGraphicsObject::setNeedsDisplayInRect):
2062 (WebCore::PageClientQWidget::setRootGraphicsLayer):
2063 (WebCore::PageClientQWidget::markForSync):
2064 (WebCore::PageClientQWidget::syncLayers):
2065 (WebCore::PageClientQGraphicsWidget::updateCompositingScrollPosition):
2066 (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
2067 (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
2068 * WebCoreSupport/PageClientQt.h:
2069 (WebCore::PageClientQWidget::PageClientQWidget):
2070 (WebCore::PageClientQWidget::allowsAcceleratedCompositing):
2071 (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
2073 2010-10-25 Johnny Ding <jnd@chromium.org>
2075 Reviewed by Tony Chang.
2077 Dump the gesture status of frame in frame load callbacks in DumpRenderTree
2078 by adding a new method dumpUserGestureInFrameLoadCallbacks.
2079 Now only dump the gesture status in "DidStartProvisionalLoad" callback.
2080 https://bugs.webkit.org/show_bug.cgi?id=47849
2082 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2083 (DumpRenderTreeSupportQt::dumpUserGestureInFrameLoader):
2084 * WebCoreSupport/DumpRenderTreeSupportQt.h:
2085 * WebCoreSupport/FrameLoaderClientQt.cpp:
2086 (drtPrintFrameUserGestureStatus):
2087 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
2088 (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
2089 (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
2090 (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
2091 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2092 * WebCoreSupport/FrameLoaderClientQt.h:
2094 2010-10-22 Sam Weinig <sam@webkit.org>
2096 Reviewed by Anders Carlsson.
2098 WebKit2 needs to pass the current event modifier flags when requesting a new window
2099 https://bugs.webkit.org/show_bug.cgi?id=48140
2103 * WebCoreSupport/ChromeClientQt.cpp:
2104 (WebCore::ChromeClientQt::createWindow):
2105 * WebCoreSupport/ChromeClientQt.h:
2106 * WebCoreSupport/FrameLoaderClientQt.cpp:
2107 (WebCore::FrameLoaderClientQt::dispatchCreatePage):
2108 * WebCoreSupport/FrameLoaderClientQt.h:
2109 Add NavigationAction parameter.
2111 2010-10-22 Yi Shen <yi.4.shen@nokia.com>
2113 Reviewed by Andreas Kling.
2115 [Qt] InspectorClientQt crashes when deleting a qwebpage which has an inspector
2116 https://bugs.webkit.org/show_bug.cgi?id=48079
2119 (QWebPagePrivate::~QWebPagePrivate):
2120 (QWebPage::~QWebPage):
2122 2010-10-22 Benjamin Poulain <benjamin.poulain@nokia.com>
2124 Reviewed by Simon Hausmann.
2126 [Qt] All widgets are rendered incorrectly when rendered through a cache
2127 https://bugs.webkit.org/show_bug.cgi?id=47767
2129 Add a new test for rendering with tiling.
2131 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
2132 (tst_QGraphicsWebView::widgetsRenderingThroughCache):
2134 2010-10-21 Robert Hogan <robert@webkit.org>
2136 Reviewed by Simon Hausmann.
2138 [Qt] Sending a QInputMethodEvent::Selection event forces the
2139 Editor to go into Composition mode
2141 Improve QWebPage handling of input method events:
2142 - Selections don't trigger entering composition mode.
2143 - Handle multiple selections
2145 Also remove redundant cancellation of composition in tst_qwebpage.
2146 There is no composition in progress at that point.
2148 Finally, move infiniteLoopJS() to the end of the tst_qwebpage unit
2149 tests - so you don't have to wait for it to complete when running
2152 https://bugs.webkit.org/show_bug.cgi?id=39625
2155 (QWebPagePrivate::inputMethodEvent):
2156 (QWebPage::inputMethodQuery):
2157 * tests/qwebpage/tst_qwebpage.cpp:
2158 (tst_QWebPage::inputMethods):
2160 2010-10-20 Luiz Agostini <luiz.agostini@openbossa.org>
2162 Reviewed by Antonio Gomes.
2164 [Qt] Wrong null check in PopupMenuQt
2165 https://bugs.webkit.org/show_bug.cgi?id=47945
2167 Wrong null check in PopupMenuQt.
2169 * WebCoreSupport/PopupMenuQt.cpp:
2170 (WebCore::PopupMenuQt::hide):
2172 2010-10-18 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
2174 Reviewed by Laszlo Gombos.
2176 [Qt] Export QWebPage::ViewportAttributes class.
2177 https://bugs.webkit.org/show_bug.cgi?id=47845
2180 * symbian/eabi/QtWebKitu.def:
2182 2010-10-18 Pavel Feldman <pfeldman@chromium.org>
2184 Reviewed by Simon Fraser.
2186 Web Inspector: [crash] when Inspector Open in CSSStyleSelector::loadPendingImages().
2187 https://bugs.webkit.org/show_bug.cgi?id=46224
2189 * WebCoreSupport/InspectorClientQt.cpp:
2190 (WebCore::InspectorClientQt::sendMessageToFrontend):
2192 2010-10-18 No'am Rosenthal <noam.rosenthal@nokia.com>
2194 Reviewed by Andreas Kling.
2196 [Qt] AC rendering bugs
2198 This fixes a regression that was introduced by making scrolling in accelerated compositing automatic,
2199 which made our explicit function to scroll the compositing layers superfluous, making the scrolling behavior
2200 when graphics layers are present incorrect. The fix simply removes those redundant functions.
2202 https://bugs.webkit.org/show_bug.cgi?id=47571
2204 * WebCoreSupport/PageClientQt.cpp:
2205 (WebCore::PageClientQGraphicsWidget::scroll):
2206 (WebCore::PageClientQGraphicsWidget::update):
2207 (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
2208 * WebCoreSupport/PageClientQt.h:
2210 2010-10-18 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2212 Reviewed by nobody, build fix.
2214 [Qt] Fix the build with MSVC.
2216 Splitting the condition in two to prevent qmake parentheses issues.
2218 * Api/DerivedSources.pro:
2220 2010-10-18 Yi Shen <yi.4.shen@nokia.com>
2222 Reviewed by Antonio Gomes.
2224 [QT] Unable to load pages on QtTestBrowser after canceling a page load.
2225 https://bugs.webkit.org/show_bug.cgi?id=43827
2228 (QWebPage::triggerAction):
2230 2010-10-15 Qi Zhang <qi.2.zhang@nokia.com>
2232 Reviewed by Andreas Kling.
2234 [Qt] window.close() doesn't work in qt
2235 https://bugs.webkit.org/show_bug.cgi?id=46186
2237 Introduce new attribute in QWebSettings to trigger "setAllowScriptsToCloseWindow"
2239 * Api/qwebsettings.cpp:
2240 (QWebSettingsPrivate::apply):
2241 * Api/qwebsettings.h:
2243 2010-10-15 Andreas Kling <kling@webkit.org>
2245 Reviewed by Kenneth Rohde Christiansen.
2247 [Qt] Unbreak scrolling the ContentsLayer with QWebView
2249 r69777 broke scrolling the contents layer in QWebView by not restoring
2250 the painter clip after painting each part of the dirty region.
2252 * Api/qwebframe.cpp:
2253 (QWebFramePrivate::renderRelativeCoords):
2255 2010-09-27 Dawit Alemayehu <adawit@kde.org>
2257 Reviewed by Andreas Kling.
2259 [Qt] Added functions for obtaining and checking the supported content types.
2260 http://webkit.org/b/37880
2263 (extractContentTypeFromHash):
2264 (extractContentTypeFromPluginVector):
2265 (QWebPage::supportedContentTypes):
2266 (QWebPage::supportsContentType):
2267 * tests/qwebpage/tst_qwebpage.cpp:
2268 (tst_QWebPage::supportedContentType):
2270 2010-10-14 Sheriff Bot <webkit.review.bot@gmail.com>
2272 Unreviewed, rolling out r69795.
2273 http://trac.webkit.org/changeset/69795
2274 https://bugs.webkit.org/show_bug.cgi?id=47687
2276 'See discussion at webkit.org/b/47609' (Requested by mwenge on
2279 * WebCoreSupport/FrameLoaderClientQt.cpp:
2280 (WebCore::FrameLoaderClientQt::canHandleRequest):
2281 (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
2283 2010-10-14 Robert Hogan <robert@webkit.org>
2285 Reviewed by Antonio Gomes.
2287 [Qt] Fix http/tests/misc/redirect-to-external-url.html
2289 Support the test in FrameLoaderClientQt and unskip.
2291 https://bugs.webkit.org/show_bug.cgi?id=47609
2293 * WebCoreSupport/FrameLoaderClientQt.cpp:
2294 (WebCore::FrameLoaderClientQt::canHandleRequest):
2295 (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
2297 2010-10-14 No'am Rosenthal <noam.rosenthal@nokia.com>
2299 Reviewed by Kenneth Rohde Christiansen.
2301 [Texmap] [Qt] Texture mapper initial implementation
2302 https://bugs.webkit.org/show_bug.cgi?id=47070
2304 Allow rendering of accelerated-compositing with TextureMapper, inside a QWebFrame. The frame will render the regular content,
2305 either normally or through tiled backingstore, then let the TextureMapper layer render itself to the active context, and
2306 then render the scrollbar and pan icon. This is different from the current implementation, which uses additional QGraphicsItems for AC
2307 and the scrollbar overlay.
2309 * Api/qgraphicswebview.cpp:
2310 (QGraphicsWebView::paint):
2311 * Api/qwebframe.cpp:
2312 (QWebFramePrivate::renderFromTiledBackingStore):
2313 (QWebFramePrivate::renderRelativeCoords):
2315 2010-10-13 Gavin Barraclough <barraclough@apple.com>
2317 Reviewed by Oliver Hunt.
2319 https://bugs.webkit.org/show_bug.cgi?id=43987
2320 Switch XMLHttpRequest, FileReader, and FileReaderSync to use a Stringbuilder
2321 to construct their internal result string. Remove ScriptString (this is now
2324 * WebCoreSupport/FrameLoaderClientQt.cpp:
2326 2010-10-13 Dinu Jacob <dinu.jacob@nokia.com>
2328 Reviewed by Andreas Kling.
2330 [Qt] Update .def file for Symbian
2331 https://bugs.webkit.org/show_bug.cgi?id=47540
2333 Updated symbols for Symbian - added viewportAttributesForSize and
2334 made viewportConfigurationForSize absent based on the API change in
2337 * symbian/eabi/QtWebKitu.def:
2339 2010-10-12 David Leong <david.leong@nokia.com>
2341 Reviewed by Laszlo Gombos.
2343 [Qt] Enable Netscape plugin metadata caching on Linux
2344 https://bugs.webkit.org/show_bug.cgi?id=46287
2346 QWebSettings::enablePersistentStorage will now store the netscape
2347 plugin cache to QDesktopServices::CacheLocation.
2349 * Api/qwebsettings.cpp:
2350 (QWebSettings::enablePersistentStorage):
2352 2010-10-12 Yael Aharon <yael.aharon@nokia.com>
2354 Reviewed by Antonio Gomes.
2356 [Qt] Editing commands should not be executed on non-editable content.
2357 https://bugs.webkit.org/show_bug.cgi?id=47426
2359 Remove calls to editor()->command() when we are not in editable content.
2360 There is no value in doing that, and in some cases, it prevents scrolling.
2362 * WebCoreSupport/EditorClientQt.cpp:
2363 (WebCore::EditorClientQt::handleKeyboardEvent):
2365 2010-10-08 Hui Huang <hui.2.huang@nokia.com>
2367 Reviewed by Simon Hausmann.
2369 ifdef out code that rewrites Flash Plug-in wmode for Symbian build
2370 https://bugs.webkit.org/show_bug.cgi?id=43484
2372 * WebCoreSupport/FrameLoaderClientQt.cpp:
2373 (WebCore::FrameLoaderClientQt::createPlugin):
2375 2010-10-07 Andreas Kling <kling@webkit.org>
2377 Reviewed by Simon Hausmann.
2379 [Qt] API: ViewportConfiguration => ViewportArguments
2380 https://bugs.webkit.org/show_bug.cgi?id=47325
2383 (QWebPage::ViewportAttributes::ViewportAttributes):
2384 (QWebPage::ViewportAttributes::~ViewportAttributes):
2385 (QWebPage::ViewportAttributes::operator=):
2386 (QWebPage::viewportAttributesForSize):
2389 (QtViewportAttributesPrivate::QtViewportAttributesPrivate):
2391 2010-10-07 Luiz Agostini <luiz.agostini@openbossa.org>
2393 Reviewed by Kenneth Rohde Christiansen.
2395 Fixing viewport meta tag user-scalable handling
2396 https://bugs.webkit.org/show_bug.cgi?id=47330
2398 user-scalable attribute was not considered in viewport meta tag handling.
2401 (QWebPage::viewportConfigurationForSize):
2403 2010-10-05 Diego Gonzalez <diegohcg@webkit.org>
2405 Reviewed by Andreas Kling.
2407 [Qt] Hook up accelerometer data via Qt DeviceMotion
2408 https://bugs.webkit.org/show_bug.cgi?id=47105
2410 Get accelerometer necessary data via Qt mobility library using a
2411 provider class. Enable, also the RotationRate using the current device
2412 orientation provider.
2414 * WebCoreSupport/DeviceMotionClientQt.cpp:
2415 (WebCore::DeviceMotionClientQt::DeviceMotionClientQt):
2416 (WebCore::DeviceMotionClientQt::~DeviceMotionClientQt):
2417 (WebCore::DeviceMotionClientQt::startUpdating):
2418 (WebCore::DeviceMotionClientQt::stopUpdating):
2419 (WebCore::DeviceMotionClientQt::currentDeviceMotion):
2420 (WebCore::DeviceMotionClientQt::changeDeviceMotion):
2421 * WebCoreSupport/DeviceMotionClientQt.h:
2422 * WebCoreSupport/DeviceMotionProviderQt.cpp: Added.
2423 (WebCore::DeviceMotionProviderQt::DeviceMotionProviderQt):
2424 (WebCore::DeviceMotionProviderQt::~DeviceMotionProviderQt):
2425 (WebCore::DeviceMotionProviderQt::start):
2426 (WebCore::DeviceMotionProviderQt::stop):
2427 (WebCore::DeviceMotionProviderQt::filter):
2428 * WebCoreSupport/DeviceMotionProviderQt.h: Added.
2429 (WebCore::DeviceMotionProviderQt::currentDeviceMotion):
2431 2010-10-07 Luiz Agostini <luiz.agostini@openbossa.org>
2433 Reviewed by Kenneth Rohde Christiansen.
2435 Some viewport meta tag api refactoring
2436 https://bugs.webkit.org/show_bug.cgi?id=47334
2438 WebCore::findConfigurationForViewportData renamed to computeViewportAttributes.
2439 WebCore::ViewportAttributes::layoutViewport renamed to layoutSize.
2442 (QWebPage::viewportConfigurationForSize):
2443 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2444 (DumpRenderTreeSupportQt::viewportAsText):
2446 2010-10-07 Keith Kyzivat <keith.kyzivat@nokia.com>
2448 Reviewed by Simon Hausmann.
2450 [Qt] Update .def file for Symbian
2451 https://bugs.webkit.org/show_bug.cgi?id=47336
2452 Fix and re-freeze symbols for symbian - viewportConfigurationForSize
2453 API changed, allowGeolocationRequest removed from API, several
2454 DumpRenderTree support calls added.
2456 * symbian/eabi/QtWebKitu.def:
2458 2010-10-06 Ragner Magalhaes <ragner.magalhaes@openbossa.org>
2460 Reviewed by Antonio Gomes.
2462 [Qt] Duplicated code in QWebPagePrivate
2463 https://bugs.webkit.org/show_bug.cgi?id=47195
2465 Remove duplicated code from QWebPagePrivate class for QGraphicsView and QWidget's mouse events.
2468 (QWebPagePrivate::mouseMoveEvent):
2469 (QWebPagePrivate::mousePressEvent):
2470 (QWebPagePrivate::mouseDoubleClickEvent):
2471 (QWebPagePrivate::mouseTripleClickEvent):
2472 (QWebPagePrivate::mouseReleaseEvent):
2473 (QWebPagePrivate::wheelEvent):
2474 (QWebPagePrivate::dragEnterEvent):
2475 (QWebPagePrivate::dragLeaveEvent):
2476 (QWebPagePrivate::dragMoveEvent):
2477 (QWebPagePrivate::dropEvent):
2480 2010-10-06 Luiz Agostini <luiz.agostini@openbossa.org>
2482 Reviewed by Kenneth Rohde Christiansen.
2484 Renaming WebCore::ViewportConfiguration to WebCore::ViewportAttributes
2485 https://bugs.webkit.org/show_bug.cgi?id=47268
2487 Renaming WebCore::ViewportConfiguration to WebCore::ViewportAttributes
2490 (QWebPage::viewportConfigurationForSize):
2491 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2492 (DumpRenderTreeSupportQt::viewportAsText):
2494 2010-10-05 Andrew Wilson <atwilson@chromium.org>
2496 Reviewed by Andreas Kling.
2498 Notification onclick() events don't act like user gestures
2499 https://bugs.webkit.org/show_bug.cgi?id=47137
2501 * WebCoreSupport/NotificationPresenterClientQt.cpp:
2502 (WebCore::NotificationPresenterClientQt::notificationClicked):
2503 Use UserGestureIndicator to make sure click events are treated like user gestures.
2505 2010-10-05 Robert Hogan <robert@webkit.org>
2507 Reviewed by Andreas Kling.
2509 [Qt] Fix url conversion in QWebHistory
2511 Converting from KURL to WFT::String to QUrl does not
2512 permit proper percent encoding later.
2514 https://bugs.webkit.org/show_bug.cgi?id=47048
2516 * Api/qwebhistory.cpp:
2517 (QWebHistoryItem::originalUrl):
2518 (QWebHistoryItem::url):
2520 2010-10-05 Jakob Petsovits <jpetsovits@rim.com>
2522 Reviewed by Andreas Kling.
2524 [Qt] Make build work with QT_NO_CURSOR
2525 https://bugs.webkit.org/show_bug.cgi?id=46097
2527 Add a missing semicolon.
2529 * WebCoreSupport/ChromeClientQt.cpp:
2530 (WebCore::ChromeClientQt::setCursor):
2532 2010-10-05 Simon Hausmann <simon.hausmann@nokia.com>
2534 Unreviewed build fix.
2536 [Symbian] Fix build issue due to gaps in ordinals in the def file
2538 Restore previously removed symbols and mark them absent instead. We must
2539 not remove symbols from this file, because it breaks binary compatibility
2540 (when re-assigning the ordinals of the following symbols) or it causes build
2541 breakage when instead having a gap in the ordinal sequence. Instead removing
2542 a symbol is done by marking it as absent.
2544 * symbian/eabi/QtWebKitu.def:
2546 2010-10-04 Adam Barth <abarth@webkit.org>
2548 Reviewed by Darin Adler.
2550 Rename RedirectScheduler to NavigationScheduler
2551 https://bugs.webkit.org/show_bug.cgi?id=47037
2553 Update for name change.
2556 (QWebPage::triggerAction):
2558 2010-10-04 Diego Gonzalez <diegohcg@webkit.org>
2560 Reviewed by Kenneth Rohde Christiansen.
2562 [Qt] Hook up DeviceOrientation data for Qt support
2563 https://bugs.webkit.org/show_bug.cgi?id=47052
2565 Get DeviceOrientation necessary data via Qt mobility library
2566 using a provider class.
2568 * WebCoreSupport/DeviceOrientationClientQt.cpp:
2569 (WebCore::DeviceOrientationClientQt::DeviceOrientationClientQt):
2570 (WebCore::DeviceOrientationClientQt::~DeviceOrientationClientQt):
2571 (WebCore::DeviceOrientationClientQt::startUpdating):
2572 (WebCore::DeviceOrientationClientQt::stopUpdating):
2573 (WebCore::DeviceOrientationClientQt::lastOrientation):
2574 (WebCore::DeviceOrientationClientQt::changeDeviceOrientation):
2575 * WebCoreSupport/DeviceOrientationClientQt.h:
2576 * WebCoreSupport/DeviceOrientationProviderQt.cpp: Added.
2577 (WebCore::DeviceOrientationProviderQt::DeviceOrientationProviderQt):
2578 (WebCore::DeviceOrientationProviderQt::~DeviceOrientationProviderQt):
2579 (WebCore::DeviceOrientationProviderQt::start):
2580 (WebCore::DeviceOrientationProviderQt::stop):
2581 (WebCore::DeviceOrientationProviderQt::filter):
2582 * WebCoreSupport/DeviceOrientationProviderQt.h: Added.
2583 (WebCore::DeviceOrientationProviderQt::isActive):
2584 (WebCore::DeviceOrientationProviderQt::orientation):
2585 (WebCore::DeviceOrientationProviderQt::hasAlpha):
2587 2010-09-28 Luiz Agostini <luiz.agostini@openbossa.org>
2589 Reviewed by Kenneth Rohde Christiansen.
2591 Viewport data change notifications
2592 https://bugs.webkit.org/show_bug.cgi?id=46755
2594 Regarding viewport meta tags, what matters for browser developers is to know when the viewport data has
2595 changed and its current value. Viewport data belongs to the document, but it is useful to keep the current
2596 viewport data in Page as a reference, to be able to send notifications only when the current viewport
2599 * Api/qwebframe.cpp:
2600 * Api/qwebframe_p.h:
2602 (QWebPagePrivate::viewportArguments):
2603 (QWebPage::viewportConfigurationForSize):
2605 * WebCoreSupport/ChromeClientQt.cpp:
2606 (WebCore::ChromeClientQt::viewportDataChanged):
2607 * WebCoreSupport/ChromeClientQt.h:
2608 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2609 (DumpRenderTreeSupportQt::viewportAsText):
2611 2010-10-04 Simon Hausmann <simon.hausmann@nokia.com>
2613 Rubber-stamped by Tor Arne Vestbø.
2615 [Qt] Fix platform plugin support after r68128
2617 Replaced the qobject_cast from the QObject derived extension to a
2618 static_cast. qobject_cast works by comparing pointers to meta-object
2619 instances, of which there are two each: one compiled into WebKit and
2620 one compiled into the plugin.
2622 The platform plugin ensures the validity of the interface contract
2623 through its version and the initial safe qobject_cast from QObject
2624 to QWebKitPlatformPlugin. After that it is safe to use static_cast,
2625 and with the recent changes even required.
2627 * WebCoreSupport/QtPlatformPlugin.cpp:
2628 (WebCore::QtPlatformPlugin::createSelectInputMethod):
2629 (WebCore::QtPlatformPlugin::createNotificationPresenter):
2630 (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer):
2632 2010-10-02 Diego Gonzalez <diegohcg@webkit.org>
2634 Reviewed by Kenneth Rohde Christiansen.
2636 [Qt] Provide Qt support for DeviceMotion/Orientation clients
2637 https://bugs.webkit.org/show_bug.cgi?id=47051
2639 Dummy implementation of DeviceMotion/Orientation client classes
2640 to make possible to hook up motion/orientation data
2641 in further implementations.
2644 (QWebPagePrivate::QWebPagePrivate):
2645 * WebCoreSupport/DeviceMotionClientQt.cpp: Added.
2646 (WebCore::DeviceMotionClientQt::DeviceMotionClientQt):
2647 (WebCore::DeviceMotionClientQt::setController):
2648 (WebCore::DeviceMotionClientQt::startUpdating):
2649 (WebCore::DeviceMotionClientQt::stopUpdating):
2650 (WebCore::DeviceMotionClientQt::currentDeviceMotion):
2651 (WebCore::DeviceMotionClientQt::deviceMotionControllerDestroyed):
2652 * WebCoreSupport/DeviceMotionClientQt.h: Added.
2653 (WebCore::DeviceMotionClientQt::~DeviceMotionClientQt):
2654 * WebCoreSupport/DeviceOrientationClientQt.cpp: Added.
2655 (WebCore::DeviceOrientationClientQt::DeviceOrientationClientQt):
2656 (WebCore::DeviceOrientationClientQt::setController):
2657 (WebCore::DeviceOrientationClientQt::startUpdating):
2658 (WebCore::DeviceOrientationClientQt::stopUpdating):
2659 (WebCore::DeviceOrientationClientQt::lastOrientation):
2660 (WebCore::DeviceOrientationClientQt::deviceOrientationControllerDestroyed):
2661 * WebCoreSupport/DeviceOrientationClientQt.h: Added.
2662 (WebCore::DeviceOrientationClientQt::~DeviceOrientationClientQt):
2664 2010-09-30 Robert Hogan <robert@webkit.org>
2666 Reviewed by Andreas Kling.
2668 [Qt] Support for PlainTextController
2670 Unskip editing/text-iterator/basic-iteration.html
2672 https://bugs.webkit.org/show_bug.cgi?id=38805
2674 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2675 (DumpRenderTreeSupportQt::plainText):
2676 * WebCoreSupport/DumpRenderTreeSupportQt.h:
2678 2010-09-30 Andreas Kling <andreas.kling@nokia.com>
2680 Reviewed by Tor Arne Vestbø.
2682 [Qt] V8 port: Unbreak build
2684 Add missing <wtf/text/CString.h> include.
2686 * WebCoreSupport/InspectorServerQt.cpp:
2688 2010-09-30 Benjamin Poulain <benjamin.poulain@nokia.com>
2690 Reviewed by Andreas Kling.
2692 [Qt] Crash if an scene with accelerated compositing layout during the paint event
2693 https://bugs.webkit.org/show_bug.cgi?id=46812
2695 Delay the deletion of the overlay after the current event is processed.
2697 Removing the overlay can sometimes be done inside the rendering code of
2698 the overlay itself. When the rendering code is using the reference after
2699 the deletion of the overlay, WebKit crashes.
2701 * Api/qgraphicswebview.cpp:
2702 (QGraphicsWebViewPrivate::overlay):
2703 * WebCoreSupport/PageClientQt.cpp:
2704 (WebCore::PageClientQGraphicsWidget::~PageClientQGraphicsWidget):
2705 (WebCore::PageClientQGraphicsWidget::createOrDeleteOverlay):
2706 * WebCoreSupport/PageClientQt.h:
2707 (WebCore::PageClientQGraphicsWidget::PageClientQGraphicsWidget):
2709 2010-09-30 Benjamin Poulain <benjamin.poulain@nokia.com>
2711 Reviewed by Andreas Kling.
2713 [Qt] Fix tst_QWebPage::geolocationRequestJS()
2714 https://bugs.webkit.org/show_bug.cgi?id=46814
2716 Disable the test. This test cannot pass with a
2717 standard build of WebKit, it is disabled until the API is finilized.
2719 * tests/qwebpage/tst_qwebpage.cpp:
2720 (tst_QWebPage::geolocationRequestJS):
2722 2010-09-29 Andreas Kling <andreas.kling@nokia.com>
2724 Reviewed by Ariya Hidayat.
2726 [Qt] Don't keep local reference to QGraphicsItemOverlay in QGWVPrivate
2727 https://bugs.webkit.org/show_bug.cgi?id=46812
2729 Get the QGraphicsItemOverlay* via the QWebPageClient (d->page->d->client)
2730 instead of keeping a local pointer to it.
2732 This is cleanup for a follow-up patch.
2734 * Api/qgraphicswebview.cpp:
2735 (QGraphicsWebViewPrivate::overlay):
2736 (QGraphicsWebView::paint):
2737 (QGraphicsWebView::setPage):
2738 (QGraphicsWebView::updateGeometry):
2739 (QGraphicsWebView::setGeometry):
2741 2010-09-28 Jenn Braithwaite <jennb@chromium.org>
2743 Reviewed by Dmitry Titov.
2745 Added oldPage param to FrameLoaderClient::didTransferChildFrameToNewDocument.
2746 https://bugs.webkit.org/show_bug.cgi?id=46663
2748 * WebCoreSupport/FrameLoaderClientQt.cpp:
2749 (WebCore::FrameLoaderClientQt::didTransferChildFrameToNewDocument):
2750 * WebCoreSupport/FrameLoaderClientQt.h:
2752 2010-09-28 Andreas Kling <andreas.kling@nokia.com>
2754 Reviewed by Kenneth Rohde Christiansen.
2756 [Qt] Clean up QWebPage::ViewportConfiguration API
2757 https://bugs.webkit.org/show_bug.cgi?id=46730
2759 - Pass QSize parameter as const-reference
2763 (QWebPage::viewportConfigurationForSize):
2766 2010-09-28 Andras Becsi <abecsi@webkit.org>
2768 Reviewed by Csaba Osztrogonác.
2770 Undefined reference errors when linking due to gperf and inlining.
2773 EFL CMake changes by Leandro Pereira <leandro@profusion.mobi>
2775 Refactor gperf code generation and usage to fix the debug build with gcc>4.4.
2776 Hitherto gperf generated C code, these files were included in multiple C++ files across WebCore
2777 to access the functionality provided. This resulted in debug build failure with newer gcc versions
2778 because of a behaviour change of gcc, which disables C style inlining in debug mode.
2779 The make-hash-tools.pl script lets gperf generate C++ code for all gperf files now, which are compiled
2780 in their own compilation unit.
2781 The functionality provided by the generated code is wrapped behind HashTools.h, so there is no need
2782 for multiple inclusions of generated C files to access these functions.
2784 * WebCoreSupport/FrameLoaderClientQt.cpp:
2785 (WebCore::FrameLoaderClientQt::createPlugin):
2787 2010-09-28 Benjamin Poulain <benjamin.poulain@nokia.com>
2789 Reviewed by Andreas Kling.
2791 [Qt] Remove support for Qt 4.5
2792 https://bugs.webkit.org/show_bug.cgi?id=46718
2794 Remove the code for versions of Qt prior to 4.6.
2796 * Api/qgraphicswebview.cpp:
2797 (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
2798 (QGraphicsWebView::QGraphicsWebView):
2799 (QGraphicsWebView::sceneEvent):
2800 (QGraphicsWebViewPrivate::detachCurrentPage):
2801 * Api/qwebframe.cpp:
2804 (QWebPagePrivate::QWebPagePrivate):
2805 (QWebPagePrivate::handleSoftwareInputPanel):
2806 (QWebPagePrivate::inputMethodEvent):
2807 (QWebPagePrivate::touchEvent):
2808 (QWebPage::inputMethodQuery):
2813 (QWebView::QWebView):
2814 (QWebViewPrivate::detachCurrentPage):
2816 * WebCoreSupport/EditorClientQt.cpp:
2817 (WebCore::EditorClientQt::setInputMethodState):
2818 * WebCoreSupport/FrameLoaderClientQt.cpp:
2819 (WebCore::FrameLoaderClientQt::createPlugin):
2820 * WebCoreSupport/PageClientQt.cpp:
2821 (WebCore::PageClientQWidget::setInputMethodHints):
2822 (WebCore::PageClientQGraphicsWidget::setInputMethodEnabled):
2823 (WebCore::PageClientQGraphicsWidget::inputMethodEnabled):
2824 (WebCore::PageClientQGraphicsWidget::setInputMethodHints):
2825 * WebCoreSupport/PageClientQt.h:
2826 (WebCore::QGraphicsItemOverlay::page):
2827 * tests/qwebframe/tst_qwebframe.cpp:
2828 * tests/qwebpage/tst_qwebpage.cpp:
2829 (tst_QWebPage::inputMethods_data):
2831 (inputMethodEnabled):
2832 (tst_QWebPage::inputMethods):
2833 (tst_QWebPage::originatingObjectInNetworkRequests):
2834 * tests/qwebview/tst_qwebview.cpp:
2835 (tst_QWebView::reusePage):
2837 2010-09-28 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2839 Reviewed by Simon Hausmann.
2841 Clean up QWebPage initialization
2846 2010-09-28 Benjamin Poulain <benjamin.poulain@nokia.com>
2848 Reviewed by Kenneth Rohde Christiansen.
2850 [Qt] tst_QWebPage::testStopScheduledPageRefresh() fails on MeeGo handset
2851 https://bugs.webkit.org/show_bug.cgi?id=46706
2853 The test require the network to succeed or fail in order to work.
2854 On MeeGo, the network can simply timeout the because of the netword access
2855 management. This patch makes the test use local URLs to avoid the
2858 * tests/qwebpage/tst_qwebpage.cpp:
2859 (TestNetworkManager::TestNetworkManager):
2861 2010-09-27 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
2863 Reviewed by Antonio Gomes.
2865 [Qt] Remove setDeviceSize methods
2866 https://bugs.webkit.org/show_bug.cgi?id=46347
2868 Remove our setDeviceHeight() API and obtain it automatically from the
2869 system. Also for testing purposes, make it possible to override the
2870 values via two newly introduced environment variables.
2872 * Api/qgraphicswebview.cpp:
2873 * Api/qgraphicswebview.h:
2876 (queryDeviceSizeForScreenContainingWidget):
2877 (QWebPage::viewportConfigurationForSize):
2878 * WebCoreSupport/PageClientQt.cpp:
2879 (WebCore::PageClientQGraphicsWidget::windowRect):
2880 * symbian/eabi/QtWebKitu.def:
2882 2010-09-27 Girish Ramakrishnan <girish@forwardbias.in>
2884 Reviewed by Antonio Gomes.
2886 Enable local rendering of NPAPI plugins on Maemo6.
2888 https://bugs.webkit.org/show_bug.cgi?id=46618
2890 * WebCoreSupport/FrameLoaderClientQt.cpp:
2891 (WebCore::FrameLoaderClientQt::createPlugin):
2893 2010-09-27 Benjamin Poulain <benjamin.poulain@nokia.com>
2895 Reviewed by Andreas Kling.
2897 [Qt] tst_QWebFrame::popupFocus() randomly fail on MeeGo handset because the focus is not set on the window
2898 https://bugs.webkit.org/show_bug.cgi?id=46617
2900 This patch avoid the race condition by waiting for the window
2901 to be mapped on screen before attempting any actions.
2903 * tests/qwebframe/tst_qwebframe.cpp:
2905 2010-09-24 Luiz Agostini <luiz.agostini@openbossa.org>
2907 Reviewed by Kenneth Rohde Christiansen.
2909 Keep viewport information in Document
2910 https://bugs.webkit.org/show_bug.cgi?id=46385
2912 The viewport meta data (layout viewport, scale) needs to be set again when bringing
2913 back a page from the page cache. As the viewport metadata is only retrieved while parsing
2914 the document, we need to store it in the Document class.
2916 * Api/qwebframe.cpp:
2917 (QWebFramePrivate::viewportArguments):
2918 * Api/qwebframe_p.h:
2920 (QWebPage::viewportConfigurationForSize):
2921 * WebCoreSupport/ChromeClientQt.cpp:
2922 (WebCore::ChromeClientQt::didReceiveViewportArguments):
2923 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
2924 (DumpRenderTreeSupportQt::viewportAsText):
2925 * WebCoreSupport/FrameLoaderClientQt.cpp:
2926 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
2928 2010-09-23 Ademar de Souza Reis Jr <ademar.reis@openbossa.org>
2930 Reviewed by Kenneth Rohde Christiansen.
2932 Fix QWebHapticFeedbackPlayer exposure via QWebKitPlatformPlugin
2934 [Qt] QWebHapticFeedbackPlayer needs correct exposure through QWebKitPlatformPlugin
2935 https://bugs.webkit.org/show_bug.cgi?id=46402
2937 QWebHapticFeedbackPlayer is exported through
2938 QWebKitPlatformPlugin::createExtension(), but
2939 createHapticFeedbackPlayer() and the correct
2940 inheritage are missing.
2942 * Api/qwebkitplatformplugin.h:
2943 * WebCoreSupport/QtPlatformPlugin.cpp:
2944 (WebCore::QtPlatformPlugin::createHapticFeedbackPlayer):
2945 * WebCoreSupport/QtPlatformPlugin.h:
2947 2010-09-23 Nate Chapin <japhet@chromium.org>
2949 Reviewed by Darin Fisher.
2951 Add hyperlink auditing settings (i.e., <a ping>).
2952 https://bugs.webkit.org/show_bug.cgi?id=30458
2954 * Api/qwebsettings.cpp:
2955 (QWebSettingsPrivate::apply):
2956 (QWebSettings::QWebSettings):
2957 * Api/qwebsettings.h:
2959 2010-09-23 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2961 Reviewed by Simon Hausmann.
2963 [Qt] Refactor QtWebKitPlatformPlugin interface
2965 Make it easier to keep source-compability for the
2966 QtWebKitPlatformPlugin interface, and run qmake
2967 on the example (but not build) for convenience.
2969 https://bugs.webkit.org/show_bug.cgi?id=46345
2971 * Api/qwebkitplatformplugin.h:
2972 * WebCoreSupport/QtPlatformPlugin.cpp:
2973 * examples/platformplugin/README:
2974 * examples/platformplugin/WebPlugin.cpp:
2975 * examples/platformplugin/WebPlugin.h:
2976 * examples/platformplugin/qwebkitplatformplugin.h:
2978 2010-09-22 Andras Becsi <abecsi@webkit.org>
2980 Speculative build fix for the Qt Windows bots.
2982 * Api/DerivedSources.pro:
2984 2010-09-22 Jamey Hicks <jamey.hicks@nokia.com>
2986 Reviewed by Kenneth Rohde Christiansen.
2988 [Qt] Web Inspector: Remote Web Inspector support for QtWebKit
2989 https://bugs.webkit.org/show_bug.cgi?id=43988
2991 Runs a web debug server on port specified by QtTestBrowser
2992 argument -remote-inspector-port. Property
2993 _q_webInspectorServerPort of the QWebPage instance will be set
2994 according to the argument. All pages with that property set will
2995 be remotely inspectable.
2997 URL for remote inspection of first QWebPage is
2998 http://localhost:9222/webkit/inspector/inspector.html?page=1
2999 where 1 is the number of the QWebPage instance.
3001 The base URL yields an index page with links to the individual inspectors:
3002 http://localhost:9222/
3004 * Api/qwebinspector.cpp:
3005 (QWebInspectorPrivate::attachAndReplaceRemoteFrontend):
3006 (QWebInspectorPrivate::detachRemoteFrontend):
3007 * Api/qwebinspector_p.h:
3008 (QWebInspectorPrivate::QWebInspectorPrivate):
3010 (QWebPagePrivate::dynamicPropertyChangeEvent):
3011 (QWebPagePrivate::inspectorServerPort):
3014 * WebCoreSupport/InspectorClientQt.cpp:
3015 (WebCore::InspectorClientQt::InspectorClientQt):
3016 (WebCore::InspectorClientQt::inspectorDestroyed):
3017 (WebCore::InspectorClientQt::openInspectorFrontend):
3018 (WebCore::InspectorClientQt::attachAndReplaceRemoteFrontend):
3019 (WebCore::InspectorClientQt::detachRemoteFrontend):
3020 (WebCore::InspectorClientQt::sendMessageToFrontend):
3021 * WebCoreSupport/InspectorClientQt.h:
3022 * WebCoreSupport/InspectorServerQt.cpp: Added.
3023 (WebCore::generateWebSocketChallengeResponse):
3024 (WebCore::parseWebSocketChallengeNumber):
3025 (WebCore::InspectorServerQt::server):
3026 (WebCore::InspectorServerQt::InspectorServerQt):
3027 (WebCore::InspectorServerQt::~InspectorServerQt):
3028 (WebCore::InspectorServerQt::listen):
3029 (WebCore::InspectorServerQt::close):
3030 (WebCore::InspectorServerQt::inspectorClientForPage):
3031 (WebCore::InspectorServerQt::registerClient):
3032 (WebCore::InspectorServerQt::unregisterClient):
3033 (WebCore::InspectorServerQt::newConnection):
3034 (WebCore::InspectorServerRequestHandlerQt::InspectorServerRequestHandlerQt):
3035 (WebCore::InspectorServerRequestHandlerQt::~InspectorServerRequestHandlerQt):
3036 (WebCore::InspectorServerRequestHandlerQt::tcpReadyRead):
3037 (WebCore::InspectorServerRequestHandlerQt::tcpConnectionDisconnected):
3038 (WebCore::InspectorServerRequestHandlerQt::webSocketSend):
3039 (WebCore::InspectorServerRequestHandlerQt::webSocketReadyRead):
3040 (WebCore::RemoteFrontendChannel::RemoteFrontendChannel):
3041 (WebCore::RemoteFrontendChannel::sendMessageToFrontend):
3042 * WebCoreSupport/InspectorServerQt.h: Added.
3044 2010-09-22 Balazs Kelemen <kb@inf.u-szeged.hu>
3046 Reviewed by Kenneth Rohde Christiansen.
3048 [Qt] PluginStrategy implementation is broken
3049 https://bugs.webkit.org/show_bug.cgi?id=46078
3051 Remove the QWebPage* member from WebPlatformStrategies.
3052 Get the originator QWebPage of the getPluginInfo call via
3055 (QWebPagePrivate::QWebPagePrivate):
3056 * WebCoreSupport/WebPlatformStrategies.cpp:
3057 (WebPlatformStrategies::initialize):
3058 (WebPlatformStrategies::WebPlatformStrategies):
3059 (WebPlatformStrategies::getPluginInfo):
3060 Use the ChromeClient for accessing the originator QWebPage.
3061 * WebCoreSupport/WebPlatformStrategies.h:
3063 2010-09-22 İsmail Dönmez <ismail@namtrac.org>
3065 Reviewed by Andreas Kling.
3067 [Qt] Buildfix for WinCE
3069 * Api/DerivedSources.pro:
3071 2010-09-20 Philippe Normand <pnormand@igalia.com>
3073 Reviewed by Eric Carlson.
3075 [GTK] enhanced context menu for media elements
3076 https://bugs.webkit.org/show_bug.cgi?id=45021
3078 * WebCoreSupport/WebPlatformStrategies.cpp:
3079 * WebCoreSupport/WebPlatformStrategies.h:
3080 (WebPlatformStrategies::contextMenuItemTagOpenVideoInNewWindow):
3081 (WebPlatformStrategies::contextMenuItemTagOpenAudioInNewWindow):
3082 (WebPlatformStrategies::contextMenuItemTagCopyVideoLinkToClipboard):
3083 (WebPlatformStrategies::contextMenuItemTagCopyAudioLinkToClipboard):
3084 (WebPlatformStrategies::contextMenuItemTagToggleMediaControls)
3085 (WebPlatformStrategies::contextMenuItemTagToggleMediaLoop)
3086 (WebPlatformStrategies::contextMenuItemTagEnterVideoFullscreen)
3087 (WebPlatformStrategies::contextMenuItemTagMediaPlay)
3088 (WebPlatformStrategies::contextMenuItemTagMediaPause)
3089 (WebPlatformStrategies::contextMenuItemTagMediaMute)
3091 2010-09-20 Jacob Dinu <dinu.jacob@nokia.com>
3093 Reviewed by Adam Barth.
3095 Added a new qwebpage test for loading a cached page
3096 https://bugs.webkit.org/show_bug.cgi?id=41155
3098 * tests/qwebpage/tst_qwebpage.cpp:
3099 (tst_QWebPage::loadCachedPage):
3101 2010-09-08 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3103 Reviewed by Simon Hausmann.
3105 [Qt] Fix forward includes generation for MSVC when sh is in PATH.
3107 MSVC's nmake isn't affected by having sh in PATH.
3109 * Api/DerivedSources.pro:
3111 2010-09-18 Ademar de Souza Reis Jr <ademar.reis@openbossa.org>
3113 Reviewed by Kenneth Rohde Christiansen.
3115 Enable Platform Strategies on Qt
3117 [Qt] Turn on PLATFORM_STRATEGIES
3118 https://bugs.webkit.org/show_bug.cgi?id=45831
3121 (QWebPagePrivate::QWebPagePrivate): Initialize the PlatformStrategy
3123 * WebCoreSupport/WebPlatformStrategies.cpp: Added, code was moved
3124 from platform/qt/Localizations.cpp and plugins/qt/PluginDataQt.cpp
3125 (WebPlatformStrategies::initialize): create the singleton,
3126 following the same "pattern" used by Mac and Win ports.
3127 (WebPlatformStrategies::WebPlatformStrategies):
3128 (WebPlatformStrategies::createPluginStrategy):
3129 (WebPlatformStrategies::createLocalizationStrategy):
3130 (WebPlatformStrategies::createVisitedLinkStrategy):
3131 (WebPlatformStrategies::refreshPlugins):
3132 (WebPlatformStrategies::getPluginInfo):
3133 (WebPlatformStrategies::inputElementAltText):
3134 (WebPlatformStrategies::resetButtonDefaultLabel):
3135 (WebPlatformStrategies::searchableIndexIntroduction):
3136 (WebPlatformStrategies::submitButtonDefaultLabel):
3137 (WebPlatformStrategies::fileButtonChooseFileLabel):
3138 (WebPlatformStrategies::fileButtonNoFileSelectedLabel):
3139 (WebPlatformStrategies::contextMenuItemTagOpenLinkInNewWindow):
3140 (WebPlatformStrategies::contextMenuItemTagDownloadLinkToDisk):
3141 (WebPlatformStrategies::contextMenuItemTagCopyLinkToClipboard):
3142 (WebPlatformStrategies::contextMenuItemTagOpenImageInNewWindow):
3143 (WebPlatformStrategies::contextMenuItemTagDownloadImageToDisk):
3144 (WebPlatformStrategies::contextMenuItemTagCopyImageToClipboard):
3145 (WebPlatformStrategies::contextMenuItemTagOpenFrameInNewWindow):
3146 (WebPlatformStrategies::contextMenuItemTagCopy):
3147 (WebPlatformStrategies::contextMenuItemTagGoBack):
3148 (WebPlatformStrategies::contextMenuItemTagGoForward):
3149 (WebPlatformStrategies::contextMenuItemTagStop):
3150 (WebPlatformStrategies::contextMenuItemTagReload):
3151 (WebPlatformStrategies::contextMenuItemTagCut):
3152 (WebPlatformStrategies::contextMenuItemTagPaste):
3153 (WebPlatformStrategies::contextMenuItemTagNoGuessesFound):
3154 (WebPlatformStrategies::contextMenuItemTagIgnoreSpelling):
3155 (WebPlatformStrategies::contextMenuItemTagLearnSpelling):
3156 (WebPlatformStrategies::contextMenuItemTagSearchWeb):
3157 (WebPlatformStrategies::contextMenuItemTagLookUpInDictionary):
3158 (WebPlatformStrategies::contextMenuItemTagOpenLink):
3159 (WebPlatformStrategies::contextMenuItemTagIgnoreGrammar):
3160 (WebPlatformStrategies::contextMenuItemTagSpellingMenu):
3161 (WebPlatformStrategies::contextMenuItemTagShowSpellingPanel):
3162 (WebPlatformStrategies::contextMenuItemTagCheckSpelling):
3163 (WebPlatformStrategies::contextMenuItemTagCheckSpellingWhileTyping):
3164 (WebPlatformStrategies::contextMenuItemTagCheckGrammarWithSpelling):
3165 (WebPlatformStrategies::contextMenuItemTagFontMenu):
3166 (WebPlatformStrategies::contextMenuItemTagBold):
3167 (WebPlatformStrategies::contextMenuItemTagItalic):
3168 (WebPlatformStrategies::contextMenuItemTagUnderline):
3169 (WebPlatformStrategies::contextMenuItemTagOutline):
3170 (WebPlatformStrategies::contextMenuItemTagWritingDirectionMenu):
3171 (WebPlatformStrategies::contextMenuItemTagTextDirectionMenu):
3172 (WebPlatformStrategies::contextMenuItemTagDefaultDirection):
3173 (WebPlatformStrategies::contextMenuItemTagLeftToRight):
3174 (WebPlatformStrategies::contextMenuItemTagRightToLeft):
3175 (WebPlatformStrategies::contextMenuItemTagInspectElement):
3176 (WebPlatformStrategies::searchMenuNoRecentSearchesText):
3177 (WebPlatformStrategies::searchMenuRecentSearchesText):
3178 (WebPlatformStrategies::searchMenuClearRecentSearchesText):
3179 (WebPlatformStrategies::AXWebAreaText):
3180 (WebPlatformStrategies::AXLinkText):
3181 (WebPlatformStrategies::AXListMarkerText):
3182 (WebPlatformStrategies::AXImageMapText):
3183 (WebPlatformStrategies::AXHeadingText):
3184 (WebPlatformStrategies::AXDefinitionListTermText):
3185 (WebPlatformStrategies::AXDefinitionListDefinitionText):
3186 (WebPlatformStrategies::AXButtonActionVerb):
3187 (WebPlatformStrategies::AXRadioButtonActionVerb):
3188 (WebPlatformStrategies::AXTextFieldActionVerb):
3189 (WebPlatformStrategies::AXCheckedCheckBoxActionVerb):
3190 (WebPlatformStrategies::AXUncheckedCheckBoxActionVerb):
3191 (WebPlatformStrategies::AXMenuListActionVerb):
3192 (WebPlatformStrategies::AXMenuListPopupActionVerb):
3193 (WebPlatformStrategies::AXLinkActionVerb):
3194 (WebPlatformStrategies::missingPluginText):
3195 (WebPlatformStrategies::crashedPluginText):
3196 (WebPlatformStrategies::multipleFileUploadText):
3197 (WebPlatformStrategies::unknownFileSizeText):
3198 (WebPlatformStrategies::imageTitle):
3199 (WebPlatformStrategies::mediaElementLoadingStateText):
3200 (WebPlatformStrategies::mediaElementLiveBroadcastStateText):
3201 (WebPlatformStrategies::localizedMediaControlElementString):
3202 (WebPlatformStrategies::localizedMediaControlElementHelpText):
3203 (WebPlatformStrategies::localizedMediaTimeDescription):
3204 (WebPlatformStrategies::validationMessageValueMissingText):
3205 (WebPlatformStrategies::validationMessageTypeMismatchText):
3206 (WebPlatformStrategies::validationMessagePatternMismatchText):
3207 (WebPlatformStrategies::validationMessageTooLongText):
3208 (WebPlatformStrategies::validationMessageRangeUnderflowText):
3209 (WebPlatformStrategies::validationMessageRangeOverflowText):
3210 (WebPlatformStrategies::validationMessageStepMismatchText):
3211 (WebPlatformStrategies::isLinkVisited):
3212 (WebPlatformStrategies::addVisitedLink):
3213 * WebCoreSupport/WebPlatformStrategies.h: Added, based on Mac and Win
3216 2010-09-18 Andreas Kling <andreas.kling@nokia.com>
3218 Reviewed by Antonio Gomes.
3220 [Qt] V8 port: Add FrameLoaderClientQt::allowScriptExtension()
3221 https://bugs.webkit.org/show_bug.cgi?id=46034
3223 r67749 added FrameLoaderClient::allowScriptExtension() (V8-specific)
3224 Add a stub implementation that simply returns false for now.
3226 * WebCoreSupport/FrameLoaderClientQt.h:
3227 (WebCore::FrameLoaderClientQt::allowScriptExtension):
3229 2010-09-17 Darin Adler <darin@apple.com>
3231 Reviewed by Sam Weinig.
3233 REGRESSION (r60104): Zoom level is unexpectedly reset on page reload
3234 https://bugs.webkit.org/show_bug.cgi?id=42863
3236 * Api/qwebframe.cpp:
3237 (QWebFrame::setTextSizeMultiplier):
3238 (QWebFrame::textSizeMultiplier):
3239 (QWebFrame::setZoomFactor):
3240 (QWebFrame::zoomFactor):
3241 Call functions on Frame instead of FrameView.
3243 2010-09-16 Darin Adler <darin@apple.com>
3247 * WebCoreSupport/EditorClientQt.cpp:
3248 (WebCore::EditorClientQt::setInputMethodState): Updated for change
3249 in name of isUrlField to isURLField.
3251 2010-09-16 Darin Adler <darin@apple.com>
3253 Reviewed by Andreas Kling.
3255 Reduce use of HTMLInputElement::inputType so we can remove it later
3256 https://bugs.webkit.org/show_bug.cgi?id=45903
3258 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3259 (DumpRenderTreeSupportQt::elementDoesAutoCompleteForElementWithId):
3260 Use isPasswordField.
3262 2010-09-16 Robert Hogan <robert@webkit.org>
3264 Reviewed by Antonio Gomes.
3266 [Qt] Support globalhistory tests
3267 https://bugs.webkit.org/show_bug.cgi?id=45774
3269 * WebCoreSupport/ChromeClientQt.cpp:
3270 (WebCore::ChromeClientQt::populateVisitedLinks):
3271 * WebCoreSupport/ChromeClientQt.h:
3272 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3273 (DumpRenderTreeSupportQt::dumpHistoryCallbacks):
3274 (DumpRenderTreeSupportQt::dumpVisitedLinksCallbacks):
3275 * WebCoreSupport/DumpRenderTreeSupportQt.h:
3276 * WebCoreSupport/FrameLoaderClientQt.cpp:
3277 (WebCore::FrameLoaderClientQt::setTitle):
3278 (WebCore::FrameLoaderClientQt::updateGlobalHistory):
3279 (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks):
3280 * WebCoreSupport/FrameLoaderClientQt.h:
3282 2010-09-16 Diego Gonzalez <diegohcg@webkit.org>
3284 Reviewed by Kenneth Rohde Christiansen.
3286 [Qt] Remove FrameLoaderClientQt::webFrame() to use NetworkingContext to get the WebFrame to avoid layering violations
3287 https://bugs.webkit.org/show_bug.cgi?id=42293
3289 * Api/qwebframe.cpp:
3290 (QWebFrame::childFrames):
3291 (QWebFramePrivate::kit):
3293 (QWebPage::currentFrame):
3294 * WebCoreSupport/ChromeClientQt.cpp:
3295 (WebCore::ChromeClientQt::runJavaScriptAlert):
3296 (WebCore::ChromeClientQt::runJavaScriptConfirm):
3297 (WebCore::ChromeClientQt::runJavaScriptPrompt):
3298 (WebCore::ChromeClientQt::contentsSizeChanged):
3299 * WebCoreSupport/FrameLoaderClientQt.cpp:
3300 (WebCore::FrameLoaderClientQt::chooseFile):
3301 * WebCoreSupport/FrameLoaderClientQt.h:
3303 2010-09-15 Simon Hausmann <simon.hausmann@nokia.com>
3305 [Qt] Update the Symbian def files
3307 Re-freeze with the viewport meta tag updates.
3309 * symbian/eabi/QtWebKitu.def:
3311 2010-09-14 Andreas Kling <andreas.kling@nokia.com>
3313 Reviewed by Kenneth Rohde Christiansen.
3315 [Qt] V8 port: Get inspector up and running
3316 https://bugs.webkit.org/show_bug.cgi?id=45771
3318 * WebCoreSupport/InspectorClientQt.cpp:
3319 (WebCore::ensureDebuggerScriptLoaded): Added, loads DebuggerScript.js into ScriptDebugServer.
3320 (WebCore::InspectorClientQt::openInspectorFrontend): Ensure that DebuggerScript.js is loaded
3321 before opening an inspector.
3323 2010-09-14 Enrico Ros <eros@codeaurora.org>
3325 Reviewed by Andreas Kling.
3327 [Qt] Respect title attribute on option elements
3328 https://bugs.webkit.org/show_bug.cgi?id=45084
3330 Set the tooltip in the combo box model, so it's reflected in the view.
3332 * WebCoreSupport/QtFallbackWebPopup.cpp:
3333 (WebCore::QtFallbackWebPopup::populate):
3335 2010-09-13 Daniel Bates <dbates@rim.com>
3337 https://bugs.webkit.org/show_bug.cgi?id=45732
3339 Fix the Qt build. I missed this when reviewing the patch
3342 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3343 (DumpRenderTreeSupportQt::suspendActiveDOMObjects): Change enum value ActiveDOMObject::JavaScriptPaused to
3344 ActiveDOMObject::JavaScriptDebuggerPaused
3346 2010-09-13 Eric Carlson <eric.carlson@apple.com>
3348 Reviewed by Daniel Bates.
3350 [Qt] DumpRenderTreeSupportQt::suspendActiveDOMObjects needs a new parameter
3351 https://bugs.webkit.org/show_bug.cgi?id=45732
3353 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3354 (DumpRenderTreeSupportQt::suspendActiveDOMObjects): Pass ActiveDOMObject::JavaScriptPaused
3355 to suspendActiveDOMObjects.
3357 2010-09-13 Enrica Casucci <enrica@apple.com>
3359 Reviewed by Sam Weinig.
3361 Paste should be implemented in WebCore like Copy and Cut for Mac also.
3362 https://bugs.webkit.org/show_bug.cgi?id=45494
3363 <rdar://problem/7660537>
3365 On the Mac platform, the implementation of the paste operation is all done
3366 at the WebKit level. In order to support it on WebKit2 it is necessary to
3367 refactor the code and move this functionality at the level of WebCore like
3368 we already have on Windows.
3369 The original code relies on some in AppKit functions that call back into
3370 WebKit causing problems in WebKit2. All this functionality has been moved
3371 at the level of the editor client where it can be dealt with appropriately.
3373 * WebCoreSupport/FrameLoaderClientQt.cpp:
3374 (WebCore::FrameLoaderClientQt::canShowMIMETypeAsHTML): Added stub.
3375 * WebCoreSupport/FrameLoaderClientQt.h:
3377 2010-08-27 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
3379 Reviewed by Antti Koivisto.
3381 Add a Qt API for the viewport meta tag support based on the
3382 following draft spec:
3384 http://people.opera.com/rune/TR/ED-css-viewport-20100806/
3386 Add common handling of viewport meta tag based on new Opera spec
3387 https://bugs.webkit.org/show_bug.cgi?id=44201
3389 * Api/qwebframe_p.h:
3390 (QWebFramePrivate::QWebFramePrivate):
3392 (QWebPage::ViewportConfiguration::ViewportConfiguration):
3393 (QWebPage::ViewportConfiguration::~ViewportConfiguration):
3394 (QWebPage::ViewportConfiguration::operator=):
3395 (QWebPage::viewportConfigurationForSize):
3396 (QWebPage::setPreferredContentsSize):
3399 (QtViewportConfigurationPrivate::QtViewportConfigurationPrivate):
3400 * WebCoreSupport/ChromeClientQt.cpp:
3401 (WebCore::ChromeClientQt::didReceiveViewportArguments):
3402 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3403 (DumpRenderTreeSupportQt::viewportAsText):
3404 * WebCoreSupport/DumpRenderTreeSupportQt.h:
3405 * WebCoreSupport/FrameLoaderClientQt.cpp:
3406 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
3407 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
3409 2010-09-12 Martin Smith <martin.smith@nokia.com>
3411 Reviewed by Simon Hausmann.
3413 doc: Changed the title so lists of contents sort better.
3415 * docs/qtwebkit.qdoc:
3417 2010-09-12 David Boddie <david.boddie@nokia.com>
3419 Reviewed by Simon Hausmann.
3421 Doc: More work on the QML documentation.
3423 * declarative/qdeclarativewebview.cpp:
3425 2010-09-12 Martin Jones <martin.jones@nokia.com>
3427 Reviewed by Simon Hausmann.
3429 [Qml] Ensure WebView gets focus when an editable node is clicked on.
3431 Task-number: QTBUG-13342
3433 * declarative/qdeclarativewebview.cpp:
3434 (GraphicsWebView::mousePressEvent):
3436 2010-09-12 David Boddie <david.boddie@nokia.com>
3438 Reviewed by Simon Hausmann.
3442 * declarative/qdeclarativewebview.cpp:
3444 2010-09-12 Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
3446 Reviewed by Simon Hausmann.
3448 [Qt] let WebKit inject itself into the qt configuration
3450 Task-number: QTBUG-12379
3452 * qt_webkit_version.pri: Use the faster + instead of *
3453 operator to add webkit to the config.
3455 2010-09-12 Martin Smith <martin.smith@nokia.com>
3457 Reviewed by Simon Hausmann.
3459 [Qt] Fix group of declarative web view in QML docs.
3461 * declarative/qdeclarativewebview.cpp:
3463 2010-09-12 Simon Hausmann <simon.hausmann@nokia.com>
3465 Reviewed by Andreas Kling.
3467 [Qt] Partial implementation of Qt bridge using V8 and QtScript.
3469 * Api/qwebelement.cpp:
3470 (QWebElement::evaluateJavaScript): Stub it out for now,
3471 to compile, until we have a conversion path between v8::Object
3473 * Api/qwebframe.cpp:
3474 (QWebFrame::addToJavaScriptWindowObject): Implemented using
3475 few lines of QtScript code.
3476 (QWebFrame::evaluateJavaScript): Ditto.
3478 2010-09-12 Simon Hausmann <simon.hausmann@nokia.com>
3480 Reviewed by Andreas Kling.
3482 Fix the build with V8.
3484 This is a temporary kludge until the scriptworld stuff is properly
3485 ported, as part of the upcoming DRT work.
3487 * Api/qwebscriptworld.cpp:
3488 (QWebScriptWorld::QWebScriptWorld):
3490 2010-09-11 Andreas Kling <andreas.kling@nokia.com>
3492 Reviewed by Simon Hausmann.
3494 [Qt] V8 port for Qt platform: Qt WebCoreSupport changes
3495 https://bugs.webkit.org/show_bug.cgi?id=45149
3497 Original patch by Vlad Burlik <volodimir.burlik@nokia.com>
3499 Implemented the V8 specifics needed in DumpRenderTreeSupportQt and
3500 FrameLoaderClientQt.
3502 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3503 (DumpRenderTreeSupportQt::javaScriptObjectsCount):
3504 (DumpRenderTreeSupportQt::garbageCollectorCollect):
3505 (DumpRenderTreeSupportQt::garbageCollectorCollectOnAlternateThread):
3506 (DumpRenderTreeSupportQt::evaluateScriptInIsolatedWorld):
3507 * WebCoreSupport/FrameLoaderClientQt.cpp:
3508 (WebCore::FrameLoaderClientQt::didCreateScriptContextForFrame):
3509 (WebCore::FrameLoaderClientQt::didDestroyScriptContextForFrame):
3510 (WebCore::FrameLoaderClientQt::didCreateIsolatedScriptContext):
3511 (WebCore::FrameLoaderClientQt::createDocumentLoader):
3512 * WebCoreSupport/FrameLoaderClientQt.h:
3514 2010-09-11 Vlad Burlik <volodimir.burlik@nokia.com>
3516 Reviewed by Andreas Kling.
3518 [Qt] V8 port for QT platform: QT API implementation changes
3519 https://bugs.webkit.org/show_bug.cgi?id=45148
3521 V8 Implementation of QWebFrame::addToJavaScriptWindowObject()
3522 and QWebFrame::evaluateJavaScript()
3524 * Api/qwebelement.cpp:
3525 (setupScriptContext): JSC and V8 variations
3526 (QWebElement::evaluateJavaScript):
3527 * Api/qwebelement.h:
3528 * Api/qwebframe.cpp: QObject injection to V8 world
3529 (QWebFrame::addToJavaScriptWindowObject):
3530 (QWebFrame::evaluateJavaScript):
3531 * Api/qwebpage.cpp: Use ScriptController type definitions instead of direct references to JSC or V8
3532 (QWebPagePrivate::QWebPagePrivate):
3534 2010-09-10 yi shen <yi.4.shen@nokia.com>
3536 Reviewed by Antonio Gomes.
3538 [Qt] selected text gets deleted when qgraphicswebview losts focus
3539 https://bugs.webkit.org/show_bug.cgi?id=45539
3542 (QWebPagePrivate::inputMethodEvent):
3543 * tests/qwebpage/tst_qwebpage.cpp:
3544 (tst_QWebPage::inputMethods):
3546 2010-09-10 Sam Weinig <sam@webkit.org>
3550 * Api/qwebsettings.cpp:
3551 (QWebSettingsPrivate::apply):
3553 2010-09-10 Sam Weinig <sam@webkit.org>
3555 Reviewed by Darin Adler.
3557 Remove unnecessary constraint in WebCore of choosing either text zoom or full page zoom.
3558 Precursor to <rdar://problem/7660657>
3559 https://bugs.webkit.org/show_bug.cgi?id=45522
3561 * Api/qwebframe.cpp:
3562 (QWebFrame::setTextSizeMultiplier):
3563 (QWebFrame::textSizeMultiplier):
3564 (QWebFrame::setZoomFactor):
3565 (QWebFrame::zoomFactor):
3566 * Api/qwebframe_p.h:
3567 (QWebFramePrivate::QWebFramePrivate):
3568 Move tracking of text only zoom here from WebCore.
3570 2010-09-10 Yael Aharon <yael.aharon@nokia.com>
3572 Reviewed by Andreas Kling.
3574 [Qt] Support click event for notifications
3575 https://bugs.webkit.org/show_bug.cgi?id=44836
3577 Propagate click events to JavaScript from either the
3578 platform plugn or from QSystemTrayIcon.
3579 Also added the method NotificationWrapper::openerPageUrl so that
3580 if the platform plugin can reopen the page that created the
3581 notification directly, when the user clicks the notification.
3583 Added DumpRenderTreeSupportQt::simulateDesktopNotificationClick
3584 for testing purpose.
3586 * Api/qwebkitplatformplugin.h:
3587 * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
3588 (DumpRenderTreeSupportQt::simulateDesktopNotificationClick):
3589 * WebCoreSupport/DumpRenderTreeSupportQt.h:
3590 * WebCoreSupport/NotificationPresenterClientQt.cpp:
3591 (WebCore::NotificationWrapper::openerPageUrl):
3592 (WebCore::NotificationWrapper::notificationClicked):
3593 (WebCore::NotificationPresenterClientQt::displayNotification):