1 2009-11-23 David Boddie <dboddie@trolltech.com>
3 Reviewed by Simon Hausmann.
5 Updated the QWebElement documentation with links to examples and
7 Fixed the project file for the webelement snippet and tidied up the
8 markers used for quoting the code.
10 * Api/qwebelement.cpp:
11 * docs/webkitsnippets/webelement/main.cpp:
13 * docs/webkitsnippets/webelement/webelement.pro:
15 2009-11-23 Simon Hausmann <simon.hausmann@nokia.com>
17 Reviewed by Kenneth Rohde Christiansen.
19 [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
20 the wrapped object died before the gc removed the instance.
22 https://bugs.webkit.org/show_bug.cgi?id=31681
24 Added a unit-test to verify that wrapping a QObject with the
25 same identity as a previously but now dead object works.
27 * tests/qwebframe/tst_qwebframe.cpp:
29 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
31 Reviewed by Kenneth Rohde Christiansen.
33 [Qt] Add instantiation tests for QWebInspector.
35 * tests/qwebinspector/qwebinspector.pro: Added.
36 * tests/qwebinspector/tst_qwebinspector.cpp: Added.
37 (tst_QWebInspector::attachAndDestroy):
40 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
42 Reviewed by Kenneth Rohde Christiansen.
44 [Qt] Fix QWebInspector destruction problem.
45 https://bugs.webkit.org/show_bug.cgi?id=31664
48 (QWebPage::~QWebPage):
50 2009-11-19 Olivier Goffart <ogoffart@trolltech.com>
52 Reviewed by Simon Hausmann.
54 [Qt] Normalize signal and slot signatures.
56 * Api/qgraphicswebview.cpp:
57 (QGraphicsWebView::setPage):
60 * WebCoreSupport/FrameLoaderClientQt.cpp:
61 (WebCore::FrameLoaderClientQt::setFrame):
62 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
64 * tests/qwebframe/tst_qwebframe.cpp:
65 * tests/qwebpage/tst_qwebpage.cpp:
66 (tst_QWebPage::modified):
67 (tst_QWebPage::database):
69 2009-11-18 Laszlo Gombos <laszlo.1.gombos@nokia.com>
71 Reviewed by Kenneth Rohde Christiansen.
73 [Qt] Remove support for Qt v4.3 or older versions
74 https://bugs.webkit.org/show_bug.cgi?id=29469
76 * Api/qcookiejar.cpp: Removed.
77 * Api/qcookiejar.h: Removed.
78 * Api/qgraphicswebview.cpp:
79 (QGraphicsWebView::event):
83 * Api/qwebkitglobal.h:
84 * Api/qwebnetworkinterface.cpp: Removed.
85 * Api/qwebnetworkinterface.h: Removed.
86 * Api/qwebnetworkinterface_p.h: Removed.
88 (QWebPagePrivate::QWebPagePrivate):
89 (QWebPagePrivate::acceptNavigationRequest):
90 (QWebPage::acceptNavigationRequest):
92 (QWebPage::userAgentForUrl):
99 * QtLauncher/main.cpp:
101 (MainWindow::setupUI):
103 * WebCoreSupport/FrameLoaderClientQt.cpp:
104 (WebCore::FrameLoaderClientQt::download):
105 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
106 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
107 (WebCore::FrameLoaderClientQt::startDownload):
108 (WebCore::FrameLoaderClientQt::createPlugin):
110 2009-11-18 Shu Chang <Chang.Shu@nokia.com>
112 Reviewed by Eric Seidel.
114 [Qt] Add support for displaying deleteButton.
115 https://bugs.webkit.org/show_bug.cgi?id=31560
117 Test: LayoutTests/editing/deleting/5408255.html
119 * Api/qwebsettings.cpp:
121 * Api/qwebsettings.h:
123 2009-11-18 Paul Olav Tvete <paul.tvete@nokia.com>
125 Reviewed by Simon Hausmann.
127 [Qt] Make the QWebElement::render() test pass when pixmaps aren't 32 bit.
129 * tests/qwebelement/tst_qwebelement.cpp:
130 (tst_QWebElement::render):
132 2009-11-18 Simon Hausmann <simon.hausmann@nokia.com>
134 Reviewed by Tor Arne Vestbø.
136 Clarify and simplify the legal section in the overview documentation,
137 after review with our legal team.
139 * docs/qtwebkit.qdoc:
141 2009-11-18 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
143 Reviewed by Simon Hausmann.
145 [Qt] Add QtLauncher support for opening links in the default browser
147 This can be triggered by either the context menu or by clicking a link
148 while holding down the Alt key. Opening a link in a new windows is
149 triggered by holding down Shift.
151 * QtLauncher/main.cpp:
153 2009-11-17 Yael Aharon <yael.aharon@nokia.com>
155 Reviewed by Kenneth Rohde Christiansen.
157 [Qt] QGLLauncher does not support drag&drop of local files
158 https://bugs.webkit.org/show_bug.cgi?id=31057
160 Enable accepting files in QGraphicsWebView.
162 * Api/qgraphicswebview.cpp:
163 (QGraphicsWebView::QGraphicsWebView):
164 (QGraphicsWebView::dragEnterEvent):
166 2009-11-17 Antonio Gomes <tonikitoo@webkit.org>
168 Reviewed by Kenneth Christiansen.
170 [Qt] better test coverage for ErrorPageExtension
171 https://bugs.webkit.org/show_bug.cgi?id=31583
173 Improved the coverage of current ErrorPageExtension tests by
174 adding autotests involving frameset and iframes.
176 * tests/qwebpage/tst_qwebpage.cpp:
177 (ErrorPage::extension): Make the ErrorPageExtension
178 to work for all frames, not only the main frame.
179 (tst_QWebPage::errorPageExtension): Stop using
180 the 'frameset.html' resouce in this method since
181 an autotest specific for frameset's is being added.
182 (tst_QWebPage::errorPageExtensionInIFrames): Added.
183 (tst_QWebPage::errorPageExtensionInFrameset): Added.
185 2009-11-16 Simon Hausmann <simon.hausmann@nokia.com>
187 Reviewed by Kenneth Rohde Christiansen.
189 API documentation fixes.
191 * Api/qgraphicswebview.cpp: Removed duplicate docs.
192 * Api/qwebelement.cpp: Added missing docs.
193 * Api/qwebsettings.cpp: Ditto.
195 2009-11-14 Antonio Gomes <tonikitoo@webkit.org>
197 Reviewed by Antti Koivisto.
199 [Qt] Broken back/forward after using ErrorPageExtension to set error page
200 https://bugs.webkit.org/show_bug.cgi?id=30573
202 Implemented autotests for covering the back/forward
203 reset problem involving error pages.
205 * tests/qwebpage/tst_qwebpage.cpp:
206 (tst_QWebPage::errorPageExtension):
208 2009-11-13 Adam Roben <aroben@apple.com>
210 Update for changes to FrameLoaderClient
212 Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
213 window objects in isolated worlds are cleared
215 Reviewed by Dave Hyatt.
217 * WebCoreSupport/FrameLoaderClientQt.cpp:
218 (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
219 * WebCoreSupport/FrameLoaderClientQt.h:
220 Replaced windowObjectCleared with this function. Does nothing if the
221 passed-in world is not the mainThreadNormalWorld().
223 2009-11-13 Andras Becsi <becsi.andras@stud.u-szeged.hu>
225 Reviewed by Kenneth Rohde Christiansen.
227 [Qt] Enable Page Cache if setMaximumPagesInCache needs it.
228 This fixes https://bugs.webkit.org/show_bug.cgi?id=31266.
230 * Api/qwebsettings.cpp:
231 (QWebSettingsPrivate::apply):
232 (QWebSettings::setMaximumPagesInCache):
234 2009-11-13 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
236 Reviewed by Kenneth Rohde Christiansen.
238 [Qt] Fix initial QWebView focus behavior.
240 focusController->setFocused(true) was not always called.
241 https://bugs.webkit.org/show_bug.cgi?id=31466
244 (QWebPagePrivate::focusInEvent):
246 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
248 Reviewed by Simon Hausmann.
250 Update documentation for the Qt API
252 * Api/qgraphicswebview.cpp:
253 * Api/qwebelement.cpp:
255 * Api/qwebsettings.cpp:
258 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
260 Reviewed by Simon Hausmann.
262 Use correct install-path when running qdoc3
266 2009-11-12 Shinichiro Hamaji <hamaji@chromium.org>
268 Reviewed by Darin Adler.
270 externalRepresentation should take Frame as the argument
271 https://bugs.webkit.org/show_bug.cgi?id=31393
273 No new tests as this is just a refactoring.
276 (QWebFrame::renderTreeDump):
278 2009-11-12 Antonio Gomes <tonikitoo@webkit.org>
280 Reviewed by Jan Alonzo.
282 [Qt] Various doc fixes
283 https://bugs.webkit.org/show_bug.cgi?id=31358
285 QWebPage's constructor docs are mentioning "QWebView":
286 "Constructs an empty QWebView with parent".
290 2009-11-12 Benjamin Poulain <benjamin.poulain@nokia.com>
292 Reviewed by Kenneth Rohde Christiansen.
294 Custom printing shrink factors
295 https://bugs.webkit.org/show_bug.cgi?id=29042
297 This reverts commit r49769. The public API for this needs to be reviewed
298 before its inclusion in Qt.
300 * Api/qwebsettings.cpp:
301 (QWebSettingsPrivate::apply):
302 (QWebSettings::QWebSettings):
303 * Api/qwebsettings.h:
305 2009-11-11 Antonio Gomes <tonikitoo@webkit.org>
307 Reviewed by Kenneth Christiansen.
309 [Qt] Various doc fixes
310 https://bugs.webkit.org/show_bug.cgi?id=31358
312 Fixed wrong documentation: item's dimensions do fit to Web page
315 Kenneth agreed to land this as a followup patch to the
316 just landed documentation patch.
318 * Api/qgraphicswebview.cpp:
320 2009-11-11 David Boddie <dboddie@trolltech.com>
322 Reviewed by Kenneth Christiansen.
324 [Qt] Various doc fixes
325 https://bugs.webkit.org/show_bug.cgi?id=31323
327 Fixed and synchronized QWebView related documentation.
329 * Api/qgraphicswebview.cpp:
332 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
334 Unreviewed buildbot fix.
336 Export a method to the DRT to know if the document has a
340 (qt_drt_hasDocumentElement):
342 2009-11-11 Liang QI <liang.qi@nokia.com>
344 [Qt] Fix tst_qwebpage and tst_qwebframe compilation on Symbian.
346 * tests/qwebframe/qwebframe.pro:
347 * tests/qwebframe/tst_qwebframe.cpp:
348 * tests/qwebpage/qwebpage.pro:
349 * tests/qwebpage/tst_qwebpage.cpp:
351 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
353 Reviewed by Simon Hausmann.
355 Fix a crash in the layout test plugins/document-open.html
358 (QWebFrame::toPlainText):
360 2009-11-11 Warwick Allison <warwick.allison@nokia.com>, Simon Hausmann <simon.hausmann@nokia.com>
362 Reviewed by Tor Arne Vestbø.
364 [Qt] Regression: Preserve the parent of plugin objects when using
365 QtWebKit with only a QWebPage.
367 * WebCoreSupport/FrameLoaderClientQt.cpp:
368 (WebCore::FrameLoaderClientQt::createPlugin): Don't reparent
370 * tests/qwebpage/tst_qwebpage.cpp:
371 (PluginCounterPage::PluginCounterPage): Initialize m_pluginParent to 0.
372 (PluginCounterPage::~PluginCounterPage): Delete the plugin parent later
374 (PluginTracerPage::createPlugin): Assign a dummy parent to the plugin.
375 (PluginTracerPage::PluginTracerPage): Set up the plugin parent.
376 (tst_QWebPage::createViewlessPlugin): Verify that for viewless pages the
377 plugin parent remains unchanged.
379 2009-11-11 David Boddie <dboddie@trolltech.com>
381 [Qt] Doc: Added internal or hidden placeholder documentation.
385 2009-11-11 Martin Smith <msmith@trolltech.com>
387 [Qt] doc: Changed Trolltech to Nokia
391 2009-11-11 Laszlo Gombos <laszlo.1.gombos@nokia.com>
393 Reviewed by Kenneth Rohde Christiansen.
395 https://bugs.webkit.org/show_bug.cgi?id=31323
396 Fix a few compiler warnings
398 * tests/qwebframe/tst_qwebframe.cpp: Add extra brackets
399 to make it explicit where the else case belongs
401 2009-11-11 Simon Hausmann <simon.hausmann@nokia.com>
403 Reviewed by Tor Arne Vestbø.
405 Fix enabling of software input panel when activating editable elements
408 * Api/qgraphicswebview.cpp:
409 (QGraphicsWebViewPrivate::inputMethodEnabled): Implement method to
410 query for input method support.
412 (QWebPageWidgetClient::inputMethodEnabled): Ditto for QWidget.
413 (QWebPagePrivate::handleSoftwareInputPanel): Don't use view() to
414 test for input method support. Instead query using QWebPageClient
415 and send the SIPR event to the ownerWidget() instead of the view().
416 The latter is null for QGraphicsWebView.
417 * tests/qwebpage/tst_qwebpage.cpp:
418 (EventSpy::EventSpy):
419 (EventSpy::eventFilter):
420 (tst_QWebPage::inputMethods): Modify the test to verify that SIPR
421 events are dispatched when activating focusable content.
423 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
425 Unreviewed documentation fixes.
427 Added a few improvements from Jocelyn Turcotte to the
432 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
434 Unreviewed documentation fix.
436 [Qt] Make qwebpage's createWindow not qwebview dependent.
437 https://bugs.webkit.org/show_bug.cgi?id=30771
439 Update documentation to make it clear that a reimplementation
440 of the createWindow method of the associated QWebPage can
441 result in the QWebView::createWindow method to never be called.
445 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
447 Reviewed by Kenneth Rohde Christiansen.
449 [Qt] Few classes have virtual functions but non-virtual destructor
450 https://bugs.webkit.org/show_bug.cgi?id=31269
452 * Api/qgraphicswebview.cpp:
453 (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): Add virtual
456 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
458 Reviewed by Kenneth Rohde Christiansen.
460 https://bugs.webkit.org/show_bug.cgi?id=30628
461 Add an API to get all the attributes from a QWebElement.
463 * Api/qwebelement.cpp:
464 (QWebElement::attributesName):
466 * tests/qwebelement/tst_qwebelement.cpp:
467 (tst_QWebElement::listAttributes):
469 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
471 Reviewed by Kenneth Rohde Christiansen.
473 Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
474 https://bugs.webkit.org/show_bug.cgi?id=31040
477 (QWebPagePrivate::handleScrolling):
479 2009-11-09 Mark Mentovai <mark@chromium.org>
481 Reviewed by Dan Bernstein.
483 Track "can have scrollbar" state within FrameView independently of the
484 individual scrollbar states in ScrollView.
486 rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
487 REGRESSION (r48064): mint.com loses scrollbars after coming out of
490 rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
491 REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
493 Test: fast/overflow/scrollbar-restored.html
496 (QWebFrame::setScrollBarPolicy):
498 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
500 Reviewed by Kenneth Rohde Christiansen.
502 https://bugs.webkit.org/show_bug.cgi?id=30772
503 Add a non-const iterator to QWebElementCollection.
504 Move the two attributes of the iterator to private.
507 (const_iterator::begin):
508 (const_iterator::end):
509 (const_iterator::constBegin):
510 (const_iterator::constEnd):
511 (const_iterator::iterator::iterator):
512 (const_iterator::iterator::operator*):
513 (const_iterator::iterator::operator==):
514 (const_iterator::iterator::operator!=):
515 (const_iterator::iterator::operator<):
516 (const_iterator::iterator::operator<=):
517 (const_iterator::iterator::operator>):
518 (const_iterator::iterator::operator>=):
519 (const_iterator::iterator::operator++):
520 (const_iterator::iterator::operator--):
521 (const_iterator::iterator::operator+=):
522 (const_iterator::iterator::operator-=):
523 (const_iterator::iterator::operator+):
524 (const_iterator::iterator::operator-):
525 * tests/qwebelement/tst_qwebelement.cpp:
526 (tst_QWebElement::nonConstIterator):
527 (tst_QWebElement::constIterator):
529 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
531 Reviewed by Kenneth Christiansen.
533 [Qt] Remove the sessionStorage setting (per Page)
534 https://bugs.webkit.org/show_bug.cgi?id=31249
536 This setting allows to run sessionStorage on/off on a per page
537 basis. Remove this prematurely exposed API.
539 * Api/qwebsettings.cpp:
540 (QWebSettingsPrivate::apply):
541 (QWebSettings::QWebSettings):
542 * tests/qwebpage/tst_qwebpage.cpp:
543 (tst_QWebPage::database):
544 (tst_QWebPage::testOptionalJSObjects):
546 2009-11-09 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
548 Reviewed by Simon Hausmann.
550 [Qt] Remove the QWebPage:webInspectorTriggered signal.
551 User customization of the communication between QWebPage
552 and QWebInspector will be properly designed in the next version.
553 https://bugs.webkit.org/show_bug.cgi?id=30773
555 * Api/qwebinspector.cpp:
557 (QWebPagePrivate::getOrCreateInspector):
558 (QWebPage::triggerAction):
560 * QtLauncher/main.cpp:
561 (MainWindow::MainWindow):
563 2009-11-05 Simon Hausmann <hausmann@webkit.org>
565 Reviewed by Tor Arne Vestbø.
567 Added a missing re-implementation of QGraphicsItem::inputMethodQuery().
569 * Api/qgraphicswebview.cpp:
570 (QGraphicsWebView::inputMethodQuery):
571 * Api/qgraphicswebview.h:
573 2009-11-04 Simon Hausmann <hausmann@webkit.org>
575 Reviewed by Tor Arne Vestbø.
577 Provide a dummy re-implementation of QGraphicsLayoutItem::sizeHint(),
580 * Api/qgraphicswebview.cpp:
581 (QGraphicsWebView::sizeHint):
582 * Api/qgraphicswebview.h:
584 2009-11-04 Simon Hausmann <hausmann@webkit.org>
586 Reviewed by Tor Arne Vestbø.
588 Removed zoomFactoryChanged() signal and added
589 linkClicked() to QGraphicsWebView, for consistency with
592 * Api/qgraphicswebview.cpp:
593 (QGraphicsWebView::setPage):
594 (QGraphicsWebView::setZoomFactor):
595 * Api/qgraphicswebview.h:
597 2009-11-04 Simon Hausmann <hausmann@webkit.org>
599 Reviewed by Tor Arne Vestbø.
601 Added QGraphicsWebView::findText() for convenience and consistency
604 * Api/qgraphicswebview.cpp:
605 (QGraphicsWebView::findText):
606 * Api/qgraphicswebview.h:
608 2009-11-04 Simon Hausmann <hausmann@webkit.org>
610 Reviewed by Tor Arne Vestbø.
612 Added QGraphicsWebView::pageAction() and triggerPageAction(), for
613 consistency with QWebView.
615 * Api/qgraphicswebview.cpp:
616 (QGraphicsWebView::pageAction):
617 (QGraphicsWebView::triggerPageAction):
618 * Api/qgraphicswebview.h:
620 2009-11-04 Simon Hausmann <hausmann@webkit.org>
622 Reviewed by Tor Arne Vestbø.
624 Removed QGraphicsWebView::toHtml() after API review.
626 That's consistent with QWebView and also based on the assumption that
627 toHtml() is called less frequently than setHtml().
629 * Api/qgraphicswebview.cpp:
630 * Api/qgraphicswebview.h:
631 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
632 (tst_QGraphicsWebView::qgraphicswebview):
634 2009-11-04 Simon Hausmann <hausmann@webkit.org>
636 Reviewed by Tor Arne Vestbø.
638 Removed the interactive property of QGraphicsWebView.
640 There are clearly use-cases for this feature, but it will require
641 more work to make this fully work with an enum to have fine-grained
642 control over the interactivity levels. For now it is easy to achieve
643 in user-code what the boolean property did.
645 * Api/qgraphicswebview.cpp:
646 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
647 (QGraphicsWebView::hoverMoveEvent):
648 (QGraphicsWebView::mouseMoveEvent):
649 (QGraphicsWebView::mousePressEvent):
650 (QGraphicsWebView::mouseReleaseEvent):
651 (QGraphicsWebView::mouseDoubleClickEvent):
652 (QGraphicsWebView::keyPressEvent):
653 (QGraphicsWebView::keyReleaseEvent):
654 (QGraphicsWebView::dragLeaveEvent):
655 (QGraphicsWebView::dragMoveEvent):
656 (QGraphicsWebView::dropEvent):
657 (QGraphicsWebView::wheelEvent):
658 (QGraphicsWebView::inputMethodEvent):
659 * Api/qgraphicswebview.h:
660 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
661 (tst_QGraphicsWebView::qgraphicswebview):
663 2009-11-04 Simon Hausmann <hausmann@webkit.org>
665 Reviewed by Tor Arne Vestbø.
667 Make the QGraphicsWebView constructor explicit.
669 * Api/qgraphicswebview.h:
671 2009-11-05 Shu Chang <Chang.Shu@nokia.com>
673 Reviewed by Tor Arne Vestbø.
675 Add support for Shift-PageUp and Shift-PageDown key events.
676 https://bugs.webkit.org/show_bug.cgi?id=31166
678 Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html
680 * WebCoreSupport/EditorClientQt.cpp:
681 (WebCore::EditorClientQt::handleKeyboardEvent):
683 2009-11-05 Simon Hausmann <hausmann@webkit.org>
685 Last Qt 4.5 build fix (*sigh*)
687 * tests/qwebpage/tst_qwebpage.cpp:
688 (inputMethodHints): inputMethodHints() is only used for
689 Qt 4.6, so guard the whole function.
691 2009-11-05 Simon Hausmann <hausmann@webkit.org>
693 Another prospective build fix against Qt 4.5 (build bot)
695 Don't compile & run the QGraphicsWebView portion of the
696 input methods auto test with Qt 4.5.
698 * tests/qwebpage/tst_qwebpage.cpp:
699 (tst_QWebPage::inputMethods_data):
701 (inputMethodEnabled):
702 (tst_QWebPage::inputMethods):
704 2009-11-05 Simon Hausmann <hausmann@webkit.org>
706 Prospective build fix against Qt 4.5 (build bot)
708 * Api/qgraphicswebview.cpp:
709 (QGraphicsWebViewPrivate::setInputMethodEnabled): Guard the
710 use of Qt 4.6 specific API with #ifdefs.
712 2009-11-01 Simon Hausmann <hausmann@webkit.org>
714 Reviewed by Kenneth Christiansen.
716 [Qt] Fix enabling of input method support on QGraphicsWebView.
717 https://bugs.webkit.org/show_bug.cgi?id=30605
719 Instead of setting the unsupported widget attribute on the
720 QGraphicsWidget in setInputMethodEnabled() set the
721 ItemAcceptsInputMethod GraphicsItem flag directly.
723 Changed the existing input method auto test to run once
724 on a QWebView and once on a QGraphicsWebView.
726 * Api/qgraphicswebview.cpp:
727 (QGraphicsWebViewPrivate::setInputMethodEnabled):
728 * tests/qwebpage/tst_qwebpage.cpp:
729 (tst_QWebPage::inputMethods_data):
731 (inputMethodEnabled):
732 (tst_QWebPage::inputMethods):
734 2009-11-04 Simon Hausmann <hausmann@webkit.org>
736 Reviewed by Kenneth Christiansen.
738 Added QGraphicsWebView::modified property, for consistency
741 * Api/qgraphicswebview.cpp:
742 (QGraphicsWebView::isModified):
743 * Api/qgraphicswebview.h:
744 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
745 (tst_QGraphicsWebView::qgraphicswebview):
747 2009-11-04 Simon Hausmann <hausmann@webkit.org>
749 Reviewed by Kenneth Christiansen.
751 Removed status and progress properties of QGraphicsWebView.
752 Added loadProgress and statusBarMessage signals instead,
755 * Api/qgraphicswebview.cpp:
756 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
757 (QGraphicsWebView::setPage):
758 * Api/qgraphicswebview.h:
759 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
760 (tst_QGraphicsWebView::qgraphicswebview):
762 2009-11-04 Yael Aharon <yael.aharon@nokia.com>
764 Reviewed by Simon Hausmann.
766 [Qt] REGRESSION: Allow applications to use their own QWidget bypassing QWebView.
767 https://bugs.webkit.org/show_bug.cgi?id=30979
769 Decouple QWebViewPrivate from QWebPageClient, and automatically create
770 QWebPageWidgetClient whenever the view is QWidget based.
773 (QWebPageWidgetClient::QWebPageWidgetClient):
774 (QWebPageWidgetClient::scroll):
775 (QWebPageWidgetClient::update):
776 (QWebPageWidgetClient::setInputMethodEnabled):
777 (QWebPageWidgetClient::setInputMethodHint):
778 (QWebPageWidgetClient::cursor):
779 (QWebPageWidgetClient::updateCursor):
780 (QWebPageWidgetClient::palette):
781 (QWebPageWidgetClient::screenNumber):
782 (QWebPageWidgetClient::ownerWidget):
783 (QWebPageWidgetClient::pluginParent):
786 (QWebView::~QWebView):
790 2009-11-03 Andras Becsi <becsi.andras@stud.u-szeged.hu>
792 Reviewed by Simon Hausmann.
794 [Qt] Fix build of unit-test after r50454.
796 * tests/qwebpage/tst_qwebpage.cpp:
798 2009-11-03 Simon Hausmann <hausmann@webkit.org>
800 Reviewed by Tor Arne Vestbø.
802 Make QWebPluginDatabase private API for now.
804 https://bugs.webkit.org/show_bug.cgi?id=30775
807 * Api/qwebplugindatabase.cpp:
808 * Api/qwebplugindatabase_p.h: Renamed from WebKit/qt/Api/qwebplugindatabase.h.
809 * Api/qwebsettings.cpp:
810 * Api/qwebsettings.h:
811 * QtLauncher/main.cpp:
812 (MainWindow::setupUI):
815 2009-11-03 Simon Hausmann <hausmann@webkit.org>
817 Rubber-stamped by Tor Arne Vestbø.
819 Oops, also remove the API docs of the removed networkRequestStarted() signal.
823 2009-11-03 Simon Hausmann <hausmann@webkit.org>
825 Reviewed by Tor Arne Vestbø.
827 Replace the QWebPage::networkRequestStarted() signal with the originatingObject
828 property set to the QWebFrame that belongs to the request.
830 https://bugs.webkit.org/show_bug.cgi?id=29975
833 * WebCoreSupport/FrameLoaderClientQt.cpp:
834 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
835 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
836 (WebCore::FrameLoaderClientQt::startDownload):
837 * tests/qwebpage/tst_qwebpage.cpp:
838 (tst_QWebPage::loadFinished):
839 (TestNetworkManager::createRequest):
840 (tst_QWebPage::originatingObjectInNetworkRequests):
842 2009-11-02 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
844 Reviewed by Adam Barth.
848 The QWebView should not crash if the stop() method is called from
849 a function triggered by the loadProgress signal.
851 A null pointer protection was added in the ProgressTracker::incrementProgress.
853 New autotest was created.
855 https://bugs.webkit.org/show_bug.cgi?id=29425
857 * tests/qwebview/tst_qwebview.cpp:
858 (WebViewCrashTest::WebViewCrashTest):
859 (WebViewCrashTest::loading):
860 (tst_QWebView::crashTests):
862 2009-11-01 Laszlo Gombos <laszlo.1.gombos@nokia.com>
864 Reviewed by Eric Seidel.
866 Turn on warnings for QtWebKit for gcc
867 https://bugs.webkit.org/show_bug.cgi?id=30958
870 (QWebPagePrivate::QWebPagePrivate): Reorder initialization list
871 to fix compiler warnings.
872 * WebCoreSupport/FrameLoaderClientQt.cpp:
873 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto.
875 2009-10-30 Evan Stade <estade@chromium.org>
877 Reviewed by David Levin.
879 Notify the chrome when the focused node has changed.
880 https://bugs.webkit.org/show_bug.cgi?id=30832
882 Added stub implementation for new ChromeClient function.
884 * WebCoreSupport/ChromeClientQt.cpp:
885 (WebCore::ChromeClientQt::focusedNodeChanged):
886 * WebCoreSupport/ChromeClientQt.h:
888 2009-10-30 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
890 Reviewed by Tor Arne Vestbø.
892 [Qt] Remove the QWebInspector::windowTitleChanged signal,
893 QEvent::WindowTitleChange can be used to achieve the same.
894 https://bugs.webkit.org/show_bug.cgi?id=30927
896 * Api/qwebinspector.cpp:
897 * Api/qwebinspector.h:
898 * WebCoreSupport/InspectorClientQt.cpp:
899 (WebCore::InspectorClientQt::updateWindowTitle):
901 2009-10-29 Laszlo Gombos <laszlo.1.gombos@nokia.com>
903 Reviewed by Tor Arne Vestbø.
905 [Qt] Implement DELETE HTTP method for XmlHttpRequest
906 https://bugs.webkit.org/show_bug.cgi?id=30894
908 No new tests as this functionality is already tested by the
909 xmlhttprequest LayoutTests. As this patch depends on an unreleased
910 version of the dependent QtNetwork library and the tests will be
911 enabled later once the dependent library is released (and the
912 buildbot is updated).
917 2009-10-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
919 Reviewed by Tor Arne Vestbø.
921 Remove QWebView::guessUrlFromString() and replace its use
922 with the new QUrl::fromUserInput() if using Qt 4.6 or newer.
926 * QGVLauncher/main.cpp:
928 (WebPage::applyProxy):
930 * QtLauncher/main.cpp:
932 (MainWindow::MainWindow):
933 (MainWindow::changeLocation):
934 * tests/qwebview/tst_qwebview.cpp:
936 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
938 Reviewed by Tor Arne Vestbø.
940 Serialize directly to the stream, and not first to an QByteArray,
941 that is later serialized. That is slower and also uses more bytes.
943 * Api/qwebhistory.cpp:
947 2009-10-28 Shinichiro Hamaji <hamaji@chromium.org>
949 Reviewed by Eric Seidel.
951 [Qt] WebFrame::counterValueForElementById must not be exposed
952 https://bugs.webkit.org/show_bug.cgi?id=30882
955 (qt_drt_counterValueForElementById):
958 2009-10-27 Shinichiro Hamaji <hamaji@chromium.org>
960 Reviewed by Darin Adler.
962 Provide a way to get counter values with layoutTestContoller
963 https://bugs.webkit.org/show_bug.cgi?id=30555
966 (QWebFrame::counterValueForElementById):
967 (QWebHitTestResult::frame):
970 2009-10-28 Antonio Gomes <tonikitoo@webkit.org>
972 Pushing missing WebKit/qt/tests/qwebframe/resources/ dir from bug 29248.
974 [Qt] [API] Make it possible to have 'invisible' loads
975 https://bugs.webkit.org/show_bug.cgi?id=29248
977 * tests/qwebframe/resources/image2.png: Copied from WebKit/qt/tests/qwebelement/image.png.
979 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
981 Reviewed by Tor Arne Vestbø.
983 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
984 https://bugs.webkit.org/show_bug.cgi?id=30710
986 Make the versioning internal and enforce it in the WebCore
987 part. Adjust the comments, as well as remove now dead code.
989 * Api/qwebhistory.cpp:
994 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
996 Reviewed by Holger Freyther.
998 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
999 https://bugs.webkit.org/show_bug.cgi?id=30710
1001 Remove the QWebHistory::saveState() and ::restoreState() as
1002 they are inconsistent with the Qt API.
1004 Update unittests to reflect the change.
1006 * Api/qwebhistory.cpp:
1009 * Api/qwebhistory.h:
1010 * tests/qwebhistory/tst_qwebhistory.cpp:
1013 (tst_QWebHistory::saveAndRestore_crash_1):
1014 (tst_QWebHistory::saveAndRestore_crash_2):
1015 (tst_QWebHistory::saveAndRestore_crash_3):
1016 (tst_QWebHistory::clear):
1018 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
1020 Reviewed by Holger Freyther.
1022 Complementary fix to bug 30779.
1024 By mistake I used QWeakPointer's toStrongRef() method which docs
1025 explicitly say to not be used in this situation (when the tracked
1026 pointer is devired from QObject). Instead QWeakPointer's data()
1032 2009-10-27 Holger Hans Peter Freyther <zecke@selfish.org>
1034 Reviewed by Simon Fraser.
1036 Change HitTestResult methods to use (3d) transformation aware methods
1037 https://bugs.webkit.org/show_bug.cgi?id=27347
1039 The HitTestResult::boundingBox method was removed. The
1040 RenderObject must be used directly. In contrast to the
1041 old HitTestResult::boundingBox method this code must use
1042 a (3d) transformation aware method to not run into an
1043 assert in SVGRenderBase::mapLocalToContainer.
1045 * Api/qwebframe.cpp:
1046 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1048 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1050 Rubberstamped by Oliver Hunt.
1052 Change two methods to be internal for DRT use only.
1054 Part of [Qt] Review all new API in Qt 4.6
1055 https://bugs.webkit.org/show_bug.cgi?id=29843#c11
1057 * Api/qwebsecurityorigin.cpp:
1058 (qt_drt_whiteListAccessFromOrigin):
1059 (qt_drt_resetOriginAccessWhiteLists):
1060 (QWebSecurityOrigin::localSchemes):
1061 * Api/qwebsecurityorigin.h:
1063 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1065 Reviewed by Tor Arne Vestbø.
1067 Make sure that initiating a rotation while rotating won't make
1068 it end up at rotation positions that are not a multiply of
1071 * QGVLauncher/main.cpp:
1072 (MainView::animatedFlip):
1074 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1076 Unreviewed Qt build fix.
1078 Update the tests as well to the new API change.
1080 * tests/qwebelement/tst_qwebelement.cpp:
1081 (tst_QWebElement::clear):
1083 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1085 Rubberstamped by Tor Arne Vestbø.
1087 [Qt] QWebElement::removeChildren() should be
1088 QWebElement::removeAllChildren()
1089 https://bugs.webkit.org/show_bug.cgi?id=30630
1091 * Api/qwebelement.cpp:
1092 (QWebElement::removeAllChildren):
1093 * Api/qwebelement.h:
1095 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
1097 Reviewed by Antti Koivisto and Holger Freyther.
1099 Make QWebPagePrivate's (QWidget) view to be a QWeakPointer.
1100 https://bugs.webkit.org/show_bug.cgi?id=30779
1102 The fact that it was been set from external objects of qwebpage
1103 and not being deleted internally can lead to dangling references.
1105 * Api/qgraphicswebview.cpp:
1106 (QGraphicsWebView::~QGraphicsWebView):
1108 (QWebPagePrivate::QWebPagePrivate):
1109 (QWebPagePrivate::createContextMenu):
1110 (QWebPagePrivate::handleSoftwareInputPanel):
1111 (QWebPagePrivate::keyPressEvent):
1112 (QWebPage::setView):
1114 (QWebPage::javaScriptAlert):
1115 (QWebPage::javaScriptConfirm):
1116 (QWebPage::javaScriptPrompt):
1117 (QWebPage::shouldInterruptJavaScript):
1118 (QWebPage::createWindow):
1119 (QWebPage::extension):
1120 (QWebPage::chooseFile):
1121 (QWebPage::userAgentForUrl):
1124 (QWebView::~QWebView):
1126 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
1128 Unreviewed documentation fix from David Boddie (Qt Doc Team)
1130 Removes the check around the RenderHints property documentation
1131 that was clearly added to synchronize the source and header files
1132 when the #if !defined(Q_OS_SYMBIAN) guards was added to the
1135 The documentation has also been updated to ensure that Symbian
1136 users know that there is no actual RenderHints property on their
1141 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
1143 Unreviewed documentation fix from David Boddie (Qt Doc Team)
1145 Ensure that qdoc will always see the RenderHints property.
1147 The property was only defined in the header file if the Q_OS_SYMBIAN
1148 symbol was not defined, resulting in the property not showing up
1149 in the Qt documentation just because one platform doesn't support it.
1151 A follow up commit will improve the documentation for the property
1152 and note that it is not supported on the Symbiam platform.
1156 2009-10-26 Benjamin Poulain <benjamin.poulain@nokia.com>
1158 Reviewed by Tor Arne Vestbø.
1160 [Qt] Reintroduce QWebElementCollection
1162 Revert the patch that has replaced QWebElementCollection
1163 with QList<QWebElement>. Update the tests accordingly.
1165 Remove the constness of the return type of QWebElement operator[].
1167 https://bugs.webkit.org/show_bug.cgi?id=30767
1169 * Api/qwebelement.cpp:
1170 (QWebElement::findAll):
1171 (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
1172 (QWebElementCollectionPrivate::create):
1173 (QWebElementCollection::QWebElementCollection):
1174 (QWebElementCollection::operator=):
1175 (QWebElementCollection::~QWebElementCollection):
1176 (QWebElementCollection::operator+):
1177 (QWebElementCollection::append):
1178 (QWebElementCollection::count):
1179 (QWebElementCollection::at):
1180 (QWebElementCollection::toList):
1181 * Api/qwebelement.h:
1182 (const_iterator::begin):
1183 (const_iterator::end):
1184 (const_iterator::operator[]):
1185 * Api/qwebframe.cpp:
1186 (QWebFrame::findAllElements):
1188 * QtLauncher/main.cpp:
1189 (MainWindow::selectElements):
1190 * tests/qwebelement/tst_qwebelement.cpp:
1191 (tst_QWebElement::simpleCollection):
1192 (tst_QWebElement::iteration):
1193 (tst_QWebElement::emptyCollection):
1194 (tst_QWebElement::appendCollection):
1195 (tst_QWebElement::nullSelect):
1196 (tst_QWebElement::hasSetFocus):
1197 (tst_QWebElement::render):
1198 * tests/qwebpage/tst_qwebpage.cpp:
1199 (tst_QWebPage::inputMethods):
1201 2009-10-24 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1203 Reviewed by Holger Freyther.
1205 [Qt] [Symbian] Set the capability and memory required to run QtWebKit for Symbian
1206 https://bugs.webkit.org/show_bug.cgi?id=30476
1208 Assign ReadUserData WriteUserData NetworkServices Symbian capabilities
1209 to all QtWebkit executables.
1211 * QGVLauncher/QGVLauncher.pro:
1212 * QtLauncher/QtLauncher.pro:
1213 * tests/benchmarks/loading/tst_loading.pro:
1214 * tests/benchmarks/painting/tst_painting.pro:
1215 * tests/qgraphicswebview/qgraphicswebview.pro:
1216 * tests/qwebelement/qwebelement.pro:
1217 * tests/qwebframe/qwebframe.pro:
1218 * tests/qwebhistory/qwebhistory.pro:
1219 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
1220 * tests/qwebpage/qwebpage.pro:
1221 * tests/qwebplugindatabase/qwebplugindatabase.pro:
1222 * tests/qwebview/qwebview.pro:
1224 2009-10-22 Gavin Barraclough <barraclough@apple.com>
1226 Reviewed by NOBODY (speculative build fix - qt is currently already broken!)
1227 Build fix following bug #30696.
1229 * Api/qwebelement.cpp:
1230 (setupScriptContext):
1231 * Api/qwebframe.cpp:
1232 (QWebFrame::evaluateJavaScript):
1234 2009-10-22 Shu Chang <Chang.Shu@nokia.com>
1236 Reviewed by Eric Seidel.
1238 [Qt] Enable track visited links in QWebPage
1239 https://bugs.webkit.org/show_bug.cgi?id=30574
1241 Test: fast/history/clicked-link-is-visited.html
1244 (QWebPagePrivate::QWebPagePrivate):
1246 2009-10-22 Girish Ramakrishnan <girish@forwardbias.in>
1248 Reviewed by Eric Seidel.
1250 [Qt] Add Print Shortcut to QtLauncher
1252 https://bugs.webkit.org/show_bug.cgi?id=30682
1254 * QtLauncher/main.cpp:
1255 (MainWindow::setupUI):
1257 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
1259 Rubberstamped by Tor Arne Vestbø.
1261 Code standarlization for QGVLauncher.
1263 1) Made member initilization lists in constructors
1265 2) Made applyProxy method inline as all other methods in
1268 * QGVLauncher/main.cpp:
1270 (WebPage::applyProxy):
1271 (MainView::MainView):
1272 (MainWindow::MainWindow):
1275 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
1277 Reviewed by Tor Arne Vestbø.
1279 Add a Y-Axis rotation to QGVLauncher.
1281 It uses the QStateMachine API from Qt 4.6.
1283 * QGVLauncher/main.cpp:
1285 (WebView::setYRotation):
1286 (WebView::yRotation):
1288 (MainView::animatedYFlip):
1289 (SharedScene::SharedScene):
1290 (SharedScene::webView):
1292 (MainWindow::animatedYFlip):
1293 (MainWindow::buildUI):
1295 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1297 Reviewed By Adam Barth.
1299 Add some actions to the menu for cursor debugging.
1301 GraphicsView based launcher only.
1303 * QGVLauncher/main.cpp:
1304 (MainView::setWaitCursor):
1305 (MainView::resetCursor):
1307 (MainWindow::setWaitCursor):
1308 (MainWindow::resetCursor):
1309 (MainWindow::buildUI):
1311 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1313 Rubberstamped by Adam Barth.
1315 Remove clipRenderToViewport as agreed upon in
1316 https://bugs.webkit.org/show_bug.cgi?id=29843
1318 * Api/qwebframe.cpp:
1320 * Api/qwebframe_p.h:
1321 (QWebFramePrivate::QWebFramePrivate):
1323 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1325 Reviewed by Adam Barth.
1327 Update the tests to test the new render functionality, and take
1328 into consideration that render() clips to the frame itself as well
1331 QWebFrame::render() now always clips, so the old tests were bogus.
1333 Rendering pure contents (no scrollbars etc) without clipping can now
1334 be accomplished using QWebFrame::documentElement()->render(...)
1336 * Api/qwebframe.cpp:
1338 * Api/qwebframe_p.h:
1339 (QWebFramePrivate::QWebFramePrivate):
1340 * tests/qwebframe/tst_qwebframe.cpp:
1342 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1344 Rubberstamped by Adam Barth.
1346 As we do not support rendering a QWebFrame without it being clipped
1347 the the frame as well as the viewport, we now set the viewport size
1348 to the size of the contents.
1350 Rendering pure contents (no scrollbars etc) without clipping can be
1351 acomplished using QWebFrame::documentElement()->render(...)
1353 * tests/qwebelement/tst_qwebelement.cpp:
1354 (tst_QWebElement::render):
1356 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1358 Reviewed by Tor Arne Vestbø.
1360 Add menu item to dump the plugin list to the console,
1361 which can be handy for debugging.
1363 * QtLauncher/main.cpp:
1364 (MainWindow::dumpPlugins):
1365 (MainWindow::setupUI):
1367 2009-10-19 Kenneth Rohde Christiansen <kenneth@webkit.org>
1369 Reviewed by Tor Arne Vestbø.
1371 Introduce new render method on QWebFrame, which supports specifying
1372 which layers to render (scrollbars, contents, pan-icon).
1374 * Api/qwebframe.cpp:
1375 (QWebFramePrivate::renderPrivate):
1376 (QWebFrame::render):
1378 * Api/qwebframe_p.h:
1380 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
1382 Reviewed by Ariya Hidayat.
1384 [Qt] Infinite loop (leading to crash) when setting cursor in QGraphicsWebView
1385 https://bugs.webkit.org/show_bug.cgi?id=30549
1387 Patch reimplements QGraphicsItem's itemChange method, and make
1388 CursorChange event to be emitted after cursor has already been
1391 QWidget::setCursor send the event just after it sets the cursor,
1392 then patch makes both behaviors compatible.
1394 * Api/qgraphicswebview.cpp:
1395 (QGraphicsWebView::itemChange):
1396 * Api/qgraphicswebview.h:
1398 2009-10-19 Nate Chapin <japhet@chromium.org>
1400 Unreviewed, build fix.
1402 Update call to FrameLoader::loadFrameRequest().
1405 (QWebPage::triggerAction):
1407 2009-10-19 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
1409 Reviewed by Ariya Hidayat.
1411 Add QWebElement::render API which allows rendering of single
1414 * Api/qwebelement.cpp:
1415 (QWebElement::render):
1416 * Api/qwebelement.h:
1417 * tests/qwebelement/tst_qwebelement.cpp:
1418 (tst_QWebElement::render):
1419 * tests/qwebelement/qwebelement.qrc:
1420 * tests/qwebelement/image.png: Added.
1422 2009-10-19 Markus Goetz <Markus.Goetz@nokia.com>
1424 Reviewed by Ariya Hidayat.
1426 QWebPage: Doc: setNetworkAccessManager should only be called once.
1430 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
1432 Reviewed by Tor Arne.
1434 Wrong ifdef combination in QGraphicsWebView's event method.
1436 * Api/qgraphicswebview.cpp:
1437 (QGraphicsWebView::event):
1439 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
1441 Reviewed by Holger Freyther.
1443 [Qt] Windowed Plugins: Don't crash when client is 0.
1445 Client is 0 when we use QWebPage without a QWebView or QGraphicsWebView.
1446 In addition, setFrameRect()/updatePluginWidget() is called even if the
1447 plugin was not succesfully loaded. updatePluginWidget() updates the
1448 window rect which is, in theory, useful to draw something that indicates
1449 that we didn't load successfully.
1451 So, a status check is added to setNPWindowIfNeeded.
1453 https://bugs.webkit.org/show_bug.cgi?id=30380
1455 * tests/qwebpage/qwebpage.pro:
1456 * tests/qwebpage/tst_qwebpage.cpp:
1458 (tst_QWebPage::screenshot_data):
1459 (tst_QWebPage::screenshot):
1460 * tests/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf.
1462 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
1464 Reviewed by Holger Freyther.
1466 [Qt] Windowed Plugins: Fix crash when QWebPage is deleted after QWebView.
1468 Fixes various sources of crashes:
1469 1. The PluginContainer is a child of QWebView. When the view gets deleted,
1470 the PluginView is not notified about the deletion of PluginContainer.
1471 2. QWebView destructor does not set client to 0.
1472 3. Sometimes pending paint events are sent after the plugin has died, so add
1473 a check in PluginView::setNPWindowIfNeeded.
1475 https://bugs.webkit.org/show_bug.cgi?id=30354
1478 (QWebView::~QWebView):
1479 * tests/qwebview/qwebview.pro:
1480 * tests/qwebview/tst_qwebview.cpp:
1481 (tst_QWebView::reusePage_data):
1482 (tst_QWebView::reusePage):
1484 2009-10-19 Jakob Truelsen <antialize@gmail.com>
1486 Reviewed by Adam Barth.
1488 https://bugs.webkit.org/show_bug.cgi?id=29042
1490 Allow one to costumize the minimal and maximal shrink factors,
1491 Added methods setPrintingMinimumShrinkFactor, printingMinimumShrinkFactor,
1492 setPrintingMaximumShrinkFactor, printingMaximumShrinkFactor to QWebSettings.
1495 * Api/qwebsettings.cpp:
1496 (QWebSettingsPrivate::apply):
1497 (QWebSettings::QWebSettings):
1498 (QWebSettings::setPrintingMinimumShrinkFactor):
1499 (QWebSettings::printingMinimumShrinkFactor):
1500 (QWebSettings::setPrintingMaximumShrinkFactor):
1501 (QWebSettings::printingMaximumShrinkFactor):
1502 * Api/qwebsettings.h:
1504 2009-10-18 Kenneth Rohde Christiansen <kenneth@webkit.org>
1506 Reviewed by Simon Hausmann.
1508 Rename fixedContentsSize property to preferredContentsSize as
1509 agreed upon with Simon Hausmann and Matthias Ettrich.
1512 (QWebPage::preferredContentsSize):
1513 (QWebPage::setPreferredContentsSize):
1515 * WebCoreSupport/FrameLoaderClientQt.cpp:
1516 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1518 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
1520 Reviewed by Simon Hausmann.
1522 [Qt] QGLauncher leaks WebPage object
1523 https://bugs.webkit.org/show_bug.cgi?id=30465
1525 Make 'SharedScene' to own 'WebPage' reference and delete it at its destructor.
1530 * QGVLauncher/main.cpp:
1531 (SharedScene::SharedScene):
1532 (SharedScene::~SharedScene):
1534 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
1536 Reviewed by Simon Hausmann.
1538 [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash
1539 https://bugs.webkit.org/show_bug.cgi?id=30459
1541 Remove all setView(ev->widget()) calls in QWebPage and QGWV event handling methods,
1542 since QWebPageClient would do the trick.
1544 * Api/qgraphicswebview.cpp:
1545 (QGraphicsWebView::hoverMoveEvent):
1547 (QWebPagePrivate::mouseMoveEvent):
1548 (QWebPagePrivate::mousePressEvent):
1549 (QWebPagePrivate::mouseDoubleClickEvent):
1550 (QWebPagePrivate::mouseReleaseEvent):
1551 (QWebPagePrivate::wheelEvent):
1552 (QWebPagePrivate::dragEnterEvent):
1553 (QWebPagePrivate::dragLeaveEvent):
1554 (QWebPagePrivate::dragMoveEvent):
1556 2009-10-16 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1558 Pull out r49676 as it caused build breakges on Symbian
1562 2009-10-16 Yael Aharon <yael.aharon@nokia.com>
1564 Reviewed by Tor Arne Vestbø.
1566 [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
1567 https://bugs.webkit.org/show_bug.cgi?id=30179
1569 Added "c" style static methods for the application to hook up for
1570 receiving notifications when a plugin is created or destroyed.
1574 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
1576 Rubberstamped by Tor Arne.
1578 Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*).
1580 * QGVLauncher/main.cpp:
1583 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
1585 Reviewed by Tor Arne.
1587 [Qt] QGLauncher crashes while closing a window
1588 https://bugs.webkit.org/show_bug.cgi?id=30385
1590 Set page's pageClient reference to '0' at QGWV deletion.
1592 * Api/qgraphicswebview.cpp:
1593 (QGraphicsWebView::~QGraphicsWebView):
1594 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1596 (WebPage::aborting):
1597 (tst_QGraphicsWebView::crashOnViewlessWebPages):
1599 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1601 Reviewed by Simon Hausmann.
1603 [Qt] Make context menu to work in QGraphicsWebView
1604 https://bugs.webkit.org/show_bug.cgi?id=30336
1606 * Api/qgraphicswebview.cpp:
1607 (QGraphicsWebView::event):
1609 2009-10-13 Girish Ramakrishnan <girish@forwardbias.in>
1611 Reviewed by Simon Hausmann.
1613 [Qt] Plugins : Remove all traces of winId. Use ownerWidget() instead.
1615 This is a bug for two reasons:
1616 1. Everytime we use winId(), we end up creating a native widget. This causes an
1617 unnecessary copy of contents from the backing store to the native widget.
1618 2. Neither windowed nor windowless plugins require the winId of the QWebView or
1621 Introduce ownerWidget() which returns a QWidget * without creating a native widget
1622 (as opposed to QWidget::find(winId)).
1624 https://bugs.webkit.org/show_bug.cgi?id=30170
1626 * Api/qgraphicswebview.cpp:
1627 (QGraphicsWebViewPrivate::ownerWidget):
1629 (QWebViewPrivate::ownerWidget):
1631 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1633 Reviewed by Simon Hausmann.
1635 [Qt] Add some initial autotests for QWebPage's ErrorPageExtention
1636 https://bugs.webkit.org/show_bug.cgi?id=30296
1638 * tests/qwebpage/tst_qwebpage.cpp:
1639 (ErrorPage::ErrorPage):
1640 (ErrorPage::supportsExtension):
1641 (ErrorPage::extension):
1642 (tst_QWebPage::errorPageExtension):
1644 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1646 Reviewed by Simon Hausmann.
1648 [Qt] better handle possible edge cases on qwebframe::requestedUrl use
1649 https://bugs.webkit.org/show_bug.cgi?id=30216
1651 QWebFrame::requestedUrl can be called at any time during the load
1654 * An error handling (whereas an alternate error page for unsuccessful
1656 * A ssl error exception call;
1657 * During navigation notifications/callbacks (titleChanged, urlChanged,
1658 progresses, addHistoryEntry, etc);
1661 This patch makes requestedUrl calls to fallback to FrameLoaderClient
1662 m_loadError's failingURL when an error has occurred, unless it is
1665 Also, m_loadError is now being reset at each the main frame starts a
1666 load, in order to avoid previous load errors footprints.
1668 * Api/qwebframe.cpp:
1669 (QWebFrame::requestedUrl):
1670 * WebCoreSupport/FrameLoaderClientQt.cpp:
1671 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
1673 2009-10-12 Jakub Wieczorek <faw217@gmail.com>
1675 Reviewed by Simon Hausmann.
1677 [Qt] Missing default value for the default text encoding.
1678 https://bugs.webkit.org/show_bug.cgi?id=30311
1680 QtWebKit has provided a default, hardcoded value for default charset but since
1681 the addition of the defaultTextEncoding setting in QWebSettings, that hardcoded
1682 value has had no effect.
1684 Added a regression test and unskipped fast/dom/Document/document-charset.html,
1685 which is passing now.
1688 (QWebPagePrivate::QWebPagePrivate):
1689 * Api/qwebsettings.cpp:
1690 (QWebSettings::QWebSettings):
1691 * tests/qwebpage/tst_qwebpage.cpp:
1692 (tst_QWebPage::defaultTextEncoding):
1694 2009-10-12 Kenneth Rohde Christiansen <kenneth@webkit.org>
1696 Reviewed by Simon Hausmann.
1698 Implement the new palette() methods on the page clients
1700 * Api/qgraphicswebview.cpp:
1701 (QGraphicsWebViewPrivate::palette):
1703 (QWebViewPrivate::palette):
1705 2009-10-12 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
1707 Reviewed by Simon Hausmann.
1709 QWebPage's createViewlessPlugin autotest crash fix.
1711 It is possible that plugins that are QWidgets or QGraphicsWidgets
1712 are created before a view has been assigned to a QWebPage. The
1713 plug-ins won't be fully functional, as by design, they should
1714 visualise something, but they won't crash and will stay in memory.
1716 An autotest that covers this use-case, is included.
1718 https://bugs.webkit.org/show_bug.cgi?id=30118
1720 * WebCoreSupport/FrameLoaderClientQt.cpp:
1721 (WebCore::FrameLoaderClientQt::createPlugin):
1722 * tests/qwebpage/tst_qwebpage.cpp:
1723 (PluginTrackedPageWidget::PluginTrackedPageWidget):
1724 (PluginTrackedPageGraphicsWidget::PluginTrackedPageGraphicsWidget):
1725 (PluginTrackedPageGraphicsWidget::createPlugin):
1726 (tst_QWebPage::destroyPlugin):
1727 (tst_QWebPage::createViewlessPlugin):
1729 2009-10-09 Joe Ligman <joseph.ligman@nokia.com>
1731 Reviewed by Simon Hausmann.
1733 Sets Qt::WA_InputMethodEnabled and Qt::ImhHiddenText for password fields in EditorClientQt
1734 setInputMethodState. This change is needed so widgets such as the s60 software
1735 input panel can receive input method events for password fields.
1736 It's up to the Qt platform to determine which widget will receive input method
1737 events when these flags are set.
1738 Also added implementation for setInputMethodEnabled and setInputMethodHint
1739 to QGraphicsWebViewPrivate and QWebViewPrivate. This change removes the direct
1740 dependency on QWebView and uses QWebPageClient.
1741 Added autotest to tst_qwebpage.cpp
1742 https://bugs.webkit.org/show_bug.cgi?id=30023
1744 * Api/qgraphicswebview.cpp:
1745 (QGraphicsWebViewPrivate::setInputMethodEnabled):
1746 (QGraphicsWebViewPrivate::setInputMethodHint):
1748 (QWebViewPrivate::setInputMethodEnabled):
1749 (QWebViewPrivate::setInputMethodHint):
1750 * WebCoreSupport/EditorClientQt.cpp:
1751 (WebCore::EditorClientQt::setInputMethodState):
1752 * tests/qwebpage/tst_qwebpage.cpp:
1753 (tst_QWebPage::inputMethods):
1755 2009-10-08 Adam Barth <abarth@webkit.org>
1757 Reviewed by Eric Seidel.
1759 Move executeScript from FrameLoader to ScriptController
1760 https://bugs.webkit.org/show_bug.cgi?id=30200
1764 * Api/qwebframe.cpp:
1765 (QWebFrame::evaluateJavaScript):
1767 2009-10-08 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
1769 Reviewed by Simon Hausmann.
1771 Part of testOptionalJSObjects autotest was marked as "expect to fail".
1773 Two places in tst_QWebPage::testOptionalJSObjects were marked as
1774 expected to fail. The problem concern checking if a feature is enabled
1775 or disabled. According to discussion on webkit dev mailing list
1776 a disabled feature should be invisible from java script level, but
1777 there are exceptions from the rule. So we decided to disable the test
1780 https://bugs.webkit.org/show_bug.cgi?id=29867
1782 * tests/qwebpage/tst_qwebpage.cpp:
1783 (tst_QWebPage::testOptionalJSObjects):
1785 2009-10-07 Adam Barth <abarth@webkit.org>
1787 Reviewed by Darin Adler.
1789 Factor PolicyChecker out of FrameLoader
1790 https://bugs.webkit.org/show_bug.cgi?id=30155
1792 Move the policy callback to the policy object.
1794 * WebCoreSupport/FrameLoaderClientQt.cpp:
1795 (WebCore::FrameLoaderClientQt::callPolicyFunction):
1797 2009-10-07 Antonio Gomes <tonikitoo@webkit.org>
1799 Reviewed by Simon Hausmann.
1801 [Qt] Get rid of useless loadFailed signal in QGraphicsWebView
1802 https://bugs.webkit.org/show_bug.cgi?id=30166
1804 * Api/qgraphicswebview.cpp:
1805 (QGraphicsWebViewPrivate::_q_doLoadFinished):
1806 * Api/qgraphicswebview.h:
1807 * QGVLauncher/main.cpp:
1809 (MainWindow::loadFinished):
1811 2009-10-07 Girish Ramakrishnan <girish@forwardbias.in>
1813 Reviewed by Simon Hausmann.
1815 Add a simple rotation effect to QGVLauncher
1817 https://bugs.webkit.org/show_bug.cgi?id=30162
1819 * QGVLauncher/main.cpp:
1820 (MainView::animatedFlip):
1821 (MainWindow::animatedFlip):
1822 (MainWindow::buildUI):
1824 2009-10-07 Volker Hilsheimer <volker.hilsheimer@nokia.com>
1826 Reviewed by Simon Hausmann.
1828 Doc: Document HTML and status as properties.
1830 * Api/qgraphicswebview.cpp:
1832 2009-10-07 Martin Smith <msmith@trolltech.com>
1834 Reviewed by Simon Hausmann.
1836 Fix qdoc warning about disabled renderHints property
1842 2009-10-06 Adam Barth <abarth@webkit.org>
1844 Reviewed by Eric Seidel.
1846 Move setLocalLoadPolicy and friends to SecurityOrigin
1847 https://bugs.webkit.org/show_bug.cgi?id=30110
1852 (QWebPagePrivate::QWebPagePrivate):
1854 2009-10-06 Benjamin C Meyer <bmeyer@rim.com>
1856 Reviewed by Ariya Hidayat.
1858 When the drag data contains an image set it on the QDrag so it will be visible to the user.
1860 * WebCoreSupport/DragClientQt.cpp:
1861 (WebCore::DragClientQt::startDrag):
1863 2009-10-06 Pavel Feldman <pfeldman@chromium.org>
1865 Reviewed by Timothy Hatcher.
1867 Web Inspector: close inspector client view on
1868 InspectorController::close API call.
1870 In order to run batch web inspector layout tests (and not affect
1871 subsequent tests) we should close inspector client's view upon
1872 InspectorController::close API call.
1874 https://bugs.webkit.org/show_bug.cgi?id=30009
1876 * WebCoreSupport/InspectorClientQt.cpp:
1877 (WebCore::InspectorClientQt::createPage):
1879 2009-10-06 Janne Koskinen <janne.p.koskinen@digia.com>
1881 Reviewed by Simon Hausmann.
1883 [Qt] don't enable input methods on Symbian by default.
1884 https://bugs.webkit.org/show_bug.cgi?id=30117
1886 If input methods are enabled Symbian FEP will be launched on every
1887 pointer event making webpage navigation impossible with QWebView.
1890 (QWebView::QWebView):
1892 2009-10-05 Holger Hans Peter Freyther <zecke@selfish.org>
1894 Reviewed by Simon Hausmann.
1896 QtLauncher: print the number of loaded urls
1898 When using the -r mode print the number of URLs loaded so far. This
1899 is extremly useful when opening the same URL over and over again and
1900 one wants to see the progress.
1902 * QtLauncher/main.cpp:
1903 (URLLoader::URLLoader):
1904 (URLLoader::loadNext):
1906 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
1908 Reviewed by Simon Hausmann.
1910 Add screenshot option to menubar
1912 https://bugs.webkit.org/show_bug.cgi?id=30067
1914 * QtLauncher/main.cpp:
1915 (MainWindow::screenshot):
1916 (MainWindow::setupUI):
1918 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
1920 Reviewed by Simon Hausmann.
1922 Setting the env QTLAUNCHER_USE_ARGB_VISUALS makes Qt use WA_TranslucentWindow.
1924 https://bugs.webkit.org/show_bug.cgi?id=30068
1926 * QtLauncher/main.cpp:
1927 (MainWindow::MainWindow):
1929 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
1931 Rubberstamped by Simon Hausmann.
1933 Add documentation to the ErrorPageExtension.
1937 2009-10-02 Yael Aharon <yael.aharon@nokia.com>
1939 Reviewed by Simon Hausmann.
1941 [Qt] Inform the application when a new request is created
1942 https://bugs.webkit.org/show_bug.cgi?id=29975
1944 Add a signal to QWebPage, to inform the application when a request is created.
1948 * tests/qwebpage/tst_qwebpage.cpp:
1949 (tst_QWebPage::loadFinished):
1951 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
1953 Reviewed by Simon Hausmann.
1955 ErrorPageExtension: Add a pointer to the QWebFrame that had
1959 * WebCoreSupport/FrameLoaderClientQt.cpp:
1960 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
1962 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
1964 Reviewed by Tor Arne Vestbø.
1966 Do not empty the offline web appcache when clearing
1967 memory caches. That one is not in memory, but stored
1970 * Api/qwebsettings.cpp:
1971 (QWebSettings::clearMemoryCaches):
1973 2009-10-05 J-P Nurmi <jpnurmi@gmail.com>
1975 Reviewed by Simon Hausmann.
1977 Added QGraphicsWidget-plugins support to FrameLoaderClientQt.
1979 https://bugs.webkit.org/show_bug.cgi?id=29710
1981 * Api/qgraphicswebview.cpp:
1982 (QGraphicsWebViewPrivate::pluginParent):
1984 (QWebViewPrivate::pluginParent):
1985 * WebCoreSupport/FrameLoaderClientQt.cpp:
1987 (WebCore::FrameLoaderClientQt::createPlugin):
1989 2009-10-03 Adam Barth <abarth@webkit.org>
1991 Unreview build fix. I wish I had a try server...
1994 (QWebPagePrivate::updateAction):
1996 2009-10-02 Norbert Leser <norbert.leser@nokia.com>
1998 Reviewed by Simon Hausmann.
2000 Conditionally guard cursor code (cursor and updateCursor functions) with !QT_NO_CURSOR.
2001 Otherwise, it is inconsistent with class declaration of QCursor.
2003 * Api/qgraphicswebview.cpp:
2006 2009-10-02 Prasanth Ullattil <prasanth.ullattil@nokia.com>
2008 Reviewed by Simon Hausmann.
2010 Fix compiler warnings about unused function arguments.
2012 * Api/qwebframe.cpp:
2013 (QWebFrame::scrollBarMinimum):
2015 (QWebPagePrivate::focusInEvent):
2016 (QWebPagePrivate::focusOutEvent):
2017 (QWebPagePrivate::leaveEvent):
2018 (QWebPage::javaScriptAlert):
2019 (QWebPage::javaScriptConfirm):
2020 (QWebPage::javaScriptPrompt):
2021 (QWebPage::triggerAction):
2022 (QWebPage::acceptNavigationRequest):
2023 (QWebPage::chooseFile):
2024 * WebCoreSupport/ChromeClientQt.cpp:
2025 (WebCore::ChromeClientQt::repaint):
2026 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2027 (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
2028 * WebCoreSupport/ContextMenuClientQt.cpp:
2029 (WebCore::ContextMenuClientQt::downloadURL):
2030 * WebCoreSupport/FrameLoaderClientQt.cpp:
2031 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2032 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
2033 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
2034 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
2035 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2036 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
2037 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2038 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
2039 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
2040 * WebCoreSupport/InspectorClientQt.cpp:
2041 (WebCore::InspectorClientQt::setAttachedWindowHeight):
2042 (WebCore::InspectorClientQt::highlight):
2043 (WebCore::InspectorClientQt::removeSetting):
2045 2009-10-01 Simon Hausmann <simon.hausmann@nokia.com>
2047 Reviewed by Tor Arne Vestbø.
2049 Make Software Input Panel requests work with QGraphicsWebView
2050 _and_ QWebView by sharing the event code in handleSoftwareInputPanel().
2053 (QWebPagePrivate::mouseReleaseEvent):
2054 (QWebPagePrivate::handleSoftwareInputPanel):
2057 2009-10-01 Alexis Menard <alexis.menard@nokia.com>
2059 Reviewed by Tor Arne Vestbø.
2061 Rename QWebGraphicsItem to QGraphicsWebView
2065 * Api/qwebgraphicsitem.cpp: Renamed.
2066 * Api/qwebgraphicsitem.h: Renamed.
2067 * WebKit/qt/QGVLauncher/main.cpp:
2069 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Renamed.
2070 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Renamed.
2072 2009-10-01 Antonio Gomes <tonikitoo@webkit.org>
2074 Reviewed by Simon Hausmann.
2076 https://bugs.webkit.org/show_bug.cgi?id=29248
2077 [Qt] [API] Make it possible to have 'invisible' loads
2079 Make QWebFrame's setHtml and setContent methods to not change
2080 session and global history at all.
2082 * Api/qwebframe.cpp:
2083 (QWebFrame::setHtml):
2084 (QWebFrame::setContent):
2085 * tests/qwebframe/qwebframe.pro:
2086 * tests/qwebframe/tst_qwebframe.cpp:
2088 2009-10-01 Kristian Amlie <kristian.amlie@nokia.com>
2090 Reviewed by Simon Hausmann.
2092 Fixed software input panel support on web input elements.
2094 Send the RequestSoftwareInputPanel event if the element supports focus
2095 and the element is clicked.
2098 (QWebPagePrivate::QWebPagePrivate):
2099 (QWebPagePrivate::mousePressEvent):
2100 (QWebPagePrivate::mouseReleaseEvent):
2103 2009-10-01 Joe Ligman <joseph.ligman@nokia.com>
2105 Reviewed by Simon Hausmann.
2107 Implementation for QWebPage::inputMethodQuery and QWebPagePrivate::inputMethodEvent
2109 https://bugs.webkit.org/show_bug.cgi?id=29681
2111 Some additional changes from Kristian Amlie <kristian.amlie@nokia.com>:
2113 * Fixed surrounding text to exclude preedit string
2114 * Avoid emission of microFocusChanged during setComposition()
2117 (QWebPagePrivate::inputMethodEvent):
2118 (QWebPage::inputMethodQuery):
2119 * WebCoreSupport/EditorClientQt.cpp:
2120 (WebCore::EditorClientQt::respondToChangedSelection):
2121 * tests/qwebpage/tst_qwebpage.cpp:
2122 (tst_QWebPage::inputMethods):
2124 2009-09-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
2126 Reviewed by David Hyatt.
2128 Add the failed URL to the ErrorPageExtension, as it is quite
2129 useful for creating error pages.
2132 * WebCoreSupport/FrameLoaderClientQt.cpp:
2133 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2135 2009-09-29 Andras Becsi <becsi.andras@stud.u-szeged.hu>
2137 Reviewed by Tor Arne Vestbø.
2139 [Qt] Default font size reconciliation to 16px/13px to match other platform's de-facto standard.
2140 This fixes https://bugs.webkit.org/show_bug.cgi?id=19674.
2142 * Api/qwebsettings.cpp:
2143 (QWebSettings::QWebSettings):
2145 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2147 Reviewed by Simon Hausmann.
2149 https://bugs.webkit.org/show_bug.cgi?id=29844
2151 QWebPage dependency autotest fix.
2153 Fix for database() autotest. All opened databases should be removed at
2156 * tests/qwebpage/tst_qwebpage.cpp:
2157 (tst_QWebPage::database):
2159 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2161 Reviewed by Simon Hausmann.
2163 Some QWebHistory and QWebPage autotest crash fixes.
2165 Some checking for m_mainFrame were added. MainFrame should be created
2166 at some point of QWebPage live cicle.
2168 https://bugs.webkit.org/show_bug.cgi?id=29803
2171 (QWebPage::~QWebPage):
2172 (QWebPage::currentFrame):
2173 (QWebPage::history):
2174 (QWebPage::selectedText):
2175 (QWebPage::updatePositionDependentActions):
2176 * tests/qwebpage/tst_qwebpage.cpp:
2177 (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
2179 2009-09-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
2181 Reviewed by Simon Hausmann and Tor Arne Vestbø.
2183 Implement QWebPage Extension for error pages, incl.
2184 an example on how to use it in QtLauncher.
2186 Correct our use of ResourceError.
2189 (ExtensionOption::):
2190 (ExtensionOption::ErrorPageExtensionReturn::ErrorPageExtensionReturn):
2191 * QtLauncher/main.cpp:
2192 (WebPage::supportsExtension):
2193 (MainWindow::MainWindow):
2194 (MainWindow::selectElements):
2195 (WebPage::extension):
2196 * WebCoreSupport/FrameLoaderClientQt.cpp:
2197 (WebCore::FrameLoaderClientQt::cancelledError):
2198 (WebCore::FrameLoaderClientQt::blockedError):
2199 (WebCore::FrameLoaderClientQt::cannotShowURLError):
2200 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2201 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2202 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2203 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2204 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
2205 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
2206 * WebCoreSupport/FrameLoaderClientQt.h:
2208 2009-09-28 Andre Poenitz <andre.poenitz@trolltech.com>
2210 Reviewed by Simon Hausmann.
2212 Compile fix with namespaced Qt.
2214 * Api/qwebinspector_p.h:
2216 2009-09-27 Joe Ligman <joseph.ligman@mindspring.com>
2218 Reviewed by Simon Hausmann.
2220 [Qt] Adding API setFocus and hasFocus to QWebElement. This API is needed for
2221 clients that want to check/set the focus node of the document.
2222 https://bugs.webkit.org/show_bug.cgi?id=29682
2224 * Api/qwebelement.cpp:
2225 (QWebElement::hasFocus):
2226 (QWebElement::setFocus):
2227 * Api/qwebelement.h:
2228 * tests/qwebelement/tst_qwebelement.cpp:
2229 (tst_QWebElement::hasSetFocus):
2231 2009-09-25 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
2233 Reviewed by Simon Hausmann.
2235 [Qt] Make tst_qwebframe work if Qt built without SSL support
2236 https://bugs.webkit.org/show_bug.cgi?id=29735
2238 * tests/qwebframe/tst_qwebframe.cpp: Missing #ifndef blocks added.
2240 2009-09-24 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2242 Reviewed by Simon Hausmann.
2244 [Qt] Update QWebElement API to remove script related methods.
2245 QWebElement::evaluateScript is the only one kept, these are
2246 removed to postpone most of the QtWebKit<->JavaScript API design
2248 https://bugs.webkit.org/show_bug.cgi?id=29708
2250 * Api/qwebelement.cpp:
2251 * Api/qwebelement.h:
2253 - QWebElement::callFunction
2254 - QWebElement::functions
2255 - QWebElement::scriptableProperty
2256 - QWebElement::setScriptableProperty
2257 - QWebElement::scriptableProperties
2258 * tests/qwebelement/tst_qwebelement.cpp:
2259 (tst_QWebElement::evaluateScript):
2261 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2263 Reviewed by Simon Hausmann.
2265 [Qt] Rename QWebElement::evaluateScript
2266 to QWebElement::evaluateJavaScript.
2267 https://bugs.webkit.org/show_bug.cgi?id=29709
2269 * Api/qwebelement.cpp:
2270 (QWebElement::evaluateJavaScript):
2271 * Api/qwebelement.h:
2272 * tests/qwebelement/tst_qwebelement.cpp:
2273 (tst_QWebElement::evaluateJavaScript):
2275 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2277 Reviewed by Simon Hausmann.
2279 [Qt] Update the stypeProperty API of QWebElement.
2280 https://bugs.webkit.org/show_bug.cgi?id=29711
2282 * Api/qwebelement.cpp:
2283 (QWebElement::styleProperty):
2284 - Merge the stypeProperty and the computedStyleProperty methods
2285 - Remove the default value for the style resolving enum
2286 - Rename ResolveRule to StyleResolveStrategy
2287 (QWebElement::setStyleProperty):
2288 - Remove the priority argument since it is possible to control the
2289 behaviour by adding !important or removing in the value.
2290 * Api/qwebelement.h:
2291 * tests/qwebelement/tst_qwebelement.cpp:
2292 (tst_QWebElement::style):
2293 (tst_QWebElement::computedStyle):
2294 * tests/qwebframe/tst_qwebframe.cpp:
2296 2009-09-24 Jon Honeycutt <jhoneycutt@apple.com>
2298 Reviewed by Alice Liu.
2301 (QWebPagePrivate::QWebPagePrivate):
2302 Pass 0 for new Page constructor argument.
2304 2009-09-24 Martin Smith <msmith@trolltech.com>
2306 Reviewed by Simon Hausmann.
2308 qdoc: Added \brief texts to all the since 4.6 functions.
2310 * Api/qwebhistory.cpp:
2312 2009-09-23 J-P Nurmi <jpnurmi@gmail.com>
2314 Reviewed by Simon Hausmann.
2316 Prevent QWebPage::setView() from changing the viewport size on the fly
2317 in case the view doesn't actually change. QWebPage::setView() is
2318 called upon every QWebGraphicsItem::hoverMoveEvent(), which forced
2319 the viewport size to be equal to the size of the whole graphics view.
2321 https://bugs.webkit.org/show_bug.cgi?id=29676
2324 (QWebPage::setView):
2326 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2328 Reviewed by Simon Hausmann.
2330 [Qt] Crash fix in QWebHistory back and forward methods.
2332 QWebHistory::back() and QWebHistory::forward() were crashing on
2333 ASSERT in WebCore::BackForwardList. The methods should check
2334 canGoBack() and canGoForward() at the beginning.
2336 https://bugs.webkit.org/show_bug.cgi?id=29675
2338 * Api/qwebhistory.cpp:
2339 (QWebHistory::back):
2340 (QWebHistory::forward):
2342 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2344 Reviewed by Simon Hausmann.
2346 [Qt] Bug fix. QWebHistory should call QWebPage::updateNavigationActions
2348 In QWebHistory's methods that change item count or current item call
2349 to QWebPage::updateNavigationActions should be executed.
2350 QWebHistory::clear() and QWebHistory::restorState() were changed.
2351 New helper method, QWebPagePrivate accesor, were created in
2352 QWebHistoryPrivate class.
2353 Two autotest were developed.
2355 https://bugs.webkit.org/show_bug.cgi?id=29246
2357 * Api/qwebhistory.cpp:
2358 (QWebHistory::clear):
2359 (QWebHistory::restoreState):
2360 (QWebHistoryPrivate::page):
2361 * Api/qwebhistory_p.h:
2362 * tests/qwebhistory/tst_qwebhistory.cpp:
2363 (tst_QWebHistory::saveAndRestore_1):
2364 (tst_QWebHistory::clear):
2366 2009-09-23 Norbert Leser <norbert.leser@nokia.com>
2368 Reviewed by Tor Arne Vestbø.
2370 Need to guard QX11Info include with Q_WS_X11.
2371 That class may not be available (in QT 4.5 for Symbian, for instance).
2372 Completes fixes in r48627 and r48604.
2374 * Api/qwebgraphicsitem.cpp:
2377 2009-09-22 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2379 Reviewed by Simon Hausmann.
2381 [Qt] Add default timeout while waiting for signals in QWebPage auto
2383 https://bugs.webkit.org/show_bug.cgi?id=29637
2385 * tests/qwebpage/tst_qwebpage.cpp:
2388 2009-09-22 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2390 Reivewed by Simon Hausmann.
2392 Fix the Qt/Mac build after r48604 (Implement new QWebPageClient class)
2394 There's no QWidget::x11Info() on Mac, and setPlatformPluginWidget()
2395 takes a QWidget*, not a QWebPageClient*
2397 * Api/qwebgraphicsitem.cpp:
2398 (QWebGraphicsItemPrivate::screenNumber):
2400 (QWebViewPrivate::screenNumber):
2402 2009-09-21 Kenneth Rohde Christiansen <kenneth@webkit.org>
2404 Reviewed by Simon Hausmann.
2406 For Qt, platformPageClient() will now return a class derived from
2407 the QWebPageClient, so the patch adapts our Qt hooks to go though
2408 this class and not depend on the QWebView.
2410 * Api/qwebgraphicsitem.cpp:
2411 (QWebGraphicsItemPrivate::scroll):
2412 (QWebGraphicsItemPrivate::update):
2413 (QWebGraphicsItemPrivate::cursor):
2414 (QWebGraphicsItemPrivate::updateCursor):
2415 (QWebGraphicsItemPrivate::screenNumber):
2416 (QWebGraphicsItemPrivate::winId):
2417 (QWebGraphicsItem::event):
2418 (QWebGraphicsItem::setPage):
2419 * Api/qwebgraphicsitem.h:
2421 (QWebPagePrivate::QWebPagePrivate):
2424 (QWebViewPrivate::scroll):
2425 (QWebViewPrivate::update):
2426 (QWebViewPrivate::cursor):
2427 (QWebViewPrivate::updateCursor):
2428 (QWebViewPrivate::screenNumber):
2429 (QWebViewPrivate::winId):
2430 (QWebView::setPage):
2432 * WebCoreSupport/ChromeClientQt.cpp:
2433 (WebCore::ChromeClientQt::repaint):
2434 (WebCore::ChromeClientQt::scroll):
2435 (WebCore::ChromeClientQt::platformPageClient):
2437 2009-09-21 Yael Aharon <yael.aharon@nokia.com>
2439 Reviewed by Simon Hausmann.
2441 https://bugs.webkit.org/show_bug.cgi?id=29609
2442 Build fix for windows when using Qt 4.5.0.
2445 (QWebPage::userAgentForUrl):
2447 2009-09-19 Benjamin Poulain <benjamin.poulain@nokia.com>
2449 Reviewed by Simon Hausmann.
2451 https://bugs.webkit.org/show_bug.cgi?id=29345
2452 The tests of QWebFrame did not use QTRY_VERIFY for
2453 tests involving the event loop.
2455 * tests/qwebframe/tst_qwebframe.cpp:
2456 * tests/util.h: Added. Copy of tests/shared/util.h of Qt
2458 2009-09-19 Jakub Wieczorek <faw217@gmail.com>
2460 Reviewed by Simon Hausmann.
2462 [Qt] Add an autotest stub for QWebGraphicsItem.
2464 It just calls all the functions and makes sure they don't crash.
2466 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Added.
2467 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Added.
2468 (tst_QWebGraphicsItem::qwebgraphicsitem):
2471 2009-09-18 Norbert Leser <norbert.leser@nokia.com>
2473 Reviewed by Eric Seidel.
2475 Corrected the Symbian specific UID3 values to be assigned
2476 from the "unprotected" pool that permits self-signing of
2477 those test and demo executables. (Added new UID3 values
2478 where they were missing for new components.)
2480 * QGVLauncher/QGVLauncher.pro:
2481 * QtLauncher/QtLauncher.pro:
2482 * tests/benchmarks/loading/tst_loading.pro:
2483 * tests/benchmarks/painting/tst_painting.pro:
2484 * tests/qwebelement/qwebelement.pro:
2485 * tests/qwebframe/qwebframe.pro:
2486 * tests/qwebhistory/qwebhistory.pro:
2487 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
2488 * tests/qwebpage/qwebpage.pro:
2489 * tests/qwebplugindatabase/qwebplugindatabase.pro:
2490 * tests/qwebview/qwebview.pro:
2492 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2494 Reviewed by Simon Hausmann.
2496 Make PlatformWindow return something else than PlatformWidget
2497 https://bugs.webkit.org/show_bug.cgi?id=29085
2499 Reflect the rename of platformWindow and it's return type.
2501 * WebCoreSupport/ChromeClientQt.cpp:
2502 (WebCore::ChromeClientQt::platformPageClient):
2503 * WebCoreSupport/ChromeClientQt.h:
2505 2009-09-18 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2507 Reviewed by Simon Hausmann.
2509 [Qt] Add persistence support for configuration options in the
2512 * Api/qwebinspector.cpp:
2513 * QtLauncher/main.cpp:
2515 * WebCoreSupport/InspectorClientQt.cpp:
2516 (WebCore::InspectorClientQt::populateSetting):
2517 (WebCore::InspectorClientQt::storeSetting):
2518 (WebCore::variantToSetting):
2519 (WebCore::settingToVariant):
2521 2009-09-18 Simon Hausmann <simon.hausmann@nokia.com>
2523 Reviewed by Ariya Hidayat.
2525 Fixed a bunch of documentation warnings.
2527 * Api/qwebgraphicsitem.cpp:
2528 * Api/qwebplugindatabase.cpp:
2529 * Api/qwebpluginfactory.cpp:
2530 * Api/qwebsecurityorigin.cpp:
2532 2009-09-18 Warwick Allison <warwick.allison@nokia.com>
2534 Reviewed by Simon Hausmann.
2536 Added a test that console output works.
2538 * tests/qwebpage/tst_qwebpage.cpp:
2539 (ConsolePage::ConsolePage):
2540 (ConsolePage::javaScriptConsoleMessage):
2541 (tst_QWebPage::consoleOutput):
2543 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2545 Reviewed by Simon Hausmann.
2547 Improve documentation for Page Cache.
2549 * Api/qwebsettings.cpp:
2551 2009-09-17 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2553 Reviewed by Simon Hausmann.
2555 [Qt] Update QWebSettings::setUserStyleSheetUrl() docs and test
2557 https://bugs.webkit.org/show_bug.cgi?id=29081
2559 The documentation now specifies that the URL has to be a local file
2560 or a a data-URL (with utf-8 and base64-encoded data), as these are the
2561 only two schemes that the current code path accepts.
2563 The auto-test has been updated to reflect this limitation.
2565 At a later point we should concider adding API for the new way of
2566 doing both user defined stylesheets and scripts.
2568 * Api/qwebsettings.cpp:
2569 * tests/qwebpage/tst_qwebpage.cpp:
2571 2009-09-17 Janne Koskinen <janne.p.koskinen@digia.com>
2573 Reviewed by Simon Hausmann.
2577 Moved the #ifdefs around _q_cleanupLeakMessages() into the function
2580 QMake is not being able to distinguish between release and debug builds
2581 in Symbian build. This is a Symbian toolchain issue.
2584 (QWebPagePrivate::_q_cleanupLeakMessages):
2588 2009-09-17 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2590 Reviewed by Simon Hausmann.
2592 Small cosmetic documentation fixlet in the QWebInspector.
2594 * Api/qwebinspector.cpp:
2596 2009-09-16 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
2598 Reviewed by Eric Seidel.
2600 Detect and add Windows7 properly to the user agent.
2603 (QWebPage::userAgentForUrl):
2605 2009-09-16 Andras Becsi <andrewbecsi@yahoo.co.uk>
2607 Rubberstamped by Kenneth Christiansen.
2609 [Qt] Build fix for previous changes.
2611 * QGVLauncher/main.cpp:
2614 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
2616 Unreviewed potential Qt < 4.6 build fix.
2618 * QGVLauncher/main.cpp:
2621 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
2623 Reviewed by Simon Hausmann.
2625 Add a "Flip effect" to our GraphicsView based launcher.
2627 * QGVLauncher/main.cpp:
2628 (MainView::resizeEvent):
2631 (MainWindow::buildUI):
2633 2009-09-16 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>
2635 Rubber-stamped by Simon Hausmann.
2637 [Qt] Typo fix. Pass the window object to the Format
2638 menu. In this way Qt can free its internal graphical
2639 objects during exit.
2641 * QtLauncher/main.cpp:
2642 (MainWindow::setupUI):
2644 2009-09-16 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2646 Reviewed by Tor Arne Vestbø.
2648 [Qt] Build break fix on gcc ARM.
2650 * Api/qwebgraphicsitem.cpp:
2651 (QWebGraphicsItemPrivate::_q_doLoadProgress):
2653 2009-09-16 Warwick Allison <warwick.allison@nokia.com>
2655 Reviewed by Simon Hausmann.
2657 Fix a crash in QWebFrame::hasFocus() with a simple null pointer check
2658 when the focused frame is null. We do the same check in other places
2659 where we call kit().
2661 * Api/qwebframe.cpp:
2662 (QWebFrame::hasFocus):
2664 2009-09-16 Jure Repinc <jlp@holodeck1.com>
2666 Reviewed by Simon Hausmann.
2668 Fixed a typo found during translation.
2670 * WebCoreSupport/FrameLoaderClientQt.cpp:
2671 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2673 2009-09-14 Jakub Wieczorek <faw217@gmail.com>
2675 Reviewed by Simon Hausmann.
2677 [Qt] QWebGraphicsItem should check for null QWebPage.
2678 https://bugs.webkit.org/show_bug.cgi?id=29185
2680 Don't crash in QWebGraphicsItem when the page is still null, by
2681 either checking if it's the case or constructing the default one.
2683 * Api/qwebgraphicsitem.cpp:
2684 (QWebGraphicsItem::icon):
2685 (QWebGraphicsItem::setZoomFactor):
2686 (QWebGraphicsItem::zoomFactor):
2687 (QWebGraphicsItem::setGeometry):
2688 (QWebGraphicsItem::load):
2689 (QWebGraphicsItem::setHtml):
2690 (QWebGraphicsItem::toHtml):
2691 (QWebGraphicsItem::setContent):
2692 (QWebGraphicsItem::history):
2693 (QWebGraphicsItem::settings):
2695 2009-09-11 David Boddie <dboddie@trolltech.com>
2697 Reviewed by Simon Hausmann.
2699 Doc: Note that Netscape plugins are only available on desktop platforms.
2701 * docs/qtwebkit.qdoc:
2703 2009-09-11 Martin Smith <msmith@trolltech.com>
2705 Reviewed by Simon Hausmann.
2707 Adjust the name of the contentspage for the documentation
2708 to the new name used in Qt 4.6.
2710 * docs/qtwebkit.qdoc:
2712 2009-09-11 Ariya Hidayat <ariya.hidayat@nokia.com>
2714 Reviewed by Simon Hausmann.
2716 Changed URLs from qtsoftware.com to qt.nokia.com, as part of a general
2719 * Api/qwebpluginfactory.cpp:
2720 * docs/webkitsnippets/simple/main.cpp:
2722 * docs/webkitsnippets/webpage/main.cpp:
2725 2009-09-11 Volker Hilsheimer <volker.hilsheimer@nokia.com>
2727 Reviewed by Simon Hausmann.
2729 Restructure the documentation, both on a file and on a content level.
2731 * Api/qwebdatabase.cpp:
2732 * Api/qwebelement.cpp:
2733 * Api/qwebframe.cpp:
2734 * Api/qwebhistory.cpp:
2735 * Api/qwebhistoryinterface.cpp:
2737 * Api/qwebpluginfactory.cpp:
2738 * Api/qwebsecurityorigin.cpp:
2739 * Api/qwebsettings.cpp:
2741 * docs/qtwebkit.qdoc:
2743 2009-09-11 Yongjun Zhang <yongjun.zhang@nokia.com>
2745 Reviewed by Simon Hausmann.
2747 https://bugs.webkit.org/show_bug.cgi?id=29136
2748 [Qt] emit microFocusChanged() signal when no QWidget-based view is present.
2750 emit microFocusChange() signal regardless of view.
2752 * WebCoreSupport/EditorClientQt.cpp:
2753 (WebCore::EditorClientQt::setInputMethodState):
2755 2009-09-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2757 Reviewed by Simon Hausmann.
2759 https://bugs.webkit.org/show_bug.cgi?id=28806
2761 [Qt] Make the WebInspector available as a QWidget.
2764 * Api/qwebelement.cpp:
2765 (QWebElement::enclosingElement):
2766 * Api/qwebelement.h:
2767 * Api/qwebinspector.cpp: Added.
2768 * Api/qwebinspector.h: Added.
2769 * Api/qwebinspector_p.h: Added.
2771 (QWebPagePrivate::QWebPagePrivate):
2772 (QWebPagePrivate::setInspector):
2773 (QWebPagePrivate::getOrCreateInspector):
2774 (QWebPagePrivate::inspectorController):
2775 (QWebPage::~QWebPage):
2776 (QWebPage::triggerAction):
2779 * Api/qwebsettings.cpp:
2780 * QtLauncher/main.cpp:
2781 (MainWindow::MainWindow):
2782 * WebCoreSupport/InspectorClientQt.cpp:
2783 (WebCore::InspectorClientWebPage::InspectorClientWebPage):
2784 (WebCore::InspectorClientWebPage::createWindow):
2785 (WebCore::InspectorClientQt::createPage):
2786 (WebCore::InspectorClientQt::showWindow):
2787 (WebCore::InspectorClientQt::closeWindow):
2788 (WebCore::InspectorClientQt::attachWindow):
2789 (WebCore::InspectorClientQt::detachWindow):
2790 (WebCore::InspectorClientQt::updateWindowTitle):
2791 * WebCoreSupport/InspectorClientQt.h:
2792 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp: Added.
2794 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2796 Reviewed by Eric Seidel.
2798 [Qt] Fix comparison between signed and unsigned integer warnings
2799 https://bugs.webkit.org/show_bug.cgi?id=29162
2801 No functional change.
2803 * Api/qwebelement.cpp:
2804 (QWebElement::findAll):
2805 * Api/qwebhistory.cpp:
2806 (QWebHistory::items):
2807 (QWebHistory::backItems):
2808 (QWebHistory::forwardItems):
2809 (QWebHistory::saveState):
2810 * Api/qwebplugindatabase.cpp:
2811 (QWebPluginDatabase::setSearchPaths):
2812 * WebCoreSupport/ChromeClientQt.cpp:
2813 (WebCore::ChromeClientQt::runOpenPanel):
2814 * WebCoreSupport/FrameLoaderClientQt.cpp:
2815 (WebCore::FrameLoaderClientQt::createPlugin):
2817 2009-09-10 Simon Hausmann <hausmann@webkit.org>
2819 Rubber-stamped by Ariya Hidayat.
2821 Fix a bunch of qdoc warnings: Invalid references, non-standard
2824 * Api/qwebelement.cpp:
2825 * Api/qwebgraphicsitem.cpp:
2826 * Api/qwebsecurityorigin.cpp:
2828 2009-09-10 Simon Hausmann <hausmann@webkit.org>
2830 Reviewed by Ariya Hidayat.
2832 Fix context menu event delivery with QWebGraphicsItem.
2834 Re-implement the correct context menu virtual function using
2835 a QGraphicsSceneContextMenuEvent and forward & handle it in
2838 * Api/qwebgraphicsitem.cpp:
2839 (QWebGraphicsItem::contextMenuEvent):
2840 * Api/qwebgraphicsitem.h:
2842 (QWebPagePrivate::contextMenuEvent):
2846 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2850 Build fix for QtWebKit for Mac after r48219.
2852 qevent and qstyleoption are QtGui interfaces.
2854 * Api/qwebgraphicsitem.cpp:
2855 * Api/qwebgraphicsitem.h:
2857 2009-09-09 Simon Hausmann <hausmann@webkit.org>
2859 Reviewed by Tor Arne Vestbø.
2861 Call the right base class function QGraphicsWidget::event() instead
2862 of skipping it and using QObject::event() instead.
2864 * Api/qwebgraphicsitem.cpp:
2865 (QWebGraphicsItem::event):
2867 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
2871 Fix comment at Tor Arne Vestbø's request.
2873 * Api/qwebgraphicsitem.cpp:
2874 (QWebGraphicsItem::sceneEvent):
2875 (QWebGraphicsItem::event):
2877 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
2879 Reviewed by Tor Arne Vestbø.
2881 Implement some virtual event methods so that we can fix
2882 event-related bugs in Qt patch releases.
2884 * Api/qwebgraphicsitem.cpp:
2885 (QWebGraphicsItem::sceneEvent):
2886 (QWebGraphicsItem::event):
2887 * Api/qwebgraphicsitem.h:
2889 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>, Antonio Gomes <antonio.gomes@openbossa.org>
2891 Reviewed by Simon Hausmann.
2893 Add a new QGraphicsWidget based version of the "QWebView"
2894 under the name "QWebGraphicsItem".
2896 https://bugs.webkit.org/show_bug.cgi?id=28862
2898 Includes an alternative Qt launcher using the QGraphicsView.
2901 * Api/qwebgraphicsitem.cpp: Added.
2902 * Api/qwebgraphicsitem.h: Added.
2904 * QGVLauncher/QGVLauncher.pro: Copied from WebKit/qt/QtLauncher/QtLauncher.pro.
2905 * QGVLauncher/main.cpp: Added.
2906 * WebCoreSupport/ChromeClientQt.cpp:
2907 (WebCore::ChromeClientQt::repaint):
2908 (WebCore::ChromeClientQt::scroll):
2910 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
2912 Unreviewed build fix.
2914 Potential build fix for Qt 4.5
2917 (QWebPagePrivate::mousePressEvent):
2919 2009-09-08 Benjamin Poulain <benjamin.poulain@nokia.com>
2921 Reviewed by Simon Hausmann.
2923 https://bugs.webkit.org/show_bug.cgi?id=29007
2924 Add a test for the signal QWebFrame::javaScriptWindowObjectCleared()
2926 * tests/qwebframe/tst_qwebframe.cpp:
2928 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2930 Reviewed by Simon Hausmann.
2932 [Qt] Fix unused variable warnings
2933 https://bugs.webkit.org/show_bug.cgi?id=29018
2936 (QWebPagePrivate::keyPressEvent):
2937 * WebCoreSupport/FrameLoaderClientQt.cpp:
2938 (WebCore::FrameLoaderClientQt::startDownload):
2939 (WebCore::FrameLoaderClientQt::createFrame):
2941 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2943 Reviewed by Ariya Hidayat.
2945 [Qt] Use the declaration order in initializer lists
2946 https://bugs.webkit.org/show_bug.cgi?id=29017
2948 * Api/qwebframe_p.h:
2950 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
2952 Reviewed by Simon Hausmann.
2954 Add support for handling QGraphicsScene events.
2957 (QWebPagePrivate::mouseMoveEvent):
2958 (QWebPagePrivate::mousePressEvent):
2959 (QWebPagePrivate::mouseDoubleClickEvent):
2960 (QWebPagePrivate::mouseTripleClickEvent):
2961 (QWebPagePrivate::handleClipboard):
2962 (QWebPagePrivate::mouseReleaseEvent):
2963 (QWebPagePrivate::wheelEvent):
2964 (QWebPagePrivate::dragEnterEvent):
2965 (QWebPagePrivate::dragLeaveEvent):
2966 (QWebPagePrivate::dragMoveEvent):
2967 (QWebPagePrivate::dropEvent):
2971 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
2973 Reviewed by Simon Hausmann.
2975 [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
2976 https://bugs.webkit.org/show_bug.cgi?id=28865
2978 Clean up the unserCursor hack to use the QCursor set
2979 as a property of the QWidget by WebCore::WidgetQt.
2981 Remove all code that are no longer necessary for getting
2982 cursor change events.
2984 Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
2985 Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07
2990 (QWebViewPrivate::QWebViewPrivate):
2993 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
2995 Reviewed by Simon Hausmann.
2997 [Qt] QtWebKit single API to enable persistency
2998 https://bugs.webkit.org/show_bug.cgi?id=28682
3000 Disable LocalStorage, ApplicationCache, HTML5 offline storage by
3003 If persistency is enabled the default directory for LocalStorage and
3004 ApplicationCache is now based on QDesktopServices::DataLocation and not
3005 QDesktopServices::CacheLocation (as it is expected to keep this data
3006 around after a reboot).
3008 If persistency is enabled initialize HTML5 offline storage as well - this
3009 fixed offline Storage for QtLauncher.
3012 (QWebPagePrivate::QWebPagePrivate):
3013 * Api/qwebsettings.cpp:
3014 (QWebSettings::QWebSettings):
3015 (QWebSettings::enablePersistentStorage):
3016 * Api/qwebsettings.h: Add a new API called enablePersistentStorage
3017 * QtLauncher/main.cpp: Use the new enablePersistentStorage API
3020 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3022 Reviewed by Simon Hausmann.
3024 Speed up the QWebPluginInfo::supportsMimeType() function.
3025 https://bugs.webkit.org/show_bug.cgi?id=27651
3027 Instead of going through the MIME types list constructed with
3028 mimeTypes() function, look up the internal mimeToDescriptions map.
3030 * Api/qwebplugindatabase.cpp:
3031 (QWebPluginInfo::supportsMimeType):
3033 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3035 Reviewed by Simon Hausmann.
3037 Speed up the QWebPluginInfo::mimeTypes() function.
3038 https://bugs.webkit.org/show_bug.cgi?id=27651
3040 Instead of constructing a list of MIME types every time it is called,
3043 * Api/qwebplugindatabase.cpp:
3044 (QWebPluginInfo::mimeTypes):
3045 (QWebPluginInfo::operator=):
3046 * Api/qwebplugindatabase.h:
3047 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
3048 (tst_QWebPluginDatabase::operatorassign_data):
3049 (tst_QWebPluginDatabase::operatorassign):
3051 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3053 Reviewed by Simon Hausmann.
3055 Remove the private classes from QWebPluginDatabase.
3056 https://bugs.webkit.org/show_bug.cgi?id=27651
3058 Instead, hold the PluginDatabase and PluginPackage objects as class
3059 members and take care of refcounting on our own instead of using RefPtr.
3061 This way we not only made the code cleaner but also got rid of
3062 redundant allocations when constructing null QWebPluginInfo objects.
3064 The private classes have been forward-declared and the d-pointers left
3065 to be on the safe side.
3067 * Api/qwebplugindatabase.cpp:
3068 (QWebPluginInfo::QWebPluginInfo):
3069 (QWebPluginInfo::~QWebPluginInfo):
3070 (QWebPluginInfo::name):
3071 (QWebPluginInfo::description):
3072 (QWebPluginInfo::mimeTypes):
3073 (QWebPluginInfo::path):
3074 (QWebPluginInfo::isNull):
3075 (QWebPluginInfo::setEnabled):
3076 (QWebPluginInfo::isEnabled):
3077 (QWebPluginInfo::operator==):
3078 (QWebPluginInfo::operator!=):
3079 (QWebPluginInfo::operator=):
3080 (QWebPluginDatabase::QWebPluginDatabase):
3081 (QWebPluginDatabase::~QWebPluginDatabase):
3082 (QWebPluginDatabase::plugins):
3083 (QWebPluginDatabase::searchPaths):
3084 (QWebPluginDatabase::setSearchPaths):
3085 (QWebPluginDatabase::addSearchPath):
3086 (QWebPluginDatabase::refresh):
3087 (QWebPluginDatabase::pluginForMimeType):
3088 (QWebPluginDatabase::setPreferredPluginForMimeType):
3089 * Api/qwebplugindatabase.h:
3090 * Api/qwebplugindatabase_p.h: Removed.
3092 2009-09-05 Jakub Wieczorek <faw217@gmail.com>
3094 Reviewed by Eric Seidel.
3096 [Qt] r47424 broke binary compatibility
3097 https://bugs.webkit.org/show_bug.cgi?id=28996
3099 Append the new DnsPrefetchEnabled attribute at the end of the enum.
3101 * Api/qwebsettings.h:
3103 2009-09-04 Mark Mentovai <mark@chromium.org>
3105 Reviewed by Dave Hyatt.
3107 https://bugs.webkit.org/show_bug.cgi?id=28614
3109 Account for scrollbar state changes that occur during layout.
3111 * Api/qwebframe.cpp:
3112 (QWebFrame::setScrollBarPolicy):
3114 Eliminate duplicated (and incorrect) scrollbar mode tracking between
3115 FrameView and ScrollView.
3117 2009-09-04 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3119 Reviewed by Eric Seidel.
3121 [Qt] Fix tst_QWebPage::database autotest failure
3122 https://bugs.webkit.org/show_bug.cgi?id=28961
3124 Make sure that the test case enables the feature before
3125 the feature gets tested
3127 * tests/qwebpage/tst_qwebpage.cpp:
3128 (tst_QWebPage::database):
3130 2009-09-04 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
3132 Reviewed by Eric Seidel.
3134 Any QtWebKit application crashes on exit if the inspector is
3135 used during the session rather then exiting.
3137 If a QWebView has a QWebPage that is destroyed the QWebView
3138 does not update its pointer and will crash the next time
3139 it access the page pointers (such as in its destructor).
3141 InspectorClientView should not call deleteLater when the page
3142 is destroyed because it does not have a parent and is a top
3143 level widget. close() needs to be called so that QApplication
3144 can exit the application if quitOnLastWindowClosed is set
3145 and a InspectorClientView is the last window, otherwise
3146 the application will never exit.
3149 (QWebViewPrivate::_q_pageDestroyed):
3150 (QWebView::setPage):
3152 * WebCoreSupport/InspectorClientQt.cpp:
3153 (WebCore::InspectorClientView::InspectorClientView):
3155 2009-09-03 Adam Barth <abarth@webkit.org>
3157 Reviewed by eric@webkit.org.
3159 https://bugs.webkit.org/show_bug.cgi?id=24696
3161 Stub implementations of mixed content methods of FrameLoaderClient.
3163 * WebCoreSupport/FrameLoaderClientQt.cpp:
3164 (WebCore::FrameLoaderClientQt::didDisplayInsecureContent):
3165 (WebCore::FrameLoaderClientQt::didRunInsecureContent):
3166 * WebCoreSupport/FrameLoaderClientQt.h:
3168 2009-09-03 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3170 Reviewed by Eric Seidel.
3172 [Qt] Add a setting to turn SessionStorage on/off
3173 https://bugs.webkit.org/show_bug.cgi?id=28836
3175 * Api/qwebsettings.cpp:
3176 (QWebSettingsPrivate::apply):
3177 (QWebSettings::QWebSettings):
3178 * Api/qwebsettings.h:
3179 * tests/qwebpage/tst_qwebpage.cpp:
3181 (tst_QWebPage::testOptionalJSObjects):
3183 2009-09-02 Richard Moore <rich@kde.org>
3185 Reviewed by Tor Arne Vestbø.
3187 [Qt] Make sure we relayout the page after evaluating JS
3189 https://bugs.webkit.org/show_bug.cgi?id=28235
3191 QtWebKit does not always seem to reflow the page when evaluating
3192 javascript. This patch changes the way evaluateJavaScript works to
3193 use the frameloader which ensures that this is done properly.
3195 * Api/qwebframe.cpp:
3196 (QWebFrame::evaluateJavaScript):
3197 * tests/qwebframe/tst_qwebframe.cpp:
3199 2009-08-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3201 Reviewed by Holger Freyther.
3203 https://bugs.webkit.org/show_bug.cgi?id=25889
3204 [GTK] scrollbar policy for main frame is not implementable
3206 Add empty implementation for new ChromeClient method.
3208 * WebCoreSupport/ChromeClientQt.h:
3209 (WebCore::ChromeClientQt::scrollbarsModeDidChange):
3211 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3213 Reviewed by Ariya Hidayat.
3215 QWebHistory::clear() modifications.
3217 Clear() method was changed. If QWebHistory is empty (there is no
3218 elements even current) clear() do nothing. If there at least one
3219 element clear() will delete everything apart of current.
3221 New autotests in QWebHistory
3223 New autotests were added to QWebHistory. They should check some crashes
3224 in save and restore state process and clear() method and general
3225 behavior on where QWebHistory::count() == 0 or QWebHistory::count() == 1
3227 Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=28711
3229 * Api/qwebhistory.cpp:
3230 (QWebHistory::clear):
3231 * tests/qwebhistory/tst_qwebhistory.cpp:
3232 (tst_QWebHistory::back):
3233 (tst_QWebHistory::forward):
3234 (tst_QWebHistory::saveAndRestore_crash_1):
3235 (tst_QWebHistory::saveAndRestore_crash_2):
3236 (tst_QWebHistory::saveAndRestore_crash_3):
3237 (tst_QWebHistory::clear):
3239 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3241 Reviewed by Ariya Hidayat.
3243 [Qt] Cleanup, old and commented part of source code was removed.
3244 Fix some formatting problems.
3246 https://bugs.webkit.org/show_bug.cgi?id=28712
3248 * Api/qwebhistory_p.h:
3249 (QWebHistoryPrivate::QWebHistoryPrivate):
3251 2009-08-26 Adam Barth <abarth@webkit.org>
3253 Reviewed by Oliver Hunt.
3255 Don't let local files access web URLs
3256 https://bugs.webkit.org/show_bug.cgi?id=28480
3258 * Api/qwebsettings.cpp:
3259 (QWebSettings::QWebSettings):
3261 2009-08-25 Antonio Gomes <antonio.gomes@openbossa.org>
3263 Reviewed by Ariya Hidayat.
3265 Bug 28708 - Make possible to better use ResourceError in FrameLoaderClientQt class.
3267 * Api/qwebframe.cpp:
3268 (QWebFrame::requestedUrl):
3269 * WebCoreSupport/FrameLoaderClientQt.cpp:
3270 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3271 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3272 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
3273 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3274 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3275 * WebCoreSupport/FrameLoaderClientQt.h:
3277 2009-08-22 Adam Barth <abarth@webkit.org>
3279 Revert 47684. We're going to do this later once clients have had a
3280 chance to opt into the setting they like.
3282 * Api/qwebsettings.cpp:
3283 (QWebSettings::QWebSettings):
3285 2009-08-22 Adam Barth <abarth@webkit.org>
3287 Reviewed by Eric Seidel.
3289 Don't let local files access web URLs
3290 https://bugs.webkit.org/show_bug.cgi?id=28480
3292 * Api/qwebsettings.cpp:
3293 (QWebSettings::QWebSettings):
3295 2009-08-19 Aaron Boodman <aa@chromium.org>
3297 Speculative build break fix for qt.
3299 * Api/qwebsecurityorigin.cpp:
3300 (QWebSecurityOrigin::whiteListAccessFromOrigin):
3301 * Api/qwebsecurityorigin.h:
3303 2009-08-19 Aaron Boodman <aa@chromium.org>
3305 Reviewed by David Levin.
3307 https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
3308 specify a more granular policy for cross-origin XHR access.
3310 * Api/qwebsecurityorigin.cpp: Add API to manipulate origin access whitelists.
3311 (QWebSecurityOrigin::whiteListAccessFromOrigin): Ditto.
3312 (QWebSecurityOrigin::resetOriginAccessWhiteLists): Ditto.
3313 * Api/qwebsecurityorigin.h: Ditto.
3315 2009-08-18 Markus Goetz <Markus.Goetz@nokia.com>
3317 Reviwed by Ariya Hidayat.
3319 [Qt] For prefecthDNS, the pre-fetching has to be enabled in the
3322 * Api/qwebsettings.cpp:
3323 (QWebSettings::QWebSettings):
3324 * Api/qwebsettings.h:
3326 2009-08-17 Darin Adler <darin@apple.com>
3328 Try to fix Qt build again.
3330 * WebCoreSupport/EditorClientQt.cpp: Move "using namespace".
3332 2009-08-17 Darin Adler <darin@apple.com>
3334 Try to fix Qt build.
3336 * WebCoreSupport/EditorClientQt.cpp:
3337 (WebCore::EditorClientQt::shouldShowDeleteInterface):
3338 Use getAttribute(classAttr) instead of className() function.
3340 2009-08-14 Yongjun Zhang <yongjun.zhang@nokia.com>
3342 Reviewed by Simon Hausmann.
3344 RVCT elftran fails to resolve QPainter::staticMetaObject coming with
3345 QWebView::RenderHints property.
3347 This is a temporary fix and will be revereted when the right symbols
3348 exported from Qt lib in S60.
3350 https://bugs.webkit.org/show_bug.cgi?id=28181
3354 2009-08-14 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3356 Reviewed by Simon Hausmann.
3358 [Qt] Public API to configure the storage path for HTML5 localStorage
3359 https://bugs.webkit.org/show_bug.cgi?id=28036
3361 Disables LocalStorage for QtWebKit by default by setting
3362 QWebSettings::LocalStorageEnabled to false.
3364 Sets up a default for the LocalStorage path so that clients would only
3365 need to enable the LocalStorageEnabled setting to turn on LocalStoragre
3368 Turn on LocalStorage support for QtLauncher and the relevant test
3369 since LocalStorage is now disabled by default for QtWebkit.
3373 (initializeApplicationCachePathIfNecessary):
3374 (QWebPagePrivate::QWebPagePrivate):
3375 * Api/qwebsettings.cpp:
3376 (QWebSettingsPrivate::apply):
3377 (QWebSettings::QWebSettings):
3378 (QWebSettings::setLocalStoragePath):
3379 (QWebSettings::localStoragePath):
3380 * Api/qwebsettings.h:
3381 * QtLauncher/main.cpp:
3383 * tests/qwebpage/tst_qwebpage.cpp:
3384 (tst_QWebPage::multiplePageGroupsAndLocalStorage):
3386 2009-08-14 Yael Aharon <yael.aharon@nokia.com>
3388 Reviewed by Simon Hausmann.
3390 [Qt] Allow applications to register their own local URL scheme.
3391 https://bugs.webkit.org/show_bug.cgi?id=28240
3393 * Api/qwebsecurityorigin.cpp:
3394 (QWebSecurityOrigin::addLocalScheme):
3395 (QWebSecurityOrigin::removeLocalScheme):
3396 (QWebSecurityOrigin::localSchemes):
3397 * Api/qwebsecurityorigin.h:
3398 * tests/qwebpage/tst_qwebpage.cpp:
3399 (tst_QWebPage::localURLSchemes):
3401 2009-08-13 Mark Rowe <mrowe@apple.com>
3403 Try and fix the Qt build.
3405 * Api/qwebelement.cpp:
3407 2009-08-13 Kavindra Devi Palaraja <kavindra.palaraja@nokia.com>
3409 Reviewed by Simon Hausmann.
3411 Doc - Some cleanup on the documentation of QWebElement
3413 * Api/qwebelement.cpp:
3415 2009-08-13 Norbert Leser <norbert.leser@nokia.com>
3417 Reviewed by Simon Hausmann.
3419 Symbian target components (library and executable files)
3420 require Unique Identifiers (i.e., UID3).
3421 These identifiers are defined in the respective project
3422 files, conditionally for "symbian" platform.
3424 * QtLauncher/QtLauncher.pro:
3425 * tests/qwebelement/qwebelement.pro:
3426 * tests/qwebframe/qwebframe.pro:
3427 * tests/qwebhistory/qwebhistory.pro:
3428 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
3429 * tests/qwebpage/qwebpage.pro:
3430 * tests/qwebview/qwebview.pro:
3432 2009-08-12 George Wright <george.wright@torchmobile.com>
3434 Reviewed by Adam Treat.
3436 Initialise zoom levels independent of whether a URL is valid or not to
3437 fix https://bugs.webkit.org/show_bug.cgi?id=28162
3439 * QtLauncher/main.cpp:
3440 (MainWindow::MainWindow):
3442 2009-08-12 Joerg Bornemann <joerg.bornemann@trolltech.com>
3444 Reviewed by Simon Hausmann.
3446 QtWebKit compile fix for Windows CE
3448 There's no getenv on Windows CE, use qgetenv instead.
3451 (qt_drt_overwritePluginDirectories):
3453 2009-08-10 Kavindra Palaraja <kavindra.palaraja@nokia.com>
3455 Reviewed by Simon Hausmann.
3457 Various fixes and improvements to the QWebPluginInfo, QWebPluginDatabase and QWebSettings documentation.
3459 * Api/qwebplugindatabase.cpp:
3460 * Api/qwebsettings.cpp:
3462 2009-08-08 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3464 Reviewed by Simon Hausmann.
3466 Doc: there is no group of explicitly shared classes, only one class uses this.
3468 Explain the implications in the QWebHistoryItem documentation, and get rid
3471 * Api/qwebhistory.cpp:
3473 2009-08-05 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
3475 Reviewed by Simon Hausmann.
3477 [Qt] Fix build error caused by http://trac.webkit.org/changeset/46763
3479 * Api/qwebpluginfactory.h: Export macro added.
3481 2009-08-04 Antonio Gomes <antonio.gomes@openbossa.org>
3483 Reviewed by Simon Hausmann.
3485 [Qt] QWebFrame::requestedUrl method can mis-behave in case of unhandled sslErrors.
3486 https://bugs.webkit.org/show_bug.cgi?id=27804
3488 * Api/qwebframe.cpp:
3489 (QWebFrame::requestedUrl):
3490 * tests/qwebframe/tst_qwebframe.cpp:
3492 2009-08-04 Simon Hausmann <simon.hausmann@nokia.com>
3494 Reviewed by Tor Arne Vestbø.
3496 Rename QWebPlugin to QWebPluginInfo, as discussed on IRC.
3498 * Api/qwebplugindatabase.cpp:
3499 (QWebPluginInfoPrivate::QWebPluginInfoPrivate):
3500 (QWebPluginInfo::QWebPluginInfo):
3501 (QWebPluginInfo::~QWebPluginInfo):
3502 (QWebPluginInfo::name):
3503 (QWebPluginInfo::description):
3504 (QWebPluginInfo::mimeTypes):
3505 (QWebPluginInfo::supportsMimeType):
3506 (QWebPluginInfo::path):
3507 (QWebPluginInfo::isNull):
3508 (QWebPluginInfo::setEnabled):
3509 (QWebPluginInfo::isEnabled):
3510 (QWebPluginInfo::operator==):
3511 (QWebPluginInfo::operator!=):
3512 (QWebPluginInfo::operator=):
3513 (QWebPluginDatabase::plugins):
3514 (QWebPluginDatabase::pluginForMimeType):
3515 (QWebPluginDatabase::setPreferredPluginForMimeType):
3516 * Api/qwebplugindatabase.h:
3517 * Api/qwebplugindatabase_p.h:
3518 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
3519 (tst_QWebPluginDatabase::installedPlugins):
3520 (tst_QWebPluginDatabase::searchPaths):
3521 (tst_QWebPluginDatabase::null_data):
3522 (tst_QWebPluginDatabase::null):
3523 (tst_QWebPluginDatabase::pluginForMimeType):
3524 (tst_QWebPluginDatabase::enabled):
3525 (tst_QWebPluginDatabase::operatorequal_data):
3526 (tst_QWebPluginDatabase::operatorequal):
3527 (tst_QWebPluginDatabase::preferredPlugin):
3529 2009-08-04 Simon Hausmann <simon.hausmann@nokia.com>
3531 Reviewed by Adam Treat.
3533 Replace QWebPlugin::MimeType with a typedef to
3534 QWebPluginFactory::MimeType.
3536 * Api/qwebplugindatabase.cpp:
3537 * Api/qwebplugindatabase.h:
3538 * Api/qwebpluginfactory.cpp:
3539 (QWebPluginFactory::MimeType::operator==):
3540 * Api/qwebpluginfactory.h:
3542 2009-08-04 Jakub Wieczorek <faw217@gmail.com>
3544 Reviewed by Simon Hausmann.
3546 Add QWebPluginDatabase API to the Qt API.
3548 https://bugs.webkit.org/show_bug.cgi?id=27651
3551 * Api/qwebplugindatabase.cpp: Added.
3552 (QWebPluginPrivate::QWebPluginPrivate):
3553 (QWebPluginDatabasePrivate::QWebPluginDatabasePrivate):
3554 (QWebPlugin::MimeType::operator==):
3555 (QWebPlugin::QWebPlugin):
3556 (QWebPlugin::~QWebPlugin):
3558 (QWebPlugin::description):
3559 (QWebPlugin::mimeTypes):
3560 (QWebPlugin::supportsMimeType):
3562 (QWebPlugin::isNull):
3563 (QWebPlugin::setEnabled):
3564 (QWebPlugin::isEnabled):
3565 (QWebPlugin::operator==):
3566 (QWebPlugin::operator!=):
3567 (QWebPlugin::operator=):
3568 (QWebPluginDatabase::QWebPluginDatabase):
3569 (QWebPluginDatabase::~QWebPluginDatabase):
3570 (QWebPluginDatabase::plugins):
3571 (QWebPluginDatabase::defaultSearchPaths):
3572 (QWebPluginDatabase::searchPaths):
3573 (QWebPluginDatabase::setSearchPaths):
3574 (QWebPluginDatabase::addSearchPath):
3575 (QWebPluginDatabase::refresh):
3576 (QWebPluginDatabase::pluginForMimeType):
3577 (QWebPluginDatabase::setPreferredPluginForMimeType):
3578 * Api/qwebplugindatabase.h: Added.
3579 * Api/qwebplugindatabase_p.h: Added.
3580 * Api/qwebsettings.cpp:
3581 (QWebSettings::pluginDatabase):
3582 * Api/qwebsettings.h:
3583 * tests/qwebplugindatabase/qwebplugindatabase.pro: Added.
3584 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp: Added.
3585 (tst_QWebPluginDatabase::installedPlugins):
3586 (tst_QWebPluginDatabase::searchPaths):
3587 (tst_QWebPluginDatabase::null_data):
3588 (tst_QWebPluginDatabase::null):
3589 (tst_QWebPluginDatabase::pluginForMimeType):
3590 (tst_QWebPluginDatabase::enabled):
3591 (tst_QWebPluginDatabase::operatorequal_data):
3592 (tst_QWebPluginDatabase::operatorequal):
3593 (tst_QWebPluginDatabase::preferredPlugin):
3596 2009-08-03 Balazs Kelemen <kelemen.balazs.3@stud.u-szeged.hu>
3598 Reviewed by Simon Hausmann.
3600 Do memory cleanup when running robotized QtLauncher in debug as well.
3602 * QtLauncher/main.cpp:
3606 2009-07-30 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3608 Reviewed by Tor Arne Vestbø.
3610 [Qt] Initialize HTML5 Application Cache for QtWebKit to a sensible default
3611 https://bugs.webkit.org/show_bug.cgi?id=27866
3614 (initializeApplicationCachePathIfNecessary):
3615 (QWebPagePrivate::QWebPagePrivate):
3617 2009-07-31 Jakob Petsovits <jakob.petsovits@torchmobile.com>
3619 Reviewed by Adam Treat.
3621 Build QtWebKit without benchmark tests for Qt < 4.5.
3622 https://bugs.webkit.org/show_bug.cgi?id=27886
3624 The QBENCHMARK macro is only available from 4.5 on,
3625 so builds for Qt < 4.5 shouldn't try to build those.
3629 2009-07-31 Kenneth Rohde Christiansen <kenneth@webkit.org>
3631 Reviewed by Adam Treat.
3633 Fix warning by migrating use of QString.sprintf(...) to
3634 QString.arg().arg()...
3636 * WebCoreSupport/EditorClientQt.cpp:
3639 2009-07-31 Kenneth Rohde Christiansen <kenneth@webkit.org>
3641 Reviewed by Tor Arne Vestbø.
3643 Expose the Offline Web Application Cache in the Qt API.
3645 * Api/qwebsettings.cpp:
3646 (QWebSettings::QWebSettings):
3647 (QWebSettings::setOfflineWebApplicationCachePath):
3648 (QWebSettings::offlineWebApplicationCachePath):
3649 (QWebSettings::setOfflineWebApplicationCacheQuota):
3650 (QWebSettings::offlineWebApplicationCacheQuota):
3651 * Api/qwebsettings.h:
3653 2009-07-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
3655 Reviewed by Adam Treat.
3657 Add missing Q_OBJECT to class inheriting from QObject.
3659 * tests/qwebframe/tst_qwebframe.cpp:
3661 2009-07-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
3663 Reviewed by Adam Treat.
3667 * tests/qwebframe/tst_qwebframe.cpp:
3669 2009-07-30 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3671 Reviewed by Simon Hausmann.
3673 Fix documentation links to examples.
3677 2009-07-30 Balazs Kelemen <kelemen.balazs.3@stud.u-szeged.hu>
3679 Reviewed by Simon Hausmann.
3681 Allocate MainWindow on heap in robotized QtLauncher as well.
3683 * QtLauncher/main.cpp:
3686 2009-07-29 Kevin McCullough <kmccullough@apple.com>
3688 Reviewed by Darin Adler.
3690 Added foundation work to allow a testing infrastructure for the Web
3693 * WebCoreSupport/InspectorClientQt.cpp:
3694 (WebCore::InspectorClientQt::inspectorWindowObjectCleared):
3695 * WebCoreSupport/InspectorClientQt.h:
3697 2009-07-29 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>
3699 Reviewed by Simon Hausmann.
3701 [Qt] In debug mode, this fix frees cached resources
3702 and other unreferenced objects (by calling the
3703 garbage collector) to remove the LEAK messages.
3704 https://bugs.webkit.org/show_bug.cgi?id=27767
3706 * Api/qwebframe.cpp:
3707 (qt_drt_cache_clear):
3708 * QtLauncher/main.cpp:
3711 2009-07-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
3713 Fix the Qt build by adapting to the changes of ScriptObject.
3715 * Api/qwebelement.cpp:
3716 (setupScriptObject):
3718 2009-07-28 Robert Hogan <robert@roberthogan.net>
3720 Reviewed by Simon Hausmann.
3722 Add WebKit version API to Qt.
3724 Get the current version of WebKit from WebKit/mac/Configurations/Version.xcconfig
3725 at compile time and make it available to Qt applications through
3728 Also amend the User Agent string to place the Safari clause outside
3729 the final bracket and to the end of the UA string.
3731 https://bugs.webkit.org/show_bug.cgi?id=27158
3733 Minor build tweak by Simon Hausmann (adding export macros to new functions).
3736 * Api/qwebkitversion.cpp: Added.
3738 (webKitMajorVersion):
3739 (webKitMinorVersion):
3740 * Api/qwebkitversion.h: Added.
3742 (QWebPage::userAgentForUrl):
3743 * tests/qwebview/tst_qwebview.cpp:
3744 (tst_QWebView::getWebKitVersion):
3746 2009-07-28 Simon Hausmann <simon.hausmann@nokia.com>
3748 Rubber-stamped by Ariya Hidayat.