1 2009-11-23 Simon Hausmann <simon.hausmann@nokia.com>
3 Reviewed by Kenneth Rohde Christiansen.
5 [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
6 the wrapped object died before the gc removed the instance.
8 https://bugs.webkit.org/show_bug.cgi?id=31681
10 Added a unit-test to verify that wrapping a QObject with the
11 same identity as a previously but now dead object works.
13 * tests/qwebframe/tst_qwebframe.cpp:
15 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
17 Reviewed by Kenneth Rohde Christiansen.
19 [Qt] Add instantiation tests for QWebInspector.
21 * tests/qwebinspector/qwebinspector.pro: Added.
22 * tests/qwebinspector/tst_qwebinspector.cpp: Added.
23 (tst_QWebInspector::attachAndDestroy):
26 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
28 Reviewed by Kenneth Rohde Christiansen.
30 [Qt] Fix QWebInspector destruction problem.
31 https://bugs.webkit.org/show_bug.cgi?id=31664
34 (QWebPage::~QWebPage):
36 2009-11-19 Olivier Goffart <ogoffart@trolltech.com>
38 Reviewed by Simon Hausmann.
40 [Qt] Normalize signal and slot signatures.
42 * Api/qgraphicswebview.cpp:
43 (QGraphicsWebView::setPage):
46 * WebCoreSupport/FrameLoaderClientQt.cpp:
47 (WebCore::FrameLoaderClientQt::setFrame):
48 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
50 * tests/qwebframe/tst_qwebframe.cpp:
51 * tests/qwebpage/tst_qwebpage.cpp:
52 (tst_QWebPage::modified):
53 (tst_QWebPage::database):
55 2009-11-18 Laszlo Gombos <laszlo.1.gombos@nokia.com>
57 Reviewed by Kenneth Rohde Christiansen.
59 [Qt] Remove support for Qt v4.3 or older versions
60 https://bugs.webkit.org/show_bug.cgi?id=29469
62 * Api/qcookiejar.cpp: Removed.
63 * Api/qcookiejar.h: Removed.
64 * Api/qgraphicswebview.cpp:
65 (QGraphicsWebView::event):
69 * Api/qwebkitglobal.h:
70 * Api/qwebnetworkinterface.cpp: Removed.
71 * Api/qwebnetworkinterface.h: Removed.
72 * Api/qwebnetworkinterface_p.h: Removed.
74 (QWebPagePrivate::QWebPagePrivate):
75 (QWebPagePrivate::acceptNavigationRequest):
76 (QWebPage::acceptNavigationRequest):
78 (QWebPage::userAgentForUrl):
85 * QtLauncher/main.cpp:
87 (MainWindow::setupUI):
89 * WebCoreSupport/FrameLoaderClientQt.cpp:
90 (WebCore::FrameLoaderClientQt::download):
91 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
92 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
93 (WebCore::FrameLoaderClientQt::startDownload):
94 (WebCore::FrameLoaderClientQt::createPlugin):
96 2009-11-18 Shu Chang <Chang.Shu@nokia.com>
98 Reviewed by Eric Seidel.
100 [Qt] Add support for displaying deleteButton.
101 https://bugs.webkit.org/show_bug.cgi?id=31560
103 Test: LayoutTests/editing/deleting/5408255.html
105 * Api/qwebsettings.cpp:
107 * Api/qwebsettings.h:
109 2009-11-18 Paul Olav Tvete <paul.tvete@nokia.com>
111 Reviewed by Simon Hausmann.
113 [Qt] Make the QWebElement::render() test pass when pixmaps aren't 32 bit.
115 * tests/qwebelement/tst_qwebelement.cpp:
116 (tst_QWebElement::render):
118 2009-11-18 Simon Hausmann <simon.hausmann@nokia.com>
120 Reviewed by Tor Arne Vestbø.
122 Clarify and simplify the legal section in the overview documentation,
123 after review with our legal team.
125 * docs/qtwebkit.qdoc:
127 2009-11-18 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
129 Reviewed by Simon Hausmann.
131 [Qt] Add QtLauncher support for opening links in the default browser
133 This can be triggered by either the context menu or by clicking a link
134 while holding down the Alt key. Opening a link in a new windows is
135 triggered by holding down Shift.
137 * QtLauncher/main.cpp:
139 2009-11-17 Yael Aharon <yael.aharon@nokia.com>
141 Reviewed by Kenneth Rohde Christiansen.
143 [Qt] QGLLauncher does not support drag&drop of local files
144 https://bugs.webkit.org/show_bug.cgi?id=31057
146 Enable accepting files in QGraphicsWebView.
148 * Api/qgraphicswebview.cpp:
149 (QGraphicsWebView::QGraphicsWebView):
150 (QGraphicsWebView::dragEnterEvent):
152 2009-11-17 Antonio Gomes <tonikitoo@webkit.org>
154 Reviewed by Kenneth Christiansen.
156 [Qt] better test coverage for ErrorPageExtension
157 https://bugs.webkit.org/show_bug.cgi?id=31583
159 Improved the coverage of current ErrorPageExtension tests by
160 adding autotests involving frameset and iframes.
162 * tests/qwebpage/tst_qwebpage.cpp:
163 (ErrorPage::extension): Make the ErrorPageExtension
164 to work for all frames, not only the main frame.
165 (tst_QWebPage::errorPageExtension): Stop using
166 the 'frameset.html' resouce in this method since
167 an autotest specific for frameset's is being added.
168 (tst_QWebPage::errorPageExtensionInIFrames): Added.
169 (tst_QWebPage::errorPageExtensionInFrameset): Added.
171 2009-11-16 Simon Hausmann <simon.hausmann@nokia.com>
173 Reviewed by Kenneth Rohde Christiansen.
175 API documentation fixes.
177 * Api/qgraphicswebview.cpp: Removed duplicate docs.
178 * Api/qwebelement.cpp: Added missing docs.
179 * Api/qwebsettings.cpp: Ditto.
181 2009-11-14 Antonio Gomes <tonikitoo@webkit.org>
183 Reviewed by Antti Koivisto.
185 [Qt] Broken back/forward after using ErrorPageExtension to set error page
186 https://bugs.webkit.org/show_bug.cgi?id=30573
188 Implemented autotests for covering the back/forward
189 reset problem involving error pages.
191 * tests/qwebpage/tst_qwebpage.cpp:
192 (tst_QWebPage::errorPageExtension):
194 2009-11-13 Adam Roben <aroben@apple.com>
196 Update for changes to FrameLoaderClient
198 Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
199 window objects in isolated worlds are cleared
201 Reviewed by Dave Hyatt.
203 * WebCoreSupport/FrameLoaderClientQt.cpp:
204 (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
205 * WebCoreSupport/FrameLoaderClientQt.h:
206 Replaced windowObjectCleared with this function. Does nothing if the
207 passed-in world is not the mainThreadNormalWorld().
209 2009-11-13 Andras Becsi <becsi.andras@stud.u-szeged.hu>
211 Reviewed by Kenneth Rohde Christiansen.
213 [Qt] Enable Page Cache if setMaximumPagesInCache needs it.
214 This fixes https://bugs.webkit.org/show_bug.cgi?id=31266.
216 * Api/qwebsettings.cpp:
217 (QWebSettingsPrivate::apply):
218 (QWebSettings::setMaximumPagesInCache):
220 2009-11-13 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
222 Reviewed by Kenneth Rohde Christiansen.
224 [Qt] Fix initial QWebView focus behavior.
226 focusController->setFocused(true) was not always called.
227 https://bugs.webkit.org/show_bug.cgi?id=31466
230 (QWebPagePrivate::focusInEvent):
232 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
234 Reviewed by Simon Hausmann.
236 Update documentation for the Qt API
238 * Api/qgraphicswebview.cpp:
239 * Api/qwebelement.cpp:
241 * Api/qwebsettings.cpp:
244 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
246 Reviewed by Simon Hausmann.
248 Use correct install-path when running qdoc3
252 2009-11-12 Shinichiro Hamaji <hamaji@chromium.org>
254 Reviewed by Darin Adler.
256 externalRepresentation should take Frame as the argument
257 https://bugs.webkit.org/show_bug.cgi?id=31393
259 No new tests as this is just a refactoring.
262 (QWebFrame::renderTreeDump):
264 2009-11-12 Antonio Gomes <tonikitoo@webkit.org>
266 Reviewed by Jan Alonzo.
268 [Qt] Various doc fixes
269 https://bugs.webkit.org/show_bug.cgi?id=31358
271 QWebPage's constructor docs are mentioning "QWebView":
272 "Constructs an empty QWebView with parent".
276 2009-11-12 Benjamin Poulain <benjamin.poulain@nokia.com>
278 Reviewed by Kenneth Rohde Christiansen.
280 Custom printing shrink factors
281 https://bugs.webkit.org/show_bug.cgi?id=29042
283 This reverts commit r49769. The public API for this needs to be reviewed
284 before its inclusion in Qt.
286 * Api/qwebsettings.cpp:
287 (QWebSettingsPrivate::apply):
288 (QWebSettings::QWebSettings):
289 * Api/qwebsettings.h:
291 2009-11-11 Antonio Gomes <tonikitoo@webkit.org>
293 Reviewed by Kenneth Christiansen.
295 [Qt] Various doc fixes
296 https://bugs.webkit.org/show_bug.cgi?id=31358
298 Fixed wrong documentation: item's dimensions do fit to Web page
301 Kenneth agreed to land this as a followup patch to the
302 just landed documentation patch.
304 * Api/qgraphicswebview.cpp:
306 2009-11-11 David Boddie <dboddie@trolltech.com>
308 Reviewed by Kenneth Christiansen.
310 [Qt] Various doc fixes
311 https://bugs.webkit.org/show_bug.cgi?id=31323
313 Fixed and synchronized QWebView related documentation.
315 * Api/qgraphicswebview.cpp:
318 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
320 Unreviewed buildbot fix.
322 Export a method to the DRT to know if the document has a
326 (qt_drt_hasDocumentElement):
328 2009-11-11 Liang QI <liang.qi@nokia.com>
330 [Qt] Fix tst_qwebpage and tst_qwebframe compilation on Symbian.
332 * tests/qwebframe/qwebframe.pro:
333 * tests/qwebframe/tst_qwebframe.cpp:
334 * tests/qwebpage/qwebpage.pro:
335 * tests/qwebpage/tst_qwebpage.cpp:
337 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
339 Reviewed by Simon Hausmann.
341 Fix a crash in the layout test plugins/document-open.html
344 (QWebFrame::toPlainText):
346 2009-11-11 Warwick Allison <warwick.allison@nokia.com>, Simon Hausmann <simon.hausmann@nokia.com>
348 Reviewed by Tor Arne Vestbø.
350 [Qt] Regression: Preserve the parent of plugin objects when using
351 QtWebKit with only a QWebPage.
353 * WebCoreSupport/FrameLoaderClientQt.cpp:
354 (WebCore::FrameLoaderClientQt::createPlugin): Don't reparent
356 * tests/qwebpage/tst_qwebpage.cpp:
357 (PluginCounterPage::PluginCounterPage): Initialize m_pluginParent to 0.
358 (PluginCounterPage::~PluginCounterPage): Delete the plugin parent later
360 (PluginTracerPage::createPlugin): Assign a dummy parent to the plugin.
361 (PluginTracerPage::PluginTracerPage): Set up the plugin parent.
362 (tst_QWebPage::createViewlessPlugin): Verify that for viewless pages the
363 plugin parent remains unchanged.
365 2009-11-11 David Boddie <dboddie@trolltech.com>
367 [Qt] Doc: Added internal or hidden placeholder documentation.
371 2009-11-11 Martin Smith <msmith@trolltech.com>
373 [Qt] doc: Changed Trolltech to Nokia
377 2009-11-11 Laszlo Gombos <laszlo.1.gombos@nokia.com>
379 Reviewed by Kenneth Rohde Christiansen.
381 https://bugs.webkit.org/show_bug.cgi?id=31323
382 Fix a few compiler warnings
384 * tests/qwebframe/tst_qwebframe.cpp: Add extra brackets
385 to make it explicit where the else case belongs
387 2009-11-11 Simon Hausmann <simon.hausmann@nokia.com>
389 Reviewed by Tor Arne Vestbø.
391 Fix enabling of software input panel when activating editable elements
394 * Api/qgraphicswebview.cpp:
395 (QGraphicsWebViewPrivate::inputMethodEnabled): Implement method to
396 query for input method support.
398 (QWebPageWidgetClient::inputMethodEnabled): Ditto for QWidget.
399 (QWebPagePrivate::handleSoftwareInputPanel): Don't use view() to
400 test for input method support. Instead query using QWebPageClient
401 and send the SIPR event to the ownerWidget() instead of the view().
402 The latter is null for QGraphicsWebView.
403 * tests/qwebpage/tst_qwebpage.cpp:
404 (EventSpy::EventSpy):
405 (EventSpy::eventFilter):
406 (tst_QWebPage::inputMethods): Modify the test to verify that SIPR
407 events are dispatched when activating focusable content.
409 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
411 Unreviewed documentation fixes.
413 Added a few improvements from Jocelyn Turcotte to the
418 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
420 Unreviewed documentation fix.
422 [Qt] Make qwebpage's createWindow not qwebview dependent.
423 https://bugs.webkit.org/show_bug.cgi?id=30771
425 Update documentation to make it clear that a reimplementation
426 of the createWindow method of the associated QWebPage can
427 result in the QWebView::createWindow method to never be called.
431 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
433 Reviewed by Kenneth Rohde Christiansen.
435 [Qt] Few classes have virtual functions but non-virtual destructor
436 https://bugs.webkit.org/show_bug.cgi?id=31269
438 * Api/qgraphicswebview.cpp:
439 (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): Add virtual
442 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
444 Reviewed by Kenneth Rohde Christiansen.
446 https://bugs.webkit.org/show_bug.cgi?id=30628
447 Add an API to get all the attributes from a QWebElement.
449 * Api/qwebelement.cpp:
450 (QWebElement::attributesName):
452 * tests/qwebelement/tst_qwebelement.cpp:
453 (tst_QWebElement::listAttributes):
455 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
457 Reviewed by Kenneth Rohde Christiansen.
459 Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
460 https://bugs.webkit.org/show_bug.cgi?id=31040
463 (QWebPagePrivate::handleScrolling):
465 2009-11-09 Mark Mentovai <mark@chromium.org>
467 Reviewed by Dan Bernstein.
469 Track "can have scrollbar" state within FrameView independently of the
470 individual scrollbar states in ScrollView.
472 rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
473 REGRESSION (r48064): mint.com loses scrollbars after coming out of
476 rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
477 REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
479 Test: fast/overflow/scrollbar-restored.html
482 (QWebFrame::setScrollBarPolicy):
484 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
486 Reviewed by Kenneth Rohde Christiansen.
488 https://bugs.webkit.org/show_bug.cgi?id=30772
489 Add a non-const iterator to QWebElementCollection.
490 Move the two attributes of the iterator to private.
493 (const_iterator::begin):
494 (const_iterator::end):
495 (const_iterator::constBegin):
496 (const_iterator::constEnd):
497 (const_iterator::iterator::iterator):
498 (const_iterator::iterator::operator*):
499 (const_iterator::iterator::operator==):
500 (const_iterator::iterator::operator!=):
501 (const_iterator::iterator::operator<):
502 (const_iterator::iterator::operator<=):
503 (const_iterator::iterator::operator>):
504 (const_iterator::iterator::operator>=):
505 (const_iterator::iterator::operator++):
506 (const_iterator::iterator::operator--):
507 (const_iterator::iterator::operator+=):
508 (const_iterator::iterator::operator-=):
509 (const_iterator::iterator::operator+):
510 (const_iterator::iterator::operator-):
511 * tests/qwebelement/tst_qwebelement.cpp:
512 (tst_QWebElement::nonConstIterator):
513 (tst_QWebElement::constIterator):
515 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
517 Reviewed by Kenneth Christiansen.
519 [Qt] Remove the sessionStorage setting (per Page)
520 https://bugs.webkit.org/show_bug.cgi?id=31249
522 This setting allows to run sessionStorage on/off on a per page
523 basis. Remove this prematurely exposed API.
525 * Api/qwebsettings.cpp:
526 (QWebSettingsPrivate::apply):
527 (QWebSettings::QWebSettings):
528 * tests/qwebpage/tst_qwebpage.cpp:
529 (tst_QWebPage::database):
530 (tst_QWebPage::testOptionalJSObjects):
532 2009-11-09 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
534 Reviewed by Simon Hausmann.
536 [Qt] Remove the QWebPage:webInspectorTriggered signal.
537 User customization of the communication between QWebPage
538 and QWebInspector will be properly designed in the next version.
539 https://bugs.webkit.org/show_bug.cgi?id=30773
541 * Api/qwebinspector.cpp:
543 (QWebPagePrivate::getOrCreateInspector):
544 (QWebPage::triggerAction):
546 * QtLauncher/main.cpp:
547 (MainWindow::MainWindow):
549 2009-11-05 Simon Hausmann <hausmann@webkit.org>
551 Reviewed by Tor Arne Vestbø.
553 Added a missing re-implementation of QGraphicsItem::inputMethodQuery().
555 * Api/qgraphicswebview.cpp:
556 (QGraphicsWebView::inputMethodQuery):
557 * Api/qgraphicswebview.h:
559 2009-11-04 Simon Hausmann <hausmann@webkit.org>
561 Reviewed by Tor Arne Vestbø.
563 Provide a dummy re-implementation of QGraphicsLayoutItem::sizeHint(),
566 * Api/qgraphicswebview.cpp:
567 (QGraphicsWebView::sizeHint):
568 * Api/qgraphicswebview.h:
570 2009-11-04 Simon Hausmann <hausmann@webkit.org>
572 Reviewed by Tor Arne Vestbø.
574 Removed zoomFactoryChanged() signal and added
575 linkClicked() to QGraphicsWebView, for consistency with
578 * Api/qgraphicswebview.cpp:
579 (QGraphicsWebView::setPage):
580 (QGraphicsWebView::setZoomFactor):
581 * Api/qgraphicswebview.h:
583 2009-11-04 Simon Hausmann <hausmann@webkit.org>
585 Reviewed by Tor Arne Vestbø.
587 Added QGraphicsWebView::findText() for convenience and consistency
590 * Api/qgraphicswebview.cpp:
591 (QGraphicsWebView::findText):
592 * Api/qgraphicswebview.h:
594 2009-11-04 Simon Hausmann <hausmann@webkit.org>
596 Reviewed by Tor Arne Vestbø.
598 Added QGraphicsWebView::pageAction() and triggerPageAction(), for
599 consistency with QWebView.
601 * Api/qgraphicswebview.cpp:
602 (QGraphicsWebView::pageAction):
603 (QGraphicsWebView::triggerPageAction):
604 * Api/qgraphicswebview.h:
606 2009-11-04 Simon Hausmann <hausmann@webkit.org>
608 Reviewed by Tor Arne Vestbø.
610 Removed QGraphicsWebView::toHtml() after API review.
612 That's consistent with QWebView and also based on the assumption that
613 toHtml() is called less frequently than setHtml().
615 * Api/qgraphicswebview.cpp:
616 * Api/qgraphicswebview.h:
617 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
618 (tst_QGraphicsWebView::qgraphicswebview):
620 2009-11-04 Simon Hausmann <hausmann@webkit.org>
622 Reviewed by Tor Arne Vestbø.
624 Removed the interactive property of QGraphicsWebView.
626 There are clearly use-cases for this feature, but it will require
627 more work to make this fully work with an enum to have fine-grained
628 control over the interactivity levels. For now it is easy to achieve
629 in user-code what the boolean property did.
631 * Api/qgraphicswebview.cpp:
632 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
633 (QGraphicsWebView::hoverMoveEvent):
634 (QGraphicsWebView::mouseMoveEvent):
635 (QGraphicsWebView::mousePressEvent):
636 (QGraphicsWebView::mouseReleaseEvent):
637 (QGraphicsWebView::mouseDoubleClickEvent):
638 (QGraphicsWebView::keyPressEvent):
639 (QGraphicsWebView::keyReleaseEvent):
640 (QGraphicsWebView::dragLeaveEvent):
641 (QGraphicsWebView::dragMoveEvent):
642 (QGraphicsWebView::dropEvent):
643 (QGraphicsWebView::wheelEvent):
644 (QGraphicsWebView::inputMethodEvent):
645 * Api/qgraphicswebview.h:
646 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
647 (tst_QGraphicsWebView::qgraphicswebview):
649 2009-11-04 Simon Hausmann <hausmann@webkit.org>
651 Reviewed by Tor Arne Vestbø.
653 Make the QGraphicsWebView constructor explicit.
655 * Api/qgraphicswebview.h:
657 2009-11-05 Shu Chang <Chang.Shu@nokia.com>
659 Reviewed by Tor Arne Vestbø.
661 Add support for Shift-PageUp and Shift-PageDown key events.
662 https://bugs.webkit.org/show_bug.cgi?id=31166
664 Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html
666 * WebCoreSupport/EditorClientQt.cpp:
667 (WebCore::EditorClientQt::handleKeyboardEvent):
669 2009-11-05 Simon Hausmann <hausmann@webkit.org>
671 Last Qt 4.5 build fix (*sigh*)
673 * tests/qwebpage/tst_qwebpage.cpp:
674 (inputMethodHints): inputMethodHints() is only used for
675 Qt 4.6, so guard the whole function.
677 2009-11-05 Simon Hausmann <hausmann@webkit.org>
679 Another prospective build fix against Qt 4.5 (build bot)
681 Don't compile & run the QGraphicsWebView portion of the
682 input methods auto test with Qt 4.5.
684 * tests/qwebpage/tst_qwebpage.cpp:
685 (tst_QWebPage::inputMethods_data):
687 (inputMethodEnabled):
688 (tst_QWebPage::inputMethods):
690 2009-11-05 Simon Hausmann <hausmann@webkit.org>
692 Prospective build fix against Qt 4.5 (build bot)
694 * Api/qgraphicswebview.cpp:
695 (QGraphicsWebViewPrivate::setInputMethodEnabled): Guard the
696 use of Qt 4.6 specific API with #ifdefs.
698 2009-11-01 Simon Hausmann <hausmann@webkit.org>
700 Reviewed by Kenneth Christiansen.
702 [Qt] Fix enabling of input method support on QGraphicsWebView.
703 https://bugs.webkit.org/show_bug.cgi?id=30605
705 Instead of setting the unsupported widget attribute on the
706 QGraphicsWidget in setInputMethodEnabled() set the
707 ItemAcceptsInputMethod GraphicsItem flag directly.
709 Changed the existing input method auto test to run once
710 on a QWebView and once on a QGraphicsWebView.
712 * Api/qgraphicswebview.cpp:
713 (QGraphicsWebViewPrivate::setInputMethodEnabled):
714 * tests/qwebpage/tst_qwebpage.cpp:
715 (tst_QWebPage::inputMethods_data):
717 (inputMethodEnabled):
718 (tst_QWebPage::inputMethods):
720 2009-11-04 Simon Hausmann <hausmann@webkit.org>
722 Reviewed by Kenneth Christiansen.
724 Added QGraphicsWebView::modified property, for consistency
727 * Api/qgraphicswebview.cpp:
728 (QGraphicsWebView::isModified):
729 * Api/qgraphicswebview.h:
730 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
731 (tst_QGraphicsWebView::qgraphicswebview):
733 2009-11-04 Simon Hausmann <hausmann@webkit.org>
735 Reviewed by Kenneth Christiansen.
737 Removed status and progress properties of QGraphicsWebView.
738 Added loadProgress and statusBarMessage signals instead,
741 * Api/qgraphicswebview.cpp:
742 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
743 (QGraphicsWebView::setPage):
744 * Api/qgraphicswebview.h:
745 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
746 (tst_QGraphicsWebView::qgraphicswebview):
748 2009-11-04 Yael Aharon <yael.aharon@nokia.com>
750 Reviewed by Simon Hausmann.
752 [Qt] REGRESSION: Allow applications to use their own QWidget bypassing QWebView.
753 https://bugs.webkit.org/show_bug.cgi?id=30979
755 Decouple QWebViewPrivate from QWebPageClient, and automatically create
756 QWebPageWidgetClient whenever the view is QWidget based.
759 (QWebPageWidgetClient::QWebPageWidgetClient):
760 (QWebPageWidgetClient::scroll):
761 (QWebPageWidgetClient::update):
762 (QWebPageWidgetClient::setInputMethodEnabled):
763 (QWebPageWidgetClient::setInputMethodHint):
764 (QWebPageWidgetClient::cursor):
765 (QWebPageWidgetClient::updateCursor):
766 (QWebPageWidgetClient::palette):
767 (QWebPageWidgetClient::screenNumber):
768 (QWebPageWidgetClient::ownerWidget):
769 (QWebPageWidgetClient::pluginParent):
772 (QWebView::~QWebView):
776 2009-11-03 Andras Becsi <becsi.andras@stud.u-szeged.hu>
778 Reviewed by Simon Hausmann.
780 [Qt] Fix build of unit-test after r50454.
782 * tests/qwebpage/tst_qwebpage.cpp:
784 2009-11-03 Simon Hausmann <hausmann@webkit.org>
786 Reviewed by Tor Arne Vestbø.
788 Make QWebPluginDatabase private API for now.
790 https://bugs.webkit.org/show_bug.cgi?id=30775
793 * Api/qwebplugindatabase.cpp:
794 * Api/qwebplugindatabase_p.h: Renamed from WebKit/qt/Api/qwebplugindatabase.h.
795 * Api/qwebsettings.cpp:
796 * Api/qwebsettings.h:
797 * QtLauncher/main.cpp:
798 (MainWindow::setupUI):
801 2009-11-03 Simon Hausmann <hausmann@webkit.org>
803 Rubber-stamped by Tor Arne Vestbø.
805 Oops, also remove the API docs of the removed networkRequestStarted() signal.
809 2009-11-03 Simon Hausmann <hausmann@webkit.org>
811 Reviewed by Tor Arne Vestbø.
813 Replace the QWebPage::networkRequestStarted() signal with the originatingObject
814 property set to the QWebFrame that belongs to the request.
816 https://bugs.webkit.org/show_bug.cgi?id=29975
819 * WebCoreSupport/FrameLoaderClientQt.cpp:
820 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
821 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
822 (WebCore::FrameLoaderClientQt::startDownload):
823 * tests/qwebpage/tst_qwebpage.cpp:
824 (tst_QWebPage::loadFinished):
825 (TestNetworkManager::createRequest):
826 (tst_QWebPage::originatingObjectInNetworkRequests):
828 2009-11-02 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
830 Reviewed by Adam Barth.
834 The QWebView should not crash if the stop() method is called from
835 a function triggered by the loadProgress signal.
837 A null pointer protection was added in the ProgressTracker::incrementProgress.
839 New autotest was created.
841 https://bugs.webkit.org/show_bug.cgi?id=29425
843 * tests/qwebview/tst_qwebview.cpp:
844 (WebViewCrashTest::WebViewCrashTest):
845 (WebViewCrashTest::loading):
846 (tst_QWebView::crashTests):
848 2009-11-01 Laszlo Gombos <laszlo.1.gombos@nokia.com>
850 Reviewed by Eric Seidel.
852 Turn on warnings for QtWebKit for gcc
853 https://bugs.webkit.org/show_bug.cgi?id=30958
856 (QWebPagePrivate::QWebPagePrivate): Reorder initialization list
857 to fix compiler warnings.
858 * WebCoreSupport/FrameLoaderClientQt.cpp:
859 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto.
861 2009-10-30 Evan Stade <estade@chromium.org>
863 Reviewed by David Levin.
865 Notify the chrome when the focused node has changed.
866 https://bugs.webkit.org/show_bug.cgi?id=30832
868 Added stub implementation for new ChromeClient function.
870 * WebCoreSupport/ChromeClientQt.cpp:
871 (WebCore::ChromeClientQt::focusedNodeChanged):
872 * WebCoreSupport/ChromeClientQt.h:
874 2009-10-30 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
876 Reviewed by Tor Arne Vestbø.
878 [Qt] Remove the QWebInspector::windowTitleChanged signal,
879 QEvent::WindowTitleChange can be used to achieve the same.
880 https://bugs.webkit.org/show_bug.cgi?id=30927
882 * Api/qwebinspector.cpp:
883 * Api/qwebinspector.h:
884 * WebCoreSupport/InspectorClientQt.cpp:
885 (WebCore::InspectorClientQt::updateWindowTitle):
887 2009-10-29 Laszlo Gombos <laszlo.1.gombos@nokia.com>
889 Reviewed by Tor Arne Vestbø.
891 [Qt] Implement DELETE HTTP method for XmlHttpRequest
892 https://bugs.webkit.org/show_bug.cgi?id=30894
894 No new tests as this functionality is already tested by the
895 xmlhttprequest LayoutTests. As this patch depends on an unreleased
896 version of the dependent QtNetwork library and the tests will be
897 enabled later once the dependent library is released (and the
898 buildbot is updated).
903 2009-10-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
905 Reviewed by Tor Arne Vestbø.
907 Remove QWebView::guessUrlFromString() and replace its use
908 with the new QUrl::fromUserInput() if using Qt 4.6 or newer.
912 * QGVLauncher/main.cpp:
914 (WebPage::applyProxy):
916 * QtLauncher/main.cpp:
918 (MainWindow::MainWindow):
919 (MainWindow::changeLocation):
920 * tests/qwebview/tst_qwebview.cpp:
922 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
924 Reviewed by Tor Arne Vestbø.
926 Serialize directly to the stream, and not first to an QByteArray,
927 that is later serialized. That is slower and also uses more bytes.
929 * Api/qwebhistory.cpp:
933 2009-10-28 Shinichiro Hamaji <hamaji@chromium.org>
935 Reviewed by Eric Seidel.
937 [Qt] WebFrame::counterValueForElementById must not be exposed
938 https://bugs.webkit.org/show_bug.cgi?id=30882
941 (qt_drt_counterValueForElementById):
944 2009-10-27 Shinichiro Hamaji <hamaji@chromium.org>
946 Reviewed by Darin Adler.
948 Provide a way to get counter values with layoutTestContoller
949 https://bugs.webkit.org/show_bug.cgi?id=30555
952 (QWebFrame::counterValueForElementById):
953 (QWebHitTestResult::frame):
956 2009-10-28 Antonio Gomes <tonikitoo@webkit.org>
958 Pushing missing WebKit/qt/tests/qwebframe/resources/ dir from bug 29248.
960 [Qt] [API] Make it possible to have 'invisible' loads
961 https://bugs.webkit.org/show_bug.cgi?id=29248
963 * tests/qwebframe/resources/image2.png: Copied from WebKit/qt/tests/qwebelement/image.png.
965 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
967 Reviewed by Tor Arne Vestbø.
969 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
970 https://bugs.webkit.org/show_bug.cgi?id=30710
972 Make the versioning internal and enforce it in the WebCore
973 part. Adjust the comments, as well as remove now dead code.
975 * Api/qwebhistory.cpp:
980 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
982 Reviewed by Holger Freyther.
984 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
985 https://bugs.webkit.org/show_bug.cgi?id=30710
987 Remove the QWebHistory::saveState() and ::restoreState() as
988 they are inconsistent with the Qt API.
990 Update unittests to reflect the change.
992 * Api/qwebhistory.cpp:
996 * tests/qwebhistory/tst_qwebhistory.cpp:
999 (tst_QWebHistory::saveAndRestore_crash_1):
1000 (tst_QWebHistory::saveAndRestore_crash_2):
1001 (tst_QWebHistory::saveAndRestore_crash_3):
1002 (tst_QWebHistory::clear):
1004 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
1006 Reviewed by Holger Freyther.
1008 Complementary fix to bug 30779.
1010 By mistake I used QWeakPointer's toStrongRef() method which docs
1011 explicitly say to not be used in this situation (when the tracked
1012 pointer is devired from QObject). Instead QWeakPointer's data()
1018 2009-10-27 Holger Hans Peter Freyther <zecke@selfish.org>
1020 Reviewed by Simon Fraser.
1022 Change HitTestResult methods to use (3d) transformation aware methods
1023 https://bugs.webkit.org/show_bug.cgi?id=27347
1025 The HitTestResult::boundingBox method was removed. The
1026 RenderObject must be used directly. In contrast to the
1027 old HitTestResult::boundingBox method this code must use
1028 a (3d) transformation aware method to not run into an
1029 assert in SVGRenderBase::mapLocalToContainer.
1031 * Api/qwebframe.cpp:
1032 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1034 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1036 Rubberstamped by Oliver Hunt.
1038 Change two methods to be internal for DRT use only.
1040 Part of [Qt] Review all new API in Qt 4.6
1041 https://bugs.webkit.org/show_bug.cgi?id=29843#c11
1043 * Api/qwebsecurityorigin.cpp:
1044 (qt_drt_whiteListAccessFromOrigin):
1045 (qt_drt_resetOriginAccessWhiteLists):
1046 (QWebSecurityOrigin::localSchemes):
1047 * Api/qwebsecurityorigin.h:
1049 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1051 Reviewed by Tor Arne Vestbø.
1053 Make sure that initiating a rotation while rotating won't make
1054 it end up at rotation positions that are not a multiply of
1057 * QGVLauncher/main.cpp:
1058 (MainView::animatedFlip):
1060 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1062 Unreviewed Qt build fix.
1064 Update the tests as well to the new API change.
1066 * tests/qwebelement/tst_qwebelement.cpp:
1067 (tst_QWebElement::clear):
1069 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1071 Rubberstamped by Tor Arne Vestbø.
1073 [Qt] QWebElement::removeChildren() should be
1074 QWebElement::removeAllChildren()
1075 https://bugs.webkit.org/show_bug.cgi?id=30630
1077 * Api/qwebelement.cpp:
1078 (QWebElement::removeAllChildren):
1079 * Api/qwebelement.h:
1081 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
1083 Reviewed by Antti Koivisto and Holger Freyther.
1085 Make QWebPagePrivate's (QWidget) view to be a QWeakPointer.
1086 https://bugs.webkit.org/show_bug.cgi?id=30779
1088 The fact that it was been set from external objects of qwebpage
1089 and not being deleted internally can lead to dangling references.
1091 * Api/qgraphicswebview.cpp:
1092 (QGraphicsWebView::~QGraphicsWebView):
1094 (QWebPagePrivate::QWebPagePrivate):
1095 (QWebPagePrivate::createContextMenu):
1096 (QWebPagePrivate::handleSoftwareInputPanel):
1097 (QWebPagePrivate::keyPressEvent):
1098 (QWebPage::setView):
1100 (QWebPage::javaScriptAlert):
1101 (QWebPage::javaScriptConfirm):
1102 (QWebPage::javaScriptPrompt):
1103 (QWebPage::shouldInterruptJavaScript):
1104 (QWebPage::createWindow):
1105 (QWebPage::extension):
1106 (QWebPage::chooseFile):
1107 (QWebPage::userAgentForUrl):
1110 (QWebView::~QWebView):
1112 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
1114 Unreviewed documentation fix from David Boddie (Qt Doc Team)
1116 Removes the check around the RenderHints property documentation
1117 that was clearly added to synchronize the source and header files
1118 when the #if !defined(Q_OS_SYMBIAN) guards was added to the
1121 The documentation has also been updated to ensure that Symbian
1122 users know that there is no actual RenderHints property on their
1127 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
1129 Unreviewed documentation fix from David Boddie (Qt Doc Team)
1131 Ensure that qdoc will always see the RenderHints property.
1133 The property was only defined in the header file if the Q_OS_SYMBIAN
1134 symbol was not defined, resulting in the property not showing up
1135 in the Qt documentation just because one platform doesn't support it.
1137 A follow up commit will improve the documentation for the property
1138 and note that it is not supported on the Symbiam platform.
1142 2009-10-26 Benjamin Poulain <benjamin.poulain@nokia.com>
1144 Reviewed by Tor Arne Vestbø.
1146 [Qt] Reintroduce QWebElementCollection
1148 Revert the patch that has replaced QWebElementCollection
1149 with QList<QWebElement>. Update the tests accordingly.
1151 Remove the constness of the return type of QWebElement operator[].
1153 https://bugs.webkit.org/show_bug.cgi?id=30767
1155 * Api/qwebelement.cpp:
1156 (QWebElement::findAll):
1157 (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
1158 (QWebElementCollectionPrivate::create):
1159 (QWebElementCollection::QWebElementCollection):
1160 (QWebElementCollection::operator=):
1161 (QWebElementCollection::~QWebElementCollection):
1162 (QWebElementCollection::operator+):
1163 (QWebElementCollection::append):
1164 (QWebElementCollection::count):
1165 (QWebElementCollection::at):
1166 (QWebElementCollection::toList):
1167 * Api/qwebelement.h:
1168 (const_iterator::begin):
1169 (const_iterator::end):
1170 (const_iterator::operator[]):
1171 * Api/qwebframe.cpp:
1172 (QWebFrame::findAllElements):
1174 * QtLauncher/main.cpp:
1175 (MainWindow::selectElements):
1176 * tests/qwebelement/tst_qwebelement.cpp:
1177 (tst_QWebElement::simpleCollection):
1178 (tst_QWebElement::iteration):
1179 (tst_QWebElement::emptyCollection):
1180 (tst_QWebElement::appendCollection):
1181 (tst_QWebElement::nullSelect):
1182 (tst_QWebElement::hasSetFocus):
1183 (tst_QWebElement::render):
1184 * tests/qwebpage/tst_qwebpage.cpp:
1185 (tst_QWebPage::inputMethods):
1187 2009-10-24 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1189 Reviewed by Holger Freyther.
1191 [Qt] [Symbian] Set the capability and memory required to run QtWebKit for Symbian
1192 https://bugs.webkit.org/show_bug.cgi?id=30476
1194 Assign ReadUserData WriteUserData NetworkServices Symbian capabilities
1195 to all QtWebkit executables.
1197 * QGVLauncher/QGVLauncher.pro:
1198 * QtLauncher/QtLauncher.pro:
1199 * tests/benchmarks/loading/tst_loading.pro:
1200 * tests/benchmarks/painting/tst_painting.pro:
1201 * tests/qgraphicswebview/qgraphicswebview.pro:
1202 * tests/qwebelement/qwebelement.pro:
1203 * tests/qwebframe/qwebframe.pro:
1204 * tests/qwebhistory/qwebhistory.pro:
1205 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
1206 * tests/qwebpage/qwebpage.pro:
1207 * tests/qwebplugindatabase/qwebplugindatabase.pro:
1208 * tests/qwebview/qwebview.pro:
1210 2009-10-22 Gavin Barraclough <barraclough@apple.com>
1212 Reviewed by NOBODY (speculative build fix - qt is currently already broken!)
1213 Build fix following bug #30696.
1215 * Api/qwebelement.cpp:
1216 (setupScriptContext):
1217 * Api/qwebframe.cpp:
1218 (QWebFrame::evaluateJavaScript):
1220 2009-10-22 Shu Chang <Chang.Shu@nokia.com>
1222 Reviewed by Eric Seidel.
1224 [Qt] Enable track visited links in QWebPage
1225 https://bugs.webkit.org/show_bug.cgi?id=30574
1227 Test: fast/history/clicked-link-is-visited.html
1230 (QWebPagePrivate::QWebPagePrivate):
1232 2009-10-22 Girish Ramakrishnan <girish@forwardbias.in>
1234 Reviewed by Eric Seidel.
1236 [Qt] Add Print Shortcut to QtLauncher
1238 https://bugs.webkit.org/show_bug.cgi?id=30682
1240 * QtLauncher/main.cpp:
1241 (MainWindow::setupUI):
1243 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
1245 Rubberstamped by Tor Arne Vestbø.
1247 Code standarlization for QGVLauncher.
1249 1) Made member initilization lists in constructors
1251 2) Made applyProxy method inline as all other methods in
1254 * QGVLauncher/main.cpp:
1256 (WebPage::applyProxy):
1257 (MainView::MainView):
1258 (MainWindow::MainWindow):
1261 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
1263 Reviewed by Tor Arne Vestbø.
1265 Add a Y-Axis rotation to QGVLauncher.
1267 It uses the QStateMachine API from Qt 4.6.
1269 * QGVLauncher/main.cpp:
1271 (WebView::setYRotation):
1272 (WebView::yRotation):
1274 (MainView::animatedYFlip):
1275 (SharedScene::SharedScene):
1276 (SharedScene::webView):
1278 (MainWindow::animatedYFlip):
1279 (MainWindow::buildUI):
1281 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1283 Reviewed By Adam Barth.
1285 Add some actions to the menu for cursor debugging.
1287 GraphicsView based launcher only.
1289 * QGVLauncher/main.cpp:
1290 (MainView::setWaitCursor):
1291 (MainView::resetCursor):
1293 (MainWindow::setWaitCursor):
1294 (MainWindow::resetCursor):
1295 (MainWindow::buildUI):
1297 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1299 Rubberstamped by Adam Barth.
1301 Remove clipRenderToViewport as agreed upon in
1302 https://bugs.webkit.org/show_bug.cgi?id=29843
1304 * Api/qwebframe.cpp:
1306 * Api/qwebframe_p.h:
1307 (QWebFramePrivate::QWebFramePrivate):
1309 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1311 Reviewed by Adam Barth.
1313 Update the tests to test the new render functionality, and take
1314 into consideration that render() clips to the frame itself as well
1317 QWebFrame::render() now always clips, so the old tests were bogus.
1319 Rendering pure contents (no scrollbars etc) without clipping can now
1320 be accomplished using QWebFrame::documentElement()->render(...)
1322 * Api/qwebframe.cpp:
1324 * Api/qwebframe_p.h:
1325 (QWebFramePrivate::QWebFramePrivate):
1326 * tests/qwebframe/tst_qwebframe.cpp:
1328 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1330 Rubberstamped by Adam Barth.
1332 As we do not support rendering a QWebFrame without it being clipped
1333 the the frame as well as the viewport, we now set the viewport size
1334 to the size of the contents.
1336 Rendering pure contents (no scrollbars etc) without clipping can be
1337 acomplished using QWebFrame::documentElement()->render(...)
1339 * tests/qwebelement/tst_qwebelement.cpp:
1340 (tst_QWebElement::render):
1342 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1344 Reviewed by Tor Arne Vestbø.
1346 Add menu item to dump the plugin list to the console,
1347 which can be handy for debugging.
1349 * QtLauncher/main.cpp:
1350 (MainWindow::dumpPlugins):
1351 (MainWindow::setupUI):
1353 2009-10-19 Kenneth Rohde Christiansen <kenneth@webkit.org>
1355 Reviewed by Tor Arne Vestbø.
1357 Introduce new render method on QWebFrame, which supports specifying
1358 which layers to render (scrollbars, contents, pan-icon).
1360 * Api/qwebframe.cpp:
1361 (QWebFramePrivate::renderPrivate):
1362 (QWebFrame::render):
1364 * Api/qwebframe_p.h:
1366 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
1368 Reviewed by Ariya Hidayat.
1370 [Qt] Infinite loop (leading to crash) when setting cursor in QGraphicsWebView
1371 https://bugs.webkit.org/show_bug.cgi?id=30549
1373 Patch reimplements QGraphicsItem's itemChange method, and make
1374 CursorChange event to be emitted after cursor has already been
1377 QWidget::setCursor send the event just after it sets the cursor,
1378 then patch makes both behaviors compatible.
1380 * Api/qgraphicswebview.cpp:
1381 (QGraphicsWebView::itemChange):
1382 * Api/qgraphicswebview.h:
1384 2009-10-19 Nate Chapin <japhet@chromium.org>
1386 Unreviewed, build fix.
1388 Update call to FrameLoader::loadFrameRequest().
1391 (QWebPage::triggerAction):
1393 2009-10-19 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
1395 Reviewed by Ariya Hidayat.
1397 Add QWebElement::render API which allows rendering of single
1400 * Api/qwebelement.cpp:
1401 (QWebElement::render):
1402 * Api/qwebelement.h:
1403 * tests/qwebelement/tst_qwebelement.cpp:
1404 (tst_QWebElement::render):
1405 * tests/qwebelement/qwebelement.qrc:
1406 * tests/qwebelement/image.png: Added.
1408 2009-10-19 Markus Goetz <Markus.Goetz@nokia.com>
1410 Reviewed by Ariya Hidayat.
1412 QWebPage: Doc: setNetworkAccessManager should only be called once.
1416 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
1418 Reviewed by Tor Arne.
1420 Wrong ifdef combination in QGraphicsWebView's event method.
1422 * Api/qgraphicswebview.cpp:
1423 (QGraphicsWebView::event):
1425 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
1427 Reviewed by Holger Freyther.
1429 [Qt] Windowed Plugins: Don't crash when client is 0.
1431 Client is 0 when we use QWebPage without a QWebView or QGraphicsWebView.
1432 In addition, setFrameRect()/updatePluginWidget() is called even if the
1433 plugin was not succesfully loaded. updatePluginWidget() updates the
1434 window rect which is, in theory, useful to draw something that indicates
1435 that we didn't load successfully.
1437 So, a status check is added to setNPWindowIfNeeded.
1439 https://bugs.webkit.org/show_bug.cgi?id=30380
1441 * tests/qwebpage/qwebpage.pro:
1442 * tests/qwebpage/tst_qwebpage.cpp:
1444 (tst_QWebPage::screenshot_data):
1445 (tst_QWebPage::screenshot):
1446 * tests/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf.
1448 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
1450 Reviewed by Holger Freyther.
1452 [Qt] Windowed Plugins: Fix crash when QWebPage is deleted after QWebView.
1454 Fixes various sources of crashes:
1455 1. The PluginContainer is a child of QWebView. When the view gets deleted,
1456 the PluginView is not notified about the deletion of PluginContainer.
1457 2. QWebView destructor does not set client to 0.
1458 3. Sometimes pending paint events are sent after the plugin has died, so add
1459 a check in PluginView::setNPWindowIfNeeded.
1461 https://bugs.webkit.org/show_bug.cgi?id=30354
1464 (QWebView::~QWebView):
1465 * tests/qwebview/qwebview.pro:
1466 * tests/qwebview/tst_qwebview.cpp:
1467 (tst_QWebView::reusePage_data):
1468 (tst_QWebView::reusePage):
1470 2009-10-19 Jakob Truelsen <antialize@gmail.com>
1472 Reviewed by Adam Barth.
1474 https://bugs.webkit.org/show_bug.cgi?id=29042
1476 Allow one to costumize the minimal and maximal shrink factors,
1477 Added methods setPrintingMinimumShrinkFactor, printingMinimumShrinkFactor,
1478 setPrintingMaximumShrinkFactor, printingMaximumShrinkFactor to QWebSettings.
1481 * Api/qwebsettings.cpp:
1482 (QWebSettingsPrivate::apply):
1483 (QWebSettings::QWebSettings):
1484 (QWebSettings::setPrintingMinimumShrinkFactor):
1485 (QWebSettings::printingMinimumShrinkFactor):
1486 (QWebSettings::setPrintingMaximumShrinkFactor):
1487 (QWebSettings::printingMaximumShrinkFactor):
1488 * Api/qwebsettings.h:
1490 2009-10-18 Kenneth Rohde Christiansen <kenneth@webkit.org>
1492 Reviewed by Simon Hausmann.
1494 Rename fixedContentsSize property to preferredContentsSize as
1495 agreed upon with Simon Hausmann and Matthias Ettrich.
1498 (QWebPage::preferredContentsSize):
1499 (QWebPage::setPreferredContentsSize):
1501 * WebCoreSupport/FrameLoaderClientQt.cpp:
1502 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1504 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
1506 Reviewed by Simon Hausmann.
1508 [Qt] QGLauncher leaks WebPage object
1509 https://bugs.webkit.org/show_bug.cgi?id=30465
1511 Make 'SharedScene' to own 'WebPage' reference and delete it at its destructor.
1516 * QGVLauncher/main.cpp:
1517 (SharedScene::SharedScene):
1518 (SharedScene::~SharedScene):
1520 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
1522 Reviewed by Simon Hausmann.
1524 [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash
1525 https://bugs.webkit.org/show_bug.cgi?id=30459
1527 Remove all setView(ev->widget()) calls in QWebPage and QGWV event handling methods,
1528 since QWebPageClient would do the trick.
1530 * Api/qgraphicswebview.cpp:
1531 (QGraphicsWebView::hoverMoveEvent):
1533 (QWebPagePrivate::mouseMoveEvent):
1534 (QWebPagePrivate::mousePressEvent):
1535 (QWebPagePrivate::mouseDoubleClickEvent):
1536 (QWebPagePrivate::mouseReleaseEvent):
1537 (QWebPagePrivate::wheelEvent):
1538 (QWebPagePrivate::dragEnterEvent):
1539 (QWebPagePrivate::dragLeaveEvent):
1540 (QWebPagePrivate::dragMoveEvent):
1542 2009-10-16 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1544 Pull out r49676 as it caused build breakges on Symbian
1548 2009-10-16 Yael Aharon <yael.aharon@nokia.com>
1550 Reviewed by Tor Arne Vestbø.
1552 [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
1553 https://bugs.webkit.org/show_bug.cgi?id=30179
1555 Added "c" style static methods for the application to hook up for
1556 receiving notifications when a plugin is created or destroyed.
1560 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
1562 Rubberstamped by Tor Arne.
1564 Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*).
1566 * QGVLauncher/main.cpp:
1569 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
1571 Reviewed by Tor Arne.
1573 [Qt] QGLauncher crashes while closing a window
1574 https://bugs.webkit.org/show_bug.cgi?id=30385
1576 Set page's pageClient reference to '0' at QGWV deletion.
1578 * Api/qgraphicswebview.cpp:
1579 (QGraphicsWebView::~QGraphicsWebView):
1580 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1582 (WebPage::aborting):
1583 (tst_QGraphicsWebView::crashOnViewlessWebPages):
1585 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1587 Reviewed by Simon Hausmann.
1589 [Qt] Make context menu to work in QGraphicsWebView
1590 https://bugs.webkit.org/show_bug.cgi?id=30336
1592 * Api/qgraphicswebview.cpp:
1593 (QGraphicsWebView::event):
1595 2009-10-13 Girish Ramakrishnan <girish@forwardbias.in>
1597 Reviewed by Simon Hausmann.
1599 [Qt] Plugins : Remove all traces of winId. Use ownerWidget() instead.
1601 This is a bug for two reasons:
1602 1. Everytime we use winId(), we end up creating a native widget. This causes an
1603 unnecessary copy of contents from the backing store to the native widget.
1604 2. Neither windowed nor windowless plugins require the winId of the QWebView or
1607 Introduce ownerWidget() which returns a QWidget * without creating a native widget
1608 (as opposed to QWidget::find(winId)).
1610 https://bugs.webkit.org/show_bug.cgi?id=30170
1612 * Api/qgraphicswebview.cpp:
1613 (QGraphicsWebViewPrivate::ownerWidget):
1615 (QWebViewPrivate::ownerWidget):
1617 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1619 Reviewed by Simon Hausmann.
1621 [Qt] Add some initial autotests for QWebPage's ErrorPageExtention
1622 https://bugs.webkit.org/show_bug.cgi?id=30296
1624 * tests/qwebpage/tst_qwebpage.cpp:
1625 (ErrorPage::ErrorPage):
1626 (ErrorPage::supportsExtension):
1627 (ErrorPage::extension):
1628 (tst_QWebPage::errorPageExtension):
1630 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1632 Reviewed by Simon Hausmann.
1634 [Qt] better handle possible edge cases on qwebframe::requestedUrl use
1635 https://bugs.webkit.org/show_bug.cgi?id=30216
1637 QWebFrame::requestedUrl can be called at any time during the load
1640 * An error handling (whereas an alternate error page for unsuccessful
1642 * A ssl error exception call;
1643 * During navigation notifications/callbacks (titleChanged, urlChanged,
1644 progresses, addHistoryEntry, etc);
1647 This patch makes requestedUrl calls to fallback to FrameLoaderClient
1648 m_loadError's failingURL when an error has occurred, unless it is
1651 Also, m_loadError is now being reset at each the main frame starts a
1652 load, in order to avoid previous load errors footprints.
1654 * Api/qwebframe.cpp:
1655 (QWebFrame::requestedUrl):
1656 * WebCoreSupport/FrameLoaderClientQt.cpp:
1657 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
1659 2009-10-12 Jakub Wieczorek <faw217@gmail.com>
1661 Reviewed by Simon Hausmann.
1663 [Qt] Missing default value for the default text encoding.
1664 https://bugs.webkit.org/show_bug.cgi?id=30311
1666 QtWebKit has provided a default, hardcoded value for default charset but since
1667 the addition of the defaultTextEncoding setting in QWebSettings, that hardcoded
1668 value has had no effect.
1670 Added a regression test and unskipped fast/dom/Document/document-charset.html,
1671 which is passing now.
1674 (QWebPagePrivate::QWebPagePrivate):
1675 * Api/qwebsettings.cpp:
1676 (QWebSettings::QWebSettings):
1677 * tests/qwebpage/tst_qwebpage.cpp:
1678 (tst_QWebPage::defaultTextEncoding):
1680 2009-10-12 Kenneth Rohde Christiansen <kenneth@webkit.org>
1682 Reviewed by Simon Hausmann.
1684 Implement the new palette() methods on the page clients
1686 * Api/qgraphicswebview.cpp:
1687 (QGraphicsWebViewPrivate::palette):
1689 (QWebViewPrivate::palette):
1691 2009-10-12 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
1693 Reviewed by Simon Hausmann.
1695 QWebPage's createViewlessPlugin autotest crash fix.
1697 It is possible that plugins that are QWidgets or QGraphicsWidgets
1698 are created before a view has been assigned to a QWebPage. The
1699 plug-ins won't be fully functional, as by design, they should
1700 visualise something, but they won't crash and will stay in memory.
1702 An autotest that covers this use-case, is included.
1704 https://bugs.webkit.org/show_bug.cgi?id=30118
1706 * WebCoreSupport/FrameLoaderClientQt.cpp:
1707 (WebCore::FrameLoaderClientQt::createPlugin):
1708 * tests/qwebpage/tst_qwebpage.cpp:
1709 (PluginTrackedPageWidget::PluginTrackedPageWidget):
1710 (PluginTrackedPageGraphicsWidget::PluginTrackedPageGraphicsWidget):
1711 (PluginTrackedPageGraphicsWidget::createPlugin):
1712 (tst_QWebPage::destroyPlugin):
1713 (tst_QWebPage::createViewlessPlugin):
1715 2009-10-09 Joe Ligman <joseph.ligman@nokia.com>
1717 Reviewed by Simon Hausmann.
1719 Sets Qt::WA_InputMethodEnabled and Qt::ImhHiddenText for password fields in EditorClientQt
1720 setInputMethodState. This change is needed so widgets such as the s60 software
1721 input panel can receive input method events for password fields.
1722 It's up to the Qt platform to determine which widget will receive input method
1723 events when these flags are set.
1724 Also added implementation for setInputMethodEnabled and setInputMethodHint
1725 to QGraphicsWebViewPrivate and QWebViewPrivate. This change removes the direct
1726 dependency on QWebView and uses QWebPageClient.
1727 Added autotest to tst_qwebpage.cpp
1728 https://bugs.webkit.org/show_bug.cgi?id=30023
1730 * Api/qgraphicswebview.cpp:
1731 (QGraphicsWebViewPrivate::setInputMethodEnabled):
1732 (QGraphicsWebViewPrivate::setInputMethodHint):
1734 (QWebViewPrivate::setInputMethodEnabled):
1735 (QWebViewPrivate::setInputMethodHint):
1736 * WebCoreSupport/EditorClientQt.cpp:
1737 (WebCore::EditorClientQt::setInputMethodState):
1738 * tests/qwebpage/tst_qwebpage.cpp:
1739 (tst_QWebPage::inputMethods):
1741 2009-10-08 Adam Barth <abarth@webkit.org>
1743 Reviewed by Eric Seidel.
1745 Move executeScript from FrameLoader to ScriptController
1746 https://bugs.webkit.org/show_bug.cgi?id=30200
1750 * Api/qwebframe.cpp:
1751 (QWebFrame::evaluateJavaScript):
1753 2009-10-08 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
1755 Reviewed by Simon Hausmann.
1757 Part of testOptionalJSObjects autotest was marked as "expect to fail".
1759 Two places in tst_QWebPage::testOptionalJSObjects were marked as
1760 expected to fail. The problem concern checking if a feature is enabled
1761 or disabled. According to discussion on webkit dev mailing list
1762 a disabled feature should be invisible from java script level, but
1763 there are exceptions from the rule. So we decided to disable the test
1766 https://bugs.webkit.org/show_bug.cgi?id=29867
1768 * tests/qwebpage/tst_qwebpage.cpp:
1769 (tst_QWebPage::testOptionalJSObjects):
1771 2009-10-07 Adam Barth <abarth@webkit.org>
1773 Reviewed by Darin Adler.
1775 Factor PolicyChecker out of FrameLoader
1776 https://bugs.webkit.org/show_bug.cgi?id=30155
1778 Move the policy callback to the policy object.
1780 * WebCoreSupport/FrameLoaderClientQt.cpp:
1781 (WebCore::FrameLoaderClientQt::callPolicyFunction):
1783 2009-10-07 Antonio Gomes <tonikitoo@webkit.org>
1785 Reviewed by Simon Hausmann.
1787 [Qt] Get rid of useless loadFailed signal in QGraphicsWebView
1788 https://bugs.webkit.org/show_bug.cgi?id=30166
1790 * Api/qgraphicswebview.cpp:
1791 (QGraphicsWebViewPrivate::_q_doLoadFinished):
1792 * Api/qgraphicswebview.h:
1793 * QGVLauncher/main.cpp:
1795 (MainWindow::loadFinished):
1797 2009-10-07 Girish Ramakrishnan <girish@forwardbias.in>
1799 Reviewed by Simon Hausmann.
1801 Add a simple rotation effect to QGVLauncher
1803 https://bugs.webkit.org/show_bug.cgi?id=30162
1805 * QGVLauncher/main.cpp:
1806 (MainView::animatedFlip):
1807 (MainWindow::animatedFlip):
1808 (MainWindow::buildUI):
1810 2009-10-07 Volker Hilsheimer <volker.hilsheimer@nokia.com>
1812 Reviewed by Simon Hausmann.
1814 Doc: Document HTML and status as properties.
1816 * Api/qgraphicswebview.cpp:
1818 2009-10-07 Martin Smith <msmith@trolltech.com>
1820 Reviewed by Simon Hausmann.
1822 Fix qdoc warning about disabled renderHints property
1828 2009-10-06 Adam Barth <abarth@webkit.org>
1830 Reviewed by Eric Seidel.
1832 Move setLocalLoadPolicy and friends to SecurityOrigin
1833 https://bugs.webkit.org/show_bug.cgi?id=30110
1838 (QWebPagePrivate::QWebPagePrivate):
1840 2009-10-06 Benjamin C Meyer <bmeyer@rim.com>
1842 Reviewed by Ariya Hidayat.
1844 When the drag data contains an image set it on the QDrag so it will be visible to the user.
1846 * WebCoreSupport/DragClientQt.cpp:
1847 (WebCore::DragClientQt::startDrag):
1849 2009-10-06 Pavel Feldman <pfeldman@chromium.org>
1851 Reviewed by Timothy Hatcher.
1853 Web Inspector: close inspector client view on
1854 InspectorController::close API call.
1856 In order to run batch web inspector layout tests (and not affect
1857 subsequent tests) we should close inspector client's view upon
1858 InspectorController::close API call.
1860 https://bugs.webkit.org/show_bug.cgi?id=30009
1862 * WebCoreSupport/InspectorClientQt.cpp:
1863 (WebCore::InspectorClientQt::createPage):
1865 2009-10-06 Janne Koskinen <janne.p.koskinen@digia.com>
1867 Reviewed by Simon Hausmann.
1869 [Qt] don't enable input methods on Symbian by default.
1870 https://bugs.webkit.org/show_bug.cgi?id=30117
1872 If input methods are enabled Symbian FEP will be launched on every
1873 pointer event making webpage navigation impossible with QWebView.
1876 (QWebView::QWebView):
1878 2009-10-05 Holger Hans Peter Freyther <zecke@selfish.org>
1880 Reviewed by Simon Hausmann.
1882 QtLauncher: print the number of loaded urls
1884 When using the -r mode print the number of URLs loaded so far. This
1885 is extremly useful when opening the same URL over and over again and
1886 one wants to see the progress.
1888 * QtLauncher/main.cpp:
1889 (URLLoader::URLLoader):
1890 (URLLoader::loadNext):
1892 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
1894 Reviewed by Simon Hausmann.
1896 Add screenshot option to menubar
1898 https://bugs.webkit.org/show_bug.cgi?id=30067
1900 * QtLauncher/main.cpp:
1901 (MainWindow::screenshot):
1902 (MainWindow::setupUI):
1904 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
1906 Reviewed by Simon Hausmann.
1908 Setting the env QTLAUNCHER_USE_ARGB_VISUALS makes Qt use WA_TranslucentWindow.
1910 https://bugs.webkit.org/show_bug.cgi?id=30068
1912 * QtLauncher/main.cpp:
1913 (MainWindow::MainWindow):
1915 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
1917 Rubberstamped by Simon Hausmann.
1919 Add documentation to the ErrorPageExtension.
1923 2009-10-02 Yael Aharon <yael.aharon@nokia.com>
1925 Reviewed by Simon Hausmann.
1927 [Qt] Inform the application when a new request is created
1928 https://bugs.webkit.org/show_bug.cgi?id=29975
1930 Add a signal to QWebPage, to inform the application when a request is created.
1934 * tests/qwebpage/tst_qwebpage.cpp:
1935 (tst_QWebPage::loadFinished):
1937 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
1939 Reviewed by Simon Hausmann.
1941 ErrorPageExtension: Add a pointer to the QWebFrame that had
1945 * WebCoreSupport/FrameLoaderClientQt.cpp:
1946 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
1948 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
1950 Reviewed by Tor Arne Vestbø.
1952 Do not empty the offline web appcache when clearing
1953 memory caches. That one is not in memory, but stored
1956 * Api/qwebsettings.cpp:
1957 (QWebSettings::clearMemoryCaches):
1959 2009-10-05 J-P Nurmi <jpnurmi@gmail.com>
1961 Reviewed by Simon Hausmann.
1963 Added QGraphicsWidget-plugins support to FrameLoaderClientQt.
1965 https://bugs.webkit.org/show_bug.cgi?id=29710
1967 * Api/qgraphicswebview.cpp:
1968 (QGraphicsWebViewPrivate::pluginParent):
1970 (QWebViewPrivate::pluginParent):
1971 * WebCoreSupport/FrameLoaderClientQt.cpp:
1973 (WebCore::FrameLoaderClientQt::createPlugin):
1975 2009-10-03 Adam Barth <abarth@webkit.org>
1977 Unreview build fix. I wish I had a try server...
1980 (QWebPagePrivate::updateAction):
1982 2009-10-02 Norbert Leser <norbert.leser@nokia.com>
1984 Reviewed by Simon Hausmann.
1986 Conditionally guard cursor code (cursor and updateCursor functions) with !QT_NO_CURSOR.
1987 Otherwise, it is inconsistent with class declaration of QCursor.
1989 * Api/qgraphicswebview.cpp:
1992 2009-10-02 Prasanth Ullattil <prasanth.ullattil@nokia.com>
1994 Reviewed by Simon Hausmann.
1996 Fix compiler warnings about unused function arguments.
1998 * Api/qwebframe.cpp:
1999 (QWebFrame::scrollBarMinimum):
2001 (QWebPagePrivate::focusInEvent):
2002 (QWebPagePrivate::focusOutEvent):
2003 (QWebPagePrivate::leaveEvent):
2004 (QWebPage::javaScriptAlert):
2005 (QWebPage::javaScriptConfirm):
2006 (QWebPage::javaScriptPrompt):
2007 (QWebPage::triggerAction):
2008 (QWebPage::acceptNavigationRequest):
2009 (QWebPage::chooseFile):
2010 * WebCoreSupport/ChromeClientQt.cpp:
2011 (WebCore::ChromeClientQt::repaint):
2012 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2013 (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
2014 * WebCoreSupport/ContextMenuClientQt.cpp:
2015 (WebCore::ContextMenuClientQt::downloadURL):
2016 * WebCoreSupport/FrameLoaderClientQt.cpp:
2017 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2018 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
2019 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
2020 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
2021 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2022 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
2023 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2024 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
2025 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
2026 * WebCoreSupport/InspectorClientQt.cpp:
2027 (WebCore::InspectorClientQt::setAttachedWindowHeight):
2028 (WebCore::InspectorClientQt::highlight):
2029 (WebCore::InspectorClientQt::removeSetting):
2031 2009-10-01 Simon Hausmann <simon.hausmann@nokia.com>
2033 Reviewed by Tor Arne Vestbø.
2035 Make Software Input Panel requests work with QGraphicsWebView
2036 _and_ QWebView by sharing the event code in handleSoftwareInputPanel().
2039 (QWebPagePrivate::mouseReleaseEvent):
2040 (QWebPagePrivate::handleSoftwareInputPanel):
2043 2009-10-01 Alexis Menard <alexis.menard@nokia.com>
2045 Reviewed by Tor Arne Vestbø.
2047 Rename QWebGraphicsItem to QGraphicsWebView
2051 * Api/qwebgraphicsitem.cpp: Renamed.
2052 * Api/qwebgraphicsitem.h: Renamed.
2053 * WebKit/qt/QGVLauncher/main.cpp:
2055 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Renamed.
2056 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Renamed.
2058 2009-10-01 Antonio Gomes <tonikitoo@webkit.org>
2060 Reviewed by Simon Hausmann.
2062 https://bugs.webkit.org/show_bug.cgi?id=29248
2063 [Qt] [API] Make it possible to have 'invisible' loads
2065 Make QWebFrame's setHtml and setContent methods to not change
2066 session and global history at all.
2068 * Api/qwebframe.cpp:
2069 (QWebFrame::setHtml):
2070 (QWebFrame::setContent):
2071 * tests/qwebframe/qwebframe.pro:
2072 * tests/qwebframe/tst_qwebframe.cpp:
2074 2009-10-01 Kristian Amlie <kristian.amlie@nokia.com>
2076 Reviewed by Simon Hausmann.
2078 Fixed software input panel support on web input elements.
2080 Send the RequestSoftwareInputPanel event if the element supports focus
2081 and the element is clicked.
2084 (QWebPagePrivate::QWebPagePrivate):
2085 (QWebPagePrivate::mousePressEvent):
2086 (QWebPagePrivate::mouseReleaseEvent):
2089 2009-10-01 Joe Ligman <joseph.ligman@nokia.com>
2091 Reviewed by Simon Hausmann.
2093 Implementation for QWebPage::inputMethodQuery and QWebPagePrivate::inputMethodEvent
2095 https://bugs.webkit.org/show_bug.cgi?id=29681
2097 Some additional changes from Kristian Amlie <kristian.amlie@nokia.com>:
2099 * Fixed surrounding text to exclude preedit string
2100 * Avoid emission of microFocusChanged during setComposition()
2103 (QWebPagePrivate::inputMethodEvent):
2104 (QWebPage::inputMethodQuery):
2105 * WebCoreSupport/EditorClientQt.cpp:
2106 (WebCore::EditorClientQt::respondToChangedSelection):
2107 * tests/qwebpage/tst_qwebpage.cpp:
2108 (tst_QWebPage::inputMethods):
2110 2009-09-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
2112 Reviewed by David Hyatt.
2114 Add the failed URL to the ErrorPageExtension, as it is quite
2115 useful for creating error pages.
2118 * WebCoreSupport/FrameLoaderClientQt.cpp:
2119 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2121 2009-09-29 Andras Becsi <becsi.andras@stud.u-szeged.hu>
2123 Reviewed by Tor Arne Vestbø.
2125 [Qt] Default font size reconciliation to 16px/13px to match other platform's de-facto standard.
2126 This fixes https://bugs.webkit.org/show_bug.cgi?id=19674.
2128 * Api/qwebsettings.cpp:
2129 (QWebSettings::QWebSettings):
2131 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2133 Reviewed by Simon Hausmann.
2135 https://bugs.webkit.org/show_bug.cgi?id=29844
2137 QWebPage dependency autotest fix.
2139 Fix for database() autotest. All opened databases should be removed at
2142 * tests/qwebpage/tst_qwebpage.cpp:
2143 (tst_QWebPage::database):
2145 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2147 Reviewed by Simon Hausmann.
2149 Some QWebHistory and QWebPage autotest crash fixes.
2151 Some checking for m_mainFrame were added. MainFrame should be created
2152 at some point of QWebPage live cicle.
2154 https://bugs.webkit.org/show_bug.cgi?id=29803
2157 (QWebPage::~QWebPage):
2158 (QWebPage::currentFrame):
2159 (QWebPage::history):
2160 (QWebPage::selectedText):
2161 (QWebPage::updatePositionDependentActions):
2162 * tests/qwebpage/tst_qwebpage.cpp:
2163 (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
2165 2009-09-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
2167 Reviewed by Simon Hausmann and Tor Arne Vestbø.
2169 Implement QWebPage Extension for error pages, incl.
2170 an example on how to use it in QtLauncher.
2172 Correct our use of ResourceError.
2175 (ExtensionOption::):
2176 (ExtensionOption::ErrorPageExtensionReturn::ErrorPageExtensionReturn):
2177 * QtLauncher/main.cpp:
2178 (WebPage::supportsExtension):
2179 (MainWindow::MainWindow):
2180 (MainWindow::selectElements):
2181 (WebPage::extension):
2182 * WebCoreSupport/FrameLoaderClientQt.cpp:
2183 (WebCore::FrameLoaderClientQt::cancelledError):
2184 (WebCore::FrameLoaderClientQt::blockedError):
2185 (WebCore::FrameLoaderClientQt::cannotShowURLError):
2186 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2187 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2188 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2189 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2190 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
2191 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
2192 * WebCoreSupport/FrameLoaderClientQt.h:
2194 2009-09-28 Andre Poenitz <andre.poenitz@trolltech.com>
2196 Reviewed by Simon Hausmann.
2198 Compile fix with namespaced Qt.
2200 * Api/qwebinspector_p.h:
2202 2009-09-27 Joe Ligman <joseph.ligman@mindspring.com>
2204 Reviewed by Simon Hausmann.
2206 [Qt] Adding API setFocus and hasFocus to QWebElement. This API is needed for
2207 clients that want to check/set the focus node of the document.
2208 https://bugs.webkit.org/show_bug.cgi?id=29682
2210 * Api/qwebelement.cpp:
2211 (QWebElement::hasFocus):
2212 (QWebElement::setFocus):
2213 * Api/qwebelement.h:
2214 * tests/qwebelement/tst_qwebelement.cpp:
2215 (tst_QWebElement::hasSetFocus):
2217 2009-09-25 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
2219 Reviewed by Simon Hausmann.
2221 [Qt] Make tst_qwebframe work if Qt built without SSL support
2222 https://bugs.webkit.org/show_bug.cgi?id=29735
2224 * tests/qwebframe/tst_qwebframe.cpp: Missing #ifndef blocks added.
2226 2009-09-24 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2228 Reviewed by Simon Hausmann.
2230 [Qt] Update QWebElement API to remove script related methods.
2231 QWebElement::evaluateScript is the only one kept, these are
2232 removed to postpone most of the QtWebKit<->JavaScript API design
2234 https://bugs.webkit.org/show_bug.cgi?id=29708
2236 * Api/qwebelement.cpp:
2237 * Api/qwebelement.h:
2239 - QWebElement::callFunction
2240 - QWebElement::functions
2241 - QWebElement::scriptableProperty
2242 - QWebElement::setScriptableProperty
2243 - QWebElement::scriptableProperties
2244 * tests/qwebelement/tst_qwebelement.cpp:
2245 (tst_QWebElement::evaluateScript):
2247 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2249 Reviewed by Simon Hausmann.
2251 [Qt] Rename QWebElement::evaluateScript
2252 to QWebElement::evaluateJavaScript.
2253 https://bugs.webkit.org/show_bug.cgi?id=29709
2255 * Api/qwebelement.cpp:
2256 (QWebElement::evaluateJavaScript):
2257 * Api/qwebelement.h:
2258 * tests/qwebelement/tst_qwebelement.cpp:
2259 (tst_QWebElement::evaluateJavaScript):
2261 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2263 Reviewed by Simon Hausmann.
2265 [Qt] Update the stypeProperty API of QWebElement.
2266 https://bugs.webkit.org/show_bug.cgi?id=29711
2268 * Api/qwebelement.cpp:
2269 (QWebElement::styleProperty):
2270 - Merge the stypeProperty and the computedStyleProperty methods
2271 - Remove the default value for the style resolving enum
2272 - Rename ResolveRule to StyleResolveStrategy
2273 (QWebElement::setStyleProperty):
2274 - Remove the priority argument since it is possible to control the
2275 behaviour by adding !important or removing in the value.
2276 * Api/qwebelement.h:
2277 * tests/qwebelement/tst_qwebelement.cpp:
2278 (tst_QWebElement::style):
2279 (tst_QWebElement::computedStyle):
2280 * tests/qwebframe/tst_qwebframe.cpp:
2282 2009-09-24 Jon Honeycutt <jhoneycutt@apple.com>
2284 Reviewed by Alice Liu.
2287 (QWebPagePrivate::QWebPagePrivate):
2288 Pass 0 for new Page constructor argument.
2290 2009-09-24 Martin Smith <msmith@trolltech.com>
2292 Reviewed by Simon Hausmann.
2294 qdoc: Added \brief texts to all the since 4.6 functions.
2296 * Api/qwebhistory.cpp:
2298 2009-09-23 J-P Nurmi <jpnurmi@gmail.com>
2300 Reviewed by Simon Hausmann.
2302 Prevent QWebPage::setView() from changing the viewport size on the fly
2303 in case the view doesn't actually change. QWebPage::setView() is
2304 called upon every QWebGraphicsItem::hoverMoveEvent(), which forced
2305 the viewport size to be equal to the size of the whole graphics view.
2307 https://bugs.webkit.org/show_bug.cgi?id=29676
2310 (QWebPage::setView):
2312 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2314 Reviewed by Simon Hausmann.
2316 [Qt] Crash fix in QWebHistory back and forward methods.
2318 QWebHistory::back() and QWebHistory::forward() were crashing on
2319 ASSERT in WebCore::BackForwardList. The methods should check
2320 canGoBack() and canGoForward() at the beginning.
2322 https://bugs.webkit.org/show_bug.cgi?id=29675
2324 * Api/qwebhistory.cpp:
2325 (QWebHistory::back):
2326 (QWebHistory::forward):
2328 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2330 Reviewed by Simon Hausmann.
2332 [Qt] Bug fix. QWebHistory should call QWebPage::updateNavigationActions
2334 In QWebHistory's methods that change item count or current item call
2335 to QWebPage::updateNavigationActions should be executed.
2336 QWebHistory::clear() and QWebHistory::restorState() were changed.
2337 New helper method, QWebPagePrivate accesor, were created in
2338 QWebHistoryPrivate class.
2339 Two autotest were developed.
2341 https://bugs.webkit.org/show_bug.cgi?id=29246
2343 * Api/qwebhistory.cpp:
2344 (QWebHistory::clear):
2345 (QWebHistory::restoreState):
2346 (QWebHistoryPrivate::page):
2347 * Api/qwebhistory_p.h:
2348 * tests/qwebhistory/tst_qwebhistory.cpp:
2349 (tst_QWebHistory::saveAndRestore_1):
2350 (tst_QWebHistory::clear):
2352 2009-09-23 Norbert Leser <norbert.leser@nokia.com>
2354 Reviewed by Tor Arne Vestbø.
2356 Need to guard QX11Info include with Q_WS_X11.
2357 That class may not be available (in QT 4.5 for Symbian, for instance).
2358 Completes fixes in r48627 and r48604.
2360 * Api/qwebgraphicsitem.cpp:
2363 2009-09-22 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2365 Reviewed by Simon Hausmann.
2367 [Qt] Add default timeout while waiting for signals in QWebPage auto
2369 https://bugs.webkit.org/show_bug.cgi?id=29637
2371 * tests/qwebpage/tst_qwebpage.cpp:
2374 2009-09-22 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2376 Reivewed by Simon Hausmann.
2378 Fix the Qt/Mac build after r48604 (Implement new QWebPageClient class)
2380 There's no QWidget::x11Info() on Mac, and setPlatformPluginWidget()
2381 takes a QWidget*, not a QWebPageClient*
2383 * Api/qwebgraphicsitem.cpp:
2384 (QWebGraphicsItemPrivate::screenNumber):
2386 (QWebViewPrivate::screenNumber):
2388 2009-09-21 Kenneth Rohde Christiansen <kenneth@webkit.org>
2390 Reviewed by Simon Hausmann.
2392 For Qt, platformPageClient() will now return a class derived from
2393 the QWebPageClient, so the patch adapts our Qt hooks to go though
2394 this class and not depend on the QWebView.
2396 * Api/qwebgraphicsitem.cpp:
2397 (QWebGraphicsItemPrivate::scroll):
2398 (QWebGraphicsItemPrivate::update):
2399 (QWebGraphicsItemPrivate::cursor):
2400 (QWebGraphicsItemPrivate::updateCursor):
2401 (QWebGraphicsItemPrivate::screenNumber):
2402 (QWebGraphicsItemPrivate::winId):
2403 (QWebGraphicsItem::event):
2404 (QWebGraphicsItem::setPage):
2405 * Api/qwebgraphicsitem.h:
2407 (QWebPagePrivate::QWebPagePrivate):
2410 (QWebViewPrivate::scroll):
2411 (QWebViewPrivate::update):
2412 (QWebViewPrivate::cursor):
2413 (QWebViewPrivate::updateCursor):
2414 (QWebViewPrivate::screenNumber):
2415 (QWebViewPrivate::winId):
2416 (QWebView::setPage):
2418 * WebCoreSupport/ChromeClientQt.cpp:
2419 (WebCore::ChromeClientQt::repaint):
2420 (WebCore::ChromeClientQt::scroll):
2421 (WebCore::ChromeClientQt::platformPageClient):
2423 2009-09-21 Yael Aharon <yael.aharon@nokia.com>
2425 Reviewed by Simon Hausmann.
2427 https://bugs.webkit.org/show_bug.cgi?id=29609
2428 Build fix for windows when using Qt 4.5.0.
2431 (QWebPage::userAgentForUrl):
2433 2009-09-19 Benjamin Poulain <benjamin.poulain@nokia.com>
2435 Reviewed by Simon Hausmann.
2437 https://bugs.webkit.org/show_bug.cgi?id=29345
2438 The tests of QWebFrame did not use QTRY_VERIFY for
2439 tests involving the event loop.
2441 * tests/qwebframe/tst_qwebframe.cpp:
2442 * tests/util.h: Added. Copy of tests/shared/util.h of Qt
2444 2009-09-19 Jakub Wieczorek <faw217@gmail.com>
2446 Reviewed by Simon Hausmann.
2448 [Qt] Add an autotest stub for QWebGraphicsItem.
2450 It just calls all the functions and makes sure they don't crash.
2452 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Added.
2453 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Added.
2454 (tst_QWebGraphicsItem::qwebgraphicsitem):
2457 2009-09-18 Norbert Leser <norbert.leser@nokia.com>
2459 Reviewed by Eric Seidel.
2461 Corrected the Symbian specific UID3 values to be assigned
2462 from the "unprotected" pool that permits self-signing of
2463 those test and demo executables. (Added new UID3 values
2464 where they were missing for new components.)
2466 * QGVLauncher/QGVLauncher.pro:
2467 * QtLauncher/QtLauncher.pro:
2468 * tests/benchmarks/loading/tst_loading.pro:
2469 * tests/benchmarks/painting/tst_painting.pro:
2470 * tests/qwebelement/qwebelement.pro:
2471 * tests/qwebframe/qwebframe.pro:
2472 * tests/qwebhistory/qwebhistory.pro:
2473 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
2474 * tests/qwebpage/qwebpage.pro:
2475 * tests/qwebplugindatabase/qwebplugindatabase.pro:
2476 * tests/qwebview/qwebview.pro:
2478 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2480 Reviewed by Simon Hausmann.
2482 Make PlatformWindow return something else than PlatformWidget
2483 https://bugs.webkit.org/show_bug.cgi?id=29085
2485 Reflect the rename of platformWindow and it's return type.
2487 * WebCoreSupport/ChromeClientQt.cpp:
2488 (WebCore::ChromeClientQt::platformPageClient):
2489 * WebCoreSupport/ChromeClientQt.h:
2491 2009-09-18 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2493 Reviewed by Simon Hausmann.
2495 [Qt] Add persistence support for configuration options in the
2498 * Api/qwebinspector.cpp:
2499 * QtLauncher/main.cpp:
2501 * WebCoreSupport/InspectorClientQt.cpp:
2502 (WebCore::InspectorClientQt::populateSetting):
2503 (WebCore::InspectorClientQt::storeSetting):
2504 (WebCore::variantToSetting):
2505 (WebCore::settingToVariant):
2507 2009-09-18 Simon Hausmann <simon.hausmann@nokia.com>
2509 Reviewed by Ariya Hidayat.
2511 Fixed a bunch of documentation warnings.
2513 * Api/qwebgraphicsitem.cpp:
2514 * Api/qwebplugindatabase.cpp:
2515 * Api/qwebpluginfactory.cpp:
2516 * Api/qwebsecurityorigin.cpp:
2518 2009-09-18 Warwick Allison <warwick.allison@nokia.com>
2520 Reviewed by Simon Hausmann.
2522 Added a test that console output works.
2524 * tests/qwebpage/tst_qwebpage.cpp:
2525 (ConsolePage::ConsolePage):
2526 (ConsolePage::javaScriptConsoleMessage):
2527 (tst_QWebPage::consoleOutput):
2529 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2531 Reviewed by Simon Hausmann.
2533 Improve documentation for Page Cache.
2535 * Api/qwebsettings.cpp:
2537 2009-09-17 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2539 Reviewed by Simon Hausmann.
2541 [Qt] Update QWebSettings::setUserStyleSheetUrl() docs and test
2543 https://bugs.webkit.org/show_bug.cgi?id=29081
2545 The documentation now specifies that the URL has to be a local file
2546 or a a data-URL (with utf-8 and base64-encoded data), as these are the
2547 only two schemes that the current code path accepts.
2549 The auto-test has been updated to reflect this limitation.
2551 At a later point we should concider adding API for the new way of
2552 doing both user defined stylesheets and scripts.
2554 * Api/qwebsettings.cpp:
2555 * tests/qwebpage/tst_qwebpage.cpp:
2557 2009-09-17 Janne Koskinen <janne.p.koskinen@digia.com>
2559 Reviewed by Simon Hausmann.
2563 Moved the #ifdefs around _q_cleanupLeakMessages() into the function
2566 QMake is not being able to distinguish between release and debug builds
2567 in Symbian build. This is a Symbian toolchain issue.
2570 (QWebPagePrivate::_q_cleanupLeakMessages):
2574 2009-09-17 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2576 Reviewed by Simon Hausmann.
2578 Small cosmetic documentation fixlet in the QWebInspector.
2580 * Api/qwebinspector.cpp:
2582 2009-09-16 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
2584 Reviewed by Eric Seidel.
2586 Detect and add Windows7 properly to the user agent.
2589 (QWebPage::userAgentForUrl):
2591 2009-09-16 Andras Becsi <andrewbecsi@yahoo.co.uk>
2593 Rubberstamped by Kenneth Christiansen.
2595 [Qt] Build fix for previous changes.
2597 * QGVLauncher/main.cpp:
2600 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
2602 Unreviewed potential Qt < 4.6 build fix.
2604 * QGVLauncher/main.cpp:
2607 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
2609 Reviewed by Simon Hausmann.
2611 Add a "Flip effect" to our GraphicsView based launcher.
2613 * QGVLauncher/main.cpp:
2614 (MainView::resizeEvent):
2617 (MainWindow::buildUI):
2619 2009-09-16 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>
2621 Rubber-stamped by Simon Hausmann.
2623 [Qt] Typo fix. Pass the window object to the Format
2624 menu. In this way Qt can free its internal graphical
2625 objects during exit.
2627 * QtLauncher/main.cpp:
2628 (MainWindow::setupUI):
2630 2009-09-16 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2632 Reviewed by Tor Arne Vestbø.
2634 [Qt] Build break fix on gcc ARM.
2636 * Api/qwebgraphicsitem.cpp:
2637 (QWebGraphicsItemPrivate::_q_doLoadProgress):
2639 2009-09-16 Warwick Allison <warwick.allison@nokia.com>
2641 Reviewed by Simon Hausmann.
2643 Fix a crash in QWebFrame::hasFocus() with a simple null pointer check
2644 when the focused frame is null. We do the same check in other places
2645 where we call kit().
2647 * Api/qwebframe.cpp:
2648 (QWebFrame::hasFocus):
2650 2009-09-16 Jure Repinc <jlp@holodeck1.com>
2652 Reviewed by Simon Hausmann.
2654 Fixed a typo found during translation.
2656 * WebCoreSupport/FrameLoaderClientQt.cpp:
2657 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2659 2009-09-14 Jakub Wieczorek <faw217@gmail.com>
2661 Reviewed by Simon Hausmann.
2663 [Qt] QWebGraphicsItem should check for null QWebPage.
2664 https://bugs.webkit.org/show_bug.cgi?id=29185
2666 Don't crash in QWebGraphicsItem when the page is still null, by
2667 either checking if it's the case or constructing the default one.
2669 * Api/qwebgraphicsitem.cpp:
2670 (QWebGraphicsItem::icon):
2671 (QWebGraphicsItem::setZoomFactor):
2672 (QWebGraphicsItem::zoomFactor):
2673 (QWebGraphicsItem::setGeometry):
2674 (QWebGraphicsItem::load):
2675 (QWebGraphicsItem::setHtml):
2676 (QWebGraphicsItem::toHtml):
2677 (QWebGraphicsItem::setContent):
2678 (QWebGraphicsItem::history):
2679 (QWebGraphicsItem::settings):
2681 2009-09-11 David Boddie <dboddie@trolltech.com>
2683 Reviewed by Simon Hausmann.
2685 Doc: Note that Netscape plugins are only available on desktop platforms.
2687 * docs/qtwebkit.qdoc:
2689 2009-09-11 Martin Smith <msmith@trolltech.com>
2691 Reviewed by Simon Hausmann.
2693 Adjust the name of the contentspage for the documentation
2694 to the new name used in Qt 4.6.
2696 * docs/qtwebkit.qdoc:
2698 2009-09-11 Ariya Hidayat <ariya.hidayat@nokia.com>
2700 Reviewed by Simon Hausmann.
2702 Changed URLs from qtsoftware.com to qt.nokia.com, as part of a general
2705 * Api/qwebpluginfactory.cpp:
2706 * docs/webkitsnippets/simple/main.cpp:
2708 * docs/webkitsnippets/webpage/main.cpp:
2711 2009-09-11 Volker Hilsheimer <volker.hilsheimer@nokia.com>
2713 Reviewed by Simon Hausmann.
2715 Restructure the documentation, both on a file and on a content level.
2717 * Api/qwebdatabase.cpp:
2718 * Api/qwebelement.cpp:
2719 * Api/qwebframe.cpp:
2720 * Api/qwebhistory.cpp:
2721 * Api/qwebhistoryinterface.cpp:
2723 * Api/qwebpluginfactory.cpp:
2724 * Api/qwebsecurityorigin.cpp:
2725 * Api/qwebsettings.cpp:
2727 * docs/qtwebkit.qdoc:
2729 2009-09-11 Yongjun Zhang <yongjun.zhang@nokia.com>
2731 Reviewed by Simon Hausmann.
2733 https://bugs.webkit.org/show_bug.cgi?id=29136
2734 [Qt] emit microFocusChanged() signal when no QWidget-based view is present.
2736 emit microFocusChange() signal regardless of view.
2738 * WebCoreSupport/EditorClientQt.cpp:
2739 (WebCore::EditorClientQt::setInputMethodState):
2741 2009-09-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2743 Reviewed by Simon Hausmann.
2745 https://bugs.webkit.org/show_bug.cgi?id=28806
2747 [Qt] Make the WebInspector available as a QWidget.
2750 * Api/qwebelement.cpp:
2751 (QWebElement::enclosingElement):
2752 * Api/qwebelement.h:
2753 * Api/qwebinspector.cpp: Added.
2754 * Api/qwebinspector.h: Added.
2755 * Api/qwebinspector_p.h: Added.
2757 (QWebPagePrivate::QWebPagePrivate):
2758 (QWebPagePrivate::setInspector):
2759 (QWebPagePrivate::getOrCreateInspector):
2760 (QWebPagePrivate::inspectorController):
2761 (QWebPage::~QWebPage):
2762 (QWebPage::triggerAction):
2765 * Api/qwebsettings.cpp:
2766 * QtLauncher/main.cpp:
2767 (MainWindow::MainWindow):
2768 * WebCoreSupport/InspectorClientQt.cpp:
2769 (WebCore::InspectorClientWebPage::InspectorClientWebPage):
2770 (WebCore::InspectorClientWebPage::createWindow):
2771 (WebCore::InspectorClientQt::createPage):
2772 (WebCore::InspectorClientQt::showWindow):
2773 (WebCore::InspectorClientQt::closeWindow):
2774 (WebCore::InspectorClientQt::attachWindow):
2775 (WebCore::InspectorClientQt::detachWindow):
2776 (WebCore::InspectorClientQt::updateWindowTitle):
2777 * WebCoreSupport/InspectorClientQt.h:
2778 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp: Added.
2780 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2782 Reviewed by Eric Seidel.
2784 [Qt] Fix comparison between signed and unsigned integer warnings
2785 https://bugs.webkit.org/show_bug.cgi?id=29162
2787 No functional change.
2789 * Api/qwebelement.cpp:
2790 (QWebElement::findAll):
2791 * Api/qwebhistory.cpp:
2792 (QWebHistory::items):
2793 (QWebHistory::backItems):
2794 (QWebHistory::forwardItems):
2795 (QWebHistory::saveState):
2796 * Api/qwebplugindatabase.cpp:
2797 (QWebPluginDatabase::setSearchPaths):
2798 * WebCoreSupport/ChromeClientQt.cpp:
2799 (WebCore::ChromeClientQt::runOpenPanel):
2800 * WebCoreSupport/FrameLoaderClientQt.cpp:
2801 (WebCore::FrameLoaderClientQt::createPlugin):
2803 2009-09-10 Simon Hausmann <hausmann@webkit.org>
2805 Rubber-stamped by Ariya Hidayat.
2807 Fix a bunch of qdoc warnings: Invalid references, non-standard
2810 * Api/qwebelement.cpp:
2811 * Api/qwebgraphicsitem.cpp:
2812 * Api/qwebsecurityorigin.cpp:
2814 2009-09-10 Simon Hausmann <hausmann@webkit.org>
2816 Reviewed by Ariya Hidayat.
2818 Fix context menu event delivery with QWebGraphicsItem.
2820 Re-implement the correct context menu virtual function using
2821 a QGraphicsSceneContextMenuEvent and forward & handle it in
2824 * Api/qwebgraphicsitem.cpp:
2825 (QWebGraphicsItem::contextMenuEvent):
2826 * Api/qwebgraphicsitem.h:
2828 (QWebPagePrivate::contextMenuEvent):
2832 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2836 Build fix for QtWebKit for Mac after r48219.
2838 qevent and qstyleoption are QtGui interfaces.
2840 * Api/qwebgraphicsitem.cpp:
2841 * Api/qwebgraphicsitem.h:
2843 2009-09-09 Simon Hausmann <hausmann@webkit.org>
2845 Reviewed by Tor Arne Vestbø.
2847 Call the right base class function QGraphicsWidget::event() instead
2848 of skipping it and using QObject::event() instead.
2850 * Api/qwebgraphicsitem.cpp:
2851 (QWebGraphicsItem::event):
2853 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
2857 Fix comment at Tor Arne Vestbø's request.
2859 * Api/qwebgraphicsitem.cpp:
2860 (QWebGraphicsItem::sceneEvent):
2861 (QWebGraphicsItem::event):
2863 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
2865 Reviewed by Tor Arne Vestbø.
2867 Implement some virtual event methods so that we can fix
2868 event-related bugs in Qt patch releases.
2870 * Api/qwebgraphicsitem.cpp:
2871 (QWebGraphicsItem::sceneEvent):
2872 (QWebGraphicsItem::event):
2873 * Api/qwebgraphicsitem.h:
2875 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>, Antonio Gomes <antonio.gomes@openbossa.org>
2877 Reviewed by Simon Hausmann.
2879 Add a new QGraphicsWidget based version of the "QWebView"
2880 under the name "QWebGraphicsItem".
2882 https://bugs.webkit.org/show_bug.cgi?id=28862
2884 Includes an alternative Qt launcher using the QGraphicsView.
2887 * Api/qwebgraphicsitem.cpp: Added.
2888 * Api/qwebgraphicsitem.h: Added.
2890 * QGVLauncher/QGVLauncher.pro: Copied from WebKit/qt/QtLauncher/QtLauncher.pro.
2891 * QGVLauncher/main.cpp: Added.
2892 * WebCoreSupport/ChromeClientQt.cpp:
2893 (WebCore::ChromeClientQt::repaint):
2894 (WebCore::ChromeClientQt::scroll):
2896 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
2898 Unreviewed build fix.
2900 Potential build fix for Qt 4.5
2903 (QWebPagePrivate::mousePressEvent):
2905 2009-09-08 Benjamin Poulain <benjamin.poulain@nokia.com>
2907 Reviewed by Simon Hausmann.
2909 https://bugs.webkit.org/show_bug.cgi?id=29007
2910 Add a test for the signal QWebFrame::javaScriptWindowObjectCleared()
2912 * tests/qwebframe/tst_qwebframe.cpp:
2914 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2916 Reviewed by Simon Hausmann.
2918 [Qt] Fix unused variable warnings
2919 https://bugs.webkit.org/show_bug.cgi?id=29018
2922 (QWebPagePrivate::keyPressEvent):
2923 * WebCoreSupport/FrameLoaderClientQt.cpp:
2924 (WebCore::FrameLoaderClientQt::startDownload):
2925 (WebCore::FrameLoaderClientQt::createFrame):
2927 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2929 Reviewed by Ariya Hidayat.
2931 [Qt] Use the declaration order in initializer lists
2932 https://bugs.webkit.org/show_bug.cgi?id=29017
2934 * Api/qwebframe_p.h:
2936 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
2938 Reviewed by Simon Hausmann.
2940 Add support for handling QGraphicsScene events.
2943 (QWebPagePrivate::mouseMoveEvent):
2944 (QWebPagePrivate::mousePressEvent):
2945 (QWebPagePrivate::mouseDoubleClickEvent):
2946 (QWebPagePrivate::mouseTripleClickEvent):
2947 (QWebPagePrivate::handleClipboard):
2948 (QWebPagePrivate::mouseReleaseEvent):
2949 (QWebPagePrivate::wheelEvent):
2950 (QWebPagePrivate::dragEnterEvent):
2951 (QWebPagePrivate::dragLeaveEvent):
2952 (QWebPagePrivate::dragMoveEvent):
2953 (QWebPagePrivate::dropEvent):
2957 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
2959 Reviewed by Simon Hausmann.
2961 [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
2962 https://bugs.webkit.org/show_bug.cgi?id=28865
2964 Clean up the unserCursor hack to use the QCursor set
2965 as a property of the QWidget by WebCore::WidgetQt.
2967 Remove all code that are no longer necessary for getting
2968 cursor change events.
2970 Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
2971 Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07
2976 (QWebViewPrivate::QWebViewPrivate):
2979 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2981 Reviewed by Simon Hausmann.
2983 [Qt] QtWebKit single API to enable persistency
2984 https://bugs.webkit.org/show_bug.cgi?id=28682
2986 Disable LocalStorage, ApplicationCache, HTML5 offline storage by
2989 If persistency is enabled the default directory for LocalStorage and
2990 ApplicationCache is now based on QDesktopServices::DataLocation and not
2991 QDesktopServices::CacheLocation (as it is expected to keep this data
2992 around after a reboot).
2994 If persistency is enabled initialize HTML5 offline storage as well - this
2995 fixed offline Storage for QtLauncher.
2998 (QWebPagePrivate::QWebPagePrivate):
2999 * Api/qwebsettings.cpp:
3000 (QWebSettings::QWebSettings):
3001 (QWebSettings::enablePersistentStorage):
3002 * Api/qwebsettings.h: Add a new API called enablePersistentStorage
3003 * QtLauncher/main.cpp: Use the new enablePersistentStorage API
3006 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3008 Reviewed by Simon Hausmann.
3010 Speed up the QWebPluginInfo::supportsMimeType() function.
3011 https://bugs.webkit.org/show_bug.cgi?id=27651
3013 Instead of going through the MIME types list constructed with
3014 mimeTypes() function, look up the internal mimeToDescriptions map.
3016 * Api/qwebplugindatabase.cpp:
3017 (QWebPluginInfo::supportsMimeType):
3019 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3021 Reviewed by Simon Hausmann.
3023 Speed up the QWebPluginInfo::mimeTypes() function.
3024 https://bugs.webkit.org/show_bug.cgi?id=27651
3026 Instead of constructing a list of MIME types every time it is called,
3029 * Api/qwebplugindatabase.cpp:
3030 (QWebPluginInfo::mimeTypes):
3031 (QWebPluginInfo::operator=):
3032 * Api/qwebplugindatabase.h:
3033 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
3034 (tst_QWebPluginDatabase::operatorassign_data):
3035 (tst_QWebPluginDatabase::operatorassign):
3037 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3039 Reviewed by Simon Hausmann.
3041 Remove the private classes from QWebPluginDatabase.
3042 https://bugs.webkit.org/show_bug.cgi?id=27651
3044 Instead, hold the PluginDatabase and PluginPackage objects as class
3045 members and take care of refcounting on our own instead of using RefPtr.
3047 This way we not only made the code cleaner but also got rid of
3048 redundant allocations when constructing null QWebPluginInfo objects.
3050 The private classes have been forward-declared and the d-pointers left
3051 to be on the safe side.
3053 * Api/qwebplugindatabase.cpp:
3054 (QWebPluginInfo::QWebPluginInfo):
3055 (QWebPluginInfo::~QWebPluginInfo):
3056 (QWebPluginInfo::name):
3057 (QWebPluginInfo::description):
3058 (QWebPluginInfo::mimeTypes):
3059 (QWebPluginInfo::path):
3060 (QWebPluginInfo::isNull):
3061 (QWebPluginInfo::setEnabled):
3062 (QWebPluginInfo::isEnabled):
3063 (QWebPluginInfo::operator==):
3064 (QWebPluginInfo::operator!=):
3065 (QWebPluginInfo::operator=):
3066 (QWebPluginDatabase::QWebPluginDatabase):
3067 (QWebPluginDatabase::~QWebPluginDatabase):
3068 (QWebPluginDatabase::plugins):
3069 (QWebPluginDatabase::searchPaths):
3070 (QWebPluginDatabase::setSearchPaths):
3071 (QWebPluginDatabase::addSearchPath):
3072 (QWebPluginDatabase::refresh):
3073 (QWebPluginDatabase::pluginForMimeType):
3074 (QWebPluginDatabase::setPreferredPluginForMimeType):
3075 * Api/qwebplugindatabase.h:
3076 * Api/qwebplugindatabase_p.h: Removed.
3078 2009-09-05 Jakub Wieczorek <faw217@gmail.com>
3080 Reviewed by Eric Seidel.
3082 [Qt] r47424 broke binary compatibility
3083 https://bugs.webkit.org/show_bug.cgi?id=28996
3085 Append the new DnsPrefetchEnabled attribute at the end of the enum.
3087 * Api/qwebsettings.h:
3089 2009-09-04 Mark Mentovai <mark@chromium.org>
3091 Reviewed by Dave Hyatt.
3093 https://bugs.webkit.org/show_bug.cgi?id=28614
3095 Account for scrollbar state changes that occur during layout.
3097 * Api/qwebframe.cpp:
3098 (QWebFrame::setScrollBarPolicy):
3100 Eliminate duplicated (and incorrect) scrollbar mode tracking between
3101 FrameView and ScrollView.
3103 2009-09-04 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3105 Reviewed by Eric Seidel.
3107 [Qt] Fix tst_QWebPage::database autotest failure
3108 https://bugs.webkit.org/show_bug.cgi?id=28961
3110 Make sure that the test case enables the feature before
3111 the feature gets tested
3113 * tests/qwebpage/tst_qwebpage.cpp:
3114 (tst_QWebPage::database):
3116 2009-09-04 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
3118 Reviewed by Eric Seidel.
3120 Any QtWebKit application crashes on exit if the inspector is
3121 used during the session rather then exiting.
3123 If a QWebView has a QWebPage that is destroyed the QWebView
3124 does not update its pointer and will crash the next time
3125 it access the page pointers (such as in its destructor).
3127 InspectorClientView should not call deleteLater when the page
3128 is destroyed because it does not have a parent and is a top
3129 level widget. close() needs to be called so that QApplication
3130 can exit the application if quitOnLastWindowClosed is set
3131 and a InspectorClientView is the last window, otherwise
3132 the application will never exit.
3135 (QWebViewPrivate::_q_pageDestroyed):
3136 (QWebView::setPage):
3138 * WebCoreSupport/InspectorClientQt.cpp:
3139 (WebCore::InspectorClientView::InspectorClientView):
3141 2009-09-03 Adam Barth <abarth@webkit.org>
3143 Reviewed by eric@webkit.org.
3145 https://bugs.webkit.org/show_bug.cgi?id=24696
3147 Stub implementations of mixed content methods of FrameLoaderClient.
3149 * WebCoreSupport/FrameLoaderClientQt.cpp:
3150 (WebCore::FrameLoaderClientQt::didDisplayInsecureContent):
3151 (WebCore::FrameLoaderClientQt::didRunInsecureContent):
3152 * WebCoreSupport/FrameLoaderClientQt.h:
3154 2009-09-03 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3156 Reviewed by Eric Seidel.
3158 [Qt] Add a setting to turn SessionStorage on/off
3159 https://bugs.webkit.org/show_bug.cgi?id=28836
3161 * Api/qwebsettings.cpp:
3162 (QWebSettingsPrivate::apply):
3163 (QWebSettings::QWebSettings):
3164 * Api/qwebsettings.h:
3165 * tests/qwebpage/tst_qwebpage.cpp:
3167 (tst_QWebPage::testOptionalJSObjects):
3169 2009-09-02 Richard Moore <rich@kde.org>
3171 Reviewed by Tor Arne Vestbø.
3173 [Qt] Make sure we relayout the page after evaluating JS
3175 https://bugs.webkit.org/show_bug.cgi?id=28235
3177 QtWebKit does not always seem to reflow the page when evaluating
3178 javascript. This patch changes the way evaluateJavaScript works to
3179 use the frameloader which ensures that this is done properly.
3181 * Api/qwebframe.cpp:
3182 (QWebFrame::evaluateJavaScript):
3183 * tests/qwebframe/tst_qwebframe.cpp:
3185 2009-08-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3187 Reviewed by Holger Freyther.
3189 https://bugs.webkit.org/show_bug.cgi?id=25889
3190 [GTK] scrollbar policy for main frame is not implementable
3192 Add empty implementation for new ChromeClient method.
3194 * WebCoreSupport/ChromeClientQt.h:
3195 (WebCore::ChromeClientQt::scrollbarsModeDidChange):
3197 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3199 Reviewed by Ariya Hidayat.
3201 QWebHistory::clear() modifications.
3203 Clear() method was changed. If QWebHistory is empty (there is no
3204 elements even current) clear() do nothing. If there at least one
3205 element clear() will delete everything apart of current.
3207 New autotests in QWebHistory
3209 New autotests were added to QWebHistory. They should check some crashes
3210 in save and restore state process and clear() method and general
3211 behavior on where QWebHistory::count() == 0 or QWebHistory::count() == 1
3213 Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=28711
3215 * Api/qwebhistory.cpp:
3216 (QWebHistory::clear):
3217 * tests/qwebhistory/tst_qwebhistory.cpp:
3218 (tst_QWebHistory::back):
3219 (tst_QWebHistory::forward):
3220 (tst_QWebHistory::saveAndRestore_crash_1):
3221 (tst_QWebHistory::saveAndRestore_crash_2):
3222 (tst_QWebHistory::saveAndRestore_crash_3):
3223 (tst_QWebHistory::clear):
3225 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3227 Reviewed by Ariya Hidayat.
3229 [Qt] Cleanup, old and commented part of source code was removed.
3230 Fix some formatting problems.
3232 https://bugs.webkit.org/show_bug.cgi?id=28712
3234 * Api/qwebhistory_p.h:
3235 (QWebHistoryPrivate::QWebHistoryPrivate):
3237 2009-08-26 Adam Barth <abarth@webkit.org>
3239 Reviewed by Oliver Hunt.
3241 Don't let local files access web URLs
3242 https://bugs.webkit.org/show_bug.cgi?id=28480
3244 * Api/qwebsettings.cpp:
3245 (QWebSettings::QWebSettings):
3247 2009-08-25 Antonio Gomes <antonio.gomes@openbossa.org>
3249 Reviewed by Ariya Hidayat.
3251 Bug 28708 - Make possible to better use ResourceError in FrameLoaderClientQt class.
3253 * Api/qwebframe.cpp:
3254 (QWebFrame::requestedUrl):
3255 * WebCoreSupport/FrameLoaderClientQt.cpp:
3256 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3257 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3258 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
3259 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3260 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3261 * WebCoreSupport/FrameLoaderClientQt.h:
3263 2009-08-22 Adam Barth <abarth@webkit.org>
3265 Revert 47684. We're going to do this later once clients have had a
3266 chance to opt into the setting they like.
3268 * Api/qwebsettings.cpp:
3269 (QWebSettings::QWebSettings):
3271 2009-08-22 Adam Barth <abarth@webkit.org>
3273 Reviewed by Eric Seidel.
3275 Don't let local files access web URLs
3276 https://bugs.webkit.org/show_bug.cgi?id=28480
3278 * Api/qwebsettings.cpp:
3279 (QWebSettings::QWebSettings):
3281 2009-08-19 Aaron Boodman <aa@chromium.org>
3283 Speculative build break fix for qt.
3285 * Api/qwebsecurityorigin.cpp:
3286 (QWebSecurityOrigin::whiteListAccessFromOrigin):
3287 * Api/qwebsecurityorigin.h:
3289 2009-08-19 Aaron Boodman <aa@chromium.org>
3291 Reviewed by David Levin.
3293 https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
3294 specify a more granular policy for cross-origin XHR access.
3296 * Api/qwebsecurityorigin.cpp: Add API to manipulate origin access whitelists.
3297 (QWebSecurityOrigin::whiteListAccessFromOrigin): Ditto.
3298 (QWebSecurityOrigin::resetOriginAccessWhiteLists): Ditto.
3299 * Api/qwebsecurityorigin.h: Ditto.
3301 2009-08-18 Markus Goetz <Markus.Goetz@nokia.com>
3303 Reviwed by Ariya Hidayat.
3305 [Qt] For prefecthDNS, the pre-fetching has to be enabled in the
3308 * Api/qwebsettings.cpp:
3309 (QWebSettings::QWebSettings):
3310 * Api/qwebsettings.h:
3312 2009-08-17 Darin Adler <darin@apple.com>
3314 Try to fix Qt build again.
3316 * WebCoreSupport/EditorClientQt.cpp: Move "using namespace".
3318 2009-08-17 Darin Adler <darin@apple.com>
3320 Try to fix Qt build.
3322 * WebCoreSupport/EditorClientQt.cpp:
3323 (WebCore::EditorClientQt::shouldShowDeleteInterface):
3324 Use getAttribute(classAttr) instead of className() function.
3326 2009-08-14 Yongjun Zhang <yongjun.zhang@nokia.com>
3328 Reviewed by Simon Hausmann.
3330 RVCT elftran fails to resolve QPainter::staticMetaObject coming with
3331 QWebView::RenderHints property.
3333 This is a temporary fix and will be revereted when the right symbols
3334 exported from Qt lib in S60.
3336 https://bugs.webkit.org/show_bug.cgi?id=28181
3340 2009-08-14 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3342 Reviewed by Simon Hausmann.
3344 [Qt] Public API to configure the storage path for HTML5 localStorage
3345 https://bugs.webkit.org/show_bug.cgi?id=28036
3347 Disables LocalStorage for QtWebKit by default by setting
3348 QWebSettings::LocalStorageEnabled to false.
3350 Sets up a default for the LocalStorage path so that clients would only
3351 need to enable the LocalStorageEnabled setting to turn on LocalStoragre
3354 Turn on LocalStorage support for QtLauncher and the relevant test
3355 since LocalStorage is now disabled by default for QtWebkit.
3359 (initializeApplicationCachePathIfNecessary):
3360 (QWebPagePrivate::QWebPagePrivate):
3361 * Api/qwebsettings.cpp:
3362 (QWebSettingsPrivate::apply):
3363 (QWebSettings::QWebSettings):
3364 (QWebSettings::setLocalStoragePath):
3365 (QWebSettings::localStoragePath):
3366 * Api/qwebsettings.h:
3367 * QtLauncher/main.cpp:
3369 * tests/qwebpage/tst_qwebpage.cpp:
3370 (tst_QWebPage::multiplePageGroupsAndLocalStorage):
3372 2009-08-14 Yael Aharon <yael.aharon@nokia.com>
3374 Reviewed by Simon Hausmann.
3376 [Qt] Allow applications to register their own local URL scheme.
3377 https://bugs.webkit.org/show_bug.cgi?id=28240
3379 * Api/qwebsecurityorigin.cpp:
3380 (QWebSecurityOrigin::addLocalScheme):
3381 (QWebSecurityOrigin::removeLocalScheme):
3382 (QWebSecurityOrigin::localSchemes):
3383 * Api/qwebsecurityorigin.h:
3384 * tests/qwebpage/tst_qwebpage.cpp:
3385 (tst_QWebPage::localURLSchemes):
3387 2009-08-13 Mark Rowe <mrowe@apple.com>
3389 Try and fix the Qt build.
3391 * Api/qwebelement.cpp:
3393 2009-08-13 Kavindra Devi Palaraja <kavindra.palaraja@nokia.com>
3395 Reviewed by Simon Hausmann.
3397 Doc - Some cleanup on the documentation of QWebElement
3399 * Api/qwebelement.cpp:
3401 2009-08-13 Norbert Leser <norbert.leser@nokia.com>
3403 Reviewed by Simon Hausmann.
3405 Symbian target components (library and executable files)
3406 require Unique Identifiers (i.e., UID3).
3407 These identifiers are defined in the respective project
3408 files, conditionally for "symbian" platform.
3410 * QtLauncher/QtLauncher.pro:
3411 * tests/qwebelement/qwebelement.pro:
3412 * tests/qwebframe/qwebframe.pro:
3413 * tests/qwebhistory/qwebhistory.pro:
3414 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
3415 * tests/qwebpage/qwebpage.pro:
3416 * tests/qwebview/qwebview.pro:
3418 2009-08-12 George Wright <george.wright@torchmobile.com>
3420 Reviewed by Adam Treat.
3422 Initialise zoom levels independent of whether a URL is valid or not to
3423 fix https://bugs.webkit.org/show_bug.cgi?id=28162
3425 * QtLauncher/main.cpp:
3426 (MainWindow::MainWindow):
3428 2009-08-12 Joerg Bornemann <joerg.bornemann@trolltech.com>
3430 Reviewed by Simon Hausmann.
3432 QtWebKit compile fix for Windows CE
3434 There's no getenv on Windows CE, use qgetenv instead.
3437 (qt_drt_overwritePluginDirectories):
3439 2009-08-10 Kavindra Palaraja <kavindra.palaraja@nokia.com>
3441 Reviewed by Simon Hausmann.
3443 Various fixes and improvements to the QWebPluginInfo, QWebPluginDatabase and QWebSettings documentation.
3445 * Api/qwebplugindatabase.cpp:
3446 * Api/qwebsettings.cpp:
3448 2009-08-08 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3450 Reviewed by Simon Hausmann.
3452 Doc: there is no group of explicitly shared classes, only one class uses this.
3454 Explain the implications in the QWebHistoryItem documentation, and get rid
3457 * Api/qwebhistory.cpp:
3459 2009-08-05 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
3461 Reviewed by Simon Hausmann.
3463 [Qt] Fix build error caused by http://trac.webkit.org/changeset/46763
3465 * Api/qwebpluginfactory.h: Export macro added.
3467 2009-08-04 Antonio Gomes <antonio.gomes@openbossa.org>
3469 Reviewed by Simon Hausmann.
3471 [Qt] QWebFrame::requestedUrl method can mis-behave in case of unhandled sslErrors.
3472 https://bugs.webkit.org/show_bug.cgi?id=27804
3474 * Api/qwebframe.cpp:
3475 (QWebFrame::requestedUrl):
3476 * tests/qwebframe/tst_qwebframe.cpp:
3478 2009-08-04 Simon Hausmann <simon.hausmann@nokia.com>
3480 Reviewed by Tor Arne Vestbø.
3482 Rename QWebPlugin to QWebPluginInfo, as discussed on IRC.
3484 * Api/qwebplugindatabase.cpp:
3485 (QWebPluginInfoPrivate::QWebPluginInfoPrivate):
3486 (QWebPluginInfo::QWebPluginInfo):
3487 (QWebPluginInfo::~QWebPluginInfo):
3488 (QWebPluginInfo::name):
3489 (QWebPluginInfo::description):
3490 (QWebPluginInfo::mimeTypes):
3491 (QWebPluginInfo::supportsMimeType):
3492 (QWebPluginInfo::path):
3493 (QWebPluginInfo::isNull):
3494 (QWebPluginInfo::setEnabled):
3495 (QWebPluginInfo::isEnabled):
3496 (QWebPluginInfo::operator==):
3497 (QWebPluginInfo::operator!=):
3498 (QWebPluginInfo::operator=):
3499 (QWebPluginDatabase::plugins):
3500 (QWebPluginDatabase::pluginForMimeType):
3501 (QWebPluginDatabase::setPreferredPluginForMimeType):
3502 * Api/qwebplugindatabase.h:
3503 * Api/qwebplugindatabase_p.h:
3504 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
3505 (tst_QWebPluginDatabase::installedPlugins):
3506 (tst_QWebPluginDatabase::searchPaths):
3507 (tst_QWebPluginDatabase::null_data):
3508 (tst_QWebPluginDatabase::null):
3509 (tst_QWebPluginDatabase::pluginForMimeType):
3510 (tst_QWebPluginDatabase::enabled):
3511 (tst_QWebPluginDatabase::operatorequal_data):
3512 (tst_QWebPluginDatabase::operatorequal):
3513 (tst_QWebPluginDatabase::preferredPlugin):
3515 2009-08-04 Simon Hausmann <simon.hausmann@nokia.com>
3517 Reviewed by Adam Treat.
3519 Replace QWebPlugin::MimeType with a typedef to
3520 QWebPluginFactory::MimeType.
3522 * Api/qwebplugindatabase.cpp:
3523 * Api/qwebplugindatabase.h:
3524 * Api/qwebpluginfactory.cpp:
3525 (QWebPluginFactory::MimeType::operator==):
3526 * Api/qwebpluginfactory.h:
3528 2009-08-04 Jakub Wieczorek <faw217@gmail.com>
3530 Reviewed by Simon Hausmann.
3532 Add QWebPluginDatabase API to the Qt API.
3534 https://bugs.webkit.org/show_bug.cgi?id=27651
3537 * Api/qwebplugindatabase.cpp: Added.
3538 (QWebPluginPrivate::QWebPluginPrivate):
3539 (QWebPluginDatabasePrivate::QWebPluginDatabasePrivate):
3540 (QWebPlugin::MimeType::operator==):
3541 (QWebPlugin::QWebPlugin):
3542 (QWebPlugin::~QWebPlugin):
3544 (QWebPlugin::description):
3545 (QWebPlugin::mimeTypes):
3546 (QWebPlugin::supportsMimeType):
3548 (QWebPlugin::isNull):
3549 (QWebPlugin::setEnabled):
3550 (QWebPlugin::isEnabled):
3551 (QWebPlugin::operator==):
3552 (QWebPlugin::operator!=):
3553 (QWebPlugin::operator=):
3554 (QWebPluginDatabase::QWebPluginDatabase):
3555 (QWebPluginDatabase::~QWebPluginDatabase):
3556 (QWebPluginDatabase::plugins):
3557 (QWebPluginDatabase::defaultSearchPaths):
3558 (QWebPluginDatabase::searchPaths):
3559 (QWebPluginDatabase::setSearchPaths):
3560 (QWebPluginDatabase::addSearchPath):
3561 (QWebPluginDatabase::refresh):
3562 (QWebPluginDatabase::pluginForMimeType):
3563 (QWebPluginDatabase::setPreferredPluginForMimeType):
3564 * Api/qwebplugindatabase.h: Added.
3565 * Api/qwebplugindatabase_p.h: Added.
3566 * Api/qwebsettings.cpp:
3567 (QWebSettings::pluginDatabase):
3568 * Api/qwebsettings.h:
3569 * tests/qwebplugindatabase/qwebplugindatabase.pro: Added.
3570 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp: Added.
3571 (tst_QWebPluginDatabase::installedPlugins):
3572 (tst_QWebPluginDatabase::searchPaths):
3573 (tst_QWebPluginDatabase::null_data):
3574 (tst_QWebPluginDatabase::null):
3575 (tst_QWebPluginDatabase::pluginForMimeType):
3576 (tst_QWebPluginDatabase::enabled):
3577 (tst_QWebPluginDatabase::operatorequal_data):
3578 (tst_QWebPluginDatabase::operatorequal):
3579 (tst_QWebPluginDatabase::preferredPlugin):
3582 2009-08-03 Balazs Kelemen <kelemen.balazs.3@stud.u-szeged.hu>
3584 Reviewed by Simon Hausmann.
3586 Do memory cleanup when running robotized QtLauncher in debug as well.
3588 * QtLauncher/main.cpp:
3592 2009-07-30 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3594 Reviewed by Tor Arne Vestbø.
3596 [Qt] Initialize HTML5 Application Cache for QtWebKit to a sensible default
3597 https://bugs.webkit.org/show_bug.cgi?id=27866
3600 (initializeApplicationCachePathIfNecessary):
3601 (QWebPagePrivate::QWebPagePrivate):
3603 2009-07-31 Jakob Petsovits <jakob.petsovits@torchmobile.com>
3605 Reviewed by Adam Treat.
3607 Build QtWebKit without benchmark tests for Qt < 4.5.
3608 https://bugs.webkit.org/show_bug.cgi?id=27886
3610 The QBENCHMARK macro is only available from 4.5 on,
3611 so builds for Qt < 4.5 shouldn't try to build those.
3615 2009-07-31 Kenneth Rohde Christiansen <kenneth@webkit.org>
3617 Reviewed by Adam Treat.
3619 Fix warning by migrating use of QString.sprintf(...) to
3620 QString.arg().arg()...
3622 * WebCoreSupport/EditorClientQt.cpp:
3625 2009-07-31 Kenneth Rohde Christiansen <kenneth@webkit.org>
3627 Reviewed by Tor Arne Vestbø.
3629 Expose the Offline Web Application Cache in the Qt API.
3631 * Api/qwebsettings.cpp:
3632 (QWebSettings::QWebSettings):
3633 (QWebSettings::setOfflineWebApplicationCachePath):
3634 (QWebSettings::offlineWebApplicationCachePath):
3635 (QWebSettings::setOfflineWebApplicationCacheQuota):
3636 (QWebSettings::offlineWebApplicationCacheQuota):
3637 * Api/qwebsettings.h:
3639 2009-07-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
3641 Reviewed by Adam Treat.
3643 Add missing Q_OBJECT to class inheriting from QObject.
3645 * tests/qwebframe/tst_qwebframe.cpp:
3647 2009-07-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
3649 Reviewed by Adam Treat.
3653 * tests/qwebframe/tst_qwebframe.cpp:
3655 2009-07-30 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3657 Reviewed by Simon Hausmann.
3659 Fix documentation links to examples.
3663 2009-07-30 Balazs Kelemen <kelemen.balazs.3@stud.u-szeged.hu>
3665 Reviewed by Simon Hausmann.
3667 Allocate MainWindow on heap in robotized QtLauncher as well.
3669 * QtLauncher/main.cpp:
3672 2009-07-29 Kevin McCullough <kmccullough@apple.com>
3674 Reviewed by Darin Adler.
3676 Added foundation work to allow a testing infrastructure for the Web
3679 * WebCoreSupport/InspectorClientQt.cpp:
3680 (WebCore::InspectorClientQt::inspectorWindowObjectCleared):
3681 * WebCoreSupport/InspectorClientQt.h:
3683 2009-07-29 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>
3685 Reviewed by Simon Hausmann.
3687 [Qt] In debug mode, this fix frees cached resources
3688 and other unreferenced objects (by calling the
3689 garbage collector) to remove the LEAK messages.
3690 https://bugs.webkit.org/show_bug.cgi?id=27767
3692 * Api/qwebframe.cpp:
3693 (qt_drt_cache_clear):
3694 * QtLauncher/main.cpp:
3697 2009-07-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
3699 Fix the Qt build by adapting to the changes of ScriptObject.
3701 * Api/qwebelement.cpp:
3702 (setupScriptObject):
3704 2009-07-28 Robert Hogan <robert@roberthogan.net>
3706 Reviewed by Simon Hausmann.
3708 Add WebKit version API to Qt.
3710 Get the current version of WebKit from WebKit/mac/Configurations/Version.xcconfig
3711 at compile time and make it available to Qt applications through
3714 Also amend the User Agent string to place the Safari clause outside
3715 the final bracket and to the end of the UA string.
3717 https://bugs.webkit.org/show_bug.cgi?id=27158
3719 Minor build tweak by Simon Hausmann (adding export macros to new functions).
3722 * Api/qwebkitversion.cpp: Added.
3724 (webKitMajorVersion):
3725 (webKitMinorVersion):
3726 * Api/qwebkitversion.h: Added.
3728 (QWebPage::userAgentForUrl):
3729 * tests/qwebview/tst_qwebview.cpp:
3730 (tst_QWebView::getWebKitVersion):
3732 2009-07-28 Simon Hausmann <simon.hausmann@nokia.com>
3734 Rubber-stamped by Ariya Hidayat.
3736 Fix compilation with the precompiled header.
3738 * WebKit_pch.h: Don't include JSDOMBinding.h and MathObject.h,
3739 as they include AtomicString.h. AtomicString.cpp needs to enable
3740 a #define before including AtomicString.h, which breaks if the PCH
3741 forces the inclusion beforehand.
3743 2009-07-28 Ariya Hidayat <ariya.hidayat@nokia.com>
3745 Reviewed by Simon Hausmann.
3747 Added tests to ensure that scroll position can be changed
3748 programmatically, even when the scroll bar policy is set to off.