1 2010-01-19 Steve Block <steveblock@google.com>
3 Reviewed by Adam Barth.
5 Renames WebCore/bridge/runtime.[cpp|h] to WebCore/bridge/Bridge.[cpp|h]
6 https://bugs.webkit.org/show_bug.cgi?id=33801
10 2009-12-13 Sam Weinig <sam@webkit.org>
12 Reviewed by Dan Bernstein.
14 Fix for https://bugs.webkit.org/show_bug.cgi?id=32499
15 Add client based Geolocation provider
17 Add first cut of a client based Geolocation provider. This is guarded by
18 ENABLE(CLIENT_BASED_GEOLOCATION) and is off by default for now. This adds a
19 GeolocationControllerClient interface that no-one currently implements,
20 but will in a subsequent patch.
23 (QWebPagePrivate::QWebPagePrivate):
25 2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
27 Reviewed by Kenneth Rohde Christiansen.
29 [Qt] Improve the autotests of QtWebkit
30 https://bugs.webkit.org/show_bug.cgi?id=32216
32 Remove the calls to qWait() of the autotest of QWebView
34 * tests/qwebview/tst_qwebview.cpp:
35 (tst_QWebView::reusePage):
37 2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
39 Reviewed by Kenneth Rohde Christiansen.
41 [Qt] Improve the autotests of QtWebkit
42 https://bugs.webkit.org/show_bug.cgi?id=32216
44 Refactor tst_qwebframe to remove qWait() and use
45 the function waitForSignal() from util.h
47 * tests/qwebframe/tst_qwebframe.cpp:
49 2009-12-07 Benjamin Poulain <benjamin.poulain@nokia.com>
51 Reviewed by Kenneth Rohde Christiansen.
53 [Qt] Improve the autotests of QtWebkit
54 https://bugs.webkit.org/show_bug.cgi?id=32216
56 Refactor the test of QGraphicsWebView:
57 -make waitForSignal() available to all the tests.
58 -remove QTest::qWait()
60 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
61 (tst_QGraphicsWebView::crashOnViewlessWebPages):
65 2009-12-07 Girish Ramakrishnan <girish@forwardbias.in>
67 Reviewed by Simon Hausmann.
69 [Qt] Plugins: Force windowless mode when there is no native window handle
71 Inject wmode=opaque while instantiating the plugin for the case when the
72 webpage is not backed by a native window handle.
74 https://bugs.webkit.org/show_bug.cgi?id=32059
76 * WebCoreSupport/FrameLoaderClientQt.cpp:
77 (WebCore::FrameLoaderClientQt::createPlugin):
79 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
81 Reviewed by Kenneth Rohde Christiansen.
83 [Qt] Corrects QtLauncher style
85 * QtLauncher/main.cpp:
86 (WebPage::acceptNavigationRequest):
87 (MainWindow::MainWindow):
88 (MainWindow::webPage):
89 (MainWindow::webView):
90 (MainWindow::changeLocation):
91 (MainWindow::loadFinished):
92 (MainWindow::showLinkHover):
94 (MainWindow::zoomOut):
96 (MainWindow::setEditable):
97 (MainWindow::dumpHtml):
98 (MainWindow::selectElements):
99 (MainWindow::newWindow):
100 (MainWindow::setupUI):
101 (WebPage::createWindow):
102 (WebPage::createPlugin):
105 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
107 Reviewed by Kenneth Rohde Christiansen.
109 [Qt] QtLauncher: add a menu to show or hide the web inspector.
110 https://bugs.webkit.org/show_bug.cgi?id=32149
112 * QtLauncher/main.cpp:
113 (WebInspector::WebInspector):
114 (WebInspector::showEvent):
115 (WebInspector::hideEvent):
116 (MainWindow::MainWindow):
117 (MainWindow::setupUI):
119 2009-12-04 Kenneth Rohde Christiansen <kenneth@webkit.org>
121 Reviewed by Antti Koivisto.
123 Split out the renderPrivate in two methods, one for working on
124 relative coordinates (relative to the viewport) and one for
125 working on absolute coordinates. The latter is more effecient
126 for implementing tiling, as you don't need translate the coords,
127 and because it avoid clipping to the viewport.
129 No behaviour changes, so no new tests.
132 (QWebFramePrivate::renderContentsLayerAbsoluteCoords):
133 (QWebFramePrivate::renderRelativeCoords):
137 2009-12-04 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
139 Reviewed by Simon Hausmann.
141 [Qt] Allow removing 'qrc' as a local security origin scheme
143 * tests/qwebpage/tst_qwebpage.cpp:
145 2009-12-04 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
147 Reviewed by Simon Hausmann.
149 [Qt] Clean up argument parsing in the QtLauncher
151 * QtLauncher/main.cpp:
153 2009-12-04 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
155 Reviewed by Kenneth Rohde Christiansen.
157 [Qt] Prevent the inspector from closing its wrapping widget.
158 This is not necessary anymore since we now hide the embedded
160 https://bugs.webkit.org/show_bug.cgi?id=32149
162 * WebCoreSupport/InspectorClientQt.cpp:
163 (WebCore::InspectorClientQt::showWindow):
164 (WebCore::InspectorClientQt::closeWindow):
166 2009-12-03 İsmail Dönmez <ismail@namtrac.org>
168 Reviewed by Eric Seidel.
170 Fix compilation when SVG is disabled.
173 (qt_drt_pauseSVGAnimation):
175 2009-12-03 Brady Eidson <beidson@apple.com>
177 Reviewed by Sam Weinig.
179 <rdar://problem/7214236> and http://webkit.org/b/32052 - Implement HTML5 state object history API
181 * WebCoreSupport/FrameLoaderClientQt.cpp:
182 (WebCore::FrameLoaderClientQt::dispatchDidPushStateWithinPage):
183 (WebCore::FrameLoaderClientQt::dispatchDidReplaceStateWithinPage):
184 (WebCore::FrameLoaderClientQt::dispatchDidPopStateWithinPage):
185 * WebCoreSupport/FrameLoaderClientQt.h:
187 2009-12-03 Pavel Feldman <pfeldman@dhcp-172-28-174-220.spb.corp.google.com>
189 Reviewed by Timothy Hatcher.
191 Web Inspector: Simplify the settings support in inspector controller.
193 https://bugs.webkit.org/show_bug.cgi?id=32076
195 * WebCoreSupport/InspectorClientQt.cpp:
196 (WebCore::InspectorClientQt::populateSetting):
197 (WebCore::InspectorClientQt::storeSetting):
198 (WebCore::variantToSetting):
199 (WebCore::settingToVariant):
200 * WebCoreSupport/InspectorClientQt.h:
202 2009-12-03 Ben Murdoch <benm@google.com>
204 Reviewed by Brady Eidson.
206 [Android] The FrameLoaderClient is unaware of BackForwardList changes.
207 https://bugs.webkit.org/show_bug.cgi?id=31914
209 * WebCoreSupport/FrameLoaderClientQt.cpp:
210 (WebCore::FrameLoaderClientQt::dispatchDidAddBackForwardItem): Add an empty implementation. Method added to FrameLoaderClient by Android (see bug).
211 (WebCore::FrameLoaderClientQt::dispatchDidRemoveBackForwardItem): ditto.
212 (WebCore::FrameLoaderClientQt::dispatchDidChangeBackForwardIndex): ditto.
213 * WebCoreSupport/FrameLoaderClientQt.h:
215 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
217 Not reviewed. Try to fix Qt build.
220 (qt_drt_pauseSVGAnimation):
222 2009-12-01 Nikolas Zimmermann <nzimmermann@rim.com>
224 Reviewed by Simon Fraser.
226 Add SVG animation test framework with 'snapshot' functionality
227 https://bugs.webkit.org/show_bug.cgi?id=31897
229 Add API used by the new 'sampleSVGAnimationForElementAtTime' DRT method,
230 forwarding the call to SVGDocumentExtensions, if SVG is enabled.
232 Implemented just like the existing pauseAnimation* methods for CSS animations.
235 (qt_drt_pauseSVGAnimation):
237 2009-12-01 Daniel Bates <dbates@webkit.org>
239 Reviewed by Kenneth Rohde Christiansen.
241 https://bugs.webkit.org/show_bug.cgi?id=31898
243 Makes QtLauncher default to the http scheme for URLs.
245 * QtLauncher/main.cpp:
246 (MainWindow::MainWindow):
247 (MainWindow::changeLocation):
250 2009-11-30 Abhinav Mithal <abhinav.mithal@nokia.com>
252 Reviewed by Simon Hausmann.
254 [Qt][Symbian] Report SymbianOS in user agent string for Symbian
255 https://bugs.webkit.org/show_bug.cgi?id=31961
258 (QWebPage::userAgentForUrl):
260 2009-11-30 Laszlo Gombos <laszlo.1.gombos@nokia.com>
262 Reviewed by Kenneth Rohde Christiansen.
264 [Qt] Fix minor waning in QtWebKit
265 https://bugs.webkit.org/show_bug.cgi?id=31963
267 * tests/qwebpage/tst_qwebpage.cpp:
268 (ErrorPage::extension): Remove info wariable as it is
271 2009-11-28 Simon Hausmann <simon.hausmann@nokia.com>
273 Reviewed by Kenneth Rohde Christiansen.
275 [Qt] SoftwareInputPanelRequest event sent when clicking in newly loaded page
277 https://bugs.webkit.org/show_bug.cgi?id=31401
279 Don't set the event unless there is a focused node we can use
280 for editing afterwards.
283 (QWebPagePrivate::handleSoftwareInputPanel):
284 * tests/qwebpage/tst_qwebpage.cpp:
285 (tst_QWebPage::inputMethods):
287 2009-11-26 Simon Hausmann <simon.hausmann@nokia.com>
289 Rubber-stamped by Holger Freyther.
291 Removed unused ICO image plugin handler.
293 * Plugins/ICOHandler.cpp: Removed.
294 * Plugins/ICOHandler.h: Removed.
295 * Plugins/Plugins.pro: Removed.
297 2009-11-12 Holger Hans Peter Freyther <zecke@selfish.org>
299 Reviewed by Kenneth Rohde Christiansen.
301 [Qt] Do not show the QWidget when the WebCore::Widget is hidden
302 https://bugs.webkit.org/show_bug.cgi?id=31203
304 The clipping code was making a QWidget visible even if the
305 WebCore::Widget was hidden. Fix the bug by calling setVisible
306 only if the WebCore::Widget Widget::isSelfVisible.
308 * WebCoreSupport/FrameLoaderClientQt.cpp:
309 (WebCore::QtPluginWidget::show): Override WebCore::Widget::show to call handleVisibility
310 (WebCore::QtPluginWidget::handleVisibility): New method to call setVisible when we are visible
311 (FrameLoaderClientQt::createPlugin): Hide the QWidget by default
313 2009-11-23 David Boddie <dboddie@trolltech.com>
315 Reviewed by Simon Hausmann.
317 Updated the QWebElement documentation with links to examples and
319 Fixed the project file for the webelement snippet and tidied up the
320 markers used for quoting the code.
322 * Api/qwebelement.cpp:
323 * docs/webkitsnippets/webelement/main.cpp:
325 * docs/webkitsnippets/webelement/webelement.pro:
327 2009-11-23 Simon Hausmann <simon.hausmann@nokia.com>
329 Reviewed by Kenneth Rohde Christiansen.
331 [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
332 the wrapped object died before the gc removed the instance.
334 https://bugs.webkit.org/show_bug.cgi?id=31681
336 Added a unit-test to verify that wrapping a QObject with the
337 same identity as a previously but now dead object works.
339 * tests/qwebframe/tst_qwebframe.cpp:
341 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
343 Reviewed by Kenneth Rohde Christiansen.
345 [Qt] Add instantiation tests for QWebInspector.
347 * tests/qwebinspector/qwebinspector.pro: Added.
348 * tests/qwebinspector/tst_qwebinspector.cpp: Added.
349 (tst_QWebInspector::attachAndDestroy):
352 2009-11-19 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
354 Reviewed by Kenneth Rohde Christiansen.
356 [Qt] Fix QWebInspector destruction problem.
357 https://bugs.webkit.org/show_bug.cgi?id=31664
360 (QWebPage::~QWebPage):
362 2009-11-19 Olivier Goffart <ogoffart@trolltech.com>
364 Reviewed by Simon Hausmann.
366 [Qt] Normalize signal and slot signatures.
368 * Api/qgraphicswebview.cpp:
369 (QGraphicsWebView::setPage):
372 * WebCoreSupport/FrameLoaderClientQt.cpp:
373 (WebCore::FrameLoaderClientQt::setFrame):
374 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp:
376 * tests/qwebframe/tst_qwebframe.cpp:
377 * tests/qwebpage/tst_qwebpage.cpp:
378 (tst_QWebPage::modified):
379 (tst_QWebPage::database):
381 2009-11-18 Laszlo Gombos <laszlo.1.gombos@nokia.com>
383 Reviewed by Kenneth Rohde Christiansen.
385 [Qt] Remove support for Qt v4.3 or older versions
386 https://bugs.webkit.org/show_bug.cgi?id=29469
388 * Api/qcookiejar.cpp: Removed.
389 * Api/qcookiejar.h: Removed.
390 * Api/qgraphicswebview.cpp:
391 (QGraphicsWebView::event):
395 * Api/qwebkitglobal.h:
396 * Api/qwebnetworkinterface.cpp: Removed.
397 * Api/qwebnetworkinterface.h: Removed.
398 * Api/qwebnetworkinterface_p.h: Removed.
400 (QWebPagePrivate::QWebPagePrivate):
401 (QWebPagePrivate::acceptNavigationRequest):
402 (QWebPage::acceptNavigationRequest):
404 (QWebPage::userAgentForUrl):
411 * QtLauncher/main.cpp:
413 (MainWindow::setupUI):
415 * WebCoreSupport/FrameLoaderClientQt.cpp:
416 (WebCore::FrameLoaderClientQt::download):
417 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
418 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
419 (WebCore::FrameLoaderClientQt::startDownload):
420 (WebCore::FrameLoaderClientQt::createPlugin):
422 2009-11-18 Shu Chang <Chang.Shu@nokia.com>
424 Reviewed by Eric Seidel.
426 [Qt] Add support for displaying deleteButton.
427 https://bugs.webkit.org/show_bug.cgi?id=31560
429 Test: LayoutTests/editing/deleting/5408255.html
431 * Api/qwebsettings.cpp:
433 * Api/qwebsettings.h:
435 2009-11-18 Paul Olav Tvete <paul.tvete@nokia.com>
437 Reviewed by Simon Hausmann.
439 [Qt] Make the QWebElement::render() test pass when pixmaps aren't 32 bit.
441 * tests/qwebelement/tst_qwebelement.cpp:
442 (tst_QWebElement::render):
444 2009-11-18 Simon Hausmann <simon.hausmann@nokia.com>
446 Reviewed by Tor Arne Vestbø.
448 Clarify and simplify the legal section in the overview documentation,
449 after review with our legal team.
451 * docs/qtwebkit.qdoc:
453 2009-11-18 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
455 Reviewed by Simon Hausmann.
457 [Qt] Add QtLauncher support for opening links in the default browser
459 This can be triggered by either the context menu or by clicking a link
460 while holding down the Alt key. Opening a link in a new windows is
461 triggered by holding down Shift.
463 * QtLauncher/main.cpp:
465 2009-11-17 Yael Aharon <yael.aharon@nokia.com>
467 Reviewed by Kenneth Rohde Christiansen.
469 [Qt] QGLLauncher does not support drag&drop of local files
470 https://bugs.webkit.org/show_bug.cgi?id=31057
472 Enable accepting files in QGraphicsWebView.
474 * Api/qgraphicswebview.cpp:
475 (QGraphicsWebView::QGraphicsWebView):
476 (QGraphicsWebView::dragEnterEvent):
478 2009-11-17 Antonio Gomes <tonikitoo@webkit.org>
480 Reviewed by Kenneth Christiansen.
482 [Qt] better test coverage for ErrorPageExtension
483 https://bugs.webkit.org/show_bug.cgi?id=31583
485 Improved the coverage of current ErrorPageExtension tests by
486 adding autotests involving frameset and iframes.
488 * tests/qwebpage/tst_qwebpage.cpp:
489 (ErrorPage::extension): Make the ErrorPageExtension
490 to work for all frames, not only the main frame.
491 (tst_QWebPage::errorPageExtension): Stop using
492 the 'frameset.html' resouce in this method since
493 an autotest specific for frameset's is being added.
494 (tst_QWebPage::errorPageExtensionInIFrames): Added.
495 (tst_QWebPage::errorPageExtensionInFrameset): Added.
497 2009-11-16 Simon Hausmann <simon.hausmann@nokia.com>
499 Reviewed by Kenneth Rohde Christiansen.
501 API documentation fixes.
503 * Api/qgraphicswebview.cpp: Removed duplicate docs.
504 * Api/qwebelement.cpp: Added missing docs.
505 * Api/qwebsettings.cpp: Ditto.
507 2009-11-14 Antonio Gomes <tonikitoo@webkit.org>
509 Reviewed by Antti Koivisto.
511 [Qt] Broken back/forward after using ErrorPageExtension to set error page
512 https://bugs.webkit.org/show_bug.cgi?id=30573
514 Implemented autotests for covering the back/forward
515 reset problem involving error pages.
517 * tests/qwebpage/tst_qwebpage.cpp:
518 (tst_QWebPage::errorPageExtension):
520 2009-11-13 Adam Roben <aroben@apple.com>
522 Update for changes to FrameLoaderClient
524 Fixes <http://webkit.org/b/31124> Tell the WebFrameLoadDelegate when
525 window objects in isolated worlds are cleared
527 Reviewed by Dave Hyatt.
529 * WebCoreSupport/FrameLoaderClientQt.cpp:
530 (WebCore::FrameLoaderClientQt::dispatchDidClearWindowObjectInWorld):
531 * WebCoreSupport/FrameLoaderClientQt.h:
532 Replaced windowObjectCleared with this function. Does nothing if the
533 passed-in world is not the mainThreadNormalWorld().
535 2009-11-13 Andras Becsi <becsi.andras@stud.u-szeged.hu>
537 Reviewed by Kenneth Rohde Christiansen.
539 [Qt] Enable Page Cache if setMaximumPagesInCache needs it.
540 This fixes https://bugs.webkit.org/show_bug.cgi?id=31266.
542 * Api/qwebsettings.cpp:
543 (QWebSettingsPrivate::apply):
544 (QWebSettings::setMaximumPagesInCache):
546 2009-11-13 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
548 Reviewed by Kenneth Rohde Christiansen.
550 [Qt] Fix initial QWebView focus behavior.
552 focusController->setFocused(true) was not always called.
553 https://bugs.webkit.org/show_bug.cgi?id=31466
556 (QWebPagePrivate::focusInEvent):
558 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
560 Reviewed by Simon Hausmann.
562 Update documentation for the Qt API
564 * Api/qgraphicswebview.cpp:
565 * Api/qwebelement.cpp:
567 * Api/qwebsettings.cpp:
570 2009-11-13 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
572 Reviewed by Simon Hausmann.
574 Use correct install-path when running qdoc3
578 2009-11-12 Shinichiro Hamaji <hamaji@chromium.org>
580 Reviewed by Darin Adler.
582 externalRepresentation should take Frame as the argument
583 https://bugs.webkit.org/show_bug.cgi?id=31393
585 No new tests as this is just a refactoring.
588 (QWebFrame::renderTreeDump):
590 2009-11-12 Antonio Gomes <tonikitoo@webkit.org>
592 Reviewed by Jan Alonzo.
594 [Qt] Various doc fixes
595 https://bugs.webkit.org/show_bug.cgi?id=31358
597 QWebPage's constructor docs are mentioning "QWebView":
598 "Constructs an empty QWebView with parent".
602 2009-11-12 Benjamin Poulain <benjamin.poulain@nokia.com>
604 Reviewed by Kenneth Rohde Christiansen.
606 Custom printing shrink factors
607 https://bugs.webkit.org/show_bug.cgi?id=29042
609 This reverts commit r49769. The public API for this needs to be reviewed
610 before its inclusion in Qt.
612 * Api/qwebsettings.cpp:
613 (QWebSettingsPrivate::apply):
614 (QWebSettings::QWebSettings):
615 * Api/qwebsettings.h:
617 2009-11-11 Antonio Gomes <tonikitoo@webkit.org>
619 Reviewed by Kenneth Christiansen.
621 [Qt] Various doc fixes
622 https://bugs.webkit.org/show_bug.cgi?id=31358
624 Fixed wrong documentation: item's dimensions do fit to Web page
627 Kenneth agreed to land this as a followup patch to the
628 just landed documentation patch.
630 * Api/qgraphicswebview.cpp:
632 2009-11-11 David Boddie <dboddie@trolltech.com>
634 Reviewed by Kenneth Christiansen.
636 [Qt] Various doc fixes
637 https://bugs.webkit.org/show_bug.cgi?id=31323
639 Fixed and synchronized QWebView related documentation.
641 * Api/qgraphicswebview.cpp:
644 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
646 Unreviewed buildbot fix.
648 Export a method to the DRT to know if the document has a
652 (qt_drt_hasDocumentElement):
654 2009-11-11 Liang QI <liang.qi@nokia.com>
656 [Qt] Fix tst_qwebpage and tst_qwebframe compilation on Symbian.
658 * tests/qwebframe/qwebframe.pro:
659 * tests/qwebframe/tst_qwebframe.cpp:
660 * tests/qwebpage/qwebpage.pro:
661 * tests/qwebpage/tst_qwebpage.cpp:
663 2009-11-11 Kenneth Rohde Christiansen <kenneth@webkit.org>
665 Reviewed by Simon Hausmann.
667 Fix a crash in the layout test plugins/document-open.html
670 (QWebFrame::toPlainText):
672 2009-11-11 Warwick Allison <warwick.allison@nokia.com>, Simon Hausmann <simon.hausmann@nokia.com>
674 Reviewed by Tor Arne Vestbø.
676 [Qt] Regression: Preserve the parent of plugin objects when using
677 QtWebKit with only a QWebPage.
679 * WebCoreSupport/FrameLoaderClientQt.cpp:
680 (WebCore::FrameLoaderClientQt::createPlugin): Don't reparent
682 * tests/qwebpage/tst_qwebpage.cpp:
683 (PluginCounterPage::PluginCounterPage): Initialize m_pluginParent to 0.
684 (PluginCounterPage::~PluginCounterPage): Delete the plugin parent later
686 (PluginTracerPage::createPlugin): Assign a dummy parent to the plugin.
687 (PluginTracerPage::PluginTracerPage): Set up the plugin parent.
688 (tst_QWebPage::createViewlessPlugin): Verify that for viewless pages the
689 plugin parent remains unchanged.
691 2009-11-11 David Boddie <dboddie@trolltech.com>
693 [Qt] Doc: Added internal or hidden placeholder documentation.
697 2009-11-11 Martin Smith <msmith@trolltech.com>
699 [Qt] doc: Changed Trolltech to Nokia
703 2009-11-11 Laszlo Gombos <laszlo.1.gombos@nokia.com>
705 Reviewed by Kenneth Rohde Christiansen.
707 https://bugs.webkit.org/show_bug.cgi?id=31323
708 Fix a few compiler warnings
710 * tests/qwebframe/tst_qwebframe.cpp: Add extra brackets
711 to make it explicit where the else case belongs
713 2009-11-11 Simon Hausmann <simon.hausmann@nokia.com>
715 Reviewed by Tor Arne Vestbø.
717 Fix enabling of software input panel when activating editable elements
720 * Api/qgraphicswebview.cpp:
721 (QGraphicsWebViewPrivate::inputMethodEnabled): Implement method to
722 query for input method support.
724 (QWebPageWidgetClient::inputMethodEnabled): Ditto for QWidget.
725 (QWebPagePrivate::handleSoftwareInputPanel): Don't use view() to
726 test for input method support. Instead query using QWebPageClient
727 and send the SIPR event to the ownerWidget() instead of the view().
728 The latter is null for QGraphicsWebView.
729 * tests/qwebpage/tst_qwebpage.cpp:
730 (EventSpy::EventSpy):
731 (EventSpy::eventFilter):
732 (tst_QWebPage::inputMethods): Modify the test to verify that SIPR
733 events are dispatched when activating focusable content.
735 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
737 Unreviewed documentation fixes.
739 Added a few improvements from Jocelyn Turcotte to the
744 2009-11-10 Kenneth Rohde Christiansen <kenneth@webkit.org>
746 Unreviewed documentation fix.
748 [Qt] Make qwebpage's createWindow not qwebview dependent.
749 https://bugs.webkit.org/show_bug.cgi?id=30771
751 Update documentation to make it clear that a reimplementation
752 of the createWindow method of the associated QWebPage can
753 result in the QWebView::createWindow method to never be called.
757 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
759 Reviewed by Kenneth Rohde Christiansen.
761 [Qt] Few classes have virtual functions but non-virtual destructor
762 https://bugs.webkit.org/show_bug.cgi?id=31269
764 * Api/qgraphicswebview.cpp:
765 (QGraphicsWebViewPrivate::~QGraphicsWebViewPrivate): Add virtual
768 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
770 Reviewed by Kenneth Rohde Christiansen.
772 https://bugs.webkit.org/show_bug.cgi?id=30628
773 Add an API to get all the attributes from a QWebElement.
775 * Api/qwebelement.cpp:
776 (QWebElement::attributesName):
778 * tests/qwebelement/tst_qwebelement.cpp:
779 (tst_QWebElement::listAttributes):
781 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
783 Reviewed by Kenneth Rohde Christiansen.
785 Use explicit parentheses to silence gcc 4.4 -Wparentheses warnings
786 https://bugs.webkit.org/show_bug.cgi?id=31040
789 (QWebPagePrivate::handleScrolling):
791 2009-11-09 Mark Mentovai <mark@chromium.org>
793 Reviewed by Dan Bernstein.
795 Track "can have scrollbar" state within FrameView independently of the
796 individual scrollbar states in ScrollView.
798 rdar://problem/7215132, https://bugs.webkit.org/show_bug.cgi?id=29167
799 REGRESSION (r48064): mint.com loses scrollbars after coming out of
802 rdar://problem/7314421, https://bugs.webkit.org/show_bug.cgi?id=30517
803 REGRESSION (r48064): Extra scroll bars in GarageBand Lesson Store.
805 Test: fast/overflow/scrollbar-restored.html
808 (QWebFrame::setScrollBarPolicy):
810 2009-11-09 Benjamin Poulain <benjamin.poulain@nokia.com>
812 Reviewed by Kenneth Rohde Christiansen.
814 https://bugs.webkit.org/show_bug.cgi?id=30772
815 Add a non-const iterator to QWebElementCollection.
816 Move the two attributes of the iterator to private.
819 (const_iterator::begin):
820 (const_iterator::end):
821 (const_iterator::constBegin):
822 (const_iterator::constEnd):
823 (const_iterator::iterator::iterator):
824 (const_iterator::iterator::operator*):
825 (const_iterator::iterator::operator==):
826 (const_iterator::iterator::operator!=):
827 (const_iterator::iterator::operator<):
828 (const_iterator::iterator::operator<=):
829 (const_iterator::iterator::operator>):
830 (const_iterator::iterator::operator>=):
831 (const_iterator::iterator::operator++):
832 (const_iterator::iterator::operator--):
833 (const_iterator::iterator::operator+=):
834 (const_iterator::iterator::operator-=):
835 (const_iterator::iterator::operator+):
836 (const_iterator::iterator::operator-):
837 * tests/qwebelement/tst_qwebelement.cpp:
838 (tst_QWebElement::nonConstIterator):
839 (tst_QWebElement::constIterator):
841 2009-11-09 Laszlo Gombos <laszlo.1.gombos@nokia.com>
843 Reviewed by Kenneth Christiansen.
845 [Qt] Remove the sessionStorage setting (per Page)
846 https://bugs.webkit.org/show_bug.cgi?id=31249
848 This setting allows to run sessionStorage on/off on a per page
849 basis. Remove this prematurely exposed API.
851 * Api/qwebsettings.cpp:
852 (QWebSettingsPrivate::apply):
853 (QWebSettings::QWebSettings):
854 * tests/qwebpage/tst_qwebpage.cpp:
855 (tst_QWebPage::database):
856 (tst_QWebPage::testOptionalJSObjects):
858 2009-11-09 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
860 Reviewed by Simon Hausmann.
862 [Qt] Remove the QWebPage:webInspectorTriggered signal.
863 User customization of the communication between QWebPage
864 and QWebInspector will be properly designed in the next version.
865 https://bugs.webkit.org/show_bug.cgi?id=30773
867 * Api/qwebinspector.cpp:
869 (QWebPagePrivate::getOrCreateInspector):
870 (QWebPage::triggerAction):
872 * QtLauncher/main.cpp:
873 (MainWindow::MainWindow):
875 2009-11-05 Simon Hausmann <hausmann@webkit.org>
877 Reviewed by Tor Arne Vestbø.
879 Added a missing re-implementation of QGraphicsItem::inputMethodQuery().
881 * Api/qgraphicswebview.cpp:
882 (QGraphicsWebView::inputMethodQuery):
883 * Api/qgraphicswebview.h:
885 2009-11-04 Simon Hausmann <hausmann@webkit.org>
887 Reviewed by Tor Arne Vestbø.
889 Provide a dummy re-implementation of QGraphicsLayoutItem::sizeHint(),
892 * Api/qgraphicswebview.cpp:
893 (QGraphicsWebView::sizeHint):
894 * Api/qgraphicswebview.h:
896 2009-11-04 Simon Hausmann <hausmann@webkit.org>
898 Reviewed by Tor Arne Vestbø.
900 Removed zoomFactoryChanged() signal and added
901 linkClicked() to QGraphicsWebView, for consistency with
904 * Api/qgraphicswebview.cpp:
905 (QGraphicsWebView::setPage):
906 (QGraphicsWebView::setZoomFactor):
907 * Api/qgraphicswebview.h:
909 2009-11-04 Simon Hausmann <hausmann@webkit.org>
911 Reviewed by Tor Arne Vestbø.
913 Added QGraphicsWebView::findText() for convenience and consistency
916 * Api/qgraphicswebview.cpp:
917 (QGraphicsWebView::findText):
918 * Api/qgraphicswebview.h:
920 2009-11-04 Simon Hausmann <hausmann@webkit.org>
922 Reviewed by Tor Arne Vestbø.
924 Added QGraphicsWebView::pageAction() and triggerPageAction(), for
925 consistency with QWebView.
927 * Api/qgraphicswebview.cpp:
928 (QGraphicsWebView::pageAction):
929 (QGraphicsWebView::triggerPageAction):
930 * Api/qgraphicswebview.h:
932 2009-11-04 Simon Hausmann <hausmann@webkit.org>
934 Reviewed by Tor Arne Vestbø.
936 Removed QGraphicsWebView::toHtml() after API review.
938 That's consistent with QWebView and also based on the assumption that
939 toHtml() is called less frequently than setHtml().
941 * Api/qgraphicswebview.cpp:
942 * Api/qgraphicswebview.h:
943 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
944 (tst_QGraphicsWebView::qgraphicswebview):
946 2009-11-04 Simon Hausmann <hausmann@webkit.org>
948 Reviewed by Tor Arne Vestbø.
950 Removed the interactive property of QGraphicsWebView.
952 There are clearly use-cases for this feature, but it will require
953 more work to make this fully work with an enum to have fine-grained
954 control over the interactivity levels. For now it is easy to achieve
955 in user-code what the boolean property did.
957 * Api/qgraphicswebview.cpp:
958 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
959 (QGraphicsWebView::hoverMoveEvent):
960 (QGraphicsWebView::mouseMoveEvent):
961 (QGraphicsWebView::mousePressEvent):
962 (QGraphicsWebView::mouseReleaseEvent):
963 (QGraphicsWebView::mouseDoubleClickEvent):
964 (QGraphicsWebView::keyPressEvent):
965 (QGraphicsWebView::keyReleaseEvent):
966 (QGraphicsWebView::dragLeaveEvent):
967 (QGraphicsWebView::dragMoveEvent):
968 (QGraphicsWebView::dropEvent):
969 (QGraphicsWebView::wheelEvent):
970 (QGraphicsWebView::inputMethodEvent):
971 * Api/qgraphicswebview.h:
972 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
973 (tst_QGraphicsWebView::qgraphicswebview):
975 2009-11-04 Simon Hausmann <hausmann@webkit.org>
977 Reviewed by Tor Arne Vestbø.
979 Make the QGraphicsWebView constructor explicit.
981 * Api/qgraphicswebview.h:
983 2009-11-05 Shu Chang <Chang.Shu@nokia.com>
985 Reviewed by Tor Arne Vestbø.
987 Add support for Shift-PageUp and Shift-PageDown key events.
988 https://bugs.webkit.org/show_bug.cgi?id=31166
990 Test: LayoutTests/editing/selection/shrink-selection-after-shift-pagedown.html
992 * WebCoreSupport/EditorClientQt.cpp:
993 (WebCore::EditorClientQt::handleKeyboardEvent):
995 2009-11-05 Simon Hausmann <hausmann@webkit.org>
997 Last Qt 4.5 build fix (*sigh*)
999 * tests/qwebpage/tst_qwebpage.cpp:
1000 (inputMethodHints): inputMethodHints() is only used for
1001 Qt 4.6, so guard the whole function.
1003 2009-11-05 Simon Hausmann <hausmann@webkit.org>
1005 Another prospective build fix against Qt 4.5 (build bot)
1007 Don't compile & run the QGraphicsWebView portion of the
1008 input methods auto test with Qt 4.5.
1010 * tests/qwebpage/tst_qwebpage.cpp:
1011 (tst_QWebPage::inputMethods_data):
1013 (inputMethodEnabled):
1014 (tst_QWebPage::inputMethods):
1016 2009-11-05 Simon Hausmann <hausmann@webkit.org>
1018 Prospective build fix against Qt 4.5 (build bot)
1020 * Api/qgraphicswebview.cpp:
1021 (QGraphicsWebViewPrivate::setInputMethodEnabled): Guard the
1022 use of Qt 4.6 specific API with #ifdefs.
1024 2009-11-01 Simon Hausmann <hausmann@webkit.org>
1026 Reviewed by Kenneth Christiansen.
1028 [Qt] Fix enabling of input method support on QGraphicsWebView.
1029 https://bugs.webkit.org/show_bug.cgi?id=30605
1031 Instead of setting the unsupported widget attribute on the
1032 QGraphicsWidget in setInputMethodEnabled() set the
1033 ItemAcceptsInputMethod GraphicsItem flag directly.
1035 Changed the existing input method auto test to run once
1036 on a QWebView and once on a QGraphicsWebView.
1038 * Api/qgraphicswebview.cpp:
1039 (QGraphicsWebViewPrivate::setInputMethodEnabled):
1040 * tests/qwebpage/tst_qwebpage.cpp:
1041 (tst_QWebPage::inputMethods_data):
1043 (inputMethodEnabled):
1044 (tst_QWebPage::inputMethods):
1046 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1048 Reviewed by Kenneth Christiansen.
1050 Added QGraphicsWebView::modified property, for consistency
1053 * Api/qgraphicswebview.cpp:
1054 (QGraphicsWebView::isModified):
1055 * Api/qgraphicswebview.h:
1056 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1057 (tst_QGraphicsWebView::qgraphicswebview):
1059 2009-11-04 Simon Hausmann <hausmann@webkit.org>
1061 Reviewed by Kenneth Christiansen.
1063 Removed status and progress properties of QGraphicsWebView.
1064 Added loadProgress and statusBarMessage signals instead,
1067 * Api/qgraphicswebview.cpp:
1068 (QGraphicsWebViewPrivate::QGraphicsWebViewPrivate):
1069 (QGraphicsWebView::setPage):
1070 * Api/qgraphicswebview.h:
1071 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1072 (tst_QGraphicsWebView::qgraphicswebview):
1074 2009-11-04 Yael Aharon <yael.aharon@nokia.com>
1076 Reviewed by Simon Hausmann.
1078 [Qt] REGRESSION: Allow applications to use their own QWidget bypassing QWebView.
1079 https://bugs.webkit.org/show_bug.cgi?id=30979
1081 Decouple QWebViewPrivate from QWebPageClient, and automatically create
1082 QWebPageWidgetClient whenever the view is QWidget based.
1085 (QWebPageWidgetClient::QWebPageWidgetClient):
1086 (QWebPageWidgetClient::scroll):
1087 (QWebPageWidgetClient::update):
1088 (QWebPageWidgetClient::setInputMethodEnabled):
1089 (QWebPageWidgetClient::setInputMethodHint):
1090 (QWebPageWidgetClient::cursor):
1091 (QWebPageWidgetClient::updateCursor):
1092 (QWebPageWidgetClient::palette):
1093 (QWebPageWidgetClient::screenNumber):
1094 (QWebPageWidgetClient::ownerWidget):
1095 (QWebPageWidgetClient::pluginParent):
1096 (QWebPage::setView):
1098 (QWebView::~QWebView):
1099 (QWebView::setPage):
1102 2009-11-03 Andras Becsi <becsi.andras@stud.u-szeged.hu>
1104 Reviewed by Simon Hausmann.
1106 [Qt] Fix build of unit-test after r50454.
1108 * tests/qwebpage/tst_qwebpage.cpp:
1110 2009-11-03 Simon Hausmann <hausmann@webkit.org>
1112 Reviewed by Tor Arne Vestbø.
1114 Make QWebPluginDatabase private API for now.
1116 https://bugs.webkit.org/show_bug.cgi?id=30775
1119 * Api/qwebplugindatabase.cpp:
1120 * Api/qwebplugindatabase_p.h: Renamed from WebKit/qt/Api/qwebplugindatabase.h.
1121 * Api/qwebsettings.cpp:
1122 * Api/qwebsettings.h:
1123 * QtLauncher/main.cpp:
1124 (MainWindow::setupUI):
1127 2009-11-03 Simon Hausmann <hausmann@webkit.org>
1129 Rubber-stamped by Tor Arne Vestbø.
1131 Oops, also remove the API docs of the removed networkRequestStarted() signal.
1135 2009-11-03 Simon Hausmann <hausmann@webkit.org>
1137 Reviewed by Tor Arne Vestbø.
1139 Replace the QWebPage::networkRequestStarted() signal with the originatingObject
1140 property set to the QWebFrame that belongs to the request.
1142 https://bugs.webkit.org/show_bug.cgi?id=29975
1145 * WebCoreSupport/FrameLoaderClientQt.cpp:
1146 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
1147 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
1148 (WebCore::FrameLoaderClientQt::startDownload):
1149 * tests/qwebpage/tst_qwebpage.cpp:
1150 (tst_QWebPage::loadFinished):
1151 (TestNetworkManager::createRequest):
1152 (tst_QWebPage::originatingObjectInNetworkRequests):
1154 2009-11-02 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
1156 Reviewed by Adam Barth.
1160 The QWebView should not crash if the stop() method is called from
1161 a function triggered by the loadProgress signal.
1163 A null pointer protection was added in the ProgressTracker::incrementProgress.
1165 New autotest was created.
1167 https://bugs.webkit.org/show_bug.cgi?id=29425
1169 * tests/qwebview/tst_qwebview.cpp:
1170 (WebViewCrashTest::WebViewCrashTest):
1171 (WebViewCrashTest::loading):
1172 (tst_QWebView::crashTests):
1174 2009-11-01 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1176 Reviewed by Eric Seidel.
1178 Turn on warnings for QtWebKit for gcc
1179 https://bugs.webkit.org/show_bug.cgi?id=30958
1182 (QWebPagePrivate::QWebPagePrivate): Reorder initialization list
1183 to fix compiler warnings.
1184 * WebCoreSupport/FrameLoaderClientQt.cpp:
1185 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Ditto.
1187 2009-10-30 Evan Stade <estade@chromium.org>
1189 Reviewed by David Levin.
1191 Notify the chrome when the focused node has changed.
1192 https://bugs.webkit.org/show_bug.cgi?id=30832
1194 Added stub implementation for new ChromeClient function.
1196 * WebCoreSupport/ChromeClientQt.cpp:
1197 (WebCore::ChromeClientQt::focusedNodeChanged):
1198 * WebCoreSupport/ChromeClientQt.h:
1200 2009-10-30 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
1202 Reviewed by Tor Arne Vestbø.
1204 [Qt] Remove the QWebInspector::windowTitleChanged signal,
1205 QEvent::WindowTitleChange can be used to achieve the same.
1206 https://bugs.webkit.org/show_bug.cgi?id=30927
1208 * Api/qwebinspector.cpp:
1209 * Api/qwebinspector.h:
1210 * WebCoreSupport/InspectorClientQt.cpp:
1211 (WebCore::InspectorClientQt::updateWindowTitle):
1213 2009-10-29 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1215 Reviewed by Tor Arne Vestbø.
1217 [Qt] Implement DELETE HTTP method for XmlHttpRequest
1218 https://bugs.webkit.org/show_bug.cgi?id=30894
1220 No new tests as this functionality is already tested by the
1221 xmlhttprequest LayoutTests. As this patch depends on an unreleased
1222 version of the dependent QtNetwork library and the tests will be
1223 enabled later once the dependent library is released (and the
1224 buildbot is updated).
1226 * Api/qwebframe.cpp:
1229 2009-10-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
1231 Reviewed by Tor Arne Vestbø.
1233 Remove QWebView::guessUrlFromString() and replace its use
1234 with the new QUrl::fromUserInput() if using Qt 4.6 or newer.
1238 * QGVLauncher/main.cpp:
1240 (WebPage::applyProxy):
1242 * QtLauncher/main.cpp:
1244 (MainWindow::MainWindow):
1245 (MainWindow::changeLocation):
1246 * tests/qwebview/tst_qwebview.cpp:
1248 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
1250 Reviewed by Tor Arne Vestbø.
1252 Serialize directly to the stream, and not first to an QByteArray,
1253 that is later serialized. That is slower and also uses more bytes.
1255 * Api/qwebhistory.cpp:
1259 2009-10-28 Shinichiro Hamaji <hamaji@chromium.org>
1261 Reviewed by Eric Seidel.
1263 [Qt] WebFrame::counterValueForElementById must not be exposed
1264 https://bugs.webkit.org/show_bug.cgi?id=30882
1266 * Api/qwebframe.cpp:
1267 (qt_drt_counterValueForElementById):
1270 2009-10-27 Shinichiro Hamaji <hamaji@chromium.org>
1272 Reviewed by Darin Adler.
1274 Provide a way to get counter values with layoutTestContoller
1275 https://bugs.webkit.org/show_bug.cgi?id=30555
1277 * Api/qwebframe.cpp:
1278 (QWebFrame::counterValueForElementById):
1279 (QWebHitTestResult::frame):
1282 2009-10-28 Antonio Gomes <tonikitoo@webkit.org>
1284 Pushing missing WebKit/qt/tests/qwebframe/resources/ dir from bug 29248.
1286 [Qt] [API] Make it possible to have 'invisible' loads
1287 https://bugs.webkit.org/show_bug.cgi?id=29248
1289 * tests/qwebframe/resources/image2.png: Copied from WebKit/qt/tests/qwebelement/image.png.
1291 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
1293 Reviewed by Tor Arne Vestbø.
1295 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
1296 https://bugs.webkit.org/show_bug.cgi?id=30710
1298 Make the versioning internal and enforce it in the WebCore
1299 part. Adjust the comments, as well as remove now dead code.
1301 * Api/qwebhistory.cpp:
1304 * Api/qwebhistory.h:
1306 2009-10-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
1308 Reviewed by Holger Freyther.
1310 [Qt] QWebHistory::saveState() is inconsistent with the Qt API
1311 https://bugs.webkit.org/show_bug.cgi?id=30710
1313 Remove the QWebHistory::saveState() and ::restoreState() as
1314 they are inconsistent with the Qt API.
1316 Update unittests to reflect the change.
1318 * Api/qwebhistory.cpp:
1321 * Api/qwebhistory.h:
1322 * tests/qwebhistory/tst_qwebhistory.cpp:
1325 (tst_QWebHistory::saveAndRestore_crash_1):
1326 (tst_QWebHistory::saveAndRestore_crash_2):
1327 (tst_QWebHistory::saveAndRestore_crash_3):
1328 (tst_QWebHistory::clear):
1330 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
1332 Reviewed by Holger Freyther.
1334 Complementary fix to bug 30779.
1336 By mistake I used QWeakPointer's toStrongRef() method which docs
1337 explicitly say to not be used in this situation (when the tracked
1338 pointer is devired from QObject). Instead QWeakPointer's data()
1344 2009-10-27 Holger Hans Peter Freyther <zecke@selfish.org>
1346 Reviewed by Simon Fraser.
1348 Change HitTestResult methods to use (3d) transformation aware methods
1349 https://bugs.webkit.org/show_bug.cgi?id=27347
1351 The HitTestResult::boundingBox method was removed. The
1352 RenderObject must be used directly. In contrast to the
1353 old HitTestResult::boundingBox method this code must use
1354 a (3d) transformation aware method to not run into an
1355 assert in SVGRenderBase::mapLocalToContainer.
1357 * Api/qwebframe.cpp:
1358 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1360 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1362 Rubberstamped by Oliver Hunt.
1364 Change two methods to be internal for DRT use only.
1366 Part of [Qt] Review all new API in Qt 4.6
1367 https://bugs.webkit.org/show_bug.cgi?id=29843#c11
1369 * Api/qwebsecurityorigin.cpp:
1370 (qt_drt_whiteListAccessFromOrigin):
1371 (qt_drt_resetOriginAccessWhiteLists):
1372 (QWebSecurityOrigin::localSchemes):
1373 * Api/qwebsecurityorigin.h:
1375 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1377 Reviewed by Tor Arne Vestbø.
1379 Make sure that initiating a rotation while rotating won't make
1380 it end up at rotation positions that are not a multiply of
1383 * QGVLauncher/main.cpp:
1384 (MainView::animatedFlip):
1386 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1388 Unreviewed Qt build fix.
1390 Update the tests as well to the new API change.
1392 * tests/qwebelement/tst_qwebelement.cpp:
1393 (tst_QWebElement::clear):
1395 2009-10-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
1397 Rubberstamped by Tor Arne Vestbø.
1399 [Qt] QWebElement::removeChildren() should be
1400 QWebElement::removeAllChildren()
1401 https://bugs.webkit.org/show_bug.cgi?id=30630
1403 * Api/qwebelement.cpp:
1404 (QWebElement::removeAllChildren):
1405 * Api/qwebelement.h:
1407 2009-10-27 Antonio Gomes <tonikitoo@webkit.org>
1409 Reviewed by Antti Koivisto and Holger Freyther.
1411 Make QWebPagePrivate's (QWidget) view to be a QWeakPointer.
1412 https://bugs.webkit.org/show_bug.cgi?id=30779
1414 The fact that it was been set from external objects of qwebpage
1415 and not being deleted internally can lead to dangling references.
1417 * Api/qgraphicswebview.cpp:
1418 (QGraphicsWebView::~QGraphicsWebView):
1420 (QWebPagePrivate::QWebPagePrivate):
1421 (QWebPagePrivate::createContextMenu):
1422 (QWebPagePrivate::handleSoftwareInputPanel):
1423 (QWebPagePrivate::keyPressEvent):
1424 (QWebPage::setView):
1426 (QWebPage::javaScriptAlert):
1427 (QWebPage::javaScriptConfirm):
1428 (QWebPage::javaScriptPrompt):
1429 (QWebPage::shouldInterruptJavaScript):
1430 (QWebPage::createWindow):
1431 (QWebPage::extension):
1432 (QWebPage::chooseFile):
1433 (QWebPage::userAgentForUrl):
1436 (QWebView::~QWebView):
1438 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
1440 Unreviewed documentation fix from David Boddie (Qt Doc Team)
1442 Removes the check around the RenderHints property documentation
1443 that was clearly added to synchronize the source and header files
1444 when the #if !defined(Q_OS_SYMBIAN) guards was added to the
1447 The documentation has also been updated to ensure that Symbian
1448 users know that there is no actual RenderHints property on their
1453 2009-10-26 Kenneth Rohde Christiansen <kenneth@webkit.org>
1455 Unreviewed documentation fix from David Boddie (Qt Doc Team)
1457 Ensure that qdoc will always see the RenderHints property.
1459 The property was only defined in the header file if the Q_OS_SYMBIAN
1460 symbol was not defined, resulting in the property not showing up
1461 in the Qt documentation just because one platform doesn't support it.
1463 A follow up commit will improve the documentation for the property
1464 and note that it is not supported on the Symbiam platform.
1468 2009-10-26 Benjamin Poulain <benjamin.poulain@nokia.com>
1470 Reviewed by Tor Arne Vestbø.
1472 [Qt] Reintroduce QWebElementCollection
1474 Revert the patch that has replaced QWebElementCollection
1475 with QList<QWebElement>. Update the tests accordingly.
1477 Remove the constness of the return type of QWebElement operator[].
1479 https://bugs.webkit.org/show_bug.cgi?id=30767
1481 * Api/qwebelement.cpp:
1482 (QWebElement::findAll):
1483 (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
1484 (QWebElementCollectionPrivate::create):
1485 (QWebElementCollection::QWebElementCollection):
1486 (QWebElementCollection::operator=):
1487 (QWebElementCollection::~QWebElementCollection):
1488 (QWebElementCollection::operator+):
1489 (QWebElementCollection::append):
1490 (QWebElementCollection::count):
1491 (QWebElementCollection::at):
1492 (QWebElementCollection::toList):
1493 * Api/qwebelement.h:
1494 (const_iterator::begin):
1495 (const_iterator::end):
1496 (const_iterator::operator[]):
1497 * Api/qwebframe.cpp:
1498 (QWebFrame::findAllElements):
1500 * QtLauncher/main.cpp:
1501 (MainWindow::selectElements):
1502 * tests/qwebelement/tst_qwebelement.cpp:
1503 (tst_QWebElement::simpleCollection):
1504 (tst_QWebElement::iteration):
1505 (tst_QWebElement::emptyCollection):
1506 (tst_QWebElement::appendCollection):
1507 (tst_QWebElement::nullSelect):
1508 (tst_QWebElement::hasSetFocus):
1509 (tst_QWebElement::render):
1510 * tests/qwebpage/tst_qwebpage.cpp:
1511 (tst_QWebPage::inputMethods):
1513 2009-10-24 Laszlo Gombos <laszlo.1.gombos@nokia.com>
1515 Reviewed by Holger Freyther.
1517 [Qt] [Symbian] Set the capability and memory required to run QtWebKit for Symbian
1518 https://bugs.webkit.org/show_bug.cgi?id=30476
1520 Assign ReadUserData WriteUserData NetworkServices Symbian capabilities
1521 to all QtWebkit executables.
1523 * QGVLauncher/QGVLauncher.pro:
1524 * QtLauncher/QtLauncher.pro:
1525 * tests/benchmarks/loading/tst_loading.pro:
1526 * tests/benchmarks/painting/tst_painting.pro:
1527 * tests/qgraphicswebview/qgraphicswebview.pro:
1528 * tests/qwebelement/qwebelement.pro:
1529 * tests/qwebframe/qwebframe.pro:
1530 * tests/qwebhistory/qwebhistory.pro:
1531 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
1532 * tests/qwebpage/qwebpage.pro:
1533 * tests/qwebplugindatabase/qwebplugindatabase.pro:
1534 * tests/qwebview/qwebview.pro:
1536 2009-10-22 Gavin Barraclough <barraclough@apple.com>
1538 Reviewed by NOBODY (speculative build fix - qt is currently already broken!)
1539 Build fix following bug #30696.
1541 * Api/qwebelement.cpp:
1542 (setupScriptContext):
1543 * Api/qwebframe.cpp:
1544 (QWebFrame::evaluateJavaScript):
1546 2009-10-22 Shu Chang <Chang.Shu@nokia.com>
1548 Reviewed by Eric Seidel.
1550 [Qt] Enable track visited links in QWebPage
1551 https://bugs.webkit.org/show_bug.cgi?id=30574
1553 Test: fast/history/clicked-link-is-visited.html
1556 (QWebPagePrivate::QWebPagePrivate):
1558 2009-10-22 Girish Ramakrishnan <girish@forwardbias.in>
1560 Reviewed by Eric Seidel.
1562 [Qt] Add Print Shortcut to QtLauncher
1564 https://bugs.webkit.org/show_bug.cgi?id=30682
1566 * QtLauncher/main.cpp:
1567 (MainWindow::setupUI):
1569 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
1571 Rubberstamped by Tor Arne Vestbø.
1573 Code standarlization for QGVLauncher.
1575 1) Made member initilization lists in constructors
1577 2) Made applyProxy method inline as all other methods in
1580 * QGVLauncher/main.cpp:
1582 (WebPage::applyProxy):
1583 (MainView::MainView):
1584 (MainWindow::MainWindow):
1587 2009-10-22 Antonio Gomes <tonikitoo@webkit.org>
1589 Reviewed by Tor Arne Vestbø.
1591 Add a Y-Axis rotation to QGVLauncher.
1593 It uses the QStateMachine API from Qt 4.6.
1595 * QGVLauncher/main.cpp:
1597 (WebView::setYRotation):
1598 (WebView::yRotation):
1600 (MainView::animatedYFlip):
1601 (SharedScene::SharedScene):
1602 (SharedScene::webView):
1604 (MainWindow::animatedYFlip):
1605 (MainWindow::buildUI):
1607 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1609 Reviewed By Adam Barth.
1611 Add some actions to the menu for cursor debugging.
1613 GraphicsView based launcher only.
1615 * QGVLauncher/main.cpp:
1616 (MainView::setWaitCursor):
1617 (MainView::resetCursor):
1619 (MainWindow::setWaitCursor):
1620 (MainWindow::resetCursor):
1621 (MainWindow::buildUI):
1623 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1625 Rubberstamped by Adam Barth.
1627 Remove clipRenderToViewport as agreed upon in
1628 https://bugs.webkit.org/show_bug.cgi?id=29843
1630 * Api/qwebframe.cpp:
1632 * Api/qwebframe_p.h:
1633 (QWebFramePrivate::QWebFramePrivate):
1635 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1637 Reviewed by Adam Barth.
1639 Update the tests to test the new render functionality, and take
1640 into consideration that render() clips to the frame itself as well
1643 QWebFrame::render() now always clips, so the old tests were bogus.
1645 Rendering pure contents (no scrollbars etc) without clipping can now
1646 be accomplished using QWebFrame::documentElement()->render(...)
1648 * Api/qwebframe.cpp:
1650 * Api/qwebframe_p.h:
1651 (QWebFramePrivate::QWebFramePrivate):
1652 * tests/qwebframe/tst_qwebframe.cpp:
1654 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1656 Rubberstamped by Adam Barth.
1658 As we do not support rendering a QWebFrame without it being clipped
1659 the the frame as well as the viewport, we now set the viewport size
1660 to the size of the contents.
1662 Rendering pure contents (no scrollbars etc) without clipping can be
1663 acomplished using QWebFrame::documentElement()->render(...)
1665 * tests/qwebelement/tst_qwebelement.cpp:
1666 (tst_QWebElement::render):
1668 2009-10-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
1670 Reviewed by Tor Arne Vestbø.
1672 Add menu item to dump the plugin list to the console,
1673 which can be handy for debugging.
1675 * QtLauncher/main.cpp:
1676 (MainWindow::dumpPlugins):
1677 (MainWindow::setupUI):
1679 2009-10-19 Kenneth Rohde Christiansen <kenneth@webkit.org>
1681 Reviewed by Tor Arne Vestbø.
1683 Introduce new render method on QWebFrame, which supports specifying
1684 which layers to render (scrollbars, contents, pan-icon).
1686 * Api/qwebframe.cpp:
1687 (QWebFramePrivate::renderPrivate):
1688 (QWebFrame::render):
1690 * Api/qwebframe_p.h:
1692 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
1694 Reviewed by Ariya Hidayat.
1696 [Qt] Infinite loop (leading to crash) when setting cursor in QGraphicsWebView
1697 https://bugs.webkit.org/show_bug.cgi?id=30549
1699 Patch reimplements QGraphicsItem's itemChange method, and make
1700 CursorChange event to be emitted after cursor has already been
1703 QWidget::setCursor send the event just after it sets the cursor,
1704 then patch makes both behaviors compatible.
1706 * Api/qgraphicswebview.cpp:
1707 (QGraphicsWebView::itemChange):
1708 * Api/qgraphicswebview.h:
1710 2009-10-19 Nate Chapin <japhet@chromium.org>
1712 Unreviewed, build fix.
1714 Update call to FrameLoader::loadFrameRequest().
1717 (QWebPage::triggerAction):
1719 2009-10-19 Viatcheslav Ostapenko <ostapenko.viatcheslav@nokia.com>
1721 Reviewed by Ariya Hidayat.
1723 Add QWebElement::render API which allows rendering of single
1726 * Api/qwebelement.cpp:
1727 (QWebElement::render):
1728 * Api/qwebelement.h:
1729 * tests/qwebelement/tst_qwebelement.cpp:
1730 (tst_QWebElement::render):
1731 * tests/qwebelement/qwebelement.qrc:
1732 * tests/qwebelement/image.png: Added.
1734 2009-10-19 Markus Goetz <Markus.Goetz@nokia.com>
1736 Reviewed by Ariya Hidayat.
1738 QWebPage: Doc: setNetworkAccessManager should only be called once.
1742 2009-10-19 Antonio Gomes <tonikitoo@webkit.org>
1744 Reviewed by Tor Arne.
1746 Wrong ifdef combination in QGraphicsWebView's event method.
1748 * Api/qgraphicswebview.cpp:
1749 (QGraphicsWebView::event):
1751 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
1753 Reviewed by Holger Freyther.
1755 [Qt] Windowed Plugins: Don't crash when client is 0.
1757 Client is 0 when we use QWebPage without a QWebView or QGraphicsWebView.
1758 In addition, setFrameRect()/updatePluginWidget() is called even if the
1759 plugin was not succesfully loaded. updatePluginWidget() updates the
1760 window rect which is, in theory, useful to draw something that indicates
1761 that we didn't load successfully.
1763 So, a status check is added to setNPWindowIfNeeded.
1765 https://bugs.webkit.org/show_bug.cgi?id=30380
1767 * tests/qwebpage/qwebpage.pro:
1768 * tests/qwebpage/tst_qwebpage.cpp:
1770 (tst_QWebPage::screenshot_data):
1771 (tst_QWebPage::screenshot):
1772 * tests/resources/test.swf: Copied from LayoutTests/fast/replaced/resources/test.swf.
1774 2009-10-19 Girish Ramakrishnan <girish@forwardbias.in>
1776 Reviewed by Holger Freyther.
1778 [Qt] Windowed Plugins: Fix crash when QWebPage is deleted after QWebView.
1780 Fixes various sources of crashes:
1781 1. The PluginContainer is a child of QWebView. When the view gets deleted,
1782 the PluginView is not notified about the deletion of PluginContainer.
1783 2. QWebView destructor does not set client to 0.
1784 3. Sometimes pending paint events are sent after the plugin has died, so add
1785 a check in PluginView::setNPWindowIfNeeded.
1787 https://bugs.webkit.org/show_bug.cgi?id=30354
1790 (QWebView::~QWebView):
1791 * tests/qwebview/qwebview.pro:
1792 * tests/qwebview/tst_qwebview.cpp:
1793 (tst_QWebView::reusePage_data):
1794 (tst_QWebView::reusePage):
1796 2009-10-19 Jakob Truelsen <antialize@gmail.com>
1798 Reviewed by Adam Barth.
1800 https://bugs.webkit.org/show_bug.cgi?id=29042
1802 Allow one to costumize the minimal and maximal shrink factors,
1803 Added methods setPrintingMinimumShrinkFactor, printingMinimumShrinkFactor,
1804 setPrintingMaximumShrinkFactor, printingMaximumShrinkFactor to QWebSettings.
1807 * Api/qwebsettings.cpp:
1808 (QWebSettingsPrivate::apply):
1809 (QWebSettings::QWebSettings):
1810 (QWebSettings::setPrintingMinimumShrinkFactor):
1811 (QWebSettings::printingMinimumShrinkFactor):
1812 (QWebSettings::setPrintingMaximumShrinkFactor):
1813 (QWebSettings::printingMaximumShrinkFactor):
1814 * Api/qwebsettings.h:
1816 2009-10-18 Kenneth Rohde Christiansen <kenneth@webkit.org>
1818 Reviewed by Simon Hausmann.
1820 Rename fixedContentsSize property to preferredContentsSize as
1821 agreed upon with Simon Hausmann and Matthias Ettrich.
1824 (QWebPage::preferredContentsSize):
1825 (QWebPage::setPreferredContentsSize):
1827 * WebCoreSupport/FrameLoaderClientQt.cpp:
1828 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1830 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
1832 Reviewed by Simon Hausmann.
1834 [Qt] QGLauncher leaks WebPage object
1835 https://bugs.webkit.org/show_bug.cgi?id=30465
1837 Make 'SharedScene' to own 'WebPage' reference and delete it at its destructor.
1842 * QGVLauncher/main.cpp:
1843 (SharedScene::SharedScene):
1844 (SharedScene::~SharedScene):
1846 2009-10-16 Antonio Gomes <tonikitoo@webkit.org>
1848 Reviewed by Simon Hausmann.
1850 [Qt] "dangling" pointer to qwebpage's view object can leads QGLauncher to crash
1851 https://bugs.webkit.org/show_bug.cgi?id=30459
1853 Remove all setView(ev->widget()) calls in QWebPage and QGWV event handling methods,
1854 since QWebPageClient would do the trick.
1856 * Api/qgraphicswebview.cpp:
1857 (QGraphicsWebView::hoverMoveEvent):
1859 (QWebPagePrivate::mouseMoveEvent):
1860 (QWebPagePrivate::mousePressEvent):
1861 (QWebPagePrivate::mouseDoubleClickEvent):
1862 (QWebPagePrivate::mouseReleaseEvent):
1863 (QWebPagePrivate::wheelEvent):
1864 (QWebPagePrivate::dragEnterEvent):
1865 (QWebPagePrivate::dragLeaveEvent):
1866 (QWebPagePrivate::dragMoveEvent):
1868 2009-10-16 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
1870 Pull out r49676 as it caused build breakges on Symbian
1874 2009-10-16 Yael Aharon <yael.aharon@nokia.com>
1876 Reviewed by Tor Arne Vestbø.
1878 [Qt] Need a way to inform the application when a Netscape plugin is created or deleted
1879 https://bugs.webkit.org/show_bug.cgi?id=30179
1881 Added "c" style static methods for the application to hook up for
1882 receiving notifications when a plugin is created or destroyed.
1886 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
1888 Rubberstamped by Tor Arne.
1890 Make QGLauncher's WebPage class constructor to get a QObject* as parent (not QWidget*).
1892 * QGVLauncher/main.cpp:
1895 2009-10-15 Antonio Gomes <tonikitoo@webkit.org>
1897 Reviewed by Tor Arne.
1899 [Qt] QGLauncher crashes while closing a window
1900 https://bugs.webkit.org/show_bug.cgi?id=30385
1902 Set page's pageClient reference to '0' at QGWV deletion.
1904 * Api/qgraphicswebview.cpp:
1905 (QGraphicsWebView::~QGraphicsWebView):
1906 * tests/qgraphicswebview/tst_qgraphicswebview.cpp:
1908 (WebPage::aborting):
1909 (tst_QGraphicsWebView::crashOnViewlessWebPages):
1911 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1913 Reviewed by Simon Hausmann.
1915 [Qt] Make context menu to work in QGraphicsWebView
1916 https://bugs.webkit.org/show_bug.cgi?id=30336
1918 * Api/qgraphicswebview.cpp:
1919 (QGraphicsWebView::event):
1921 2009-10-13 Girish Ramakrishnan <girish@forwardbias.in>
1923 Reviewed by Simon Hausmann.
1925 [Qt] Plugins : Remove all traces of winId. Use ownerWidget() instead.
1927 This is a bug for two reasons:
1928 1. Everytime we use winId(), we end up creating a native widget. This causes an
1929 unnecessary copy of contents from the backing store to the native widget.
1930 2. Neither windowed nor windowless plugins require the winId of the QWebView or
1933 Introduce ownerWidget() which returns a QWidget * without creating a native widget
1934 (as opposed to QWidget::find(winId)).
1936 https://bugs.webkit.org/show_bug.cgi?id=30170
1938 * Api/qgraphicswebview.cpp:
1939 (QGraphicsWebViewPrivate::ownerWidget):
1941 (QWebViewPrivate::ownerWidget):
1943 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1945 Reviewed by Simon Hausmann.
1947 [Qt] Add some initial autotests for QWebPage's ErrorPageExtention
1948 https://bugs.webkit.org/show_bug.cgi?id=30296
1950 * tests/qwebpage/tst_qwebpage.cpp:
1951 (ErrorPage::ErrorPage):
1952 (ErrorPage::supportsExtension):
1953 (ErrorPage::extension):
1954 (tst_QWebPage::errorPageExtension):
1956 2009-10-13 Antonio Gomes <tonikitoo@webkit.org>
1958 Reviewed by Simon Hausmann.
1960 [Qt] better handle possible edge cases on qwebframe::requestedUrl use
1961 https://bugs.webkit.org/show_bug.cgi?id=30216
1963 QWebFrame::requestedUrl can be called at any time during the load
1966 * An error handling (whereas an alternate error page for unsuccessful
1968 * A ssl error exception call;
1969 * During navigation notifications/callbacks (titleChanged, urlChanged,
1970 progresses, addHistoryEntry, etc);
1973 This patch makes requestedUrl calls to fallback to FrameLoaderClient
1974 m_loadError's failingURL when an error has occurred, unless it is
1977 Also, m_loadError is now being reset at each the main frame starts a
1978 load, in order to avoid previous load errors footprints.
1980 * Api/qwebframe.cpp:
1981 (QWebFrame::requestedUrl):
1982 * WebCoreSupport/FrameLoaderClientQt.cpp:
1983 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
1985 2009-10-12 Jakub Wieczorek <faw217@gmail.com>
1987 Reviewed by Simon Hausmann.
1989 [Qt] Missing default value for the default text encoding.
1990 https://bugs.webkit.org/show_bug.cgi?id=30311
1992 QtWebKit has provided a default, hardcoded value for default charset but since
1993 the addition of the defaultTextEncoding setting in QWebSettings, that hardcoded
1994 value has had no effect.
1996 Added a regression test and unskipped fast/dom/Document/document-charset.html,
1997 which is passing now.
2000 (QWebPagePrivate::QWebPagePrivate):
2001 * Api/qwebsettings.cpp:
2002 (QWebSettings::QWebSettings):
2003 * tests/qwebpage/tst_qwebpage.cpp:
2004 (tst_QWebPage::defaultTextEncoding):
2006 2009-10-12 Kenneth Rohde Christiansen <kenneth@webkit.org>
2008 Reviewed by Simon Hausmann.
2010 Implement the new palette() methods on the page clients
2012 * Api/qgraphicswebview.cpp:
2013 (QGraphicsWebViewPrivate::palette):
2015 (QWebViewPrivate::palette):
2017 2009-10-12 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2019 Reviewed by Simon Hausmann.
2021 QWebPage's createViewlessPlugin autotest crash fix.
2023 It is possible that plugins that are QWidgets or QGraphicsWidgets
2024 are created before a view has been assigned to a QWebPage. The
2025 plug-ins won't be fully functional, as by design, they should
2026 visualise something, but they won't crash and will stay in memory.
2028 An autotest that covers this use-case, is included.
2030 https://bugs.webkit.org/show_bug.cgi?id=30118
2032 * WebCoreSupport/FrameLoaderClientQt.cpp:
2033 (WebCore::FrameLoaderClientQt::createPlugin):
2034 * tests/qwebpage/tst_qwebpage.cpp:
2035 (PluginTrackedPageWidget::PluginTrackedPageWidget):
2036 (PluginTrackedPageGraphicsWidget::PluginTrackedPageGraphicsWidget):
2037 (PluginTrackedPageGraphicsWidget::createPlugin):
2038 (tst_QWebPage::destroyPlugin):
2039 (tst_QWebPage::createViewlessPlugin):
2041 2009-10-09 Joe Ligman <joseph.ligman@nokia.com>
2043 Reviewed by Simon Hausmann.
2045 Sets Qt::WA_InputMethodEnabled and Qt::ImhHiddenText for password fields in EditorClientQt
2046 setInputMethodState. This change is needed so widgets such as the s60 software
2047 input panel can receive input method events for password fields.
2048 It's up to the Qt platform to determine which widget will receive input method
2049 events when these flags are set.
2050 Also added implementation for setInputMethodEnabled and setInputMethodHint
2051 to QGraphicsWebViewPrivate and QWebViewPrivate. This change removes the direct
2052 dependency on QWebView and uses QWebPageClient.
2053 Added autotest to tst_qwebpage.cpp
2054 https://bugs.webkit.org/show_bug.cgi?id=30023
2056 * Api/qgraphicswebview.cpp:
2057 (QGraphicsWebViewPrivate::setInputMethodEnabled):
2058 (QGraphicsWebViewPrivate::setInputMethodHint):
2060 (QWebViewPrivate::setInputMethodEnabled):
2061 (QWebViewPrivate::setInputMethodHint):
2062 * WebCoreSupport/EditorClientQt.cpp:
2063 (WebCore::EditorClientQt::setInputMethodState):
2064 * tests/qwebpage/tst_qwebpage.cpp:
2065 (tst_QWebPage::inputMethods):
2067 2009-10-08 Adam Barth <abarth@webkit.org>
2069 Reviewed by Eric Seidel.
2071 Move executeScript from FrameLoader to ScriptController
2072 https://bugs.webkit.org/show_bug.cgi?id=30200
2076 * Api/qwebframe.cpp:
2077 (QWebFrame::evaluateJavaScript):
2079 2009-10-08 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2081 Reviewed by Simon Hausmann.
2083 Part of testOptionalJSObjects autotest was marked as "expect to fail".
2085 Two places in tst_QWebPage::testOptionalJSObjects were marked as
2086 expected to fail. The problem concern checking if a feature is enabled
2087 or disabled. According to discussion on webkit dev mailing list
2088 a disabled feature should be invisible from java script level, but
2089 there are exceptions from the rule. So we decided to disable the test
2092 https://bugs.webkit.org/show_bug.cgi?id=29867
2094 * tests/qwebpage/tst_qwebpage.cpp:
2095 (tst_QWebPage::testOptionalJSObjects):
2097 2009-10-07 Adam Barth <abarth@webkit.org>
2099 Reviewed by Darin Adler.
2101 Factor PolicyChecker out of FrameLoader
2102 https://bugs.webkit.org/show_bug.cgi?id=30155
2104 Move the policy callback to the policy object.
2106 * WebCoreSupport/FrameLoaderClientQt.cpp:
2107 (WebCore::FrameLoaderClientQt::callPolicyFunction):
2109 2009-10-07 Antonio Gomes <tonikitoo@webkit.org>
2111 Reviewed by Simon Hausmann.
2113 [Qt] Get rid of useless loadFailed signal in QGraphicsWebView
2114 https://bugs.webkit.org/show_bug.cgi?id=30166
2116 * Api/qgraphicswebview.cpp:
2117 (QGraphicsWebViewPrivate::_q_doLoadFinished):
2118 * Api/qgraphicswebview.h:
2119 * QGVLauncher/main.cpp:
2121 (MainWindow::loadFinished):
2123 2009-10-07 Girish Ramakrishnan <girish@forwardbias.in>
2125 Reviewed by Simon Hausmann.
2127 Add a simple rotation effect to QGVLauncher
2129 https://bugs.webkit.org/show_bug.cgi?id=30162
2131 * QGVLauncher/main.cpp:
2132 (MainView::animatedFlip):
2133 (MainWindow::animatedFlip):
2134 (MainWindow::buildUI):
2136 2009-10-07 Volker Hilsheimer <volker.hilsheimer@nokia.com>
2138 Reviewed by Simon Hausmann.
2140 Doc: Document HTML and status as properties.
2142 * Api/qgraphicswebview.cpp:
2144 2009-10-07 Martin Smith <msmith@trolltech.com>
2146 Reviewed by Simon Hausmann.
2148 Fix qdoc warning about disabled renderHints property
2154 2009-10-06 Adam Barth <abarth@webkit.org>
2156 Reviewed by Eric Seidel.
2158 Move setLocalLoadPolicy and friends to SecurityOrigin
2159 https://bugs.webkit.org/show_bug.cgi?id=30110
2164 (QWebPagePrivate::QWebPagePrivate):
2166 2009-10-06 Benjamin C Meyer <bmeyer@rim.com>
2168 Reviewed by Ariya Hidayat.
2170 When the drag data contains an image set it on the QDrag so it will be visible to the user.
2172 * WebCoreSupport/DragClientQt.cpp:
2173 (WebCore::DragClientQt::startDrag):
2175 2009-10-06 Pavel Feldman <pfeldman@chromium.org>
2177 Reviewed by Timothy Hatcher.
2179 Web Inspector: close inspector client view on
2180 InspectorController::close API call.
2182 In order to run batch web inspector layout tests (and not affect
2183 subsequent tests) we should close inspector client's view upon
2184 InspectorController::close API call.
2186 https://bugs.webkit.org/show_bug.cgi?id=30009
2188 * WebCoreSupport/InspectorClientQt.cpp:
2189 (WebCore::InspectorClientQt::createPage):
2191 2009-10-06 Janne Koskinen <janne.p.koskinen@digia.com>
2193 Reviewed by Simon Hausmann.
2195 [Qt] don't enable input methods on Symbian by default.
2196 https://bugs.webkit.org/show_bug.cgi?id=30117
2198 If input methods are enabled Symbian FEP will be launched on every
2199 pointer event making webpage navigation impossible with QWebView.
2202 (QWebView::QWebView):
2204 2009-10-05 Holger Hans Peter Freyther <zecke@selfish.org>
2206 Reviewed by Simon Hausmann.
2208 QtLauncher: print the number of loaded urls
2210 When using the -r mode print the number of URLs loaded so far. This
2211 is extremly useful when opening the same URL over and over again and
2212 one wants to see the progress.
2214 * QtLauncher/main.cpp:
2215 (URLLoader::URLLoader):
2216 (URLLoader::loadNext):
2218 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
2220 Reviewed by Simon Hausmann.
2222 Add screenshot option to menubar
2224 https://bugs.webkit.org/show_bug.cgi?id=30067
2226 * QtLauncher/main.cpp:
2227 (MainWindow::screenshot):
2228 (MainWindow::setupUI):
2230 2009-10-05 Girish Ramakrishnan <girish@forwardbias.in>
2232 Reviewed by Simon Hausmann.
2234 Setting the env QTLAUNCHER_USE_ARGB_VISUALS makes Qt use WA_TranslucentWindow.
2236 https://bugs.webkit.org/show_bug.cgi?id=30068
2238 * QtLauncher/main.cpp:
2239 (MainWindow::MainWindow):
2241 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
2243 Rubberstamped by Simon Hausmann.
2245 Add documentation to the ErrorPageExtension.
2249 2009-10-02 Yael Aharon <yael.aharon@nokia.com>
2251 Reviewed by Simon Hausmann.
2253 [Qt] Inform the application when a new request is created
2254 https://bugs.webkit.org/show_bug.cgi?id=29975
2256 Add a signal to QWebPage, to inform the application when a request is created.
2260 * tests/qwebpage/tst_qwebpage.cpp:
2261 (tst_QWebPage::loadFinished):
2263 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
2265 Reviewed by Simon Hausmann.
2267 ErrorPageExtension: Add a pointer to the QWebFrame that had
2271 * WebCoreSupport/FrameLoaderClientQt.cpp:
2272 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2274 2009-10-05 Kenneth Rohde Christiansen <kenneth@webkit.org>
2276 Reviewed by Tor Arne Vestbø.
2278 Do not empty the offline web appcache when clearing
2279 memory caches. That one is not in memory, but stored
2282 * Api/qwebsettings.cpp:
2283 (QWebSettings::clearMemoryCaches):
2285 2009-10-05 J-P Nurmi <jpnurmi@gmail.com>
2287 Reviewed by Simon Hausmann.
2289 Added QGraphicsWidget-plugins support to FrameLoaderClientQt.
2291 https://bugs.webkit.org/show_bug.cgi?id=29710
2293 * Api/qgraphicswebview.cpp:
2294 (QGraphicsWebViewPrivate::pluginParent):
2296 (QWebViewPrivate::pluginParent):
2297 * WebCoreSupport/FrameLoaderClientQt.cpp:
2299 (WebCore::FrameLoaderClientQt::createPlugin):
2301 2009-10-03 Adam Barth <abarth@webkit.org>
2303 Unreview build fix. I wish I had a try server...
2306 (QWebPagePrivate::updateAction):
2308 2009-10-02 Norbert Leser <norbert.leser@nokia.com>
2310 Reviewed by Simon Hausmann.
2312 Conditionally guard cursor code (cursor and updateCursor functions) with !QT_NO_CURSOR.
2313 Otherwise, it is inconsistent with class declaration of QCursor.
2315 * Api/qgraphicswebview.cpp:
2318 2009-10-02 Prasanth Ullattil <prasanth.ullattil@nokia.com>
2320 Reviewed by Simon Hausmann.
2322 Fix compiler warnings about unused function arguments.
2324 * Api/qwebframe.cpp:
2325 (QWebFrame::scrollBarMinimum):
2327 (QWebPagePrivate::focusInEvent):
2328 (QWebPagePrivate::focusOutEvent):
2329 (QWebPagePrivate::leaveEvent):
2330 (QWebPage::javaScriptAlert):
2331 (QWebPage::javaScriptConfirm):
2332 (QWebPage::javaScriptPrompt):
2333 (QWebPage::triggerAction):
2334 (QWebPage::acceptNavigationRequest):
2335 (QWebPage::chooseFile):
2336 * WebCoreSupport/ChromeClientQt.cpp:
2337 (WebCore::ChromeClientQt::repaint):
2338 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2339 (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
2340 * WebCoreSupport/ContextMenuClientQt.cpp:
2341 (WebCore::ContextMenuClientQt::downloadURL):
2342 * WebCoreSupport/FrameLoaderClientQt.cpp:
2343 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2344 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
2345 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
2346 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
2347 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2348 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError):
2349 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2350 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
2351 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
2352 * WebCoreSupport/InspectorClientQt.cpp:
2353 (WebCore::InspectorClientQt::setAttachedWindowHeight):
2354 (WebCore::InspectorClientQt::highlight):
2355 (WebCore::InspectorClientQt::removeSetting):
2357 2009-10-01 Simon Hausmann <simon.hausmann@nokia.com>
2359 Reviewed by Tor Arne Vestbø.
2361 Make Software Input Panel requests work with QGraphicsWebView
2362 _and_ QWebView by sharing the event code in handleSoftwareInputPanel().
2365 (QWebPagePrivate::mouseReleaseEvent):
2366 (QWebPagePrivate::handleSoftwareInputPanel):
2369 2009-10-01 Alexis Menard <alexis.menard@nokia.com>
2371 Reviewed by Tor Arne Vestbø.
2373 Rename QWebGraphicsItem to QGraphicsWebView
2377 * Api/qwebgraphicsitem.cpp: Renamed.
2378 * Api/qwebgraphicsitem.h: Renamed.
2379 * WebKit/qt/QGVLauncher/main.cpp:
2381 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Renamed.
2382 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Renamed.
2384 2009-10-01 Antonio Gomes <tonikitoo@webkit.org>
2386 Reviewed by Simon Hausmann.
2388 https://bugs.webkit.org/show_bug.cgi?id=29248
2389 [Qt] [API] Make it possible to have 'invisible' loads
2391 Make QWebFrame's setHtml and setContent methods to not change
2392 session and global history at all.
2394 * Api/qwebframe.cpp:
2395 (QWebFrame::setHtml):
2396 (QWebFrame::setContent):
2397 * tests/qwebframe/qwebframe.pro:
2398 * tests/qwebframe/tst_qwebframe.cpp:
2400 2009-10-01 Kristian Amlie <kristian.amlie@nokia.com>
2402 Reviewed by Simon Hausmann.
2404 Fixed software input panel support on web input elements.
2406 Send the RequestSoftwareInputPanel event if the element supports focus
2407 and the element is clicked.
2410 (QWebPagePrivate::QWebPagePrivate):
2411 (QWebPagePrivate::mousePressEvent):
2412 (QWebPagePrivate::mouseReleaseEvent):
2415 2009-10-01 Joe Ligman <joseph.ligman@nokia.com>
2417 Reviewed by Simon Hausmann.
2419 Implementation for QWebPage::inputMethodQuery and QWebPagePrivate::inputMethodEvent
2421 https://bugs.webkit.org/show_bug.cgi?id=29681
2423 Some additional changes from Kristian Amlie <kristian.amlie@nokia.com>:
2425 * Fixed surrounding text to exclude preedit string
2426 * Avoid emission of microFocusChanged during setComposition()
2429 (QWebPagePrivate::inputMethodEvent):
2430 (QWebPage::inputMethodQuery):
2431 * WebCoreSupport/EditorClientQt.cpp:
2432 (WebCore::EditorClientQt::respondToChangedSelection):
2433 * tests/qwebpage/tst_qwebpage.cpp:
2434 (tst_QWebPage::inputMethods):
2436 2009-09-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
2438 Reviewed by David Hyatt.
2440 Add the failed URL to the ErrorPageExtension, as it is quite
2441 useful for creating error pages.
2444 * WebCoreSupport/FrameLoaderClientQt.cpp:
2445 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2447 2009-09-29 Andras Becsi <becsi.andras@stud.u-szeged.hu>
2449 Reviewed by Tor Arne Vestbø.
2451 [Qt] Default font size reconciliation to 16px/13px to match other platform's de-facto standard.
2452 This fixes https://bugs.webkit.org/show_bug.cgi?id=19674.
2454 * Api/qwebsettings.cpp:
2455 (QWebSettings::QWebSettings):
2457 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2459 Reviewed by Simon Hausmann.
2461 https://bugs.webkit.org/show_bug.cgi?id=29844
2463 QWebPage dependency autotest fix.
2465 Fix for database() autotest. All opened databases should be removed at
2468 * tests/qwebpage/tst_qwebpage.cpp:
2469 (tst_QWebPage::database):
2471 2009-09-29 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2473 Reviewed by Simon Hausmann.
2475 Some QWebHistory and QWebPage autotest crash fixes.
2477 Some checking for m_mainFrame were added. MainFrame should be created
2478 at some point of QWebPage live cicle.
2480 https://bugs.webkit.org/show_bug.cgi?id=29803
2483 (QWebPage::~QWebPage):
2484 (QWebPage::currentFrame):
2485 (QWebPage::history):
2486 (QWebPage::selectedText):
2487 (QWebPage::updatePositionDependentActions):
2488 * tests/qwebpage/tst_qwebpage.cpp:
2489 (tst_QWebPage::crashTests_LazyInitializationOfMainFrame):
2491 2009-09-29 Kenneth Rohde Christiansen <kenneth@webkit.org>
2493 Reviewed by Simon Hausmann and Tor Arne Vestbø.
2495 Implement QWebPage Extension for error pages, incl.
2496 an example on how to use it in QtLauncher.
2498 Correct our use of ResourceError.
2501 (ExtensionOption::):
2502 (ExtensionOption::ErrorPageExtensionReturn::ErrorPageExtensionReturn):
2503 * QtLauncher/main.cpp:
2504 (WebPage::supportsExtension):
2505 (MainWindow::MainWindow):
2506 (MainWindow::selectElements):
2507 (WebPage::extension):
2508 * WebCoreSupport/FrameLoaderClientQt.cpp:
2509 (WebCore::FrameLoaderClientQt::cancelledError):
2510 (WebCore::FrameLoaderClientQt::blockedError):
2511 (WebCore::FrameLoaderClientQt::cannotShowURLError):
2512 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2513 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2514 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2515 (WebCore::FrameLoaderClientQt::callErrorPageExtension):
2516 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
2517 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
2518 * WebCoreSupport/FrameLoaderClientQt.h:
2520 2009-09-28 Andre Poenitz <andre.poenitz@trolltech.com>
2522 Reviewed by Simon Hausmann.
2524 Compile fix with namespaced Qt.
2526 * Api/qwebinspector_p.h:
2528 2009-09-27 Joe Ligman <joseph.ligman@mindspring.com>
2530 Reviewed by Simon Hausmann.
2532 [Qt] Adding API setFocus and hasFocus to QWebElement. This API is needed for
2533 clients that want to check/set the focus node of the document.
2534 https://bugs.webkit.org/show_bug.cgi?id=29682
2536 * Api/qwebelement.cpp:
2537 (QWebElement::hasFocus):
2538 (QWebElement::setFocus):
2539 * Api/qwebelement.h:
2540 * tests/qwebelement/tst_qwebelement.cpp:
2541 (tst_QWebElement::hasSetFocus):
2543 2009-09-25 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
2545 Reviewed by Simon Hausmann.
2547 [Qt] Make tst_qwebframe work if Qt built without SSL support
2548 https://bugs.webkit.org/show_bug.cgi?id=29735
2550 * tests/qwebframe/tst_qwebframe.cpp: Missing #ifndef blocks added.
2552 2009-09-24 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2554 Reviewed by Simon Hausmann.
2556 [Qt] Update QWebElement API to remove script related methods.
2557 QWebElement::evaluateScript is the only one kept, these are
2558 removed to postpone most of the QtWebKit<->JavaScript API design
2560 https://bugs.webkit.org/show_bug.cgi?id=29708
2562 * Api/qwebelement.cpp:
2563 * Api/qwebelement.h:
2565 - QWebElement::callFunction
2566 - QWebElement::functions
2567 - QWebElement::scriptableProperty
2568 - QWebElement::setScriptableProperty
2569 - QWebElement::scriptableProperties
2570 * tests/qwebelement/tst_qwebelement.cpp:
2571 (tst_QWebElement::evaluateScript):
2573 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2575 Reviewed by Simon Hausmann.
2577 [Qt] Rename QWebElement::evaluateScript
2578 to QWebElement::evaluateJavaScript.
2579 https://bugs.webkit.org/show_bug.cgi?id=29709
2581 * Api/qwebelement.cpp:
2582 (QWebElement::evaluateJavaScript):
2583 * Api/qwebelement.h:
2584 * tests/qwebelement/tst_qwebelement.cpp:
2585 (tst_QWebElement::evaluateJavaScript):
2587 2009-09-25 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2589 Reviewed by Simon Hausmann.
2591 [Qt] Update the stypeProperty API of QWebElement.
2592 https://bugs.webkit.org/show_bug.cgi?id=29711
2594 * Api/qwebelement.cpp:
2595 (QWebElement::styleProperty):
2596 - Merge the stypeProperty and the computedStyleProperty methods
2597 - Remove the default value for the style resolving enum
2598 - Rename ResolveRule to StyleResolveStrategy
2599 (QWebElement::setStyleProperty):
2600 - Remove the priority argument since it is possible to control the
2601 behaviour by adding !important or removing in the value.
2602 * Api/qwebelement.h:
2603 * tests/qwebelement/tst_qwebelement.cpp:
2604 (tst_QWebElement::style):
2605 (tst_QWebElement::computedStyle):
2606 * tests/qwebframe/tst_qwebframe.cpp:
2608 2009-09-24 Jon Honeycutt <jhoneycutt@apple.com>
2610 Reviewed by Alice Liu.
2613 (QWebPagePrivate::QWebPagePrivate):
2614 Pass 0 for new Page constructor argument.
2616 2009-09-24 Martin Smith <msmith@trolltech.com>
2618 Reviewed by Simon Hausmann.
2620 qdoc: Added \brief texts to all the since 4.6 functions.
2622 * Api/qwebhistory.cpp:
2624 2009-09-23 J-P Nurmi <jpnurmi@gmail.com>
2626 Reviewed by Simon Hausmann.
2628 Prevent QWebPage::setView() from changing the viewport size on the fly
2629 in case the view doesn't actually change. QWebPage::setView() is
2630 called upon every QWebGraphicsItem::hoverMoveEvent(), which forced
2631 the viewport size to be equal to the size of the whole graphics view.
2633 https://bugs.webkit.org/show_bug.cgi?id=29676
2636 (QWebPage::setView):
2638 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2640 Reviewed by Simon Hausmann.
2642 [Qt] Crash fix in QWebHistory back and forward methods.
2644 QWebHistory::back() and QWebHistory::forward() were crashing on
2645 ASSERT in WebCore::BackForwardList. The methods should check
2646 canGoBack() and canGoForward() at the beginning.
2648 https://bugs.webkit.org/show_bug.cgi?id=29675
2650 * Api/qwebhistory.cpp:
2651 (QWebHistory::back):
2652 (QWebHistory::forward):
2654 2009-09-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
2656 Reviewed by Simon Hausmann.
2658 [Qt] Bug fix. QWebHistory should call QWebPage::updateNavigationActions
2660 In QWebHistory's methods that change item count or current item call
2661 to QWebPage::updateNavigationActions should be executed.
2662 QWebHistory::clear() and QWebHistory::restorState() were changed.
2663 New helper method, QWebPagePrivate accesor, were created in
2664 QWebHistoryPrivate class.
2665 Two autotest were developed.
2667 https://bugs.webkit.org/show_bug.cgi?id=29246
2669 * Api/qwebhistory.cpp:
2670 (QWebHistory::clear):
2671 (QWebHistory::restoreState):
2672 (QWebHistoryPrivate::page):
2673 * Api/qwebhistory_p.h:
2674 * tests/qwebhistory/tst_qwebhistory.cpp:
2675 (tst_QWebHistory::saveAndRestore_1):
2676 (tst_QWebHistory::clear):
2678 2009-09-23 Norbert Leser <norbert.leser@nokia.com>
2680 Reviewed by Tor Arne Vestbø.
2682 Need to guard QX11Info include with Q_WS_X11.
2683 That class may not be available (in QT 4.5 for Symbian, for instance).
2684 Completes fixes in r48627 and r48604.
2686 * Api/qwebgraphicsitem.cpp:
2689 2009-09-22 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2691 Reviewed by Simon Hausmann.
2693 [Qt] Add default timeout while waiting for signals in QWebPage auto
2695 https://bugs.webkit.org/show_bug.cgi?id=29637
2697 * tests/qwebpage/tst_qwebpage.cpp:
2700 2009-09-22 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2702 Reivewed by Simon Hausmann.
2704 Fix the Qt/Mac build after r48604 (Implement new QWebPageClient class)
2706 There's no QWidget::x11Info() on Mac, and setPlatformPluginWidget()
2707 takes a QWidget*, not a QWebPageClient*
2709 * Api/qwebgraphicsitem.cpp:
2710 (QWebGraphicsItemPrivate::screenNumber):
2712 (QWebViewPrivate::screenNumber):
2714 2009-09-21 Kenneth Rohde Christiansen <kenneth@webkit.org>
2716 Reviewed by Simon Hausmann.
2718 For Qt, platformPageClient() will now return a class derived from
2719 the QWebPageClient, so the patch adapts our Qt hooks to go though
2720 this class and not depend on the QWebView.
2722 * Api/qwebgraphicsitem.cpp:
2723 (QWebGraphicsItemPrivate::scroll):
2724 (QWebGraphicsItemPrivate::update):
2725 (QWebGraphicsItemPrivate::cursor):
2726 (QWebGraphicsItemPrivate::updateCursor):
2727 (QWebGraphicsItemPrivate::screenNumber):
2728 (QWebGraphicsItemPrivate::winId):
2729 (QWebGraphicsItem::event):
2730 (QWebGraphicsItem::setPage):
2731 * Api/qwebgraphicsitem.h:
2733 (QWebPagePrivate::QWebPagePrivate):
2736 (QWebViewPrivate::scroll):
2737 (QWebViewPrivate::update):
2738 (QWebViewPrivate::cursor):
2739 (QWebViewPrivate::updateCursor):
2740 (QWebViewPrivate::screenNumber):
2741 (QWebViewPrivate::winId):
2742 (QWebView::setPage):
2744 * WebCoreSupport/ChromeClientQt.cpp:
2745 (WebCore::ChromeClientQt::repaint):
2746 (WebCore::ChromeClientQt::scroll):
2747 (WebCore::ChromeClientQt::platformPageClient):
2749 2009-09-21 Yael Aharon <yael.aharon@nokia.com>
2751 Reviewed by Simon Hausmann.
2753 https://bugs.webkit.org/show_bug.cgi?id=29609
2754 Build fix for windows when using Qt 4.5.0.
2757 (QWebPage::userAgentForUrl):
2759 2009-09-19 Benjamin Poulain <benjamin.poulain@nokia.com>
2761 Reviewed by Simon Hausmann.
2763 https://bugs.webkit.org/show_bug.cgi?id=29345
2764 The tests of QWebFrame did not use QTRY_VERIFY for
2765 tests involving the event loop.
2767 * tests/qwebframe/tst_qwebframe.cpp:
2768 * tests/util.h: Added. Copy of tests/shared/util.h of Qt
2770 2009-09-19 Jakub Wieczorek <faw217@gmail.com>
2772 Reviewed by Simon Hausmann.
2774 [Qt] Add an autotest stub for QWebGraphicsItem.
2776 It just calls all the functions and makes sure they don't crash.
2778 * tests/qwebgraphicsitem/qwebgraphicsitem.pro: Added.
2779 * tests/qwebgraphicsitem/tst_qwebgraphicsitem.cpp: Added.
2780 (tst_QWebGraphicsItem::qwebgraphicsitem):
2783 2009-09-18 Norbert Leser <norbert.leser@nokia.com>
2785 Reviewed by Eric Seidel.
2787 Corrected the Symbian specific UID3 values to be assigned
2788 from the "unprotected" pool that permits self-signing of
2789 those test and demo executables. (Added new UID3 values
2790 where they were missing for new components.)
2792 * QGVLauncher/QGVLauncher.pro:
2793 * QtLauncher/QtLauncher.pro:
2794 * tests/benchmarks/loading/tst_loading.pro:
2795 * tests/benchmarks/painting/tst_painting.pro:
2796 * tests/qwebelement/qwebelement.pro:
2797 * tests/qwebframe/qwebframe.pro:
2798 * tests/qwebhistory/qwebhistory.pro:
2799 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
2800 * tests/qwebpage/qwebpage.pro:
2801 * tests/qwebplugindatabase/qwebplugindatabase.pro:
2802 * tests/qwebview/qwebview.pro:
2804 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2806 Reviewed by Simon Hausmann.
2808 Make PlatformWindow return something else than PlatformWidget
2809 https://bugs.webkit.org/show_bug.cgi?id=29085
2811 Reflect the rename of platformWindow and it's return type.
2813 * WebCoreSupport/ChromeClientQt.cpp:
2814 (WebCore::ChromeClientQt::platformPageClient):
2815 * WebCoreSupport/ChromeClientQt.h:
2817 2009-09-18 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2819 Reviewed by Simon Hausmann.
2821 [Qt] Add persistence support for configuration options in the
2824 * Api/qwebinspector.cpp:
2825 * QtLauncher/main.cpp:
2827 * WebCoreSupport/InspectorClientQt.cpp:
2828 (WebCore::InspectorClientQt::populateSetting):
2829 (WebCore::InspectorClientQt::storeSetting):
2830 (WebCore::variantToSetting):
2831 (WebCore::settingToVariant):
2833 2009-09-18 Simon Hausmann <simon.hausmann@nokia.com>
2835 Reviewed by Ariya Hidayat.
2837 Fixed a bunch of documentation warnings.
2839 * Api/qwebgraphicsitem.cpp:
2840 * Api/qwebplugindatabase.cpp:
2841 * Api/qwebpluginfactory.cpp:
2842 * Api/qwebsecurityorigin.cpp:
2844 2009-09-18 Warwick Allison <warwick.allison@nokia.com>
2846 Reviewed by Simon Hausmann.
2848 Added a test that console output works.
2850 * tests/qwebpage/tst_qwebpage.cpp:
2851 (ConsolePage::ConsolePage):
2852 (ConsolePage::javaScriptConsoleMessage):
2853 (tst_QWebPage::consoleOutput):
2855 2009-09-17 Kenneth Rohde Christiansen <kenneth@webkit.org>
2857 Reviewed by Simon Hausmann.
2859 Improve documentation for Page Cache.
2861 * Api/qwebsettings.cpp:
2863 2009-09-17 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
2865 Reviewed by Simon Hausmann.
2867 [Qt] Update QWebSettings::setUserStyleSheetUrl() docs and test
2869 https://bugs.webkit.org/show_bug.cgi?id=29081
2871 The documentation now specifies that the URL has to be a local file
2872 or a a data-URL (with utf-8 and base64-encoded data), as these are the
2873 only two schemes that the current code path accepts.
2875 The auto-test has been updated to reflect this limitation.
2877 At a later point we should concider adding API for the new way of
2878 doing both user defined stylesheets and scripts.
2880 * Api/qwebsettings.cpp:
2881 * tests/qwebpage/tst_qwebpage.cpp:
2883 2009-09-17 Janne Koskinen <janne.p.koskinen@digia.com>
2885 Reviewed by Simon Hausmann.
2889 Moved the #ifdefs around _q_cleanupLeakMessages() into the function
2892 QMake is not being able to distinguish between release and debug builds
2893 in Symbian build. This is a Symbian toolchain issue.
2896 (QWebPagePrivate::_q_cleanupLeakMessages):
2900 2009-09-17 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2902 Reviewed by Simon Hausmann.
2904 Small cosmetic documentation fixlet in the QWebInspector.
2906 * Api/qwebinspector.cpp:
2908 2009-09-16 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
2910 Reviewed by Eric Seidel.
2912 Detect and add Windows7 properly to the user agent.
2915 (QWebPage::userAgentForUrl):
2917 2009-09-16 Andras Becsi <andrewbecsi@yahoo.co.uk>
2919 Rubberstamped by Kenneth Christiansen.
2921 [Qt] Build fix for previous changes.
2923 * QGVLauncher/main.cpp:
2926 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
2928 Unreviewed potential Qt < 4.6 build fix.
2930 * QGVLauncher/main.cpp:
2933 2009-09-16 Kenneth Rohde Christiansen <kenneth@webkit.org>
2935 Reviewed by Simon Hausmann.
2937 Add a "Flip effect" to our GraphicsView based launcher.
2939 * QGVLauncher/main.cpp:
2940 (MainView::resizeEvent):
2943 (MainWindow::buildUI):
2945 2009-09-16 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>
2947 Rubber-stamped by Simon Hausmann.
2949 [Qt] Typo fix. Pass the window object to the Format
2950 menu. In this way Qt can free its internal graphical
2951 objects during exit.
2953 * QtLauncher/main.cpp:
2954 (MainWindow::setupUI):
2956 2009-09-16 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
2958 Reviewed by Tor Arne Vestbø.
2960 [Qt] Build break fix on gcc ARM.
2962 * Api/qwebgraphicsitem.cpp:
2963 (QWebGraphicsItemPrivate::_q_doLoadProgress):
2965 2009-09-16 Warwick Allison <warwick.allison@nokia.com>
2967 Reviewed by Simon Hausmann.
2969 Fix a crash in QWebFrame::hasFocus() with a simple null pointer check
2970 when the focused frame is null. We do the same check in other places
2971 where we call kit().
2973 * Api/qwebframe.cpp:
2974 (QWebFrame::hasFocus):
2976 2009-09-16 Jure Repinc <jlp@holodeck1.com>
2978 Reviewed by Simon Hausmann.
2980 Fixed a typo found during translation.
2982 * WebCoreSupport/FrameLoaderClientQt.cpp:
2983 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2985 2009-09-14 Jakub Wieczorek <faw217@gmail.com>
2987 Reviewed by Simon Hausmann.
2989 [Qt] QWebGraphicsItem should check for null QWebPage.
2990 https://bugs.webkit.org/show_bug.cgi?id=29185
2992 Don't crash in QWebGraphicsItem when the page is still null, by
2993 either checking if it's the case or constructing the default one.
2995 * Api/qwebgraphicsitem.cpp:
2996 (QWebGraphicsItem::icon):
2997 (QWebGraphicsItem::setZoomFactor):
2998 (QWebGraphicsItem::zoomFactor):
2999 (QWebGraphicsItem::setGeometry):
3000 (QWebGraphicsItem::load):
3001 (QWebGraphicsItem::setHtml):
3002 (QWebGraphicsItem::toHtml):
3003 (QWebGraphicsItem::setContent):
3004 (QWebGraphicsItem::history):
3005 (QWebGraphicsItem::settings):
3007 2009-09-11 David Boddie <dboddie@trolltech.com>
3009 Reviewed by Simon Hausmann.
3011 Doc: Note that Netscape plugins are only available on desktop platforms.
3013 * docs/qtwebkit.qdoc:
3015 2009-09-11 Martin Smith <msmith@trolltech.com>
3017 Reviewed by Simon Hausmann.
3019 Adjust the name of the contentspage for the documentation
3020 to the new name used in Qt 4.6.
3022 * docs/qtwebkit.qdoc:
3024 2009-09-11 Ariya Hidayat <ariya.hidayat@nokia.com>
3026 Reviewed by Simon Hausmann.
3028 Changed URLs from qtsoftware.com to qt.nokia.com, as part of a general
3031 * Api/qwebpluginfactory.cpp:
3032 * docs/webkitsnippets/simple/main.cpp:
3034 * docs/webkitsnippets/webpage/main.cpp:
3037 2009-09-11 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3039 Reviewed by Simon Hausmann.
3041 Restructure the documentation, both on a file and on a content level.
3043 * Api/qwebdatabase.cpp:
3044 * Api/qwebelement.cpp:
3045 * Api/qwebframe.cpp:
3046 * Api/qwebhistory.cpp:
3047 * Api/qwebhistoryinterface.cpp:
3049 * Api/qwebpluginfactory.cpp:
3050 * Api/qwebsecurityorigin.cpp:
3051 * Api/qwebsettings.cpp:
3053 * docs/qtwebkit.qdoc:
3055 2009-09-11 Yongjun Zhang <yongjun.zhang@nokia.com>
3057 Reviewed by Simon Hausmann.
3059 https://bugs.webkit.org/show_bug.cgi?id=29136
3060 [Qt] emit microFocusChanged() signal when no QWidget-based view is present.
3062 emit microFocusChange() signal regardless of view.
3064 * WebCoreSupport/EditorClientQt.cpp:
3065 (WebCore::EditorClientQt::setInputMethodState):
3067 2009-09-11 Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
3069 Reviewed by Simon Hausmann.
3071 https://bugs.webkit.org/show_bug.cgi?id=28806
3073 [Qt] Make the WebInspector available as a QWidget.
3076 * Api/qwebelement.cpp:
3077 (QWebElement::enclosingElement):
3078 * Api/qwebelement.h:
3079 * Api/qwebinspector.cpp: Added.
3080 * Api/qwebinspector.h: Added.
3081 * Api/qwebinspector_p.h: Added.
3083 (QWebPagePrivate::QWebPagePrivate):
3084 (QWebPagePrivate::setInspector):
3085 (QWebPagePrivate::getOrCreateInspector):
3086 (QWebPagePrivate::inspectorController):
3087 (QWebPage::~QWebPage):
3088 (QWebPage::triggerAction):
3091 * Api/qwebsettings.cpp:
3092 * QtLauncher/main.cpp:
3093 (MainWindow::MainWindow):
3094 * WebCoreSupport/InspectorClientQt.cpp:
3095 (WebCore::InspectorClientWebPage::InspectorClientWebPage):
3096 (WebCore::InspectorClientWebPage::createWindow):
3097 (WebCore::InspectorClientQt::createPage):
3098 (WebCore::InspectorClientQt::showWindow):
3099 (WebCore::InspectorClientQt::closeWindow):
3100 (WebCore::InspectorClientQt::attachWindow):
3101 (WebCore::InspectorClientQt::detachWindow):
3102 (WebCore::InspectorClientQt::updateWindowTitle):
3103 * WebCoreSupport/InspectorClientQt.h:
3104 * docs/webkitsnippets/qtwebkit_qwebinspector_snippet.cpp: Added.
3106 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3108 Reviewed by Eric Seidel.
3110 [Qt] Fix comparison between signed and unsigned integer warnings
3111 https://bugs.webkit.org/show_bug.cgi?id=29162
3113 No functional change.
3115 * Api/qwebelement.cpp:
3116 (QWebElement::findAll):
3117 * Api/qwebhistory.cpp:
3118 (QWebHistory::items):
3119 (QWebHistory::backItems):
3120 (QWebHistory::forwardItems):
3121 (QWebHistory::saveState):
3122 * Api/qwebplugindatabase.cpp:
3123 (QWebPluginDatabase::setSearchPaths):
3124 * WebCoreSupport/ChromeClientQt.cpp:
3125 (WebCore::ChromeClientQt::runOpenPanel):
3126 * WebCoreSupport/FrameLoaderClientQt.cpp:
3127 (WebCore::FrameLoaderClientQt::createPlugin):
3129 2009-09-10 Simon Hausmann <hausmann@webkit.org>
3131 Rubber-stamped by Ariya Hidayat.
3133 Fix a bunch of qdoc warnings: Invalid references, non-standard
3136 * Api/qwebelement.cpp:
3137 * Api/qwebgraphicsitem.cpp:
3138 * Api/qwebsecurityorigin.cpp:
3140 2009-09-10 Simon Hausmann <hausmann@webkit.org>
3142 Reviewed by Ariya Hidayat.
3144 Fix context menu event delivery with QWebGraphicsItem.
3146 Re-implement the correct context menu virtual function using
3147 a QGraphicsSceneContextMenuEvent and forward & handle it in
3150 * Api/qwebgraphicsitem.cpp:
3151 (QWebGraphicsItem::contextMenuEvent):
3152 * Api/qwebgraphicsitem.h:
3154 (QWebPagePrivate::contextMenuEvent):
3158 2009-09-10 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3162 Build fix for QtWebKit for Mac after r48219.
3164 qevent and qstyleoption are QtGui interfaces.
3166 * Api/qwebgraphicsitem.cpp:
3167 * Api/qwebgraphicsitem.h:
3169 2009-09-09 Simon Hausmann <hausmann@webkit.org>
3171 Reviewed by Tor Arne Vestbø.
3173 Call the right base class function QGraphicsWidget::event() instead
3174 of skipping it and using QObject::event() instead.
3176 * Api/qwebgraphicsitem.cpp:
3177 (QWebGraphicsItem::event):
3179 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
3183 Fix comment at Tor Arne Vestbø's request.
3185 * Api/qwebgraphicsitem.cpp:
3186 (QWebGraphicsItem::sceneEvent):
3187 (QWebGraphicsItem::event):
3189 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>
3191 Reviewed by Tor Arne Vestbø.
3193 Implement some virtual event methods so that we can fix
3194 event-related bugs in Qt patch releases.
3196 * Api/qwebgraphicsitem.cpp:
3197 (QWebGraphicsItem::sceneEvent):
3198 (QWebGraphicsItem::event):
3199 * Api/qwebgraphicsitem.h:
3201 2009-09-09 Kenneth Rohde Christiansen <kenneth@webkit.org>, Antonio Gomes <antonio.gomes@openbossa.org>
3203 Reviewed by Simon Hausmann.
3205 Add a new QGraphicsWidget based version of the "QWebView"
3206 under the name "QWebGraphicsItem".
3208 https://bugs.webkit.org/show_bug.cgi?id=28862
3210 Includes an alternative Qt launcher using the QGraphicsView.
3213 * Api/qwebgraphicsitem.cpp: Added.
3214 * Api/qwebgraphicsitem.h: Added.
3216 * QGVLauncher/QGVLauncher.pro: Copied from WebKit/qt/QtLauncher/QtLauncher.pro.
3217 * QGVLauncher/main.cpp: Added.
3218 * WebCoreSupport/ChromeClientQt.cpp:
3219 (WebCore::ChromeClientQt::repaint):
3220 (WebCore::ChromeClientQt::scroll):
3222 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
3224 Unreviewed build fix.
3226 Potential build fix for Qt 4.5
3229 (QWebPagePrivate::mousePressEvent):
3231 2009-09-08 Benjamin Poulain <benjamin.poulain@nokia.com>
3233 Reviewed by Simon Hausmann.
3235 https://bugs.webkit.org/show_bug.cgi?id=29007
3236 Add a test for the signal QWebFrame::javaScriptWindowObjectCleared()
3238 * tests/qwebframe/tst_qwebframe.cpp:
3240 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3242 Reviewed by Simon Hausmann.
3244 [Qt] Fix unused variable warnings
3245 https://bugs.webkit.org/show_bug.cgi?id=29018
3248 (QWebPagePrivate::keyPressEvent):
3249 * WebCoreSupport/FrameLoaderClientQt.cpp:
3250 (WebCore::FrameLoaderClientQt::startDownload):
3251 (WebCore::FrameLoaderClientQt::createFrame):
3253 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3255 Reviewed by Ariya Hidayat.
3257 [Qt] Use the declaration order in initializer lists
3258 https://bugs.webkit.org/show_bug.cgi?id=29017
3260 * Api/qwebframe_p.h:
3262 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
3264 Reviewed by Simon Hausmann.
3266 Add support for handling QGraphicsScene events.
3269 (QWebPagePrivate::mouseMoveEvent):
3270 (QWebPagePrivate::mousePressEvent):
3271 (QWebPagePrivate::mouseDoubleClickEvent):
3272 (QWebPagePrivate::mouseTripleClickEvent):
3273 (QWebPagePrivate::handleClipboard):
3274 (QWebPagePrivate::mouseReleaseEvent):
3275 (QWebPagePrivate::wheelEvent):
3276 (QWebPagePrivate::dragEnterEvent):
3277 (QWebPagePrivate::dragLeaveEvent):
3278 (QWebPagePrivate::dragMoveEvent):
3279 (QWebPagePrivate::dropEvent):
3283 2009-09-08 Kenneth Rohde Christiansen <kenneth@webkit.org>
3285 Reviewed by Simon Hausmann.
3287 [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
3288 https://bugs.webkit.org/show_bug.cgi?id=28865
3290 Clean up the unserCursor hack to use the QCursor set
3291 as a property of the QWidget by WebCore::WidgetQt.
3293 Remove all code that are no longer necessary for getting
3294 cursor change events.
3296 Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
3297 Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07
3302 (QWebViewPrivate::QWebViewPrivate):
3305 2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3307 Reviewed by Simon Hausmann.
3309 [Qt] QtWebKit single API to enable persistency
3310 https://bugs.webkit.org/show_bug.cgi?id=28682
3312 Disable LocalStorage, ApplicationCache, HTML5 offline storage by
3315 If persistency is enabled the default directory for LocalStorage and
3316 ApplicationCache is now based on QDesktopServices::DataLocation and not
3317 QDesktopServices::CacheLocation (as it is expected to keep this data
3318 around after a reboot).
3320 If persistency is enabled initialize HTML5 offline storage as well - this
3321 fixed offline Storage for QtLauncher.
3324 (QWebPagePrivate::QWebPagePrivate):
3325 * Api/qwebsettings.cpp:
3326 (QWebSettings::QWebSettings):
3327 (QWebSettings::enablePersistentStorage):
3328 * Api/qwebsettings.h: Add a new API called enablePersistentStorage
3329 * QtLauncher/main.cpp: Use the new enablePersistentStorage API
3332 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3334 Reviewed by Simon Hausmann.
3336 Speed up the QWebPluginInfo::supportsMimeType() function.
3337 https://bugs.webkit.org/show_bug.cgi?id=27651
3339 Instead of going through the MIME types list constructed with
3340 mimeTypes() function, look up the internal mimeToDescriptions map.
3342 * Api/qwebplugindatabase.cpp:
3343 (QWebPluginInfo::supportsMimeType):
3345 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3347 Reviewed by Simon Hausmann.
3349 Speed up the QWebPluginInfo::mimeTypes() function.
3350 https://bugs.webkit.org/show_bug.cgi?id=27651
3352 Instead of constructing a list of MIME types every time it is called,
3355 * Api/qwebplugindatabase.cpp:
3356 (QWebPluginInfo::mimeTypes):
3357 (QWebPluginInfo::operator=):
3358 * Api/qwebplugindatabase.h:
3359 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
3360 (tst_QWebPluginDatabase::operatorassign_data):
3361 (tst_QWebPluginDatabase::operatorassign):
3363 2009-09-07 Jakub Wieczorek <faw217@gmail.com>
3365 Reviewed by Simon Hausmann.
3367 Remove the private classes from QWebPluginDatabase.
3368 https://bugs.webkit.org/show_bug.cgi?id=27651
3370 Instead, hold the PluginDatabase and PluginPackage objects as class
3371 members and take care of refcounting on our own instead of using RefPtr.
3373 This way we not only made the code cleaner but also got rid of
3374 redundant allocations when constructing null QWebPluginInfo objects.
3376 The private classes have been forward-declared and the d-pointers left
3377 to be on the safe side.
3379 * Api/qwebplugindatabase.cpp:
3380 (QWebPluginInfo::QWebPluginInfo):
3381 (QWebPluginInfo::~QWebPluginInfo):
3382 (QWebPluginInfo::name):
3383 (QWebPluginInfo::description):
3384 (QWebPluginInfo::mimeTypes):
3385 (QWebPluginInfo::path):
3386 (QWebPluginInfo::isNull):
3387 (QWebPluginInfo::setEnabled):
3388 (QWebPluginInfo::isEnabled):
3389 (QWebPluginInfo::operator==):
3390 (QWebPluginInfo::operator!=):
3391 (QWebPluginInfo::operator=):
3392 (QWebPluginDatabase::QWebPluginDatabase):
3393 (QWebPluginDatabase::~QWebPluginDatabase):
3394 (QWebPluginDatabase::plugins):
3395 (QWebPluginDatabase::searchPaths):
3396 (QWebPluginDatabase::setSearchPaths):
3397 (QWebPluginDatabase::addSearchPath):
3398 (QWebPluginDatabase::refresh):
3399 (QWebPluginDatabase::pluginForMimeType):
3400 (QWebPluginDatabase::setPreferredPluginForMimeType):
3401 * Api/qwebplugindatabase.h:
3402 * Api/qwebplugindatabase_p.h: Removed.
3404 2009-09-05 Jakub Wieczorek <faw217@gmail.com>
3406 Reviewed by Eric Seidel.
3408 [Qt] r47424 broke binary compatibility
3409 https://bugs.webkit.org/show_bug.cgi?id=28996
3411 Append the new DnsPrefetchEnabled attribute at the end of the enum.
3413 * Api/qwebsettings.h:
3415 2009-09-04 Mark Mentovai <mark@chromium.org>
3417 Reviewed by Dave Hyatt.
3419 https://bugs.webkit.org/show_bug.cgi?id=28614
3421 Account for scrollbar state changes that occur during layout.
3423 * Api/qwebframe.cpp:
3424 (QWebFrame::setScrollBarPolicy):
3426 Eliminate duplicated (and incorrect) scrollbar mode tracking between
3427 FrameView and ScrollView.
3429 2009-09-04 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3431 Reviewed by Eric Seidel.
3433 [Qt] Fix tst_QWebPage::database autotest failure
3434 https://bugs.webkit.org/show_bug.cgi?id=28961
3436 Make sure that the test case enables the feature before
3437 the feature gets tested
3439 * tests/qwebpage/tst_qwebpage.cpp:
3440 (tst_QWebPage::database):
3442 2009-09-04 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
3444 Reviewed by Eric Seidel.
3446 Any QtWebKit application crashes on exit if the inspector is
3447 used during the session rather then exiting.
3449 If a QWebView has a QWebPage that is destroyed the QWebView
3450 does not update its pointer and will crash the next time
3451 it access the page pointers (such as in its destructor).
3453 InspectorClientView should not call deleteLater when the page
3454 is destroyed because it does not have a parent and is a top
3455 level widget. close() needs to be called so that QApplication
3456 can exit the application if quitOnLastWindowClosed is set
3457 and a InspectorClientView is the last window, otherwise
3458 the application will never exit.
3461 (QWebViewPrivate::_q_pageDestroyed):
3462 (QWebView::setPage):
3464 * WebCoreSupport/InspectorClientQt.cpp:
3465 (WebCore::InspectorClientView::InspectorClientView):
3467 2009-09-03 Adam Barth <abarth@webkit.org>
3469 Reviewed by eric@webkit.org.
3471 https://bugs.webkit.org/show_bug.cgi?id=24696
3473 Stub implementations of mixed content methods of FrameLoaderClient.
3475 * WebCoreSupport/FrameLoaderClientQt.cpp:
3476 (WebCore::FrameLoaderClientQt::didDisplayInsecureContent):
3477 (WebCore::FrameLoaderClientQt::didRunInsecureContent):
3478 * WebCoreSupport/FrameLoaderClientQt.h:
3480 2009-09-03 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3482 Reviewed by Eric Seidel.
3484 [Qt] Add a setting to turn SessionStorage on/off
3485 https://bugs.webkit.org/show_bug.cgi?id=28836
3487 * Api/qwebsettings.cpp:
3488 (QWebSettingsPrivate::apply):
3489 (QWebSettings::QWebSettings):
3490 * Api/qwebsettings.h:
3491 * tests/qwebpage/tst_qwebpage.cpp:
3493 (tst_QWebPage::testOptionalJSObjects):
3495 2009-09-02 Richard Moore <rich@kde.org>
3497 Reviewed by Tor Arne Vestbø.
3499 [Qt] Make sure we relayout the page after evaluating JS
3501 https://bugs.webkit.org/show_bug.cgi?id=28235
3503 QtWebKit does not always seem to reflow the page when evaluating
3504 javascript. This patch changes the way evaluateJavaScript works to
3505 use the frameloader which ensures that this is done properly.
3507 * Api/qwebframe.cpp:
3508 (QWebFrame::evaluateJavaScript):
3509 * tests/qwebframe/tst_qwebframe.cpp:
3511 2009-08-28 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
3513 Reviewed by Holger Freyther.
3515 https://bugs.webkit.org/show_bug.cgi?id=25889
3516 [GTK] scrollbar policy for main frame is not implementable
3518 Add empty implementation for new ChromeClient method.
3520 * WebCoreSupport/ChromeClientQt.h:
3521 (WebCore::ChromeClientQt::scrollbarsModeDidChange):
3523 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3525 Reviewed by Ariya Hidayat.
3527 QWebHistory::clear() modifications.
3529 Clear() method was changed. If QWebHistory is empty (there is no
3530 elements even current) clear() do nothing. If there at least one
3531 element clear() will delete everything apart of current.
3533 New autotests in QWebHistory
3535 New autotests were added to QWebHistory. They should check some crashes
3536 in save and restore state process and clear() method and general
3537 behavior on where QWebHistory::count() == 0 or QWebHistory::count() == 1
3539 Bugzilla: https://bugs.webkit.org/show_bug.cgi?id=28711
3541 * Api/qwebhistory.cpp:
3542 (QWebHistory::clear):
3543 * tests/qwebhistory/tst_qwebhistory.cpp:
3544 (tst_QWebHistory::back):
3545 (tst_QWebHistory::forward):
3546 (tst_QWebHistory::saveAndRestore_crash_1):
3547 (tst_QWebHistory::saveAndRestore_crash_2):
3548 (tst_QWebHistory::saveAndRestore_crash_3):
3549 (tst_QWebHistory::clear):
3551 2009-08-27 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
3553 Reviewed by Ariya Hidayat.
3555 [Qt] Cleanup, old and commented part of source code was removed.
3556 Fix some formatting problems.
3558 https://bugs.webkit.org/show_bug.cgi?id=28712
3560 * Api/qwebhistory_p.h:
3561 (QWebHistoryPrivate::QWebHistoryPrivate):
3563 2009-08-26 Adam Barth <abarth@webkit.org>
3565 Reviewed by Oliver Hunt.
3567 Don't let local files access web URLs
3568 https://bugs.webkit.org/show_bug.cgi?id=28480
3570 * Api/qwebsettings.cpp:
3571 (QWebSettings::QWebSettings):
3573 2009-08-25 Antonio Gomes <antonio.gomes@openbossa.org>
3575 Reviewed by Ariya Hidayat.
3577 Bug 28708 - Make possible to better use ResourceError in FrameLoaderClientQt class.
3579 * Api/qwebframe.cpp:
3580 (QWebFrame::requestedUrl):
3581 * WebCoreSupport/FrameLoaderClientQt.cpp:
3582 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3583 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
3584 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
3585 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
3586 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
3587 * WebCoreSupport/FrameLoaderClientQt.h:
3589 2009-08-22 Adam Barth <abarth@webkit.org>
3591 Revert 47684. We're going to do this later once clients have had a
3592 chance to opt into the setting they like.
3594 * Api/qwebsettings.cpp:
3595 (QWebSettings::QWebSettings):
3597 2009-08-22 Adam Barth <abarth@webkit.org>
3599 Reviewed by Eric Seidel.
3601 Don't let local files access web URLs
3602 https://bugs.webkit.org/show_bug.cgi?id=28480
3604 * Api/qwebsettings.cpp:
3605 (QWebSettings::QWebSettings):
3607 2009-08-19 Aaron Boodman <aa@chromium.org>
3609 Speculative build break fix for qt.
3611 * Api/qwebsecurityorigin.cpp:
3612 (QWebSecurityOrigin::whiteListAccessFromOrigin):
3613 * Api/qwebsecurityorigin.h:
3615 2009-08-19 Aaron Boodman <aa@chromium.org>
3617 Reviewed by David Levin.
3619 https://bugs.webkit.org/show_bug.cgi?id=24853: Provide a way for WebKit clients to
3620 specify a more granular policy for cross-origin XHR access.
3622 * Api/qwebsecurityorigin.cpp: Add API to manipulate origin access whitelists.
3623 (QWebSecurityOrigin::whiteListAccessFromOrigin): Ditto.
3624 (QWebSecurityOrigin::resetOriginAccessWhiteLists): Ditto.
3625 * Api/qwebsecurityorigin.h: Ditto.
3627 2009-08-18 Markus Goetz <Markus.Goetz@nokia.com>
3629 Reviwed by Ariya Hidayat.
3631 [Qt] For prefecthDNS, the pre-fetching has to be enabled in the
3634 * Api/qwebsettings.cpp:
3635 (QWebSettings::QWebSettings):
3636 * Api/qwebsettings.h:
3638 2009-08-17 Darin Adler <darin@apple.com>
3640 Try to fix Qt build again.
3642 * WebCoreSupport/EditorClientQt.cpp: Move "using namespace".
3644 2009-08-17 Darin Adler <darin@apple.com>
3646 Try to fix Qt build.
3648 * WebCoreSupport/EditorClientQt.cpp:
3649 (WebCore::EditorClientQt::shouldShowDeleteInterface):
3650 Use getAttribute(classAttr) instead of className() function.
3652 2009-08-14 Yongjun Zhang <yongjun.zhang@nokia.com>
3654 Reviewed by Simon Hausmann.
3656 RVCT elftran fails to resolve QPainter::staticMetaObject coming with
3657 QWebView::RenderHints property.
3659 This is a temporary fix and will be revereted when the right symbols
3660 exported from Qt lib in S60.
3662 https://bugs.webkit.org/show_bug.cgi?id=28181
3666 2009-08-14 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3668 Reviewed by Simon Hausmann.
3670 [Qt] Public API to configure the storage path for HTML5 localStorage
3671 https://bugs.webkit.org/show_bug.cgi?id=28036
3673 Disables LocalStorage for QtWebKit by default by setting
3674 QWebSettings::LocalStorageEnabled to false.
3676 Sets up a default for the LocalStorage path so that clients would only
3677 need to enable the LocalStorageEnabled setting to turn on LocalStoragre
3680 Turn on LocalStorage support for QtLauncher and the relevant test
3681 since LocalStorage is now disabled by default for QtWebkit.
3685 (initializeApplicationCachePathIfNecessary):
3686 (QWebPagePrivate::QWebPagePrivate):
3687 * Api/qwebsettings.cpp:
3688 (QWebSettingsPrivate::apply):
3689 (QWebSettings::QWebSettings):
3690 (QWebSettings::setLocalStoragePath):
3691 (QWebSettings::localStoragePath):
3692 * Api/qwebsettings.h:
3693 * QtLauncher/main.cpp:
3695 * tests/qwebpage/tst_qwebpage.cpp:
3696 (tst_QWebPage::multiplePageGroupsAndLocalStorage):
3698 2009-08-14 Yael Aharon <yael.aharon@nokia.com>
3700 Reviewed by Simon Hausmann.
3702 [Qt] Allow applications to register their own local URL scheme.
3703 https://bugs.webkit.org/show_bug.cgi?id=28240
3705 * Api/qwebsecurityorigin.cpp:
3706 (QWebSecurityOrigin::addLocalScheme):
3707 (QWebSecurityOrigin::removeLocalScheme):
3708 (QWebSecurityOrigin::localSchemes):
3709 * Api/qwebsecurityorigin.h:
3710 * tests/qwebpage/tst_qwebpage.cpp:
3711 (tst_QWebPage::localURLSchemes):
3713 2009-08-13 Mark Rowe <mrowe@apple.com>
3715 Try and fix the Qt build.
3717 * Api/qwebelement.cpp:
3719 2009-08-13 Kavindra Devi Palaraja <kavindra.palaraja@nokia.com>
3721 Reviewed by Simon Hausmann.
3723 Doc - Some cleanup on the documentation of QWebElement
3725 * Api/qwebelement.cpp:
3727 2009-08-13 Norbert Leser <norbert.leser@nokia.com>
3729 Reviewed by Simon Hausmann.
3731 Symbian target components (library and executable files)
3732 require Unique Identifiers (i.e., UID3).
3733 These identifiers are defined in the respective project
3734 files, conditionally for "symbian" platform.
3736 * QtLauncher/QtLauncher.pro:
3737 * tests/qwebelement/qwebelement.pro:
3738 * tests/qwebframe/qwebframe.pro:
3739 * tests/qwebhistory/qwebhistory.pro:
3740 * tests/qwebhistoryinterface/qwebhistoryinterface.pro:
3741 * tests/qwebpage/qwebpage.pro:
3742 * tests/qwebview/qwebview.pro:
3744 2009-08-12 George Wright <george.wright@torchmobile.com>
3746 Reviewed by Adam Treat.
3748 Initialise zoom levels independent of whether a URL is valid or not to
3749 fix https://bugs.webkit.org/show_bug.cgi?id=28162
3751 * QtLauncher/main.cpp:
3752 (MainWindow::MainWindow):
3754 2009-08-12 Joerg Bornemann <joerg.bornemann@trolltech.com>
3756 Reviewed by Simon Hausmann.
3758 QtWebKit compile fix for Windows CE
3760 There's no getenv on Windows CE, use qgetenv instead.
3763 (qt_drt_overwritePluginDirectories):
3765 2009-08-10 Kavindra Palaraja <kavindra.palaraja@nokia.com>
3767 Reviewed by Simon Hausmann.
3769 Various fixes and improvements to the QWebPluginInfo, QWebPluginDatabase and QWebSettings documentation.
3771 * Api/qwebplugindatabase.cpp:
3772 * Api/qwebsettings.cpp:
3774 2009-08-08 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3776 Reviewed by Simon Hausmann.
3778 Doc: there is no group of explicitly shared classes, only one class uses this.
3780 Explain the implications in the QWebHistoryItem documentation, and get rid
3783 * Api/qwebhistory.cpp:
3785 2009-08-05 Csaba Osztrogonac <oszi@inf.u-szeged.hu>
3787 Reviewed by Simon Hausmann.
3789 [Qt] Fix build error caused by http://trac.webkit.org/changeset/46763
3791 * Api/qwebpluginfactory.h: Export macro added.
3793 2009-08-04 Antonio Gomes <antonio.gomes@openbossa.org>
3795 Reviewed by Simon Hausmann.
3797 [Qt] QWebFrame::requestedUrl method can mis-behave in case of unhandled sslErrors.
3798 https://bugs.webkit.org/show_bug.cgi?id=27804
3800 * Api/qwebframe.cpp:
3801 (QWebFrame::requestedUrl):
3802 * tests/qwebframe/tst_qwebframe.cpp:
3804 2009-08-04 Simon Hausmann <simon.hausmann@nokia.com>
3806 Reviewed by Tor Arne Vestbø.
3808 Rename QWebPlugin to QWebPluginInfo, as discussed on IRC.
3810 * Api/qwebplugindatabase.cpp:
3811 (QWebPluginInfoPrivate::QWebPluginInfoPrivate):
3812 (QWebPluginInfo::QWebPluginInfo):
3813 (QWebPluginInfo::~QWebPluginInfo):
3814 (QWebPluginInfo::name):
3815 (QWebPluginInfo::description):
3816 (QWebPluginInfo::mimeTypes):
3817 (QWebPluginInfo::supportsMimeType):
3818 (QWebPluginInfo::path):
3819 (QWebPluginInfo::isNull):
3820 (QWebPluginInfo::setEnabled):
3821 (QWebPluginInfo::isEnabled):
3822 (QWebPluginInfo::operator==):
3823 (QWebPluginInfo::operator!=):
3824 (QWebPluginInfo::operator=):
3825 (QWebPluginDatabase::plugins):
3826 (QWebPluginDatabase::pluginForMimeType):
3827 (QWebPluginDatabase::setPreferredPluginForMimeType):
3828 * Api/qwebplugindatabase.h:
3829 * Api/qwebplugindatabase_p.h:
3830 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
3831 (tst_QWebPluginDatabase::installedPlugins):
3832 (tst_QWebPluginDatabase::searchPaths):
3833 (tst_QWebPluginDatabase::null_data):
3834 (tst_QWebPluginDatabase::null):
3835 (tst_QWebPluginDatabase::pluginForMimeType):
3836 (tst_QWebPluginDatabase::enabled):
3837 (tst_QWebPluginDatabase::operatorequal_data):
3838 (tst_QWebPluginDatabase::operatorequal):
3839 (tst_QWebPluginDatabase::preferredPlugin):
3841 2009-08-04 Simon Hausmann <simon.hausmann@nokia.com>
3843 Reviewed by Adam Treat.
3845 Replace QWebPlugin::MimeType with a typedef to
3846 QWebPluginFactory::MimeType.
3848 * Api/qwebplugindatabase.cpp:
3849 * Api/qwebplugindatabase.h:
3850 * Api/qwebpluginfactory.cpp:
3851 (QWebPluginFactory::MimeType::operator==):
3852 * Api/qwebpluginfactory.h:
3854 2009-08-04 Jakub Wieczorek <faw217@gmail.com>
3856 Reviewed by Simon Hausmann.
3858 Add QWebPluginDatabase API to the Qt API.
3860 https://bugs.webkit.org/show_bug.cgi?id=27651
3863 * Api/qwebplugindatabase.cpp: Added.
3864 (QWebPluginPrivate::QWebPluginPrivate):
3865 (QWebPluginDatabasePrivate::QWebPluginDatabasePrivate):
3866 (QWebPlugin::MimeType::operator==):
3867 (QWebPlugin::QWebPlugin):
3868 (QWebPlugin::~QWebPlugin):
3870 (QWebPlugin::description):
3871 (QWebPlugin::mimeTypes):
3872 (QWebPlugin::supportsMimeType):
3874 (QWebPlugin::isNull):
3875 (QWebPlugin::setEnabled):
3876 (QWebPlugin::isEnabled):
3877 (QWebPlugin::operator==):
3878 (QWebPlugin::operator!=):
3879 (QWebPlugin::operator=):
3880 (QWebPluginDatabase::QWebPluginDatabase):
3881 (QWebPluginDatabase::~QWebPluginDatabase):
3882 (QWebPluginDatabase::plugins):
3883 (QWebPluginDatabase::defaultSearchPaths):
3884 (QWebPluginDatabase::searchPaths):
3885 (QWebPluginDatabase::setSearchPaths):
3886 (QWebPluginDatabase::addSearchPath):
3887 (QWebPluginDatabase::refresh):
3888 (QWebPluginDatabase::pluginForMimeType):
3889 (QWebPluginDatabase::setPreferredPluginForMimeType):
3890 * Api/qwebplugindatabase.h: Added.
3891 * Api/qwebplugindatabase_p.h: Added.
3892 * Api/qwebsettings.cpp:
3893 (QWebSettings::pluginDatabase):
3894 * Api/qwebsettings.h:
3895 * tests/qwebplugindatabase/qwebplugindatabase.pro: Added.
3896 * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp: Added.
3897 (tst_QWebPluginDatabase::installedPlugins):
3898 (tst_QWebPluginDatabase::searchPaths):
3899 (tst_QWebPluginDatabase::null_data):
3900 (tst_QWebPluginDatabase::null):
3901 (tst_QWebPluginDatabase::pluginForMimeType):
3902 (tst_QWebPluginDatabase::enabled):
3903 (tst_QWebPluginDatabase::operatorequal_data):
3904 (tst_QWebPluginDatabase::operatorequal):
3905 (tst_QWebPluginDatabase::preferredPlugin):
3908 2009-08-03 Balazs Kelemen <kelemen.balazs.3@stud.u-szeged.hu>
3910 Reviewed by Simon Hausmann.
3912 Do memory cleanup when running robotized QtLauncher in debug as well.
3914 * QtLauncher/main.cpp:
3918 2009-07-30 Laszlo Gombos <laszlo.1.gombos@nokia.com>
3920 Reviewed by Tor Arne Vestbø.
3922 [Qt] Initialize HTML5 Application Cache for QtWebKit to a sensible default
3923 https://bugs.webkit.org/show_bug.cgi?id=27866
3926 (initializeApplicationCachePathIfNecessary):
3927 (QWebPagePrivate::QWebPagePrivate):
3929 2009-07-31 Jakob Petsovits <jakob.petsovits@torchmobile.com>
3931 Reviewed by Adam Treat.
3933 Build QtWebKit without benchmark tests for Qt < 4.5.
3934 https://bugs.webkit.org/show_bug.cgi?id=27886
3936 The QBENCHMARK macro is only available from 4.5 on,
3937 so builds for Qt < 4.5 shouldn't try to build those.
3941 2009-07-31 Kenneth Rohde Christiansen <kenneth@webkit.org>
3943 Reviewed by Adam Treat.
3945 Fix warning by migrating use of QString.sprintf(...) to
3946 QString.arg().arg()...
3948 * WebCoreSupport/EditorClientQt.cpp:
3951 2009-07-31 Kenneth Rohde Christiansen <kenneth@webkit.org>
3953 Reviewed by Tor Arne Vestbø.
3955 Expose the Offline Web Application Cache in the Qt API.
3957 * Api/qwebsettings.cpp:
3958 (QWebSettings::QWebSettings):
3959 (QWebSettings::setOfflineWebApplicationCachePath):
3960 (QWebSettings::offlineWebApplicationCachePath):
3961 (QWebSettings::setOfflineWebApplicationCacheQuota):
3962 (QWebSettings::offlineWebApplicationCacheQuota):
3963 * Api/qwebsettings.h:
3965 2009-07-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
3967 Reviewed by Adam Treat.
3969 Add missing Q_OBJECT to class inheriting from QObject.
3971 * tests/qwebframe/tst_qwebframe.cpp:
3973 2009-07-30 Kenneth Rohde Christiansen <kenneth@webkit.org>
3975 Reviewed by Adam Treat.
3979 * tests/qwebframe/tst_qwebframe.cpp:
3981 2009-07-30 Volker Hilsheimer <volker.hilsheimer@nokia.com>
3983 Reviewed by Simon Hausmann.
3985 Fix documentation links to examples.
3989 2009-07-30 Balazs Kelemen <kelemen.balazs.3@stud.u-szeged.hu>
3991 Reviewed by Simon Hausmann.
3993 Allocate MainWindow on heap in robotized QtLauncher as well.
3995 * QtLauncher/main.cpp:
3998 2009-07-29 Kevin McCullough <kmccullough@apple.com>
4000 Reviewed by Darin Adler.
4002 Added foundation work to allow a testing infrastructure for the Web
4005 * WebCoreSupport/InspectorClientQt.cpp:
4006 (WebCore::InspectorClientQt::inspectorWindowObjectCleared):
4007 * WebCoreSupport/InspectorClientQt.h:
4009 2009-07-29 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>
4011 Reviewed by Simon Hausmann.
4013 [Qt] In debug mode, this fix frees cached resources
4014 and other unreferenced objects (by calling the
4015 garbage collector) to remove the LEAK messages.
4016 https://bugs.webkit.org/show_bug.cgi?id=27767
4018 * Api/qwebframe.cpp:
4019 (qt_drt_cache_clear):
4020 * QtLauncher/main.cpp:
4023 2009-07-28 Kenneth Rohde Christiansen <kenneth@webkit.org>
4025 Fix the Qt build by adapting to the changes of ScriptObject.
4027 * Api/qwebelement.cpp:
4028 (setupScriptObject):
4030 2009-07-28 Robert Hogan <robert@roberthogan.net>
4032 Reviewed by Simon Hausmann.
4034 Add WebKit version API to Qt.
4036 Get the current version of WebKit from WebKit/mac/Configurations/Version.xcconfig
4037 at compile time and make it available to Qt applications through
4040 Also amend the User Agent string to place the Safari clause outside
4041 the final bracket and to the end of the UA string.
4043 https://bugs.webkit.org/show_bug.cgi?id=27158
4045 Minor build tweak by Simon Hausmann (adding export macros to new functions).
4048 * Api/qwebkitversion.cpp: Added.
4050 (webKitMajorVersion):
4051 (webKitMinorVersion):
4052 * Api/qwebkitversion.h: Added.
4054 (QWebPage::userAgentForUrl):
4055 * tests/qwebview/tst_qwebview.cpp:
4056 (tst_QWebView::getWebKitVersion):
4058 2009-07-28 Simon Hausmann <simon.hausmann@nokia.com>
4060 Rubber-stamped by Ariya Hidayat.
4062 Fix compilation with the precompiled header.
4064 * WebKit_pch.h: Don't include JSDOMBinding.h and MathObject.h,
4065 as they include AtomicString.h. AtomicString.cpp needs to enable
4066 a #define before including AtomicString.h, which breaks if the PCH
4067 forces the inclusion beforehand.
4069 2009-07-28 Ariya Hidayat <ariya.hidayat@nokia.com>
4071 Reviewed by Simon Hausmann.
4073 Added tests to ensure that scroll position can be changed
4074 programmatically, even when the scroll bar policy is set to off.
4076 * tests/qwebframe/tst_qwebframe.cpp:
4078 2009-07-28 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
4080 Reviewed by Simon Hausmann.
4082 Fix a few compilation warnings in the QWebFrame tests.
4084 * tests/qwebframe/tst_qwebframe.cpp:
4086 2009-07-28 Andre Pedralho <andre.pedralho@openbossa.org>
4088 Reviewed by Simon Hausmann.
4090 Fixed tst_QWebFrame::hasSetFocus test which was using
4091 an undefined resource.
4092 https://bugs.webkit.org/show_bug.cgi?id=27512
4094 * tests/qwebframe/tst_qwebframe.cpp:
4096 2009-07-28 Simon Hausmann <simon.hausmann@nokia.com>
4098 Reviewed by Ariya Hidayat.
4100 Make it possible to pass relative file names to QtLauncher.
4102 * QtLauncher/main.cpp:
4103 (MainWindow::MainWindow):
4105 2009-07-27 Alexey Proskuryakov <ap@webkit.org>
4107 Reviewed by Darin Adler.
4109 https://bugs.webkit.org/show_bug.cgi?id=27735
4110 Give a helpful name to JSLock constructor argument
4112 * Api/qwebframe.cpp:
4113 (QWebFrame::addToJavaScriptWindowObject):
4115 2009-07-27 Volker Hilsheimer <volker.hilsheimer@nokia.com>
4117 Reviewed by Simon Hausmann.
4119 QWebView's "enabled" parameter should default to true, as with QGraphicsView and
4122 * Api/qwebview.cpp: Add reference to QPainter::renderHints().
4123 * Api/qwebview.h: Add default for enabled argument.
4125 2009-07-26 Kavindra Palaraja <kavindra.palaraja@nokia.com>
4127 Reviewed by Simon Hausmann.
4129 More documentation cleanups in the QWebElement class overview.
4131 * Api/qwebelement.cpp:
4133 2009-07-26 Kavindra Palaraja <kavindra.palaraja@nokia.com>
4135 Reviewed by Simon Hausmann.
4137 Clean up documentation of QWebElement's findFirst and findAll functions,
4138 as well as their QWebFrame counterparts.
4140 * Api/qwebelement.cpp:
4141 * Api/qwebframe.cpp:
4143 2009-07-26 Kavindra Palaraja <kavindra.palaraja@nokia.com>
4145 Reviewed by Simon Hausmann.
4147 Various documentation cleanups
4149 * Fixed qdoc warnings
4150 * Hide QWebNetworkInterface from the class overview
4151 * Mention QWebElement in the module overview
4154 * Api/qwebframe.cpp:
4155 * Api/qwebnetworkinterface.cpp:
4157 * docs/qtwebkit.qdoc:
4159 2009-07-26 Kavindra Palaraja <kavindra.palaraja@nokia.com>
4161 Reviewed by Simon Hausmann.
4163 Added missing class diagram referenced from the docs, taken from the Qt
4166 * docs/qtwebkit.qdocconf: Register the image directory with
4168 * docs/qwebview-diagram.png: Added.
4170 2009-07-24 Antonio Gomes <antonio.gomes@openbossa.org>
4172 Reviewed by Adam Treat.
4174 As per discussion on IRC, changed originalUrl by requestedUrl.
4176 * Api/qwebframe.cpp:
4177 (QWebFrame::requestedUrl):
4179 * tests/qwebframe/tst_qwebframe.cpp:
4181 2009-07-24 Andre Pedralho <andre.pedralho@openbossa.org>
4183 Reviewed by Adam Treat.
4185 Removed void QWebFrame::renderContents(...) and added the Q_PROPERTY
4186 clipRenderToViewport to control whether QWebFrame::render would call
4187 FrameView::paintContents rather than FrameView::paint and do not clip
4188 the frame content to viewport.
4191 * Api/qwebframe.cpp:
4192 (QWebFramePrivate::renderPrivate):
4193 (QWebFrame::clipRenderToViewport):
4194 (QWebFrame::setClipRenderToViewport):
4196 * Api/qwebframe_p.h:
4197 (QWebFramePrivate::QWebFramePrivate):
4198 * tests/qwebframe/tst_qwebframe.cpp:
4200 2009-07-24 Antonio Gomes <antonio.gomes@openbossa.org>
4202 Reviewed by Simon Hausmann.
4204 [QT] Implement originalUrl getter method to the API
4205 https://bugs.webkit.org/show_bug.cgi?id=25867
4207 * Api/qwebframe.cpp:
4208 (QWebFrame::originalUrl):
4210 * tests/qwebframe/qwebframe.qrc:
4211 * tests/qwebframe/test1.html: Added.
4212 * tests/qwebframe/test2.html: Added.
4213 * tests/qwebframe/tst_qwebframe.cpp:
4215 2009-07-24 Kenneth Rohde Christiansen <kenneth@webkit.org>
4219 Fix build issue introduced in 46344
4220 ([Bug 22700] ApplicationCache should have size limit)
4222 Remove method only added to the Qt ChromeClient.
4224 * WebCoreSupport/ChromeClientQt.h:
4226 2009-07-24 Andrei Popescu <andreip@google.com>
4228 Reviewed by Anders Carlsson.
4230 ApplicationCache should have size limit
4231 https://bugs.webkit.org/show_bug.cgi?id=22700
4233 * WebCoreSupport/ChromeClientQt.cpp:
4234 (WebCore::ChromeClientQt::reachedMaxAppCacheSize):
4235 Adds empty implementation of the reachedMaxAppCacheSize callback.
4236 * WebCoreSupport/ChromeClientQt.h:
4238 2009-07-23 Laszlo Gombos <laszlo.1.gombos@nokia.com>
4240 Reviewed by Simon Hausmann.
4242 [Qt] Add simple proxy support for QtLauncher
4243 https://bugs.webkit.org/show_bug.cgi?id=27495
4245 Picks up proxy settings from the http_proxy environment
4248 * QtLauncher/QtLauncher.pro: Add QtNetwork dependency for all
4250 * QtLauncher/main.cpp:
4251 (MainWindow::MainWindow):
4253 2009-07-23 Simon Hausmann <simon.hausmann@nokia.com>
4255 Reviewed by Holger Freyther.
4257 Added a testcase to verify that cached methods in the QOBject bindings
4258 remain alife even after garbage collection.
4260 * tests/qwebpage/tst_qwebpage.cpp:
4261 (tst_QWebPage::protectBindingsRuntimeObjectsFromCollector):
4263 2009-07-23 Zoltan Herczeg <zherczeg@inf.u-szeged.hu>
4265 Reviewed by Simon Hausmann.
4267 Fixing two issues related to QtLauncher
4268 - MainWindow objects are not always freed after close
4269 - JavaScript window.close() sometimes crashes
4270 https://bugs.webkit.org/show_bug.cgi?id=27601
4272 * QtLauncher/main.cpp:
4273 (MainWindow::MainWindow):
4276 2009-07-21 Volker Hilsheimer <volker.hilsheimer@nokia.com>
4278 Reviewed by Simon Hausmann.
4280 Various improvements to the API documentation.
4282 * Updated link to W3c Database spec
4283 * Formatting fixes, cleanups
4284 * Add missing \since 4.6 tags to QWebPage::frameAt
4285 * Extend QWebDatabase and QWebSecurityOrigin docs.
4287 * Api/qwebdatabase.cpp:
4289 * Api/qwebsecurityorigin.cpp:
4292 2009-07-21 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
4294 Rubber-stamped by Simon Hausmann.
4296 Remove preliminary-tag from QWebElement
4298 * Api/qwebelement.cpp:
4300 2009-07-20 Kenneth Rohde Christiansen <kenneth@webkit.org>
4302 Reviewed by Eric Seidel.
4304 Fix Qt code to follow the WebKit Coding Style.
4306 * Api/qcookiejar.cpp:
4307 (QCookieJar::setCookieJar):
4308 (QCookieJar::cookieJar):
4310 * Api/qwebdatabase.cpp:
4311 (QWebDatabase::QWebDatabase):
4312 (QWebDatabase::removeDatabase):
4313 * Api/qwebdatabase.h:
4314 * Api/qwebdatabase_p.h:
4315 * Api/qwebelement.h:
4316 * Api/qwebframe.cpp:
4320 * Api/qwebframe_p.h:
4321 * Api/qwebhistory.cpp:
4322 (QWebHistory::clear):
4323 * Api/qwebhistory.h:
4324 * Api/qwebhistory_p.h:
4325 * Api/qwebhistoryinterface.cpp:
4326 (gCleanupInterface):
4327 (QWebHistoryInterface::setDefaultInterface):
4328 (QWebHistoryInterface::defaultInterface):
4329 (QWebHistoryInterface::QWebHistoryInterface):
4330 * Api/qwebhistoryinterface.h:
4331 * Api/qwebnetworkinterface.cpp:
4332 (QWebNetworkManager::started):
4333 (QWebNetworkManager::finished):
4334 (QWebNetworkInterfacePrivate::parseDataUrl):
4335 (QWebNetworkInterface::addJob):
4336 (WebCoreHttp::onResponseHeaderReceived):
4337 (WebCoreHttp::onReadyRead):
4338 * Api/qwebnetworkinterface.h:
4339 * Api/qwebnetworkinterface_p.h:
4341 (QWebPagePrivate::editorCommandForWebActions):
4342 (QWebPagePrivate::createContextMenu):
4343 (QWebPagePrivate::focusInEvent):
4344 (QWebPage::fixedContentsSize):
4345 (QWebPage::setContentEditable):
4346 (QWebPage::swallowContextMenuEvent):
4347 (QWebPage::findText):
4350 * Api/qwebpluginfactory.h:
4351 * Api/qwebsecurityorigin.h:
4352 * Api/qwebsecurityorigin_p.h:
4353 * Api/qwebsettings.cpp:
4354 (QWebSettingsPrivate::QWebSettingsPrivate):
4355 (QWebSettingsPrivate::apply):
4356 (QWebSettings::globalSettings):
4357 (QWebSettings::QWebSettings):
4358 (QWebSettings::fontSize):
4359 (QWebSettings::setUserStyleSheetUrl):
4360 (QWebSettings::setDefaultTextEncoding):
4361 (QWebSettings::setIconDatabasePath):
4362 (QWebSettings::iconDatabasePath):
4363 (QWebSettings::iconForUrl):
4364 (QWebSettings::setWebGraphic):
4365 (QWebSettings::setFontFamily):
4366 (QWebSettings::fontFamily):
4367 (QWebSettings::testAttribute):
4368 (qt_websettings_setLocalStorageDatabasePath):
4369 * Api/qwebsettings.h:
4371 (QWebView::setPage):
4375 2009-07-20 Holger Hans Peter Freyther <zecke@selfish.org>
4377 Reviewed by Simon Hausmann.
4379 [Qt] Add test for loading webpages...
4381 Performance test for loading webpages. Wait for the loadFinished
4382 signal to be fired. This should include a non empty layout.
4384 * tests/benchmarks/loading/tst_loading.cpp: Added.
4386 (tst_Loading::init):
4387 (tst_Loading::cleanup):
4388 (tst_Loading::load_data):
4389 (tst_Loading::load):
4390 * tests/benchmarks/loading/tst_loading.pro: Added.
4393 2009-07-20 Holger Hans Peter Freyther <zecke@selfish.org>
4395 Reviewed by Simon Hausmann.
4397 [Qt] Add a test case for drawing a simple viewrect to a QPixmap
4399 * tests/benchmarks/painting/tst_painting.cpp: Added.
4401 (tst_Painting::init):
4402 (tst_Painting::cleanup):
4403 (tst_Painting::paint_data):
4404 (tst_Painting::paint):
4405 * tests/benchmarks/painting/tst_painting.pro: Added.
4408 2009-07-20 Laszlo Gombos <laszlo.1.gombos@nokia.com>
4410 Reviewed by Holger Freyther.
4412 [Qt] Add an option for QtLauncher to build without QtUiTools dependency
4413 https://bugs.webkit.org/show_bug.cgi?id=27438
4415 Based on Norbert Leser's work.
4417 * QtLauncher/main.cpp:
4418 (WebPage::createPlugin):
4420 2009-07-17 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
4422 Reviewed by Adam Treat.
4426 * Api/qcookiejar.cpp:
4427 (QCookieJarPrivate::QCookieJarPrivate):
4429 (QCookieJar::cookieJar):
4430 * Api/qwebelement.cpp:
4431 (QWebElement::functions):
4432 (QWebElement::scriptableProperties):
4433 * Api/qwebframe.cpp:
4434 (QWebFrame::metaData):
4435 (QWebFrame::scrollBarValue):
4436 (QWebFrame::scroll):
4437 (QWebFrame::scrollPosition):
4439 * Api/qwebnetworkinterface.cpp:
4440 (decodePercentEncoding):
4441 (QWebNetworkRequestPrivate::init):
4442 (QWebNetworkRequestPrivate::setURL):
4443 (QWebNetworkRequest::QWebNetworkRequest):
4444 (QWebNetworkRequest::operator=):
4445 (QWebNetworkRequest::setUrl):
4446 (QWebNetworkRequest::setHttpHeader):
4447 (QWebNetworkRequest::httpHeaderField):
4448 (QWebNetworkRequest::setHttpHeaderField):
4449 (QWebNetworkRequest::setPostData):
4450 (QWebNetworkJob::setResponse):
4451 (QWebNetworkJob::frame):
4452 (QWebNetworkManager::add):
4453 (QWebNetworkManager::cancel):
4454 (QWebNetworkManager::started):
4455 (QWebNetworkManager::data):
4456 (QWebNetworkManager::finished):
4457 (QWebNetworkManager::addHttpJob):
4458 (QWebNetworkManager::cancelHttpJob):
4459 (QWebNetworkManager::httpConnectionClosed):
4460 (QWebNetworkInterfacePrivate::sendFileData):
4461 (QWebNetworkInterfacePrivate::parseDataUrl):
4462 (QWebNetworkManager::doWork):
4463 (QWebNetworkInterface::setDefaultInterface):
4464 (QWebNetworkInterface::defaultInterface):
4465 (QWebNetworkInterface::QWebNetworkInterface):
4466 (QWebNetworkInterface::addJob):
4467 (QWebNetworkInterface::cancelJob):
4468 (WebCoreHttp::WebCoreHttp):
4469 (WebCoreHttp::request):
4470 (WebCoreHttp::scheduleNextRequest):
4471 (WebCoreHttp::getConnection):
4472 (WebCoreHttp::onResponseHeaderReceived):
4473 (WebCoreHttp::onReadyRead):
4474 (WebCoreHttp::onRequestFinished):
4475 (WebCoreHttp::onAuthenticationRequired):
4476 (WebCoreHttp::onProxyAuthenticationRequired):
4478 (QWebPagePrivate::QWebPagePrivate):
4479 (QWebPagePrivate::mouseReleaseEvent):
4480 (QWebPagePrivate::inputMethodEvent):
4481 (QWebPagePrivate::shortcutOverrideEvent):
4482 (QWebPage::inputMethodQuery):
4483 (QWebPage::javaScriptPrompt):
4484 (QWebPage::updatePositionDependentActions):
4485 (QWebPage::userAgentForUrl):
4486 (QWebPagePrivate::_q_onLoadProgressChanged):
4487 (QWebPage::totalBytes):
4488 (QWebPage::bytesReceived):
4489 * Api/qwebsettings.cpp:
4490 (QWebSettings::iconForUrl):
4491 (QWebSettings::setObjectCacheCapacities):
4493 (QWebView::paintEvent):
4494 (QWebView::changeEvent):
4496 2009-07-17 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
4498 Reviewed by Simon Hausmann.
4500 Overwrite the plugin directories for the DRT.
4501 Part of https://bugs.webkit.org/show_bug.cgi?id=27215
4504 (qt_drt_overwritePluginDirectories): Only set the plugin directories
4505 to the ones in the QTWEBKIT_PLUGIN_PATH environment variable.
4507 2009-07-16 Xiaomei Ji <xji@chromium.org>
4509 Reviewed by Dan Bernstein.
4511 This is the 2nd part of fixing "RTL: tooltip does not get its directionlity from its element's."
4512 https://bugs.webkit.org/show_bug.cgi?id=24187
4514 Add one extra parameter to the callee of HitTestResult::title() due to the signature change.
4516 * Api/qwebframe.cpp:
4517 (QWebHitTestResultPrivate::QWebHitTestResultPrivate): Add direction as a parameter to the callee of HitTestResult::title().
4518 * WebCoreSupport/ChromeClientQt.cpp:
4519 (WebCore::ChromeClientQt::mouseDidMoveOverElement): Add direction as a parameter to the callee of HitTestResult::title().
4521 2009-07-16 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
4523 Reviewed by Adam Treat.
4525 Add new action to qwebpage to reload without cache.
4528 (QWebPagePrivate::updateAction):
4529 (QWebPagePrivate::updateNavigationActions):
4530 (QWebPage::triggerAction):
4533 2009-07-16 Xiaomei Ji <xji@chromium.org>
4535 Reviewed by Darin Adler.
4537 Fix tooltip does not get its directionality from its element's directionality.
4538 https://bugs.webkit.org/show_bug.cgi?id=24187
4540 Per mitz's suggestion in comment #6, while getting the plain-text
4541 title, we also get the directionality of the title. How to handle
4542 the directionality is up to clients. Clients could ignore it,
4543 or use attribute or unicode control characters to display the title
4547 * WebCoreSupport/ChromeClientQt.cpp:
4548 (WebCore::ChromeClientQt::setToolTip): Add directionality as 2nd parameter to setToopTip() (without handling it yet).
4549 * WebCoreSupport/ChromeClientQt.h: Add directionality as 2nd parameter to setToolTip().
4551 2009-07-15 Yael Aharon <yael.aharon@nokia.com>
4553 Reviewed by Simon Hausmann.
4555 https://bugs.webkit.org/show_bug.cgi?id=27285
4557 When the user clicks a link with a target attribute, the newly created window should be visible.
4558 Make new windows created in Qtlauncher visible.
4560 * QtLauncher/main.cpp:
4561 (WebPage::createWindow):
4563 2009-07-14 Adam Treat <adam.treat@torchmobile.com>
4565 Reviewed by Zack Rusin.
4567 https://bugs.webkit.org/show_bug.cgi?id=26983
4569 The default constructed values for QSize and WebCore::IntSize are different. The former
4570 produces an invalid size whereas the latter produces a size of zero. This was causing
4571 a layout to be triggered when constructing a view and an assert to be hit. This patch fixes
4572 the crash by taking care not to cause an unnecessary layout triggered by ScrollView::setFixedLayoutSize.
4574 * WebCoreSupport/FrameLoaderClientQt.cpp:
4575 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
4577 2009-07-13 Simon Hausmann <simon.hausmann@nokia.com>
4579 Reviewed by Ariya Hidayat.
4581 Fix qdoc warnings for QWebPage::shouldInterruptJavaScript() and mention
4582 how to re-implement it.
4586 2009-07-13 Simon Hausmann <hausmann@webkit.org>
4588 Reviewed by Ariya Hidayat.
4590 Fix crash with plugins when the plugin stream is cancelled.
4592 Similar to r26667 handle the case where didReceiveResponse on the
4593 plugin view results in failure to set up the stream and
4594 setMainDocumentError being called instead. This will set the
4595 m_pluginView back to 0 and we need check for it before calling
4598 This was triggered by consecutive execution of
4599 LayoutTests/plugins/return-error-from-new-stream-callback-in-full-frame-plugin.html
4600 followed by LayoutTests/scrollbars/scrollbar-crash-on-refresh.html
4602 * WebCoreSupport/FrameLoaderClientQt.cpp:
4603 (WebCore::FrameLoaderClientQt::committedLoad):
4605 2009-07-13 Simon Hausmann <hausmann@webkit.org>
4607 Reviewed by Ariya Hidayat.
4609 Added QWebDatabase::removeAllDatabases, as a way to delete all
4610 databases from the offline storage path.
4614 * Api/qwebdatabase.cpp:
4615 (QWebDatabase::removeAllDatabases):
4616 * Api/qwebdatabase.h:
4618 2009-07-13 Simon Hausmann <hausmann@webkit.org>
4620 Reviewed by Ariya Hidayat.
4622 Added loadStarted() and loadFinished() signals to QWebFrame,
4623 to allow load tracking of individual frames, as opposed to
4624 QWebPage's loadStarted/loadFinished signals that are emitted
4625 whenever _any_ child frame loads/finishes.
4627 * Api/qwebframe.cpp: Document new signals.
4628 * Api/qwebframe.h: Add new signals.
4629 * WebCoreSupport/FrameLoaderClientQt.cpp:
4630 (WebCore::FrameLoaderClientQt::setFrame): Connect new signals.
4632 2009-07-13 Simon Hausmann <hausmann@webkit.org>
4634 Reviewed by Ariya Hidayat.
4636 Add hooks for the GCController JavaScript interface needed by the
4639 Fixed sort order of includes in qwebframe.cpp.
4641 * Api/qwebframe.cpp:
4642 (qt_drt_javaScriptObjectsCount):
4643 (qt_drt_garbageCollector_collect):
4644 (qt_drt_garbageCollector_collectOnAlternateThread):
4646 2009-07-13 Simon Hausmann <hausmann@webkit.org>
4648 Reviewed by Ariya Hidayat.
4650 Add hooks for the GCController JavaScript interface needed by the
4653 Fixed sort order of includes in qwebframe.cpp.
4655 * Api/qwebframe.cpp:
4656 (qt_drt_javaScriptObjectsCount):
4657 (qt_drt_garbageCollector_collect):
4658 (qt_drt_garbageCollector_collectOnAlternateThread):
4660 2009-07-12 Brent Fulgham <bfulgham@gmail.com>
4662 Speculative build fix after http://trac.webkit.org/changeset/45786.
4664 * WebCoreSupport/ChromeClientQt.cpp:
4665 (WebCore::ChromeClientQt::addMessageToConsole):
4666 * WebCoreSupport/ChromeClientQt.h:
4668 2009-07-10 Yael Aharon <yael.aharon@nokia.com>
4670 Reviewed by Holger Freyther.
4672 https://bugs.webkit.org/show_bug.cgi?id=27136
4674 Fix a bug where webkit hangs when executing infinite JavaScript loop.
4677 (QWebPage::shouldInterruptJavaScript):
4679 * WebCoreSupport/ChromeClientQt.cpp:
4680 (WebCore::ChromeClientQt::shouldInterruptJavaScript):
4681 * tests/qwebpage/tst_qwebpage.cpp:
4682 (JSTestPage::JSTestPage):
4683 (JSTestPage::shouldInterruptJavaScript):
4684 (tst_QWebPage::infiniteLoopJS):
4686 2009-07-10 Simon Hausmann <simon.hausmann@nokia.com>
4688 Reviewed by Holger Freyther.
4690 https://bugs.webkit.org/show_bug.cgi?id=27108
4692 Fix crash when in frame tree of a new frame before the new frame
4693 has been installed in the frame tree, similar to r35088.
4695 After calling Frame::init() the frame it may have been removed from the
4696 frame tree again through JavaScript. Detect this by checking the page()
4699 To make this check safe the Frame::init() code was moved into
4700 QWebFrameData's constructor, where a RefPtr holds a reference to the frame.
4701 After the check back in FrameLoaderClientQt we would hold the single
4702 reference left and after release() the frame, its frame loader, its
4703 client as well as the QWebFrame should have disappeared then.
4705 * Api/qwebframe.cpp:
4706 (QWebFramePrivate::init): Only call Frame::init here, the rest is
4707 done in QWebFrameData's constructor.
4708 (QWebFrame::QWebFrame):
4709 * Api/qwebframe_p.h: Adjust declaration.
4710 (QWebFrameData::QWebFrameData): Create the Frame here.
4712 (QWebPagePrivate::createMainFrame): Adjust and simplify
4713 to new QWebFrame constructor.
4714 * WebCoreSupport/FrameLoaderClientQt.cpp:
4715 (WebCore::FrameLoaderClientQt::createFrame): Adjust to
4716 new QWebFrame construction using QWebFrameData and add the
4717 check like in r35088.
4719 2009-07-09 Beth Dakin <bdakin@apple.com>
4721 Reviewed by Dave Hyatt.
4723 Make Widget RefCounted to fix:
4725 <rdar://problem/7038831> REGRESSION (TOT): In Mail, a crash occurs
4726 at WebCore::Widget::afterMouseDown() after clicking To Do's close
4728 <rdar://problem/6978804> WER #16: Repro Access Violation in
4729 WebCore::PluginView::bindingInstance (1310178023)
4731 <rdar://problem/6991251> WER #13: Crash in WebKit!
4732 WebCore::PluginView::performRequest+203 (1311461169)
4734 * WebCoreSupport/FrameLoaderClientQt.cpp:
4735 (WebCore::FrameLoaderClientQt::createPlugin):
4736 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
4737 * WebCoreSupport/FrameLoaderClientQt.h:
4739 2009-07-08 Pradeepto Bhattacharya <pradeepto@kde.org>
4741 Reviewed by Ariya Hidayat.
4745 * WebCoreSupport/FrameLoaderClientQt.h: Removed the slot slotCallPolicyFunction().
4747 2009-07-08 Simon Hausmann <hausmann@webkit.org>
4749 Reviewed by Tor Arne Vestbø.
4751 https://bugs.webkit.org/show_bug.cgi?id=27080
4753 Fix DRT instability issues with fast/loader/submit-form-while-parsing-2.html
4755 When the form is submitted we call the policy function in the frame
4756 loader delayed with a queued connection. That queued connection
4757 sometimes interferes with the javascript timeout set in the testcase.
4759 Eliminate the entire delayed policy function mechanism and instead always
4760 call back directly, like in the other ports. In most other places we called
4761 the slot directly anyway.
4763 * WebCoreSupport/FrameLoaderClientQt.cpp:
4764 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt): Remove m_policyFunction.
4765 (WebCore::FrameLoaderClientQt::callPolicyFunction): Call the policy function directly instead
4766 of emitting the queued signal.
4767 (WebCore::FrameLoaderClientQt::cancelPolicyCheck): Call callPolicyFunction directly.
4768 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm): Ditto.
4769 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType): Ditto.
4770 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction): Ditto.
4771 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction): Ditto.
4772 * WebCoreSupport/FrameLoaderClientQt.h: Remove m_policyFunction as well as the associated
4775 2009-07-07 Simon Hausmann <hausmann@webkit.org>
4777 Reviewed by Holger Freyther.
4779 Add Qt DRT hook for clearing the frame name.
4781 * Api/qwebframe.cpp:
4782 (qt_drt_clearFrameName):
4784 2009-07-05 Simon Hausmann <hausmann@webkit.org>
4786 Reviewed by Holger Freyther.
4788 Fix two qdoc warnings.
4790 Added missing \property for QWebFrame::hasFocus and added \a
4791 tag for pos of QWebPage::frameAt.
4793 * Api/qwebframe.cpp:
4796 2009-07-04 Holger Hans Peter Freyther <zecke@selfish.org>
4798 Reviewed by Simon Hausmann.
4800 Use the recently introduced FocusController::setFocused
4802 Use the recently introduced FocusController::setFocused
4803 in the Qt platform. The SelectionController will be updated
4804 from within the FocusController now.
4807 (QWebPagePrivate::focusInEvent):
4808 (QWebPagePrivate::focusOutEvent):
4810 2009-07-02 Simon Hausmann <simon.hausmann@nokia.com>
4812 Reviewed by Ariya Hidayat.
4814 Improve documentation of QWebFrame::setFocus and hasFocus()
4815 Added missing Q_PROPERTY for QWebFrame::hasFocus.
4817 * Api/qwebframe.cpp: Clarify the docs.
4818 * Api/qwebframe.h: add Q_PROPERTY(focus).
4820 2009-07-02 Joe Ligman <joseph.ligman@nokia.com>
4822 Reviewed by Simon Hausmann.
4824 Bug 26855: [Qt] New methods for QWebFrame to check and set focus.
4826 Added new public methods QWebFrame::hasFocus() and QWebFrame::setFocus()
4829 * Api/qwebframe.cpp:
4830 (QWebFrame::hasFocus):
4831 (QWebFrame::setFocus):
4833 * tests/qwebframe/tst_qwebframe.cpp:
4835 2009-07-01 Robert Hogan <robert@roberthogan.net>
4839 Fix Qt segfault when javascript disabled.
4840 If clients call addToJavaScriptWindowObject even though JavascriptEnabled is false
4841 webkit will segfault on the assert:
4842 ASSERTION FAILED: _rootObject
4843 (../../../WebCore/bridge/runtime.cpp:52
4844 JSC::Bindings::Instance::Instance(WTF::PassRefPtr<JSC::Bindings::RootObject>))
4845 Fix is to ensure JavaScript is enabled when client calls addToJavaScriptWindowObject.
4847 https://bugs.webkit.org/show_bug.cgi?id=26906
4849 * Api/qwebframe.cpp:
4850 (QWebFrame::addToJavaScriptWindowObject):
4852 2009-07-01 Jakub Wieczorek <faw217@gmail.com>
4854 Reviewed by Simon Hausmann.
4856 [Qt] Move some API headers from WebCore.pro to headers.pri so that they
4857 get installed when running make install from the build directory.
4861 2009-07-01 Balazs Kelemen <kelemen.balazs.3@stud.u-szeged.hu>
4863 Reviewed by Simon Hausmann.
4865 Fixed robotized QtLauncher to work when there is no index.html in the user's home.
4867 * QtLauncher/main.cpp:
4870 2009-06-30 Brian Weinstein <bweinstein@apple.com>
4872 Reviewed by Adam Roben.
4874 Renamed scrollbarUnderPoint to scrollbarAtPoint to follow conventions.
4877 (QWebPage::swallowContextMenuEvent):
4879 2009-06-30 Joe Ligman <joseph.ligman@nokia.com>
4881 Reviewed by Adam Treat.
4883 Bug 26422: [Qt] QWebPagePrivate::frameAt calculates wrong frame
4885 Added a public method QWebPage::frameAt
4886 Removed QWebPagePrivate::frameAt, which calcuated the wrong frame
4887 Modified QWebPage::swallowContextMenuEvent to use the new frameAt method
4888 New test case for frameAt added to tst_qwebpage.cpp
4891 (QWebPage::frameAt):
4892 (QWebPage::swallowContextMenuEvent):
4895 * tests/qwebpage/frametest/iframe.html: Added.
4896 * tests/qwebpage/frametest/iframe2.html: Added.
4897 * tests/qwebpage/frametest/iframe3.html: Added.
4898 * tests/qwebpage/tst_qwebpage.cpp:
4900 (tst_QWebPage::frameAt):
4901 * tests/qwebpage/tst_qwebpage.qrc:
4903 2009-06-30 Jakub Wieczorek <faw217@gmail.com>
4905 Reviewed by Simon Hausmann.
4907 Add QWebFrame::baseUrl() function that exposes the base URL of a frame.
4910 * Api/qwebframe.cpp:
4911 (QWebFrame::baseUrl):
4913 * tests/qwebframe/tst_qwebframe.cpp:
4915 2009-06-29 Simon Hausmann <simon.hausmann@nokia.com>
4917 Fix the Qt build, add missing isSpeaking() implementation to
4920 * WebCoreSupport/ContextMenuClientQt.cpp:
4921 (WebCore::ContextMenuClientQt::isSpeaking):
4922 * WebCoreSupport/ContextMenuClientQt.h:
4924 2009-06-28 Sriram Yadavalli <sriram.yadavalli@nokia.com>
4926 Reviewed by Eric Seidel.
4928 [Qt] Fix build break for Qt
4929 https://bugs.webkit.org/show_bug.cgi?id=26779
4932 (QWebPage::swallowContextMenuEvent):
4934 2009-06-27 Simon Hausmann <simon.hausmann@nokia.com>
4936 Build fix for Qt under Windows.
4938 * Api/qwebhistory.h: Use consistent export linkage for the datastream operators.
4940 2009-06-26 Brian Weinstein <bweinstein@apple.com>
4942 Reviewed by Simon Fraser.
4944 Changed call of scrollbarUnderMouse to scrollbarUnderPoint to match new API.
4947 (QWebPage::swallowContextMenuEvent):
4949 2009-06-26 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
4951 Reviewed by Simon Hausmann.
4953 Add support for saving and loading of QWebHistory to and from a QByteArray.
4955 This includes streaming operators for QWebHistory. for convenience.
4957 New autotests that test QWebHistory and QWebHistoryItem serialization.
4959 * Api/qwebhistory.cpp:
4960 (QWebHistory::restoreState):
4961 (QWebHistory::saveState):
4964 * Api/qwebhistory.h:
4965 * Api/qwebhistory_p.h:
4966 * tests/qwebhistory/tst_qwebhistory.cpp:
4967 (tst_QWebHistory::):
4968 (tst_QWebHistory::init):
4969 (tst_QWebHistory::title):
4970 (tst_QWebHistory::count):
4971 (tst_QWebHistory::back):
4972 (tst_QWebHistory::forward):
4973 (tst_QWebHistory::itemAt):
4974 (tst_QWebHistory::goToItem):
4975 (tst_QWebHistory::items):
4976 (tst_QWebHistory::serialize_1):
4977 (tst_QWebHistory::serialize_2):
4978 (tst_QWebHistory::serialize_3):
4979 (tst_QWebHistory::saveAndRestore_1):
4980 (tst_QWebHistory::saveAndRestore_2):
4981 (tst_QWebHistory::saveAndRestore_3):
4983 2009-06-26 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
4985 Reviewed by Simon Hausmann.
4987 Fix the behaviour of QWebHistory::itemAt to interpret the specified index as absolute index.
4989 Returns an invalid QWebHistoryItem if the index is out of range.
4991 * Api/qwebhistory.cpp:
4992 (QWebHistory::itemAt):
4993 * tests/qwebhistory/tst_qwebhistory.cpp:
4994 (tst_QWebHistory::itemAt):
4996 2009-06-26 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
4998 Reviewed by Simon Hausmann.
5000 Added a few autotest to QWebHistory.
5002 * tests/qwebhistory/data/page1.html: Added.
5003 * tests/qwebhistory/data/page2.html: Added.
5004 * tests/qwebhistory/data/page3.html: Added.
5005 * tests/qwebhistory/data/page4.html: Added.
5006 * tests/qwebhistory/data/page5.html: Added.
5007 * tests/qwebhistory/data/page6.html: Added.
5008 * tests/qwebhistory/qwebhistory.pro: Added.
5009 * tests/qwebhistory/tst_qwebhistory.cpp: Added.
5010 (tst_QWebHistory::):
5011 (tst_QWebHistory::tst_QWebHistory):
5012 (tst_QWebHistory::~tst_QWebHistory):
5013 (tst_QWebHistory::init):
5014 (tst_QWebHistory::cleanup):
5015 (tst_QWebHistory::title):
5016 (tst_QWebHistory::count):
5017 (tst_QWebHistory::back):
5018 (tst_QWebHistory::forward):
5019 (tst_QWebHistory::goToItem):
5020 (tst_QWebHistory::items):
5021 * tests/qwebhistory/tst_qwebhistory.qrc: Added.
5024 2009-06-26 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
5026 Reviewed by Simon Hausmann.
5028 Fix support for documenting functions prefixed with QWEBKIT_EXPORT
5030 Add QWEBKIT_EXPORT to the list of macros to ignore by qdoc.
5032 * docs/qtwebkit.qdocconf:
5034 2009-06-26 Yongjun Zhang <yongjun.zhang@nokia.com>
5036 Reviewed by Eric Seidel.
5038 Bug 20303: [Qt] Key events are not working in frames.
5040 Send scrolling events to current focused frame, bubble the event
5041 up to parent frame if it is not handled. Use EventHandler's new
5042 shared scrolling code.
5045 (QWebPagePrivate::keyPressEvent):
5046 (QWebPagePrivate::handleScrolling):
5049 2009-06-25 Jakub Wieczorek <faw217@gmail.com>
5051 Reviewed by Adam Treat.
5053 Add highlight functionality to the QWebPage::findText() method. Introduced is
5054 new HighlightAllOccurrences flag which passed to the function will make it mark
5055 all existing occurrences of specified string in the page.
5058 (QWebPage::findText):
5062 2009-06-19 Daniel Teske <qt-info@nokia.com>
5064 Reviewed by Simon Hausmann.
5066 Remove warnings for QString() constructions from const char *
5068 By explicitly wrapping it with QLatin1String() / QLatin1Char()
5070 * Api/qwebelement.cpp:
5071 (QWebElement::classes): Use QLatin1String.
5072 (QWebElement::addClass): Ditto.
5073 (QWebElement::removeClass): Ditto.
5074 (QWebElement::toggleClass): Ditto.
5076 2009-06-18 Friedemann Kleint <Friedemann.Kleint@nokia.com>
5078 Reviewed by Simon Hausmann.
5080 Fixed MinGW compilation.
5082 * Api/qwebelement.cpp:
5083 (QWebElement::evaluateScript):
5085 2009-06-18 Markus Goetz <Markus.Goetz@nokia.com>
5087 Reviewed by Simon Hausman.
5089 Clarify in docs how to compile with debug information.
5091 * docs/qtwebkit.qdoc:
5093 2009-06-17 Markus Goetz <Markus.Goetz@nokia.com>
5095 Reviewed by Simon Hausmann.
5097 QWebPage: Don't call supportsSsl()
5099 This stops QWebPage from loading the OpenSSL libs,
5100 certificates etc. when they are not needed for the non-HTTPS case.
5102 Loading the SSL libraries can be a very slow operation.
5105 (QWebPage::userAgentForUrl):
5107 2009-06-16 David Boddie <dboddie@trolltech.com>
5109 Reviewed by Simon Hausmann.
5111 Doc: Fixed QWebPage::forwardUnsupportedContent documentation and added
5112 more information about Web plugins.
5115 * Api/qwebsettings.cpp:
5116 * docs/qtwebkit.qdoc:
5118 2009-06-16 Morten Engvoldsen <morten.engvoldsen@nokia.com>
5120 Reviewed by Ariya Hidayat.
5122 Clearifying QWebFrame docs
5124 Adding docs to toHtml() and toPlainText()
5126 * Api/qwebframe.cpp:
5128 2009-06-15 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
5130 Reviewed by Adam Treat.
5132 Support the back/forward/stop/refresh multimedia keys and accept the
5133 event when handling backspace and shift backspace as we should.
5136 (QWebPagePrivate::keyPressEvent):
5138 2009-06-15 Andre Pedralho <andre.pedralho@openbossa.org>
5140 Reviewed by Adam Treat.
5142 https://bugs.webkit.org/show_bug.cgi?id=26351
5143 Remove bool QWebHitTestResult::isScrollBar() const and make sure a null QWebHitTestResult is returned instead.
5145 * Api/qwebframe.cpp:
5146 (QWebFrame::hitTestContent):
5149 (QWebPage::updatePositionDependentActions):
5151 2009-06-15 Simon Hausmann <simon.hausmann@nokia.com>
5153 Reviewed by Adam Treat.
5155 Fix the logic for disabling the fixed layout feature, when an invalid
5159 (QWebPage::setFixedContentsSize):
5161 2009-06-13 Adam Barth <abarth@webkit.org>
5163 Reviewed by Darin Fisher.
5165 https://bugs.webkit.org/show_bug.cgi?id=24492
5167 Move registerURLSchemeAsLocal from FrameLoader to SecurityOrigin.
5170 (QWebPage::acceptNavigationRequest):
5172 2009-06-10 Antonio Gomes <antonio.gomes@openbossa.org>
5174 Reviewed by Ariya Hidayat.
5176 Documented ResolveRule and StylePriority enum values as well as their use in
5177 QWebElement::styleProperty and QWebElement::setStyleProperty methods.
5179 Based on the work of Simon Hausmann.
5181 * Api/qwebelement.cpp:
5182 (QWebElement::styleProperty):
5183 (QWebElement::setStyleProperty):
5184 * Api/qwebelement.h:
5186 2009-06-09 Ariya Hidayat <ariya.hidayat@nokia.com>
5188 Rubber-stamped by Simon Hausmann.
5190 Fix qdoc warning, function parameter string must be referred.
5194 2009-06-09 Simon Hausmann <simon.hausmann@nokia.com>
5196 Reviewed by Ariya Hidayat.
5198 Renamed QWebSettings::AllowUniversalAccessFromFileUrls to
5199 LocalContentCanAccessRemoteUrls, as discussed in the API review.
5201 * Api/qwebsettings.cpp:
5202 (QWebSettingsPrivate::apply):
5203 (QWebSettings::QWebSettings):
5204 * Api/qwebsettings.h:
5206 2009-06-09 Simon Hausmann <simon.hausmann@nokia.com>
5208 Reviewed by Ariya Hidayat.
5210 Merged useFixedLayout property with fixedLayoutSize and
5211 renamed the latter to fixedContentsSize.
5214 (QWebPage::fixedContentsSize):
5215 (QWebPage::setFixedContentsSize):
5217 * WebCoreSupport/FrameLoaderClientQt.cpp:
5218 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
5220 2009-06-09 Simon Hausmann <simon.hausmann@nokia.com>
5222 Reviewed by Ariya Hidayat.
5224 Renamed QWebHitTestResult::linkTarget to linkElement() and made it return
5225 a QWebElement. The link target itself is always the target DOM attribute.
5227 * Api/qwebframe.cpp:
5228 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
5229 (QWebHitTestResult::linkElement):
5231 * Api/qwebframe_p.h:
5232 * tests/qwebframe/tst_qwebframe.cpp:
5234 2009-06-08 Simon Hausmann <simon.hausmann@nokia.com>
5236 Reviewed by Holger Freyther.
5238 Renamed QWebElement::enclosingBlock to enclosingBlockElement
5239 and changed the return type to QWebElement, as discussed in
5240 the API review. This API is more generic and through
5241 QWebElement's geometry() it is possible to retrieve the
5244 * Api/qwebelement.cpp:
5245 (QWebElement::QWebElement):
5246 * Api/qwebelement.h:
5247 * Api/qwebframe.cpp:
5248 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
5249 (QWebHitTestResult::enclosingBlockElement):
5251 * Api/qwebframe_p.h:
5253 2009-06-05 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
5255 Reviewed by Simon Hausmann.
5257 [Qt] Add missing includes of config.h
5259 * Api/qcookiejar.cpp:
5260 * Api/qwebnetworkinterface.cpp:
5261 * Plugins/ICOHandler.cpp:
5262 * WebCoreSupport/DragClientQt.cpp:
5263 * WebCoreSupport/EditCommandQt.cpp:
5265 2009-06-03 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
5267 Reviewed by Simon Hausmann.
5269 Add API to make it possible to clear all memory caches used by
5272 * Api/qwebsettings.cpp:
5273 (QWebSettings::clearMemoryCaches):
5274 * Api/qwebsettings.h:
5276 2009-06-01 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
5278 Rubber-stamped by Gustavo Noronha.
5280 Before guessing the url trim the string to remove whitespace added to the start/end by the user.
5283 (QWebView::guessUrlFromString):
5284 * tests/qwebview/tst_qwebview.cpp:
5285 (tst_QWebView::guessUrlFromString_data):
5287 2009-06-01 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
5289 Rubber-stamped by Gustavo Noronha.
5291 Use QLatin1Char() to compile when QT_NO_CAST_FROM_ASCII and QT_NO_CAST_TO_ASCII is defined
5294 (QWebView::guessUrlFromString):
5296 2009-06-01 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
5298 Rubber-stamped by Gustavo Noronha.
5300 Cleanup autotest file
5301 - use proper includes
5302 - remove useless constructor and destructor
5303 - add missing newline at the end of the file
5305 * tests/qwebview/tst_qwebview.cpp:
5307 2009-06-01 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
5309 Rubber-stamped by Gustavo Noronha.
5311 Add a missing space between two words in the documentation.
5315 2009-05-26 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
5317 Reviewed by Holger Freyther.
5319 https://bugs.webkit.org/show_bug.cgi?id=25823
5321 Add an API to generate a QUrl out of a string correcting for errors and missing information.
5322 See the API documentation for more details about the function.
5327 (QWebView::guessUrlFromString):
5329 * QtLauncher/main.cpp:
5330 (MainWindow::MainWindow):
5331 (MainWindow::changeLocation):
5332 * tests/qwebview/.gitignore: Added.
5333 * tests/qwebview/qwebview.pro:
5334 (tst_QWebView::initTestCase):
5335 (tst_QWebView::cleanupTestCase):
5336 (tst_QWebView::init):
5337 (tst_QWebView::cleanup):
5338 (tst_QWebView::guessUrlFromString_data):
5339 (tst_QWebView::guessUrlFromString):
5341 2009-05-23 David Kilzer <ddkilzer@apple.com>
5343 Part 2 of 2: Bug 25495: Implement PassOwnPtr and replace uses of std::auto_ptr
5345 <https://bugs.webkit.org/show_bug.cgi?id=25495>
5347 Reviewed by Oliver Hunt.
5349 * WebCoreSupport/ChromeClientQt.h:
5350 (WebCore::ChromeClientQt::createHTMLParserQuirks): Return a
5351 PassOwnPtr<> instead of a raw HTMLParserQuirks pointer.
5353 2009-05-23 Jakob Truelsen <antialize@gmail.com>
5355 Reviewed by Holger Freyther.
5357 https://bugs.webkit.org/show_bug.cgi?id=25863
5359 Expose the default text encoding property to Qt.
5361 * Api/qwebsettings.cpp:
5362 (QWebSettingsPrivate::apply):
5363 (QWebSettings::setDefaultTextEncoding):
5364 (QWebSettings::defaultTextEncoding):
5365 * Api/qwebsettings.h:
5367 2009-05-21 Antonio Gomes <antonio.gomes@openbossa.org>
5369 Reviewed by Simon Hausmann.
5371 [Qt] Additional test for resource load (CSS file) for QWebFrame.
5373 * tests/qwebframe/qwebframe.qrc:
5374 * tests/qwebframe/style.css: Added.
5375 * tests/qwebframe/tst_qwebframe.cpp:
5377 2009-05-22 Simon Hausmann <simon.hausmann@nokia.com>
5379 Unreviewed Qt build fix.
5381 Provide dummy implementation of pure virtual EditorClient method.
5383 * WebCoreSupport/EditorClientQt.cpp:
5384 (WebCore::EditorClientQt::getAutoCorrectSuggestionForMisspelledWord):
5385 * WebCoreSupport/EditorClientQt.h:
5387 2009-05-20 Ariya Hidayat <ariya.hidayat@nokia.com>
5389 Reviewed by Simon Hausmann and Holger Freyther.
5391 [Qt] Add renderHints property to QWebView.
5394 (QWebViewPrivate::QWebViewPrivate):
5395 (QWebView::renderHints):
5396 (QWebView::setRenderHints):
5397 (QWebView::setRenderHint):
5398 (QWebView::paintEvent):
5400 * tests/qwebview/qwebview.pro: Added.
5401 * tests/qwebview/tst_qwebview.cpp: Added.
5402 (tst_QWebView::tst_QWebView):
5403 (tst_QWebView::~tst_QWebView):
5404 (tst_QWebView::init):
5405 (tst_QWebView::cleanup):
5406 (tst_QWebView::renderHints):
5409 2009-05-20 Holger Hans Peter Freyther <zecke@selfish.org>
5411 Reviewed by Darin Adler.
5413 https://bugs.webkit.org/show_bug.cgi?id=25834
5415 Make ChromeClient a interface again
5417 With recent additions to ChromeClient.h empty defaults were
5418 added. This is bad for porters as these changes go unnoticed
5419 and at runtime no notImplemented warning is logged and grepping
5420 for notImplemented will not show anything. Change this Client
5421 to be like the other Clients again and always have pure virtuals
5422 (but for stuff inside #ifdef PLATFORM(MAC)).
5424 Update the various WebKit/* implementations to compile again.
5426 * WebCoreSupport/ChromeClientQt.cpp:
5427 (WebCore::ChromeClientQt::setCursor):
5428 (WebCore::ChromeClientQt::requestGeolocationPermissionForFrame):
5429 * WebCoreSupport/ChromeClientQt.h:
5430 (WebCore::ChromeClientQt::scrollRectIntoView):
5432 2009-05-19 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
5434 Reviewed by Simon Hausmann.
5436 Fix a plugin bug in the WebKit code, similar to the one in WebCore.
5438 The problem is when a non visible QtPluginWidget would show it self
5439 in a sibling frame. The problem was due to our clipping. In Qt,
5440 if setMask is set with an empty QRegion, no clipping will
5441 be performed, so in that case we hide the PluginContainer
5443 * WebCoreSupport/FrameLoaderClientQt.cpp:
5446 2009-05-18 Zoltan Horvath <horvath.zoltan.6@stud.u-szeged.hu>
5448 Reviewed by Ariya Hidayat.
5450 Makes QtLauncher to accept multiple urls in command line and opens these in separate windows.
5452 * QtLauncher/main.cpp:
5453 (MainWindow::newWindow):
5456 2009-05-14 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
5458 Reviewed by Ariya Hidayat.
5460 Add a comment to QWebView::iconChanged(), mentioning that you will
5461 need to set the icon database path for icons to be loaded, and thus
5466 2009-05-14 Yael Aharon <yael.aharon@nokia.com>
5468 Reviewed by Ariya Hidayat.
5470 Fix setHtml test case by adding <head> tag to the expected result. This tag is automatically added by WebKit.
5472 * tests/qwebframe/tst_qwebframe.cpp:
5474 2009-05-14 Yael Aharon <yael.aharon@nokia.com>
5476 Reviewed by Ariya Hidayat.
5478 Add a test case for the signal urlChanged().
5479 * tests/qwebframe/tst_qwebframe.cpp:
5481 2009-05-13 Yael Aharon <yael.aharon@nokia.com>
5483 Reviewed by Ariya Hidayat.
5485 Move emitting the signal QWebFrame::urlChanged to FrameLoaderClientQt::dispatchDidCommitLoad().
5486 This is to ensure that urlChanged() is emitted even if the frame has no title.
5488 * WebCoreSupport/FrameLoaderClientQt.cpp:
5489 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
5490 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
5492 2009-05-13 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
5494 Rubberstamped by Ariya Hidayat.
5496 Fix coding style: Add {} to contents of if, containing a for loop.
5498 * Api/qwebelement.cpp:
5499 (QWebElement::styleProperty):
5501 2009-05-12 Antonio Gomes <antonio.gomes@openbossa.org>
5503 Reviewed by Ariya Hidayat.
5505 Fixed a possible crash @styleProperty when there is no embedded/external CSS set.
5507 * Api/qwebelement.cpp:
5508 (QWebElement::styleProperty):
5509 * tests/qwebelement/tst_qwebelement.cpp:
5510 (tst_QWebElement::style):
5512 2009-05-12 Antonio Gomes <antonio.gomes@openbossa.org>
5514 Reviewed by Ariya Hidayat.
5516 Added external CSS test cases to QWebElement::styleProperty() method.
5518 Also some ::styleProperty() tests cleanup.
5520 * tests/qwebelement/tst_qwebelement.cpp:
5521 (tst_QWebElement::style):
5523 2009-05-12 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
5525 Reviewed by Ariya Hidayat.
5527 Many methods were not considering the case of the element not having
5528 siblings or children when inserting nodes, and thus broke in some
5529 situations. This patch fixes that.
5531 * Api/qwebelement.cpp:
5532 (QWebElement::prependInside):
5533 (QWebElement::appendOutside):
5534 (QWebElement::encloseWith):
5536 2009-05-08 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
5538 Reviewed by Ariya Hidayat.
5540 Make is possible to mark a style property as important while setting
5541 it. Also support the normal CSS property syntax "!important", while
5542 accepting spaces between the ! and the important keyword.
5544 * Api/qwebelement.cpp:
5545 (QWebElement::setStyleProperty):
5546 * Api/qwebelement.h:
5547 * tests/qwebelement/tst_qwebelement.cpp:
5548 (tst_QWebElement::style):
5550 2009-05-08 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
5552 Reviewed by Ariya Hidayat.
5554 Working with Antonio Gomes.
5556 Add support for finding the style property actually applied to the element.
5558 * Api/qwebelement.cpp:
5559 (QWebElement::styleProperty):
5560 * Api/qwebelement.h:
5561 * tests/qwebelement/tst_qwebelement.cpp:
5562 (tst_QWebElement::style):
5564 2009-05-11 Norbert Leser <norbert.leser@nokia.com>
5566 Reviewed by Darin Adler.
5568 Bug 24538: class/struct mixup in forward declarations
5569 https://bugs.webkit.org/show_bug.cgi?id=24538
5573 2009-05-11 Laszlo Gombos <laszlo.1.gombos@nokia.com>
5575 Reviewed by Holger Freyther.
5577 Fix Qt build when ENABLE_DATABASE is turned off
5579 https://bugs.webkit.org/show_bug.cgi?id=25587
5581 * Api/qwebdatabase.cpp:
5582 (QWebDatabase::displayName):
5583 (QWebDatabase::expectedSize):
5584 (QWebDatabase::size):
5585 (QWebDatabase::fileName):
5586 (QWebDatabase::removeDatabase):
5587 * Api/qwebdatabase_p.h:
5588 * Api/qwebsecurityorigin.cpp:
5589 (QWebSecurityOrigin::allOrigins):
5590 (QWebSecurityOrigin::databases):
5592 2009-05-05 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
5594 Reviewed by Simon Hausmann.
5596 Improve behaviour of the QWebElement enclose* functions, to work
5597 similar to the jQuery wrap functions. We now enclose the contents
5598 of the element in the child of the deepest descendant element
5599 within the structure of the enclose element structure given.
5601 * Api/qwebelement.cpp:
5602 (findInsertionPoint):
5603 (QWebElement::encloseContentsWith):
5604 (QWebElement::encloseWith):
5605 (QWebElement::replace):
5606 * tests/qwebelement/tst_qwebelement.cpp:
5607 (tst_QWebElement::encloseContentsWith):
5608 (tst_QWebElement::encloseWith):
5610 2009-05-06 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
5612 Reviewed by Simon Hausmann.
5614 After commit rev @43215, setHtml() without a <head> tag,
5615 automatically adds it, so update our test case to respect this.
5617 * tests/qwebelement/tst_qwebelement.cpp:
5618 (tst_QWebElement::textHtml):
5620 2009-05-06 Simon Hausmann <simon.hausmann@nokia.com>
5622 Unreviewed Qt build fix.
5624 Dont' use ENABLE() in Qt API headers, as they are not available when building
5627 * Api/qwebdatabase.h:
5628 * Api/qwebsecurityorigin.h:
5630 2009-05-05 Ben Murdoch <benm@google.com>
5632 Reviewed by Eric Seidel.
5634 Add #if ENABLE(DATABASE) guards around database code so toggling ENABLE_DATABASE off does not break builds.
5635 https://bugs.webkit.org/show_bug.cgi?id=24776
5637 * Api/qwebdatabase.cpp:
5638 * Api/qwebdatabase.h:
5639 * Api/qwebdatabase_p.h:
5640 * Api/qwebsecurityorigin.cpp:
5641 (QWebSecurityOrigin::databaseUsage):
5642 (QWebSecurityOrigin::databaseQuota):
5643 (QWebSecurityOrigin::setDatabaseQuota):
5644 * Api/qwebsecurityorigin.h:
5645 * WebCoreSupport/ChromeClientQt.cpp:
5646 (WebCore::ChromeClientQt::exceededDatabaseQuota):
5647 * WebCoreSupport/ChromeClientQt.h:
5649 2009-05-05 Simon Hausmann <simon.hausmann@nokia.com>
5651 Reviewed by Tor Arne Vestbø.
5653 Various improvements to the class documentation, including a simple snippet for QWebElement.
5655 * Api/qwebelement.cpp:
5656 * Api/qwebframe.cpp:
5657 * docs/webkitsnippets/webelement/main.cpp: Added.
5658 * docs/webkitsnippets/webelement/webelement.pro: Added.
5660 2009-05-05 Simon Hausmann <simon.hausmann@nokia.com>
5662 Reviewed by Ariya Hidayat.
5664 Simplify variant conversion by moving the null check into
5665 convertValueToQVariant.
5667 * Api/qwebframe.cpp:
5668 (QWebFrame::evaluateJavaScript): Moved null check into conversion function.
5669 * tests/qwebframe/tst_qwebframe.cpp:
5670 Added test to verify the correct conversion of null values to QVariant.
5672 2009-05-01 Geoffrey Garen <ggaren@apple.com>
5674 Rubber Stamped by Sam Weinig.
5676 Renamed JSValuePtr => JSValue.
5678 * Api/qwebelement.cpp:
5679 (setupScriptContext):
5680 (setupScriptObject):
5681 (QWebElement::evaluateScript):
5682 (QWebElement::functions):
5683 (QWebElement::scriptableProperty):
5684 (QWebElement::setScriptableProperty):
5685 (QWebElement::scriptableProperties):
5687 2009-05-01 Pavel Feldman <pfeldman@chromium.org>
5689 Reviewed by Timothy Hatcher.
5691 Add a FrameLoaderClient callback for the ResourceRetrievedByXMLHttpRequest.
5693 https://bugs.webkit.org/show_bug.cgi?id=25347
5695 * WebCoreSupport/FrameLoaderClientQt.cpp:
5696 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceByXMLHttpRequest):
5697 * WebCoreSupport/FrameLoaderClientQt.h:
5699 2009-04-30 David Kilzer <ddkilzer@apple.com>
5701 Provide a mechanism to create a quirks delegate for HTMLParser
5703 Reviewed by David Hyatt.
5705 * WebCoreSupport/ChromeClientQt.h:
5706 (WebCore::ChromeClientQt::createHTMLParserQuirks): Added. The
5707 default implementation of this factory method returns 0.
5709 2009-04-30 Ariya Hidayat <ariya.hidayat@nokia.com>
5711 Unreviewed build fix after r43072.
5713 * Api/qwebframe.cpp:
5714 (qt_drt_setJavaScriptProfilingEnabled): Enclose with JAVASCRIPT_DEBUGGER.
5716 2009-04-30 Ariya Hidayat <ariya.hidayat@nokia.com>
5718 Unreviewed build fix after r43063.
5720 * WebCoreSupport/ChromeClientQt.cpp:
5721 (WebCore::ChromeClientQt::addMessageToConsole):
5722 * WebCoreSupport/ChromeClientQt.h:
5724 2009-04-30 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
5726 Reviewed by Simon Hausmann.
5728 Implement encloseContentsWith and rename wrap to encloseWith.
5730 Also in encloseWith, make sure that you cannot enclose with
5731 non-enclosable elements.
5733 * Api/qwebelement.cpp:
5734 (QWebElement::encloseContentsWith):
5735 (QWebElement::encloseWith):
5736 * Api/qwebelement.h:
5737 * tests/qwebelement/tst_qwebelement.cpp:
5738 (tst_QWebElement::encloseContentsWith):
5739 (tst_QWebElement::encloseWith):
5741 2009-04-30 Holger Hans Peter Freyther <zecke@selfish.org>
5743 Reviewed by Darin Adler.
5745 The Qt API exposes a global history patch CSSStyleSelector to make API consumers work again
5747 https://bugs.webkit.org/show_bug.cgi?id=20952
5749 The QtWebKit port made the mistake of exposing a global history. This broke
5750 with the addition of PageGroup and LinkHash. This needs to be repaired
5753 Add a function to LinkHash.cpp that is resolving a URL. Use this
5754 function from within CSSStyleSelector to forward the url to the
5755 QWebHistoryInterface API.
5757 It is sad that there is a path within visitedLinkHash which is now
5758 doing a memcpy, it is sad to add a PLATFORM(QT) define to CSSStyleSelector
5759 and using QtWebKit types within WebCore is a layering violation as well.
5761 PageGroup::setShouldTrackVisitedLinks is currently not enabled. For
5762 Qt4.6 a second version of the QWebHistoryInterface is going to be
5763 added which will fix things up.
5765 * Api/qwebhistoryinterface.cpp:
5766 (QWebHistoryInterface::setDefaultInterface): Add note for Qt4.6
5767 * Api/qwebpage.cpp: Remove PageGroup::setShouldTrackVisitedLinks(true)
5768 (QWebPagePrivate::QWebPagePrivate):
5769 * tests/qwebhistoryinterface/qwebhistoryinterface.pro: Added unit test.
5770 * tests/qwebhistoryinterface/tst_qwebhistoryinterface.cpp: Added unit test.
5771 (tst_QWebHistoryInterface::tst_QWebHistoryInterface):
5772 (tst_QWebHistoryInterface::~tst_QWebHistoryInterface):
5773 (tst_QWebHistoryInterface::init):
5774 (tst_QWebHistoryInterface::cleanup):
5775 (FakeHistoryImplementation::addHistoryEntry):
5776 (FakeHistoryImplementation::historyContains):
5777 (tst_QWebHistoryInterface::visitedLinks): Check the Qt4.4 behaviour.
5780 2009-04-30 Ariya Hidayat <ariya.hidayat@nokia.com>
5782 Unreviewed build fix, after r43035.
5784 Temporarily use Position::deprecatedEditingOffset().
5787 (QWebPage::inputMethodQuery):
5789 2009-03-27 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
5791 Reviewed by Simon Hausmann.
5793 Update the page actions when a finishing loading even if the frame is
5794 not the top frame such as when browsing inside of a website with frames.
5795 https://bugs.webkit.org/show_bug.cgi?id=24890
5797 * WebCoreSupport/FrameLoaderClientQt.cpp:
5798 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
5799 * tests/qwebpage/frametest/frame_a.html: Added.
5800 * tests/qwebpage/frametest/index.html: Added.
5801 * tests/qwebpage/tst_qwebpage.cpp:
5802 (tst_QWebPage::backActionUpdate):
5804 2009-04-29 Ariya Hidayat <ariya.hidayat@nokia.com>
5806 Reviewed by Simon Hausmann.
5808 Implement QWebElement::evaluateScript.
5810 * Api/qwebelement.cpp:
5811 (setupScriptContext):
5812 (QWebElement::evaluateScript):
5813 * Api/qwebelement.h:
5814 * tests/qwebelement/tst_qwebelement.cpp:
5815 (tst_QWebElement::evaluateScript):
5817 2009-04-29 Simon Hausmann <simon.hausmann@nokia.com>
5819 Reviewed by Ariya Hidayat.
5821 Replaced QWebElementCollection with QList<QWebElement>.
5823 * Api/qwebelement.cpp:
5824 (QWebElement::findAll):
5825 * Api/qwebelement.h:
5826 * Api/qwebframe.cpp:
5827 (QWebFrame::findAllElements):
5829 * QtLauncher/main.cpp:
5830 (MainWindow::selectElements):
5831 * tests/qwebelement/tst_qwebelement.cpp:
5832 (tst_QWebElement::simpleCollection):
5833 (tst_QWebElement::namespaceURI):
5834 (tst_QWebElement::nullSelect):
5836 2009-04-28 Simon Hausmann <simon.hausmann@nokia.com>
5838 Reviewed by Tor Arne Vestbø.
5840 QWebElement API changes after another round of API review:
5842 * Fix argument names of findAll/findFirst
5843 * Split up toXml into innerXml and outerXml
5844 * Removed confusing toggleClass overload
5845 * Fixed casing of namespaceUri to follow QXmlStreamReader
5846 * Removed tagName from firstChild/nextSibling/etc.
5847 * Renamed append/prepend/insertAfter/insertBefore to [append|prepend][Inside|Outside]
5848 * Renamed wrapWith() back to wrap()
5849 * Made clone() const
5850 * Renamed remove() to takeFromDocument(), added removeFromDocument()
5851 * Renamed clear() to removeChildren()
5852 * Renamed scriptsFunctions/callScriptFunction to functions()/callFunction()
5853 * Renamed scriptProperty to scriptableProperty
5855 * Api/qwebelement.cpp:
5856 (QWebElement::findAll):
5857 (QWebElement::findFirst):
5858 (QWebElement::setOuterXml):
5859 (QWebElement::toOuterXml):
5860 (QWebElement::setInnerXml):
5861 (QWebElement::toInnerXml):
5862 (QWebElement::namespaceUri):
5863 (QWebElement::firstChild):
5864 (QWebElement::lastChild):
5865 (QWebElement::nextSibling):
5866 (QWebElement::previousSibling):
5867 (QWebElement::callFunction):
5868 (QWebElement::functions):
5869 (QWebElement::scriptableProperty):
5870 (QWebElement::setScriptableProperty):
5871 (QWebElement::scriptableProperties):
5872 (QWebElement::appendInside):
5873 (QWebElement::prependInside):
5874 (QWebElement::prependOutside):
5875 (QWebElement::appendOutside):
5876 (QWebElement::clone):
5877 (QWebElement::takeFromDocument):
5878 (QWebElement::removeFromDocument):
5879 (QWebElement::removeChildren):
5880 (QWebElement::wrap):
5881 (QWebElement::replace):
5882 * Api/qwebelement.h:
5883 * Api/qwebframe.cpp:
5884 (QWebFrame::findAllElements):
5885 (QWebFrame::findFirstElement):
5887 * tests/qwebelement/tst_qwebelement.cpp:
5888 (tst_QWebElement::textHtml):
5889 (tst_QWebElement::classes):
5890 (tst_QWebElement::namespaceURI):
5891 (tst_QWebElement::foreachManipulation):
5892 (tst_QWebElement::callFunction):
5893 (tst_QWebElement::callFunctionSubmitForm):
5894 (tst_QWebElement::functionNames):
5895 (tst_QWebElement::properties):
5896 (tst_QWebElement::appendAndPrepend):
5897 (tst_QWebElement::insertBeforeAndAfter):
5898 (tst_QWebElement::remove):
5899 (tst_QWebElement::clear):
5900 (tst_QWebElement::replaceWith):
5902 2009-04-28 Simon Hausmann <simon.hausmann@nokia.com>
5904 Reviewed by Tor Arne Vestbø.
5906 Fix some qdoc warnings.
5908 * Api/qwebframe.cpp: Fix links.
5909 * Api/qwebnetworkinterface.cpp: Make docs internal.
5910 * Api/qwebnetworkinterface.h: Ditto.
5911 * Api/qwebpage.cpp: Fix property name in \property.
5913 2009-04-24 Simon Hausmann <simon.hausmann@nokia.com>
5915 Rubber-stamped by Ariya Hidayat.
5917 Fix qdoc warning about link to QAction::isEnabled.
5921 2009-04-24 Simon Hausmann <simon.hausmann@nokia.com>
5923 Reviewed by Ariya Hidayat.
5925 Added support for generating API docs in the Qt build using "make docs"
5927 Added code snippets and overview from the Qt sources references in the API docs.
5929 * Api/qwebpage.cpp: Adjust paths to snippets.
5930 * Api/qwebview.cpp: Ditto.
5931 * docs/docs.pri: Added.
5932 * docs/qtwebkit.qdoc: Added.
5933 * docs/qtwebkit.qdocconf: Added.
5934 * docs/webkitsnippets/qtwebkit_build_snippet.qdoc: Added.
5935 * docs/webkitsnippets/qtwebkit_qwebview_snippet.cpp: Added.
5936 * docs/webkitsnippets/simple/main.cpp: Added.
5937 * docs/webkitsnippets/simple/simple.pro: Added.
5938 * docs/webkitsnippets/webpage/main.cpp: Added.
5939 * docs/webkitsnippets/webpage/webpage.pro: Added.
5941 2009-04-23 Antonio Gomes <antonio.gomes@openbossa.org>
5943 Reviewed by Ariya Hidayat.
5945 [Qt] Added QWebElement::computedStyleProperty method.
5947 * Api/qwebelement.cpp:
5948 (QWebElement::computedStyleProperty):
5949 * Api/qwebelement.h:
5950 * tests/qwebelement/tst_qwebelement.cpp:
5951 (tst_QWebElement::computedStyle):
5953 2009-04-23 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
5955 Rubber-stamped by Ariya Hidayat.
5957 [Qt] Rename QWebElement arguments from html to markup
5959 * Api/qwebelement.cpp:
5960 (QWebElement::append):
5961 (QWebElement::prepend):
5962 (QWebElement::insertBefore):
5963 (QWebElement::insertAfter):
5964 * Api/qwebelement.h:
5966 2009-04-21 Antonio Gomes <antonio.gomes@openbossa.org>
5968 Reviewed by Ariya Hidayat.
5970 QWebElementSelection renamed to QWebElementCollection.
5972 * Api/qwebelement.cpp:
5973 (QWebElement::findAll):
5974 (QWebElementCollectionPrivate::QWebElementCollectionPrivate):
5975 (QWebElementCollectionPrivate::create):
5976 (QWebElementCollection::QWebElementCollection):
5977 (QWebElementCollection::operator=):
5978 (QWebElementCollection::~QWebElementCollection):
5979 (QWebElementCollection::operator+):
5980 (QWebElementCollection::append):
5981 (QWebElementCollection::count):
5982 (QWebElementCollection::at):
5983 (QWebElementCollection::toList):
5984 * Api/qwebelement.h:
5985 * Api/qwebframe.cpp:
5986 (QWebFrame::findAllElements):
5988 * QtLauncher/main.cpp:
5989 (MainWindow::selectElements):
5990 * tests/qwebelement/tst_qwebelement.cpp:
5991 (tst_QWebElement::simpleCollection):
5992 (tst_QWebElement::iteration):
5993 (tst_QWebElement::emptyCollection):
5994 (tst_QWebElement::appendCollection):
5995 (tst_QWebElement::nullSelect):
5997 2009-04-17 Laszlo Gombos <laszlo.1.gombos@nokia.com>
5999 Reviewed by Simon Hausmann.
6001 https://bugs.webkit.org/show_bug.cgi?id=25242
6003 Remove QtCore 4.5 dependency from QWebElement test
6005 * tests/qwebelement/tst_qwebelement.cpp:
6006 (tst_QWebElement::iteration): Use QList::count() instead of QList::length()
6008 2009-04-16 Holger Hans Peter Freyther <zecke@selfish.org>
6010 Rubber-stamped by Simon Hausmann.
6012 Make the operator== and operator!= non inline to
6013 allow looking at the d-pointer in the future.
6015 * Api/qwebelement.cpp:
6016 (QWebElement::operator==):
6017 (QWebElement::operator!=):
6018 * Api/qwebelement.h:
6020 2009-04-15 Antonio Gomes <antonio.gomes@openbossa.org>
6022 Reviewed by Ariya Hidayat.
6024 Rename extend() method in QWebElementSelection to append().
6026 * Api/qwebelement.cpp:
6027 (QWebElementSelection::append):
6028 * Api/qwebelement.h:
6029 * tests/qwebelement/tst_qwebelement.cpp:
6030 (tst_QWebElement::appendSelection):
6032 2009-04-15 Antonio Gomes <antonio.gomes@openbossa.org>
6034 Reviewed by Simon Hausmann.
6036 Fixed nit/typo in QWebElement documentation.
6038 * Api/qwebelement.cpp:
6040 2009-04-14 Laszlo Gombos <laszlo.1.gombos@nokia.com>
6042 Reviewed by Simon Hausmann.
6044 https://bugs.webkit.org/show_bug.cgi?id=24841
6046 Fix linking against QtWebKit for Symbian and other platforms
6047 where the OS ABI distinguishes between an import or an export situation.
6049 * Api/qwebkitglobal.h: Instead of white-listing Win, remove the test.
6051 2009-04-14 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
6053 Reviewed by Tor Arne Vestbø.
6055 Rename QWebElement::setHtml and html to setXml and toXml respectivily.
6057 Also add a mean to define the scope (inner or other).
6059 * Api/qwebelement.cpp:
6060 (QWebElement::setXml):
6061 (QWebElement::toXml):
6062 * Api/qwebelement.h:
6063 * tests/qwebelement/tst_qwebelement.cpp:
6064 (tst_QWebElement::textHtml):
6065 (tst_QWebElement::foreachManipulation):
6067 2009-04-14 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
6069 Reviewed by Tor Arne Vestbø.
6071 Rename QWebElement::setText() and text() to ::setPlainText and
6072 ::toPlainText, respectively.
6074 * Api/qwebelement.cpp:
6075 (QWebElement::setPlainText):
6076 (QWebElement::toPlainText):
6077 * Api/qwebelement.h:
6078 * tests/qwebelement/tst_qwebelement.cpp:
6079 (tst_QWebElement::textHtml):
6080 (tst_QWebElement::simpleSelection):
6081 (tst_QWebElement::appendAndPrepend):
6082 (tst_QWebElement::insertBeforeAndAfter):
6083 (tst_QWebElement::replaceWith):
6084 (tst_QWebElement::wrap):
6085 (tst_QWebElement::firstChildNextSiblingWithTag):
6086 (tst_QWebElement::lastChildPreviousSiblingWithTag):
6088 2009-04-06 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
6090 Reviewed by Simon Hausmann.
6092 [Qt] Rename DOM API select function to findFirst, findAll, etc.
6094 * Api/qwebelement.cpp:
6095 (QWebElement::findAll):
6096 (QWebElement::findFirst):
6097 * Api/qwebelement.h:
6098 * Api/qwebframe.cpp:
6099 (QWebFrame::findAllElements):
6100 (QWebFrame::findFirstElement):
6102 * QtLauncher/main.cpp:
6103 (MainWindow::selectElements):
6104 * tests/qwebelement/tst_qwebelement.cpp:
6105 (tst_QWebElement::simpleSelection):
6106 (tst_QWebElement::attributesNS):
6107 (tst_QWebElement::classes):
6108 (tst_QWebElement::namespaceURI):
6109 (tst_QWebElement::iteration):
6110 (tst_QWebElement::foreachManipulation):
6111 (tst_QWebElement::callFunctionSubmitForm):
6112 (tst_QWebElement::documentElement):
6113 (tst_QWebElement::frame):
6114 (tst_QWebElement::style):
6115 (tst_QWebElement::extendSelection):
6116 (tst_QWebElement::properties):
6117 (tst_QWebElement::appendAndPrepend):
6118 (tst_QWebElement::insertBeforeAndAfter):
6119 (tst_QWebElement::remove):
6120 (tst_QWebElement::clear):
6121 (tst_QWebElement::replaceWith):
6122 (tst_QWebElement::wrap):
6123 (tst_QWebElement::nullSelect):
6124 (tst_QWebElement::firstChildNextSibling):
6125 (tst_QWebElement::firstChildNextSiblingWithTag):
6126 (tst_QWebElement::lastChildPreviousSibling):
6127 (tst_QWebElement::lastChildPreviousSiblingWithTag):
6129 2009-04-06 Simon Hausmann <simon.hausmann@nokia.com>
6130 Ariya Hidayat <ariya.hidayat@nokia.com>
6131 Tor Arne Vestbø <tor.arne.vestbo@nokia.com>
6132 Genevieve Mak <gen@staikos.net>
6134 Reviewed by Tor Arne Vestbø, Simon Hausmann
6136 First revision of new API in the Qt port to access the DOM.
6138 * Api/headers.pri: Added qwebelement.h to the API headers.
6139 * Api/qwebelement.cpp: Added.
6140 * Api/qwebelement.h: Added.
6141 * Api/qwebframe.cpp:
6142 (QWebFrame::documentElement): Added accessor for the document element.
6143 (QWebFrame::selectElements): Added convenienc query method.
6144 (QWebFrame::selectElement): Ditto.
6145 (QWebHitTestResult::element): Added accessor for underlying DOM element.
6147 * QtLauncher/main.cpp: Simple test gui for element selections.
6148 * tests/qwebelement/qwebelement.pro: Added.
6149 * tests/qwebelement/tst_qwebelement.cpp: Added.
6150 * tests/tests.pro: Added QWebElement & QWebElementSelection unit tests.
6152 2009-04-02 Simon Hausmann <simon.hausmann@nokia.com>
6157 (QWebPage::triggerAction): Adapted code to renamed loadFrameRequest function.
6159 2009-04-02 Takumi Asaki <takumi.asaki@nokia.com>
6161 Reviewed by Simon Hausmann.
6163 Fix pre-edit handling of text fields with input methods.
6165 The input method sends an empty preeditString() if all characters of
6166 the preedit should be deleted. So inputMethodEvent() has to use
6167 preeditString() if it's empty.
6170 (QWebPagePrivate::inputMethodEvent):
6172 2009-03-30 Simon Hausmann <simon.hausmann@nokia.com>
6174 Rubber-stamped by Tor Arne Vestbø.
6176 Document that setHtml/setContent loads only the html/data immediately, not external objects.
6178 * Api/qwebframe.cpp:
6181 2009-03-29 Darin Adler <darin@apple.com>
6183 Try to fix Qt build.
6185 * WebCoreSupport/EditorClientQt.cpp: Added include of HTMLElement.h.
6187 * WebCoreSupport/FrameLoaderClientQt.cpp: Added include of FormState.h.
6188 (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
6189 Removed unneeded call to detachChildren, which is called by FrameLoader
6191 (WebCore::FrameLoaderClientQt::createFrame): Use loadURLIntoChildFrame
6192 as other platforms do in the corresponding functions.
6194 2009-03-27 Erik L. Bunce <elbunce@xendom.com>
6196 Reviewed by Simon Hausmann.
6198 https://bugs.webkit.org/show_bug.cgi?id=24869
6200 Fixes an incorrect case in tst_qwebpage.
6202 * tests/qwebpage/tst_qwebpage.cpp:
6203 (tst_QWebPage::cursorMovements):
6205 2009-03-27 Erik L. Bunce <elbunce@xendom.com>
6207 Reviewed by Simon Hausmann.
6209 https://bugs.webkit.org/show_bug.cgi?id=24746
6211 Add new editing related QWebPage::WebActions
6212 * Clipboard: PasteAndMatchStyle
6213 * Formatting: RemoveFormat, ToggleStrikethrough, ToggleSubscript, and
6215 * List Editing: InsertUnorderedList, InsertOrderedList, Indent, Outdent
6216 * Paragraph Justification: AlignCenter, AlignJustified, AlignLeft, AlignRight
6218 Improved selection and editing tests.
6221 (QWebPagePrivate::updateEditorActions):
6224 * tests/qwebpage/tst_qwebpage.cpp:
6225 (tst_QWebPage::textSelection):
6226 (tst_QWebPage::textEditing):
6228 2009-03-26 Simon Hausmann <simon.hausmann@nokia.com>
6230 Rubber-stamped by Tor Arne Vestbø.
6232 Fix the documentation of the QLocale usage in userAgentForUrl.
6236 2009-03-20 Erik L. Bunce <elbunce@xendom.com>
6238 Reviewed by Simon Hausmann.
6240 Fix for InsertParagraphSeparator and InsertLineSeparator so that
6241 QWebPage::action() creates QActions for them. Also make sure they get
6242 updated appropriately.
6245 (QWebPagePrivate::updateEditorActions):
6247 * tests/qwebpage/tst_qwebpage.cpp:
6248 (tst_QWebPage::textEditing):
6250 2009-03-20 Erik L. Bunce <elbunce@xendom.com>
6252 Reviewed by Tor Arne Vestbø.
6254 Fix QWebPage::WebActions action states to more closely match when they are
6255 actually applicable and remove erroneous documentation.
6257 * Most WebActions implemented using editor commands now use the
6258 Editor::Command::isEnabled() to control their availability.
6259 * SelectAll is always enabled (since it's editor command is).
6260 * SetTextDirection{} family of WebActions are available when canEdit() is true
6261 and not just canEditRichly().
6263 Fix and clarify documentation about the availability of various web actions.
6266 (QWebPagePrivate::updateAction):
6267 (QWebPagePrivate::updateEditorActions):
6268 * tests/qwebpage/tst_qwebpage.cpp:
6269 (tst_QWebPage::textSelection):
6271 2009-03-19 Ariya Hidayat <ariya.hidayat@trolltech.com>
6273 Reviewed by Simon Hausmann.
6275 Fixes pedantic compilation in QtWebKit.
6277 There are no semi-colons after namespace declarations.
6279 * Api/qwebdatabase.h:
6280 * Api/qwebsecurityorigin.h:
6282 2009-03-19 David Boddie <dboddie@trolltech.com>
6284 Reviewed by Simon Hausmann.
6286 Doc: Removed obsolete warning about Flash and other plugins.
6288 * Api/qwebsettings.cpp:
6290 2009-03-19 Paul Olav Tvete <paul.tvete@nokia.com>
6292 Reviewed by Simon Hausmann.
6294 Properly escape tooltip text
6296 ManualTest: http://xkcd.com/554/
6298 * WebCoreSupport/ChromeClientQt.cpp:
6299 (WebCore::ChromeClientQt::setToolTip):
6301 2009-03-10 Adam Treat <adam.treat@torchmobile.com>
6303 Build fix for Qt after r41555.
6306 (QWebPage::acceptNavigationRequest):
6308 2009-03-10 Xan Lopez <xlopez@igalia.com>
6310 Build fix, no review.
6313 (QWebPage::inputMethodQuery):
6315 2009-03-07 Adam Treat <adam.treat@torchmobile.com>
6317 Reviewed by Cameron Zwarich.
6319 These methods are clearly returning the wrong values as the two were
6320 returning swapped information.
6323 (QWebPage::totalBytes):
6324 (QWebPage::bytesReceived):
6326 2009-03-05 Ariya Hidayat <ariya.hidayat@nokia.com>
6328 Rubber-stamped by Simon Hausmann.
6330 [Qt] NPAPI plugins are supported, adjust the API documentation.
6332 * Api/qwebsettings.cpp:
6334 2009-03-04 Adam Barth <abath@webkit.org>
6336 Reviewed by Alexey Proskuryakov.
6338 https://bugs.webkit.org/show_bug.cgi?id=24356
6340 Fix WebKit style for allowUniversalAccessFromFileURLs.
6342 * Api/qwebsettings.cpp:
6343 (QWebSettingsPrivate::apply):
6345 2009-03-03 Adam Barth <abarth@webkit.org>
6347 Reviewed by Alexey Proskuryakov.
6349 https://bugs.webkit.org/show_bug.cgi?id=24340
6351 Expose AllowUniversalAccessFromFileUrls to Qt clients.
6353 * Api/qwebsettings.cpp:
6354 (QWebSettingsPrivate::apply):
6355 (QWebSettings::QWebSettings):
6356 * Api/qwebsettings.h:
6358 2009-03-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
6360 Rubber-stamped by Simon Hausmann.
6362 [Qt] Create and update the action for SelectAll.
6365 (QWebPagePrivate::updateAction):
6366 (QWebPagePrivate::updateEditorActions):
6368 * tests/qwebpage/tst_qwebpage.cpp:
6369 (tst_QWebPage::textSelection):
6371 2009-03-02 Adam Treat <adam.treat@torchmobile.com>
6373 Reviewed by Eric Seidel.
6375 Add three new drt helper functions that enable all of the tests in
6376 LayoutTests/animation/* and LayoutTests/transitions/* to now pass.
6378 * Api/qwebframe.cpp:
6379 (qt_drt_pauseAnimation):
6380 (qt_drt_pauseTransitionOfProperty):
6381 (qt_drt_numberOfActiveAnimations):
6383 2009-03-02 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
6385 Reviewed by George Staikos.
6387 https://bugs.webkit.org/show_bug.cgi?id=21230
6388 On X11 match the behavior of Firefox and also copy the url to the
6389 clipboard selection when the action Copy Link Location is executed.
6392 (QWebPage::triggerAction):
6394 2009-02-25 Kavindra Palaraja <kavindra.palaraja@nokia.com>
6396 Reviewed by Simon Hausmann.
6398 Fix the documentation for the linkHovered signal.
6402 2009-02-23 Adam Treat <adam.treat@torchmobile.com>
6404 Reviewed by Darin Adler.
6406 https://bugs.webkit.org/show_bug.cgi?id=24094
6407 Make sure to empty the cache on exit to get rid of superfluous leak messages
6408 for CachedResource's in order to keep the leak messages accurate. This
6409 is analagous to what the Mac port is doing on application exit when all
6410 WebView's have been closed.
6413 (QWebPagePrivate::_q_cleanupLeakMessages):
6414 (QWebPage::QWebPage):
6418 2009-02-23 Thiago Macieira <thiago.macieira@nokia.com>
6420 Reviewed by Simon Hausmann.
6422 Fix the Copyright notices in a few files
6426 2009-02-16 Simon Hausmann <simon.hausmann@nokia.com>
6428 Reviewed by Tor Arne Vestbø.
6430 Avoid loading plugins when they're disabled in the settings.
6432 * WebCoreSupport/FrameLoaderClientQt.cpp:
6433 (WebCore::FrameLoaderClientQt::canShowMIMEType): Don't call into the
6434 PluginDatabase if plugins are disabled in the settings.
6436 2009-02-13 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
6438 Reviewed by Nikolas Zimmermann.
6440 https://bugs.webkit.org/show_bug.cgi?id=23738
6441 Expose the url elements target frame string. This is the sister function
6442 to the existing linkTargetFrame which returns the QWebFrame*. When the
6443 linkTargetFrame is 0 it is useful to know what the target was to be.
6445 * Api/qwebframe.cpp:
6446 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
6447 (QWebHitTestResult::linkTarget):
6449 * Api/qwebframe_p.h:
6450 * tests/qwebframe/tst_qwebframe.cpp:
6452 2009-02-13 David Boddie <dboddie@trolltech.com>
6454 Reviewed by Simon Hausmann.
6456 Removed documentation for internal functions.
6458 * Api/qwebsettings.cpp:
6460 2009-02-13 Martin Smith <msmith@trolltech.com>
6462 Reviewed by Simon Hausmann.
6464 Corrected some minor qdoc errors.
6466 * Api/qwebsettings.cpp:
6468 2009-02-11 Dimitri Dupuis-latour <dupuislatour@apple.com>
6470 Stub out InspectorClientQt::hiddenPanels.
6472 Reviewed by Timothy Hatcher.
6474 * WebCoreSupport/InspectorClientQt.cpp:
6475 (WebCore::InspectorClientQt::hiddenPanels):
6476 * WebCoreSupport/InspectorClientQt.h:
6478 2009-02-10 Karsten Heimrich <kheimric@trolltech.com>
6480 Reviewed by Simon Hausmann.
6482 Fixes missing navigation/url update while clicking on anchor inside
6485 * WebCoreSupport/FrameLoaderClientQt.cpp:
6486 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
6487 update and emit in case we navigate inside a webpage
6489 2009-02-10 Adam Treat <adam.treat@torchmobile.com>
6491 Fix the Qt build as class Selection is now VisibleSelection.
6494 (QWebPage::inputMethodQuery):
6496 2009-02-06 Geoffrey Garen <ggaren@apple.com>
6500 * WebCoreSupport/FrameLoaderClientQt.cpp:
6501 (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks):
6502 * WebCoreSupport/FrameLoaderClientQt.h:
6504 2009-02-06 Kavindra Palaraja <kavindra.palaraja@nokia.com>
6506 Reviewed by Simon Hausmann.
6508 Doc - made 2 functions internal as they are not part of the API anymore (and this fixes 2 qdoc warnings)
6510 * Api/qwebsettings.cpp:
6512 2009-02-06 Simon Hausmann <simon.hausmann@nokia.com>
6514 Reviewed by Tor Arne Vestbø.
6516 Added an overload of QWebFrame::addToJavaScriptWindowObject that takes a QScriptEngine::ValueOwnership parameter.
6518 * Api/qwebframe.cpp:
6519 (QWebFrame::addToJavaScriptWindowObject): New overload.
6521 * tests/qwebframe/tst_qwebframe.cpp: Added unit tests for ownership
6524 2009-02-06 Aaron Boodman <aa@chromium.org>
6526 Reviewed by Holger Freyther.
6528 * WebCoreSupport/FrameLoaderClientQt.cpp:
6529 (WebCore::FrameLoaderClientQt::documentElementAvailable):)
6530 Fix compile error in Qt build introduced by the below change (r40694).
6532 2009-02-05 Aaron Boodman <aa@chromium.org>
6534 Reviewed by Dave Hyatt.
6536 https://bugs.webkit.org/show_bug.cgi?id=23708
6537 Adds documentElementAvailable() callback to FrameLoaderClient.
6539 * WebCoreSupport/FrameLoaderClientQt.cpp:
6540 (WebCore::FrameLoaderClient::documentElementAvailable):
6541 Stub out documentElementAvailable().
6542 * WebCoreSupport/FrameLoaderClientQt.h:
6545 2009-02-04 David Boddie <dboddie@trolltech.com>
6547 Reviewed by Simon Hausmann.
6549 Doc: Documented the return value of the evaluateJavaScript() function.
6551 * Api/qwebframe.cpp:
6553 2009-02-03 Simon Hausmann <simon.hausmann@nokia.com>
6555 Reviewed by Tor Arne Vestbø.
6557 Added a unit test to verify the succesful conversion from QByteArray to
6558 JSByteArray and back to QByteArray.
6560 * tests/qwebframe/tst_qwebframe.cpp:
6562 2009-02-02 Geoffrey Garen <ggaren@apple.com>
6566 * Api/qwebframe.cpp:
6567 (QWebFrame::QWebFrame):
6569 (QWebFrame::setHtml):
6570 (QWebFrame::setContent):
6572 2009-02-02 Geoffrey Garen <ggaren@apple.com>
6576 * WebCoreSupport/FrameLoaderClientQt.cpp:
6577 (WebCore::FrameLoaderClientQt::createFrame):
6579 2009-02-02 Geoffrey Garen <ggaren@apple.com>
6581 Reviewed by Sam Weinig.
6583 Track redirects in global history.
6587 * WebCoreSupport/FrameLoaderClientQt.cpp:
6588 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForRedirectWithoutHistoryItem):
6589 (WebCore::FrameLoaderClientQt::createFrame):
6590 * WebCoreSupport/FrameLoaderClientQt.h:
6592 2009-02-02 Anders Carlsson <andersca@apple.com>
6594 Reviewed by Dan Bernstein.
6596 Update for changes to WebCore.
6598 * WebCoreSupport/FrameLoaderClientQt.cpp:
6599 (WebCore::FrameLoaderClientQt::createPlugin):
6600 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
6601 * WebCoreSupport/FrameLoaderClientQt.h:
6603 2009-02-02 Adam Treat <adam.treat@torchmobile.com>
6605 Reviewed by Nikolas Zimmermann.
6607 https://bugs.webkit.org/show_bug.cgi?id=23587
6608 Refactor HitTestRequest to eliminate all the ugly boolean arguments and
6609 use an enum bitflag instead. Cleanup all the code that constructs the
6610 various HitTestRequests to make the code more readable.
6612 * Api/qwebframe.cpp:
6613 (QWebFrame::hitTestContent):
6615 2009-02-02 Adam Treat <adam.treat@torchmobile.com>
6617 Fix the Qt build to call forceLayout on the view instead.
6620 (QWebPage::setFixedLayoutSize):
6621 (QWebPage::setUseFixedLayout):
6623 2009-02-02 Holger Hans Peter Freyther <zecke@selfish.org>
6625 Reviewed by Darin Adler.
6627 Move Frame::forceLayout, Frame::adjustPageHeight and Frame::forceLayoutWithPageWidthRange to FrameView
6629 https://bugs.webkit.org/show_bug.cgi?id=23428
6631 FrameView::forceLayout could be killed but the comment might
6632 contain a value over the the plain FrameView::layout...
6634 Adjust the WebCore/WebKit consumers of these methods.
6637 (QWebPage::setViewportSize):
6638 * WebCoreSupport/FrameLoaderClientQt.cpp:
6639 (WebCore::FrameLoaderClientQt::forceLayout):
6641 2009-01-30 Geoffrey Garen <ggaren@apple.com>
6645 * WebCoreSupport/FrameLoaderClientQt.cpp:
6646 (WebCore::FrameLoaderClientQt::createFrame):
6648 2009-01-30 Holger Hans Peter Freyther <zecke@selfish.org>
6650 Reviewed by Simon Hausmann.
6652 https://bugs.webkit.org/show_bug.cgi?id=22056
6654 Kill FrameLoaderClient.cpp, move the code over to Frame::createView
6656 FrameLoaderClient is supposed to be an interface, move the
6657 to be shared code to Frame which is a controller and is
6658 allowed to create a FrameView.
6660 * WebCoreSupport/FrameLoaderClientQt.cpp:
6661 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
6663 2009-01-30 Geoffrey Garen <ggaren@apple.com>
6665 Reviewed by Sam Weinig.
6667 Split "lockHistory" into "lockHistory" and "lockBackForwardList" in
6668 preparation for setting them differently during a redirect.
6671 (QWebPage::triggerAction):
6673 2009-01-30 Brady Eidson <beidson@apple.com>
6675 Reviewed by Sam Weinig
6677 Remove FrameLoaderClient code that is now handled by FrameLoader itself
6679 * WebCoreSupport/FrameLoaderClientQt.cpp:
6680 (WebCore::FrameLoaderClientQt::frameLoadCompleted):
6682 2009-01-30 Simon Hausmann <simon.hausmann@nokia.com>
6684 Reviewed by Tor Arne Vestbø.
6686 Hide the Offline Web Application Cache path API from the public API
6689 * Api/qwebsettings.cpp:
6690 (qt_websettings_setOfflineWebApplicationCachePath):
6691 (qt_websettings_offlineWebApplicationCachePath):
6692 * Api/qwebsettings.h:
6694 2009-01-28 Adam Treat <adam.treat@torchmobile.com>
6696 Reviewed by Nikolas Zimmermann and George Staikos.
6698 https://bugs.webkit.org/show_bug.cgi?id=23557
6699 Do not clip the QWebFrame::hitTestContent method to the visible viewport
6700 and add a regression test to make sure it works.
6702 * Api/qwebframe.cpp:
6703 (QWebFrame::hitTestContent):
6704 * tests/qwebframe/tst_qwebframe.cpp:
6706 2009-01-28 Ariya Hidayat <ariya.hidayat@trolltech.com>
6708 Rubber-stamped by Simon Hausmann.
6710 Provide default implementations of JavaScript dialog boxes like in
6711 most web browsers, i.e. indicate that is from JavaScript and show the
6715 (QWebPage::javaScriptAlert):
6716 (QWebPage::javaScriptConfirm):
6717 (QWebPage::javaScriptPrompt):
6719 2009-01-27 Ariya Hidayat <ariya.hidayat@trolltech.com>
6721 Reviewed by Simon Hausmann.
6723 http://qt.nokia.com/developer/task-tracker/index_html?id=238391&method=entry
6725 [Qt] If QPainter fails to start on a QPrinter instance, do not
6728 * Api/qwebframe.cpp:
6731 2009-01-27 Brady Eidson <beidson@apple.com>
6733 Reviewed by Dan Bernstein
6735 Rework FrameLoaderClient to work on a CachedFrame basis instead of CachedPage
6737 * WebCoreSupport/FrameLoaderClientQt.cpp:
6738 (WebCore::FrameLoaderClientQt::savePlatformDataToCachedFrame):
6739 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedFrame):
6740 * WebCoreSupport/FrameLoaderClientQt.h:
6742 2009-01-26 Simon Fraser <simon.fraser@apple.com>
6744 Reviewed by David Hyatt
6746 Back out r40285, because it was checked in with no bug number, no
6747 testcase, is rendering change that did not get thorough review,
6748 and broke the Mac build.
6750 * Api/qwebframe.cpp:
6751 (QWebFrame::hitTestContent):
6753 2009-01-26 Adam Treat <adam.treat@torchmobile.com>
6755 Reviewed by Nikolas Zimmermann.
6757 Do not clip the QWebFrame::hitTestContent method to the visible viewport.
6759 * Api/qwebframe.cpp:
6760 (QWebFrame::hitTestContent):
6762 2009-01-26 David Boddie <dboddie@trolltech.com>
6764 Reviewed by Simon Hausmann.
6766 Doc: qdoc fix for a link to a property and added a basic description of the offline caching and storage features from HTML 5.
6769 * Api/qwebsettings.cpp:
6771 2009-01-25 Urs Wolfer <uwolfer@kde.org>
6773 Reviewed by Simon Hausmann.
6775 Add QWebPage::SelectAll to WebAction enum to select all content.
6777 https://bugs.webkit.org/show_bug.cgi?id=22946
6780 (QWebPagePrivate::editorActionForKeyEvent):
6783 2009-01-25 David Boddie <dboddie@trolltech.com>
6785 Reviewed by Simon Hausmann.
6787 Doc: Fixed the terminology used.
6791 2009-01-25 Thiago Macieira <thiago.macieira@nokia.com>
6793 Reviewed by Simon Hausmann.
6795 Rename links from trolltech.com to qtsoftware.com
6797 * Api/qwebpluginfactory.cpp:
6799 2009-01-25 Tor Arne Vestbø <tavestbo@trolltech.com>
6801 Reviewed by Simon Hausmann.
6803 Make QWebPage auto-test more robust by cleaning up generated files
6805 Sometimes the auto-test may segfault, leaving behind files because the
6806 call to cleanupTestCase() never happens, so we also clean up the files
6807 at initTestCase() just to make sure we're running in a clean environment.
6809 * tests/qwebpage/tst_qwebpage.cpp:
6810 (tst_QWebPage::cleanupFiles):
6811 (tst_QWebPage::initTestCase):
6812 (tst_QWebPage::cleanupTestCase):
6814 2008-12-20 Urs Wolfer <uwolfer@kde.org>
6816 Reviewed by Simon Hausmann.
6818 Fix: compile qwebhistory.h with pendantic comiler flag.
6820 https://bugs.webkit.org/show_bug.cgi?id=22947
6822 * Api/qwebhistory.h:
6824 2009-01-24 Adam Treat <adam.treat@torchmobile.com>
6826 Oops, fix the Qt build.
6828 * Api/qwebframe.cpp:
6829 (QWebFrame::render):
6831 2009-01-24 Adam Treat <adam.treat@torchmobile.com>
6833 Reviewed by Nikolas Zimmermann.
6835 Add QWebFrame::renderContents() method which allows arbitary rendering
6836 of any content region within the QWebFrame. It also does not draw any
6839 * Api/qwebframe.cpp:
6840 (QWebFrame::renderContents):
6843 2009-01-23 Ariya Hidayat <ariya.hidayat@trolltech.com>
6845 Reviewed by Simon Hausmann.
6847 Make the test more robust by taking into account the platform-specific
6848 cursor flashing time.
6850 * tests/qwebframe/tst_qwebframe.cpp:
6852 2009-01-20 Friedemann Kleint <Friedemann.Kleint@nokia.com>
6854 Reviewed by Simon Hausmann.
6856 Fix spelling error in QWebPage
6861 2009-01-19 Simon Hausmann <simon.hausmann@nokia.com>
6863 Reviewed by Tor Arne Vestbø.
6865 Fix calling of onkeypress event handlers on input elements when pressing enter
6866 and other text insertion commands in the Qt port.
6868 Similar to the win and mac ports don't execute text inserting editor
6869 commands on RawKeyDown but continue processing the event first in
6870 WebCore, i.e. also get a keypress event sent. If unhandled it will
6871 come back to EditorClientQt::handleKeyboardEvent later and we execute
6874 This also fixes search by pressing enter on www.trafikanten.no.
6877 (QWebPagePrivate::editorCommandForWebActions): Make function
6878 accessible from other files.
6879 (QWebPage::triggerAction): Adjust to new function visibility.
6880 * Api/qwebpage_p.h: Ditto.
6881 * WebCoreSupport/EditorClientQt.cpp:
6882 (WebCore::EditorClientQt::handleKeyboardEvent): Don't execute
6883 text inserting commands on RawKeyPressDown.
6885 2009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com>
6887 Rubber-stamped by Simon Hausmann.
6889 [Qt] Increase popup focus delay time to a sensible 500 ms.
6891 * tests/qwebframe/tst_qwebframe.cpp:
6893 2009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com>
6895 Reviewed by Adam Roben.
6897 [Qt] Prevent crash if plugin data is NULL.
6899 * WebCoreSupport/FrameLoaderClientQt.cpp: NULL check.
6900 (WebCore::FrameLoaderClientQt::objectContentType):
6902 2009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com>
6904 Rubber-stamped by Simon Hausmann.
6906 [Qt] Per-line cursor movement tests depend on platform-specific font
6907 metrics. Remove them to avoid test failures on different platforms.
6909 * tests/qwebpage/tst_qwebpage.cpp:
6910 (tst_QWebPage::cursorMovements):
6912 2009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com>
6914 Rubber-stamped by Simon Hausmann.
6916 http://qt.nokia.com/developer/task-tracker/index_html?id=219344&method=entry
6918 [Qt] API documentation for QWebPage::WebAction enum.
6922 2009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com>
6924 Another attempt at fixing the Qt build.
6926 * Api/qwebframe.cpp:
6927 (QWebFrame::addToJavaScriptWindowObject):
6929 2009-01-14 Ariya Hidayat <ariya.hidayat@trolltech.com>
6931 Reviewed by Tor Arne Vestbø.
6933 [Qt] Unit tests for text selection and editing actions of QWebPage.
6934 The following are tested:
6935 - the actions are not NULL
6936 - the actions are disabled when contentEditable is false
6937 - the actions are enabled when contentEditable is true
6939 * tests/qwebpage/tst_qwebpage.cpp:
6940 (tst_QWebPage::textSelection):
6941 (tst_QWebPage::textEditing):
6943 2009-01-14 Simon Hausmann <simon.hausmann@nokia.com>
6945 Reviewed by Tor Arne Vestbø.
6947 Fix failing assertion when pressing an extra mouse button on a
6950 Mice with more than three buttons - for example with a dedicated
6951 "back" button - can generate Qt::XButton1 or Button2.
6952 WebCore::MouseButton contains only Left, Middle and Right, so in
6953 Qt's PlatformMouseEvent we map to NoButton, resulting in a mouse
6954 press or release even with no button set. That triggers an assertion
6955 in EventTargetNode::dispatchMouseEvent requiring that either a button
6956 is set or it is just a mouse move event, which is correct.
6958 In QWebPage decide not to dispatch such mouse events where we cannot
6959 map the mouse button to a WebCore::MouseButton.
6962 (QWebPagePrivate::mousePressEvent):
6963 (QWebPagePrivate::mouseDoubleClickEvent):
6964 (QWebPagePrivate::mouseTripleClickEvent):
6965 (QWebPagePrivate::mouseReleaseEvent):
6967 2009-01-14 Ariya Hidayat <ariya.hidayat@trolltech.com>
6969 Reviewed by Simon Hausmann.
6971 http://qt.nokia.com/developer/task-tracker/index_html?id=241144&method=entry
6973 [Qt] Create actions for text selection and editing for QWebPage.
6974 Also properly disable and enable them when contentEditable is toggled.
6977 (QWebPagePrivate::updateAction):
6978 (QWebPagePrivate::updateEditorActions):
6981 2009-01-14 Ariya Hidayat <ariya.hidayat@trolltech.com>
6983 Reviewed by Simon Hausmann.
6985 [Qt] Unit tests for cursor movements. The following are tested:
6986 - the actions are not NULL
6987 - the actions are disabled when contentEditable is false
6988 - the actions are enabled when contentEditable is true
6989 - the cursor moves properly when the actions are triggered
6991 * tests/qwebpage/tst_qwebpage.cpp:
6992 (CursorTrackedPage::CursorTrackedPage):
6993 (CursorTrackedPage::selectedText):
6994 (CursorTrackedPage::selectionStartOffset):
6995 (CursorTrackedPage::selectionEndOffset):
6996 (CursorTrackedPage::isSelectionCollapsed):
6997 (tst_QWebPage::cursorMovements):
6999 2009-01-08 Yongjun Zhang <yongjun.zhang@nokia.com>
7001 Reviewed by Simon Hausmann.
7003 https://bugs.webkit.org/show_bug.cgi?id=23187
7005 Update webview with the intersected rect.
7007 In ChromeClientQt::repaint, view should be updated with the
7008 intersected rect, not the whole windowRect;
7010 This generally is not a problem for normal viewport setup where
7011 viewport size is the same as the qwebview widget size. However, if we
7012 set the viewport size smaller than qwebkit widget, we will see
7013 unwanted painting outside the viewport.
7015 * WebCoreSupport/ChromeClientQt.cpp:
7016 (WebCore::ChromeClientQt::repaint):
7018 2009-01-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
7020 Rubber-stamped by Tor Arne Vestbø.
7022 [Qt] Missing piece from my previous commit:
7023 Disable and enable the cursor navigation actions when contentEditable
7027 (QWebPagePrivate::updateEditorActions):
7029 2009-01-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
7031 Reviewed by Tor Arne Vestbø.
7033 [Qt] Create actions for cursor navigation for QWebPage.
7034 Also properly disable and enable them when contentEditable is toggled.
7037 (QWebPagePrivate::updateAction):
7040 2009-01-13 Simon Hausmann <simon.hausmann@nokia.com>
7042 Reviewed by Tor Arne Vestbø.
7044 https://bugs.webkit.org/show_bug.cgi?id=23171
7046 Based on patch by Yael Aharon <yael.aharon@nokia.com>
7048 Make the QWebSettings functions for setting the path for the local
7049 storage database private QtWebkit API, including the ability to
7050 associated a QWebPage with a named page group.
7053 (qt_webpage_setGroupName): Added.
7054 (qt_webpage_groupName): Added.
7056 (ExtensionOption::handle): Added internal helper function.
7057 * Api/qwebsettings.cpp:
7058 (qt_websettings_setLocalStorageDatabasePath): Made private API.
7059 (qt_websettings_localStorageDatabasePath): Made private API.
7060 * Api/qwebsettings.h:
7061 * tests/qwebpage/tst_qwebpage.cpp:
7062 (tst_QWebPage::database): Small cleanup.
7063 (tst_QWebPage::multiplePageGroupsAndLocalStorage): New test for the
7064 page group handling, written by Yael.
7066 2009-01-12 Tor Arne Vestbø <tavestbo@trolltech.com>
7068 Reviewed by Simon Hausmann.
7070 [Qt] Ensure that we're always notified of navigation actions for local anchors
7072 FrameLoader::checkNavigationPolicy() does not notify us if the request has
7073 been checked before (which happens for local anchors), but in the case of
7074 our clients not accepting the navigation request we do want to be notified
7075 again later on, so we clear the lastCheckedRequest flag.
7077 * WebCoreSupport/FrameLoaderClientQt.cpp:
7078 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
7079 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
7081 2009-01-12 Ariya Hidayat <ariya.hidayat@trolltech.com>
7083 Rubber-stamped by Tor Arne Vestbø.
7085 Build fix: use qobject_cast which does not rely on RTTI. This fixes the
7086 unit test when building it with a version of Qt (e.g. Qt/Embedded)
7087 configured without RTTI.
7089 * tests/qwebframe/tst_qwebframe.cpp:
7091 2009-01-12 Simon Hausmann <simon.hausmann@nokia.com>
7093 Rubber-stamped by Tor Arne Vestbø.
7095 When the QWebView is disabled context menus implemented in JavaScript should not pop up.
7097 Just like in QWidget::event() we have to check for the disabled state and
7098 ignore context menu events.
7102 2009-01-12 Simon Hausmann <simon.hausmann@nokia.com
7104 Reviewed by Tor Arne Vestbø.
7106 Fix QWebView appearance when showed uninitialized without page.
7108 Only set WA_OpaquePaintEvent if we have a page set that will actually
7109 paint the entire contents, otherwise the optimization does not apply
7110 as we do not have a paintEvent() implementation and Qt has to fill the
7111 view with its default background instead.
7114 (QWebView::QWebView):
7115 (QWebView::setPage):
7117 2009-01-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
7119 Rubber-stamped by Tor Arne Vestbø.
7121 Do not create a QVariant from QObject* directly, use the
7122 template-specialized function.
7124 * tests/qwebframe/tst_qwebframe.cpp:
7125 (MyQObject::myOverloadedSlot):
7127 2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>
7129 Rubber-stamped by Tor Arne Vestbø.
7131 Documentation fixes, remove duplicated docs, document missing
7132 parameters and return values.
7134 * Api/qwebdatabase.cpp:
7137 2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>
7139 Reviewed by Tor Arne Vestbø.
7141 Fix linking against QtWebKit on Windows, by defining the EXPORT macros
7142 _exactly_ the same way as in qglobal.h, depending on QT_NODLL,
7143 QT_MAKEDLL and QT_SHARED.
7145 * Api/qwebkitglobal.h:
7147 2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>
7149 Reviewed by Tor Arne Vestbø.
7151 Remove qwebnetworkinterface.h from WEBKIT_API_HEADERS as it's not
7152 public Qt 4.4/4.5 API.
7156 2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>
7158 Unreviewed Qt build fix, remove qcookiejar.h from the API headers and
7159 therefore HEADERS. It's not part of the API and it moc shouldn't be
7164 2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>
7166 Rubber-stamped by Tor Arne Vestbø.
7168 Remove files not present anymore from the WEBKIT_API_HEADERS variable.
7172 2009-01-08 Adam Treat <adam.treat@torchmobile.com>
7174 Reviewed by Simon Hausmann.
7176 Don't set the minimumFontSize and minimumLogicalFontSize as these are
7177 just for accessibility and should be left up to the client application.
7179 * Api/qwebsettings.cpp:
7180 (QWebSettings::QWebSettings):
7182 2009-01-08 Kavindra Palaraja <kdpalara@trolltech.com>
7184 Reviewed by Simon Hausmann.
7186 Small fixes to the API documentation, missing 4.5 tags and
7187 undocumented parameters.
7189 * Api/qwebhistory.cpp:
7191 * Api/qwebsettings.cpp:
7193 2009-01-07 Adam Treat <adam.treat@torchmobile.com>
7195 Reviewed by George Staikos.
7197 Add Qt API to QWebHitTestResult::isScrollBar method
7199 * Api/qwebframe.cpp:
7200 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
7201 (QWebHitTestResult::isScrollBar):
7203 * Api/qwebframe_p.h:
7204 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
7206 2009-01-07 Adam Treat <adam.treat@torchmobile.com>
7208 Reviewed by George Staikos.
7210 Add Qt API for QWebFrame::scrollBarGeometry method
7212 * Api/qwebframe.cpp:
7213 (QWebFrame::scrollBarGeometry):
7216 2009-01-07 Adam Treat <adam.treat@torchmobile.com>
7218 Reviewed by George Staikos.
7220 Fix unused variable warnings
7222 * tests/qwebpage/tst_qwebpage.cpp:
7223 (TestPage::createWindow):
7225 2009-01-07 Ariya Hidayat <ariya.hidayat@trolltech.com>
7227 Rubber-stamped by Simon Hausmann.
7229 Qt build fix after r39670.
7231 * Api/qwebframe.cpp:
7232 (QWebFrame::evaluateJavaScript):
7234 2009-01-06 Ariya Hidayat <ariya.hidayat@trolltech.com>
7236 Reviewed by Holger Freyther.
7238 Allow building QtWebKit statically (within Qt).
7240 http://trolltech.com/developer/task-tracker/index_html?id=211273&method=entry
7242 * Api/qwebkitglobal.h:
7244 2009-01-06 Adam Treat <adam.treat@torchmobile.com>
7246 Reviewed by Simon Hausmann.
7248 Update the documentation to reflect when these API changes will land in
7251 * Api/qwebframe.cpp:
7254 2009-01-05 Adam Treat <adam.treat@torchmobile.com>
7256 Reviewed by George Staikos.
7258 Add Qt API for QWebFrame::contentsSizeChanged signal
7260 * Api/qwebframe.cpp:
7262 * WebCoreSupport/ChromeClientQt.cpp:
7263 (WebCore::ChromeClientQt::contentsSizeChanged):
7264 * WebCoreSupport/ChromeClientQt.h:
7266 2009-01-05 Adam Treat <adam.treat@torchmobile.com>
7268 Reviewed by George Staikos.
7270 Fixes QWebFrame::setScrollBarPolicy(..) to actually work. Also happens
7271 to fix 192 layout tests that were previously failing for Qt.
7273 * Api/qwebframe.cpp:
7274 (QWebFrame::setScrollBarPolicy):
7275 * WebCoreSupport/FrameLoaderClientQt.cpp:
7276 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
7278 2009-01-04 Adam Treat <adam.treat@torchmobile.com>
7280 Reviewed by George Staikos.
7282 Add new API to QWebHitTestResult to return a rect for the smallest enclosing
7283 block element of the hit test
7285 * Api/qwebframe.cpp:
7286 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
7287 (QWebHitTestResult::enclosingBlock):
7289 * Api/qwebframe_p.h:
7291 2008-12-30 Adam Treat <adam.treat@torchmobile.com>
7293 Reviewed by George Staikos.
7295 Make the qt port build and work with the new fixedLayoutSize feature
7298 (QWebPagePrivate::QWebPagePrivate):
7299 (QWebPage::fixedLayoutSize):
7300 (QWebPage::setFixedLayoutSize):
7301 (QWebPage::useFixedLayout):
7302 (QWebPage::setUseFixedLayout):
7305 * WebCoreSupport/FrameLoaderClientQt.cpp:
7306 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
7308 2008-12-19 Jade Han <jade.han@nokia.com>
7310 Reviewed by Tor Arne Vestbø.
7312 [Qt] Allow conversion of JavaScript Number and Boolean types to Qt types
7314 https://bugs.webkit.org/show_bug.cgi?id=22880
7316 * tests/qwebframe/tst_qwebframe.cpp:
7317 (MyQObject::myInvokableWithBoolArg):
7319 2008-12-18 Yael Aharon <yael.aharon@nokia.com>
7321 Reviewed by Tor Arne Vestbø.
7323 When Web Inspector is launched without an associated node,
7324 call show() instead of inspect().
7327 (QWebPage::triggerAction):
7329 2008-12-18 Dan Bernstein <mitz@apple.com>
7331 Reviewed by Sam Weinig.
7333 - stub out FrameLoaderClient::shouldUseCredentialStorage().
7335 * WebCoreSupport/FrameLoaderClientQt.cpp:
7336 (WebCore::FrameLoaderClientQt::shouldUseCredentialStorage):
7337 * WebCoreSupport/FrameLoaderClientQt.h:
7339 2008-12-18 Sam Weinig <sam@webkit.org>
7341 Reviewed by John Sullivan.
7343 Stub out FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout()
7345 * WebCoreSupport/FrameLoaderClientQt.cpp:
7346 (WebCore::FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout):
7347 * WebCoreSupport/FrameLoaderClientQt.h:
7349 2008-12-16 Simon Hausmann <hausmann@webkit.org>
7351 Reviewed by Holger Freyther.
7353 Added support for unload event counting to the Qt DRT.
7356 (qt_drt_run): Moved function here.
7357 * Api/qwebpage_p.h: Moved drt run boolean here.
7358 * WebCoreSupport/EditorClientQt.cpp: Moved drt run boolean.
7359 (WebCore::EditorClientQt::shouldShowDeleteInterface): Use the new drt
7361 * WebCoreSupport/FrameLoaderClientQt.cpp:
7362 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): Add DRT
7363 output for unload event handler counting.
7365 2008-12-15 Holger Hans Peter Freyther <zecke@selfish.org>
7367 Reviewed by Simon Hausmann.
7369 Change the order of sub frame initialisation to avoid crashes
7371 Add the newly created frame to the FrameTree before calling
7372 WebCore::Frame::init to not segfault on
7373 LayoutTests/fast/loader/frame-creation-removal.html.
7375 * Api/qwebframe.cpp:
7376 (QWebFramePrivate::init):
7377 * WebCoreSupport/FrameLoaderClientQt.cpp:
7378 (WebCore::FrameLoaderClientQt::createFrame):
7380 2008-12-15 Simon Hausmann <hausmann@webkit.org>
7382 Reviewed by Holger Freyther.
7384 Implement setJavaScriptProfilingEnabled in the Qt DRT to pass fast/profiler.
7386 * Api/qwebframe.cpp:
7387 (qt_drt_setJavaScriptProfilingEnabled):
7389 2008-12-12 Simon Hausmann <hausmann@webkit.org>
7391 Reviewed by Tor Arne Vestbø.
7393 Fix pressing return/enter not triggering any action on web sites
7394 that define event handlers, such as the JS console in the web
7397 Process the key events in the DOM first and if not handled map them
7401 (QWebPagePrivate::editorActionForKeyEvent): Made a class method.
7402 (QWebPagePrivate::keyPressEvent): Pass the key event first to the DOM.
7403 * WebCoreSupport/EditorClientQt.cpp:
7404 (WebCore::EditorClientQt::handleKeyboardEvent): Map the key event to
7405 actions and trigger them.
7407 2008-12-12 Ariya Hidayat <ariya.hidayat@trolltech.com>
7409 Reviewed by Simon Hausmann.
7411 Create the plugin widget even though the web page has no associated
7412 view. This prevents the plugin to be uselessly constructed more than once.
7414 * WebCoreSupport/FrameLoaderClientQt.cpp:
7415 (WebCore::FrameLoaderClientQt::createPlugin):
7416 * tests/qwebpage/tst_qwebpage.cpp:
7417 (tst_QWebPage::createViewlessPlugin):
7419 2008-12-11 Enrico Ros <enrico.ros@m31.com>
7421 Reviewed by Simon Hausmann.
7423 Fix the broken focus behavior that happened when QWebPage lost
7424 focus to a popup menu.
7426 The previous code didn't notify the QWebPage at all when the
7427 focus was back in (breaking focus rects, caret blinking, ...).
7428 By the way when a popup is show, 2 FocusOut events are delivered
7429 to the QWebPage, but this doesn't seem to hurt.
7431 Added a test to check popup opening, closing a lineedit blinks.
7434 (QWebPagePrivate::focusInEvent):
7435 (QWebPagePrivate::focusOutEvent):
7436 * tests/qwebframe/tst_qwebframe.cpp:
7439 2008-12-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
7441 Reviewed by Tor Arne Vestbø.
7443 When the web page is navigated away, delete the instance
7444 of the native plugin.
7446 http://trolltech.com/developer/task-tracker/index_html?id=214946&method=entry
7448 * WebCoreSupport/FrameLoaderClientQt.cpp:
7450 * tests/qwebpage/tst_qwebpage.cpp:
7451 (PluginTrackedPage::PluginTrackedPage):
7452 (PluginTrackedPage::createPlugin):
7453 (tst_QWebPage::destroyPlugin):
7455 2008-12-11 Yael Aharon <yael.aharon@nokia.com>
7457 Reviewed by Simon Hausmann.
7459 Allow applications to save and restore their state between loads.
7461 * Api/qwebframe.cpp:
7463 * WebCoreSupport/FrameLoaderClientQt.cpp:
7464 (WebCore::FrameLoaderClientQt::restoreViewState):
7465 (WebCore::FrameLoaderClientQt::saveViewStateToItem):
7466 * tests/qwebpage/tst_qwebpage.cpp:
7467 (tst_QWebPage::modified):
7469 2008-12-08 Tor Arne Vestbø <tavestbo@trolltech.com>
7471 Reviewed by Darin Adler and Holger Freyther.
7473 Make Widget::frameRectsChanged() and overrides non-const
7475 This will hopefully allow us to get rid of some of the mutables in
7476 the classes that react to the callback by changing their own state.
7478 * WebCoreSupport/FrameLoaderClientQt.cpp:
7481 2008-12-10 Holger Hans Peter Freyther <zecke@selfish.org>
7483 Reviewed by Simon Hausmann.
7485 API changes discussed with Simon Hausmann, Tor Arne
7486 Vestbø, Ariya Hidayat...
7488 * Api/qwebdatabase.cpp:
7489 (QWebDatabase::fileName):
7490 (QWebDatabase::removeDatabase):
7491 * Api/qwebdatabase.h:
7492 * Api/qwebframe.cpp:
7493 (QWebFrame::scroll):
7494 (QWebFrame::scrollPosition):
7495 (QWebFrame::setScrollPosition):
7498 (QWebPage::setContentEditable):
7499 (QWebPage::isContentEditable):
7500 (QWebPage::extension):
7502 * Api/qwebsecurityorigin.cpp:
7503 * Api/qwebsettings.cpp:
7504 (QWebSettingsPrivate::apply):
7505 (QWebSettings::QWebSettings):
7506 * Api/qwebsettings.h:
7507 * QtLauncher/main.cpp:
7508 (MainWindow::setEditable):
7509 * WebCoreSupport/ChromeClientQt.cpp:
7510 (WebCore::ChromeClientQt::exceededDatabaseQuota):
7511 (WebCore::ChromeClientQt::runOpenPanel):
7512 * WebCoreSupport/EditorClientQt.cpp:
7513 (WebCore::EditorClientQt::isEditable):
7514 * tests/qwebpage/tst_qwebpage.cpp:
7515 (tst_QWebPage::database):
7517 2008-12-09 Balazs Kelemen <Kelemen.Balazs.3@stud.u-szeged.hu>
7519 Reviewed by Simon Hausmann.
7521 Extended QtLauncher so now it can load pages from an url list
7522 one by one. This can be useful for testing purposes (eq. leak hunting).
7523 The -r option activates this feature.
7525 https://bugs.webkit.org/show_bug.cgi?id=20932
7527 * QtLauncher/main.cpp:
7528 (MainWindow::webPage):
7529 Just a coding style repairing (* written with no space between the return type name)
7530 (MainWindow::webView):
7531 I need the webView to connect it with the URLLoader object.
7532 (URLLoader::URLLoader):
7533 (URLLoader::loadNext):
7535 (URLLoader::getUrl):
7538 2008-12-10 Simon Hausmann <hausmann@webkit.org>
7540 Fix the Qt build, added const to Node* parameter after change
7543 * WebCoreSupport/ChromeClientQt.h:
7544 (WebCore::ChromeClientQt::formStateDidChange):
7546 2008-12-09 Brett Wilson <brettw@chromium.org>
7548 Reviewed by Dave Hyatt.
7550 https://bugs.webkit.org/show_bug.cgi?id=22177
7552 Add a callback on ChromeClient that the state of form elements on
7553 the page has changed. This is to allow clients implementing session
7554 saving to know when the current state is dirty.
7556 * WebCoreSupport/ChromeClientQt.h:
7557 (WebCore::ChromeClientQt::formStateDidChange):
7559 2008-12-09 Ariya Hidayat <ariya.hidayat@trolltech.com>
7561 Reviewed by Simon Hausmann.
7563 Fix the documentation of the localStorageDatabasePath setters/getters.
7565 * Api/qwebsettings.cpp:
7567 2008-12-08 Ariya Hidayat <ariya.hidayat@trolltech.com>
7569 Reviewed by Simon Hausmann.
7571 Multiple files support for the file chooser.
7574 (QWebPage::chooseFiles):
7576 * WebCoreSupport/ChromeClientQt.cpp:
7577 (WebCore::ChromeClientQt::runOpenPanel):
7579 2008-12-06 Simon Fraser <simon.fraser@apple.com>
7581 Reviewed by Dave Hyatt
7583 https://bugs.webkit.org/show_bug.cgi?id=15671
7585 Renderer::caretRect() is now localCaretRect(), which needs
7586 converting to absolute coordinates (taking transforms into account).
7589 (QWebPage::inputMethodQuery):
7591 2008-12-03 Tor Arne Vestbø <tavestbo@trolltech.com>
7593 Reviewed by Simon Hausmann.
7595 Allow passing jsNull and jsUndefined to Qt plugins
7597 Currently limited to functions with QString and QVariant arguments,
7598 and properties of these types. Both jsNull and jsUndefined ends up
7599 as default-constructed QStrings and QVariants, which means you can
7600 check for isEmpty() and isValid() in the native plugin code.
7602 Based on patches by Jade Han <jade.han@nokia.com>
7604 * tests/qwebframe/tst_qwebframe.cpp:
7606 2008-12-02 Simon Hausmann <hausmann@webkit.org>
7608 Rubber-stamped by Tor Arne Vestbø.
7610 Initial API documentation for QWebDatabase, QWebSecurityOrigin and
7611 QWebFrame::securityOrigin().
7613 * Api/qwebdatabase.cpp:
7614 * Api/qwebframe.cpp:
7615 * Api/qwebsecurityorigin.cpp:
7617 2008-11-27 Kent Hansen <khansen@trolltech.com>
7619 Reviewed by Simon Hausmann.
7621 Added auto tests for making JavaScript bindings for Qt plugin widgets
7624 * tests/qwebpage/tst_qwebpage.cpp:
7625 (PluginPage::PluginPage):
7626 (PluginPage::CallInfo::CallInfo):
7627 (PluginPage::createPlugin):
7628 (tst_QWebPage::createPlugin):
7630 2008-11-25 Holger Hans Peter Freyther <zecke@selfish.org>
7632 Build fix. Use WebCore::Frame::loader instead of QWebFrame
7634 * WebCoreSupport/FrameLoaderClientQt.cpp:
7635 (WebCore::FrameLoaderClientQt::updateGlobalHistory):
7637 2008-11-24 Darin Fisher <darin@chromium.org>
7641 http://bugs.webkit.org/show_bug.cgi?id=15643
7643 * WebCoreSupport/EditorClientQt.cpp:
7644 (WebCore::EditorClientQt::isSelectTrailingWhitespaceEnabled):
7645 * WebCoreSupport/EditorClientQt.h:
7647 2008-11-24 Darin Adler <darin@apple.com>
7649 Reviewed by Dan Bernstein.
7651 - https://bugs.webkit.org/show_bug.cgi?id=22470
7652 remove unneeded URL argument from FrameLoaderClient::updateGlobalHistory
7654 * WebCoreSupport/FrameLoaderClientQt.cpp:
7655 (WebCore::FrameLoaderClientQt::updateGlobalHistory): Get the URL from the
7657 * WebCoreSupport/FrameLoaderClientQt.h: Remove argument.
7659 2008-11-24 Darin Fisher <darin@chromium.org>
7663 https://bugs.webkit.org/show_bug.cgi?id=22448
7665 * Api/qwebframe.cpp:
7666 (QWebFrame::evaluateJavaScript):
7668 2008-11-20 Sam Weinig <sam@webkit.org>
7672 * Api/qwebframe.cpp:
7673 (QWebFrame::evaluateJavaScript):
7675 2008-11-19 Darin Fisher <darin@chromium.org>
7679 https://bugs.webkit.org/show_bug.cgi?id=22373
7680 Ports busted by addition of ScriptValue.{h,cpp}
7682 * Api/qwebframe.cpp:
7683 (QWebFrame::evaluateJavaScript):
7685 2008-11-19 Darin Fisher <darin@chromium.org>
7689 https://bugs.webkit.org/show_bug.cgi?id=22373
7690 Ports busted by addition of ScriptValue.{h,cpp}
7692 * Api/qwebframe.cpp:
7694 2008-11-19 Simon Hausmann <hausmann@webkit.org>
7696 Fix the Qt build, remove file referenced in the qrc file that does not
7697 exist and is not needed.
7699 * tests/qwebframe/qwebframe.qrc:
7701 2008-11-18 Ariya Hidayat <ariya.hidayat@trolltech.com>
7703 Rubber-stamped by Tor Arne Vestbø.
7705 Missing file in new unit test for QWebFrame (r38493).
7707 * tests/qwebframe/qwebframe.pro:
7708 * tests/qwebframe/qwebframe.qrc: Added.
7710 2008-11-18 Tor Arne Vestbø <tavestbo@trolltech.com>
7712 Rubber-stamped by Simon Hausmann.
7714 Make sure QWidget based plugins are invisible until placed into the layout
7716 * WebCoreSupport/FrameLoaderClientQt.cpp:
7717 (WebCore::FrameLoaderClientQt::createPlugin):
7719 2008-11-18 Tor Arne Vestbø <tavestbo@trolltech.com>
7721 Reviewed by Simon Hausmann.
7723 React properly to frame rect changes for QWidget based plugins
7725 We now set the geometry of the QWidget in frameRectsChanged,
7726 intead of setFrameRect, which means we pick up the changes to
7727 the frame rect when scrolling. We also set a mask on the
7728 widget to keep it from painting over scrollbars and the like
7730 * WebCoreSupport/FrameLoaderClientQt.cpp:
7733 2008-11-18 Ariya Hidayat <ariya.hidayat@trolltech.com>
7735 Reviewed by Tor Arne Vestbø.
7737 Fix crash when trying to pick a file using the file chooser.
7739 * WebCoreSupport/ChromeClientQt.cpp:
7740 (WebCore::ChromeClientQt::runOpenPanel):
7742 2008-11-18 Holger Hans Peter Freyther <zecke@selfish.org>
7744 Reviewed by Simon Hausmann.
7746 Attempt to share transitionToCommittedForNewPage of FrameLoaderClient with the different ports
7748 After Hyatt's work on Widget and ScrollView there is little difference
7749 between the implementation of Qt, Gtk+ and Win. In fact any kind of
7750 difference is mostly a bug. Alp has fixed two of such errors for the Gtk+
7751 port and the Qt port has at least one of them left.
7753 The only difference between the implementations is in getting the the
7754 IntSize for the new FrameView, the background color to be applied and
7755 eventually some post processing.
7757 Unify the implementations by providing a static helper function that
7758 takes a Frame, IntSize, color and transparency bit and calling it from
7759 the Gtk+, the Qt and the Windows port.
7761 * Api/qwebframe.cpp:
7762 * Api/qwebframe_p.h:
7764 (QWebPage::setPalette):
7765 * WebCoreSupport/FrameLoaderClientQt.cpp:
7766 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
7768 2008-11-17 Geoffrey Garen <ggaren@apple.com>
7772 Try to fix qt build.
7774 * Api/qwebframe.cpp:
7776 2008-11-17 Ariya Hidayat <ariya.hidayat@trolltech.com>
7778 Reviewed by Tor Arne Vestbø and Simon Hausmann.
7780 Fix regression when loading resources from Qt resource system using qrc:/.
7782 Added a unit test to catch future regression.
7785 (QWebPagePrivate::QWebPagePrivate):
7786 * tests/qwebframe/image.png: Added.
7787 * tests/qwebframe/tst_qwebframe.cpp:
7789 2008-11-16 Darin Adler <darin@apple.com>
7793 * Api/qwebhistory.cpp: Added include of "KURL.h".
7795 2008-10-24 Yael Aharon <yael.aharon@nokia.com>
7797 Reviewed by Simon Hausmann.
7799 Added some basic unit tests for the public database API.
7801 * tests/qwebpage/tst_qwebpage.cpp:
7802 (tst_QWebPage::initTestCase):
7803 (tst_QWebPage::cleanupTestCase):
7804 (tst_QWebPage::database):
7806 2008-11-14 Simon Hausmann <hausmann@webkit.org>
7808 Fix the Qt build, add missing export macros for the new classes.
7810 * Api/qwebdatabase.h:
7811 * Api/qwebsecurityorigin.h:
7813 2008-10-24 Yael Aharon <yael.aharon@nokia.com>
7815 Reviewed by Simon Hausmann.
7817 Adding public API to provide access to the security origin
7818 (QWebSecurityOrigin) and the databases used for the offline
7819 storage (QWebDatabase).
7821 In addition QWebSettings gains configuration functions for
7822 enabling/disabling offline storage, web application cache
7823 and DOM local storage.
7825 This commits lands the core feature(s), the unit tests and the
7826 documentation are going to follow in the comming days/weeks.
7828 Note: The API is not frozen yet.
7831 * Api/qwebdatabase.cpp: Added.
7832 (QWebDatabase::QWebDatabase):
7833 (QWebDatabase::operator=):
7834 (QWebDatabase::name):
7835 (QWebDatabase::displayName):
7836 (QWebDatabase::expectedSize):
7837 (QWebDatabase::size):
7838 (QWebDatabase::absoluteFilePath):
7839 (QWebDatabase::origin):
7840 (QWebDatabase::remove):
7841 (QWebDatabase::~QWebDatabase):
7842 * Api/qwebdatabase.h: Added.
7843 * Api/qwebdatabase_p.h: Added.
7844 * Api/qwebframe.cpp:
7845 (QWebFrame::securityOrigin):
7849 * Api/qwebsecurityorigin.cpp: Added.
7850 (QWebSecurityOrigin::QWebSecurityOrigin):
7851 (QWebSecurityOrigin::operator=):
7852 (QWebSecurityOrigin::scheme):
7853 (QWebSecurityOrigin::host):
7854 (QWebSecurityOrigin::port):
7855 (QWebSecurityOrigin::databaseUsage):
7856 (QWebSecurityOrigin::databaseQuota):
7857 (QWebSecurityOrigin::setDatabaseQuota):
7858 (QWebSecurityOrigin::~QWebSecurityOrigin):
7859 (QWebSecurityOrigin::allOrigins):
7860 (QWebSecurityOrigin::databases):
7861 * Api/qwebsecurityorigin.h: Added.
7862 * Api/qwebsecurityorigin_p.h: Added.
7863 (QWebSecurityOriginPrivate::QWebSecurityOriginPrivate):
7864 (QWebSecurityOriginPrivate::~QWebSecurityOriginPrivate):
7865 * Api/qwebsettings.cpp:
7866 (QWebSettingsPrivate::apply):
7867 (QWebSettings::QWebSettings):
7868 (QWebSettings::setOfflineStoragePath):
7869 (QWebSettings::offlineStoragePath):
7870 (QWebSettings::setOfflineStorageDefaultQuota):
7871 (QWebSettings::offlineStorageDefaultQuota):
7872 (QWebSettings::setOfflineWebApplicationCachePath):
7873 (QWebSettings::offlineWebApplicationCachePath):
7874 (QWebSettings::setLocalStorageDatabasePath):
7875 (QWebSettings::localStorageDatabasePath):
7876 * Api/qwebsettings.h:
7877 * WebCoreSupport/ChromeClientQt.cpp:
7878 (WebCore::ChromeClientQt::exceededDatabaseQuota):
7880 2008-11-12 Ariya Hidayat <ariya.hidayat@trolltech.com>
7882 Rubber-stamped by Tor Arne Vestbø.
7884 Mention the color role change (r38331) in the API doc.
7888 2008-11-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
7890 Reviewed by Tor Arne Vestbø and Simon Hausmann.
7892 Use QPalette::Base (instead of QPalette::Background) for the page
7895 * Api/qwebframe.cpp:
7896 (QWebFramePrivate::updateBackground):
7898 (QWebView::QWebView):
7900 2008-11-11 Cameron Zwarich <zwarich@apple.com>
7902 Reviewed by Geoff Garen.
7904 Remove pointless dependencies on the now-deleted kjs directory.
7908 2008-11-10 Ariya Hidayat <ariya.hidayat@trolltech.com>
7910 Rubber-stamped by Simon Hausmann.
7912 To fit Qt API, scroll offset is a QPoint instead of a QSize.
7914 * Api/qwebframe.cpp:
7915 (QWebFrame::scrollOffset):
7916 (QWebFrame::setScrollOffset):
7919 2008-11-10 David Boddie <dboddie@trolltech.com>
7921 Reviewed by Simon Hausmann.
7923 Doc: Fixed qdoc warnings by supplying function documentation.
7925 * Api/qwebframe.cpp:
7928 2008-11-10 Tobias Koenig <tobias.koenig@trolltech.com>
7930 Reviewed by Simon Hausmann.
7932 Removed old and stale prf file that breaks the MingW build.
7934 * Api/qtwebkit.prf: Removed.
7936 2008-11-10 Kavindra Palaraja <kdpalara@trolltech.com>
7938 Reviewed by Simon Hausmann.
7940 Clarify QWebFrame/View::setHTML docs with regards to relative URLs
7942 * Api/qwebframe.cpp:
7945 2008-11-10 Joerg Bornemann <joerg.bornemann@nokia.com>
7947 Reviewed by Simon Hausmann
7949 Don't define _CRT_RAND_S on Windows CE in the precompiled
7950 header, to fix the CE build.
7954 2008-11-07 Ariya Hidayat <ariya.hidayat@trolltech.com>
7956 Reviewed by Tor Arne Vestbø and Simon Hausmann.
7958 Added an option to allow printing the background color and images.
7959 Mostly reworked from a patch by Holger.
7960 This setting is enabled by default.
7962 * Api/qwebsettings.cpp:
7963 (QWebSettingsPrivate::apply):
7964 (QWebSettings::QWebSettings):
7965 * Api/qwebsettings.h:
7967 2008-11-06 Simon Hausmann <hausmann@webkit.org>
7969 Reviewed by Tor Arne Vestbø.
7971 Added a unit tests for QWebFrame::metaData().
7973 * tests/qwebframe/tst_qwebframe.cpp:
7975 2008-11-06 Simon Hausmann <hausmann@webkit.org>
7977 Reviewed by Tor Arne Vestbø.
7979 Improved documentation for QWebFrame::metaData().
7981 * Api/qwebframe.cpp:
7983 2008-11-05 Sriram Yadavalli <sriram.yadavalli@nokia.com>
7985 Reviewed by Simon Hausmann.
7987 Added QWebFrame::metaData() to provide a way in the public API
7988 to retrieve the values of the <meta> tags.
7990 See https://bugs.webkit.org/show_bug.cgi?id=22071
7992 * Api/qwebframe.cpp:
7993 (QWebFrame::metaData):
7996 2008-10-24 Yael Aharon <yael.aharon@nokia.com>
7998 Reviewed by Simon Hausmann.
8000 Add userData() and setUserData() to QWebHistoryItem.
8001 Add setMaximumItemCount() and maximumItemCount() to QWebHistory.
8002 Add currentItemIndex() to QWebHistory.
8004 See also https://bugs.webkit.org/show_bug.cgi?id=21864
8006 Small cleanup by Simon (docs and forward declaration of QWebHistoryItem in qwebframe.h)
8009 * Api/qwebhistory.cpp:
8010 (QWebHistoryItem::userData):
8011 (QWebHistoryItem::setUserData):
8012 (QWebHistory::currentItemIndex):
8013 (QWebHistory::maximumItemCount):
8014 (QWebHistory::setMaximumItemCount):
8015 * Api/qwebhistory.h:
8016 * WebCoreSupport/FrameLoaderClientQt.cpp:
8017 (WebCore::FrameLoaderClientQt::saveViewStateToItem):
8018 * tests/qwebpage/tst_qwebpage.cpp:
8019 (tst_QWebPage::modified):
8021 2008-11-03 Cameron Zwarich <zwarich@apple.com>
8023 Rubber-stamped by Maciej Stachowiak.
8025 Move more files into the runtime subdirectory of JavaScriptCore.
8029 2008-10-25 Jade Han <jade.han@nokia.com>
8033 Enable custom properties for Qt runtime objects in QtWebKit
8035 https://bugs.webkit.org/show_bug.cgi?id=21813
8037 * tests/qwebframe/tst_qwebframe.cpp:
8039 2008-10-24 Sam Weinig <sam@webkit.org>
8041 Another Qt build fix.
8043 * WebCoreSupport/ChromeClientQt.cpp:
8045 2008-10-24 Sam Weinig <sam@webkit.org>
8047 Reviewed by Dan Bernstein.
8049 Fix https://bugs.webkit.org/show_bug.cgi?id=21759
8050 Layering violation: FileChooser should not depend on Document/Frame/Page
8052 * WebCoreSupport/ChromeClientQt.cpp:
8053 (WebCore::ChromeClientQt::runOpenPanel):
8054 * WebCoreSupport/ChromeClientQt.h:
8056 2008-10-24 Timothy Hatcher <timothy@apple.com>
8058 Stub out new InspectorClient methods.
8060 https://bugs.webkit.org/show_bug.cgi?id=21856
8062 Reviewed by Darin Adler.
8064 * WebCoreSupport/InspectorClientQt.cpp:
8065 (WebCore::InspectorClientQt::populateSetting): Not implemented.
8066 (WebCore::InspectorClientQt::storeSetting): Ditto.
8067 (WebCore::InspectorClientQt::removeSetting): Ditto.
8068 * WebCoreSupport/InspectorClientQt.h:
8070 2008-10-24 Darin Adler <darin@apple.com>
8072 - finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732
8074 * Api/qwebframe.cpp:
8075 (QWebFrame::evaluateJavaScript): Use JSValue* instead of JSValuePtr.
8077 2008-10-23 Yael Aharon <yael.aharon@nokia.com>
8079 Reviewed by Simon Hausmann.
8081 Invalid history entries could cause a crash in QT Webkit
8083 * Api/qwebhistory.cpp:
8084 (QWebHistoryItem::originalUrl):
8085 (QWebHistoryItem::url):
8086 (QWebHistoryItem::title):
8087 (QWebHistoryItem::lastVisited):
8088 (QWebHistoryItem::icon):
8089 (QWebHistoryItem::isValid):
8090 * Api/qwebhistory.h:
8091 * Api/qwebhistory_p.h:
8092 (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
8093 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
8094 * tests/qwebpage/tst_qwebpage.cpp:
8095 (tst_QWebPage::modified):
8097 2008-10-22 Yael Aharon <yael.aharon@nokia.com>
8099 Reviewed by Simon Hausmann.
8101 emit scrollRequested unconditionally when scrolling.
8103 See https://bugs.webkit.org/show_bug.cgi?id=21790
8105 * WebCoreSupport/ChromeClientQt.cpp:
8106 (WebCore::ChromeClientQt::scroll):
8108 2008-10-23 Simon Hausmann <hausmann@webkit.org>
8110 Reviewed by Tor Arne.
8112 Fix handling of mouse events when embedding QWebView into the
8115 QWebPage accepts or ignores events to indicate whether the web page
8116 handled the event. However for QWebView to behave like a good widget
8117 it should always accept the mouse events to indicate that it handled
8118 them and that they should not be subject to event propagation.
8120 The graphics view relies on acceptance of the initial mouse click to
8121 make the embedded widget the focus item.
8124 (QWebView::mouseMoveEvent):
8125 (QWebView::mousePressEvent):
8126 (QWebView::mouseDoubleClickEvent):
8127 (QWebView::mouseReleaseEvent):
8128 (QWebView::contextMenuEvent):
8129 (QWebView::wheelEvent):
8131 2008-10-22 Ariya Hidayat <ariya.hidayat@trolltech.com>
8133 Reviewed by Simon Hausmann.
8135 For public API, use the term boundingRect instead of boundingBox.
8137 * Api/qwebframe.cpp:
8138 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
8139 (QWebHitTestResult::boundingRect):
8141 * Api/qwebframe_p.h:
8143 2008-06-03 Siraj Razick <siraj.razick@collabora.co.uk>
8145 Reviewed by Simon Hausmann.
8147 https://bugs.webkit.org/show_bug.cgi?id=19374
8149 Expose boundingBox value in QWebHitTestResult
8151 Add API function QRect QWebHitResult::boundingBox() const
8155 * Api/qwebframe.cpp:
8156 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
8157 (QWebHitTestResult::boundingBox):
8159 * Api/qwebframe_p.h:
8161 2008-10-21 Yael Aharon <yael.aharon@nokia.com>
8163 Reviewed by Simon Hausmann.
8165 emit repaintRequested unconditionally when repaint is requested.
8167 * WebCoreSupport/ChromeClientQt.cpp:
8168 (WebCore::ChromeClientQt::repaint):
8170 2008-10-20 Sam Weinig <sam@webkit.org>
8172 Reviewed by Anders Carlsson.
8174 Remove FrameLoaderClient::detachedFromParent4. It is no longer used by any port.
8176 * WebCoreSupport/FrameLoaderClientQt.cpp:
8177 * WebCoreSupport/FrameLoaderClientQt.h:
8179 2008-10-19 Darin Adler <darin@apple.com>
8181 Reviewed by Oliver Hunt.
8183 - next step of https://bugs.webkit.org/show_bug.cgi?id=21732
8184 improve performance by eliminating JSValue as a base class for JSCell
8186 Remove most uses of JSValue, which will be removed in a future patch.
8188 * Api/qwebframe.cpp:
8189 (QWebFrame::evaluateJavaScript): Use JSValuePtr.
8191 2008-10-14 Tor Arne Vestbø <tavestbo@trolltech.com>
8195 Clip painter to dirty rect before passing on to WebKit
8197 This was previously done in ScrollViewQt, but after the
8198 refactoring of ScrollView we need to do it in QWebFrame
8199 instead, similar to Safari/Win.
8201 * Api/qwebframe.cpp:
8202 (QWebFrame::render):
8204 2008-10-08 Matthias Ettrich <ettrich@nokia.com>
8208 Make QWebView ignore focus changes with PopupFocusReason to avoid
8209 massive updates when menus open and close.
8212 (QWebView::focusInEvent):
8213 (QWebView::focusOutEvent):
8215 2008-10-08 Kavindra Palaraja <kdpalara@trolltech.com>
8219 Fixed a qdoc warning and adjusted some spacing
8221 * Api/qwebframe.cpp:
8223 2008-10-08 Rhys Weatherley <rhys.weatherley@nokia.com>
8227 Compile for platforms without context menus.
8230 (QWebPage::createStandardContextMenu):
8232 2008-10-08 André Pönitz <apoenitz@trolltech.com>
8236 Fix compilation with Qt namespaces.
8238 * WebCoreSupport/EditCommandQt.h:
8240 2008-10-07 Tor Arne Vestbø <tavestbo@trolltech.com>
8242 QtWebKit build fix after changes to FrameLoaderClient.h in r37371
8244 * WebCoreSupport/FrameLoaderClientQt.h:
8246 2008-10-07 Holger Hans Peter Freyther <zecke@selfish.org>
8248 [qt] Build fix after Scrollbar.h and Widget.h changes.
8251 (QWebPage::swallowContextMenuEvent):
8253 2008-10-06 David Hyatt <hyatt@apple.com>
8255 Enable viewless Mac WebKit to paint some basic pages.
8257 Reviewed by Sam Weinig
8259 * WebCoreSupport/FrameLoaderClientQt.cpp:
8260 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
8262 2008-10-03 David Hyatt <hyatt@apple.com>
8264 Fix scroll method on Qt. The delta was supposed to use .width()/.height() and not .x()/.y().
8266 Fix the QtPluginWidget to do an invalidate properly.
8270 * WebCoreSupport/ChromeClientQt.cpp:
8271 (WebCore::ChromeClientQt::scroll):
8272 * WebCoreSupport/FrameLoaderClientQt.cpp:
8275 2008-10-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
8277 Build fix. Remove addToDirtyRegion from the header file.
8279 * WebCoreSupport/ChromeClientQt.h:
8281 2008-10-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
8285 * WebCoreSupport/ChromeClientQt.cpp:
8286 (WebCore::ChromeClientQt::scroll):
8287 * WebCoreSupport/FrameLoaderClientQt.cpp:
8289 (WebCore::FrameLoaderClientQt::createPlugin):
8291 2008-10-03 David Hyatt <hyatt@apple.com>
8293 Remove addToDirtyRegion.
8295 Reviewed by Oliver Hunt
8297 * WebCoreSupport/ChromeClientQt.cpp:
8299 2008-10-02 David Hyatt <hyatt@apple.com>
8301 https://bugs.webkit.org/show_bug.cgi?id=21314
8303 Make scrollBackingStore cross-platform.
8305 Reviewed by Sam Weinig
8307 * WebCoreSupport/ChromeClientQt.cpp:
8308 (WebCore::ChromeClientQt::repaint):
8309 (WebCore::ChromeClientQt::scroll):
8310 * WebCoreSupport/ChromeClientQt.h:
8312 2008-10-01 David Hyatt <hyatt@apple.com>
8314 https://bugs.webkit.org/show_bug.cgi?id=21282
8316 Make contentsToScreen/screenToContents cross-platform. Only implemented by Mac/Win right now.
8318 Reviewed by Adam Roben
8320 * WebCoreSupport/ChromeClientQt.cpp:
8321 (WebCore::ChromeClientQt::windowToScreen):
8322 (WebCore::ChromeClientQt::screenToWindow):
8323 * WebCoreSupport/ChromeClientQt.h:
8325 2008-09-30 Dave Hyatt <hyatt@apple.com>
8327 http://bugs.webkit.org/show_bug.cgi?id=21250
8329 Rename updateContents to repaintContentRectangle and make it cross-platform by always sending
8330 repaints up through the ChromeClient.
8332 Reviewed by Darin Adler
8334 * WebCoreSupport/ChromeClientQt.cpp:
8335 (WebCore::ChromeClientQt::repaint):
8336 * WebCoreSupport/ChromeClientQt.h:
8338 2008-09-29 Gunnar Sletta <gunnar@trolltech.com>
8342 Compile on windows using MSVC 2005
8344 For the PCH We need to define _WIN32_WINNT and include windows.h early on,
8345 otherwise we'll miss several functions.
8349 2008-09-29 Thiago Macieira <thiago.macieira@nokia.com>
8353 Changed copyright from Trolltech ASA to Nokia.
8355 Nokia acquired Trolltech ASA, assets were transferred on September 26th 2008.
8358 * Api/qwebframe.cpp:
8360 * Api/qwebframe_p.h:
8361 * Api/qwebhistory.cpp:
8362 * Api/qwebhistory.h:
8363 * Api/qwebhistory_p.h:
8364 * Api/qwebkitglobal.h:
8365 * Api/qwebnetworkinterface.cpp:
8366 * Api/qwebnetworkinterface.h:
8367 * Api/qwebnetworkinterface_p.h:
8371 * Api/qwebpluginfactory.cpp:
8372 * Api/qwebpluginfactory.h:
8373 * Api/qwebsettings.cpp:
8374 * Api/qwebsettings.h:
8377 * Plugins/ICOHandler.cpp:
8378 * QtLauncher/main.cpp:
8379 * WebCoreSupport/FrameLoaderClientQt.cpp:
8380 * WebCoreSupport/FrameLoaderClientQt.h:
8381 * WebCoreSupport/InspectorClientQt.cpp:
8382 * WebCoreSupport/InspectorClientQt.h:
8383 * tests/qwebframe/tst_qwebframe.cpp:
8384 * tests/qwebpage/tst_qwebpage.cpp:
8386 2008-09-28 Simon Hausmann <hausmann@webkit.org>
8388 Reviewed by David Hyatt.
8390 Ensure the mainThreadIdentifier is set as well as other bits and pieces of
8391 the threading machinery, by calling JSC::initializeThreading().
8394 (QWebPagePrivate::QWebPagePrivate):
8396 2008-09-27 David Hyatt <hyatt@apple.com>
8398 Forgot to land renaming changes in WebKit.
8400 * Api/qwebframe.cpp:
8401 (QWebFrame::render):
8403 (QWebFrame::geometry):
8405 (QWebPage::viewportSize):
8406 (QWebPage::setViewportSize):
8408 2008-09-27 Simon Hausmann <hausmann@webkit.org>
8410 Qt build fix - use frameRect instead of frameGeometry, adapt
8411 to renamed scrollbar frameview methods.
8414 (QWebPage::viewportSize):
8415 (QWebPage::setViewportSize):
8416 * WebCoreSupport/FrameLoaderClientQt.cpp:
8417 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
8419 2008-09-27 Jan Michael Alonzo <jmalonzo@webkit.org>
8421 Qt build fix - rename frameGeometry to frameRect per r36995.
8423 * Api/qwebframe.cpp:
8424 (QWebFrame::render):
8426 (QWebFrame::geometry):
8428 2008-09-26 Ariya Hidayat <ahidayat@trolltech.com>
8432 Fixed potential crash when deleting QWebView instance.
8434 When deleting the view, sets the page's view to NULL.
8435 The reason is that the page is smart and its destructor might lead to a call
8436 that operates on a view (which is in the process of being deleted).
8440 (QWebView::~QWebView):
8442 2008-09-26 Ariya Hidayat <ahidayat@trolltech.com>
8446 Fixed using modifiers to type special symbols (e.g '@','$') does not work on Mac OS X.
8448 * WebCoreSupport/EditorClientQt.cpp:
8449 (WebCore::EditorClientQt::handleKeyboardEvent):
8451 2008-09-26 Håvard Wall <hwall@trolltech.com>
8455 Fix compilation with QT_NO_MESSAGEBOX
8458 (QWebPage::javaScriptAlert):
8459 (QWebPage::javaScriptConfirm):
8461 2008-09-23 Tor Arne Vestbø <tavestbo@trolltech.com>
8465 Remove deprecated JS Qt bindings object call/construct code and fix autotests
8467 * tests/qwebframe/tst_qwebframe.cpp:
8469 2008-09-16 Alp Toker <alp@nuanti.com>
8471 Prospective Qt build fix. ScrollBar.h -> Scrollbar.h
8473 * Api/qwebframe.cpp:
8476 2008-09-15 Eli Fidler <eli@staikos.net>
8480 Yahoo assumes non-RFC compliant HTTP redirect behaviour. QtWebKit is (more)
8481 compliant, so broken. I think the Yahoo-assumed behaviour is real-world standard.
8483 Basically, Yahoo's login procedure for flickr looks like this:
8484 1. load flickr.com, click "sign in"
8485 2. this is a Yahoo page with a form
8486 (https://login.yahoo.com/config/login?.src=flickr...)
8487 when you click the "Sign In" button, the form submits to a yahoo.com POST URL
8488 3. The POST returns with a 302 (redirect) to another yahoo.com URL
8489 4. If you POST the redirected Location:, it all breaks. Yahoo assumes you will
8490 convert the method to GET, which works fine but is definitely not
8491 RFC-compliant. It would be compliant for 303, and the RFC says that many
8492 implementations treat 302 and 303 the same way (for HTTP/1.0 compliance), but
8493 converting to GET is explicitly wrong for 302.
8495 * Api/qwebnetworkinterface.cpp:
8496 (QWebNetworkManager::started):
8498 2008-09-15 Tor Arne Vestbø <tavestbo@trolltech.com>
8502 Make QtInstance::create() private and fix caching
8504 * Api/qwebframe.cpp:
8505 (QWebFrame::addToJavaScriptWindowObject):
8507 2008-09-11 Tor Arne Vestbø <tavestbo@trolltech.com>
8509 Rubber-stamped by Simon.
8511 Prevent leaking pages and frames in QWebKit autotest
8513 * tests/qwebpage/tst_qwebpage.cpp:
8515 2008-09-11 Tor Arne Vestbø <tavestbo@trolltech.com>
8519 Fix QtWebKit autotest
8521 * tests/qwebpage/tst_qwebpage.cpp:
8522 (tst_QWebPage::userStyleSheet):
8524 2008-09-09 Joerg Bornemann <joerg.bornemann@trolltech.com>
8528 Added missing WebCore prefix to ResourceRequest
8530 This is needed for Windows/CE compilation where there is a conflict
8531 with a global ResourceRequest type. Elsewhere in this file ResourceRequest
8532 is also prefixed with WebCore::
8534 * Api/qwebframe.cpp:
8535 (QWebFrame::QWebFrame):
8537 2008-09-07 Cameron Zwarich <cwzwarich@uwaterloo.ca>
8539 Reviewed by Maciej Stachowiak.
8541 Bug 20704: Replace the KJS namespace
8542 <https://bugs.webkit.org/show_bug.cgi?id=20704>
8544 Rename the KJS namespace to JSC.
8546 * Api/qwebframe.cpp:
8547 (QWebFrame::addToJavaScriptWindowObject):
8548 (QWebFrame::evaluateJavaScript):
8550 2008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
8554 Fix the QtWebKit build to match changes in r36016
8556 * Api/qwebframe.cpp:
8557 (QWebFrame::addToJavaScriptWindowObject):
8559 2008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
8563 Re-enable support for user stylesheets in QtWebKit
8565 QtWebKit now follows the FRAME_LOADS_USER_STYLESHEET
8566 code path, which allows us to keep API support for
8567 loading user style sheets from remote URLs.
8569 As part of the change UserStyleSheetLoader.cpp/h was
8570 moved from WebCore/loader/mac to WebCore/loader.
8572 * tests/qwebpage/tst_qwebpage.cpp:
8573 (tst_QWebPage::userStyleSheet):
8575 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
8577 Reviewed by Eric Seidel.
8579 [janitor/qt] Start replacing port specific getters with the generic native getter
8580 To get the native presentation of an image we currently have platform
8581 specific #ifdef's and a generic getter using NativeImagePtr. This patch
8582 extends this to the ImageBuffer and updates the Qt platform to get rid
8583 of the special #ifdefs.
8585 https://bugs.webkit.org/attachment.cgi?id=22861
8587 * Api/qwebframe.cpp:
8588 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
8589 * Api/qwebhistory.cpp:
8590 * Api/qwebsettings.cpp:
8591 (QWebSettings::iconForUrl):
8593 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
8597 Catch up with the introduction of PageGroup in r30840. Enable tracking of
8598 visited links, enable this in QWebPage next to the other WebCore init call.
8599 Calling this more than once is no issue and a cheap operation, we also do not
8600 reset the state. When clearing the history of a page, clear the link state.
8602 * Api/qwebhistory.cpp:
8603 (QWebHistory::clear):
8604 * Api/qwebhistoryinterface.cpp:
8605 (QWebHistoryInterface::setDefaultInterface):
8607 (QWebPagePrivate::QWebPagePrivate):
8609 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
8613 Revert revision 34348 which removed the global historyContains() function.
8615 This function was needed to implement the public API of QWebHistoryInterface
8616 and will be used again in the near future.
8618 * Api/qwebhistoryinterface.cpp:
8619 (WebCore::historyContains):
8621 2008-08-27 Erik Bunce <elbunce@thehive.com>
8623 Reviewed by Eric Seidel.
8625 https://bugs.webkit.org/show_bug.cgi?id=20223
8627 Add QWebPage::contentsChanged() signal to notify of content changes.
8631 * WebCoreSupport/EditorClientQt.cpp:
8632 (WebCore::EditorClientQt::respondToChangedContents):
8634 2008-08-27 Brady Eidson <beidson@apple.com>
8638 <rdar://problem/6134133> - Crash when loading large movie as a standalone document
8640 * WebCoreSupport/FrameLoaderClientQt.cpp:
8641 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError): Stubbed for now
8642 * WebCoreSupport/FrameLoaderClientQt.h:
8644 2008-08-25 Holger Hans Peter Freyther <zecke@selfish.org>
8648 [inspector] Emit signals from attachWindow and detachWindow in the Qt platform
8649 Allow the user of the API to honor the attachWindow and detachWindow
8650 requests and attach the QWebPage/QWebView wherever it is wanted. This needs
8651 some more API in QWebPage to be properly exposed.
8653 * WebCoreSupport/InspectorClientQt.cpp:
8654 (WebCore::InspectorClientQt::createPage):
8655 (WebCore::InspectorClientQt::attachWindow):
8656 (WebCore::InspectorClientQt::detachWindow):
8657 * WebCoreSupport/InspectorClientQt.h:
8659 2008-08-19 Alexey Proskuryakov <ap@webkit.org>
8661 Reviewed by Geoff Garen.
8663 Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.
8665 * Api/qwebframe.cpp:
8666 (QWebFrame::addToJavaScriptWindowObject):
8668 2008-08-15 Håvard Wall <hwall@trolltech.com>
8672 Fixes: compile with QT_NO_UNDOCOMMAND/STACK
8676 (SetCursorEvent::SetCursorEvent):
8677 (QWebPagePrivate::createContextMenu):
8681 * WebCoreSupport/EditCommandQt.cpp:
8682 (EditCommandQt::EditCommandQt):
8683 * WebCoreSupport/EditCommandQt.h:
8684 * WebCoreSupport/EditorClientQt.cpp:
8686 (WebCore::EditorClientQt::shouldInsertText):
8687 (WebCore::EditorClientQt::shouldChangeSelectedRange):
8688 (WebCore::EditorClientQt::isEditable):
8689 (WebCore::EditorClientQt::registerCommandForUndo):
8690 (WebCore::EditorClientQt::clearUndoRedoOperations):
8691 (WebCore::EditorClientQt::canUndo):
8692 (WebCore::EditorClientQt::canRedo):
8693 (WebCore::EditorClientQt::undo):
8694 (WebCore::EditorClientQt::redo):
8695 (WebCore::EditorClientQt::shouldInsertNode):
8697 2008-08-15 Håvard Wall <hwall@trolltech.com>
8701 Fixes: compile with QT_NO_STYLE_STYLESHEET
8704 * WebCoreSupport/FrameLoaderClientQt.cpp:
8705 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
8706 (WebCore::FrameLoaderClientQt::createPlugin):
8708 2008-08-15 Håvard Wall <hwall@trolltech.com>
8712 Fixes: compile with QT_NO_SHORTCUT
8716 (QWebPagePrivate::mouseMoveEvent):
8717 (QWebPagePrivate::mouseReleaseEvent):
8718 (QWebPagePrivate::dragMoveEvent):
8720 2008-08-15 Håvard Wall <hwall@trolltech.com>
8724 Fixes: compile with QT_NO_CONTEXTMENU
8728 (editorCommandForWebActions):
8729 (QWebPagePrivate::QWebPagePrivate):
8730 (QWebPagePrivate::createMainFrame):
8731 (QWebPagePrivate::updateEditorActions):
8732 (QWebPage::setEditable):
8738 2008-08-15 Håvard Wall <hwall@trolltech.com>
8742 Fixes: compile with QT_NO_WHEELEVENT
8746 (QWebPagePrivate::updateEditorActions):
8752 2008-08-15 Håvard Wall <hwall@trolltech.com>
8756 Fixes: compile with QT_NO_PRINTER
8759 * Api/qwebframe.cpp:
8763 2008-08-15 David Boddie <dboddie@trolltech.com>
8767 Doc: Added documentation for default property values.
8771 (QWebPagePrivate::keyPressEvent):
8772 (QWebPage::triggerAction):
8773 (QWebPage::acceptNavigationRequest):
8777 2008-08-15 David Boddie <dboddie@trolltech.com>
8781 Doc: Renamed snippets that appear in the code directory.
8788 2008-08-12 Timothy Hatcher <timothy@apple.com>
8790 Add a stub for InspectorClient::setAttachedWindowHeight.
8792 * WebCoreSupport/InspectorClientQt.cpp:
8793 (WebCore::InspectorClientQt::setAttachedWindowHeight):
8794 Call notImplemented().
8795 * WebCoreSupport/InspectorClientQt.h:
8797 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
8801 Use full-page zoom in QtLauncher.
8803 * QtLauncher/main.cpp:
8804 (MainWindow::zoomIn):
8805 (MainWindow::zoomOut):
8806 (MainWindow::resetZoom):
8807 (MainWindow::setupUI):
8809 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
8813 Fix linking with QtWebKit.
8815 * Api/qwebframe.h: remove non-existing function/property.
8817 2008-08-13 Simon Hausmann <hausmann@webkit.org>
8821 Based on patch by Siraj razick <siraj.razick@collabora.co.uk>
8823 https://bugs.webkit.org/show_bug.cgi?id=19125
8825 Added functions to get/set the zoom factor.
8827 Added a QWebFrame/QWebView::zoomFactor as well as a boolean
8828 ZoomTextOnly attribute in QWebSettings.
8830 * Api/qwebframe.cpp:
8831 (QWebFrame::setZoomFactor):
8832 (QWebFrame::zoomFactor):
8834 * Api/qwebsettings.cpp:
8835 (QWebSettingsPrivate::apply):
8836 (QWebSettings::QWebSettings):
8837 * Api/qwebsettings.h:
8839 (QWebView::setZoomFactor):
8840 (QWebView::zoomFactor):
8843 2008-08-13 Simon Hausmann <hausmann@webkit.org>
8847 Fix QWebFrame::setHtml() not setting the new contents immediately.
8849 Added a setter to the DocumentLoader to toggle the deferred loading of the main
8850 resource when it comes from substitute data.
8852 Disable deferred loading of the main resource when we have valid substitute data,
8853 as used by QWebFrame::setHtml.
8855 * WebCoreSupport/FrameLoaderClientQt.cpp:
8856 (WebCore::FrameLoaderClientQt::download):
8858 2008-08-13 Simon Hausmann <hausmann@webkit.org>
8860 Rubber-stamped by Holger.
8862 Fix QWebPage::isModified().
8864 isModified() would return true after loading a new page or it would continue to
8865 return true after undoing modifications. Fix this by eliminating the
8866 QWebPagePrivate::modified variable and use the undoStack's canUndo() property
8869 https://bugs.webkit.org/show_bug.cgi?id=19252
8874 * WebCoreSupport/EditorClientQt.cpp:
8875 (WebCore::EditorClientQt::respondToChangedContents):
8877 2008-08-13 David Boddie <dboddie@trolltech.com>
8881 Updated docs with the signal emission behavior of urlChanged()
8883 * Api/qwebframe.cpp:
8885 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
8889 Fix Ctrl+Y to work again when editing text in contextEditable mode.
8891 This fixes regression in LayoutTests/editing/pasteboard/emacs-cntl-y-001.html
8893 * WebCoreSupport/EditorClientQt.cpp:
8894 (WebCore::EditorClientQt::handleKeyboardEvent):
8896 2008-08-13 Thiago Macieira <tjmaciei@trolltech.com>
8900 Fix encoding of [ and ] in the host part of the URL
8902 Until QUrl is fixed (making QUrl's tolerant parser more tolerant), we have to
8903 add this workaround to the QUrl <> WebCore::KURL conversion operator so that it
8904 doesn't encode [ and ] when they are found in the host part. That is, the
8907 is valid and should not be reencoded to:
8910 This change adds the automatic test for it.
8912 * tests/qwebframe/tst_qwebframe.cpp:
8914 2008-08-12 Urs Wolfer <uwolfer@kde.org>
8918 https://bugs.webkit.org/show_bug.cgi?id=20357
8920 Fix crash in QWebPage in case contextMenuEvent has been overwritten
8921 because context menu has the view as parent and thus is deleted too early.
8923 Add testcase for this crash.
8926 * tests/qwebpage/tst_qwebpage.cpp:
8927 (tst_QWebPage::contextMenuCrash):
8929 2008-08-07 Simon Hausmann <hausmann@webkit.org>
8931 Rubber-stamped by Lars.
8933 Added API tests for QWebPage/QWebFrame based on QTestLib.
8935 * tests/qwebframe/qwebframe.pro: Added.
8936 * tests/qwebframe/tst_qwebframe.cpp: Added.
8937 * tests/qwebpage/qwebpage.pro: Added.
8938 * tests/qwebpage/tst_qwebpage.cpp: Added.
8939 * tests/tests.pro: Added.
8941 2008-08-06 Benjamin C Meyer <ben@meyerhome.net>
8945 During the drag operation only accept the event if the action is not ignore action.
8948 (QWebPagePrivate::dragEnterEvent):
8949 (QWebPagePrivate::dragMoveEvent):
8950 (QWebPagePrivate::dropEvent):
8952 2008-08-06 Ariya Hidayat <ariya.hidayat@trolltech.com>
8954 Fix the Qt build due to recent ScriptController refactoring.
8956 * Api/qwebframe.cpp:
8957 (QWebFrame::addToJavaScriptWindowObject):
8959 2008-08-05 Tor Arne Vestbø <tavestbo@trolltech.com>
8963 Move event handling of the return-key from EditorClientQt to QWebPage.
8965 https://bugs.webkit.org/show_bug.cgi?id=20191
8967 This is a first step in refactoring the big switch block
8968 in EditorClientQt::handleKeyboardEvent to using WebActions
8971 The new logic uses two new StandardKeys from QKeySequence:
8973 - InsertParagraphSeparator
8974 - InsertLineSeparator
8976 Which translate to the commands InsertNewline and InsertLineBreak
8977 respectivly. On Windows/X11 pressing the shift modifier will invoke
8978 the latter action. For Mac this is triggered by pressing the meta
8981 Initial patch by: Erik Bunce
8984 (editorActionForKeyEvent):
8986 * WebCoreSupport/EditorClientQt.cpp:
8987 (WebCore::EditorClientQt::handleKeyboardEvent):
8989 2008-08-04 Erik Bunce <elbunce@thehive.com>
8993 https://bugs.webkit.org/show_bug.cgi?id=20221
8995 Add updateAction() support to ToggleBold, ToggleItalic, and ToggleUnderline.
8996 Add lookup table for mapping web actions to editor commands.
8999 (editorCommandForWebActions):
9000 (QWebPagePrivate::updateAction):
9001 (QWebPagePrivate::updateEditorActions):
9002 (QWebPage::triggerAction):
9003 (QWebPage::setEditable):
9005 2008-08-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
9009 A bunch of improvements to the QtLauncher.
9012 - Unify and unclutter the toolbar, use menu for addition actions
9013 - Simplify URL edit, just use QLineEdit (no fancy close button etc)
9014 - Guess the URL from the command line so now we can run ./QtLauncher www.google.com
9015 - Shortcut keys for most actions
9016 - Simple autocomplete for the URL edit
9017 - Actions for zooming, New Window and Close Window
9018 - Show Format menu only when the content is set to editable
9020 * QtLauncher/main.cpp:
9021 (MainWindow::MainWindow):
9022 (MainWindow::webPage):
9023 (MainWindow::changeLocation):
9024 (MainWindow::loadFinished):
9025 (MainWindow::showLinkHover):
9026 (MainWindow::newWindow):
9027 (MainWindow::zoomIn):
9028 (MainWindow::zoomOut):
9029 (MainWindow::resetZoom):
9030 (MainWindow::print):
9031 (MainWindow::setEditable):
9032 (MainWindow::dumpHtml):
9033 (MainWindow::setupUI):
9036 2008-08-04 Erik Bunce <elbunce@thehive.com>
9040 https://bugs.webkit.org/show_bug.cgi?id=20198
9042 Allow Copy key sequence to work in non-editable areas.
9045 (QWebPagePrivate::keyPressEvent):
9047 2008-07-31 Erik Bunce <elbunce@thehive.com>
9051 Make sure edit actions get updated when the contents change.
9053 * WebCoreSupport/EditorClientQt.cpp:
9054 (WebCore::EditorClientQt::respondToChangedContents):
9056 2008-07-31 Erik Bunce <elbunce@thehive.com>
9060 Add simple edit test abilities to QtLauncher.
9062 * QtLauncher/main.cpp:
9063 (MainWindow::MainWindow):
9064 (MainWindow::setEditable):
9065 (MainWindow::dumpHtml):
9067 2008-07-31 Alexey Proskuryakov <ap@webkit.org>
9069 Rubber-stamped by Maciej.
9071 Eliminate JSLock (it was already disabled, removing the stub implementaion and all
9074 * Api/qwebframe.cpp:
9075 (QWebFrame::addToJavaScriptWindowObject):
9077 2008-07-27 David Kilzer <ddkilzer@apple.com>
9079 Fix Qt build failure.
9082 (QWebFrame::setScrollOffset): Make argument const.
9084 2008-07-26 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
9086 Reviewed by Simon Hausmann.
9088 https://bugs.webkit.org/show_bug.cgi?id=20010
9089 [Qt] Add API access to scrolling
9091 * Api/qwebframe.cpp: Added access to a frame scroll offset.
9092 (QWebFrame::scroll):
9093 (QWebFrame::scrollOffset):
9094 (QWebFrame::setScrollOffset):
9097 2008-07-26 Daniel Jalkut <jalkut@red-sweater.com>
9099 Build fix. Adjust to updated WebCore FrameLoader method names & signatures.
9102 (QWebPage::triggerAction):
9103 * WebCoreSupport/FrameLoaderClientQt.cpp:
9104 (WebCore::FrameLoaderClientQt::createFrame):
9106 2008-07-25 Joerg Bornemann <joerg.bornemann@trolltech.com>
9110 Compile with QT_NO_PRINTER.
9112 * QtLauncher/main.cpp:
9113 (MainWindow::MainWindow):
9115 2008-07-24 Tor Arne Vestbø <tavestbo@trolltech.com>
9119 Don't insert text on keyDown event in EditorClientQt.
9121 * WebCoreSupport/EditorClientQt.cpp:
9122 (WebCore::EditorClientQt::handleKeyboardEvent):
9124 2008-07-04 Benjamin C Meyer <ben@meyerhome.net>
9128 Update the webkit version in the QtWebKit useragent string to match trunk
9132 2008-07-02 Simon Hausmann <hausmann@webkit.org>
9137 (QWebPage::triggerAction): The signature of setBaseWritingDirection
9138 changed to take an enum instead of a string.
9140 2008-07-01 Alexey Proskuryakov <ap@webkit.org>
9142 Reviewed by Darin Adler.
9144 Disable JSLock for per-thread contexts.
9146 * Api/qwebframe.cpp:
9147 (QWebFrame::addToJavaScriptWindowObject):
9148 Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking.
9149 Include JSLock.h, as it is no longer brought in implicitly.
9151 2008-07-01 Tor Arne Vestbø <tavestbo@trolltech.com>
9155 Don't show the tooltip instantly in the QtLauncher.
9157 Let the QWebView handle tooltips by itself, so we get
9158 the expected delay as everywhere else.
9160 * QtLauncher/main.cpp:
9162 2008-06-30 Simon Hausmann <hausmann@webkit.org>
9164 Rubber-stamped by Niko.
9166 Removed the obsolete and unmaintained WebKitPart. The integration of
9167 QtWebKit into KDE is now done in the webkitkde component inside KDE.
9169 * WebKitPart/WebKitFactory.cpp: Removed.
9170 * WebKitPart/WebKitFactory.h: Removed.
9171 * WebKitPart/WebKitPart.cpp: Removed.
9172 * WebKitPart/WebKitPart.desktop: Removed.
9173 * WebKitPart/WebKitPart.h: Removed.
9174 * WebKitPart/WebKitPart.rc: Removed.
9175 * WebKitPart/WebKitPartBrowser.rc: Removed.
9176 * WebKitPart/WebKitPartBrowserExtension.cpp: Removed.
9177 * WebKitPart/WebKitPartBrowserExtension.h: Removed.
9178 * WebKitPart/WebKitPartClient.cpp: Removed.
9179 * WebKitPart/WebKitPartClient.h: Removed.
9180 * WebKitPart/WebKitPartInterface.cpp: Removed.
9181 * WebKitPart/WebKitPartInterface.h: Removed.
9182 * WebKitPart/org.kde.WebKitPart.xml: Removed.
9184 2008-06-24 Simon Hausmann <hausmann@webkit.org>
9186 Fix the Qt build, added missing include for RuntimeObjectImp.
9188 * Api/qwebframe.cpp:
9190 2008-06-23 Benjamin C Meyer <ben@meyerhome.net>
9194 Add function to retrieve the standard context menu
9196 2008-06-20 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
9200 https://bugs.webkit.org/show_bug.cgi?id=19082
9201 [Qt] Full-page plugins not activated
9203 * WebCoreSupport/FrameLoaderClientQt.cpp:
9204 (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a
9205 plugin present, as it can be created during the function.
9207 2008-06-20 Marco Barisione <marco.barisione@collabora.co.uk>
9211 https://bugs.webkit.org/show_bug.cgi?id=19082
9212 [Qt] Full-page plugins not activated
9214 * WebCoreSupport/FrameLoaderClientQt.cpp:
9215 (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the
9216 MIME type is supported by a plugin.
9218 2008-06-18 Alexey Proskuryakov <ap@webkit.org>
9220 Reviewed by Darin Adler.
9222 Prepare JavaScript heap for being per-thread.
9224 * Api/qwebframe.cpp:
9225 (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build.
9227 2008-06-18 Julien Chaffraix <jchaffraix@webkit.org>
9229 Qt Build fix after r34627.
9231 * WebCoreSupport/FrameLoaderClientQt.cpp:
9232 (WebCore::FrameLoaderClientQt::createPlugin):
9234 2008-06-15 Darin Adler <darin@apple.com>
9236 - give Frame object functions shorter names: scriptProxy() -> script(),
9237 selectionController() -> selection(), animationController() -> animation()
9239 * Api/qwebframe.cpp:
9240 (QWebFrame::evaluateJavaScript):
9242 (QWebPagePrivate::focusInEvent):
9243 (QWebPagePrivate::focusOutEvent):
9244 (QWebPage::inputMethodQuery):
9245 * WebCoreSupport/EditorClientQt.cpp:
9246 (WebCore::EditorClientQt::handleKeyboardEvent):
9248 2008-06-15 Darin Adler <darin@apple.com>
9250 - new names for more JavaScriptCore files
9254 2008-06-15 Darin Adler <darin@apple.com>
9256 - new names for a few key JavaScriptCore files
9258 * Api/qwebframe.cpp:
9260 2008-06-14 Darin Adler <darin@apple.com>
9262 Rubber stamped by Sam.
9264 - new names for kjs_binding.h and kjs_proxy.h
9266 * Api/qwebframe.cpp:
9267 (QWebFrame::evaluateJavaScript):
9270 2008-06-14 Darin Adler <darin@apple.com>
9274 * Api/qwebframe.cpp:
9275 (QWebFramePrivate::init): Added a missing semicolon.
9277 2008-06-14 Darin Adler <darin@apple.com>
9281 - more https://bugs.webkit.org/show_bug.cgi?id=17257
9282 start ref counts at 1 instead of 0 for speed
9284 * Api/qwebframe.cpp:
9285 (QWebFramePrivate::init): Use create instead of new.
9286 * WebCoreSupport/FrameLoaderClientQt.cpp:
9287 (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto.
9289 2008-06-13 Darin Adler <darin@apple.com>
9293 * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument.
9295 2008-06-13 Darin Adler <darin@apple.com>
9297 Reviewed by John Sullivan.
9299 - updated for addition of FormState argument to action policy functions
9301 * WebCoreSupport/FrameLoaderClientQt.cpp:
9302 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
9303 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
9305 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
9309 Fix left-click and middle-click mouse event are not properly accepted.
9311 When copying or pasting text using left or middle-click, the event must be
9312 accepted so that it will not be potentially processed further by the parent
9313 and/or sub-classed widget.
9317 (QWebPagePrivate::mouseReleaseEvent):
9319 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
9323 Fix input element does not accept character typed in using AltGr.
9325 EditorClient is modified to catch AltGr and Ctrl+Alt key combination.
9326 This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry
9328 * WebCoreSupport/EditorClientQt.cpp:
9329 (WebCore::EditorClientQt::handleKeyboardEvent):
9331 2008-05-26 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
9335 https://bugs.webkit.org/show_bug.cgi?id=19323
9337 Implemented the QWebPage::editable property.
9339 Small documentation fixes by Simon.
9342 (QWebPagePrivate::QWebPagePrivate):
9343 (QWebPage::setEditable):
9344 (QWebPage::isEditable):
9346 * Api/qwebpage_p.h: implement the editable property and add API so that
9347 applications can switch edit mode on and off for a particular QWebPage
9348 * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the
9349 QWebPage instead of always returning false
9351 2008-06-09 Tor Arne Vestbø <tavestbo@trolltech.com>
9355 Make sure web action in context menus have the right enablement,
9356 while not messing up other web actions not included in the menu.
9359 (QWebPagePrivate::createContextMenu):
9360 (QWebPage::updatePositionDependentActions):
9363 2008-06-09 Benjamin C Meyer <ben@meyerhome.net>
9367 Add Shift-Space shortcut to go up one screen, the opposite of Space
9368 which goes down one screen.
9371 (QWebPagePrivate::handleScrolling):
9373 2008-06-04 Tor Arne Vestbø <tavestbo@trolltech.com>
9377 Fix a failing assertion when calling QWebFrame::evaluateJavaScript.
9379 The starting line number has to be 1 instead of 0.
9381 * Api/qwebframe.cpp:
9382 (QWebFrame::evaluateJavaScript):
9384 2008-06-03 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
9386 Reviewed by Darin Adler.
9388 * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains(). This
9389 function is not used anywhere internally and is only a convenience
9390 function that can still be accomplished using
9391 QWebHistoryInterface::historyContains();
9393 2008-05-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
9397 Doc: Mention the requirement of a QApplication with QtWebKit
9402 2008-05-29 David Boddie <dboddie@trolltech.com>
9406 Some clarifications for the documentation.
9410 * Api/qwebpluginfactory.cpp:
9412 2008-05-27 Ariya Hidayat <ariya.hidayat@trolltech.com>
9416 Fix web inspector does not returns its state properly after its window is minimized.
9418 As hinted by Holger, InspectorClientView::hideEvent is not needed.
9419 This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967
9421 * WebCoreSupport/InspectorClientQt.cpp:
9423 2008-05-21 Siraj Razick <siraj.razick@collabora.co.uk>
9427 Add <param name="classid"/> support for application/x-qt-object plugins
9429 * WebCoreSupport/FrameLoaderClientQt.cpp:
9430 (WebCore::FrameLoaderClientQt::createPlugin):
9432 2008-05-13 Andy Shaw <andy@trolltech.com>
9436 Fixes: QWebHistory::forward() should go forwards and not back
9438 * Api/qwebhistory.cpp:
9440 2008-05-12 Alexey Proskuryakov <ap@webkit.org>
9442 Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify
9443 SquirrelFish merging.
9445 * Api/qwebframe.cpp:
9446 (QWebFrame::addToJavaScriptWindowObject):
9448 2008-05-09 Thiago Macieira <tjmaciei@trolltech.com>
9452 Fix bad includes in QtWebKit public headers.
9454 Make sure to include qglobal.h using the QtCore prefix so that an explicit
9455 include/QtCore is not needed in the application's build system. Also make sure
9456 that qwebsettings.h includes the local qwebkitglobal.h.
9459 * Api/qwebkitglobal.h:
9460 * Api/qwebsettings.h:
9462 2008-05-08 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
9466 https://bugs.webkit.org/show_bug.cgi?id=18935
9468 Based on work by Sriram Neelakandan for the Gtk port.
9470 * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize
9471 m_hasSentResponseToPlugin.
9472 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
9473 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
9475 2008-05-08 Warwick Allison <warwick@trolltech.com>
9479 Fixes: WebKit expects initial input method state to be *disabled*.
9481 At least QWS does not need the initial input method state to be forced to
9482 enabled, but other platforms (esp. X11) do. Until fixed/tested on those
9483 platforms, this is specific to QWS.
9487 (QWebView::QWebView):
9489 2008-05-06 Simon Hausmann <hausmann@webkit.org>
9493 Fix logic error in QWebHitTestResult::isNull().
9495 * Api/qwebframe.cpp:
9497 2008-05-02 Benjamin Meyer <bmeyer@trolltech.com>
9501 Doc: Mention that you have to enable plugins in QWebSettings for them to work.
9505 2008-05-02 Simon Hausmann <hausmann@webkit.org>
9507 Fix the Qt build, ExecState is required here.
9509 * Api/qwebframe.cpp:
9510 (QWebFrame::addToJavaScriptWindowObject):
9512 2008-05-01 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
9514 Reviewed by Alp Toker.
9515 Qt parts OK'ed by Simon Hausmann.
9517 https://bugs.webkit.org/show_bug.cgi?id=14750
9518 Added support for NPAPI plugins on Gtk and Qt-x11 ports.
9520 * WebCoreSupport/FrameLoaderClientQt.cpp:
9521 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
9522 (WebCore::FrameLoaderClientQt::finishedLoading):
9523 (WebCore::FrameLoaderClientQt::setMainDocumentError):
9524 (WebCore::FrameLoaderClientQt::committedLoad):
9525 (WebCore::FrameLoaderClientQt::objectContentType):
9526 (WebCore::FrameLoaderClientQt::createPlugin):
9527 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
9528 * WebCoreSupport/FrameLoaderClientQt.h:
9530 2008-04-30 Julien Chaffraix <jchaffraix@webkit.org>
9534 Fixes a brace error that made Qt 4.4 build but not Qt 4.3.
9539 2008-04-30 Tor Arne Vestbø <tavestbo@trolltech.com>
9543 In focusIn and focusOut event always update the active state of the
9544 focus controller. Fixes ~400 failing layout tests due to missing
9545 editing callbacks that relied on the correct focus.
9548 (QWebPagePrivate::focusInEvent):
9549 (QWebPagePrivate::focusOutEvent):
9551 2008-04-29 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
9555 Fix compilation with QT_NO_PRINTER
9561 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
9565 Ensure that relative URL is converted to absolute URL.
9567 This is necessary because loading a relative URL is not really supported
9568 (the web page may load, but the subsequent URLs for images and links will
9569 not be resolved properly).
9570 This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484
9573 * Api/qwebframe.cpp:
9574 (ensureAbsoluteUrl):
9575 (QWebFrame::setUrl):
9578 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
9582 Simplification of Qt Launcher (no animation and use standard progress bar widget)
9584 Status bar shows the hovered link without any animation. Progress bar just uses the standard QProgressBar (no custom widget). The launcher is leaner and faster to use under the debugger and/or valgrind.
9587 * QtLauncher/main.cpp:
9588 (MainWindow::MainWindow):
9590 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
9594 Update the cursor when the frame/page loading is finished.
9596 This fixes https://bugs.webkit.org/show_bug.cgi?id=18712
9599 * WebCoreSupport/FrameLoaderClientQt.cpp:
9600 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
9601 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
9603 2008-04-29 Simon Hausmann <shausman@trolltech.com>
9607 Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links.
9609 Call QWebPage::acceptNavigationRequest when the creation of a new window with
9610 URL is requested. The frame pointer is set to null in this case.
9614 (QWebPage::setViewportSize):
9615 * WebCoreSupport/FrameLoaderClientQt.cpp:
9616 (WebCore::FrameLoaderClientQt::startDownload):
9617 (WebCore::FrameLoaderClientQt::createFrame):
9619 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
9623 Use the WebCore facility to do the scrolling. Move some code around.
9626 (QWebPagePrivate::keyPressEvent):
9627 (QWebPagePrivate::shortcutOverrideEvent):
9628 (QWebPagePrivate::handleScrolling):
9631 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
9635 fix potential crash when loading image(s)
9637 Crash may occur. If compiled with 4.3, the variable is not initialized.
9640 (QWebPagePrivate::QWebPagePrivate):
9642 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
9646 Calling QWebView::setCursor will override the WebCore Cursor.
9647 Calling QWebView::setCursor will override the WebCore Cursor using
9648 QWidget::unsetCursor will revert to the WebCore Cursor.
9650 For detecting the unset we have to compare the shape of the
9651 cursor to the default arrow. Qt::WA_SetCursor can not be used
9652 as it is set unconditionally but conditionally removed.
9654 Calling QWidget::setCursor will immediately send the CursorChange
9655 event. We listen to this event to decide if we currently use a
9656 WebCore cursor, got a cursor from outside, or revert to the default.
9658 This should be race free and work reliable, the manual test for this
9659 is WebCore/manual-tests/cursor.html
9662 (SetCursorEvent::SetCursorEvent):
9665 (QWebViewPrivate::QWebViewPrivate):
9666 (QWebViewPrivate::setCursor):
9667 (QWebView::QWebView):
9670 2008-04-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
9674 Documentation fixes:
9676 - Fixed a qdoc warning
9677 - Mention that fav icons can be of arbitrary size
9678 - Fix signature of QWebPage::acceptNavigationRequest show in the documentation
9680 * Api/qwebframe.cpp:
9683 * Api/qwebsettings.cpp:
9686 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
9690 Fix QWebView::loadFinished isn't always emitted
9692 Replaced loadDone() with loadFinished(bool) and moved the signals for progress
9693 tracking (start, progres, and finish) to the page instead of the frame. This
9694 ensures that we emit loadFinished even when a subframe started the actual load.
9696 This causes a few regressions in the layout tests that we for now accept for
9697 the sake of the correct API. Layout tests we can fix any time though, including
9698 patch release, the API however we can't change anymore in patch releases.
9700 * Api/qwebframe.cpp:
9703 (QWebPage::totalBytes):
9706 (QWebView::setPage):
9708 * QtLauncher/main.cpp:
9709 (MainWindow::MainWindow):
9710 * WebCoreSupport/FrameLoaderClientQt.cpp:
9711 (drtDescriptionSuitableForTestResult):
9712 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
9713 (WebCore::FrameLoaderClientQt::setFrame):
9714 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
9715 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
9716 (WebCore::FrameLoaderClientQt::willChangeTitle):
9717 (WebCore::FrameLoaderClientQt::createDocumentLoader):
9718 (WebCore::FrameLoaderClientQt::download):
9719 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
9720 * WebCoreSupport/FrameLoaderClientQt.h:
9722 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
9726 Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame
9728 * Api/qwebframe.cpp:
9729 * Api/qwebpluginfactory.cpp:
9730 * Api/qwebsettings.cpp:
9731 (QWebSettings::QWebSettings):
9732 (QWebSettings::setUserStyleSheetUrl):
9733 (QWebSettings::iconForUrl):
9734 (QWebSettings::webGraphic):
9735 (QWebSettings::maximumPagesInCache):
9736 (QWebSettings::setFontFamily):
9737 (QWebSettings::resetFontFamily):
9738 (QWebSettings::testAttribute):
9739 (QWebSettings::resetAttribute):
9741 2008-04-28 Ariya Hidayat <ahidayat@trolltech.com>
9745 Fix document/frame title not reset when loading a new URI
9747 We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle()
9748 will be called very soon with the correct title.
9749 This properly resets the title when we navigate to a URI without a title.
9752 * WebCoreSupport/FrameLoaderClientQt.cpp:
9754 2008-04-28 David Boddie <dboddie@trolltech.com>
9758 Minor documentation changes.
9762 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
9766 Prevent middle-click from triggering open URL from clipboard when the event has already been accepted.
9770 (QWebPagePrivate::mouseMoveEvent):
9771 (QWebPagePrivate::mousePressEvent):
9772 (QWebPagePrivate::mouseDoubleClickEvent):
9773 (QWebPagePrivate::mouseTripleClickEvent):
9774 (QWebPagePrivate::mouseReleaseEvent):
9776 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
9780 Fix scrollbar behavior in QtWebKit to match QScrollBar.
9782 Right click context menu is now supported, along with
9783 middle click to center slider thumb over mouse cursor.
9787 (QWebPage::linkDelegationPolicy):
9789 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
9793 Implemented channel-based logging for QtWebKit.
9795 Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable.
9796 Warnings for notImplemented() is still output by default, but can be disabled
9797 by setting DISABLE_NI_WARNINGS=1.
9800 (QWebPagePrivate::QWebPagePrivate):
9802 2008-04-28 Simon Hausmann <shausman@trolltech.com>
9804 Rubber-stamped by Lars
9806 Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API.
9808 * Api/qwebframe.cpp:
9813 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
9817 Doc - adding more documentation to QWebFrame, QWebPage and QWebView
9820 * Api/qwebframe.cpp:
9825 (QWebView::changeEvent):
9827 2008-04-28 Simon Hausmann <shausman@trolltech.com>
9831 Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens
9833 Give the popups the right parent widget and the right coordinates relative within the parent.
9838 2008-04-28 Benjamin Meyer <bmeyer@trolltech.com>
9842 Doc: Add see also's (and a few minor whitespace/typo corrections)
9845 * Api/qwebframe.cpp:
9846 (QWebFrame::~QWebFrame):
9847 (QWebFrame::setHtml):
9848 (QWebFrame::setContent):
9849 (QWebFrame::parentFrame):
9850 (QWebFrame::childFrames):
9851 (QWebFrame::setScrollBarValue):
9852 (QWebFrame::scrollBarValue):
9853 (QWebFrame::scrollBarMaximum):
9854 (QWebFrame::scrollBarMinimum):
9855 (QWebFrame::render):
9857 (QWebFrame::geometry):
9859 (QWebFrame::evaluateJavaScript):
9861 (QWebPagePrivate::mousePressEvent):
9862 (QWebPagePrivate::mouseDoubleClickEvent):
9863 (QWebPage::~QWebPage):
9864 (QWebPage::javaScriptPrompt):
9866 (QWebPage::setViewportSize):
9867 (QWebPage::acceptNavigationRequest):
9869 (QWebPage::userAgentForUrl):
9870 (QWebPagePrivate::_q_onLoadProgressChanged):
9874 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
9878 Submitting more documentation for QWebPage
9883 2008-04-28 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
9887 Compile when QT_NO_CLIPBOARD is defined.
9891 (QWebPage::triggerAction):
9893 2008-04-28 David Boddie <dboddie@trolltech.com>
9897 Minor documentation fix.
9900 * Api/qwebhistory.cpp:
9902 2008-04-28 Holger Hans Peter Freyther <zecke@selfish.org>
9906 Implement QWebPage::createPlugin
9908 The code is coming from the demo browser and needed here
9909 for some manual tests.
9912 * QtLauncher/QtLauncher.pro:
9913 * QtLauncher/main.cpp:
9914 (WebPage::createPlugin):
9916 2008-04-28 Simon Hausmann <hausmann@webkit.org>
9918 Qt/Win build fix. Include config.h to get the implicit MathExtras.h
9919 inclusion correct with regards to rand_s.
9921 * Api/qwebhistory.cpp:
9923 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
9927 https://bugs.webkit.org/show_bug.cgi?id=18713
9929 Fix scrollbar painting issues in QtWebKit.
9931 Hovering and click-draging outside of the scrollbar would
9932 produce unexpected and inconcistent results. We also didn't
9933 pass on leave-events to the underlying WebKit code, which
9934 was nessecary to implement the paint fix.
9936 Note: The event handling of the Leave event should be moved
9937 out of QWebView::event() and into a proper override for 4.5.
9940 (QWebPagePrivate::leaveEvent):
9945 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
9947 Reviewed by Simon, Holger.
9949 Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus.
9951 * Correctly de- and reactivate the focused frame in focusOut/focusInEvent
9952 without telling the focus controller. We don't want to change the focused frame
9953 - the controller has to remember it in fact - but instead just deactivate the
9954 frame for correct painting as RenderTheme::isFocused() uses the activation
9958 (QWebPagePrivate::focusInEvent):
9959 (QWebPagePrivate::focusOutEvent):
9961 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
9965 completed documentation for the Detailed Description section for QWebView
9970 2008-04-25 Denis Dzyubenko <denis.dzyubenko@trolltech.com>
9974 Fixed the way QWebHistory works - when you call back(), forward() or goToItem() functions it changes the current item in history *and* loads the corresponding page.
9977 * Api/qwebhistory.cpp:
9978 (QWebHistory::back):
9979 (QWebHistory::forward):
9980 (QWebHistory::goToItem):
9982 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
9986 Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest().
9989 * WebCoreSupport/FrameLoaderClientQt.cpp:
9990 (WebCore::FrameLoaderClientQt::createFrame):
9992 2008-04-25 Simon Hausmann <hausmann@webkit.org>
9996 When pressing backspace in a line edit in a webpage we should not go back to the previous page.
9998 The shortcut for back on Windows is backspace. Implemented shortcut override
9999 handling in QWebView/QWebPage to prevent this.
10002 * Api/qwebpage.cpp:
10003 (QWebPagePrivate::wheelEvent):
10004 (editorActionForKeyEvent):
10005 (QWebPagePrivate::keyPressEvent):
10006 (QWebPagePrivate::inputMethodEvent):
10007 (QWebPagePrivate::shortcutOverrideEvent):
10009 * Api/qwebpage_p.h:
10010 * Api/qwebview.cpp:
10013 2008-04-25 Ariya Hidayat <ariya.hidayat@trolltech.com>
10017 Fix triple-clicking does not work in a web page
10020 * Api/qwebpage.cpp:
10021 (QWebPagePrivate::updateEditorActions):
10022 (QWebPagePrivate::timerEvent):
10023 (QWebPagePrivate::mousePressEvent):
10024 (QWebPagePrivate::mouseDoubleClickEvent):
10025 (QWebPage::undoStack):
10026 * Api/qwebpage_p.h:
10028 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
10032 When pressing Ctrl-Up the keyboard modifiers could include other modifiers
10035 * Api/qwebpage.cpp:
10036 (QWebPagePrivate::keyPressEvent):
10038 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
10042 Fix handling of Javascript's confirm() function in QtWebKit.
10045 * Api/qwebpage.cpp:
10047 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
10051 Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity
10054 * Api/qwebview.cpp:
10056 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
10060 QWebPage: missing signal when window.print() is requested from javascript
10063 * Api/qwebpage.cpp:
10065 * WebCoreSupport/ChromeClientQt.cpp:
10067 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
10071 Fixes: "Save Image" action wasn't doing anything.
10074 * Api/qwebpage.cpp:
10075 (QWebPage::triggerAction):
10077 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
10081 Apply key event changes to the current frame, not the main frame.
10083 Example: hitting space bar should scroll current frame, not the main frame
10084 which doesn't even have a scrollbar.
10087 * Api/qwebpage.cpp:
10088 (QWebPagePrivate::keyPressEvent):
10090 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
10094 Fixes: QWebFrame crash when fetching the icon
10096 Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock.
10098 * Api/qwebframe.cpp:
10100 2008-04-25 Warwick Allison <warwick@trolltech.com>
10104 Fixes: Scrollbars did not report correct maximum.
10106 * Api/qwebframe.cpp:
10108 2008-04-25 David Boddie <dboddie@trolltech.com>
10112 Documentation updates for some of the QWeb classes
10114 * Api/qwebframe.cpp:
10115 * Api/qwebhistory.cpp:
10116 * Api/qwebsettings.cpp:
10117 * Api/qwebview.cpp:
10119 2008-04-25 Holger Hans Peter Freyther <zecke@selfish.org>
10123 Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html
10125 Similar to Editing and Frameloading we do the dumping within WebCore
10128 * WebCoreSupport/FrameLoaderClientQt.cpp:
10129 (qt_dump_frame_loader):
10130 (qt_dump_resource_load_callbacks):
10131 (drtDescriptionSuitableForTestResult):
10132 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
10133 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
10134 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
10136 2008-04-24 Anders Carlsson <andersca@apple.com>
10140 Change some String arguments to be const references instead.
10142 * WebCoreSupport/EditorClientQt.cpp:
10143 (WebCore::EditorClientQt::shouldInsertText):
10144 * WebCoreSupport/EditorClientQt.h:
10146 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
10150 Cosmetic changes to make the code more readable.
10151 -Early exit if we don't have a webview
10152 -handle the empty tooltip and non-empty tooltip case separately
10155 * WebCoreSupport/ChromeClientQt.cpp:
10156 (WebCore::ChromeClientQt::setToolTip):
10157 (WebCore::ChromeClientQt::print):
10159 2008-04-24 Paul Olav Tvete <paul@trolltech.com>
10163 Automatically wrap tooltip text and hide a shown tooltip when it is empty.
10165 QWidget::setTooltip("") will still show the old tooltip for up to 10 seconds.
10166 Workaround as discussed with Matthias.
10168 * WebCoreSupport/ChromeClientQt.cpp:
10169 (WebCore::ChromeClientQt::setToolTip):
10171 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
10175 Allow to disable caching completeley by calling setObjectCacheCapacities(0, 0, 0)
10177 * Api/qwebsettings.cpp:
10178 (QWebSettings::setObjectCacheCapacities):
10180 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
10184 Improve keyboard scrolling
10186 Match Down/Up keys scroll distance with Safari (i.e. faster) and add Home and End shortcuts to scroll to the top/botom.
10189 * Api/qwebpage.cpp:
10190 (QWebPagePrivate::keyPressEvent):
10192 2008-04-24 Olivier Goffart <ogoffart@trolltech.com>
10196 Fix various compiler warnings in the Qt port.
10198 * Api/qwebframe.cpp:
10199 (QWebFrame::print):
10200 * Api/qwebsettings.cpp:
10202 * WebCoreSupport/FrameLoaderClientQt.cpp:
10203 (WebCore::FrameLoaderClientQt::createPlugin):
10205 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
10209 Cleaned up copyright headers (removed misplaced class descriptions and
10210 fixed inconsistent whitespace and indentation).
10212 * Api/qwebframe.cpp:
10214 * Api/qwebframe_p.h:
10215 * Api/qwebhistory.cpp:
10216 * Api/qwebhistory.h:
10217 * Api/qwebhistory_p.h:
10218 * Api/qwebhistoryinterface.cpp:
10219 * Api/qwebhistoryinterface.h:
10220 * Api/qwebkitglobal.h:
10221 * Api/qwebnetworkinterface.cpp:
10222 * Api/qwebnetworkinterface.h:
10223 * Api/qwebnetworkinterface_p.h:
10224 * Api/qwebpage.cpp:
10226 * Api/qwebpage_p.h:
10227 * Api/qwebpluginfactory.cpp:
10228 * Api/qwebpluginfactory.h:
10229 * Api/qwebsettings.cpp:
10230 * Api/qwebsettings.h:
10232 * QtLauncher/main.cpp:
10234 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
10238 Added basic URL guessing to QtLauncher (same as in the demo browser).
10241 * QtLauncher/main.cpp:
10242 (MainWindow::changeLocation):
10243 (MainWindow::guessUrlFromString):
10245 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
10247 Reviewed by Simon Hausmann <hausmann@webkit.org>.
10249 Prevent double deletions of the default web interface.
10252 * Api/qwebhistoryinterface.cpp:
10253 (gCleanupInterface):
10254 (QWebHistoryInterface::QWebHistoryInterface):
10256 2008-04-23 Simon Hausmann <hausmann@webkit.org>
10258 Fix compilation against Qt 4.3
10260 * Api/qwebpage.cpp:
10261 (QWebPage::userAgentForUrl):
10262 * QtLauncher/main.cpp:
10265 2008-04-23 Holger Hans Peter Freyther <zecke@selfish.org>
10269 * Make sure the "Inspect Element" item gets added to the ContextMenu, a call
10270 to ContextMenu::populate() is not adding it, the ContextMenuController does
10271 add it after the call to populate(). Do that as well.
10274 * Api/qwebpage.cpp:
10275 (QWebPage::updatePositionDependentActions):
10277 2008-04-23 Simon Hausmann <hausmann@webkit.org>
10279 Reviewed by Holger.
10281 Fix crashes on window.close().
10283 We should not delete the QWebPage object in the ChromeClient but leave it up to
10284 the application when and whether to delete a browser window. For this we now
10285 emit the windowCloseRequested() signal.
10287 Done with Tor Arne.
10289 * Api/qwebpage.cpp:
10291 * QtLauncher/main.cpp:
10292 (MainWindow::MainWindow):
10293 * WebCoreSupport/ChromeClientQt.cpp:
10295 2008-04-23 Simon Hausmann <hausmann@webkit.org>
10297 Reviewed by Holger.
10299 Fix parsing of external scripts/stylesheets when using setHtml(const QString &html).
10301 We used to pass the html string to the frameloader in utf-16, which also meant that the default
10302 encoding of external scripts/stylesheets became utf-16. That doesn't make sense, so assume utf-8
10303 by default. This is now also documented.
10305 * Api/qwebframe.cpp:
10306 (QWebFrame::setHtml):
10307 * Api/qwebview.cpp:
10309 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
10313 Fixes background color propagation when using a custom QWebPage
10315 Set the palette in setPage(), not during the creation on-demand.
10318 * Api/qwebview.cpp:
10320 (QWebView::setPage):
10322 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
10326 Fix the user agent on the mac to be BSD4
10328 Put Q_OS_DARWIN before Q_OS_BSD4 sense they are both defined on the mac
10331 * Api/qwebpage.cpp:
10332 (QWebPage::userAgentForUrl):
10334 2008-04-23 Simon Hausmann <shausman@trolltech.com>
10336 Reviewed by Holger.
10338 Added missing copyright notice.
10339 Small fixes to the documentation.
10341 * Api/qwebpluginfactory.cpp:
10343 2008-04-23 Zack Rusin <zack@tungstengraphics.com>
10347 Added a contentsSize() property.
10349 * Api/qwebframe.cpp:
10350 (QWebFrame::contentsSize):
10351 (QWebFrame::hitTestContent):
10354 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
10358 Fixes: QWebPage's QNetworkManager's can be shared among webpages.
10360 Don't force the deletion of the object, but let QObject take care of it.
10362 * Api/qwebpage.cpp:
10364 2008-04-22 Simon Hausmann <hausmann@webkit.org>
10366 Reviewed by Holger.
10368 Documentation for QWebPluginFactory and documentation updates for QWebPage.
10370 * Api/qwebpage.cpp:
10371 (QWebPage::setLinkDelegationPolicy):
10372 (QWebPage::linkDelegationPolicy):
10373 (QWebPage::swallowContextMenuEvent):
10374 (QWebPage::updatePositionDependentActions):
10375 (QWebPage::extension):
10376 (QWebPage::networkAccessManager):
10377 * Api/qwebpluginfactory.cpp:
10378 (QWebPluginFactory::QWebPluginFactory):
10379 (QWebPluginFactory::~QWebPluginFactory):
10380 (QWebPluginFactory::refreshPlugins):
10382 2008-04-22 Simon Hausmann <hausmann@webkit.org>
10384 Reviewed by Holger.
10386 Added QWebPage::swallowContextMenuEvent and QWebPage::updatePositionDependentActions.
10389 * Api/qwebpage.cpp:
10390 (QWebPagePrivate::QWebPagePrivate):
10391 (QWebPagePrivate::mouseReleaseEvent):
10392 (QWebPage::setLinkDelegationPolicy):
10393 (QWebPage::linkDelegationPolicy):
10394 (QWebPage::swallowContextMenuEvent):
10395 (QWebPage::updatePositionDependentActions):
10397 * Api/qwebpage_p.h:
10398 * Api/qwebview.cpp:
10401 2008-04-22 Simon Hausmann <hausmann@webkit.org>
10403 Reviewed by Holger.
10405 Added Extension APIs for QWebPage.
10407 * Api/qwebpage.cpp:
10408 (QWebPage::setLinkDelegationPolicy):
10409 (QWebPage::linkDelegationPolicy):
10410 (QWebPage::extension):
10412 * Api/qwebpluginfactory.cpp:
10413 (QWebPluginFactory::extension):
10415 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
10419 Emit loadProgress() signal on loadStarted().
10422 * WebCoreSupport/FrameLoaderClientQt.cpp:
10423 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
10425 2008-04-22 Zack Rusin <zack@kde.org>
10429 Fix background propagation from the QWebView's palette.
10431 The background brush of the palette needs to be propagated to the WebCore::FrameView.
10433 * Api/qwebframe.cpp:
10434 (QWebFramePrivate::updateBackground):
10435 * Api/qwebframe_p.h:
10436 * Api/qwebpage.cpp:
10437 (QWebPagePrivate::dropEvent):
10438 (QWebPage::setPalette):
10440 * Api/qwebpage_p.h:
10441 * Api/qwebview.cpp:
10443 (QWebView::changeEvent):
10445 * WebCoreSupport/FrameLoaderClientQt.cpp:
10447 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
10451 Fix maps.google.com
10453 We have to include a version in the Safari tag in the user-agent.
10455 * Api/qwebpage.cpp:
10456 (QWebPage::userAgentForUrl):
10458 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
10462 Add visual focusing hint for clear button and
10463 change focus to web page after user enters new URL.
10465 * QtLauncher/main.cpp:
10466 (ClearButton::paintEvent):
10467 (MainWindow::changeLocation):
10469 2008-04-22 Simon Hausmann <hausmann@webkit.org>
10471 Reviewed by Holger.
10473 Added QWebFrame::hitTestContent() and QWebHitTestResult.
10475 * Api/qwebframe.cpp:
10476 (QWebFrame::hitTestContent):
10477 (QWebFrame::event):
10478 (QWebHitTestResult::QWebHitTestResult):
10479 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
10480 (QWebHitTestResult::operator=):
10481 (QWebHitTestResult::~QWebHitTestResult):
10482 (QWebHitTestResult::isNull):
10483 (QWebHitTestResult::pos):
10484 (QWebHitTestResult::title):
10485 (QWebHitTestResult::linkText):
10486 (QWebHitTestResult::linkUrl):
10487 (QWebHitTestResult::linkTitle):
10488 (QWebHitTestResult::linkTargetFrame):
10489 (QWebHitTestResult::alternateText):
10490 (QWebHitTestResult::imageUrl):
10491 (QWebHitTestResult::pixmap):
10492 (QWebHitTestResult::isContentEditable):
10493 (QWebHitTestResult::isContentSelected):
10494 (QWebHitTestResult::frame):
10496 * Api/qwebframe_p.h:
10497 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
10498 * Api/qwebpage.cpp:
10499 (QWebPagePrivate::contextMenuEvent):
10500 (QWebPage::triggerAction):
10502 * Api/qwebpage_p.h:
10504 2008-04-22 Simon Hausmann <hausmann@webkit.org>
10506 Reviewed by Holger.
10508 Don't crash if an input method query is done without a page.
10511 * Api/qwebview.cpp:
10512 (QWebView::inputMethodQuery):
10514 2008-04-22 Simon Hausmann <hausmann@webkit.org>
10516 Reviewed by Holger.
10518 Added re-implementations of QObject::event for future safety.
10520 This makes it easier to fix bugs with the event handling even in patch releases
10521 and is a general style we follow in Qt.
10524 * Api/qwebframe.cpp:
10526 * Api/qwebview.cpp:
10530 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
10534 Fix construction of the user agent.
10536 The user-agent is now composed of
10537 * the platform and subplatform
10538 * the Qt version or application name and version (if set)
10543 * Api/qwebpage.cpp:
10544 (QWebPage::networkAccessManager):
10545 (QWebPage::setPluginFactory):
10546 (QWebPage::pluginFactory):
10547 (QWebPage::userAgentForUrl):
10548 * QtLauncher/main.cpp:
10550 2008-04-22 Thiago Macieira <tjmaciei@trolltech.com>
10554 Fixes: Pedantic compilation fix
10556 Don't put semi-colons after braces closing namespaces.
10558 * Api/qwebsettings.h:
10560 2008-04-21 Simon Hausmann <hausmann@webkit.org>
10564 Changed the return type of QWebFrame::evaluateJavaScript from a QString to a QVariant.
10566 * Api/qwebframe.cpp:
10567 (QWebFrame::evaluateJavaScript):
10570 2008-04-21 Simon Hausmann <hausmann@webkit.org>
10572 Reviewed by Holger.
10574 Fixes redundant "Fonts" submenu in default lineedits that has only disabled items.
10576 Don't show sub-menus that have only actions that are disabled.
10578 * Api/qwebpage.cpp:
10579 (QWebPagePrivate::createContextMenu):
10581 2008-04-21 Kavindra Devi Palaraja <kdpalara@trolltech.com>.
10585 Lots of documentation fixes, fixed all qdoc warnings.
10587 * Api/qwebframe.cpp:
10588 (QWebFrame::setTextSizeMultiplier):
10589 * Api/qwebhistoryinterface.cpp:
10590 (gCleanupInterface):
10591 (QWebHistoryInterface::QWebHistoryInterface):
10592 (QWebHistoryInterface::~QWebHistoryInterface):
10593 * Api/qwebpage.cpp:
10594 (QWebPage::inputMethodQuery):
10596 (QWebPage::javaScriptConsoleMessage):
10597 (QWebPage::javaScriptAlert):
10598 (QWebPage::javaScriptConfirm):
10599 (QWebPage::javaScriptPrompt):
10600 (QWebPage::viewportSize):
10601 (QWebPage::acceptNavigationRequest):
10602 (QWebPage::action):
10604 (QWebPage::focusNextPrevChild):
10605 (QWebPage::setForwardUnsupportedContent):
10606 (QWebPage::setLinkDelegationPolicy):
10607 (QWebPage::findText):
10608 (QWebPage::settings):
10609 (QWebPage::networkProxy):
10610 (QWebPage::setNetworkAccessManager):
10612 * Api/qwebsettings.cpp:
10613 (QWebSettings::QWebSettings):
10614 (QWebSettings::setIconDatabasePath):
10615 (QWebSettings::iconForUrl):
10616 (QWebSettings::fontFamily):
10617 * Api/qwebview.cpp:
10621 2008-04-21 Marius Bugge Monsen <mmonsen@trolltech.com>
10625 Fix compile failure on solaris-cc
10627 * Api/qwebpage.h: Removed trailing semicolons and moved the private
10628 d-pointer to not confuse the compiler
10630 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
10634 Build fix for Qt 4.3
10636 * When building WebCore/internal make sure the QT_[BEGIN,END]_NAMESPACE is
10637 always defined. Do this by adding defines to the compiler line
10638 * For users of our API this is not feasible. Every public header file should
10639 include qwebkitglobal.h. Define the QT_BEGIN_NAMESPACE and QT_END_NAMESPACE
10640 when we are building everything < 4.4.0 and don't have them defined.
10642 * Api/qwebkitglobal.h:
10644 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
10648 * Initialize the WebGraphics with the one found in WebCore
10651 * Api/qwebsettings.cpp:
10652 (QWebSettingsPrivate::apply):
10654 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
10658 * Allow TextAreas to be resized.
10659 * No QWebSettings for this is introduced.
10662 * Api/qwebsettings.cpp:
10663 (QWebSettingsPrivate::apply):
10665 2008-04-21 Simon Hausmann <shausman@trolltech.com>
10667 Reviewed by Holger.
10669 Fixes: QWebView::url property behaviour strange in designer
10671 Added QWebView/QWebFrame::setUrl, which unlike load() clears the view immediately, schedules a load of the url but also makes sure url() returns the set url. This setter is now also used for the url property.
10673 * Api/qwebframe.cpp:
10674 (QWebFrame::setUrl):
10676 * Api/qwebview.cpp:
10677 (QWebView::setUrl):
10680 2008-04-21 Andre Poenitz <andre.poenitz@trolltech.com>
10682 Reviewed by Simon Hausmann <hausmann@webkit.org>.
10684 Fix compilation with Qt namespaces
10686 * Api/qwebframe.cpp:
10687 (QWebFrame::print):
10690 2008-04-21 Simon Hausmann <hausmann@webkit.org>
10692 Reviewed by Holger.
10694 When printing on high resolution printers we need to scale the painter accordingly (for now).
10696 * Api/qwebframe.cpp:
10697 (QWebFrame::print):
10699 2008-04-21 Simon Hausmann <hausmann@webkit.org>
10701 Reviewed by Holger.
10703 Provide a print preview in the QtLauncher
10705 * QtLauncher/main.cpp:
10706 (MainWindow::MainWindow):
10707 (MainWindow::showLinkHover):
10708 (MainWindow::print):
10710 2008-04-20 Simon Hausmann <hausmann@webkit.org>
10712 Reviewed by Alp Toker.
10714 Share the printing code between the Gtk and the Qt port
10715 and added printing to the Qt WebKit API.
10717 * Api/qwebframe.cpp:
10718 (QWebFrame::print):
10720 * Api/qwebview.cpp:
10724 2008-04-19 Julien Chaffraix <jchaffraix@webkit.org>
10726 Qt build fix (renderer() -> contentRenderer()).
10728 * Api/qwebframe.cpp:
10729 (QWebFrame::renderTreeDump):
10730 (QWebFrame::render):
10732 2008-04-18 Simon Hausmann <hausmann@webkit.org>
10734 Reviewed by Holger.
10736 Many API changes and additions after a full review with Jasmin Blanchette <jasmin@trolltech.com>
10738 The diff is too big to mention the changes individually, but most of the changes were of cosmetic
10739 nature where methods or enums have been renamed or prefixed/suffixed according to the consistency
10740 rules of the Qt API.
10742 * Api/qwebframe.cpp:
10743 (QWebFrame::addToJavaScriptWindowObject):
10744 (QWebFrame::toHtml):
10745 (QWebFrame::toPlainText):
10747 (QWebFrame::setContent):
10748 (QWebFrame::setScrollBarPolicy):
10749 (QWebFrame::render):
10750 (QWebFrame::setTextSizeMultiplier):
10751 (QWebFrame::textSizeMultiplier):
10754 * Api/qwebhistory.cpp:
10755 * Api/qwebhistory.h:
10756 * Api/qwebpage.cpp:
10757 (QWebPagePrivate::QWebPagePrivate):
10758 (QWebPagePrivate::~QWebPagePrivate):
10759 (QWebPagePrivate::acceptNavigationRequest):
10760 (webActionForContextMenuAction):
10761 (QWebPagePrivate::updateAction):
10762 (QWebPagePrivate::keyPressEvent):
10764 (QWebPage::javaScriptPrompt):
10765 (QWebPage::createWindow):
10766 (QWebPage::triggerAction):
10767 (QWebPage::setViewportSize):
10768 (QWebPage::acceptNavigationRequest):
10769 (QWebPage::action):
10770 (QWebPage::focusNextPrevChild):
10771 (QWebPage::setForwardUnsupportedContent):
10772 (QWebPage::forwardUnsupportedContent):
10773 (QWebPage::setLinkDelegationPolicy):
10774 (QWebPage::findText):
10775 (QWebPage::networkAccessManager):
10776 (QWebPageContext::imageUrl):
10777 (QWebPageContext::image):
10779 * Api/qwebpage_p.h:
10780 * Api/qwebsettings.cpp:
10781 (QWebSettingsPrivate::apply):
10782 (QWebSettings::QWebSettings):
10783 (QWebSettings::setIconDatabasePath):
10784 (QWebSettings::iconDatabasePath):
10785 (QWebSettings::clearIconDatabase):
10786 (QWebSettings::iconForUrl):
10787 (QWebSettings::setWebGraphic):
10788 (QWebSettings::fontFamily):
10789 (QWebSettings::setAttribute):
10790 (QWebSettings::testAttribute):
10791 (QWebSettings::resetAttribute):
10792 * Api/qwebsettings.h:
10793 * Api/qwebview.cpp:
10794 (QWebView::setPage):
10796 (QWebView::setTextSizeMultiplier):
10797 (QWebView::textSizeMultiplier):
10798 (QWebView::findText):
10799 (QWebView::reload):
10800 (QWebView::mouseMoveEvent):
10802 * QtLauncher/main.cpp:
10803 (MainWindow::MainWindow):
10805 * WebCoreSupport/ChromeClientQt.cpp:
10806 (WebCore::ChromeClientQt::ChromeClientQt):
10807 (WebCore::ChromeClientQt::setWindowRect):
10808 (WebCore::ChromeClientQt::toolbarsVisible):
10809 (WebCore::ChromeClientQt::setStatusbarVisible):
10810 (WebCore::ChromeClientQt::statusbarVisible):
10811 (WebCore::ChromeClientQt::setScrollbarsVisible):
10812 (WebCore::ChromeClientQt::setResizable):
10813 (WebCore::ChromeClientQt::scrollBackingStore):
10814 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
10815 (WebCore::ChromeClientQt::setToolTip):
10816 * WebCoreSupport/ChromeClientQt.h:
10817 * WebCoreSupport/FrameLoaderClientQt.cpp:
10818 (WebCore::FrameLoaderClientQt::setFrame):
10819 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
10820 (WebCore::FrameLoaderClientQt::setMainDocumentError):
10821 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
10822 (WebCore::FrameLoaderClientQt::createFrame):
10823 (WebCore::FrameLoaderClientQt::objectContentType):
10824 * WebCoreSupport/FrameLoaderClientQt.h:
10825 * WebCoreSupport/InspectorClientQt.cpp:
10827 2008-04-18 Simon Hausmann <hausmann@webkit.org>
10829 Reviewed by Holger.
10831 Added QWebView::find/QWebFrame::find.
10833 * Api/qwebpage.cpp:
10834 (QWebPage::focusNextPrevChild):
10837 * Api/qwebview.cpp:
10841 2008-04-15 Ariya Hidayat <ariya.hidayat@trolltech.com>
10845 fix potential crash when loading image(s)
10847 Crash may occur. If compiled with 4.3, the variable is not initialized.
10848 This fix solves https://bugs.webkit.org/show_bug.cgi?id=17174
10850 * Api/qwebpage.cpp:
10851 (QWebPagePrivate::QWebPagePrivate):
10853 2008-04-15 Simon Hausmann <hausmann@webkit.org>
10855 Reviewed by Holger.
10857 Update the micro focus for input methods as soon as the composition mode changes
10858 or the caret/selection changes.
10861 * Api/qwebpage.cpp:
10863 * Api/qwebview.cpp:
10864 (QWebView::setPage):
10865 * WebCoreSupport/EditorClientQt.cpp:
10866 (WebCore::EditorClientQt::respondToChangedSelection):
10867 (WebCore::EditorClientQt::setInputMethodState):
10869 2008-04-15 Simon Hausmann <hausmann@webkit.org>
10871 Reviewed by Holger.
10873 Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application,
10874 it yields undefined behaviour or wrong default codec initialization.
10877 * QtLauncher/main.cpp:
10878 (WebPage::createWindow):
10880 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
10884 Fixes: copy to clipboard when selecting, and paste when clicking with the middle button
10886 * Api/qwebpage.cpp:
10887 (QWebPagePrivate::mouseReleaseEvent): If the clipboard supports
10888 selections then we support copy & paste into the selection.
10890 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
10894 Add basic input method support.
10897 * Api/qwebpage.cpp:
10898 (QWebPagePrivate::dropEvent):
10899 (QWebPagePrivate::inputMethodEvent):
10900 (QWebPage::inputMethodQuery):
10903 * Api/qwebpage_p.h:
10904 * Api/qwebview.cpp:
10905 (QWebView::QWebView):
10906 (QWebView::inputMethodQuery):
10907 (QWebView::inputMethodEvent):
10909 * WebCoreSupport/EditorClientQt.cpp:
10910 (WebCore::EditorClientQt::setInputMethodState):
10912 2008-04-15 Simon Hausmann <hausmann@webkit.org>
10914 Reviewed by Holger.
10916 Added (QWebFrame|QWebView)::textZoomFactor.
10919 * Api/qwebframe.cpp:
10920 (QWebFrame::setTextZoomFactor):
10921 (QWebFrame::textZoomFactor):
10923 * Api/qwebview.cpp:
10924 (QWebView::setTextZoomFactor):
10925 (QWebView::textZoomFactor):
10928 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
10932 Added simple scrolling API to QWebFrame.
10934 The intent is that it works similar to QAbstractScrollArea.
10937 * Api/qwebframe.cpp:
10938 (QWebFrame::setScrollBarValue):
10939 (QWebFrame::scrollBarValue):
10940 (QWebFrame::scrollBarMaximum):
10941 (QWebFrame::scrollBarMinimum):
10944 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
10946 Reviewed by Holger.
10948 Fixes: implement the OpenFrameInNewWindow action.
10951 * Api/qwebpage.cpp:
10952 (QWebPage::triggerAction):
10954 2008-04-15 Andre Poenitz <andre.poenitz@trolltech.com>
10958 Fix compilation with Qt namespaces
10960 Qt can be configured to have all of its classes inside a specified namespaces.
10961 This is for example used in plugin/component environments like Eclipse.
10963 This change makes it possible to let the Qt port compile against a namespaced
10964 Qt by the use of macros Qt provides to properly forward declare Qt classes in
10969 * Api/qwebpage_p.h:
10970 * Api/qwebpluginfactory.h:
10971 * Api/qwebsettings.h:
10974 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
10976 Reviewed by Holger.
10978 Fixes: Right clicking an image and choosing "copy image" doesnt put anything in the clipboard.
10981 * Api/qwebpage.cpp:
10982 (QWebPage::triggerAction):
10984 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
10988 Fixes: Right click, and "Open image" open the link instead of the image.
10991 * Api/qwebpage.cpp:
10993 2008-04-05 Benjamin Meyer <bmeyer@trolltech.com>
10997 Added doc stub for QWebSettings so class docs are generated
11000 * Api/qwebsettings.cpp:
11001 (QWebSettings::QWebSettings):
11003 2008-04-05 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11007 * Propose the addition of updateRequest and scrollRequest to the QWebPage.
11009 * The question is if these signals belong to QWebPage or QWebFrame.
11010 -It is more easy to have them in QWebPage because ScrollView is invoking
11011 the ChromeClient with the right coordinates
11012 -On the other hand someone wants to render frames separately. But this is partly
11013 doomed as you can have overlapping frames and what you paint would not relate to
11014 what you normally see on webpages.
11017 * Api/qwebpage.cpp:
11019 * WebCoreSupport/ChromeClientQt.cpp:
11020 (WebCore::ChromeClientQt::scrollBackingStore):
11021 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
11023 2008-04-03 Simon Hausmann <hausmann@webkit.org>
11025 Reviewed by Mark Rowe.
11027 Roll out r31599 and r31605 again after discussion with Mark Rowe.
11029 * Api/qwebframe.cpp:
11031 * Api/qwebsettings.cpp:
11032 (QWebSettings::iconForUrl):
11034 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11038 * Change IconDatabase::iconForPageURL to return more information. E.g. if
11039 an image has been found, or if the loading of an image has been scheduled.
11040 * Update FrameLoader to use another method to trigger reading from disk
11041 * Update the QWebFrame and QWebSettings
11043 * Api/qwebframe.cpp:
11045 * Api/qwebsettings.cpp:
11046 (QWebSettings::iconForUrl):
11048 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11052 * Safari is using the IconDatabase the following way (assumption). Before they
11053 call iconDatabase()->open they "retain" all URLs they are interested in, these
11054 could come from the history.
11055 * When opening the iconDatabase() a thread will be started that is going to import
11056 the URLs, all none manually retained URLs are scheduled for removal. The removal
11057 is going to happen when the next icon gets stored in the database.
11058 * We do not have any IconDatabase code, we can not retain the URLs before opening the
11059 database. To disable the automatic pruning of the icons we will ask the IconDatabase
11060 to delay this operation. This means our IconDatabase, when used, will grow, so we should
11061 try to have a IconDatabase class in 4.4.
11062 * The only way to counter the growth is a call to QWebSettings::clearIconDatabase
11065 * Api/qwebsettings.cpp:
11066 (QWebSettings::clearIconDatabase):
11067 * Api/qwebsettings.h:
11069 2008-04-03 Benjamin Meyer <bmeyer@trolltech.com>
11073 Add a way to get the site icon for a url
11074 static QPixmap iconForUrl(const QUrl &url);
11077 * Api/qwebsettings.cpp:
11078 (QWebSettings::iconForUrl):
11079 * Api/qwebsettings.h:
11081 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11085 * Update the Copyright info in QWebSettings
11088 * Api/qwebsettings.cpp:
11089 * Api/qwebsettings.h:
11091 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11095 * The isEmpty check is not needed anymore with the earlier backport
11098 * Api/qwebframe.cpp:
11101 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11105 * For the http tests we need the output of the FrameLoaderClient. The QtWebKit API
11106 is not exporting enough to create the output in DRT itself. Settle with the approach
11107 Lars has taken for the Editing support and add branches to our FrameLoaderClient code.
11108 * run-webkit-tests http/tests(/loading) can now be executed.
11109 * For tests in loading/ directories we are going to throw away the dirty
11110 QWebPage to start with something clean.
11113 * WebCoreSupport/FrameLoaderClientQt.cpp:
11114 (qt_dump_frame_loader):
11115 (drtDescriptionSuitableForTestResult):
11116 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
11117 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
11118 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
11119 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
11120 (WebCore::FrameLoaderClientQt::dispatchWillClose):
11121 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
11122 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
11123 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
11124 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
11125 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
11126 (WebCore::FrameLoaderClientQt::registerForIconNotification):
11127 (WebCore::FrameLoaderClientQt::setMainDocumentError):
11128 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
11130 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11134 * Export the PageCache and Cache capacity call one to one. This is only there
11135 to allow the QtLauncher to play with caching.
11136 * TODO: make API decisions and consider following the windows Api to set a WebCacheModel
11137 and determine certain values automatically.
11140 * Api/qwebsettings.cpp:
11141 (QWebSettings::setPageCacheCapacity):
11142 (QWebSettings::setObjectCacheCapacities):
11143 * Api/qwebsettings.h:
11144 * QtLauncher/main.cpp:
11146 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11150 Prepapre everything for enabling the PageCache for the Qt Platform:
11151 * Claim that we can cache pages
11152 * Create the FrameView FrameLoaderClientQt::transitionToCommittedForNewPage using
11153 the initial size of the viewport and stop creating it in the QWebFramePrivate::init
11155 Differences to the Windows port:
11156 * attachToWindow/detachFromWindow is not called and is not (yet) part
11157 of Widget/ScrollView of the Qt platform. We might need that for plugin
11158 support in the future.
11159 * We store the margin's and scrolling flag inside QWebFrame and use it when
11160 creating the FrameView.
11163 * API to call pageCache()->setCapacity(XYZ);
11166 * Api/qwebframe.cpp:
11167 (QWebFramePrivate::init):
11168 * Api/qwebframe_p.h:
11169 (QWebFramePrivate::QWebFramePrivate):
11170 * Api/qwebpage.cpp:
11171 (QWebPagePrivate::createMainFrame):
11172 * WebCoreSupport/FrameLoaderClientQt.cpp:
11173 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
11174 (WebCore::FrameLoaderClientQt::blockedError):
11176 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11180 * For the PageCache support we do not want to create a FrameView in the constructor
11181 of QWebFrame. In QWegPage::viewportSize() we currently call mainFrame() and that will
11182 create a QWebFrame if no mainFrame is present and this gets called when we try to
11183 create a FrameView...
11184 * Keep a copy of the initial viewportSize around and use it if we do not have a Frame
11188 * Api/qwebpage.cpp:
11189 (QWebPagePrivate::QWebPagePrivate):
11190 (QWebPage::triggerAction):
11191 * Api/qwebpage_p.h:
11193 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11197 * Always return true in FrameLoaderClientQt::shouldGoToHistoryItem, like the windows port
11199 * WebCoreSupport/FrameLoaderClientQt.cpp:
11202 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11206 * Attempt to make the m_webFrame null pointer checking consistent. Always check for
11207 m_webFrame. It should get set by the QWebFrame with the FramerLoaderClientQt::setFrame
11208 call and should stay valid until the destruction of the QWebFrame.
11209 * Currently the same checking is not needed for m_frame as it will only set to 0 in
11210 FrameLoaderClientQt::frameLoaderDestroyed and should be not 0 because of the setFrame
11214 * WebCoreSupport/FrameLoaderClientQt.cpp:
11215 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
11216 (WebCore::FrameLoaderClientQt::setMainDocumentError):
11217 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
11218 (WebCore::FrameLoaderClientQt::objectContentType):
11219 (WebCore::FrameLoaderClientQt::createPlugin):
11221 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11225 * Get the RefCounting of WebCore::Frame right and make sure that both QWebFrame
11226 and WebCore::Frame get destroyed if we leave site with subframes and on the
11227 end of the application.
11228 * Use adoptRef in FrameLoaderClientQt::createFrame to get the refs right for subframes. We
11229 do not want to add an extra reference. Without this we are leaking subframes.
11230 * Assume that the lifetime of a Frame and FrameLoader are the same, when the Frame is gone
11231 we want to destroy the QWebFrame (e.g. on a page with subframes). Add delete m_webFrame
11232 in the frameLoaderDestroyed method to do that.
11233 * If we happen to delete the QWebFrame before the FrameLoaderClientQt we set m_webFrame to
11234 zero in the FrameLoaderClientQt to avoid bad things.
11237 * Api/qwebframe.cpp:
11238 (QWebFrame::~QWebFrame):
11239 * WebCoreSupport/FrameLoaderClientQt.cpp:
11240 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
11241 (WebCore::FrameLoaderClientQt::objectContentType):
11242 * WebCoreSupport/FrameLoaderClientQt.h:
11244 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11248 * Do not save a RefPtr to the frame. The FrameLoaderClient, Frame and
11249 QWebFrame should have the same lifetime everything else is a leak
11252 * Api/qwebframe.cpp:
11253 (QWebFramePrivate::init):
11254 * Api/qwebframe_p.h:
11255 * WebCoreSupport/FrameLoaderClientQt.cpp:
11257 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11261 * Do not store the QWebFrame associated with a ScrollView/FrameView
11262 in the WebCore::Widget.
11263 * Instead of asking the Widget for the QWebFrame use the QWebFramePrivate::core
11264 and QWebFramePrivate::kit function to convert from and to QWebFrame.
11267 * Api/qwebframe.cpp:
11268 (QWebFramePrivate::init):
11269 * Api/qwebpage.cpp:
11270 (QWebPagePrivate::createMainFrame):
11272 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11276 * Do not store the FrameView in the QWebFrame and cope with the situation when
11277 a WebCore::Frame has no WebCore::FrameView.
11280 * Api/qwebframe.cpp:
11281 (QWebFramePrivate::init):
11282 (QWebFramePrivate::horizontalScrollBar):
11283 (QWebFramePrivate::verticalScrollBar):
11284 (QWebFrame::innerText):
11285 (QWebFrame::renderTreeDump):
11286 (QWebFrame::setVerticalScrollBarPolicy):
11287 (QWebFrame::setHorizontalScrollBarPolicy):
11288 (QWebFrame::render):
11289 (QWebFrame::layout):
11291 * Api/qwebframe_p.h:
11292 (QWebFramePrivate::QWebFramePrivate):
11293 * Api/qwebpage.cpp:
11294 (QWebPagePrivate::updateEditorActions):
11295 (QWebPagePrivate::mouseMoveEvent):
11296 (QWebPagePrivate::mousePressEvent):
11297 (QWebPagePrivate::mouseDoubleClickEvent):
11298 (QWebPagePrivate::contextMenuEvent):
11299 (QWebPagePrivate::wheelEvent):
11300 (QWebPage::triggerAction):
11301 * WebCoreSupport/FrameLoaderClientQt.cpp:
11303 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11307 * Change the order of the methods to match with the FrameLoaderClient.h to ease
11308 removing methods in the future.
11310 * WebCoreSupport/FrameLoaderClientQt.h:
11312 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11316 * Remove virtuals in the FrameLoaderClientQt that don't exist in the base class.
11318 * WebCoreSupport/FrameLoaderClientQt.cpp:
11319 (WebCore::FrameLoaderClientQt::detachedFromParent4):
11320 * WebCoreSupport/FrameLoaderClientQt.h:
11322 2008-03-25 Brady Eidson <beidson@apple.com>
11326 Remove newly obsolete FrameLoaderClient methods
11328 * WebCoreSupport/FrameLoaderClientQt.cpp:
11329 * WebCoreSupport/FrameLoaderClientQt.h:
11331 2008-03-22 Mark Rowe <mrowe@apple.com>
11335 * WebCoreSupport/FrameLoaderClientQt.cpp:
11338 2008-03-18 Simon Hausmann <hausmann@webkit.org>
11340 Reviewed by Holger.
11342 Fix the Qt build. Don't return void in non-void functions.
11344 * Api/qwebpluginfactory.cpp:
11345 (QWebPluginFactory::extension):
11347 2008-03-16 Thiago Macieira <thiago.macieira@trolltech.com>
11351 Don't use RefPtr in classes you haven't seen the implementation of.
11353 Forward-declaration and declaration of RefPtr<Foo> is ok. But you
11354 cannot *use* said objects until Foo is defined. This is true even for
11355 initialisation with a 0.
11357 Seems the HP aCC compiler is more strict here than gcc.
11359 * Api/qwebframe_p.h:
11361 2008-03-14 Simon Hausmann <hausmann@webkit.org>
11365 * Api/qwebframe.cpp:
11366 (QWebFrame::setHtml):
11367 (QWebFrame::setContent):
11369 2008-03-13 Simon Hausmann <hausmann@webkit.org>
11373 * Api/qwebframe.cpp:
11374 (QWebFrame::addToJSWindowObject):
11376 2008-03-12 Simon Hausmann <hausmann@webkit.org>
11378 Fix compilation against Qt 4.3
11380 * Api/qwebpage.cpp:
11382 * Api/qwebpage_p.h:
11384 2008-03-11 Rodney Dawes <dobey@wayofthemonkey.com>
11388 * WebCoreSupport/FrameLoaderClientQt.cpp:
11389 (FrameLoaderClientQt::CreatePlugin):
11391 2008-03-11 Simon Hausmann <hausmann@webkit.org>
11393 Fix the Qt build (silly typo).
11395 * QtLauncher/main.cpp:
11396 (MainWindow::MainWindow):
11398 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
11402 Moved obscuring progress bar to the lower right corner.
11404 * QtLauncher/main.cpp:
11405 (MainWindow::MainWindow):
11406 (MainWindow::resizeEvent):
11408 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
11412 Added reload action and grouped stop and reload actions together.
11414 * QtLauncher/main.cpp:
11415 (MainWindow::MainWindow):
11417 2008-03-11 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11421 * Set a Icon on the QAction if we have one.
11423 * Api/qwebpage.cpp:
11424 (QWebPage::action):
11426 2008-03-11 Simon Hausmann <hausmann@webkit.org>
11430 * Api/qwebframe.cpp:
11431 (QWebFrame::addToJSWindowObject):
11433 2008-03-07 Simon Hausmann <hausmann@webkit.org>
11435 Reviewed by Darin Adler.
11439 Replaced the QWebObjectPlugin interfaces with QWebPluginFactory.
11441 * Api/qwebnetworkinterface.cpp:
11442 (QWebNetworkManager::add):
11443 (QWebNetworkManager::cancel):
11444 (QWebNetworkManager::started):
11445 (QWebNetworkManager::data):
11446 (QWebNetworkManager::finished):
11447 * Api/qwebnetworkinterface_p.h:
11448 (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
11449 * Api/qwebobjectplugin.cpp: Removed.
11450 * Api/qwebobjectplugin.h: Removed.
11451 * Api/qwebobjectplugin_p.h: Removed.
11452 * Api/qwebobjectpluginconnector.cpp: Removed.
11453 * Api/qwebobjectpluginconnector.h: Removed.
11454 * Api/qwebpage.cpp:
11455 (QWebPagePrivate::QWebPagePrivate):
11456 (QWebPage::setPluginFactory):
11457 (QWebPage::pluginFactory):
11459 * Api/qwebpage_p.h:
11460 * Api/qwebpluginfactory.cpp: Added.
11461 (QWebPluginFactory::QWebPluginFactory):
11462 (QWebPluginFactory::~QWebPluginFactory):
11463 (QWebPluginFactory::refreshPlugins):
11464 (QWebPluginFactory::extension):
11465 * Api/qwebpluginfactory.h: Added.
11467 * WebCoreSupport/FrameLoaderClientQt.cpp:
11468 (WebCore::FrameLoaderClientQt::objectContentType):
11469 (WebCore::FrameLoaderClientQt::createPlugin):
11471 2008-03-07 Simon Hausmann <hausmann@webkit.org>
11475 * Api/qwebframe.cpp:
11477 2008-03-04 Sam Weinig <sam@webkit.org>
11479 Reviewed by Mark Rowe.
11481 - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
11484 * Api/qwebframe.cpp:
11485 (QWebFrame::addToJSWindowObject):
11487 2008-03-04 Mark Rowe <mrowe@apple.com>
11489 Another go at fixing the Qt build.
11491 * Api/qwebframe.cpp:
11492 (QWebFrame::addToJSWindowObject):
11494 2008-02-24 Darin Adler <darin@apple.com>
11498 - remove separate client calls for "standard" and "reload' history
11500 * WebCoreSupport/FrameLoaderClientQt.cpp:
11501 (WebCore::FrameLoaderClientQt::updateGlobalHistory):
11502 * WebCoreSupport/FrameLoaderClientQt.h:
11504 2008-02-24 Darin Adler <darin@apple.com>
11506 - another try at fixing the build
11508 * Api/qwebframe.cpp:
11509 (QWebFrame::load): Replace new FormData with FormData::create.
11511 2008-02-22 Sam Weinig <sam@webkit.org>
11515 * Api/qwebhistoryinterface.cpp:
11517 2008-02-22 Sam Weinig <sam@webkit.org>
11519 Rubber-stamped by Adam Roben.
11521 Rid the project of the Devil known as DeprecatedString!
11523 * Api/qwebhistory.cpp:
11524 * Api/qwebhistoryinterface.cpp:
11526 2008-02-18 Darin Adler <darin@apple.com>
11530 * Api/qwebnetworkinterface.cpp:
11531 (QWebNetworkRequestPrivate::init): Removed use of DeprecatedString.
11533 2008-01-24 David Boddie <dboddie@trolltech.com>
11537 Documentation tidying.
11540 * Api/qwebframe.cpp:
11541 * Api/qwebhistoryinterface.cpp:
11542 * Api/qwebview.cpp:
11544 2008-01-24 Jarek Kobus <jkobus@trolltech.com>
11548 Text for translations were used wrongly as comments
11551 * WebCoreSupport/FrameLoaderClientQt.cpp:
11553 (WebCore::FrameLoaderClientQt::cannotShowURLError):
11554 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
11555 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
11556 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
11557 (WebCore::FrameLoaderClientQt::shouldFallBack):
11559 2008-01-24 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11563 * We have a KURL->QUrl conversion on KURL itself, make use of it.
11564 * This conversion is supposed to be loss-free
11567 * Api/qwebframe.cpp:
11569 2008-01-23 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11571 * Rubber stamped by Simon
11573 * Fix leaking of sub frames (WebCore::Frame). We keep one reference too many.
11574 This was found while working on the page-cache, other ports are not affected.
11576 * WebCoreSupport/FrameLoaderClientQt.cpp:
11577 (WebCore::FrameLoaderClientQt::createFrame):
11579 2008-01-23 Rohan McGovern <rohan.mcgovern@trolltech.com>
11581 Reviewed by Simon Hausmann <hausmann@webkit.org>.
11583 Fix Qtopia compilation with QT_NO_TOOLTIP
11586 * WebCoreSupport/ChromeClientQt.cpp:
11587 (WebCore::ChromeClientQt::print):
11589 2008-01-23 Geir Vattekar <gvatteka@trolltech.com>
11593 Doc: Replaced \code with snippets in the docs
11596 * Api/qwebview.cpp:
11598 2008-01-23 Benjamin Meyer <bmeyer@trolltech.com>
11602 Tweak key presses even to match commonly expected behavior
11603 - space key == page down
11604 - page down moved down not a page, but slightly less then a page so you don't loose your spot when reading.
11605 - Use font height rather then a hard coded "10" for left, right, up, down
11606 - Ctrl-Up moves to the top of the page
11607 - Ctrl-Down move to the bottom of the page
11608 - Backspace == GoBack
11609 - Shift-Backspace == GoForward
11612 * Api/qwebpage.cpp:
11613 (dropActionToDragOp):
11614 (dragOpToDropAction):
11615 (QWebPagePrivate::keyPressEvent):
11617 2008-01-23 Simon Hausmann <hausmann@webkit.org>
11621 Implemented FrameLoaderClient::startDownload() and FrameLoaderClient::download().
11623 Added two signals to QWebPage to handle downloading of links and handling of
11624 unsupported content.
11627 * Api/qwebpage.cpp:
11628 (QWebPage::triggerAction):
11630 * WebCoreSupport/FrameLoaderClientQt.cpp:
11631 (WebCore::FrameLoaderClientQt::download):
11632 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
11633 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
11634 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
11635 (WebCore::FrameLoaderClientQt::willUseArchive):
11637 2008-01-22 Lars Knoll <lars@trolltech.com>
11641 setup a family for cursive and fantasy fonts as well.
11644 * Api/qwebsettings.cpp:
11645 (QWebSettings::QWebSettings):
11647 2008-01-22 Benjamin Meyer <bmeyer@trolltech.com>
11651 Implement ChromeClientQt::setToolTip
11652 Implement ChromeClientQt::mouseDidMoveOverElement
11655 * Api/qwebpage.cpp:
11656 * Api/qwebpage_p.h:
11657 * WebCoreSupport/ChromeClientQt.cpp:
11658 (WebCore::ChromeClientQt::ChromeClientQt):
11659 (WebCore::ChromeClientQt::focus):
11660 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
11661 (WebCore::ChromeClientQt::setToolTip):
11662 (WebCore::ChromeClientQt::print):
11663 * WebCoreSupport/ChromeClientQt.h:
11665 2008-01-21 Darin Adler <darin@apple.com>
11667 Reviewed by John Sullivan.
11669 - updated for changes to ChromeClient database functions
11671 * WebCoreSupport/ChromeClientQt.cpp:
11672 (WebCore::ChromeClientQt::exceededDatabaseQuota):
11673 * WebCoreSupport/ChromeClientQt.h:
11675 2008-01-21 Benjamin Meyer <bmeyer@trolltech.com>
11679 Change QWebHistoryInterface::addHistoryEntry() from const to non-const
11682 * Api/qwebhistoryinterface.h:
11684 2008-01-21 Adam Treat <adam.treat@torchmobile.com>
11688 * Don't leak the d-pointer in QWebSettings.
11691 * Api/qwebsettings.cpp:
11692 (QWebSettings::~QWebSettings):
11694 2008-01-21 Simon Hausmann <hausmann@webkit.org>
11696 Reviewed by Holger.
11698 Update the WebKit version number from WebKit/win/WebKit.vcproj/VERSION.
11700 This has the fortunate side-effect that gmail sends us sensible HTML/JS again :)
11703 * Api/qwebpage.cpp:
11705 2008-01-21 Simon Hausmann <hausmann@webkit.org>
11707 Reviewed by Holger.
11709 Fix focus chain handling and cycling through focusable objects (links) using tab/backtab.
11711 * Fix GraphicsContext::drawFocusRing to also draw single focus rects.
11712 * Implemented QWebPage::focusNextPrevChild by sending fake tab/shift-tab events
11713 and make the return value depend on whether we successfully determined a focusable
11715 * Changed QWebView::focusNextPrevChild() to call the base QWidget implementation correctly
11716 if we could not handle the focus chain ourselves.
11717 * Changed the focus policy of QWebView to correctly use WheelFocus instead of ClickFocus.
11718 * Made ChromeClientQt::canTakeFocus() and takeFocus() dummy method since they are only
11719 used to control the situation of stepping out of the focus chain inside the page.
11720 * Made inclusion of links in the focus chain configurable through QWebSettings::LinksIncludedInFocusChain.
11721 The layout tests expect this to be disabled but for the user it seems sensible to have it
11722 on by default, hence the default in qwebsettings.cpp
11725 * Api/qwebpage.cpp:
11726 (QWebPage::focusNextPrevChild):
11727 * Api/qwebsettings.cpp:
11728 (QWebSettings::QWebSettings):
11729 * Api/qwebsettings.h:
11730 * Api/qwebview.cpp:
11731 (QWebView::QWebView):
11732 (QWebView::focusNextPrevChild):
11733 * WebCoreSupport/ChromeClientQt.cpp:
11734 (WebCore::ChromeClientQt::canTakeFocus):
11735 (WebCore::ChromeClientQt::takeFocus):
11737 2008-01-18 Simon Hausmann <hausmann@webkit.org>
11739 Reviewed by Holger.
11741 Coding style fixes and added a comment about the include order.
11745 2008-01-18 Marius Storm-Olsen <marius@trolltech.com>
11747 Reviewed by Simon Hausmann <hausmann@webkit.org>.
11749 Add use of precompiled header, when building inside Qt.
11751 Compiling WebKit was taking forever; 17 minutes on my machine for _one_ build! Adding the PCH at least brings it down to 12 minutes for one build, for me.
11754 * WebKit_pch.h: Added.
11756 2008-01-18 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
11760 * Ask the WebCore::IconDatabase only if our URL is not empty. Otherwise
11761 we will see a crash in a HashSet.
11762 * It is crashing there because the StringImpl of an empty String is 0.
11763 * We avoid this crash by checking for isEmpty() in WebKit as there is no
11764 use to ask the iconDatabase for an empty string. We will fallback to the
11768 * Api/qwebframe.cpp:
11771 2008-01-17 Simon Hausmann <hausmann@webkit.org>
11773 Reviewed by Holger.
11775 Minor documentation fixes
11778 * Api/qwebframe.cpp:
11779 * Api/qwebview.cpp:
11781 2008-01-17 Simon Hausmann <shausman@trolltech.com>
11785 Fix form elements not focusing correctly after the qt widget lost its focus.
11787 When receiving a focus out event notify the focus controller. Otherwise its
11788 m_focusedFrame variable remains unchanged and setFocusedFrame on a focusIn
11789 event shortcuts and doesn't call setActive(true).
11792 * Api/qwebpage.cpp:
11794 2008-01-17 Simon Hausmann <shausman@trolltech.com>
11796 Reviewed by Holger.
11798 Lots of updates to the documentation.
11801 * Api/qwebframe.cpp:
11802 * Api/qwebhistory.cpp:
11803 * Api/qwebpage.cpp:
11804 (QWebPagePrivate::dropEvent):
11805 (QWebPage::history):
11807 (QWebPage::triggerAction):
11808 (QWebPage::viewportSize):
11809 (QWebPage::navigationRequested):
11810 (QWebPage::action):
11812 (QWebPageContext::targetFrame):
11814 * Api/qwebview.cpp:
11816 2008-01-17 Simon Hausmann <shausman@trolltech.com>
11820 Added a urlChanged signals to QWebFrame and QWebView.
11823 * Api/qwebframe.cpp:
11825 * Api/qwebview.cpp:
11826 (QWebView::setPage):
11828 * WebCoreSupport/FrameLoaderClientQt.cpp:
11830 2008-01-17 Simon Hausmann <shausman@trolltech.com>
11834 Fixed docs and sanity checks in QWebSettings::setIconDatabaseEnabled
11837 * Api/qwebsettings.cpp:
11838 (QWebSettings::setIconDatabaseEnabled):
11840 2008-01-17 Simon Hausmann <shausman@trolltech.com>
11844 Added QWebView::createWindow() which is forwarded from QWebPage::createWindow() for convenience.
11847 * Api/qwebpage.cpp:
11848 (QWebPage::createWindow):
11849 * Api/qwebview.cpp:
11850 (QWebView::createWindow):
11853 2008-01-17 Lars Knoll <lars@trolltech.com>
11857 add a 0 pointer check.
11859 Fixes a crash in the demo web browser.
11861 * WebCoreSupport/FrameLoaderClientQt.cpp:
11862 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
11864 2008-01-17 Simon Hausmann <hausmann@webkit.org>
11866 Reviewed by Holger.
11868 Fix QWebFrame::title().
11870 For the titleChanged() signal we use the documentloader's title. For the property we have to use the same
11871 instead of Document::title() as the latter is not trimmed and not suited for a window caption.
11874 * Api/qwebframe.cpp:
11875 (QWebFrame::title):
11877 2008-01-17 Simon Hausmann <hausmann@webkit.org>
11879 Reviewed by Maciej, Lars, Holger.
11881 http://bugs.webkit.org/show_bug.cgi?id=16589
11883 Add a document parameter to WebCore::cookies, setCookies and cookiesEnabled.
11885 * Api/qwebnetworkinterface.cpp:
11886 (QWebNetworkRequestPrivate::init):
11887 (QWebNetworkManager::started):
11889 2008-01-17 Warwick Allison <warwick@trolltech.com>
11891 Reviewed by Simon Hausmann <hausmann@webkit.org>.
11893 Follow QWidget::keyPressEvent advice and call parents.
11895 Without this, Back does not work in Qtopia, for example.
11898 * Api/qwebview.cpp:
11899 (QWebView::keyPressEvent):
11900 (QWebView::keyReleaseEvent):
11902 2008-01-17 Simon Hausmann <hausmann@webkit.org>
11906 Fix compilation against Qt 4.3 after the recent KURL <> QUrl conversion fixes.
11908 * Api/qwebnetworkinterface.cpp:
11909 (QWebNetworkManager::started):
11911 2008-01-17 Simon Hausmann <shausman@trolltech.com>
11913 Reviewed by Holger.
11915 Fix compilation against Qt 4.4 without files that are specific for the Qt 4.3 build.
11918 * Api/qwebframe.cpp:
11919 * Api/qwebpage.cpp:
11920 * WebCoreSupport/FrameLoaderClientQt.cpp:
11922 2008-01-17 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
11924 Reviewed by Simon Hausmann <hausmann@webkit.org>.
11926 Fixes compilation with QT_NO_DRAGANDDROP
11929 * Api/qwebpage.cpp:
11931 * Api/qwebview.cpp:
11932 (QWebView::dragEnterEvent):
11933 (QWebView::dragLeaveEvent):
11934 (QWebView::dragMoveEvent):
11935 (QWebView::dropEvent):
11937 2008-01-17 Simon Hausmann <hausmann@webkit.org>
11941 Fix compilation, removed obsolete privateBrowsingEnabled() method.
11943 * WebCoreSupport/FrameLoaderClientQt.cpp:
11945 2008-01-16 Lars Knoll <lars@trolltech.com>
11947 Reviewed by Simon Hausmann <simon.hausmann@trolltech.com>.
11949 Removed a whole bunch of notImplemented() warnings.
11951 I don't want to hide the real warnings in lots of things that
11952 I am by now pretty certain we won't need.
11955 * WebCoreSupport/FrameLoaderClientQt.cpp:
11956 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
11957 (WebCore::FrameLoaderClientQt::canShowMIMEType):
11959 2008-01-16 Simon Hausmann <hausmann@webkit.org>
11961 Reviewed by Holger.
11963 Fix crash when bringing up the context menu on maps.google.com.
11965 If the website provides its own context menu then we don't have a ContextMenu pointer.
11968 * Api/qwebpage.cpp:
11969 (QWebPagePrivate::contextMenuEvent):
11971 2008-01-16 Simon Hausmann <hausmann@webkit.org>
11973 Reviewed by Holger.
11975 Don't crash when receiving all sorts of events on a default constructed QWebView without a page.
11977 * Api/qwebview.cpp:
11978 (QWebView::mouseMoveEvent):
11979 (QWebView::mousePressEvent):
11980 (QWebView::mouseDoubleClickEvent):
11981 (QWebView::mouseReleaseEvent):
11982 (QWebView::contextMenuEvent):
11983 (QWebView::wheelEvent):
11984 (QWebView::keyPressEvent):
11985 (QWebView::keyReleaseEvent):
11986 (QWebView::focusInEvent):
11987 (QWebView::focusOutEvent):
11988 (QWebView::dragEnterEvent):
11989 (QWebView::dragLeaveEvent):
11990 (QWebView::dragMoveEvent):
11991 (QWebView::dropEvent):
11992 (QWebView::focusNextPrevChild):
11994 2008-01-16 Simon Hausmann <hausmann@webkit.org>
11998 Made the url property read-write.
12002 2008-01-16 Simon Hausmann <hausmann@webkit.org>
12006 Don't crash when showing a default initialized QWebView that has no page/frame yet.
12008 * Api/qwebview.cpp:
12009 (QWebView::paintEvent):
12011 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
12015 Change hoveringOverLink implementation to have less issues.
12017 * Currently we only compare a pointer. In the worst case we
12018 could delete the Element we have pointed to and a new one
12019 gets the same address. But even if that doesn't happen the
12020 WebCore::Element is mutable and JavaScript could change the
12021 URL, Title or Content. So we have to compare all these three
12023 * This does not seem to be a performance impact.
12026 * Api/qwebpage.cpp:
12027 (QWebPagePrivate::mouseMoveEvent):
12028 * Api/qwebpage_p.h:
12030 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
12034 * Move the hoverElement from QWebFrame to QWebPage. As it is
12038 * Api/qwebframe_p.h:
12039 (QWebFramePrivate::QWebFramePrivate):
12040 * Api/qwebpage.cpp:
12041 (QWebPagePrivate::mouseMoveEvent):
12042 * Api/qwebpage_p.h:
12044 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
12048 EventHandler changes/fixes in QWebPage:
12049 -mouse{Press,Move,Release}Event:
12050 Send the event always to the mainFrame of the QWebPage.
12052 -contextMenuEvent, key{Press,Release}Event:
12053 Send the event to the focused frame.
12055 This is following the Windows port and fixes a issue with the
12056 Web Inspector where we were sending the events to a wrong frame.
12058 It is guaranteed that the mainFrame will always have an eventHandler
12059 and frameView set. There is no need to check for this in QWebPage.
12062 * Api/qwebframe.cpp:
12063 (QWebFramePrivate::init):
12064 * Api/qwebframe_p.h:
12065 (QWebFramePrivate::QWebFramePrivate):
12066 * Api/qwebpage.cpp:
12067 (QWebPagePrivate::updateEditorActions):
12068 (QWebPagePrivate::mouseMoveEvent):
12069 (QWebPagePrivate::mousePressEvent):
12070 (QWebPagePrivate::mouseDoubleClickEvent):
12071 (QWebPagePrivate::mouseReleaseEvent):
12072 (QWebPagePrivate::contextMenuEvent):
12073 (QWebPagePrivate::wheelEvent):
12074 (QWebPagePrivate::keyPressEvent):
12075 (QWebPagePrivate::keyReleaseEvent):
12076 (QWebPagePrivate::focusInEvent):
12077 * Api/qwebpage_p.h:
12079 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
12083 * Add core and kit functions to QWebFramePrivate to convert from
12084 QWebFrame to WebCore::Frame and vice versa.
12087 * Api/qwebframe.cpp:
12088 (QWebFramePrivate::core):
12089 (QWebFramePrivate::kit):
12091 * Api/qwebframe_p.h:
12093 2008-01-16 Lars Knoll <lars@trolltech.com>
12097 add conversion methods from and to QUrl to KURL.
12099 Use them in the places I found at the moment. Fixes a bug
12100 where form data was encoded twice.
12101 Also fix QWebSettings to take a QUrl for the user style sheet
12105 * Api/qwebframe.cpp:
12107 * Api/qwebpage.cpp:
12108 (QWebPage::createPlugin):
12109 (frameLoadRequest):
12110 (QWebPage::triggerAction):
12111 * Api/qwebsettings.cpp:
12112 (QWebSettingsPrivate::apply):
12113 * Api/qwebsettings.h:
12114 * WebCoreSupport/ChromeClientQt.cpp:
12115 (WebCore::ChromeClientQt::createWindow):
12116 (WebCore::ChromeClientQt::show):
12118 2008-01-16 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12122 * Make the InspectorClientView inherit from QWebView instead of QWidget. This
12123 way paintEvent, mouse{Press,Release}Event and other events get forwarded to
12124 the QWebPage/WebInspector automatically.
12127 * WebCoreSupport/InspectorClientQt.cpp:
12128 (WebCore::InspectorClientWebPage::createWindow):
12129 (WebCore::InspectorClientView::InspectorClientView):
12131 2008-01-10 Maciej Stachowiak <mjs@apple.com>
12135 - remove SecurityOriginData and fold its functionality into SecurityOrigin
12137 * WebCoreSupport/ChromeClientQt.cpp:
12138 (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
12139 (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
12140 * WebCoreSupport/ChromeClientQt.h:
12142 2008-01-10 Lars Knoll <lars@trolltech.com>
12146 document QWebHistory
12149 * Api/qwebhistory.cpp:
12150 (QWebHistoryItem::QWebHistoryItem):
12151 (QWebHistoryItem::operator=):
12152 (QWebHistoryItem::~QWebHistoryItem):
12153 (QWebHistoryItem::originalUrl):
12154 (QWebHistoryItem::currentUrl):
12155 (QWebHistoryItem::title):
12156 (QWebHistoryItem::icon):
12157 (QWebHistory::canGoBack):
12158 (QWebHistory::canGoForward):
12159 (QWebHistory::goBack):
12160 (QWebHistory::goForward):
12161 (QWebHistory::goToItem):
12162 * Api/qwebhistory.h:
12164 2008-01-10 Simon Hausmann <hausmann@webkit.org>
12168 Make the reset() functions not do anything on the default QWebSettings object.
12171 * Api/qwebsettings.cpp:
12172 (QWebSettings::resetFontSize):
12173 (QWebSettings::resetFontFamily):
12174 (QWebSettings::clearAttribute):
12176 2008-01-10 Lars Knoll <lars@trolltech.com>
12180 rename QWebPageHistory to QWebHistory.
12183 * Api/qwebhistory.cpp: Added.
12184 (QWebHistoryItem::QWebHistoryItem):
12185 (QWebHistoryItem::operator=):
12186 (QWebHistoryItem::~QWebHistoryItem):
12187 (QWebHistoryItem::originalUrl):
12188 (QWebHistoryItem::currentUrl):
12189 (QWebHistoryItem::title):
12190 (QWebHistoryItem::lastVisited):
12191 (QWebHistoryItem::icon):
12192 (QWebHistory::QWebHistory):
12193 (QWebHistory::~QWebHistory):
12194 (QWebHistory::clear):
12195 (QWebHistory::items):
12196 (QWebHistory::backItems):
12197 (QWebHistory::forwardItems):
12198 (QWebHistory::canGoBack):
12199 (QWebHistory::canGoForward):
12200 (QWebHistory::goBack):
12201 (QWebHistory::goForward):
12202 (QWebHistory::goToItem):
12203 (QWebHistory::backItem):
12204 (QWebHistory::currentItem):
12205 (QWebHistory::forwardItem):
12206 (QWebHistory::itemAtIndex):
12207 * Api/qwebhistory.h: Added.
12208 * Api/qwebhistory_p.h: Added.
12209 (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
12210 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
12211 (QWebHistoryPrivate::QWebHistoryPrivate):
12212 (QWebHistoryPrivate::~QWebHistoryPrivate):
12213 * Api/qwebpage.cpp:
12214 (QWebPagePrivate::QWebPagePrivate):
12216 * Api/qwebpage_p.h:
12217 * Api/qwebpagehistory.cpp: Removed.
12218 * Api/qwebpagehistory.h: Removed.
12219 * Api/qwebpagehistory_p.h: Removed.
12220 * Api/qwebview.cpp:
12223 2008-01-10 Simon Hausmann <hausmann@webkit.org>
12227 Documentation for QWebSettings
12230 * Api/qwebsettings.cpp:
12231 (QWebSettings::~QWebSettings):
12232 (QWebSettings::setFontSize):
12233 (QWebSettings::resetFontSize):
12234 (QWebSettings::setUserStyleSheetLocation):
12235 (QWebSettings::userStyleSheetLocation):
12236 (QWebSettings::iconDatabaseEnabled):
12237 (QWebSettings::webGraphic):
12238 (QWebSettings::setFontFamily):
12239 (QWebSettings::resetFontFamily):
12240 (QWebSettings::setAttribute):
12242 2008-01-10 Lars Knoll <lars@trolltech.com>
12246 Document QWebHistoryInterface.
12249 * Api/qwebhistoryinterface.cpp:
12250 (QWebHistoryInterface::defaultInterface):
12251 (QWebHistoryInterface::~QWebHistoryInterface):
12253 2008-01-10 Lars Knoll <lars@trolltech.com>
12257 Documentation for QWebFrame.
12260 * Api/qwebframe.cpp:
12264 (QWebFrame::setHtml):
12265 (QWebFrame::parentFrame):
12266 (QWebFrame::render):
12268 (QWebFrame::geometry):
12270 * Api/qwebframe_p.h:
12272 2008-01-10 Lars Knoll <lars@trolltech.com>
12276 fix the drawing errors that where introduced due to refactoring.
12278 Correctly clip to the rectangle we want to draw in ScrollView::paint().
12281 * Api/qwebframe.cpp:
12282 (QWebFrame::render):
12284 * Api/qwebview.cpp:
12285 (QWebView::paintEvent):
12286 * WebCoreSupport/ChromeClientQt.cpp:
12287 (WebCore::ChromeClientQt::scrollBackingStore):
12289 2008-01-10 Simon Hausmann <hausmann@webkit.org>
12293 Added a whole bunch of docs for QWebPage and fixed some minor doc glitches in QWebView.
12296 * Api/qwebpage.cpp:
12297 (QWebPagePrivate::dropEvent):
12298 (QWebPage::QWebPage):
12299 (QWebPage::~QWebPage):
12300 (QWebPage::mainFrame):
12301 (QWebPage::currentFrame):
12302 (QWebPage::history):
12303 (QWebPage::setView):
12305 (QWebPage::javaScriptConsoleMessage):
12306 (QWebPage::javaScriptAlert):
12307 (QWebPage::javaScriptConfirm):
12308 (QWebPage::javaScriptPrompt):
12309 (QWebPage::createWindow):
12310 (QWebPage::createModalDialog):
12312 (QWebPage::triggerAction):
12313 (QWebPage::viewportSize):
12314 (QWebPage::navigationRequested):
12315 (QWebPage::selectedText):
12316 (QWebPage::isModified):
12317 (QWebPage::focusNextPrevChild):
12318 (QWebPage::settings):
12319 (QWebPage::networkProxy):
12320 (QWebPage::setNetworkAccessManager):
12321 (QWebPage::networkAccessManager):
12322 (QWebPagePrivate::_q_onLoadProgressChanged):
12323 * Api/qwebview.cpp:
12325 2008-01-07 Holger Freyther <zecke@selfish.org>
12327 Reviewed by Alp Toker.
12329 * Qt and Gtk must know if a ContextMenuItem is checkable. Add a new ContextMenuItemType for checkable
12331 * Use this information in the Gtk platform to create a GtkCheckMenuItem when needed.
12332 * Update the ContextMenuController to accept CheckableActionTypes as well.
12333 * Change ContextMenu.cpp to use the CheckableActionType. The information if a item is checkable
12334 was extracted from ContextMenu::checkOrEnableIfNeeded.
12335 * Update the Qt and Windows port.
12337 * Api/qwebpage.cpp:
12338 (QWebPagePrivate::createContextMenu):
12340 2008-01-07 Simon Hausmann <hausmann@webkit.org>
12342 Build fix for the Windows build. MSVC wants to see the full
12343 declaration of arguments even when just passing them through.
12345 * Api/qwebpage.cpp:
12347 2008-01-07 Simon Hausmann <hausmann@webkit.org>
12351 Added the missing parameters to make it possible to do POST operations from the public API.
12353 This is ugly though as it also requires including qnetworkaccessmanager.h. It would be nicer if the
12354 two extra arguments were in QNetworkRequest :-/
12357 * Api/qwebframe.cpp:
12360 * Api/qwebview.cpp:
12364 2008-01-07 Simon Hausmann <hausmann@webkit.org>
12368 Ported of the network backend of the Qt platform to Qt 4.4's new networking API.
12371 * Api/qwebframe.cpp:
12374 * Api/qwebnetworkinterface.cpp:
12375 * Api/qwebnetworkinterface.h:
12376 * Api/qwebnetworkinterface_p.h:
12377 * Api/qwebobjectplugin.cpp:
12378 * Api/qwebobjectplugin.h:
12379 * Api/qwebobjectplugin_p.h:
12380 * Api/qwebobjectpluginconnector.cpp:
12381 * Api/qwebobjectpluginconnector.h:
12382 * Api/qwebpage.cpp:
12383 (QWebPagePrivate::QWebPagePrivate):
12384 (QWebPagePrivate::~QWebPagePrivate):
12385 (QWebPagePrivate::navigationRequested):
12386 (QWebPage::setNetworkInterface):
12387 (QWebPage::networkInterface):
12388 (QWebPage::setNetworkAccessManager):
12389 (QWebPage::networkAccessManager):
12391 * Api/qwebpage_p.h:
12392 * Api/qwebview.cpp:
12394 * WebCoreSupport/FrameLoaderClientQt.cpp:
12395 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
12396 (WebCore::FrameLoaderClientQt::objectContentType):
12397 (WebCore::FrameLoaderClientQt::createPlugin):
12399 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12403 * Move the QWebPagePrivate methods up to the other private ones
12405 * Api/qwebpage.cpp:
12406 (dropActionToDragOp):
12407 (dragOpToDropAction):
12408 (QWebPagePrivate::mouseMoveEvent):
12409 (QWebPagePrivate::mousePressEvent):
12410 (QWebPagePrivate::mouseDoubleClickEvent):
12411 (QWebPagePrivate::mouseReleaseEvent):
12412 (QWebPagePrivate::contextMenuEvent):
12413 (QWebPagePrivate::wheelEvent):
12414 (QWebPagePrivate::keyPressEvent):
12415 (QWebPagePrivate::keyReleaseEvent):
12416 (QWebPagePrivate::focusInEvent):
12417 (QWebPagePrivate::focusOutEvent):
12418 (QWebPagePrivate::dragEnterEvent):
12419 (QWebPagePrivate::dragLeaveEvent):
12420 (QWebPagePrivate::dragMoveEvent):
12421 (QWebPagePrivate::dropEvent):
12422 (QWebPage::focusNextPrevChild):
12424 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12428 * Add reimplemented comments for the methods reimplemented in QWebView and QWebPage.
12431 * Api/qwebpage.cpp:
12432 (dragOpToDropAction):
12433 * Api/qwebview.cpp:
12434 (QWebView::mouseMoveEvent):
12435 (QWebView::mousePressEvent):
12436 (QWebView::mouseDoubleClickEvent):
12437 (QWebView::mouseReleaseEvent):
12438 (QWebView::contextMenuEvent):
12439 (QWebView::keyPressEvent):
12440 (QWebView::keyReleaseEvent):
12441 (QWebView::focusInEvent):
12442 (QWebView::focusOutEvent):
12443 (QWebView::dragEnterEvent):
12444 (QWebView::dragLeaveEvent):
12445 (QWebView::dragMoveEvent):
12446 (QWebView::dropEvent):
12448 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12452 * This layout is not needed anymore as Widget::invalidateRect will not
12456 * Api/qwebview.cpp:
12457 (QWebView::paintEvent):
12459 2008-01-04 Lars Knoll <lars@trolltech.com>
12463 Remove most dependencies of Widget/ScrollView onto native QWidgets.
12465 This also brings the code closer in line with the Windows code. Seems
12466 to work nicely on first try :)
12469 * WebCoreSupport/ChromeClientQt.cpp:
12470 (WebCore::ChromeClientQt::updateBackingStore):
12471 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
12472 (WebCore::ChromeClientQt::setToolTip):
12473 * WebCoreSupport/FrameLoaderClientQt.cpp:
12474 (WebCore::FrameLoaderClientQt::createPlugin):
12476 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12480 * Remove the todo from QWebPage and move the code to QWebView.
12483 * Api/qwebpage.cpp:
12484 (QWebPagePrivate::wheelEvent):
12485 (QWebPagePrivate::focusInEvent):
12486 * Api/qwebview.cpp:
12487 (QWebView::wheelEvent):
12488 (QWebView::focusInEvent):
12490 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12494 * Move the various event methods to QWebPagePrivate. This is similar to
12495 QTextControl as well.
12498 * Api/qwebpage.cpp:
12500 (QWebPagePrivate::mouseMoveEvent):
12501 (QWebPagePrivate::mousePressEvent):
12502 (QWebPagePrivate::mouseDoubleClickEvent):
12503 (QWebPagePrivate::mouseReleaseEvent):
12504 (QWebPagePrivate::contextMenuEvent):
12505 (QWebPagePrivate::wheelEvent):
12506 (QWebPagePrivate::keyPressEvent):
12507 (QWebPagePrivate::keyReleaseEvent):
12508 (QWebPagePrivate::focusInEvent):
12509 (QWebPagePrivate::focusOutEvent):
12510 (QWebPage::focusNextPrevChild):
12511 (QWebPagePrivate::dragEnterEvent):
12512 (QWebPagePrivate::dragLeaveEvent):
12513 (QWebPagePrivate::dragMoveEvent):
12514 (QWebPagePrivate::dropEvent):
12516 * Api/qwebpage_p.h:
12518 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12522 * Forward the event from QWebView to QWebPage through QObject::event. This
12523 is similar to the way QTextControl is working.
12526 * Api/qwebpage.cpp:
12527 (dragOpToDropAction):
12530 * Api/qwebview.cpp:
12531 (QWebView::mouseMoveEvent):
12532 (QWebView::mousePressEvent):
12533 (QWebView::mouseDoubleClickEvent):
12534 (QWebView::mouseReleaseEvent):
12535 (QWebView::contextMenuEvent):
12536 (QWebView::wheelEvent):
12537 (QWebView::keyPressEvent):
12538 (QWebView::keyReleaseEvent):
12539 (QWebView::focusInEvent):
12540 (QWebView::focusOutEvent):
12541 (QWebView::dragEnterEvent):
12542 (QWebView::dragLeaveEvent):
12543 (QWebView::dragMoveEvent):
12544 (QWebView::dropEvent):
12547 2008-01-04 Lars Knoll <lars@trolltech.com>
12551 make QWebPage a QObject and get things to compile.
12553 Nothing works currently though.
12556 * Api/qwebobjectpluginconnector.cpp:
12557 * Api/qwebpage.cpp:
12558 (QWebPagePrivate::QWebPagePrivate):
12559 (QWebPagePrivate::createMainFrame):
12560 (QWebPage::QWebPage):
12561 (QWebPage::setView):
12563 (QWebPage::javaScriptAlert):
12564 (QWebPage::javaScriptPrompt):
12565 (dragOpToDropAction):
12566 (QWebPage::mousePressEvent):
12567 (QWebPage::mouseDoubleClickEvent):
12568 (QWebPage::mouseReleaseEvent):
12569 (QWebPage::wheelEvent):
12570 (QWebPage::keyPressEvent):
12571 (QWebPage::focusInEvent):
12573 * Api/qwebpage_p.h:
12574 * Api/qwebview.cpp:
12575 (QWebView::QWebView):
12576 (QWebView::setPage):
12577 (QWebView::resizeEvent):
12578 (QWebView::paintEvent):
12580 * WebCoreSupport/ChromeClientQt.cpp:
12581 (WebCore::ChromeClientQt::windowRect):
12582 (WebCore::ChromeClientQt::pageRect):
12583 (WebCore::ChromeClientQt::focus):
12584 (WebCore::ChromeClientQt::unfocus):
12585 (WebCore::ChromeClientQt::canTakeFocus):
12586 (WebCore::ChromeClientQt::takeFocus):
12587 (WebCore::ChromeClientQt::canRunModal):
12588 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
12589 * WebCoreSupport/DragClientQt.cpp:
12590 (WebCore::DragClientQt::startDrag):
12591 * WebCoreSupport/FrameLoaderClientQt.cpp:
12592 (WebCore::FrameLoaderClientQt::createPlugin):
12593 * WebCoreSupport/InspectorClientQt.cpp:
12594 (WebCore::InspectorClientWebPage::createWindow):
12595 (WebCore::InspectorClientView::InspectorClientView):
12596 (WebCore::InspectorClientView::page):
12597 (WebCore::InspectorClientView::hideEvent):
12598 (WebCore::InspectorClientView::closeEvent):
12599 (WebCore::InspectorClientQt::createPage):
12600 (WebCore::InspectorClientQt::closeWindow):
12602 2008-01-04 Simon Hausmann <hausmann@webkit.org>
12606 Added some preliminary class documentation for QWebView, fixed a missing const() and some missing Q_PROPERTYs
12609 * Api/qwebview.cpp:
12610 (QWebView::setHtml):
12611 (QWebView::setContent):
12612 (QWebView::history):
12613 (QWebView::settings):
12614 (QWebView::action):
12615 (QWebView::triggerAction):
12617 (QWebView::backward):
12618 (QWebView::forward):
12619 (QWebView::reload):
12622 2008-01-04 Lars Knoll <lars@trolltech.com>
12626 add a viewportSize to QWebPage.
12628 This is required to eventually make it a QObject only.
12631 * Api/qwebpage.cpp:
12632 (QWebPage::triggerAction):
12633 (QWebPage::viewportSize):
12634 (QWebPage::setViewportSize):
12637 2008-01-04 Lars Knoll <lars@trolltech.com>
12641 take a QString as identifier in QWebFrame::addToJSWindowObject.
12643 * Api/qwebframe.cpp:
12644 (QWebFrame::addToJSWindowObject):
12647 2008-01-04 Simon Hausmann <hausmann@webkit.org>
12651 Call the frame arguments for the javascript callbacks "originatingFrame"
12656 2008-01-04 Simon Hausmann <hausmann@webkit.org>
12660 Moved the QWebPage::addToHistory signal into QWebHistoryInterface
12663 * Api/qwebhistoryinterface.h:
12665 * WebCoreSupport/FrameLoaderClientQt.cpp:
12666 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
12668 2008-01-04 Lars Knoll <lars@trolltech.com>
12672 moved title(), url(), icon() and initialLayoutComplete() from QWebPage to QWebFrame
12674 * Api/qwebframe.cpp:
12677 (QWebFrame::setVerticalScrollBarPolicy):
12679 * Api/qwebpage.cpp:
12680 (QWebPage::javaScriptAlert):
12681 (QWebPage::javaScriptPrompt):
12682 (QWebPage::networkInterface):
12684 * Api/qwebview.cpp:
12688 * WebCoreSupport/FrameLoaderClientQt.cpp:
12690 2008-01-03 Simon Hausmann <hausmann@webkit.org>
12694 Moved QWebPage::open to QWebFrame::load and added setHtml.
12697 * Api/qwebframe.cpp:
12699 (QWebFrame::setHtml):
12700 (QWebFrame::setContent):
12702 * Api/qwebpage.cpp:
12704 * Api/qwebview.cpp:
12706 (QWebView::setHtml):
12708 * WebCoreSupport/ChromeClientQt.cpp:
12709 (WebCore::ChromeClientQt::createWindow):
12710 * WebCoreSupport/InspectorClientQt.cpp:
12711 (WebCore::InspectorClientQt::createPage):
12713 2008-01-03 Simon Hausmann <hausmann@webkit.org>
12717 Added the first revision of QWebView and started moving functionality from QWebPave over to QWebView and QWebFrame.
12722 * Api/qwebpage.cpp:
12723 (QWebPagePrivate::createMainFrame):
12725 * Api/qwebpagehistory.h:
12726 * Api/qwebview.cpp: Added.
12727 (QWebView::QWebView):
12728 (QWebView::~QWebView):
12730 (QWebView::setPage):
12732 (QWebView::setHtml):
12733 (QWebView::history):
12734 (QWebView::settings):
12738 (QWebView::selectedText):
12739 (QWebView::action):
12740 (QWebView::triggerAction):
12741 (QWebView::isModified):
12742 (QWebView::textInteractionFlags):
12743 (QWebView::setTextInteractionFlags):
12744 (QWebView::sizeHint):
12746 (QWebView::backward):
12747 (QWebView::forward):
12748 (QWebView::reload):
12749 * Api/qwebview.h: Added.
12750 * QtLauncher/main.cpp:
12751 (MainWindow::MainWindow):
12752 (MainWindow::webPage):
12753 (MainWindow::changeLocation):
12754 * WebCoreSupport/FrameLoaderClientQt.cpp:
12755 (WebCore::FrameLoaderClientQt::setFrame):
12756 * WebCoreSupport/FrameLoaderClientQt.h:
12758 2007-12-14 Darin Adler <darin@apple.com>
12760 Reviewed by Alexey.
12762 * Api/qwebpage.cpp:
12763 (QWebPage::triggerAction): Removed some use of Editor member functions we plan
12764 to eventually eliminate. Switch from Editor::execCommand to Editor::command.
12765 * WebCoreSupport/EditorClientQt.cpp:
12766 (WebCore::EditorClientQt::handleKeyboardEvent): Ditto. Also updated name from
12767 MoveUpByPageAndModifyCaret to MovePageUp and from MoveDownByPageAndModifyCaret
12770 2007-12-12 Brady Eidson <beidson@apple.com>
12772 Reviewed by Sam Weinig
12774 As part of doing some CachedPage and client cleanup, keep Qt building
12776 * WebCoreSupport/FrameLoaderClientQt.cpp:
12777 (WebCore::FrameLoaderClientQt::savePlatformDataToCachedPage):
12778 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
12779 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
12780 * WebCoreSupport/FrameLoaderClientQt.h:
12782 2007-12-12 Sam Weinig <sam@webkit.org>
12786 * WebCoreSupport/FrameLoaderClientQt.cpp:
12787 (WebCore::FrameLoaderClientQt::userAgent):
12789 2007-12-12 Sam Weinig <sam@webkit.org>
12793 * Api/qwebnetworkinterface.cpp:
12794 (QWebNetworkRequestPrivate::init):
12795 * Api/qwebpage.cpp:
12797 (QWebPageContext::QWebPageContext):
12798 * Api/qwebpagehistory.cpp:
12799 (QWebHistoryItem::originalUrl):
12800 (QWebHistoryItem::currentUrl):
12801 * WebCoreSupport/FrameLoaderClientQt.cpp:
12802 (WebCore::FrameLoaderClientQt::cannotShowURLError):
12803 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
12804 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
12805 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
12806 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
12807 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
12808 (WebCore::FrameLoaderClientQt::createPlugin):
12810 2007-12-07 Alexey Proskuryakov <ap@webkit.org>
12812 Reviewed by Darin Adler.
12814 <rdar://problem/5535636>
12815 Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
12817 http://bugs.webkit.org/show_bug.cgi?id=13916
12818 JavaScript detects Tab as a character input on a textfield validation
12820 * WebCoreSupport/EditorClientQt.cpp:
12821 (WebCore::EditorClientQt::handleKeyboardEvent):
12822 (WebCore::EditorClientQt::handleInputMethodKeydown):
12823 * WebCoreSupport/EditorClientQt.h:
12824 Updated for cross-platform changes as much as it was possible without a Qt build environment.
12826 2007-12-07 Darin Adler <darin@apple.com>
12830 * Api/qwebhistoryinterface.cpp:
12831 (WebCore::historyContains): There's a WebCore function here in WebKit! Needs to
12832 be updated, since WebCore changed, but this should not be here.
12834 2007-12-04 Darin Adler <darin@apple.com>
12836 Reviewed by Kevin Decker.
12838 * WebCoreSupport/FrameLoaderClientQt.cpp: Removed obsolete privateBrowsingEnabled.
12839 * WebCoreSupport/FrameLoaderClientQt.h: Ditto.
12841 2007-12-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12845 * Implement the InspectorClient for the Qt port
12846 * It does not support highlighting of nodes yet
12847 * Use QRC to open the internal page. The important thing is the
12848 '/' in the URL to make WebCore::Document::completeURL behave the
12850 * To make the InspectorClient work we will have to mark qrc as secure.
12852 * Api/qwebpage.cpp:
12853 (QWebPagePrivate::QWebPagePrivate):
12855 * WebCoreSupport/InspectorClientQt.cpp:
12856 (WebCore::InspectorClientWebPage::hideEvent):
12857 (WebCore::InspectorClientQt::InspectorClientQt):
12858 (WebCore::InspectorClientQt::inspectorDestroyed):
12859 (WebCore::InspectorClientQt::createPage):
12860 (WebCore::InspectorClientQt::localizedStringsURL):
12861 (WebCore::InspectorClientQt::showWindow):
12862 (WebCore::InspectorClientQt::closeWindow):
12863 (WebCore::InspectorClientQt::attachWindow):
12864 (WebCore::InspectorClientQt::detachWindow):
12865 * WebCoreSupport/InspectorClientQt.h:
12867 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12869 Rubber stamped by Mark.
12871 Always include config.h at the beginning of the file.
12873 * Api/qwebsettings.cpp:
12875 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12879 * Avoid crashes by making sure everything is layouted before
12880 we start painting. This avoids a crash in Widget::invalidateRect
12881 because QPainter::begin would fail
12882 * The QWebFrame::layout() methods and calls are left untouched because
12883 this would be an API decision.
12886 * Api/qwebframe.cpp:
12887 (QWebFrame::layout):
12888 * Api/qwebpage.cpp:
12889 (QWebPage::paintEvent):
12891 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12895 * SubClass QWebPage to handle hide and close events.
12896 * Forward these events to the InspectorController
12897 * The other options would have been using an eventFilter
12898 on the webpage and making InspectorClient a QObject or
12899 creating a QObject Observer.
12900 * Provide a simple QWebPage* createWindow implementation. This is needed
12901 to make FrameLoaderClientQt::dispatchCreatePage stop crashing in the case
12902 of the inspector client.
12905 * WebCoreSupport/InspectorClientQt.cpp:
12906 (WebCore::InspectorClientWebPage::InspectorClientWebPage):
12907 (WebCore::InspectorClientWebPage::createWindow):
12908 (WebCore::InspectorClientWebPage::hideEvent):
12909 (WebCore::InspectorClientWebPage::closeEvent):
12910 (WebCore::InspectorClientQt::createPage):
12912 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12916 * Allow adding the Inspect ContextMenuItem to our Menu
12917 * Open the Inspector when Inspect was activated. This requires
12918 that we keep the innerNonSharedNode from the HitTest around. This
12919 forces us to include <wtf/RefPtr.h> in the private header. It is
12920 the first non Qt header but should be okay.
12923 * Api/qwebpage.cpp:
12924 (webActionForContextMenuAction):
12925 (QWebPage::triggerAction):
12926 (QWebPage::action):
12927 (QWebPageContext::QWebPageContext):
12929 * Api/qwebpage_p.h:
12931 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12935 * Add the Developer Extras to the WebAttribute and propagate it
12936 to WebCore::Settings. This will enable the Inspect Element menu item
12937 * CodingStyle fixes in QWebSettings
12938 * Enable the Developer Extras in the QtLauncher
12941 * Api/qwebsettings.cpp:
12942 (QWebSettingsPrivate::apply):
12943 * Api/qwebsettings.h:
12944 * QtLauncher/main.cpp:
12947 2007-12-03 Geoffrey Garen <ggaren@apple.com>
12949 Removed unnecessary and possibly incorrect #include from my last
12952 * Api/qwebframe.cpp:
12954 2007-12-03 Geoffrey Garen <ggaren@apple.com>
12956 Qt build fix: Get globalExec() from the right place.
12958 2007-11-30 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
12962 * Self destruct the clients like the ohter ports do
12965 * WebCoreSupport/ChromeClientQt.cpp:
12966 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
12967 * WebCoreSupport/ContextMenuClientQt.cpp:
12968 * WebCoreSupport/DragClientQt.cpp:
12969 * WebCoreSupport/EditorClientQt.cpp:
12970 * WebCoreSupport/InspectorClientQt.cpp:
12972 2007-11-29 Brady Eidson <beidson@apple.com>
12974 Keep it building with new client method
12976 * WebCoreSupport/ChromeClientQt.cpp:
12977 (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
12978 (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
12979 * WebCoreSupport/ChromeClientQt.h:
12981 2007-11-22 Simon Hausmann <hausmann@webkit.org>
12983 Reviewed by Adam Treat.
12985 Fix compilation (don't define notImplemented twice)
12987 * Api/qwebnetworkinterface.cpp:
12989 2007-11-22 Simon Hausmann <hausmann@kde.org>
12991 Reviewed by George.
12993 Use Q_SIGNALS/Q_SLOTS in the public API
12998 2007-11-22 Simon Hausmann <hausmann@kde.org>
13000 Reviewed by George.
13002 Fixed the signature of the QWebPage constructor to follow Qt guidelines.
13006 2007-11-22 Simon Hausmann <hausmann@kde.org>
13008 Reviewed by George.
13010 Use <QtModule/headerfile.h> instead of <Classname> in public HEADER files, to not require the include paths for the other modules to be present
13012 * Api/qcookiejar.h:
13014 * Api/qwebhistoryinterface.h:
13015 * Api/qwebnetworkinterface.h:
13016 * Api/qwebobjectplugin.h:
13017 * Api/qwebobjectplugin_p.h:
13018 * Api/qwebobjectpluginconnector.h:
13020 * Api/qwebpagehistory.h:
13021 * Api/qwebsettings.h:
13023 2007-11-22 Simon Hausmann <hausmann@kde.org>
13025 Reviewed by George.
13027 Removed inline copy of QExplicitlySharedDataPointer. This is not needed anymore since we require Qt >= 4.3.0.
13029 * Api/qwebpagehistory.h:
13031 2007-11-22 George Staikos <staikos@kde.org>
13033 Reviewed by Simon Hausmann <hausmann@kde.org>.
13035 Fix license headers
13038 * Api/qwebobjectplugin.cpp:
13039 * Api/qwebobjectplugin.h:
13040 * Api/qwebobjectpluginconnector.cpp:
13041 * Api/qwebobjectpluginconnector.h:
13043 2007-11-22 Simon Hausmann <hausmann@kde.org>
13045 Reviewed by George Staikos <staikos@kde.org>.
13047 Fix shadowing of "page" variable that is passed as argument as well as a member variable.
13049 This also fixes compilation with gcc 4.3.
13052 * Api/qwebframe.cpp:
13053 (QWebFramePrivate::init):
13055 2007-11-21 Adam Treat <adam.treat@torchmobile.com>
13059 * Connect up the signal for all subframes too.
13061 * Api/qwebframe.cpp:
13062 (QWebFramePrivate::init):
13063 * Api/qwebpage.cpp:
13064 (QWebPagePrivate::createMainFrame):
13066 2007-11-20 Simon Hausmann <hausmann@kde.org>
13068 Reviewed by Adam Treat <adam.treat@torchmobile.com>.
13070 Remove static linkage of QtWebKit against the ICO image format plugin.
13072 Instead build the support for the ICO image format as a proper standalone qt image format plugin and install it.
13075 * Plugins/Plugins.pro:
13077 2007-11-20 Simon Hausmann <hausmann@kde.org>
13079 Reviewed by George Staikos <staikos@kde.org>.
13081 Added a default argument to textContent for the hoveringOverLink signal to keep existing two-argument connections working
13086 2007-11-20 George Staikos <staikos@kde.org>
13088 Reviewed by Simon Hausmann <hausmann@kde.org>.
13090 Add an argument to pass the link text in the hovering signal
13094 * Api/qwebpage.cpp:
13095 (QWebPagePrivate::createMainFrame):
13096 (QWebPage::mouseMoveEvent):
13099 2007-11-20 Adam Treat <adam.treat@torchmobile.com>
13101 Reviewed by Simon and George.
13103 * Be quiet and allow suppression of NotImplemented calls at runtime.
13105 * WebCoreSupport/FrameLoaderClientQt.cpp:
13106 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
13108 2007-11-19 Adam Treat <adam.treat@torchmobile.com>
13112 * Don't segfault when event pos is outside of the widget.
13114 * Api/qwebpage.cpp:
13115 (QWebPage::mouseMoveEvent):
13116 (QWebPage::mousePressEvent):
13117 (QWebPage::mouseDoubleClickEvent):
13118 (QWebPage::mouseReleaseEvent):
13119 (QWebPage::contextMenuEvent):
13121 2007-11-17 Timothy Hatcher <timothy@apple.com>
13123 Reviewed by Mark Rowe.
13125 Bug 13470: i18n: The Web Inspector is not localizable
13126 http://bugs.webkit.org/show_bug.cgi?id=13470
13128 * WebCoreSupport/InspectorClientQt.cpp:
13129 (WebCore::InspectorClientQt::localizedStringsURL): Empty stub.
13130 * WebCoreSupport/InspectorClientQt.h: Added localizedStringsURL.
13132 2007-11-13 Geoffrey Garen <ggaren@apple.com>
13134 Build fix: changed Shared to RefCounted.
13136 * WebCoreSupport/ChromeClientQt.h:
13137 * WebCoreSupport/ContextMenuClientQt.cpp:
13138 * WebCoreSupport/ContextMenuClientQt.h:
13139 * WebCoreSupport/EditorClientQt.h:
13140 * WebCoreSupport/FrameLoaderClientQt.h:
13142 2007-11-10 Simon Hausmann <hausmann@kde.org>
13144 Reviewed by Nikolas.
13146 When populating the context menu with sub-menus don't add sub-menus if they're empty.
13149 * Api/qwebpage.cpp:
13150 (QWebPagePrivate::createContextMenu):
13152 2007-11-10 Simon Hausmann <hausmann@kde.org>
13154 Reviewed by Nikolas.
13156 Added support for the Bold/Italic/Underline toggle actions.
13159 * Api/qwebpage.cpp:
13160 (webActionForContextMenuAction):
13161 (QWebPage::triggerAction):
13162 (QWebPage::action):
13165 2007-11-10 Simon Hausmann <hausmann@kde.org>
13167 Reviewed by Nikolas.
13169 Before adding an action to the context menu call checkOrEnableIfNeeded for each action
13170 to update the enable/checked state correctly.
13173 * Api/qwebpage.cpp:
13174 (QWebPagePrivate::createContextMenu):
13175 (QWebPage::contextMenuEvent):
13176 * Api/qwebpage_p.h:
13178 2007-11-10 Simon Hausmann <hausmann@kde.org>
13180 Reviewed by Nikolas.
13182 Mark the text direction actions as checkable actions.
13185 * Api/qwebpage.cpp:
13186 (QWebPage::action):
13188 2007-11-09 Simon Hausmann <hausmann@kde.org>
13190 Reviewed by Holger.
13192 Implemented the webcore actions for changing the text direction.
13195 * Api/qwebpage.cpp:
13196 (webActionForContextMenuAction):
13197 (QWebPage::triggerAction):
13198 (QWebPage::action):
13201 2007-11-09 Simon Hausmann <hausmann@kde.org>
13203 Reviewed by Holger.
13205 Fix ContextMenu allocation in the Qt port.
13207 Store all items and submenus value based in ContextMenu and ContextMenuItem.
13208 That fixes the crashes when the context menu was populated with sub-menus because
13209 of the use of temporary ContextMenu objects like this:
13211 ContextMenu subMenu(...);
13212 subMenu.appendItem(...);
13213 subMenu.appendItem(...);
13215 subMenuItem.setSubMenu(&subMenu); // temporary pointer, need to _copy_ contents
13218 * Api/qwebpage.cpp:
13219 (QWebPage::contextMenuEvent):
13220 * Api/qwebpage_p.h:
13222 2007-11-09 Simon Hausmann <hausmann@kde.org>
13224 Reviewed by Holger.
13226 Renamed QWebPage::NumWebActions to QWebPage::WebActionCount (for consistency) and fixed its value.
13230 * Api/qwebpage_p.h:
13232 2007-11-08 Kevin McCullough <kmccullough@apple.com>
13236 - windowObjectCleared() is no longer const. It needs to setup the
13237 script debugger and cannot be const to do so.
13239 * WebCoreSupport/FrameLoaderClientQt.cpp:
13240 (WebCore::FrameLoaderClientQt::windowObjectCleared):
13241 * WebCoreSupport/FrameLoaderClientQt.h:
13243 2007-11-08 Simon Hausmann <hausmann@kde.org>
13245 Reviewed by nobody (well, Holger knows about it), build fix for Qt 4.3.
13247 The buildbots use Qt 4.4 which has the function in question, but Qt
13248 4.3 doesn't have it. Use removeAll() as replacement instead, it
13249 shouldn't make a difference in performance.
13251 * Api/qwebsettings.cpp:
13252 (QWebSettings::~QWebSettings):
13254 2007-11-08 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
13256 Reviewed by Lars Knoll <lars@trolltech.com>.
13258 Cleanup checking for the request method.
13260 * Check the request method only in QWebNetworkManager::add.
13261 * Currently HEAD, GET, POST are allowed and for everything else
13262 QWebNetworkManager::add returns false.
13263 * Returning false is compatible with ResourceHandle::start and it
13264 can be used in ResourceHandle::loadResourceSynchronously to generate
13268 * Api/qwebnetworkinterface.cpp:
13269 (QWebNetworkManager::add):
13271 2007-11-08 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
13273 Reviewed by Lars Knoll <lars@trolltech.com>.
13275 Fix bug in the implementation of synchronous network jobs.
13277 * George (pmax) reviewed the networking patches and found the following bug (thanks for reviewing)
13278 - if (jobMode == AsynchronousJob) {
13279 + if (jobMode == SynchronousJob) {
13280 add job to synchronous list/hash
13282 * Just applying the above change will lead to crashes because we can finish
13283 jobs before we started them.
13285 * Avoid these issues by saving all work (starting a job, sending data and
13286 finishing it) inside one list. JobWork will contain any
13287 of the above three work types and doWork will just work on this list
13288 (m_pendingWork). As foreach takes a copy of the list calling started, data
13289 and finished will not add new work and we gurantee that if we have JobStarted
13290 it will be in the list before JobData and JobFinished.
13292 * Observation: We might just kill the code to handle sync jobs.
13295 * Api/qwebnetworkinterface.cpp:
13296 (QWebNetworkManager::add):
13297 (QWebNetworkManager::queueStart):
13298 (QWebNetworkManager::queueData):
13299 (QWebNetworkManager::queueFinished):
13300 (QWebNetworkManager::doWork):
13301 * Api/qwebnetworkinterface_p.h:
13302 (QWebNetworkManager::JobWork::):
13303 (QWebNetworkManager::JobWork::JobWork):
13305 2007-11-07 Simon Hausmann <hausmann@kde.org>
13307 Fix the Qt build by setting up WindowFeatures before calling
13308 createWindow on the Chrome. This is similar to openNewWindow in
13309 page/ContextMenuController.cpp
13311 * Api/qwebpage.cpp:
13314 2007-11-07 Simon Hausmann <hausmann@kde.org>
13318 Make the setting of letting Javascript access the clipboard configurable through QWebSettings, turn it off by default and turn it on in DumpRenderTree.
13320 * Api/qwebpage.cpp:
13321 (QWebPagePrivate::QWebPagePrivate):
13322 * Api/qwebsettings.cpp:
13323 (QWebSettingsPrivate::apply):
13324 * Api/qwebsettings.h:
13326 2007-11-07 Simon Hausmann <hausmann@kde.org>
13330 Changed QWebPageHistory::goToItem to take a value instead of a pointer.
13332 * Api/qwebpagehistory.cpp:
13333 * Api/qwebpagehistory.h:
13335 2007-11-07 Simon Hausmann <hausmann@kde.org>
13339 Removed unimplemented QWebHistoryItem::children() function
13341 * Api/qwebpagehistory.h:
13343 2007-11-07 Simon Hausmann <hausmann@kde.org>
13347 Changed the getter functions in QWebSettings to transparently resolve against the default settings.
13349 * Api/qwebsettings.cpp:
13350 (QWebSettings::fontSize):
13351 (QWebSettings::fontFamily):
13352 (QWebSettings::testAttribute):
13354 2007-11-07 Simon Hausmann <hausmann@kde.org>
13358 Added explicit functions for resetting the font sizes and font families.
13360 * Api/qwebsettings.cpp:
13361 (QWebSettings::resetFontSize):
13362 (QWebSettings::resetFontFamily):
13363 * Api/qwebsettings.h:
13365 2007-11-07 Simon Hausmann <hausmann@kde.org>
13369 Combined the font sizes accessors/setters under one setter/getter with an enum.
13371 * Api/qwebsettings.cpp:
13372 (QWebSettingsPrivate::QWebSettingsPrivate):
13373 (QWebSettingsPrivate::apply):
13374 (QWebSettings::QWebSettings):
13375 (QWebSettings::setFontSize):
13376 * Api/qwebsettings.h:
13378 2007-11-07 Simon Hausmann <hausmann@kde.org>
13382 Renamed QWebPage::userAgentStringForUrl(url) to QWebPage::userAgentFor(url);
13384 * Api/qwebpage.cpp:
13386 * WebCoreSupport/FrameLoaderClientQt.cpp:
13387 (WebCore::FrameLoaderClientQt::userAgent):
13389 2007-11-07 Simon Hausmann <hausmann@kde.org>
13393 Renamed QWebPage::webActionTriggered to QWebPage::triggerAction
13395 * Api/qwebpage.cpp:
13396 (QWebPagePrivate::_q_webActionTriggered):
13397 (QWebPage::keyPressEvent):
13400 2007-11-07 Simon Hausmann <hausmann@kde.org>
13404 Changed the virtual QWebPage::setWindowGeometry to be a geometryChangeRequest signal instead.
13406 * Api/qwebpage.cpp:
13408 * WebCoreSupport/ChromeClientQt.cpp:
13409 (WebCore::ChromeClientQt::setWindowRect):
13411 2007-11-07 Simon Hausmann <hausmann@kde.org>
13415 Renamed QWebPage::webAction() to QWebPage::action()
13417 * Api/qwebpage.cpp:
13418 (QWebPagePrivate::createContextMenu):
13420 * QtLauncher/main.cpp:
13421 (MainWindow::MainWindow):
13423 2007-11-07 Simon Hausmann <hausmann@kde.org>
13427 Removed a bunch of slots/functions that are now available through the new actions API.
13429 * Api/qwebpage.cpp:
13432 2007-11-07 Simon Hausmann <hausmann@kde.org>
13436 Added some more comments to the API after another round of API review with Lars.
13440 2007-11-07 Simon Hausmann <hausmann@kde.org>
13444 Moved QWebFrame::selectedText() to QWebPage::selectedText().
13446 The currently selected text is a property of the page as a whole.
13448 * Api/qwebframe.cpp:
13450 * Api/qwebpage.cpp:
13451 (QWebPage::selectedText):
13454 2007-11-07 Simon Hausmann <hausmann@kde.org>
13458 Implemented support for settings propagation.
13460 If an individual setting is not set in a page's QWebSettings then it is inherited from the default settings.
13462 * Api/qwebsettings.cpp:
13463 (QWebSettingsPrivate::QWebSettingsPrivate):
13464 (QWebSettingsPrivate::apply):
13465 (QWebSettings::QWebSettings):
13466 (QWebSettings::~QWebSettings):
13467 (QWebSettings::setFontFamily):
13468 * Api/qwebsettings.h:
13470 2007-11-07 Simon Hausmann <hausmann@kde.org>
13474 Reworked the QWebSettings API.
13475 QWebPage now returns a pointer to its mutable QWebSettings object and the settings of newly created QWebPageObjects are initialized from QWebSettings::defaultSettings().
13477 * Api/qwebpage.cpp:
13478 (QWebPagePrivate::QWebPagePrivate):
13479 (QWebPagePrivate::~QWebPagePrivate):
13480 (QWebPage::QWebPage):
13482 * Api/qwebpage_p.h:
13483 * Api/qwebsettings.cpp:
13484 (QWebSettingsPrivate::QWebSettingsPrivate):
13485 (QWebSettingsPrivate::apply):
13486 (QWebSettings::defaultSettings):
13487 (QWebSettings::QWebSettings):
13488 (QWebSettings::setMinimumFontSize):
13489 (QWebSettings::setMinimumLogicalFontSize):
13490 (QWebSettings::setDefaultFontSize):
13491 (QWebSettings::setDefaultFixedFontSize):
13492 (QWebSettings::setUserStyleSheetLocation):
13493 (QWebSettings::setFontFamily):
13494 (QWebSettings::fontFamily):
13495 (QWebSettings::setAttribute):
13496 * Api/qwebsettings.h:
13497 * QtLauncher/main.cpp:
13500 2007-11-07 Simon Hausmann <hausmann@kde.org>
13504 Made the QWebSettings::webGraphic functions static. The implementation was using QWebSettings::global() anyway.
13506 * Api/qwebsettings.cpp:
13507 (QWebSettings::setWebGraphic):
13508 * Api/qwebsettings.h:
13510 2007-11-07 Simon Hausmann <hausmann@kde.org>
13514 Moved the WebCore::Image specific function loadResourcePixmap from qwebsettings.cpp to ImageQt.cpp and made it static.
13516 * Api/qwebsettings.cpp:
13518 2007-11-07 Simon Hausmann <hausmann@kde.org>
13522 Changed the icondatabase accessor to be a static function because it doesn't change the QWebSettings object.
13524 * Api/qwebsettings.cpp:
13525 * Api/qwebsettings.h:
13527 2007-11-07 Simon Hausmann <hausmann@kde.org>
13531 Changed the webAction() accessor to not be a slot but just a public function.
13535 2007-11-07 Simon Hausmann <hausmann@kde.org>
13539 Implemented createWindow() in QtLauncher.
13541 * QtLauncher/main.cpp:
13542 (WebPage::WebPage):
13543 (MainWindow::MainWindow):
13544 (WebPage::createWindow):
13546 2007-11-07 Simon Hausmann <hausmann@kde.org>
13550 Implemented opening links in new windows
13552 * Api/qwebpage.cpp:
13553 (frameLoadRequest):
13555 (QWebPage::webActionTriggered):
13557 2007-11-07 Simon Hausmann <hausmann@kde.org>
13561 Added and implemented the "OpenLink" action.
13563 * Api/qwebpage.cpp:
13564 (webActionForContextMenuAction):
13565 (QWebPage::webActionTriggered):
13566 (QWebPage::webAction):
13569 2007-11-07 Simon Hausmann <hausmann@kde.org>
13573 Adjust the state of the reload action correctly.
13575 * Api/qwebpage.cpp:
13576 (QWebPagePrivate::updateAction):
13577 (QWebPagePrivate::updateNavigationActions):
13579 2007-11-07 Simon Hausmann <hausmann@kde.org>
13583 Initialize the undo/redo actions from QUndoStack. That automatically takes care of enabling/disabling them as well as the activation/trigger.
13585 * Api/qwebpage.cpp:
13586 (QWebPagePrivate::updateAction):
13587 (QWebPage::webAction):
13588 (QWebPage::undoStack):
13591 2007-11-07 Simon Hausmann <hausmann@kde.org>
13595 Added undo/redo toolbar buttons, moved the location line edit into a separate toolbar.
13597 * QtLauncher/main.cpp:
13598 (MainWindow::MainWindow):
13600 2007-11-07 Simon Hausmann <hausmann@kde.org>
13604 Update the editor actions when the selection changes.
13606 * Api/qwebpage.cpp:
13607 (QWebPagePrivate::updateAction):
13608 (QWebPagePrivate::updateEditorActions):
13609 * Api/qwebpage_p.h:
13610 * WebCoreSupport/EditorClientQt.cpp:
13611 (WebCore::EditorClientQt::respondToChangedSelection):
13613 2007-11-07 Simon Hausmann <hausmann@kde.org>
13617 Added cut/copy/paste actions to the toolbar of QtLauncher
13619 * QtLauncher/main.cpp:
13620 (MainWindow::MainWindow):
13622 2007-11-07 Simon Hausmann <hausmann@kde.org>
13626 Started working on keeping the state of the navigation actions up-to-date.
13628 * Api/qwebpage.cpp:
13629 (QWebPagePrivate::updateAction):
13630 (QWebPagePrivate::updateNavigationActions):
13631 (QWebPage::webAction):
13632 * Api/qwebpage_p.h:
13633 * WebCoreSupport/FrameLoaderClientQt.cpp:
13634 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
13635 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
13636 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
13637 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
13638 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
13640 2007-11-07 Simon Hausmann <hausmann@kde.org>
13644 Use the navigational web actions in the toolbar
13646 * QtLauncher/main.cpp:
13647 (MainWindow::MainWindow):
13649 2007-11-07 Simon Hausmann <hausmann@kde.org>
13653 Store a bunch of QActions in QWebPagePrivate, corresponding to QWebPage::WebAction.
13654 Added QWebPageContext to hold context sensitive information (for example used by the context menu).
13656 * Api/qwebpage.cpp:
13657 (QWebPagePrivate::QWebPagePrivate):
13658 (webActionForContextMenuAction):
13659 (QWebPagePrivate::createContextMenu):
13660 (QWebPagePrivate::_q_webActionTriggered):
13661 (QWebPage::webActionTriggered):
13662 (QWebPage::webAction):
13663 (QWebPage::contextMenuEvent):
13664 (QWebPageContext::QWebPageContext):
13665 (QWebPageContext::operator=):
13666 (QWebPageContext::~QWebPageContext):
13667 (QWebPageContext::pos):
13668 (QWebPageContext::text):
13669 (QWebPageContext::linkUrl):
13670 (QWebPageContext::imageUrl):
13671 (QWebPageContext::image):
13672 (QWebPageContext::targetFrame):
13674 * Api/qwebpage_p.h:
13676 2007-11-07 Simon Hausmann <hausmann@kde.org>
13680 Moved the editing actions implemented in keyPressEvent into webActionTriggered.
13682 * Api/qwebpage.cpp:
13683 (QWebPage::webActionTriggered):
13684 (QWebPage::keyPressEvent):
13687 2007-11-07 Simon Hausmann <hausmann@kde.org>
13691 Introduced a central virtual void webActionTriggered(WebAction action) method that is called from various
13692 convenience methods such as cut()/copy()/paste().
13694 * Api/qwebpage.cpp:
13695 (QWebPage::goBack):
13696 (QWebPage::webActionTriggered):
13701 2007-11-07 Simon Hausmann <hausmann@kde.org>
13705 Restructure the context menu classes for the Qt port. ContextMenu and ContextMenuItem don't store
13706 QActions/QMenus anymore but just store the action type, tag, title and optionally submenu as created
13707 in ContextMenu::populate().
13708 For the actual Qt context menu we traverse this structure after sendContextMenuEvent and create a QMenu
13709 out of it. That menu is currently not functional anymore though.
13711 * Api/qwebpage.cpp:
13712 (QWebPagePrivate::createContextMenu):
13713 (QWebPage::contextMenuEvent):
13714 * Api/qwebpage_p.h:
13716 2007-11-07 Simon Hausmann <hausmann@kde.org>
13720 Changed ContextMenu::setPlatformDescription for the Qt port to not show the qmenu right away
13721 but instead just behave as a normal setter that takes ownership of the platform menu description (the qmenu).
13722 Instead now QWebPage::contextMenuEvent() retrieves the QMenu after calling sendContextMenuEvent and calls exec()
13725 * Api/qwebpage.cpp:
13726 (QWebPage::contextMenuEvent):
13727 * WebCoreSupport/ContextMenuClientQt.cpp:
13728 (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
13730 2007-11-07 Simon Hausmann <hausmann@kde.org>
13734 Changed to PlatformMouseEvent constructor to allow construction from a QContextMenuEvent.
13735 Call sendContextMenuEvent on the event handler from a QWidget::contextMenuEvent re-implementation instead of in mousePressEvent.
13737 * Api/qwebpage.cpp:
13738 (QWebPage::mousePressEvent):
13739 (QWebPage::contextMenuEvent):
13742 2007-11-07 Simon Hausmann <hausmann@kde.org>
13746 Turned onLoadProgressChanged into a real private slot.
13748 * Api/qwebpage.cpp:
13749 (QWebPage::QWebPage):
13751 * Api/qwebpage_p.h:
13753 2007-11-07 Simon Hausmann <hausmann@kde.org>
13757 Make QWebHistory an explicitly shared object, returned as a pointer by QWebPage::history().
13759 * Api/qwebpage.cpp:
13760 (QWebPagePrivate::QWebPagePrivate):
13762 * Api/qwebpage_p.h:
13763 * Api/qwebpagehistory.cpp:
13764 (QWebPageHistory::QWebPageHistory):
13765 * Api/qwebpagehistory.h:
13767 2007-11-07 Lars Knoll <lars@trolltech.com>
13771 comments on API changes that we'd like to do.
13775 2007-11-07 Simon Hausmann <hausmann@kde.org>
13777 Reviewed by Lars Knoll <lars@trolltech.com>.
13779 Add a QWebPage::frameCreated() signal and fix DRT
13781 The removal of createFrame in QWebPage broke the re-implementation
13782 in DumpRenderTree. Instead emit a frameCreated() signal and
13783 connect to it in DumpRenderTree.
13786 * Api/qwebpage.cpp:
13787 (QWebPagePrivate::createMainFrame):
13789 * WebCoreSupport/FrameLoaderClientQt.cpp:
13790 (WebCore::FrameLoaderClientQt::createFrame):
13792 2007-11-07 Lars Knoll <lars@trolltech.com>
13796 Remove QWebPage::createFrame()
13798 now that QWebFrame doesn't have virtual methods anymore, there
13799 is no need for a createFrame() factory method in QWebpage.
13801 * Api/qwebpage.cpp:
13802 (QWebPagePrivate::createMainFrame):
13804 * WebCoreSupport/FrameLoaderClientQt.cpp:
13805 (WebCore::FrameLoaderClientQt::createFrame):
13807 2007-11-07 Simon Hausmann <hausmann@kde.org>
13809 Reviewed by Lars Knoll <lars@trolltech.com>.
13811 Moved all the event handlers from QWebFrame into QWebPage.
13813 This cleans up the public API and allows us to remove the
13814 HackWebFrame hack in DumpRenderTree.
13817 * Api/qwebframe.cpp:
13820 * Api/qwebframe_p.h:
13821 * Api/qwebpage.cpp:
13822 (QWebPagePrivate::frameAt):
13823 (QWebPage::mouseMoveEvent):
13824 (QWebPage::mousePressEvent):
13825 (QWebPage::mouseDoubleClickEvent):
13826 (QWebPage::mouseReleaseEvent):
13827 (QWebPage::wheelEvent):
13828 * Api/qwebpage_p.h:
13830 2007-11-07 Holger Freyther <holger.freyther@trolltech.com>
13832 Reviewed by Lars Knoll <lars@trolltech.com>.
13834 Use correct UserAgent string.
13836 * Only have one User Agent String and this place is QWebPage
13837 * QWebPage::open -> QWebNetworkRequest -> QWebPage::open ->
13838 ResourceRequest -> FrameLoader::load -> QWebNetworkRequest
13839 * ResourceRequest is != 0 when getting called from WebCore, we
13840 will only do requests when coming from WebCore and then we can
13841 use the User-Agent set with the help of the FrameLoaderClient
13842 * We might want to change QWebNetworkRequest a bit
13845 * Api/qwebnetworkinterface.cpp:
13846 (QWebNetworkRequestPrivate::init):
13848 2007-11-07 Lars Knoll <lars@trolltech.com>
13852 remove two notImplemented() warnings, as I believe we don't
13853 have to implement these methods. Add some (commented out)
13854 debug code in one place.
13856 * WebCoreSupport/EditorClientQt.cpp:
13857 (WebCore::EditorClientQt::respondToChangedSelection):
13858 (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
13860 2007-11-05 Tristan O'Tierney <tristan@apple.com>
13862 Reviewed by Darin Adler.
13864 * WebCoreSupport/ChromeClientQt.cpp:
13865 (WebCore::ChromeClientQt::createWindow):
13866 * WebCoreSupport/ChromeClientQt.h:
13867 Revised to use new WebCore ChromeClient createWindow API.
13869 2007-10-31 Lars Knoll <lars@trolltech.com>
13873 fix most of the issues I found with Clipboard and DnD.
13875 * Api/qwebpage.cpp:
13876 (QWebPage::dragLeaveEvent):
13878 2007-10-31 Lars Knoll <lars@trolltech.com>
13882 QDrag objects need to be created on the heap.
13884 * WebCoreSupport/DragClientQt.cpp:
13885 (WebCore::DragClientQt::startDrag):
13887 2007-10-31 Lars Knoll <lars@trolltech.com>
13891 a dragLeave event is not the same as cancelling a drag.
13893 * Api/qwebpage.cpp:
13895 2007-10-26 Mark Rowe <mrowe@apple.com>
13897 Build fix. Add missing #include of Platform.h.
13899 * Api/qwebhistoryinterface.cpp:
13901 2007-10-25 Holger Freyther <zecke@selfish.org>
13903 Reviewed by Simon Hausmann <hausmann@kde.org>.
13905 * We need to set a != 0 status code for the fast/loader/xmlhttprequest-missing-file-exception.html
13906 * libxml2 has the semantic that when writing an empty string and finishing it will report an error. For QXmlStreamReader this is valid.
13907 * This is causing some regressions...
13910 * Api/qwebnetworkinterface.cpp:
13911 (QWebNetworkManager::started):
13912 (QWebNetworkInterface::addJob):
13914 2007-10-25 Holger Freyther <zecke@selfish.org>
13916 Reviewed by Simon Hausmann <hausmann@kde.org>.
13918 * Make fast/loader/xmlhttprequest-bad-mimetype.html pass. We use QHttp to download local files but we may not set the HTTP result code on the ResourceResponse.
13919 * We can use the cross-platform result now. QWebNetworkInterface/Manager behaves the same as mac for local files.
13922 * Api/qwebnetworkinterface.cpp:
13923 (QWebNetworkManager::started):
13925 2007-10-25 Holger Freyther <zecke@selfish.org>
13927 Reviewed by Simon Hausmann <hausmann@kde.org>.
13929 * fast/dom/onerror-img.html regressed due checking the JobStates because in case of error (e.g. not being able to connect) the job will no be started.
13930 * Use the error message from Qt. It might or might not be translated.
13933 * Api/qwebnetworkinterface.cpp:
13934 (QWebNetworkJob::errorString):
13935 (QWebNetworkJob::setErrorString):
13936 (QWebNetworkManager::finished):
13937 (QWebNetworkManager::doWork):
13938 (WebCoreHttp::onRequestFinished):
13939 * Api/qwebnetworkinterface.h:
13940 * Api/qwebnetworkinterface_p.h:
13942 2007-10-25 Holger Freyther <zecke@selfish.org>
13944 Reviewed by Simon Hausmann <hausmann@kde.org>.
13946 * Use the JobStatus to make sure to not deliver finished/data before the job has started. This is the case with the fast/dom/onerror-img.html test case.
13947 * We have no idea if any data will come so we can still finish and then get pending data. This luckily can't happen for the local file case.
13950 * Api/qwebnetworkinterface.cpp:
13951 (QWebNetworkManager::doWork):
13953 2007-10-25 Holger Freyther <zecke@selfish.org>
13955 Reviewed by Simon Hausmann <hausmann@kde.org>.
13957 * No need to initialize values in the QWebNetworkJob c'tor
13958 * Add a JobStatus to QWebNetworkJob and verify that the jobs are handled in the way we expect them to be handled. This means no data after the job has finished, not finishing a job before it has been started.
13961 * Api/qwebnetworkinterface.cpp:
13962 (QWebNetworkJob::status):
13963 (QWebNetworkJob::setStatus):
13964 (QWebNetworkManager::started):
13965 (QWebNetworkManager::data):
13966 (QWebNetworkManager::finished):
13967 * Api/qwebnetworkinterface.h:
13968 * Api/qwebnetworkinterface_p.h:
13969 (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
13971 2007-10-25 Holger Freyther <zecke@selfish.org>
13973 Reviewed by Simon Hausmann <hausmann@kde.org>.
13975 * Consistency: Always name the jobs job.
13978 * Api/qwebnetworkinterface.cpp:
13979 (WebCoreHttp::onReadyRead):
13980 (WebCoreHttp::onRequestFinished):
13981 (WebCoreHttp::onSslErrors):
13982 (WebCoreHttp::onAuthenticationRequired):
13983 (WebCoreHttp::onProxyAuthenticationRequired):
13985 2007-10-25 Holger Freyther <zecke@selfish.org>
13987 Reviewed by Simon Hausmann <hausmann@kde.org>.
13989 * Implement our own queuing of network jobs to allow special handling of synchronous jobs. This makes us pass the fast/dom/xmlhttprequest-html-response-encoding.html test without a crash. Sync jobs will get a special treatment over the normals ones and in theory more than one sync job is supported.
13990 * This should be thread-safe besides QWebNetworkJob::{ref,deref}
13993 * Api/qwebnetworkinterface.cpp:
13994 (QWebNetworkJob::~QWebNetworkJob):
13995 (QWebNetworkManager::QWebNetworkManager):
13996 (QWebNetworkManager::self):
13997 (QWebNetworkManager::add):
13998 (QWebNetworkManager::started):
13999 (QWebNetworkManager::finished):
14000 (QWebNetworkInterfacePrivate::sendFileData):
14001 (QWebNetworkInterfacePrivate::parseDataUrl):
14002 (QWebNetworkManager::queueStart):
14003 (QWebNetworkManager::queueData):
14004 (QWebNetworkManager::queueFinished):
14005 (QWebNetworkManager::doScheduleWork):
14006 (QWebNetworkManager::doWork):
14007 (gCleanupInterface):
14008 (QWebNetworkInterface::setDefaultInterface):
14009 (QWebNetworkInterface::defaultInterface):
14010 (QWebNetworkInterface::QWebNetworkInterface):
14011 (QWebNetworkInterface::started):
14012 (QWebNetworkInterface::data):
14013 (QWebNetworkInterface::finished):
14014 (WebCoreHttp::scheduleNextRequest):
14015 (WebCoreHttp::onResponseHeaderReceived):
14016 (WebCoreHttp::onReadyRead):
14017 (WebCoreHttp::onRequestFinished):
14018 (WebCoreHttp::cancel):
14019 * Api/qwebnetworkinterface.h:
14020 * Api/qwebnetworkinterface_p.h:
14021 (QWebNetworkManager::):
14022 (QWebNetworkManager::JobData::JobData):
14023 (QWebNetworkManager::JobFinished::JobFinished):
14025 2007-10-25 Holger Freyther <zecke@selfish.org>
14027 Reviewed by Simon Hausmann <hausmann@kde.org>.
14029 * Do the percent replacement only when we are not base64. With base64 we should not have any % in it anyway.
14030 * Have a custom decodePercentEncoding method that works without doing any charset conversion. With converting back to latin1() we lost some information.
14031 * We pass the char-decoding.html test now
14034 * Api/qwebnetworkinterface.cpp:
14035 (decodePercentEncoding):
14036 (QWebNetworkInterfacePrivate::parseDataUrl):
14038 2007-10-24 Holger Hans Peter Freyther <zecke@selfish.org>
14040 Reviewed by Lars Knoll <lars@trolltech.com>.
14042 * Stop crashing on fast/events/frame-tab-focus.html the keyEvent can be 0.
14045 * WebCoreSupport/EditorClientQt.cpp:
14046 (WebCore::EditorClientQt::handleKeypress):
14048 2007-10-24 Lars Knoll <lars@trolltech.com>
14052 remove some notImplemented() warnings.
14054 * WebCoreSupport/EditorClientQt.cpp:
14055 (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
14056 (WebCore::EditorClientQt::isGrammarCheckingEnabled):
14057 (WebCore::EditorClientQt::respondToChangedSelection):
14059 2007-10-24 Lars Knoll <lars@trolltech.com>
14063 allow paste from DOM so we pass more test cases.
14065 * Api/qwebpage.cpp:
14066 (QWebPage::setSettings):
14068 2007-10-24 Lars Knoll <lars@trolltech.com>
14072 Simplify the PlatformKeyEvent constructor. No need to have an extra boolean for isKeyUp in there, as the QKeyEvent has the information.
14074 * Api/qwebpage.cpp:
14075 (QWebPage::keyPressEvent):
14076 (QWebPage::keyReleaseEvent):
14078 2007-10-24 Lars Knoll <lars@trolltech.com>
14082 some smaller fixes to the editing support in DRT. Makes another few tests pass.
14084 * WebCoreSupport/EditorClientQt.cpp:
14085 (qt_dump_editing_callbacks):
14088 2007-10-24 Lars Knoll <lars@trolltech.com>
14092 implemented support for most editing shortcuts to make contentEditable usable.
14094 * Api/qwebpage.cpp:
14095 (QWebPage::keyPressEvent):
14097 2007-10-24 Lars Knoll <lars@trolltech.com>
14101 no need to call setIsActive ourselves on the frame, as the focus controller does it for us.
14103 * Api/qwebpage.cpp:
14104 (QWebPage::focusInEvent):
14106 2007-10-24 Lars Knoll <lars@trolltech.com>
14110 Implement support for testing editing.
14112 * WebCoreSupport/EditorClientQt.cpp:
14113 (qt_dump_editing_callbacks):
14114 (qt_dump_set_accepts_editing):
14117 (WebCore::EditorClientQt::shouldDeleteRange):
14118 (WebCore::EditorClientQt::shouldShowDeleteInterface):
14119 (WebCore::EditorClientQt::shouldBeginEditing):
14120 (WebCore::EditorClientQt::shouldEndEditing):
14121 (WebCore::EditorClientQt::shouldInsertText):
14122 (WebCore::EditorClientQt::shouldChangeSelectedRange):
14123 (WebCore::EditorClientQt::shouldApplyStyle):
14124 (WebCore::EditorClientQt::didBeginEditing):
14125 (WebCore::EditorClientQt::respondToChangedContents):
14126 (WebCore::EditorClientQt::respondToChangedSelection):
14127 (WebCore::EditorClientQt::didEndEditing):
14128 (WebCore::EditorClientQt::shouldInsertNode):
14130 2007-10-19 Alp Toker <alp@atoker.com>
14132 Reviewed by Oliver.
14134 GTK+ build fix enabling the new local database storage feature.
14135 There is also a prospective Qt build fix.
14137 * WebCoreSupport/ChromeClientQt.cpp:
14138 (WebCore::ChromeClientQt::runDatabaseSizeLimitPrompt):
14139 * WebCoreSupport/ChromeClientQt.h:
14141 2007-10-19 Simon Hausmann <hausmann@kde.org>
14143 Fix the Qt/Windows build: Include the moc file from the .cpp file so
14144 that config.h is included before wtf/MathExtras. The former defines
14145 the MSVC defines for rand_s.
14147 * WebCoreSupport/FrameLoaderClientQt.cpp:
14149 2007-10-19 Simon Hausmann <shausman@trolltech.com>
14153 Fix the windows/qt build by including config.h first to fix wtf/MathExtras.h inclusion.
14155 * Api/qwebframe.cpp:
14156 * Api/qwebpage.cpp:
14158 2007-10-10 Alice Liu <alice.liu@apple.com>
14160 Reviewed by Geoff Garen.
14162 changes to keep the build from breaking
14164 * WebCoreSupport/FrameLoaderClientQt.cpp:
14165 (WebCore::FrameLoaderClientQt::createFrame):
14166 * WebCoreSupport/FrameLoaderClientQt.h:
14168 2007-10-09 Lars Knoll <lars@trolltech.com>
14172 set a default encoding for documents. Makes fast/dom/Document/document-charset.html pass.
14174 * Api/qwebpage.cpp:
14175 (QWebPage::setSettings):
14177 2007-10-09 Lars Knoll <lars@trolltech.com>
14181 Don't return a 404 status code for empty data: urls. Fixes fast/dom/HTMLHeadElement/head-check.html
14183 * Api/qwebnetworkinterface.cpp:
14184 (QWebNetworkManager::add):
14185 (QWebNetworkManager::cancel):
14186 (QWebNetworkManager::started):
14187 (QWebNetworkManager::data):
14188 (QWebNetworkInterfacePrivate::parseDataUrl):
14190 2007-10-09 Lars Knoll <lars@trolltech.com>
14194 Don't set up connections inside QWebPage::createFrame, as users might be reimplementing that method. Make sure we get only one titleChanged() signal per title change, and implement the support for testing this in DRT.
14196 * Api/qwebpage.cpp:
14197 (QWebPagePrivate::createMainFrame):
14198 (QWebPage::createFrame):
14199 * WebCoreSupport/FrameLoaderClientQt.cpp:
14200 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
14201 * WebCoreSupport/FrameLoaderClientQt.h:
14203 2007-10-09 Lars Knoll <lars@trolltech.com>
14207 add a clear() method to QWebPageHistory.
14209 * Api/qwebpagehistory.cpp:
14210 (QWebPageHistory::clear):
14211 (QWebPageHistory::itemAtIndex):
14212 * Api/qwebpagehistory.h:
14214 2007-10-05 Lars Knoll <lars@trolltech.com>
14216 add proper error messages to the FrameLoaderClient.
14217 Implement ChromeClientQt::closeWindowSoon and
14218 FrameLoaderClientQt::dispatchCreatePage (which should go away IMO).
14219 Some fixes in DRT to make it work correctly with multiple windows.
14221 Reviewed by Maciej.
14224 * Api/qwebnetworkinterface.cpp:
14225 (QWebNetworkManager::cancel):
14226 (QWebNetworkInterface::addJob):
14227 * WebCoreSupport/ChromeClientQt.cpp:
14228 (WebCore::ChromeClientQt::closeWindowSoon):
14229 * WebCoreSupport/FrameLoaderClientQt.cpp:
14230 (WebCore::FrameLoaderClientQt::cancelledError):
14232 (WebCore::FrameLoaderClientQt::blockedError):
14233 (WebCore::FrameLoaderClientQt::cannotShowURLError):
14234 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
14235 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
14236 (WebCore::FrameLoaderClientQt::dispatchCreatePage):
14238 2007-10-03 Lars Knoll <lars@trolltech.com>
14240 Signed off by Olliej.
14242 move WebKitQt to WebKit/qt for consistency with the other ports.
14244 * Api/headers.pri: Renamed from WebKitQt/Api/headers.pri.
14245 * Api/qcookiejar.cpp: Renamed from WebKitQt/Api/qcookiejar.cpp.
14246 (QCookieJarPrivate::QCookieJarPrivate):
14248 (QCookieJar::QCookieJar):
14249 (QCookieJar::~QCookieJar):
14250 (QCookieJar::setCookies):
14251 (QCookieJar::cookies):
14252 (QCookieJar::isEnabled):
14253 (QCookieJar::setEnabled):
14255 (QCookieJar::setCookieJar):
14256 (QCookieJar::cookieJar):
14257 * Api/qcookiejar.h: Renamed from WebKitQt/Api/qcookiejar.h.
14258 * Api/qtwebkit.prf: Renamed from WebKitQt/Api/qtwebkit.prf.
14259 * Api/qwebframe.cpp: Renamed from WebKitQt/Api/qwebframe.cpp.
14260 (QWebFramePrivate::init):
14261 (QWebFramePrivate::parentFrame):
14262 (QWebFramePrivate::horizontalScrollBar):
14263 (QWebFramePrivate::verticalScrollBar):
14264 (QWebFrame::QWebFrame):
14265 (QWebFrame::~QWebFrame):
14266 (QWebFrame::addToJSWindowObject):
14267 (QWebFrame::markup):
14268 (QWebFrame::innerText):
14269 (QWebFrame::renderTreeDump):
14270 (QWebFrame::title):
14273 (QWebFrame::selectedText):
14274 (QWebFrame::childFrames):
14275 (QWebFrame::verticalScrollBarPolicy):
14276 (QWebFrame::setVerticalScrollBarPolicy):
14277 (QWebFrame::horizontalScrollBarPolicy):
14278 (QWebFrame::setHorizontalScrollBarPolicy):
14279 (QWebFrame::render):
14280 (QWebFrame::layout):
14282 (QWebFrame::geometry):
14283 (QWebFrame::evaluateJavaScript):
14284 (QWebFrame::mouseMoveEvent):
14285 (QWebFrame::mousePressEvent):
14286 (QWebFrame::mouseDoubleClickEvent):
14287 (QWebFrame::mouseReleaseEvent):
14288 (QWebFrame::wheelEvent):
14289 * Api/qwebframe.h: Renamed from WebKitQt/Api/qwebframe.h.
14290 * Api/qwebframe_p.h: Renamed from WebKitQt/Api/qwebframe_p.h.
14291 (QWebFramePrivate::QWebFramePrivate):
14292 * Api/qwebhistoryinterface.cpp: Renamed from WebKitQt/Api/qwebhistoryinterface.cpp.
14293 (WebCore::historyContains):
14294 (gCleanupInterface):
14295 (QWebHistoryInterface::setDefaultInterface):
14296 (QWebHistoryInterface::defaultInterface):
14297 (QWebHistoryInterface::QWebHistoryInterface):
14298 * Api/qwebhistoryinterface.h: Renamed from WebKitQt/Api/qwebhistoryinterface.h.
14299 * Api/qwebkitglobal.h: Renamed from WebKitQt/Api/qwebkitglobal.h.
14300 * Api/qwebnetworkinterface.cpp: Renamed from WebKitQt/Api/qwebnetworkinterface.cpp.
14303 (QWebNetworkRequestPrivate::init):
14304 (QWebNetworkRequestPrivate::setURL):
14305 (QWebNetworkRequest::QWebNetworkRequest):
14306 (QWebNetworkRequest::operator=):
14307 (QWebNetworkRequest::~QWebNetworkRequest):
14308 (QWebNetworkRequest::url):
14309 (QWebNetworkRequest::setUrl):
14310 (QWebNetworkRequest::httpHeader):
14311 (QWebNetworkRequest::setHttpHeader):
14312 (QWebNetworkRequest::httpHeaderField):
14313 (QWebNetworkRequest::setHttpHeaderField):
14314 (QWebNetworkRequest::postData):
14315 (QWebNetworkRequest::setPostData):
14316 (QWebNetworkJob::QWebNetworkJob):
14317 (QWebNetworkJob::~QWebNetworkJob):
14318 (QWebNetworkJob::url):
14319 (QWebNetworkJob::postData):
14320 (QWebNetworkJob::httpHeader):
14321 (QWebNetworkJob::request):
14322 (QWebNetworkJob::response):
14323 (QWebNetworkJob::setResponse):
14324 (QWebNetworkJob::cancelled):
14325 (QWebNetworkJob::ref):
14326 (QWebNetworkJob::deref):
14327 (QWebNetworkJob::networkInterface):
14328 (QWebNetworkJob::frame):
14329 (QWebNetworkManager::QWebNetworkManager):
14330 (QWebNetworkManager::self):
14331 (QWebNetworkManager::add):
14332 (QWebNetworkManager::cancel):
14333 (QWebNetworkManager::started):
14334 (QWebNetworkManager::data):
14335 (QWebNetworkManager::finished):
14336 (QWebNetworkManager::addHttpJob):
14337 (QWebNetworkManager::cancelHttpJob):
14338 (QWebNetworkManager::httpConnectionClosed):
14339 (QWebNetworkInterfacePrivate::sendFileData):
14340 (QWebNetworkInterfacePrivate::parseDataUrl):
14341 (gCleanupInterface):
14342 (QWebNetworkInterface::setDefaultInterface):
14343 (QWebNetworkInterface::defaultInterface):
14344 (QWebNetworkInterface::QWebNetworkInterface):
14345 (QWebNetworkInterface::~QWebNetworkInterface):
14346 (QWebNetworkInterface::addJob):
14347 (QWebNetworkInterface::cancelJob):
14348 (WebCoreHttp::WebCoreHttp):
14349 (WebCoreHttp::~WebCoreHttp):
14350 (WebCoreHttp::request):
14351 (WebCoreHttp::scheduleNextRequest):
14352 (WebCoreHttp::getConnection):
14353 (WebCoreHttp::onResponseHeaderReceived):
14354 (WebCoreHttp::onReadyRead):
14355 (WebCoreHttp::onRequestFinished):
14356 (WebCoreHttp::onDone):
14357 (WebCoreHttp::onStateChanged):
14358 (WebCoreHttp::cancel):
14359 (WebCoreHttp::onSslErrors):
14360 (WebCoreHttp::onAuthenticationRequired):
14361 (WebCoreHttp::onProxyAuthenticationRequired):
14362 (HostInfo::HostInfo):
14363 * Api/qwebnetworkinterface.h: Renamed from WebKitQt/Api/qwebnetworkinterface.h.
14364 * Api/qwebnetworkinterface_p.h: Renamed from WebKitQt/Api/qwebnetworkinterface_p.h.
14365 (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
14366 (WebCore::HostInfo::HostInfo):
14367 (WebCore::WebCoreHttp::HttpConnection::HttpConnection):
14368 * Api/qwebobjectplugin.cpp: Renamed from WebKitQt/Api/qwebobjectplugin.cpp.
14369 (QWebFactoryLoader::QWebFactoryLoader):
14370 (QWebFactoryLoader::self):
14371 (QWebFactoryLoader::descriptionForName):
14372 (QWebFactoryLoader::mimetypesForName):
14373 (QWebFactoryLoader::mimeTypeForExtension):
14374 (QWebFactoryLoader::extensions):
14375 (QWebFactoryLoader::nameForMimetype):
14376 (QWebFactoryLoader::create):
14377 (QWebObjectPlugin::QWebObjectPlugin):
14378 (QWebObjectPlugin::~QWebObjectPlugin):
14379 (QWebObjectPlugin::descriptionForKey):
14380 (QWebObjectPlugin::mimetypesForKey):
14381 (QWebObjectPlugin::extensionsForMimetype):
14382 * Api/qwebobjectplugin.h: Renamed from WebKitQt/Api/qwebobjectplugin.h.
14383 * Api/qwebobjectplugin_p.h: Renamed from WebKitQt/Api/qwebobjectplugin_p.h.
14384 (QWebFactoryLoader::names):
14385 (QWebFactoryLoader::supportsMimeType):
14386 * Api/qwebobjectpluginconnector.cpp: Renamed from WebKitQt/Api/qwebobjectpluginconnector.cpp.
14387 (QWebObjectPluginConnector::QWebObjectPluginConnector):
14388 (QWebObjectPluginConnector::frame):
14389 (QWebObjectPluginConnector::pluginParentWidget):
14390 (QWebObjectPluginConnector::requestUrl):
14391 * Api/qwebobjectpluginconnector.h: Renamed from WebKitQt/Api/qwebobjectpluginconnector.h.
14392 * Api/qwebpage.cpp: Renamed from WebKitQt/Api/qwebpage.cpp.
14393 (QWebPagePrivate::QWebPagePrivate):
14394 (QWebPagePrivate::~QWebPagePrivate):
14395 (QWebPagePrivate::navigationRequested):
14396 (QWebPagePrivate::createMainFrame):
14397 (QWebPage::QWebPage):
14398 (QWebPage::~QWebPage):
14399 (QWebPage::createFrame):
14403 (QWebPage::mainFrame):
14404 (QWebPage::sizeHint):
14406 (QWebPage::history):
14407 (QWebPage::goBack):
14408 (QWebPage::goForward):
14409 (QWebPage::goToHistoryItem):
14410 (QWebPage::javaScriptConsoleMessage):
14411 (QWebPage::javaScriptAlert):
14412 (QWebPage::javaScriptConfirm):
14413 (QWebPage::javaScriptPrompt):
14414 (QWebPage::createWindow):
14415 (QWebPage::createModalDialog):
14416 (QWebPage::createPlugin):
14417 (QWebPage::navigationRequested):
14418 (QWebPage::setWindowGeometry):
14419 (QWebPage::canCut):
14420 (QWebPage::canCopy):
14421 (QWebPage::canPaste):
14425 (QWebPage::isModified):
14426 (QWebPage::undoStack):
14427 (dropActionToDragOp):
14428 (dragOpToDropAction):
14429 (QWebPage::resizeEvent):
14430 (QWebPage::paintEvent):
14431 (QWebPage::mouseMoveEvent):
14432 (QWebPage::mousePressEvent):
14433 (QWebPage::mouseDoubleClickEvent):
14434 (QWebPage::mouseReleaseEvent):
14435 (QWebPage::wheelEvent):
14436 (QWebPage::keyPressEvent):
14437 (QWebPage::keyReleaseEvent):
14438 (QWebPage::focusInEvent):
14439 (QWebPage::focusOutEvent):
14440 (QWebPage::focusNextPrevChild):
14441 (QWebPage::dragEnterEvent):
14442 (QWebPage::dragLeaveEvent):
14443 (QWebPage::dragMoveEvent):
14444 (QWebPage::dropEvent):
14445 (QWebPage::setNetworkInterface):
14446 (QWebPage::networkInterface):
14448 (QWebPage::setSettings):
14449 (QWebPage::settings):
14450 (QWebPage::chooseFile):
14451 (QWebPage::setNetworkProxy):
14452 (QWebPage::networkProxy):
14453 (QWebPage::userAgentStringForUrl):
14454 (QWebPage::onLoadProgressChanged):
14455 (QWebPage::totalBytes):
14456 * Api/qwebpage.h: Renamed from WebKitQt/Api/qwebpage.h.
14457 * Api/qwebpage_p.h: Renamed from WebKitQt/Api/qwebpage_p.h.
14458 * Api/qwebpagehistory.cpp: Renamed from WebKitQt/Api/qwebpagehistory.cpp.
14459 (QWebHistoryItem::QWebHistoryItem):
14460 (QWebHistoryItem::operator=):
14461 (QWebHistoryItem::~QWebHistoryItem):
14462 (QWebHistoryItem::originalUrl):
14463 (QWebHistoryItem::currentUrl):
14464 (QWebHistoryItem::title):
14465 (QWebHistoryItem::lastVisited):
14466 (QWebHistoryItem::icon):
14467 (QWebPageHistory::QWebPageHistory):
14468 (QWebPageHistory::itemAtIndex):
14469 (QWebPageHistory::operator=):
14470 (QWebPageHistory::~QWebPageHistory):
14471 (QWebPageHistory::items):
14472 (QWebPageHistory::backItems):
14473 (QWebPageHistory::forwardItems):
14474 (QWebPageHistory::canGoBack):
14475 (QWebPageHistory::canGoForward):
14476 (QWebPageHistory::goBack):
14477 (QWebPageHistory::goForward):
14478 (QWebPageHistory::goToItem):
14479 (QWebPageHistory::backItem):
14480 (QWebPageHistory::currentItem):
14481 (QWebPageHistory::forwardItem):
14482 * Api/qwebpagehistory.h: Renamed from WebKitQt/Api/qwebpagehistory.h.
14483 (QExplicitlySharedDataPointer::operator*):
14484 (QExplicitlySharedDataPointer::operator->):
14485 (QExplicitlySharedDataPointer::operator T *):
14486 (QExplicitlySharedDataPointer::operator const T *):
14487 (QExplicitlySharedDataPointer::data):
14488 (QExplicitlySharedDataPointer::constData):
14489 (QExplicitlySharedDataPointer::operator==):
14490 (QExplicitlySharedDataPointer::operator!=):
14491 (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer):
14492 (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer):
14493 (QExplicitlySharedDataPointer::operator=):
14494 (QExplicitlySharedDataPointer::operator!):
14495 (::QExplicitlySharedDataPointer):
14496 * Api/qwebpagehistory_p.h: Renamed from WebKitQt/Api/qwebpagehistory_p.h.
14497 (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
14498 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
14499 (QWebPageHistoryPrivate::QWebPageHistoryPrivate):
14500 (QWebPageHistoryPrivate::~QWebPageHistoryPrivate):
14501 * Api/qwebsettings.cpp: Renamed from WebKitQt/Api/qwebsettings.cpp.
14502 (QWebSettingsPrivate::QWebSettingsPrivate):
14503 (QWebSettings::QWebSettings):
14504 (QWebSettings::~QWebSettings):
14505 (QWebSettings::setMinimumFontSize):
14506 (QWebSettings::minimumFontSize):
14507 (QWebSettings::setMinimumLogicalFontSize):
14508 (QWebSettings::minimumLogicalFontSize):
14509 (QWebSettings::setDefaultFontSize):
14510 (QWebSettings::defaultFontSize):
14511 (QWebSettings::setDefaultFixedFontSize):
14512 (QWebSettings::defaultFixedFontSize):
14513 (QWebSettings::setUserStyleSheetLocation):
14514 (QWebSettings::userStyleSheetLocation):
14515 (QWebSettings::setIconDatabaseEnabled):
14516 (QWebSettings::iconDatabaseEnabled):
14517 (QWebSettings::setWebGraphic):
14518 (QWebSettings::webGraphic):
14519 (QWebSettings::operator=):
14520 (QWebSettings::setGlobal):
14521 (QWebSettings::global):
14522 (QWebSettings::setFontFamily):
14523 (QWebSettings::fontFamily):
14524 (QWebSettings::setAttribute):
14525 (QWebSettings::testAttribute):
14526 (loadResourcePixmap):
14527 * Api/qwebsettings.h: Renamed from WebKitQt/Api/qwebsettings.h.
14528 * ChangeLog: Renamed from WebKitQt/ChangeLog.
14529 * Plugins/ICOHandler.cpp: Renamed from WebKitQt/Plugins/ICOHandler.cpp.
14530 (IcoHeader::operator >>):
14531 (IcoHeader::BMP_INFOHDR::):
14532 (IcoHeader::operator<<):
14533 (IcoHeader::LessDifference::LessDifference):
14534 (IcoHeader::LessDifference::operator ()):
14535 (IcoHeader::loadFromDIB):
14536 (ICOHandler::ICOHandler):
14537 (ICOHandler::canRead):
14538 (ICOHandler::read):
14539 (ICOHandler::write):
14540 (ICOHandler::name):
14542 (ICOPlugin::capabilities):
14543 (ICOPlugin::create):
14544 * Plugins/ICOHandler.h: Renamed from WebKitQt/Plugins/ICOHandler.h.
14545 * Plugins/Plugins.pro: Renamed from WebKitQt/Plugins/Plugins.pro.
14546 * QtLauncher/QtLauncher.pro: Renamed from WebKitQt/QtLauncher/QtLauncher.pro.
14547 * QtLauncher/main.cpp: Renamed from WebKitQt/QtLauncher/main.cpp.
14548 (HoverLabel::HoverLabel):
14549 (HoverLabel::setHoverLink):
14550 (HoverLabel::sizeForFont):
14551 (HoverLabel::sizeHint):
14552 (HoverLabel::updateSize):
14553 (HoverLabel::resetAnimation):
14554 (HoverLabel::paintEvent):
14555 (HoverLabel::interpolate):
14556 (ClearButton::ClearButton):
14557 (ClearButton::paintEvent):
14558 (SearchEdit::SearchEdit):
14559 (SearchEdit::~SearchEdit):
14560 (SearchEdit::paintEvent):
14561 (SearchEdit::resizeEvent):
14562 (SearchEdit::moveEvent):
14563 (MainWindow::MainWindow):
14564 (MainWindow::changeLocation):
14565 (MainWindow::loadFinished):
14566 (MainWindow::showLinkHover):
14567 (MainWindow::resizeEvent):
14569 * WebCoreSupport/ChromeClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.cpp.
14570 (WebCore::ChromeClientQt::ChromeClientQt):
14571 (WebCore::ChromeClientQt::~ChromeClientQt):
14572 (WebCore::ChromeClientQt::setWindowRect):
14573 (WebCore::ChromeClientQt::windowRect):
14574 (WebCore::ChromeClientQt::pageRect):
14575 (WebCore::ChromeClientQt::scaleFactor):
14576 (WebCore::ChromeClientQt::focus):
14577 (WebCore::ChromeClientQt::unfocus):
14578 (WebCore::ChromeClientQt::canTakeFocus):
14579 (WebCore::ChromeClientQt::takeFocus):
14580 (WebCore::ChromeClientQt::createWindow):
14581 (WebCore::ChromeClientQt::createModalDialog):
14582 (WebCore::ChromeClientQt::show):
14583 (WebCore::ChromeClientQt::canRunModal):
14584 (WebCore::ChromeClientQt::runModal):
14585 (WebCore::ChromeClientQt::setToolbarsVisible):
14586 (WebCore::ChromeClientQt::toolbarsVisible):
14587 (WebCore::ChromeClientQt::setStatusbarVisible):
14588 (WebCore::ChromeClientQt::statusbarVisible):
14589 (WebCore::ChromeClientQt::setScrollbarsVisible):
14590 (WebCore::ChromeClientQt::scrollbarsVisible):
14591 (WebCore::ChromeClientQt::setMenubarVisible):
14592 (WebCore::ChromeClientQt::menubarVisible):
14593 (WebCore::ChromeClientQt::setResizable):
14594 (WebCore::ChromeClientQt::addMessageToConsole):
14595 (WebCore::ChromeClientQt::chromeDestroyed):
14596 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
14597 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
14598 (WebCore::ChromeClientQt::closeWindowSoon):
14599 (WebCore::ChromeClientQt::runJavaScriptAlert):
14600 (WebCore::ChromeClientQt::runJavaScriptConfirm):
14601 (WebCore::ChromeClientQt::runJavaScriptPrompt):
14602 (WebCore::ChromeClientQt::setStatusbarText):
14603 (WebCore::ChromeClientQt::shouldInterruptJavaScript):
14604 (WebCore::ChromeClientQt::tabsToLinks):
14605 (WebCore::ChromeClientQt::windowResizerRect):
14606 (WebCore::ChromeClientQt::addToDirtyRegion):
14607 (WebCore::ChromeClientQt::scrollBackingStore):
14608 (WebCore::ChromeClientQt::updateBackingStore):
14609 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
14610 (WebCore::ChromeClientQt::setToolTip):
14611 (WebCore::ChromeClientQt::print):
14612 * WebCoreSupport/ChromeClientQt.h: Renamed from WebKitQt/WebCoreSupport/ChromeClientQt.h.
14613 * WebCoreSupport/ContextMenuClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.cpp.
14614 (WebCore::ContextMenuClientQt::contextMenuDestroyed):
14615 (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
14616 (WebCore::ContextMenuClientQt::contextMenuItemSelected):
14617 (WebCore::ContextMenuClientQt::downloadURL):
14618 (WebCore::ContextMenuClientQt::lookUpInDictionary):
14619 (WebCore::ContextMenuClientQt::speak):
14620 (WebCore::ContextMenuClientQt::stopSpeaking):
14621 (WebCore::ContextMenuClientQt::searchWithGoogle):
14622 * WebCoreSupport/ContextMenuClientQt.h: Renamed from WebKitQt/WebCoreSupport/ContextMenuClientQt.h.
14623 * WebCoreSupport/DragClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/DragClientQt.cpp.
14624 (WebCore::DragClientQt::actionMaskForDrag):
14625 (WebCore::DragClientQt::willPerformDragDestinationAction):
14626 (WebCore::DragClientQt::dragControllerDestroyed):
14627 (WebCore::DragClientQt::dragSourceActionMaskForPoint):
14628 (WebCore::DragClientQt::willPerformDragSourceAction):
14629 (WebCore::DragClientQt::startDrag):
14630 * WebCoreSupport/DragClientQt.h: Renamed from WebKitQt/WebCoreSupport/DragClientQt.h.
14631 (WebCore::DragClientQt::DragClientQt):
14632 * WebCoreSupport/EditCommandQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.cpp.
14633 (EditCommandQt::EditCommandQt):
14634 (EditCommandQt::~EditCommandQt):
14635 (EditCommandQt::redo):
14636 (EditCommandQt::undo):
14637 * WebCoreSupport/EditCommandQt.h: Renamed from WebKitQt/WebCoreSupport/EditCommandQt.h.
14638 * WebCoreSupport/EditorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.cpp.
14639 (WebCore::EditorClientQt::shouldDeleteRange):
14640 (WebCore::EditorClientQt::shouldShowDeleteInterface):
14641 (WebCore::EditorClientQt::isContinuousSpellCheckingEnabled):
14642 (WebCore::EditorClientQt::isGrammarCheckingEnabled):
14643 (WebCore::EditorClientQt::spellCheckerDocumentTag):
14644 (WebCore::EditorClientQt::shouldBeginEditing):
14645 (WebCore::EditorClientQt::shouldEndEditing):
14646 (WebCore::EditorClientQt::shouldInsertText):
14647 (WebCore::EditorClientQt::shouldChangeSelectedRange):
14648 (WebCore::EditorClientQt::shouldApplyStyle):
14649 (WebCore::EditorClientQt::shouldMoveRangeAfterDelete):
14650 (WebCore::EditorClientQt::didBeginEditing):
14651 (WebCore::EditorClientQt::respondToChangedContents):
14652 (WebCore::EditorClientQt::respondToChangedSelection):
14653 (WebCore::EditorClientQt::didEndEditing):
14654 (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
14655 (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard):
14656 (WebCore::EditorClientQt::selectWordBeforeMenuEvent):
14657 (WebCore::EditorClientQt::isEditable):
14658 (WebCore::EditorClientQt::registerCommandForUndo):
14659 (WebCore::EditorClientQt::registerCommandForRedo):
14660 (WebCore::EditorClientQt::clearUndoRedoOperations):
14661 (WebCore::EditorClientQt::canUndo):
14662 (WebCore::EditorClientQt::canRedo):
14663 (WebCore::EditorClientQt::undo):
14664 (WebCore::EditorClientQt::redo):
14665 (WebCore::EditorClientQt::shouldInsertNode):
14666 (WebCore::EditorClientQt::pageDestroyed):
14667 (WebCore::EditorClientQt::smartInsertDeleteEnabled):
14668 (WebCore::EditorClientQt::toggleContinuousSpellChecking):
14669 (WebCore::EditorClientQt::toggleGrammarChecking):
14670 (WebCore::EditorClientQt::handleKeypress):
14671 (WebCore::EditorClientQt::handleInputMethodKeypress):
14672 (WebCore::EditorClientQt::EditorClientQt):
14673 (WebCore::EditorClientQt::textFieldDidBeginEditing):
14674 (WebCore::EditorClientQt::textFieldDidEndEditing):
14675 (WebCore::EditorClientQt::textDidChangeInTextField):
14676 (WebCore::EditorClientQt::doTextFieldCommandFromEvent):
14677 (WebCore::EditorClientQt::textWillBeDeletedInTextField):
14678 (WebCore::EditorClientQt::textDidChangeInTextArea):
14679 (WebCore::EditorClientQt::ignoreWordInSpellDocument):
14680 (WebCore::EditorClientQt::learnWord):
14681 (WebCore::EditorClientQt::checkSpellingOfString):
14682 (WebCore::EditorClientQt::checkGrammarOfString):
14683 (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
14684 (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord):
14685 (WebCore::EditorClientQt::showSpellingUI):
14686 (WebCore::EditorClientQt::spellingUIIsShowing):
14687 (WebCore::EditorClientQt::getGuessesForWord):
14688 (WebCore::EditorClientQt::isEditing):
14689 (WebCore::EditorClientQt::setInputMethodState):
14690 * WebCoreSupport/EditorClientQt.h: Renamed from WebKitQt/WebCoreSupport/EditorClientQt.h.
14691 * WebCoreSupport/FrameLoaderClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.cpp.
14692 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
14693 (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
14694 (WebCore::FrameLoaderClientQt::setFrame):
14695 (WebCore::FrameLoaderClientQt::webFrame):
14696 (WebCore::FrameLoaderClientQt::callPolicyFunction):
14697 (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
14698 (WebCore::FrameLoaderClientQt::hasWebView):
14699 (WebCore::FrameLoaderClientQt::hasFrameView):
14700 (WebCore::FrameLoaderClientQt::hasBackForwardList):
14701 (WebCore::FrameLoaderClientQt::resetBackForwardList):
14702 (WebCore::FrameLoaderClientQt::provisionalItemIsTarget):
14703 (WebCore::FrameLoaderClientQt::loadProvisionalItemFromPageCache):
14704 (WebCore::FrameLoaderClientQt::invalidateCurrentItemPageCache):
14705 (WebCore::FrameLoaderClientQt::privateBrowsingEnabled):
14706 (WebCore::FrameLoaderClientQt::makeDocumentView):
14707 (WebCore::FrameLoaderClientQt::makeRepresentation):
14708 (WebCore::FrameLoaderClientQt::forceLayout):
14709 (WebCore::FrameLoaderClientQt::forceLayoutForNonHTML):
14710 (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
14711 (WebCore::FrameLoaderClientQt::tokenForLoadErrorReset):
14712 (WebCore::FrameLoaderClientQt::resetAfterLoadError):
14713 (WebCore::FrameLoaderClientQt::doNotResetAfterLoadError):
14714 (WebCore::FrameLoaderClientQt::willCloseDocument):
14715 (WebCore::FrameLoaderClientQt::detachedFromParent2):
14716 (WebCore::FrameLoaderClientQt::detachedFromParent3):
14717 (WebCore::FrameLoaderClientQt::detachedFromParent4):
14718 (WebCore::FrameLoaderClientQt::loadedFromCachedPage):
14719 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
14720 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
14721 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
14722 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
14723 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
14724 (WebCore::FrameLoaderClientQt::dispatchWillClose):
14725 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
14726 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
14727 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
14728 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
14729 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
14730 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
14731 (WebCore::FrameLoaderClientQt::dispatchShow):
14732 (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
14733 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
14734 (WebCore::FrameLoaderClientQt::dispatchDidLoadMainResource):
14735 (WebCore::FrameLoaderClientQt::clearLoadingFromPageCache):
14736 (WebCore::FrameLoaderClientQt::isLoadingFromPageCache):
14737 (WebCore::FrameLoaderClientQt::revertToProvisionalState):
14738 (WebCore::FrameLoaderClientQt::clearUnarchivingState):
14739 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
14740 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
14741 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
14742 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
14743 (WebCore::FrameLoaderClientQt::willChangeTitle):
14744 (WebCore::FrameLoaderClientQt::didChangeTitle):
14745 (WebCore::FrameLoaderClientQt::finishedLoading):
14746 (WebCore::FrameLoaderClientQt::finalSetupForReplace):
14747 (WebCore::FrameLoaderClientQt::setDefersLoading):
14748 (WebCore::FrameLoaderClientQt::isArchiveLoadPending):
14749 (WebCore::FrameLoaderClientQt::cancelPendingArchiveLoad):
14750 (WebCore::FrameLoaderClientQt::clearArchivedResources):
14751 (WebCore::FrameLoaderClientQt::canShowMIMEType):
14752 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
14753 (WebCore::FrameLoaderClientQt::generatedMIMETypeForURLScheme):
14754 (WebCore::FrameLoaderClientQt::frameLoadCompleted):
14755 (WebCore::FrameLoaderClientQt::restoreViewState):
14756 (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
14757 (WebCore::FrameLoaderClientQt::shouldTreatURLAsSameAsCurrent):
14758 (WebCore::FrameLoaderClientQt::addHistoryItemForFragmentScroll):
14759 (WebCore::FrameLoaderClientQt::didFinishLoad):
14760 (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
14761 (WebCore::FrameLoaderClientQt::setTitle):
14762 (WebCore::FrameLoaderClientQt::userAgent):
14763 (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
14764 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
14765 (WebCore::FrameLoaderClientQt::canHandleRequest):
14766 (WebCore::FrameLoaderClientQt::windowObjectCleared):
14767 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
14768 (WebCore::FrameLoaderClientQt::registerForIconNotification):
14769 (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage):
14770 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
14771 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload):
14772 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
14773 (WebCore::FrameLoaderClientQt::saveViewStateToItem):
14774 (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage):
14775 (WebCore::FrameLoaderClientQt::canCachePage):
14776 (WebCore::FrameLoaderClientQt::setMainDocumentError):
14777 (WebCore::FrameLoaderClientQt::committedLoad):
14778 (WebCore::FrameLoaderClientQt::cancelledError):
14779 (WebCore::FrameLoaderClientQt::blockedError):
14780 (WebCore::FrameLoaderClientQt::cannotShowURLError):
14781 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
14782 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
14783 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
14784 (WebCore::FrameLoaderClientQt::shouldFallBack):
14785 (WebCore::FrameLoaderClientQt::createDocumentLoader):
14786 (WebCore::FrameLoaderClientQt::download):
14787 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
14788 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
14789 (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
14790 (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
14791 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
14792 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
14793 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
14794 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
14795 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
14796 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
14797 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
14798 (WebCore::FrameLoaderClientQt::dispatchCreatePage):
14799 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
14800 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
14801 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
14802 (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
14803 (WebCore::FrameLoaderClientQt::startDownload):
14804 (WebCore::FrameLoaderClientQt::willUseArchive):
14805 (WebCore::FrameLoaderClientQt::createFrame):
14806 (WebCore::FrameLoaderClientQt::objectContentType):
14808 (WebCore::FrameLoaderClientQt::createPlugin):
14809 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
14810 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
14811 (WebCore::FrameLoaderClientQt::overrideMediaType):
14812 * WebCoreSupport/FrameLoaderClientQt.h: Renamed from WebKitQt/WebCoreSupport/FrameLoaderClientQt.h.
14813 * WebCoreSupport/InspectorClientQt.cpp: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.cpp.
14814 (WebCore::InspectorClientQt::inspectorDestroyed):
14815 (WebCore::InspectorClientQt::createPage):
14816 (WebCore::InspectorClientQt::showWindow):
14817 (WebCore::InspectorClientQt::closeWindow):
14818 (WebCore::InspectorClientQt::attachWindow):
14819 (WebCore::InspectorClientQt::detachWindow):
14820 (WebCore::InspectorClientQt::highlight):
14821 (WebCore::InspectorClientQt::hideHighlight):
14822 * WebCoreSupport/InspectorClientQt.h: Renamed from WebKitQt/WebCoreSupport/InspectorClientQt.h.
14823 * WebKitPart/WebKitFactory.cpp: Renamed from WebKitQt/WebKitPart/WebKitFactory.cpp.
14824 (WebKitFactory::WebKitFactory):
14825 (WebKitFactory::~WebKitFactory):
14826 (WebKitFactory::createPartObject):
14827 (WebKitFactory::instance):
14828 (WebKitFactory::ref):
14829 (WebKitFactory::deref):
14830 * WebKitPart/WebKitFactory.h: Renamed from WebKitQt/WebKitPart/WebKitFactory.h.
14831 * WebKitPart/WebKitPart.cpp: Renamed from WebKitQt/WebKitPart/WebKitPart.cpp.
14832 (WebKitPart::WebKitPart):
14833 (WebKitPart::~WebKitPart):
14834 (WebKitPart::openFile):
14835 (WebKitPart::openUrl):
14836 (WebKitPart::closeUrl):
14837 (WebKitPart::parentPart):
14838 (WebKitPart::frame):
14839 (WebKitPart::initView):
14840 * WebKitPart/WebKitPart.desktop: Renamed from WebKitQt/WebKitPart/WebKitPart.desktop.
14841 * WebKitPart/WebKitPart.h: Renamed from WebKitQt/WebKitPart/WebKitPart.h.
14843 * WebKitPart/WebKitPart.rc: Renamed from WebKitQt/WebKitPart/WebKitPart.rc.
14844 * WebKitPart/WebKitPartBrowser.rc: Renamed from WebKitQt/WebKitPart/WebKitPartBrowser.rc.
14845 * WebKitPart/WebKitPartBrowserExtension.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.cpp.
14846 (WebKitPartBrowserExtension::WebKitPartBrowserExtension):
14847 * WebKitPart/WebKitPartBrowserExtension.h: Renamed from WebKitQt/WebKitPart/WebKitPartBrowserExtension.h.
14848 * WebKitPart/WebKitPartClient.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartClient.cpp.
14849 (WebKitPartClient::WebKitPartClient):
14850 (WebKitPartClient::~WebKitPartClient):
14851 * WebKitPart/WebKitPartClient.h: Renamed from WebKitQt/WebKitPart/WebKitPartClient.h.
14852 * WebKitPart/WebKitPartInterface.cpp: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.cpp.
14853 (WebKitPartInterface::WebKitPartInterface):
14854 (WebKitPartInterface::~WebKitPartInterface):
14855 (WebKitPartInterface::url):
14856 * WebKitPart/WebKitPartInterface.h: Renamed from WebKitQt/WebKitPart/WebKitPartInterface.h.
14857 * WebKitPart/org.kde.WebKitPart.xml: Renamed from WebKitQt/WebKitPart/org.kde.WebKitPart.xml.
14859 2007-10-02 Adam Treat <adam.treat@torchmobile.com>
14861 Reviewed by Eric Seidel.
14863 Open the requested url on the newly created window.
14864 Implement createModalDialog and provide new API for this.
14865 Patch by M. Mehdi Salem Naraghi (momesana) with additions by me.
14867 * Api/qwebpage.cpp:
14868 (QWebPage::createModalDialog):
14870 * WebCoreSupport/ChromeClientQt.cpp:
14871 (WebCore::ChromeClientQt::createWindow):
14872 (WebCore::ChromeClientQt::createModalDialog):
14874 2007-10-02 Lars Knoll <lars@trolltech.com>
14878 Add API to retrieve the frame name from QWebFrame.
14879 Implement support for DRT::dumpChildrenAsText.
14881 * Api/qwebframe.cpp:
14885 2007-10-02 Lars Knoll <lars@trolltech.com>
14889 Fix the handling of the response header for data urls. Make sure we always pass absolute URLs to WebKit from both DRT and QtLauncher.
14891 * Api/qwebnetworkinterface.cpp:
14892 (QWebNetworkManager::started):
14893 (QWebNetworkManager::data):
14894 (QWebNetworkManager::finished):
14895 (QWebNetworkInterfacePrivate::sendFileData):
14896 (QWebNetworkInterfacePrivate::parseDataUrl):
14897 (WebCoreHttp::scheduleNextRequest):
14898 (WebCoreHttp::onSslErrors):
14899 * QtLauncher/main.cpp:
14902 2007-10-01 Lars Knoll <lars@trolltech.com>
14906 Fix a wrong extension mapping in the MIMETypeRegistry and identify about: url's as frames in the FrameLoaderClient.
14908 * WebCoreSupport/FrameLoaderClientQt.cpp:
14909 (WebCore::FrameLoaderClientQt::makeDocumentView):
14910 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
14911 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
14912 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
14913 (WebCore::FrameLoaderClientQt::objectContentType):
14914 (WebCore::FrameLoaderClientQt::createPlugin):
14916 2007-09-30 George Staikos <staikos@kde.org>
14918 Qt build fix (OS X specific).
14920 * QtLauncher/QtLauncher.pro:
14922 2007-09-26 Mark Rowe <mrowe@apple.com>
14926 * WebCoreSupport/FrameLoaderClientQt.cpp:
14927 (WebCore::FrameLoaderClientQt::objectContentType): Check for empty URL instead of invalid URL.
14929 2007-09-25 David Kilzer <ddkilzer@webkit.org>
14933 - Fix http://bugs.webkit.org/show_bug.cgi?id=14885
14934 LGPL'ed files contain incorrect FSF address
14936 * Api/qcookiejar.cpp:
14937 * Api/qcookiejar.h:
14938 * Api/qwebframe.cpp:
14940 * Api/qwebframe_p.h:
14941 * Api/qwebhistoryinterface.cpp:
14942 * Api/qwebhistoryinterface.h:
14943 * Api/qwebkitglobal.h:
14944 * Api/qwebnetworkinterface.cpp:
14945 * Api/qwebnetworkinterface.h:
14946 * Api/qwebnetworkinterface_p.h:
14947 * Api/qwebobjectplugin.cpp:
14948 * Api/qwebobjectplugin.h:
14949 * Api/qwebobjectpluginconnector.cpp:
14950 * Api/qwebobjectpluginconnector.h:
14951 * Api/qwebpage.cpp:
14953 * Api/qwebpage_p.h:
14954 * Api/qwebpagehistory.cpp:
14955 * Api/qwebpagehistory.h:
14956 * Api/qwebsettings.cpp:
14957 * Api/qwebsettings.h:
14958 * WebCoreSupport/EditCommandQt.cpp:
14959 * WebCoreSupport/EditCommandQt.h:
14961 2007-09-25 Adam Treat <adam.treat@torchmobile.com>
14963 Reviewed by Simon and Lars.
14965 Modifies the addToJSWindowObject to bind js objects using the built-in
14966 kjs_window class. Make sure to protect the created runtime object from
14967 garbage collection.
14969 Adds a signal to QWebFrame to notify clients of the beginning of a
14970 provisional load. DRT needs this.
14972 * Api/qwebframe.cpp:
14973 (QWebFrame::addToJSWindowObject):
14975 * WebCoreSupport/FrameLoaderClientQt.cpp:
14976 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
14978 2007-09-10 Qing Zhao <qing@staikos.net>
14980 Reviewed by George Staikos.
14982 Don't re-encode urls, resulting in double encoding. Fixes login to
14985 * Api/qwebnetworkinterface.cpp:
14986 (QWebNetworkRequestPrivate::init):
14987 (QWebNetworkManager::started):
14989 2007-09-08 Mark Rowe <mrowe@apple.com>
14991 Qt build fix. Move stub method implementations to the right class.
14993 * WebCoreSupport/FrameLoaderClientQt.cpp:
14994 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
14996 2007-09-08 Brady Eidson <beidson@apple.com>
14998 YABF (Yet Another Build Fix)
15000 * Api/qwebsettings.cpp:
15001 (QWebSettings::iconDatabaseEnabled):
15003 2007-09-08 Brady Eidson <beidson@apple.com>
15007 * WebCoreSupport/FrameLoaderClientQt.cpp:
15008 (WebCore::FrameLoaderClient::registerForIconNotification):
15009 * WebCoreSupport/FrameLoaderClientQt.h:
15011 2007-09-08 Brady Eidson <beidson@apple.com>
15015 * WebCoreSupport/FrameLoaderClientQt.cpp:
15016 (WebCore::FrameLoaderClient::registerForIconNotification):
15017 * WebCoreSupport/FrameLoaderClientQt.h:
15019 2007-09-05 Geoffrey Garen <ggaren@apple.com>
15021 Reviewed by Darin Adler, Maciej Stachowiak, Mark Rowe, Tim Hatcher.
15023 Fixed <rdar://problem/5326009> Make non-browser WebKit clients have no
15024 memory cache, or a very tiny one
15026 Keep the Qt build working with an empty stub.
15028 * WebCoreSupport/FrameLoaderClientQt.cpp:
15029 (WebCore::FrameLoaderClient::didPerformFirstNavigation):
15030 * WebCoreSupport/FrameLoaderClientQt.h:
15032 2007-09-07 George Staikos <staikos@kde.org>
15036 * Api/qwebpage.cpp:
15037 (QWebPage::onLoadProgressChanged):
15039 2007-09-07 Qing Zhao <qing@staikos.net>
15041 Reviewed by Anders and George.
15043 Export page size and load progress in bytes.
15045 * Api/qwebpage.cpp:
15046 (QWebPage::QWebPage):
15047 (QWebPage::onLoadProgressChanged):
15048 (QWebPage::totalBytes):
15049 (QWebPage::bytesReceived):
15051 * Api/qwebpage_p.h:
15053 2007-09-06 George Staikos <staikos@kde.org>
15055 Reviewed by Anders.
15057 Make popup windows work again.
15059 * WebCoreSupport/FrameLoaderClientQt.cpp:
15060 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
15062 2007-09-01 Oliver Hunt <oliver@apple.com>
15066 <rdar://problem/5344848> IME is incorrectly used for key events when on non-editable regions
15068 EditorClient::setInputMethodState stub
15070 * WebCoreSupport/EditorClientQt.cpp:
15071 (WebCore::EditorClientQt::setInputMethodState):
15072 * WebCoreSupport/EditorClientQt.h:
15074 2007-08-30 Simon Hausmann <hausmann@kde.org>
15078 Use QKeySequence::StandardKey for the page wise scrolling shortcuts.
15080 * Api/qwebpage.cpp:
15081 (QWebPage::keyPressEvent):
15083 2007-08-30 Simon Hausmann <hausmann@kde.org>
15087 When scrolling with the keyboard don't call update() on the entire widget.
15088 The scrollbar/scrollview implementation is already smart enough to scroll with bitblt
15091 * Api/qwebpage.cpp:
15092 (QWebPage::keyPressEvent):
15094 2007-08-30 Simon Hausmann <hausmann@kde.org>
15098 Fix scrolling with the keyboard if only one of the two scrollbars is visible.
15100 * Api/qwebpage.cpp:
15101 (QWebPage::keyPressEvent):
15103 2007-08-29 Simon Hausmann <hausmann@kde.org>
15109 * WebCoreSupport/FrameLoaderClientQt.cpp:
15110 (WebCore::FrameLoaderClientQt::objectContentType):
15112 2007-08-19 Mike Hommey <mh+webkit@glandium.org>
15114 Reviewed by George Staikos.
15116 Don't export ICO symbols.
15118 * Plugins/Plugins.pro:
15120 2007-08-19 George Staikos <staikos@kde.org>
15124 * WebCoreSupport/FrameLoaderClientQt.cpp:
15125 (WebCore::FrameLoaderClientQt::createPlugin):
15126 * WebCoreSupport/FrameLoaderClientQt.h:
15128 2007-08-10 Lars Knoll <lars@trolltech.com>
15130 Reviewed and landed by Simon.
15132 Limit the set of properties from the computed style to apply to Qt
15133 plugin widgets, as only a few of them make sense.
15135 * WebCoreSupport/FrameLoaderClientQt.cpp:
15138 2007-08-10 Lars Knoll <lars@trolltech.com>
15142 Use <object>'s classid attribute for creation of plugins through QWebPage::createPlugin.
15144 * Api/qwebpage.cpp:
15145 (QWebPage::createPlugin):
15147 * WebCoreSupport/FrameLoaderClientQt.cpp:
15148 (WebCore::FrameLoaderClientQt::objectContentType):
15149 (WebCore::FrameLoaderClientQt::createPlugin):
15151 2007-08-10 Simon Hausmann <hausmann@kde.org>
15155 Added support for network jobs from Qt resources using the qrc protocol.
15157 * Api/qwebnetworkinterface.cpp:
15158 (QWebNetworkInterface::addJob):
15160 2007-08-10 Simon Hausmann <hausmann@kde.org>
15164 Added support for "application/x-qt-styled-widget" that is treated like "application/x-qt-plugin" but also
15165 gets a Qt widget stylesheet set from the CSS computed style and the element style attribute.
15167 * WebCoreSupport/FrameLoaderClientQt.cpp:
15168 (WebCore::FrameLoaderClientQt::objectContentType):
15170 (WebCore::FrameLoaderClientQt::createPlugin):
15172 2007-08-10 Simon Hausmann <hausmann@kde.org>
15176 Added virtual QWebPage::createPlugin that is called for embedded objects with the mime type "application/x-qt-plugin"
15177 and fixed widget embedding by setting the right QWidget parent.
15179 * Api/qwebpage.cpp:
15180 (QWebPage::createPlugin):
15182 * WebCoreSupport/FrameLoaderClientQt.cpp:
15183 (WebCore::FrameLoaderClientQt::objectContentType):
15184 (WebCore::FrameLoaderClientQt::createPlugin):
15186 2007-08-02 George Staikos <staikos@kde.org>
15190 Add an interface for the useragent string.
15192 * Api/qwebpage.cpp:
15193 (QWebPage::userAgentStringForUrl):
15195 * WebCoreSupport/FrameLoaderClientQt.cpp:
15196 (WebCore::FrameLoaderClientQt::userAgent):
15198 2007-08-01 Adam Treat <adam.treat@torchmobile.com>
15200 Reviewed by George Staikos.
15202 Add an interface to manage global history for clients
15205 * Api/qwebhistoryinterface.cpp: Added.
15206 (WebCore::historyContains):
15207 (gCleanupInterface):
15208 (QWebHistoryInterface::setDefaultInterface):
15209 (QWebHistoryInterface::defaultInterface):
15210 (QWebHistoryInterface::QWebHistoryInterface):
15211 * Api/qwebhistoryinterface.h: Added.
15213 2007-07-30 Adam Treat <adam.treat@torchmobile.com>
15217 * WebCoreSupport/EditorClientQt.cpp:
15218 (WebCore::EditorClientQt::shouldMoveRangeAfterDelete):
15219 * WebCoreSupport/EditorClientQt.h:
15221 2007-07-30 Simon Hausmann <hausmann@kde.org>
15225 Link QtLauncher into $$OUTPUT_DIR/bin
15227 * QtLauncher/QtLauncher.pro:
15229 2007-07-29 Adam Treat <adam.treat@torchmobile.com>
15231 Reviewed by George Staikos.
15233 Change QWebPage::paintEvent to draw using the individual rects provided
15234 via the QRegion and set the widget to use opaque paint events.
15236 These changes greatly reduce the cpu load as we are no longer painting the
15237 entire page for each 1px scroll :P
15239 * Api/qwebframe.cpp:
15240 (QWebFrame::render):
15241 * Api/qwebpage.cpp:
15242 (QWebPage::QWebPage):
15243 (QWebPage::paintEvent):
15244 * WebCoreSupport/ChromeClientQt.cpp:
15245 (WebCore::ChromeClientQt::addToDirtyRegion):
15247 2007-07-29 Adam Treat <adam.treat@torchmobile.com>
15249 Reviewed by Alexey Proskuryakov.
15251 Respect the margins when creating frames.
15252 Set the scroll mode to always off like we did before the rendered
15253 frames patch and the other ports do now.
15255 * Api/qwebframe.cpp:
15256 (QWebFramePrivate::init):
15258 2007-07-27 Holger Hans Peter Freyther <zecke@selfish.org>
15262 Don't create an app bundle on OSX to keep WebKitTools/Scripts/run-launcher working.
15264 * QtLauncher/QtLauncher.pro:
15266 2007-07-27 Simon Hausmann <hausmann@kde.org>
15270 Fix compilation with MSVC.
15272 * Api/qwebpagehistory.cpp:
15273 (QWebPageHistory::operator=):
15274 * Api/qwebpagehistory.h:
15275 * Api/qwebsettings.cpp:
15276 (QWebSettings::operator=):
15277 * Api/qwebsettings.h:
15279 2007-07-26 Qing Zhao <qing@staikos.net>
15281 Reviewed by George Staikos.
15283 Add a signal for history notification.
15286 * WebCoreSupport/FrameLoaderClientQt.cpp:
15288 2007-07-24 Adam Treat <adam.treat@torchmobile.com>
15290 Reviewed by Niko and Lars.
15292 These are no longer necessary or used.
15294 * WebCoreSupport/FrameLoaderClientQt.cpp:
15295 * WebCoreSupport/FrameLoaderClientQt.h:
15297 2007-07-20 Adam Treat <adam@staikos.net>
15299 Reviewed by George Staikos.
15301 Add a signal for first layout and add the action type for the policy
15304 * Api/qwebpage.cpp:
15305 (QWebPagePrivate::navigationRequested):
15306 (QWebPage::navigationRequested):
15308 * Api/qwebpage_p.h:
15309 * WebCoreSupport/FrameLoaderClientQt.cpp:
15310 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
15311 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
15313 2007-07-19 Adam Treat <adam.treat@torchmobile.com>
15315 Reviewed by George.
15317 Do a recursive layout on the frame's children. This fixes a
15318 segfault found when rendering some framesets.
15320 * Api/qwebframe.cpp:
15321 (QWebFrame::render):
15322 (QWebFrame::layout):
15325 2007-07-18 Timothy Hatcher <timothy@apple.com>
15329 Make the Page with the now required InspectorClient.
15331 * Api/qwebpage.cpp:
15332 (QWebPagePrivate::QWebPagePrivate):
15333 * WebKitPart/WebKitPart.cpp:
15334 (WebKitPart::initView):
15336 2007-07-18 Sam Weinig <sam@webkit.org>
15340 * Api/qwebnetworkinterface.cpp:
15341 (QWebNetworkManager::started):
15342 * WebCoreSupport/FrameLoaderClientQt.cpp:
15343 (WebCore::FrameLoaderClientQt::canShowMIMEType):
15344 (WebCore::FrameLoaderClientQt::objectContentType):
15346 2007-07-18 Lars Knoll <lars@trolltech.com>
15348 Reviewed by Zack & Simon
15350 Reallow setting of scrollbar policies on QWebFrame.
15352 * Api/qwebframe.cpp:
15353 (QWebFrame::verticalScrollBarPolicy):
15354 (QWebFrame::setVerticalScrollBarPolicy):
15355 (QWebFrame::horizontalScrollBarPolicy):
15358 2007-07-17 Adam Treat <adam.treat@torchmobile.com>
15362 * WebCoreSupport/FrameLoaderClientQt.cpp:
15363 (WebCore::FrameLoaderClientQt::createFrame):
15365 2007-07-17 Holger Hans Peter Freyther <zecke@selfish.org>
15367 Blind build fix for Qt after r24366 by adding the additional
15368 WebCore::ResourceRequest& parameter to the download method.
15370 * WebCoreSupport/FrameLoaderClientQt.cpp:
15371 (WebCore::FrameLoaderClientQt::download):
15372 * WebCoreSupport/FrameLoaderClientQt.h:
15374 2007-07-17 Adam Roben <aroben@apple.com>
15376 Remove ContextMenuClientQt::shouldIncludeInspectElementItem
15380 * WebCoreSupport/ContextMenuClientQt.cpp:
15381 * WebCoreSupport/ContextMenuClientQt.h:
15383 2007-07-16 Adam Roben <aroben@apple.com>
15385 Updated ChromeClientQt for ChromeClient changes.
15387 Reviewed by Darin Adler.
15389 * WebCoreSupport/ChromeClientQt.cpp:
15390 (WebCore::ChromeClientQt::print): Added a Frame* parameter.
15391 * WebCoreSupport/ChromeClientQt.h: Ditto.
15393 2007-07-13 Mark Rowe <mrowe@apple.com>
15397 Build fix. Stub out ChromeClientQt::print.
15399 * WebCoreSupport/ChromeClientQt.cpp:
15400 (WebCore::ChromeClientQt::print):
15401 * WebCoreSupport/ChromeClientQt.h:
15403 2007-07-12 George Staikos <staikos@kde.org>
15405 Qt build fix for assertions.
15407 * Api/qwebnetworkinterface.cpp:
15408 (QWebNetworkManager::add):
15410 2007-07-12 George Staikos <staikos@kde.org>
15414 * Api/qwebnetworkinterface.cpp:
15415 (QWebNetworkManager::add):
15417 2007-07-10 Mark Rowe <mrowe@apple.com>
15419 Qt build fix after r24126.
15421 * Api/qwebframe.cpp:
15422 (QWebFrame::evaluateJavaScript):
15424 2007-07-10 Eli Fidler <eli@staikos.net>
15426 Reviewed by George Staikos.
15428 Properly url-decode data urls.
15430 * Api/qwebnetworkinterface.cpp:
15431 (QWebNetworkInterfacePrivate::parseDataUrl):
15433 2007-07-09 Adam Treat <adam@staikos.net>
15435 Reviewed by George Staikos.
15437 Convert QWebFrame from a QFrame to a pure QObject to eliminate all
15440 * Api/qwebframe.cpp:
15441 (QWebFramePrivate::init):
15442 (QWebFramePrivate::parentFrame):
15443 (QWebFrame::QWebFrame):
15444 (QWebFrame::render):
15446 (QWebFrame::geometry):
15447 (QWebFrame::evaluateJavaScript):
15448 (QWebFrame::mouseMoveEvent):
15449 (QWebFrame::mousePressEvent):
15450 (QWebFrame::mouseDoubleClickEvent):
15451 (QWebFrame::mouseReleaseEvent):
15452 (QWebFrame::wheelEvent):
15454 * Api/qwebobjectpluginconnector.cpp:
15455 (QWebObjectPluginConnector::pluginParentWidget):
15456 * Api/qwebpage.cpp:
15457 (QWebPagePrivate::QWebPagePrivate):
15458 (QWebPagePrivate::createMainFrame):
15459 (QWebPage::QWebPage):
15460 (QWebPage::javaScriptAlert):
15461 (QWebPage::javaScriptConfirm):
15462 (QWebPage::javaScriptPrompt):
15463 (QWebPage::resizeEvent):
15464 (QWebPage::paintEvent):
15465 (QWebPage::mouseMoveEvent):
15466 (QWebPage::mousePressEvent):
15467 (QWebPage::mouseDoubleClickEvent):
15468 (QWebPage::mouseReleaseEvent):
15469 (QWebPage::wheelEvent):
15470 (QWebPage::keyPressEvent):
15471 (QWebPage::keyReleaseEvent):
15472 (QWebPage::focusInEvent):
15473 (QWebPage::focusOutEvent):
15474 (QWebPage::focusNextPrevChild):
15475 (QWebPage::chooseFile):
15477 * Api/qwebpage_p.h:
15478 * WebCoreSupport/ChromeClientQt.cpp:
15479 (WebCore::ChromeClientQt::addToDirtyRegion):
15481 2007-07-09 George Staikos <staikos@kde.org>
15483 Fix a minor memory leak in the loader.
15485 * Api/qwebnetworkinterface.cpp:
15486 (gCleanupInterface):
15487 (QWebNetworkInterface::setDefaultInterface):
15488 (QWebNetworkInterface::defaultInterface):
15490 2007-07-09 George Staikos <staikos@kde.org>
15492 Fix a massive memory leak in the loader.
15494 * Api/qwebnetworkinterface.cpp:
15495 (QWebNetworkManager::httpConnectionClosed):
15496 (WebCoreHttp::~WebCoreHttp):
15498 2007-07-09 George Staikos <staikos@kde.org>
15502 Rework much of the HTTP stuff to make it more stable, and add SSL and
15503 proxy support. Major memory leak also discovered but it needs more
15504 research as the obvious fix causes crashes.
15506 * Api/qwebnetworkinterface.cpp:
15507 (QWebNetworkManager::add):
15508 (QWebNetworkManager::started):
15509 (QWebNetworkManager::data):
15510 (WebCoreHttp::WebCoreHttp):
15511 (WebCoreHttp::~WebCoreHttp):
15512 (WebCoreHttp::request):
15513 (WebCoreHttp::scheduleNextRequest):
15514 (WebCoreHttp::getConnection):
15515 (WebCoreHttp::onResponseHeaderReceived):
15516 (WebCoreHttp::onReadyRead):
15517 (WebCoreHttp::onRequestFinished):
15518 (WebCoreHttp::onDone):
15519 (WebCoreHttp::onStateChanged):
15520 (WebCoreHttp::onSslErrors):
15521 (WebCoreHttp::onAuthenticationRequired):
15522 (WebCoreHttp::onProxyAuthenticationRequired):
15523 * Api/qwebnetworkinterface.h:
15524 * Api/qwebnetworkinterface_p.h:
15525 (WebCore::WebCoreHttp::HttpConnection::HttpConnection):
15527 2007-07-06 Adam Treat <adam@staikos.net>
15529 Reviewed by George Staikos.
15531 Convert QWebFrame to a QFrame from a scroll area.
15533 * Api/qwebframe.cpp:
15534 (QWebFramePrivate::init):
15535 (QWebFramePrivate::parentFrame):
15536 (QWebFramePrivate::horizontalScrollBar):
15537 (QWebFramePrivate::verticalScrollBar):
15538 (QWebFrame::QWebFrame):
15539 (QWebFrame::resizeEvent):
15540 (QWebFrame::suppressScrollbars):
15541 (QWebFrame::paintEvent):
15542 (QWebFrame::mouseMoveEvent):
15543 (QWebFrame::mousePressEvent):
15544 (QWebFrame::mouseDoubleClickEvent):
15545 (QWebFrame::mouseReleaseEvent):
15546 (QWebFrame::wheelEvent):
15547 (QWebFrame::keyPressEvent):
15548 (QWebFrame::focusInEvent):
15549 (QWebFrame::focusOutEvent):
15550 (QWebFrame::evaluateJavaScript):
15552 * Api/qwebframe_p.h:
15553 * Api/qwebobjectpluginconnector.cpp:
15554 (QWebObjectPluginConnector::pluginParentWidget):
15556 2007-07-04 Adam Roben <aroben@apple.com>
15558 Added a stub for ChromeClientQt::setToolTip
15562 * WebCoreSupport/ChromeClientQt.cpp:
15563 (WebCore::ChromeClientQt::setToolTip):
15564 * WebCoreSupport/ChromeClientQt.h:
15566 2007-07-04 Adam Roben <aroben@apple.com>
15568 Added a stub for ChromeClientQt::mouseDidMoveOverElement
15572 * WebCoreSupport/ChromeClientQt.cpp:
15573 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
15574 * WebCoreSupport/ChromeClientQt.h:
15576 2007-06-28 Simon Hausmann <hausmann@kde.org>
15580 Propagate mouse double click events from Qt to WebCore.
15582 * Api/qwebframe.cpp:
15583 (QWebFrame::mouseDoubleClickEvent):
15586 2007-06-28 Simon Hausmann <hausmann@kde.org>
15590 Implemented clipboard functions in QWebPage, in particular can(Cut|Copy|Paste), cut/copy/paste as slot as well as a selectionChanged() signal.
15592 * Api/qwebpage.cpp:
15593 (QWebPage::canCut):
15594 (QWebPage::canCopy):
15595 (QWebPage::canPaste):
15600 * WebCoreSupport/EditorClientQt.cpp:
15602 2007-06-27 George Staikos <staikos@kde.org>
15604 Compile with various Qt configurations.
15606 * Api/qwebnetworkinterface.cpp:
15607 (WebCoreHttp::scheduleNextRequest):
15608 * Api/qwebpage.cpp:
15609 (QWebPage::javaScriptPrompt):
15610 (QWebPage::dragEnterEvent):
15611 (QWebPage::dragLeaveEvent):
15612 (QWebPage::dragMoveEvent):
15613 (QWebPage::dropEvent):
15614 (QWebPage::chooseFile):
15616 * Api/qwebpage_p.h:
15617 * WebCoreSupport/DragClientQt.cpp:
15618 (WebCore::DragClientQt::startDrag):
15620 2007-06-27 Eli Fidler <eli@staikos.net>
15622 Reviewed by George Staikos.
15624 Check for QT_NO_IMAGE_TEXT and compile either way.
15626 * Plugins/ICOHandler.cpp:
15627 (ICOHandler::read):
15629 2007-06-27 Eli Fidler <eli@staikos.net>
15631 Reviewed by George Staikos.
15633 Remove QT3_SUPPORT dependency in the ICO plugin.
15635 * Plugins/ICOHandler.cpp:
15636 (IcoHeader::loadFromDIB):
15638 2007-06-25 George Staikos <staikos@kde.org>
15642 Start to add proxy and SSL support to WebKit Qt. Proxy works
15643 unauthenticated. Added hooks to be able to add authentication.
15644 Also fixes some network errors.
15646 * Api/qwebnetworkinterface.cpp:
15647 (QWebNetworkRequestPrivate::setURL):
15648 (QWebNetworkJob::frame):
15649 (WebCoreHttp::WebCoreHttp):
15650 (WebCoreHttp::scheduleNextRequest):
15651 (WebCoreHttp::onRequestFinished):
15652 (WebCoreHttp::onDone):
15653 (WebCoreHttp::onSslErrors):
15654 (WebCoreHttp::onAuthenticationRequired):
15655 (WebCoreHttp::onProxyAuthenticationRequired):
15656 * Api/qwebnetworkinterface.h:
15657 * Api/qwebnetworkinterface_p.h:
15658 * Api/qwebpage.cpp:
15659 (QWebPage::setNetworkProxy):
15660 (QWebPage::networkProxy):
15662 * Api/qwebpage_p.h:
15664 2007-06-21 Adam Treat <adam@staikos.net>
15666 Reviewed by George Staikos.
15668 Implement the default resources on Qt.
15670 * Api/qwebpage.cpp:
15672 * Api/qwebsettings.cpp:
15673 (QWebSettings::setWebGraphic):
15674 (QWebSettings::webGraphic):
15675 (loadResourcePixmap):
15676 * Api/qwebsettings.h:
15678 2007-06-15 Adam Treat <adam@staikos.net>
15680 Reviewed by George Staikos.
15682 Add ICO support to the Qt build.
15684 * Api/qwebpage.cpp:
15687 * Api/qwebsettings.cpp:
15688 (QWebSettings::setIconDatabaseEnabled):
15689 (QWebSettings::iconDatabaseEnabled):
15690 * Api/qwebsettings.h:
15692 * Plugins/ICOHandler.cpp: Added.
15693 (IcoHeader::operator >>):
15694 (IcoHeader::BMP_INFOHDR::):
15695 (IcoHeader::operator<<):
15696 (IcoHeader::LessDifference::LessDifference):
15697 (IcoHeader::LessDifference::operator ()):
15698 (IcoHeader::loadFromDIB):
15699 (ICOHandler::ICOHandler):
15700 (ICOHandler::canRead):
15701 (ICOHandler::read):
15702 (ICOHandler::write):
15703 (ICOHandler::name):
15705 (ICOPlugin::capabilities):
15706 (ICOPlugin::create):
15707 * Plugins/ICOHandler.h: Added.
15708 * Plugins/Plugins.pro: Added.
15709 * WebCoreSupport/FrameLoaderClientQt.cpp:
15710 (WebCore::FrameLoaderClientQt::dispatchDidReceiveIcon):
15712 2007-06-15 George Staikos <staikos@kde.org>
15714 Fixing the Qt build.
15716 * WebCoreSupport/ContextMenuClientQt.cpp:
15717 (WebCore::ContextMenuClientQt::shouldIncludeInspectElementItem):
15718 * WebCoreSupport/ContextMenuClientQt.h:
15720 2007-06-20 Adam Roben <aroben@apple.com>
15722 More speculative Qt build fixes.
15724 Add a stub implementation of InspectorClientQt.
15726 * WebCoreSupport/InspectorClientQt.cpp: Added.
15727 (WebCore::InspectorClientQt::inspectorDestroyed):
15728 (WebCore::InspectorClientQt::createPage):
15729 (WebCore::InspectorClientQt::showWindow):
15730 (WebCore::InspectorClientQt::closeWindow):
15731 (WebCore::InspectorClientQt::attachWindow):
15732 (WebCore::InspectorClientQt::detachWindow):
15733 (WebCore::InspectorClientQt::highlight):
15734 (WebCore::InspectorClientQt::hideHighlight):
15735 * WebCoreSupport/InspectorClientQt.h: Added.
15737 2007-06-19 George Staikos <staikos@kde.org>
15739 Reviewed by Tim Hatcher.
15743 * Api/qwebnetworkinterface.cpp:
15744 (QWebNetworkInterface::addJob):
15745 (QWebNetworkInterface::cancelJob):
15746 (WebCoreHttp::WebCoreHttp):
15748 2007-06-14 George Staikos <staikos@kde.org>
15752 Add evaluateJavaScript() method.
15754 * Api/qwebframe.cpp:
15755 (QWebFrame::evaluateJavaScript):
15758 2007-06-14 George Staikos <staikos@kde.org>
15762 Implement most of the editing commands, better focus handling, fix some
15763 keyboard and mouse handling, and add keyboard navigation. May be
15764 refactored later as the key switches are ugly.
15766 * Api/qwebframe.cpp:
15767 (QWebFramePrivate::init):
15768 (QWebFrame::mousePressEvent):
15769 (QWebFrame::mouseReleaseEvent):
15770 (QWebFrame::wheelEvent):
15771 (QWebFrame::keyPressEvent):
15772 (QWebFrame::keyReleaseEvent):
15773 (QWebFrame::focusInEvent):
15774 (QWebFrame::focusOutEvent):
15775 (QWebFrame::focusNextPrevChild):
15777 * Api/qwebframe_p.h:
15778 * WebCoreSupport/EditorClientQt.cpp:
15779 (WebCore::EditorClientQt::handleKeypress):
15781 2007-06-14 George Staikos <staikos@kde.org>
15785 Implement all of the Javascript dialogs and file chooser.
15786 Also makes the statusbar virtual into a signal and shuffles some
15787 virtuals around a bit. The helper in FrameLoaderClientQt may go away
15790 * Api/qwebpage.cpp:
15791 (QWebPagePrivate::QWebPagePrivate):
15792 (QWebPage::javaScriptAlert):
15793 (QWebPage::javaScriptConfirm):
15794 (QWebPage::javaScriptPrompt):
15795 (QWebPage::chooseFile):
15797 * WebCoreSupport/ChromeClientQt.cpp:
15798 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
15799 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
15800 (WebCore::ChromeClientQt::runJavaScriptAlert):
15801 (WebCore::ChromeClientQt::runJavaScriptConfirm):
15802 (WebCore::ChromeClientQt::runJavaScriptPrompt):
15803 (WebCore::ChromeClientQt::setStatusbarText):
15804 * WebCoreSupport/FrameLoaderClientQt.cpp:
15805 (WebCore::FrameLoaderClientQt::chooseFile):
15806 * WebCoreSupport/FrameLoaderClientQt.h:
15808 2007-06-14 Simon Hausmann <hausmann@kde.org>
15812 Removed QWebHistoryItem::parent() as it is not implemented and WebCore's
15814 HistoryItem itself doesn't seem to have a parent pointer either.
15816 * Api/qwebpagehistory.h:
15818 2007-06-14 Simon Hausmann <hausmann@kde.org>
15822 Make it possible to copy QWebHistoryItem objects.
15824 * Api/qwebpagehistory.cpp:
15825 * Api/qwebpagehistory.h:
15827 2007-06-14 Lars Knoll <lars@trolltech.com>
15831 Fix a crash when a request from the plugin resulted
15832 in a HTTP redirect.
15834 * Api/qwebnetworkinterface.cpp:
15835 (QWebNetworkManager::started):
15837 2007-06-14 Lars Knoll <lars@trolltech.com>
15839 Reviewed by George.
15841 Work around a bug in Qt's QHttp implementation and
15842 get web pages to load again.
15844 * Api/qwebpage.cpp:
15847 2007-06-13 Simon Hausmann <hausmann@kde.org>
15851 Added a make install target that installs the Qt port and renamed
15852 WebKitQt to QtWebKit
15854 * Api/headers.pri: Added.
15855 * Api/qtwebkit.prf: Added.
15857 2007-06-13 Simon Hausmann <hausmann@kde.org>
15861 Added httpHeaderField setter/getter to QWebNetworkRequest for convenience.
15863 * Api/qwebnetworkinterface.cpp:
15864 * Api/qwebnetworkinterface.h:
15866 2007-06-13 Simon Hausmann <hausmann@kde.org>
15870 Changed QWebObjectPluginConnector::requestUrl to take a QWebNetworkRequest as argument.
15872 * Api/qwebnetworkinterface.h:
15873 * Api/qwebobjectpluginconnector.cpp:
15874 (QWebObjectPluginConnector::requestUrl):
15875 * Api/qwebobjectpluginconnector.h:
15877 2007-06-13 Simon Hausmann <hausmann@kde.org>
15881 Added a QWebNetworkRequest convenience constructor.
15883 * Api/qwebnetworkinterface.cpp:
15884 * Api/qwebnetworkinterface.h:
15885 * Api/qwebpage.cpp:
15888 2007-06-13 Simon Hausmann <hausmann@kde.org>
15892 Changed the QWebPage::open(const QUrl &url, const QHttpRequestHeader &httpHeader, const QByteArray &postData)
15893 overload to take a QWebNetworkRequest instead.
15895 * Api/qwebpage.cpp:
15899 2007-06-13 Simon Hausmann <hausmann@kde.org>
15903 In QWebPage::open(const QUrl &, const QHttpRequestHeader &, ...) don't make the population
15904 of the WebCore::ResourceRequest depend on the validity of the QHttpRequestHeader but just
15905 pick the individual fields if we can use them.
15907 * Api/qwebpage.cpp:
15910 2007-06-13 Simon Hausmann <hausmann@kde.org>
15914 Minor QWebNetworkRequet API fixlet
15916 * Api/qwebnetworkinterface.cpp:
15917 * Api/qwebnetworkinterface.h:
15919 2007-06-13 Simon Hausmann <hausmann@kde.org>
15923 Use QWebNetworkRequest for QWebPage::navigationRequested.
15925 * Api/qwebnetworkinterface.cpp:
15926 * Api/qwebnetworkinterface.h:
15927 * Api/qwebpage.cpp:
15928 (QWebPagePrivate::navigationRequested):
15929 (QWebPage::navigationRequested):
15931 * Api/qwebpage_p.h:
15932 * WebCoreSupport/FrameLoaderClientQt.cpp:
15933 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
15935 2007-06-13 Simon Hausmann <hausmann@kde.org>
15939 Some docs for QWebNetworkRequest
15941 * Api/qwebnetworkinterface.cpp:
15942 (QWebNetworkRequest::QWebNetworkRequest):
15943 (QWebNetworkRequest::~QWebNetworkRequest):
15945 2007-06-13 Simon Hausmann <hausmann@kde.org>
15949 Moved QWebNetworkJob::Method enum into QWebNetworkRequest.
15951 * Api/qwebnetworkinterface.h:
15952 * Api/qwebobjectpluginconnector.cpp:
15953 (QWebObjectPluginConnector::requestUrl):
15954 * Api/qwebobjectpluginconnector.h:
15956 2007-06-13 Simon Hausmann <hausmann@kde.org>
15960 Rename QWebNetworkJob::request() into QWebNetworkJob::httpHeader() and added
15962 * Api/qwebnetworkinterface.cpp:
15963 (QWebNetworkJob::postData):
15964 (WebCoreHttp::WebCoreHttp):
15965 (WebCoreHttp::scheduleNextRequest):
15966 * Api/qwebnetworkinterface.h:
15968 2007-06-13 Simon Hausmann <hausmann@kde.org>
15972 Introduce QWebNetworkRequest in the public API.
15974 * Api/qwebnetworkinterface.cpp:
15975 (QWebNetworkRequestPrivate::init):
15976 * Api/qwebnetworkinterface.h:
15977 * Api/qwebnetworkinterface_p.h:
15978 * WebCoreSupport/FrameLoaderClientQt.cpp:
15979 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
15981 2007-06-13 Simon Hausmann <hausmann@kde.org>
15985 Changed QWebNetworkJobPrivate to aggregate a QWebNetworkRequest instead of inheriting from it.
15987 * Api/qwebnetworkinterface.cpp:
15988 (QWebNetworkManager::add):
15989 (QWebNetworkManager::started):
15990 (QWebNetworkManager::data):
15991 (QWebNetworkManager::finished):
15992 * Api/qwebnetworkinterface_p.h:
15993 * Api/qwebobjectpluginconnector.cpp:
15994 (QWebObjectPluginConnector::requestUrl):
15996 2007-06-13 Simon Hausmann <hausmann@kde.org>
16000 Rename QWebNetworkRequest::request into QWebNetworkRequest::httpHeader.
16002 * Api/qwebnetworkinterface.cpp:
16003 (QWebNetworkRequest::init):
16004 (QWebNetworkRequest::setURL):
16005 (QWebNetworkManager::add):
16006 (QWebNetworkManager::started):
16007 * Api/qwebnetworkinterface_p.h:
16008 * WebCoreSupport/FrameLoaderClientQt.cpp:
16009 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
16011 2007-06-12 Lars Knoll <lars@trolltech.com>
16013 Reviewed by George Staikos.
16015 Remove duplicate symbols.
16017 * Api/qwebobjectplugin_p.h:
16019 2007-06-13 Lars Knoll <lars@trolltech.com>
16023 Fix compilation, and remove dependency on Qt
16026 * Api/qwebobjectplugin_p.h:
16027 (QWebFactoryLoader::supportsMimeType):
16029 2007-06-13 Lars Knoll <lars@trolltech.com>
16033 Parts of the patch done by Zack.
16034 Fix up some parts in the implementation of QWebNetworkInterface
16035 so it can be used by plugins.
16036 Change the plugin API so we can actually get all the information
16037 required by the JS bridge from them as well.
16039 * Api/qwebnetworkinterface.cpp:
16040 (QWebNetworkJob::cancelled):
16041 (QWebNetworkManager::cancel):
16042 (QWebNetworkManager::started):
16043 (QWebNetworkManager::finished):
16044 * Api/qwebobjectplugin.cpp:
16045 (QWebFactoryLoader::QWebFactoryLoader):
16046 (QWebFactoryLoader::descriptionForName):
16047 (QWebFactoryLoader::mimetypesForName):
16048 (QWebFactoryLoader::mimeTypeForExtension):
16049 (QWebFactoryLoader::extensions):
16050 (QWebFactoryLoader::nameForMimetype):
16051 (QWebFactoryLoader::create):
16052 (QWebObjectPlugin::descriptionForKey):
16053 (QWebObjectPlugin::mimetypesForKey):
16054 * Api/qwebobjectplugin.h:
16055 * Api/qwebobjectplugin_p.h:
16056 (QWebFactoryLoader::names):
16057 * Api/qwebobjectpluginconnector.cpp:
16058 (QWebObjectPluginConnector::requestUrl):
16059 * Api/qwebpage.cpp:
16060 (QWebPage::networkInterface):
16062 2007-06-11 Simon Hausmann <hausmann@kde.org>
16066 Added a QWebPage::open overload to allow specifying the http header and post data.
16067 (it's an overload instead of a merged openUrl to avoid including qhttp.h in qwebpage.h,
16068 which would imply that one has to have QT += network in the .pro file for using WebKitQt)
16070 * Api/qwebpage.cpp:
16073 2007-06-11 Simon Hausmann <hausmann@kde.org>
16077 Added the possibility to intercept url requests through QWebPage::navigationRequested.
16079 * Api/qwebpage.cpp:
16080 (QWebPagePrivate::QWebPagePrivate):
16081 (QWebPage::createFrame):
16083 * Api/qwebpage_p.h:
16084 * WebCoreSupport/FrameLoaderClientQt.cpp:
16086 2007-06-11 Simon Hausmann <hausmann@kde.org>
16090 Added a QWebNetworkRequest::init overload that takes a WebCore::ResourceRequest,
16091 to be called from FrameLoaderClientQt in the near future.
16093 * Api/qwebnetworkinterface.cpp:
16094 (QWebNetworkManager::add):
16095 * Api/qwebnetworkinterface_p.h:
16097 2007-06-11 Simon Hausmann <hausmann@kde.org>
16101 Moved the postData setup into QWebNetworkRequest::init.
16103 * Api/qwebnetworkinterface.cpp:
16104 (QWebNetworkRequest::init):
16105 (QWebNetworkManager::add):
16107 2007-06-11 Simon Hausmann <hausmann@kde.org>
16111 Moved HTTP header field propagation to QWebNetworkRequest::init.
16113 * Api/qwebnetworkinterface.cpp:
16114 (QWebNetworkRequest::init):
16115 (QWebNetworkManager::add):
16117 2007-06-11 Simon Hausmann <hausmann@kde.org>
16121 Started moving the code to separate a WebCore::ResourceRequest into a QUrl, postData
16122 and QHttpRequestHeader into a separate little QWebNetworkRequest struct.
16124 * Api/qwebnetworkinterface.cpp:
16125 (QWebNetworkRequest::init):
16126 (QWebNetworkManager::add):
16127 * Api/qwebnetworkinterface_p.h:
16128 * Api/qwebobjectpluginconnector.cpp:
16129 (QWebObjectPluginConnector::requestUrl):
16131 2007-06-11 Zack Rusin <zrusin@trolltech.com>
16135 Forgot to export the plugin connector.
16137 * Api/qwebobjectpluginconnector.h
16139 2007-06-08 Lars Knoll <lars@trolltech.com>
16143 Add a QWebObjectPluginConnector class. The class will
16144 facility communication between the plugin and WebKit.
16145 Currently it's used to make the plugin network capable.
16147 * Api/qwebnetworkinterface.cpp:
16148 (QWebNetworkJobPrivate::setDefaults):
16149 (QWebNetworkManager::add):
16150 (QWebNetworkManager::started):
16151 (QWebNetworkManager::data):
16152 (QWebNetworkManager::finished):
16153 * Api/qwebnetworkinterface.h:
16154 * Api/qwebnetworkinterface_p.h:
16155 (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
16156 * Api/qwebobjectplugin.cpp:
16157 (QWebFactoryLoader::create):
16158 * Api/qwebobjectplugin.h:
16159 * Api/qwebobjectplugin_p.h:
16160 * Api/qwebobjectpluginconnector.cpp: Added.
16161 (QWebObjectPluginConnector::QWebObjectPluginConnector):
16162 (QWebObjectPluginConnector::frame):
16163 (QWebObjectPluginConnector::pluginParentWidget):
16164 (QWebObjectPluginConnector::requestUrl):
16165 * Api/qwebobjectpluginconnector.h: Added.
16166 (QWebObjectPluginConnector::):
16167 * WebCoreSupport/FrameLoaderClientQt.cpp:
16168 (WebCore::FrameLoaderClientQt::createPlugin):
16170 2007-06-06 Lars Knoll <lars@trolltech.com>
16174 Add an API to create and load plugins.
16175 Don't include moc files by hand anymore, rather let
16178 * Api/qcookiejar.cpp:
16179 (QCookieJar::cookieJar):
16180 * Api/qwebframe.cpp:
16181 (QWebFrame::scrollContentsBy):
16182 * Api/qwebnetworkinterface.cpp:
16183 * Api/qwebobjectplugin.cpp: Added.
16184 (QWebFactoryLoader::QWebFactoryLoader):
16185 (QWebFactoryLoader::self):
16186 (QWebFactoryLoader::mimeTypeForExtension):
16187 (QWebFactoryLoader::create):
16188 (QWebObjectPlugin::QWebObjectPlugin):
16189 (QWebObjectPlugin::~QWebObjectPlugin):
16190 (QWebObjectPlugin::extensionsForMimetype):
16191 * Api/qwebobjectplugin.h: Added.
16192 * Api/qwebobjectplugin_p.h: Added.
16193 (QWebFactoryLoader::mimeTypes):
16194 (QWebFactoryLoader::extensions):
16195 (QWebFactoryLoader::supportsMimeType):
16196 * Api/qwebpage.cpp:
16197 (QWebPage::settings):
16198 * WebCoreSupport/FrameLoaderClientQt.cpp:
16199 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
16200 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
16201 (WebCore::FrameLoaderClientQt::objectContentType):
16202 (WebCore::FrameLoaderClientQt::createPlugin):
16204 2007-05-28 Zack Rusin <zrusin@trolltech.com>
16206 Reviewed by andersca and simon
16208 Adding public settings Api to the Qt port.
16209 QWebSetting's is a value based settings
16210 object settable on the QWebPage.
16212 * Api/qwebpage.cpp:
16213 (QWebPagePrivate::QWebPagePrivate):
16214 (QWebPage::QWebPage):
16215 (QWebPage::setSettings):
16216 (QWebPage::settings):
16218 * Api/qwebsettings.cpp: Added.
16219 (QWebSettingsPrivate::QWebSettingsPrivate):
16220 (QWebSettings::QWebSettings):
16221 (QWebSettings::~QWebSettings):
16222 (QWebSettings::setMinimumFontSize):
16223 (QWebSettings::minimumFontSize):
16224 (QWebSettings::setMinimumLogicalFontSize):
16225 (QWebSettings::minimumLogicalFontSize):
16226 (QWebSettings::setDefaultFontSize):
16227 (QWebSettings::defaultFontSize):
16228 (QWebSettings::setDefaultFixedFontSize):
16229 (QWebSettings::defaultFixedFontSize):
16230 (QWebSettings::setUserStyleSheetLocation):
16231 (QWebSettings::userStyleSheetLocation):
16232 (QWebSettings::setGlobal):
16233 (QWebSettings::global):
16234 (QWebSettings::setFontFamily):
16235 (QWebSettings::fontFamily):
16236 (QWebSettings::setAttribute):
16237 (QWebSettings::testAttribute):
16238 * Api/qwebsettings.h: Added.
16239 * QtLauncher/main.cpp:
16241 2007-05-27 Kevin Ollivier <kevino@theolliviers.com>
16243 Reviewed by Sam Weinig.
16245 Consolidate all notImplemented() macro definitions into
16246 one header file for all platforms.
16248 * WebCoreSupport/ChromeClientQt.cpp:
16249 * WebCoreSupport/ContextMenuClientQt.cpp:
16250 * WebCoreSupport/EditorClientQt.cpp:
16251 * WebCoreSupport/FrameLoaderClientQt.cpp:
16253 2007-05-25 George Staikos <staikos@kde.org>
16257 The http loader should only ask for .... http cookies!
16259 * Api/qwebnetworkinterface.cpp:
16260 (QWebNetworkManager::add):
16262 2007-05-24 Simon Hausmann <hausmann@kde.org>
16266 Fix multipart/form-data HTTP POSTs. The content-type wasn't set
16267 correctly. Fortunately WebCore does it already, so there's no need
16268 for us to do it since we already transfer all HTTP header fields :)
16270 * Api/qwebnetworkinterface.cpp:
16271 (QWebNetworkManager::add):
16273 2007-05-23 Simon Hausmann <hausmann@kde.org>
16275 Reviewed by Zack, idea from Lars.
16277 Share WebCoreHttp and therefore HTTP connections among multiple
16278 QWebNetworkInterface instances by moving the code into
16279 QWebNetworkManager.
16281 * Api/qwebnetworkinterface.cpp:
16282 (QWebNetworkManager::addHttpJob):
16283 (QWebNetworkManager::cancelHttpJob):
16284 (QWebNetworkManager::httpConnectionClosed):
16285 (QWebNetworkInterface::addJob):
16286 (QWebNetworkInterface::cancelJob):
16287 (WebCoreHttp::scheduleNextRequest):
16288 (WebCoreHttp::onResponseHeaderReceived):
16289 (WebCoreHttp::onReadyRead):
16290 (WebCoreHttp::onRequestFinished):
16291 (WebCoreHttp::cancel):
16292 * Api/qwebnetworkinterface.h:
16293 * Api/qwebnetworkinterface_p.h:
16295 2007-05-23 Simon Hausmann <hausmann@kde.org>
16297 Reviewed by Zack, discussed also with Lars.
16299 Make it possible to specify a per-QWebPage network interface (needed
16300 for the KDE KIO integration).
16302 Merged the file and the network loader into
16303 QWebNetworkInterface(Private), which simplifies the loading code.
16305 When receiving a redirection don't emit the data of the redirected job
16306 to the document. (otherwise the kind of "This page has moved" text
16307 appears right on top of the real page content)
16309 * Api/qwebnetworkinterface.cpp:
16312 (QWebNetworkJob::QWebNetworkJob):
16313 (QWebNetworkJob::networkInterface):
16314 (QWebNetworkManager::add):
16315 (QWebNetworkManager::cancel):
16316 (QWebNetworkManager::data):
16317 (QWebNetworkManager::finished):
16318 (QWebNetworkInterfacePrivate::sendFileData):
16319 (QWebNetworkInterfacePrivate::parseDataUrl):
16320 (QWebNetworkInterfacePrivate::addHttpJob):
16321 (QWebNetworkInterfacePrivate::httpConnectionClosed):
16322 (QWebNetworkInterface::setDefaultInterface):
16323 (QWebNetworkInterface::QWebNetworkInterface):
16324 (QWebNetworkInterface::addJob):
16325 (QWebNetworkInterface::cancelJob):
16326 (WebCoreHttp::scheduleNextRequest):
16327 (WebCoreHttp::onResponseHeaderReceived):
16328 (WebCoreHttp::onReadyRead):
16329 (WebCoreHttp::onRequestFinished):
16330 (WebCoreHttp::cancel):
16331 * Api/qwebnetworkinterface.h:
16332 * Api/qwebnetworkinterface_p.h:
16333 * Api/qwebpage.cpp:
16334 (QWebPagePrivate::QWebPagePrivate):
16335 (QWebPage::setNetworkInterface):
16337 * Api/qwebpage_p.h:
16339 2007-05-23 Lars Knoll <lars@trolltech.com>
16343 Don't do HTTP downloads in a second thread. Simplifies
16344 the code significantly and fixes crashes on some
16347 * Api/qwebnetworkinterface.cpp:
16348 (QWebNetworkManager::add):
16349 (QWebNetworkInterface::QWebNetworkInterface):
16350 (QWebNetworkInterface::addJob):
16351 (QWebNetworkInterface::cancelJob):
16352 (LoaderThread::LoaderThread):
16353 (LoaderThread::run):
16354 (WebCoreHttp::cancel):
16355 (NetworkLoader::NetworkLoader):
16356 (NetworkLoader::request):
16357 (NetworkLoader::cancel):
16358 * Api/qwebnetworkinterface_p.h:
16359 * WebCoreSupport/FrameLoaderClientQt.cpp:
16360 (WebCore::FrameLoaderClientQt::committedLoad):
16361 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
16363 2007-05-23 Lars Knoll <lars@trolltech.com>
16367 * Api/qwebnetworkinterface.cpp:
16368 (QWebNetworkJobPrivate::setURL):
16369 (QWebNetworkManager::started):
16370 Fix Host: line in HTTP headers and resolving of relative URLs
16372 * Api/qwebnetworkinterface_p.h:
16373 Clean up qHash forward declaration a bit.
16375 2007-05-23 Simon Hausmann <hausmann@kde.org>
16379 * QtLauncher/main.cpp:
16380 (MainWindow::MainWindow): Fix loading progress signal/slot connection.
16382 2007-05-22 Simon Hausmann <hausmann@kde.org>
16386 * Api/qwebnetworkinterface.cpp:
16387 (QWebNetworkManager::add): Fix http headers for POST.
16389 2007-05-21 Lars Knoll <lars@trolltech.com>
16393 Remove the userHandle methods from QWebnetworkJob again.
16394 They don't really give us anything and just clutter the API.
16396 * Api/qwebnetworkinterface.cpp:
16397 * Api/qwebnetworkinterface.h:
16398 * Api/qwebnetworkinterface_p.h:
16400 2007-05-21 Simon Hausmann <hausmann@kde.org>
16404 * Api/qwebnetworkinterface.h: Export the net API.
16406 2007-05-21 Lars Knoll <lars@trolltech.com>
16410 Add an API layer for network downloads. Basically QWebnetworkInterface
16411 is an interface class for downloading resources. QWebnetworkJob describes
16412 the actual object to download.
16414 QWebNetworkInterface has a default implementation that replaces the
16415 old ResourceHandleManager class in the Qt port.
16417 * Api/qwebnetworkinterface.cpp: Added.
16418 (QWebNetworkJobPrivate::setURL):
16419 (QWebNetworkJob::QWebNetworkJob):
16420 (QWebNetworkJob::~QWebNetworkJob):
16421 (QWebNetworkJob::url):
16422 (QWebNetworkJob::postData):
16423 (QWebNetworkJob::request):
16424 (QWebNetworkJob::response):
16425 (QWebNetworkJob::setResponse):
16426 (QWebNetworkJob::cancelled):
16427 (QWebNetworkJob::ref):
16428 (QWebNetworkJob::deref):
16429 (QWebNetworkJob::setUserHandle):
16430 (QWebNetworkJob::userHandle):
16431 (QWebNetworkManager::QWebNetworkManager):
16432 (QWebNetworkManager::self):
16433 (QWebNetworkManager::add):
16434 (QWebNetworkManager::cancel):
16435 (QWebNetworkManager::started):
16436 (QWebNetworkManager::data):
16437 (QWebNetworkManager::finished):
16438 (QWebNetworkInterface::setDefaultInterface):
16439 (QWebNetworkInterface::defaultInterface):
16440 (QWebNetworkInterface::QWebNetworkInterface):
16441 (QWebNetworkInterface::~QWebNetworkInterface):
16442 (QWebNetworkInterface::addJob):
16443 (QWebNetworkInterface::cancelJob):
16444 (LoaderThread::LoaderThread):
16445 (LoaderThread::run):
16446 (FileLoader::FileLoader):
16447 (FileLoader::request):
16448 (FileLoader::sendData):
16449 (FileLoader::parseDataUrl):
16450 (WebCoreHttp::WebCoreHttp):
16451 (WebCoreHttp::~WebCoreHttp):
16452 (WebCoreHttp::request):
16453 (WebCoreHttp::scheduleNextRequest):
16454 (WebCoreHttp::getConnection):
16455 (WebCoreHttp::onResponseHeaderReceived):
16456 (WebCoreHttp::onReadyRead):
16457 (WebCoreHttp::onRequestFinished):
16458 (WebCoreHttp::onStateChanged):
16459 (WebCoreHttp::cancel):
16460 (HostInfo::HostInfo):
16463 (NetworkLoader::NetworkLoader):
16464 (NetworkLoader::~NetworkLoader):
16465 (NetworkLoader::request):
16466 (NetworkLoader::connectionClosed):
16467 (NetworkLoader::cancel):
16468 * Api/qwebnetworkinterface.h: Added.
16469 (QWebNetworkJob::setHandle):
16470 (QWebNetworkJob::handle):
16471 * Api/qwebnetworkinterface_p.h: Added.
16472 (WebCore::LoaderThread::):
16473 (WebCore::LoaderThread::waitForSetup):
16474 (WebCore::HostInfo::HostInfo):
16476 2007-05-18 Simon Hausmann <hausmann@kde.org>
16478 Reviewed by Nikolas.
16480 * Api/qwebpage.h: Changed the loadProgressChanged API to use an
16481 percent integer instead of a double precision floating pointer number.
16482 * WebCoreSupport/FrameLoaderClientQt.cpp:
16483 (WebCore::FrameLoaderClientQt::setFrame):
16484 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
16485 * WebCoreSupport/FrameLoaderClientQt.h:
16487 2007-05-18 Marius Bugge Monsen <mbm@trolltech.com>
16489 Reviewed by Zack Rusin.
16491 The default constructed KeyboardEvent has
16492 no PlatformKeyboardEvent.
16494 * WebCoreSupport/EditorClientQt.cpp:
16495 (WebCore::EditorClientQt::handleKeypress):
16497 2007-05-17 Adam Treat <adam@staikos.net>
16499 Reviewed by George Staikos.
16501 - Implement frameLoadCompleted
16502 - Fix build (by George)
16504 * WebCoreSupport/FrameLoaderClientQt.cpp:
16505 (WebCore::FrameLoaderClientQt::frameLoadCompleted):
16506 (WebCore::FrameLoaderClientQt::createFrame):
16508 2007-05-17 Adam Treat <adam@staikos.net>
16510 Reviewed by George Staikos.
16512 Implement canShowMIMEType
16514 * WebCoreSupport/FrameLoaderClientQt.cpp:
16515 (WebCore::FrameLoaderClientQt::canShowMIMEType):
16517 2007-05-16 Lars Knoll <lars@trolltech.com>
16521 pass the mouse events to the event handler, not the frameview.
16523 * Api/qwebframe.cpp:
16524 (QWebFrame::mouseMoveEvent):
16525 (QWebFrame::mouseReleaseEvent):
16527 2007-05-14 Lars Knoll <lars@trolltech.com>
16531 Updates after Maciej's frame change.
16533 * Api/qwebpage.cpp:
16535 Call stopForUserCancel() instead of stopAllLoaders()
16536 * WebCoreSupport/FrameLoaderClientQt.cpp:
16537 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
16538 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
16539 (WebCore::FrameLoaderClientQt::didFinishLoad):
16540 (WebCore::FrameLoaderClientQt::setMainDocumentError):
16541 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
16542 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
16543 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
16544 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
16545 Call QWebFrame::loadDone() from the places it's supposed to be
16548 2007-05-12 Maciej Stachowiak <mjs@apple.com>
16550 Reviewed by Rob Buis.
16552 - call Frame::init as needed - this prevents crashes but pages don't appear.
16554 * Api/qwebframe.cpp:
16555 (QWebFramePrivate::init):
16556 * WebKitPart/WebKitPart.cpp:
16557 (WebKitPart::initView):
16559 2007-05-08 Steve Falkenburg <sfalken@apple.com>
16563 Slight modification to last editor method fix.
16565 * WebCoreSupport/EditorClientQt.cpp:
16566 (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
16567 * WebCoreSupport/EditorClientQt.h:
16569 2007-05-03 Steve Falkenburg <sfalken@apple.com>
16571 Reviewed by Oliver.
16573 Add missing user description parameter to spelling-related editor client method.
16575 * WebCoreSupport/EditorClientQt.cpp:
16576 (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
16577 * WebCoreSupport/EditorClientQt.h:
16579 2007-04-29 Oliver Hunt <oliver@apple.com>
16583 Tie QT drag events to the DragController logic
16584 to allow drag and drop events to be handled by
16587 * Api/qwebframe.cpp:
16589 * Api/qwebpage.cpp:
16590 (QWebPagePrivate::QWebPagePrivate):
16591 (QWebPage::QWebPage):
16592 (dropActionToDragOp):
16593 (dragOpToDropAction):
16594 (QWebPage::dragEnterEvent):
16595 (QWebPage::dragLeaveEvent):
16596 (QWebPage::dragMoveEvent):
16597 (QWebPage::dropEvent):
16599 * WebCoreSupport/DragClientQt.cpp:
16600 (WebCore::DragClientQt::startDrag):
16601 * WebCoreSupport/DragClientQt.h:
16602 (WebCore::DragClientQt::DragClientQt):
16604 2007-04-27 Holger Freyther <freyther@kde.org>
16606 Reviewed by Maciej.
16608 Remove unmaintained CMake build system.
16610 * QtLauncher/CMakeLists.txt: Removed.
16611 * WebKitPart/CMakeLists.txt: Removed.
16613 2007-04-25 Steve Falkenburg <sfalken@apple.com>
16617 Fix spelling error in spelling method name.
16619 * WebCoreSupport/EditorClientQt.cpp:
16620 (WebCore::EditorClientQt::updateSpellingUIWithGrammarString):
16621 * WebCoreSupport/EditorClientQt.h:
16623 2007-04-24 Steve Falkenburg <sfalken@apple.com>
16625 Reviewed by Oliver.
16627 Spelling and grammar stubs
16629 * WebCoreSupport/EditorClientQt.cpp:
16630 (WebCore::EditorClientQt::ignoreWordInSpellDocument):
16631 (WebCore::EditorClientQt::learnWord):
16632 (WebCore::EditorClientQt::checkSpellingOfString):
16633 (WebCore::EditorClientQt::checkGrammarOfString):
16634 (WebCore::EditorClientQt::udpateSpellingUIWithGrammarString):
16635 (WebCore::EditorClientQt::updateSpellingUIWithMisspelledWord):
16636 (WebCore::EditorClientQt::showSpellingUI):
16637 (WebCore::EditorClientQt::spellingUIIsShowing):
16638 (WebCore::EditorClientQt::getGuessesForWord):
16639 * WebCoreSupport/EditorClientQt.h:
16641 2007-04-11 MorganL <morganl.webkit@yahoo.com>
16643 Reviewed by Maciej.
16645 Add a Frame pointer to ChromeClient methods:
16646 http://bugs.webkit.org/show_bug.cgi?id=13127
16648 * WebCoreSupport/ChromeClientQt.cpp:
16649 (WebCore::ChromeClientQt::createWindow):
16650 (WebCore::ChromeClientQt::createModalDialog):
16651 * WebCoreSupport/ChromeClientQt.h:
16653 2007-04-12 Mark Rowe <mrowe@apple.com>
16655 Second part of Qt build fix.
16657 * WebCoreSupport/FrameLoaderClientQt.cpp:
16658 (WebCore::FrameLoaderClientQt::loadedFromCachedPage):
16659 (WebCore::FrameLoaderClientQt::setDocumentViewFromCachedPage):
16660 (WebCore::FrameLoaderClientQt::saveDocumentViewToCachedPage):
16661 * WebCoreSupport/FrameLoaderClientQt.h:
16663 2007-03-27 Zack Rusin <zrusin@trolltech.com>
16665 Fix the rendering crashes due triggered
16666 asserts. Improve a bit the layout
16669 * Api/qwebframe.cpp:
16670 (QWebFrame::resizeEvent):
16671 (QWebFrame::paintEvent):
16672 * WebCoreSupport/FrameLoaderClientQt.cpp:
16673 (WebCore::FrameLoaderClientQt::forceLayout):
16675 2007-03-16 Lars Knoll <lars@trolltech.com>
16677 Fix the Qt build once again.
16679 * WebCoreSupport/EditorClientQt.cpp:
16680 (WebCore::EditorClientQt::handleKeypress):
16681 * WebCoreSupport/FrameLoaderClientQt.cpp:
16682 (WebCore::FrameLoaderClientQt::blockedError):
16683 * WebCoreSupport/FrameLoaderClientQt.h:
16685 2007-03-13 Lars Knoll <lars@trolltech.com>
16687 Reviewed by George.
16689 Don't try to load <object> tags with an invalid url.
16690 Fixes LayoutTests/fast/dom/object-plugin-hides-properties.html
16691 which hit an assertion in the frameloader.
16693 * WebCoreSupport/FrameLoaderClientQt.cpp:
16694 (WebCore::FrameLoaderClientQt::objectContentType):
16696 2007-03-13 Lars Knoll <lars@trolltech.com>
16698 Reviewed by Anders.
16700 Fix some crashes in the Qt build.
16702 * Api/qwebframe.cpp:
16703 (QWebFrame::markup):
16704 Check for null pointer
16705 * WebCoreSupport/FrameLoaderClientQt.cpp:
16706 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
16707 Don't use an async callback into the FrameLoader.
16708 (WebCore::FrameLoaderClientQt::createFrame):
16710 2007-03-11 Oliver Hunt <oliver@apple.com>
16714 Stub for EditorClientQt::respondToChangedSelection
16716 * WebCoreSupport/EditorClientQt.cpp:
16717 (WebCore::EditorClientQt::respondToChangedSelection):
16718 * WebCoreSupport/EditorClientQt.h:
16720 2007-03-07 Adele Peterson <adele@apple.com>
16722 Reviewed by Darin Adler.
16724 WebKitQT part of fix for:
16725 http://bugs.webkit.org/show_bug.cgi?id=10871
16726 http://bugs.webkit.org/show_bug.cgi?id=12677
16727 <rdar://problem/4823129> REGRESSION: IME key events different in nightly
16728 <rdar://problem/4759563> REGRESSION: Return key is always sent when you confirm a clause in kotoeri
16730 * WebCoreSupport/EditorClientQt.cpp:
16731 (WebCore::EditorClientQt::handleKeypress): Changed handleKeyPress to handleKeypress.
16732 (WebCore::EditorClientQt::handleInputMethodKeypress): Added.
16733 * WebCoreSupport/EditorClientQt.h:
16735 2007-03-07 Darin Adler <darin@apple.com>
16737 * WebCoreSupport/FrameLoaderClientQt.h: Oops, forgot the header.
16739 2007-03-07 Darin Adler <darin@apple.com>
16741 * WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::userAgent):
16742 Try to fix the build by correcting the parameter here.
16744 2007-03-02 Sam Weinig <sam@webkit.org>
16746 Reviewed by Anders.
16748 Try to fix the Qt build
16750 * WebCoreSupport/DragClientQt.cpp:
16751 (WebCore::DragClientQt::willPerformDragDestinationAction):
16752 (WebCore::DragClientQt::dragControllerDestroyed):
16753 (WebCore::DragClientQt::createDragImageForLink):
16755 2007-02-26 Maciej Stachowiak <mjs@apple.com>
16757 Reviewed by Kevin McCullough.
16759 - fix Qt build for earlier SVG changes.
16761 * WebCoreSupport/EditCommandQt.cpp:
16763 2007-02-24 Zack Rusin <zrusin@trolltech.com>
16765 Adjust the animation a little bit to make it more natural.
16767 * QtLauncher/main.cpp:
16768 (HoverLabel::paintEvent):
16770 2007-02-23 Zack Rusin <zrusin@trolltech.com>
16772 Adding a little bit of eye-candy to the last
16773 commit (animations on hover events)
16775 * QtLauncher/main.cpp:
16776 (HoverLabel::HoverLabel):
16777 (HoverLabel::setHoverLink):
16778 (HoverLabel::sizeForFont):
16779 (HoverLabel::sizeHint):
16780 (HoverLabel::resetAnimation):
16781 (HoverLabel::paintEvent):
16782 (HoverLabel::interpolate):
16783 (SearchEdit::resizeEvent):
16785 2007-02-23 Zack Rusin <zrusin@trolltech.com>
16789 Adding API and code for notification of when the
16790 mouse is hovering over a link and adding code to
16791 the sample app to showcase it.
16793 * Api/qwebframe.cpp:
16794 (QWebFrame::mouseMoveEvent):
16796 * Api/qwebframe_p.h:
16797 (QWebFramePrivate::QWebFramePrivate):
16798 * Api/qwebpage.cpp:
16799 (QWebPage::createFrame):
16801 * QtLauncher/main.cpp:
16802 (HoverLabel::HoverLabel):
16803 (HoverLabel::setHoverLink):
16804 (HoverLabel::sizeHint):
16805 (HoverLabel::updateSize):
16806 (HoverLabel::paintEvent):
16807 (ClearButton::ClearButton):
16808 (ClearButton::paintEvent):
16809 (SearchEdit::SearchEdit):
16810 (SearchEdit::resizeEvent):
16811 (SearchEdit::moveEvent):
16812 (MainWindow::MainWindow):
16813 (MainWindow::showLinkHover):
16814 (MainWindow::resizeEvent):
16816 2007-02-22 Zack Rusin <zrusin@trolltech.com>
16820 Fixing the default scroll offset, cleaning
16821 up private methods and making the default
16822 look not use any frames.
16824 * Api/qwebframe.cpp:
16825 (QWebFramePrivate::init):
16826 (QWebFramePrivate::_q_handleKeyEvent):
16827 (QWebFrame::QWebFrame):
16828 (QWebFrame::wheelEvent):
16829 (QWebFrame::keyPressEvent):
16830 (QWebFrame::keyReleaseEvent):
16832 * Api/qwebframe_p.h:
16834 2007-02-22 Zack Rusin <zrusin@trolltech.com>
16838 Make the qwebframe act as a proper canvas.
16839 Implement it on top of QAbstractScrollArea.
16841 * Api/qwebframe.cpp:
16842 (QWebFramePrivate::init):
16843 (QWebFramePrivate::_q_adjustScrollbars):
16845 (QWebFrame::QWebFrame):
16846 (QWebFrame::resizeEvent):
16847 (QWebFrame::childFrames):
16848 (QWebFrame::paintEvent):
16849 (QWebFrame::mouseMoveEvent):
16850 (QWebFrame::mousePressEvent):
16851 (QWebFrame::mouseReleaseEvent):
16852 (QWebFrame::wheelEvent):
16853 (QWebFrame::keyPressEvent):
16854 (QWebFrame::keyReleaseEvent):
16855 (QWebFrame::dragEnterEvent):
16856 (QWebFrame::dragLeaveEvent):
16857 (QWebFrame::dragMoveEvent):
16858 (QWebFrame::handleKeyEvent):
16859 (QWebFrame::scrollContentsBy):
16861 * Api/qwebframe_p.h:
16862 (QWebFramePrivate::QWebFramePrivate):
16864 2007-02-21 George Staikos <staikos@kde.org>
16868 Add more editing support, and undo/redo. Requires some nasty evil
16869 hacks that have to be sorted out in WebCore/editor.
16871 * Api/qwebpage.cpp:
16872 (QWebPagePrivate::QWebPagePrivate):
16873 (QWebPagePrivate::~QWebPagePrivate):
16874 (QWebPage::undoStack):
16876 * Api/qwebpage_p.h:
16877 * WebCoreSupport/EditorClientQt.cpp:
16878 (WebCore::EditorClientQt::didBeginEditing):
16879 (WebCore::EditorClientQt::didEndEditing):
16880 (WebCore::EditorClientQt::isEditable):
16881 (WebCore::EditorClientQt::registerCommandForUndo):
16882 (WebCore::EditorClientQt::registerCommandForRedo):
16883 (WebCore::EditorClientQt::clearUndoRedoOperations):
16884 (WebCore::EditorClientQt::canUndo):
16885 (WebCore::EditorClientQt::canRedo):
16886 (WebCore::EditorClientQt::undo):
16887 (WebCore::EditorClientQt::redo):
16888 (WebCore::EditorClientQt::handleKeyPress):
16889 (WebCore::EditorClientQt::EditorClientQt):
16890 (WebCore::EditorClientQt::textFieldDidBeginEditing):
16891 (WebCore::EditorClientQt::textFieldDidEndEditing):
16892 (WebCore::EditorClientQt::isEditing):
16893 * WebCoreSupport/EditorClientQt.h:
16895 2007-02-21 Zack Rusin <zrusin@trolltech.com>
16899 * WebCoreSupport/ContextMenuClientQt.cpp:
16900 * WebCoreSupport/ContextMenuClientQt.h:
16902 2007-02-21 George Staikos <staikos@kde.org>
16906 * Api/qwebpage.cpp:
16909 2007-02-20 Zack Rusin <zrusin@trolltech.com>
16913 Make editing of forms work plus make sure that non-void methods
16914 always return something.
16916 * WebCoreSupport/ChromeClientQt.cpp:
16917 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
16918 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
16919 (WebCore::ChromeClientQt::runJavaScriptConfirm):
16920 (WebCore::ChromeClientQt::runJavaScriptPrompt):
16921 (WebCore::ChromeClientQt::shouldInterruptJavaScript):
16922 * WebCoreSupport/EditorClientQt.cpp:
16923 (WebCore::EditorClientQt::shouldDeleteRange):
16924 (WebCore::EditorClientQt::shouldBeginEditing):
16925 (WebCore::EditorClientQt::shouldEndEditing):
16926 (WebCore::EditorClientQt::shouldInsertText):
16927 (WebCore::EditorClientQt::shouldChangeSelectedRange):
16928 (WebCore::EditorClientQt::shouldApplyStyle):
16929 (WebCore::EditorClientQt::shouldInsertNode):
16930 * WebCoreSupport/FrameLoaderClientQt.cpp:
16931 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
16932 (WebCore::FrameLoaderClientQt::dispatchCreatePage):
16934 2007-02-17 Lars Knoll <lars@trolltech.com>
16936 Reviewed by Maciej.
16938 Additional coding by Maciej, additional review by Oliver.
16940 Add stubs for the new methods in ChormeClient and EditorClient,
16941 remove all references to FrameQt.
16943 * Api/qwebframe.cpp:
16944 (QWebFrame::QWebFrame):
16945 * Api/qwebframe_p.h:
16946 * Api/qwebpage.cpp:
16947 * WebCoreSupport/ChromeClientQt.cpp:
16948 (WebCore::ChromeClientQt::shouldInterruptJavaScript):
16949 * WebCoreSupport/ChromeClientQt.h:
16950 * WebCoreSupport/EditorClientQt.cpp:
16951 (WebCore::EditorClientQt::shouldChangeSelectedRange):
16952 (WebCore::EditorClientQt::isEditable):
16953 * WebCoreSupport/EditorClientQt.h:
16954 * WebCoreSupport/FrameLoaderClientQt.cpp:
16955 (WebCore::FrameLoaderClientQt::setFrame):
16956 (WebCore::FrameLoaderClientQt::webFrame):
16957 * WebCoreSupport/FrameLoaderClientQt.h:
16959 2007-02-18 Oliver Hunt <oliver@apple.com>
16961 Build fix -- adding DragClientQt method stubs
16963 * WebCoreSupport/DragClientQt.cpp:
16964 (WebCore::DragClientQt::willPerformDragSourceAction):
16965 (WebCore::DragClientQt::startDrag):
16966 (WebCore::DragClientQt::createDragImageForLink):
16967 * WebCoreSupport/DragClientQt.h:
16969 2007-02-15 Brady Eidson <beidson@apple.com>
16973 Moved scroll state down into the cross platform FrameLoader -
16974 Blind attempt at keeping Qt building
16976 * WebCoreSupport/FrameLoaderClientQt.cpp:
16977 (WebCore::FrameLoaderClientQt::restoreViewState):
16978 (WebCore::FrameLoaderClientQt::saveViewStateToItem):
16979 * WebCoreSupport/FrameLoaderClientQt.h:
16981 2007-02-07 Anders Carlsson <acarlsson@apple.com>
16983 Try fixing the Qt build.
16985 * WebCoreSupport/ChromeClientQt.cpp:
16986 (WebCore::ChromeClientQt::shouldInterruptJavaScript):
16987 * WebCoreSupport/ChromeClientQt.h:
16989 2007-02-02 Zack Rusin <zrusin@trolltech.com>
16991 Compilation fix: forward declare d-ptr.
16993 * Api/qcookiejar.h:
16995 2007-02-02 Zack Rusin <zrusin@trolltech.com>
16999 Make the frames white by default and get the
17000 files that WebCore can handle render inside
17003 * Api/qwebframe.cpp:
17004 (QWebFrame::QWebFrame):
17005 * WebCoreSupport/FrameLoaderClientQt.cpp:
17006 (WebCore::FrameLoaderClientQt::createFrame):
17007 (WebCore::FrameLoaderClientQt::objectContentType):
17009 2007-02-01 George Staikos <staikos@kde.org>
17011 Reviewed by Zack and Lars.
17013 Add a cookie interface for the Qt build.
17015 * Api/qcookiejar.cpp: Added.
17016 (QCookieJarPrivate::QCookieJarPrivate):
17018 (QCookieJar::QCookieJar):
17019 (QCookieJar::~QCookieJar):
17020 (QCookieJar::setCookies):
17021 (QCookieJar::cookies):
17022 (QCookieJar::isEnabled):
17023 (QCookieJar::setEnabled):
17025 (QCookieJar::setCookieJar):
17026 (QCookieJar::cookieJar):
17027 * Api/qcookiejar.h: Added.
17029 2007-02-01 Lars Knoll <lars@trolltech.com>
17033 Fix form loading for the Qt build.
17035 * WebCoreSupport/FrameLoaderClientQt.cpp:
17036 (WebCore::FrameLoaderClientQt::callPolicyFunction):
17037 (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
17038 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
17039 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
17040 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
17041 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
17043 2007-01-31 Zack Rusin <zrusin@trolltech.com>
17045 Expose the fact that the form has been edited
17048 * Api/qwebpage.cpp:
17049 (QWebPagePrivate::QWebPagePrivate):
17050 (QWebPage::isModified):
17052 * Api/qwebpage_p.h:
17053 * WebCoreSupport/EditorClientQt.cpp:
17054 (WebCore::EditorClientQt::respondToChangedContents):
17055 (WebCore::EditorClientQt::isEditable):
17057 2007-01-31 Zack Rusin <zrusin@trolltech.com>
17061 Properly propagate key events.
17063 * Api/qwebframe.cpp:
17064 (QWebFrame::addToJSWindowObject):
17065 (QWebFrame::innerText):
17066 (QWebFrame::renderTreeDump):
17067 * Api/qwebpage.cpp:
17068 (QWebPagePrivate::QWebPagePrivate):
17070 * WebCoreSupport/EditorClientQt.cpp:
17071 (WebCore::EditorClientQt::pageDestroyed):
17072 (WebCore::EditorClientQt::handleKeyPress):
17073 (WebCore::EditorClientQt::EditorClientQt):
17074 * WebCoreSupport/EditorClientQt.h:
17076 2007-01-31 George Staikos <staikos@kde.org>
17078 Remove focusFrame() - misguided - and add childFrames(). Fix a crash
17083 * Api/qwebframe.cpp:
17084 (QWebFrame::resizeEvent):
17085 (QWebFrame::childFrames):
17087 * Api/qwebpage.cpp:
17089 * WebCoreSupport/FrameLoaderClientQt.cpp:
17090 (WebCore::FrameLoaderClientQt::webFrame):
17091 * WebCoreSupport/FrameLoaderClientQt.h:
17093 2007-01-30 Zack Rusin <zrusin@trolltech.com>
17095 Improve QtLauncher to make it more useful as a testing tool.
17097 * QtLauncher/main.cpp:
17098 (ClearButton::ClearButton):
17099 (ClearButton::paintEvent):
17100 (SearchEdit::SearchEdit):
17101 (SearchEdit::~SearchEdit):
17102 (SearchEdit::paintEvent):
17103 (SearchEdit::resizeEvent):
17104 (SearchEdit::moveEvent):
17105 (MainWindow::MainWindow):
17106 (MainWindow::changeLocation):
17107 (MainWindow::loadFinished):
17109 2007-01-30 Simon Hausmann <hausmann@kde.org>
17113 Added import/export macros needed for build with ELF visibility and
17114 for a build on Windows (in the future).
17117 * Api/qwebkitglobal.h: Added.
17119 * Api/qwebpagehistory.h:
17121 2007-01-30 Zack Rusin <zack@kde.org>
17123 Change the signature of handleKeyPress
17126 * WebCoreSupport/EditorClientQt.cpp:
17127 (WebCore::EditorClientQt::handleKeyPress):
17128 * WebCoreSupport/EditorClientQt.h:
17130 2007-01-29 Zack Rusin <zack@kde.org>
17134 Set the allows-scrolling property on the view.
17136 * Api/qwebframe.cpp:
17137 (QWebFrame::QWebFrame):
17139 2007-01-29 Oliver Hunt <oliver@apple.com>
17143 Stub for new DragClient method
17145 * WebCoreSupport/DragClientQt.cpp:
17146 (WebCore::DragClientQt::dragSourceActionMaskForPoint):
17147 * WebCoreSupport/DragClientQt.h:
17149 2007-01-29 Maciej Stachowiak <mjs@apple.com>
17153 - updated for cross-platform data loading support
17155 * WebCoreSupport/FrameLoaderClientQt.cpp:
17156 (WebCore::FrameLoaderClientQt::createDocumentLoader):
17157 * WebCoreSupport/FrameLoaderClientQt.h:
17159 2007-01-29 George Staikos <staikos@kde.org>
17161 Make window resizing work.
17163 * Api/qwebpage.cpp:
17164 (QWebPage::setWindowGeometry):
17166 * WebCoreSupport/ChromeClientQt.cpp:
17167 (WebCore::ChromeClientQt::setWindowRect):
17169 2007-01-29 George Staikos <staikos@kde.org>
17171 Make popup windows work.
17173 * Api/qwebpage.cpp:
17174 (QWebPage::createWindow):
17176 * WebCoreSupport/ChromeClientQt.cpp:
17177 (WebCore::ChromeClientQt::createWindow):
17179 2007-01-29 Lars Knoll <lars@trolltech.com>
17183 Fix the way we handle native widgets (QWidget) inside
17184 WebCore. Now WebCore::Widget owns the QWidget in all
17185 cases. This is the only way to get well defined semantics
17186 for all teh native widgets we have (currently ScrollView
17187 and ScrollBar, but plugins will follow).
17189 This has the side effect that one cannot rely on a defined
17190 lifetime of a QWebFrame when using the API.
17192 * Api/qwebframe.cpp:
17193 (QWebFrame::~QWebFrame):
17194 * Api/qwebpage.cpp:
17195 (QWebPage::~QWebPage):
17196 * Api/qwebpage_p.h:
17197 * WebCoreSupport/FrameLoaderClientQt.cpp:
17198 (WebCore::FrameLoaderClientQt::detachedFromParent3):
17199 (WebCore::FrameLoaderClientQt::detachedFromParent4):
17200 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
17201 * WebCoreSupport/FrameLoaderClientQt.h:
17203 2007-01-29 George Staikos <staikos@kde.org>
17207 Implement more functions
17209 * Api/qwebpage.cpp:
17210 (QWebPage::javaScriptConsoleMessage):
17211 (QWebPage::statusTextChanged):
17212 (QWebPage::runJavaScriptAlert):
17214 * Api/qwebpagehistory.cpp:
17215 (QWebPageHistory::canGoBack):
17216 (QWebPageHistory::canGoForward):
17217 * Api/qwebpagehistory.h:
17218 * WebCoreSupport/ChromeClientQt.cpp:
17219 (WebCore::ChromeClientQt::addMessageToConsole):
17220 (WebCore::ChromeClientQt::runJavaScriptAlert):
17221 * WebCoreSupport/FrameLoaderClientQt.cpp:
17222 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
17224 2007-01-26 George Staikos <staikos@kde.org>
17230 * Api/qwebframe.cpp:
17231 (QWebFrame::QWebFrame):
17232 (QWebFrame::title):
17233 (QWebFrame::selectedText):
17235 * Api/qwebframe_p.h:
17236 * Api/qwebpage.cpp:
17237 (QWebPage::createFrame):
17241 (QWebPage::focusFrame):
17244 * WebCoreSupport/FrameLoaderClientQt.cpp:
17245 (WebCore::FrameLoaderClientQt::setFrame):
17246 (WebCore::FrameLoaderClientQt::detachFrameLoader):
17247 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
17248 (WebCore::FrameLoaderClientQt::didChangeTitle):
17249 (WebCore::FrameLoaderClientQt::setTitle):
17250 * WebCoreSupport/FrameLoaderClientQt.h:
17252 2007-01-26 Lars Knoll <lars@trolltech.com>
17254 Make it compile again with Qt 4.2 and add the copyright
17255 headers where forgotten in the last submit.
17257 * Api/qwebpagehistory.cpp:
17258 * Api/qwebpagehistory.h:
17259 (QExplicitlySharedDataPointer::operator*):
17260 (QExplicitlySharedDataPointer::operator->):
17261 (QExplicitlySharedDataPointer::operator T *):
17262 (QExplicitlySharedDataPointer::operator const T *):
17263 (QExplicitlySharedDataPointer::data):
17264 (QExplicitlySharedDataPointer::constData):
17265 (QExplicitlySharedDataPointer::operator==):
17266 (QExplicitlySharedDataPointer::operator!=):
17267 (QExplicitlySharedDataPointer::QExplicitlySharedDataPointer):
17268 (QExplicitlySharedDataPointer::~QExplicitlySharedDataPointer):
17269 (QExplicitlySharedDataPointer::operator=):
17270 (QExplicitlySharedDataPointer::operator!):
17271 (::QExplicitlySharedDataPointer):
17273 2007-01-26 Zack Rusin <zrusin@trolltech.com>
17277 Implement history support on platform Qt.
17279 * Api/qwebpage.cpp:
17280 (QWebPage::history):
17281 (QWebPage::goBack):
17282 (QWebPage::goForward):
17283 (QWebPage::goToHistoryItem):
17285 * Api/qwebpagehistory.cpp: Added.
17286 (QWebHistoryItem::~QWebHistoryItem):
17287 (QWebHistoryItem::originalUrl):
17288 (QWebHistoryItem::currentUrl):
17289 (QWebHistoryItem::title):
17290 (QWebHistoryItem::lastVisited):
17291 (QWebHistoryItem::icon):
17292 (QWebHistoryItem::QWebHistoryItem):
17293 (QWebPageHistory::QWebPageHistory):
17294 (QWebPageHistory::itemAtIndex):
17295 (QWebPageHistory::~QWebPageHistory):
17296 (QWebPageHistory::items):
17297 (QWebPageHistory::backItems):
17298 (QWebPageHistory::forwardItems):
17299 (QWebPageHistory::goBack):
17300 (QWebPageHistory::goForward):
17301 (QWebPageHistory::goToItem):
17302 (QWebPageHistory::backItem):
17303 (QWebPageHistory::currentItem):
17304 (QWebPageHistory::forwardItem):
17305 * Api/qwebpagehistory.h: Added.
17306 * Api/qwebpagehistory_p.h: Added.
17307 (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
17308 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
17309 (QWebPageHistoryPrivate::QWebPageHistoryPrivate):
17310 (QWebPageHistoryPrivate::~QWebPageHistoryPrivate):
17312 2007-01-26 Lars Knoll <lars@trolltech.com>
17314 Get rid of FrameQtClient. It's unused since we moved over
17317 * Api/qwebframe.cpp:
17318 (QWebFrame::QWebFrame):
17320 2007-01-26 Zack Rusin <zack@kde.org>
17324 Correctly position child frames within the
17325 toplevel frame. We were placed it on the widget
17326 itself instead of the vieweport.
17328 * Api/qwebframe.cpp:
17329 (QWebFrame::QWebFrame):
17331 2007-01-26 Lars Knoll <lars@trolltech.com>
17335 Make sure we resize the HTML when resizing a
17336 QWebFrame. Also ensure that the render tree
17337 is up to date before dumping it.
17339 * Api/qwebframe.cpp:
17340 (QWebFrame::innerText):
17341 (QWebFrame::renderTreeDump):
17342 (QWebFrame::resizeEvent):
17344 * Api/qwebpage.cpp:
17345 (QWebPagePrivate::createMainFrame):
17347 2007-01-26 Zack Rusin <zack@kde.org>
17351 Display pages inside a mainwindow instead
17352 of a custom qwidget.
17354 * QtLauncher/main.cpp:
17355 (MainWindow::MainWindow):
17358 2007-01-25 Lars Knoll <lars@trolltech.com>
17362 Emit the loadDone() signal from teh onload event callback
17363 again. This hangs on one or two test cases, but removes
17364 hundreds of failures elsewhere.
17366 * WebCoreSupport/FrameLoaderClientQt.cpp:
17367 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
17368 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
17370 2007-01-24 Lars Knoll <lars@trolltech.com>
17374 Implement some bits and pieces required by the loader.
17375 Fixes quite a few crashes and hangs in the lyout tests
17378 * WebCoreSupport/FrameLoaderClientQt.cpp:
17379 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
17380 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
17381 (WebCore::FrameLoaderClientQt::finishedLoading):
17382 (WebCore::FrameLoaderClientQt::setMainDocumentError):
17383 (WebCore::FrameLoaderClientQt::committedLoad):
17384 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
17385 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
17386 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
17387 (WebCore::FrameLoaderClientQt::createFrame):
17389 2007-01-24 Lars Knoll <lars@trolltech.com>
17391 Fix compilation again.
17393 * WebCoreSupport/EditorClientQt.cpp:
17394 (WebCore::EditorClientQt::handleKeyPress):
17395 * WebCoreSupport/EditorClientQt.h:
17397 2007-01-23 Lars Knoll <lars@trolltech.com>
17401 Fix refcounting of FrameViews (they get created with a
17402 refcount of 1) and add a few safety checks to the
17403 FrameLoaderClientQt.
17405 * Api/qwebframe.cpp:
17406 (QWebFrame::QWebFrame):
17407 (QWebFrame::~QWebFrame):
17408 * WebCoreSupport/FrameLoaderClientQt.cpp:
17409 (WebCore::FrameLoaderClientQt::detachedFromParent3):
17410 (WebCore::FrameLoaderClientQt::detachedFromParent4):
17411 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
17412 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
17413 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
17414 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
17415 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
17416 (WebCore::FrameLoaderClientQt::windowObjectCleared):
17418 2007-01-23 Zack Rusin <zack@kde.org>
17420 Adjust the DragClientQt to latest changes.
17422 * Api/qwebpage.cpp:
17423 (QWebPagePrivate::QWebPagePrivate):
17424 * WebCoreSupport/DragClientQt.cpp:
17425 (WebCore::DragClientQt::dragControllerDestroyed):
17426 * WebCoreSupport/DragClientQt.h:
17428 2007-01-23 Zack Rusin <zack@kde.org>
17432 * WebCoreSupport/DragClientQt.cpp:
17433 (WebCore::DragClientQt::willPerformDragDestinationAction):
17434 * WebCoreSupport/DragClientQt.h:
17436 2007-01-23 Lars Knoll <lars@trolltech.com>
17440 Add support for Frames to the Qt build and fix some issues
17441 in the API classes.
17443 * Api/qwebframe.cpp:
17444 (QWebFrame::QWebFrame):
17445 (QWebFrame::~QWebFrame):
17447 * Api/qwebframe_p.h:
17448 * Api/qwebpage.cpp:
17449 (QWebPagePrivate::QWebPagePrivate):
17450 (QWebPagePrivate::createMainFrame):
17451 (QWebPage::createFrame):
17453 * WebCoreSupport/FrameLoaderClientQt.cpp:
17454 (WebCore::FrameLoaderClientQt::detachedFromParent3):
17455 (WebCore::FrameLoaderClientQt::detachedFromParent4):
17456 (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
17457 (WebCore::FrameLoaderClientQt::windowObjectCleared):
17458 (WebCore::FrameLoaderClientQt::createFrame):
17459 (WebCore::FrameLoaderClientQt::objectContentType):
17460 (WebCore::FrameLoaderClientQt::createPlugin):
17461 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
17462 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
17463 (WebCore::FrameLoaderClientQt::overrideMediaType):
17464 * WebCoreSupport/FrameLoaderClientQt.h:
17466 2007-01-23 Oliver Hunt <oliver@apple.com>
17470 Qt build stubs for Drop logic
17472 * WebCoreSupport/DragClientQt.cpp: Added.
17473 (WebCore::DragClientQt::actionMaskForDrag):
17474 (WebCore::DragClientQt::willPerformDragDestinationAction):
17475 * WebCoreSupport/DragClientQt.h: Added.
17476 * WebKitPart/WebKitPart.cpp:
17477 (WebKitPart::initView):
17479 2007-01-19 John Sullivan <sullivan@apple.com>
17481 Added stubs for new callbacks, to try to avoid breaking the Qt port.
17483 * WebCoreSupport/FrameLoaderClientQt.cpp:
17484 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
17485 * WebCoreSupport/FrameLoaderClientQt.h:
17487 2007-01-19 Anders Carlsson <acarlsson@apple.com>
17489 Try fixing the QT build.
17491 * WebCoreSupport/ChromeClientQt.cpp:
17492 (WebCore::ChromeClientQt::runJavaScriptAlert):
17493 (WebCore::ChromeClientQt::runJavaScriptConfirm):
17494 (WebCore::ChromeClientQt::runJavaScriptPrompt):
17495 (WebCore::ChromeClientQt::setStatusbarText):
17496 * WebCoreSupport/ChromeClientQt.h:
17498 2007-01-18 Zack Rusin <zack@kde.org>
17502 Implementing a little bit of load progress tracking in the Qt port.
17504 * Api/qwebframe.cpp:
17505 (QWebFrame::QWebFrame):
17508 * Api/qwebframe_p.h:
17509 (QWebFramePrivate::QWebFramePrivate):
17511 * QtLauncher/main.cpp:
17513 * WebCoreSupport/FrameLoaderClientQt.cpp:
17514 (WebCore::FrameLoaderClientQt::setFrame):
17515 (WebCore::FrameLoaderClientQt::detachFrameLoader):
17516 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
17517 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
17518 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
17519 * WebCoreSupport/FrameLoaderClientQt.h:
17521 2007-01-17 Alice Liu <alice.liu@apple.com>
17523 Added these stubs to keep the Qt build from failing.
17525 * WebCoreSupport/EditorClientQt.cpp:
17526 (WebCore::EditorClientQt::didSetSelectionTypesForPasteboard):
17527 * WebCoreSupport/EditorClientQt.h:
17529 2007-01-17 Lars Knoll <lars@trolltech.com>
17533 Remove the inheritance from Shared<XxxClient> in the
17536 Answer asynchronously to most of the Policy checking methods
17537 in FrameLoaderClientQt to avoid some crashes in the loader.
17539 * WebCoreSupport/ChromeClientQt.cpp:
17540 * WebCoreSupport/ChromeClientQt.h:
17541 * WebCoreSupport/ContextMenuClientQt.cpp:
17542 * WebCoreSupport/ContextMenuClientQt.h:
17543 * WebCoreSupport/EditorClientQt.cpp:
17544 * WebCoreSupport/EditorClientQt.h:
17545 * WebCoreSupport/FrameLoaderClientQt.cpp:
17546 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
17547 (WebCore::FrameLoaderClientQt::callPolicyFunction):
17548 (WebCore::FrameLoaderClientQt::slotCallPolicyFunction):
17549 (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
17550 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
17551 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
17552 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
17553 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
17554 * WebCoreSupport/FrameLoaderClientQt.h:
17556 2007-01-17 Lars Knoll <lars@trolltech.com>
17560 change all notImplemented() macros to use qDebug
17561 instead of fprintf(stder, ...)
17563 * WebCoreSupport/ChromeClientQt.cpp:
17564 * WebCoreSupport/ContextMenuClientQt.cpp:
17565 * WebCoreSupport/EditorClientQt.cpp:
17566 * WebCoreSupport/FrameLoaderClientQt.cpp:
17568 2007-01-16 Alice Liu <alice.liu@apple.com>
17570 Added these stubs to keep the Qt build from failing.
17572 * WebCoreSupport/EditorClientQt.cpp:
17573 (WebCore::EditorClientQt::didWriteSelectionToPasteboard):
17574 * WebCoreSupport/EditorClientQt.h:
17576 2007-01-16 Lars Knoll <lars@trolltech.com>
17580 Added the start of a public API to the Qt build
17581 of WebKit. Currently we have QWebPage and QWebFrame
17582 with a few small methods.
17584 Converted the QtLauncher to use the new public API.
17586 * Api/qwebframe.cpp: Added.
17587 (QWebFrame::QWebFrame):
17588 (QWebFrame::~QWebFrame):
17589 (QWebFrame::addToJSWindowObject):
17590 (QWebFrame::markup):
17591 (QWebFrame::innerText):
17592 (QWebFrame::renderTreeDump):
17593 * Api/qwebframe.h: Added.
17594 * Api/qwebframe_p.h: Added.
17595 (QWebFramePrivate::QWebFramePrivate):
17596 * Api/qwebpage.cpp: Added.
17597 (QWebPagePrivate::QWebPagePrivate):
17598 (QWebPagePrivate::~QWebPagePrivate):
17599 (QWebPagePrivate::createMainFrame):
17600 (QWebPage::QWebPage):
17601 (QWebPage::~QWebPage):
17602 (QWebPage::createFrame):
17604 (QWebPage::mainFrame):
17605 (QWebPage::sizeHint):
17606 * Api/qwebpage.h: Added.
17607 * Api/qwebpage_p.h: Added.
17608 * QtLauncher/main.cpp:
17610 * WebCoreSupport/ChromeClientQt.cpp:
17611 (WebCore::ChromeClientQt::ChromeClientQt):
17612 (WebCore::ChromeClientQt::setWindowRect):
17613 (WebCore::ChromeClientQt::windowRect):
17614 (WebCore::ChromeClientQt::pageRect):
17615 (WebCore::ChromeClientQt::focus):
17616 (WebCore::ChromeClientQt::unfocus):
17617 (WebCore::ChromeClientQt::canTakeFocus):
17618 (WebCore::ChromeClientQt::takeFocus):
17619 (WebCore::ChromeClientQt::createWindow):
17620 (WebCore::ChromeClientQt::createModalDialog):
17621 (WebCore::ChromeClientQt::show):
17622 (WebCore::ChromeClientQt::addMessageToConsole):
17623 (WebCore::ChromeClientQt::chromeDestroyed):
17624 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
17625 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
17626 (WebCore::ChromeClientQt::closeWindowSoon):
17627 * WebCoreSupport/ChromeClientQt.h:
17628 * WebCoreSupport/FrameLoaderClientQt.cpp:
17629 (WebCore::FrameLoaderClientQt::setFrame):
17630 (WebCore::FrameLoaderClientQt::detachFrameLoader):
17631 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
17632 (WebCore::FrameLoaderClientQt::partClearedInBegin):
17633 * WebCoreSupport/FrameLoaderClientQt.h:
17635 2007-01-15 Anders Carlsson <acarlsson@apple.com>
17639 * WebCoreSupport/FrameLoaderClientQt.cpp:
17640 (WebCore::FrameLoaderClientQt::postProgressStartedNotification):
17641 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
17642 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
17643 * WebCoreSupport/FrameLoaderClientQt.h:
17645 2007-01-13 Lars Knoll <lars@trolltech.com>
17647 Compile again after yesterdays changes.
17649 * WebCoreSupport/FrameLoaderClientQt.cpp:
17650 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
17651 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
17652 (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
17653 (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
17654 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
17655 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
17656 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
17657 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
17658 (WebCore::FrameLoaderClientQt::incrementProgress):
17659 (WebCore::FrameLoaderClientQt::completeProgress):
17660 * WebCoreSupport/FrameLoaderClientQt.h:
17662 2007-01-11 Brady Eidson <beidson@apple.com>
17664 Keep the fancy new FrameLoaderClientQt building with a small api change in WebCore
17665 Yay for the loader on QT!
17667 * WebCoreSupport/FrameLoaderClientQt.cpp:
17668 (WebCore::FrameLoaderClientQt::dispatchDidReceiveAuthenticationChallenge):
17669 (WebCore::FrameLoaderClientQt::dispatchDidCancelAuthenticationChallenge):
17670 * WebCoreSupport/FrameLoaderClientQt.h:
17672 2007-01-11 Lars Knoll <lars@trolltech.com>
17676 Start using the loader in the Qt port.
17678 * QtLauncher/main.cpp:
17680 * WebCoreSupport/FrameLoaderClientQt.cpp:
17681 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
17682 (WebCore::FrameLoaderClientQt::~FrameLoaderClientQt):
17683 (WebCore::FrameLoaderClientQt::setFrame):
17684 (WebCore::FrameLoaderClientQt::detachFrameLoader):
17685 (WebCore::FrameLoaderClientQt::makeDocumentView):
17686 (WebCore::FrameLoaderClientQt::makeRepresentation):
17687 (WebCore::FrameLoaderClientQt::setCopiesOnScroll):
17688 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
17689 (WebCore::FrameLoaderClientQt::cancelPolicyCheck):
17690 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
17691 (WebCore::FrameLoaderClientQt::progressStarted):
17692 (WebCore::FrameLoaderClientQt::progressCompleted):
17693 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
17694 (WebCore::FrameLoaderClientQt::clearArchivedResources):
17695 (WebCore::FrameLoaderClientQt::canShowMIMEType):
17696 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
17697 (WebCore::FrameLoaderClientQt::provisionalLoadStarted):
17698 (WebCore::FrameLoaderClientQt::prepareForDataSourceReplacement):
17699 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
17700 (WebCore::FrameLoaderClientQt::canHandleRequest):
17701 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
17702 (WebCore::FrameLoaderClientQt::canCachePage):
17703 (WebCore::FrameLoaderClientQt::committedLoad):
17704 (WebCore::FrameLoaderClientQt::cancelledError):
17705 (WebCore::FrameLoaderClientQt::cannotShowURLError):
17706 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
17707 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
17708 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
17709 (WebCore::FrameLoaderClientQt::shouldFallBack):
17710 (WebCore::FrameLoaderClientQt::createDocumentLoader):
17711 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
17712 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
17713 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
17714 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
17715 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
17716 (WebCore::FrameLoaderClientQt::willUseArchive):
17717 * WebCoreSupport/FrameLoaderClientQt.h:
17719 2007-01-11 George Staikos <staikos@kde.org>
17723 * WebCoreSupport/ContextMenuClientQt.cpp:
17724 (WebCore::ContextMenuClientQt::searchWithGoogle):
17725 * WebCoreSupport/ContextMenuClientQt.h:
17727 2007-01-06 George Staikos <staikos@kde.org>
17733 * WebCoreSupport/FrameLoaderClientQt.cpp:
17734 (WebCore::FrameLoaderClientQt::setMainDocumentError):
17735 (WebCore::FrameLoaderClientQt::committedLoad):
17736 (WebCore::FrameLoaderClientQt::cancelledError):
17737 (WebCore::FrameLoaderClientQt::cannotShowURLError):
17738 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
17739 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
17740 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
17741 (WebCore::FrameLoaderClientQt::shouldFallBack):
17742 (WebCore::FrameLoaderClientQt::createDocumentLoader):
17743 (WebCore::FrameLoaderClientQt::download):
17744 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
17745 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
17746 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
17747 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoading):
17748 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
17749 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
17750 (WebCore::FrameLoaderClientQt::dispatchDidFailProvisionalLoad):
17751 (WebCore::FrameLoaderClientQt::dispatchDidFailLoad):
17752 (WebCore::FrameLoaderClientQt::dispatchCreatePage):
17753 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
17754 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
17755 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
17756 (WebCore::FrameLoaderClientQt::dispatchUnableToImplementPolicy):
17757 (WebCore::FrameLoaderClientQt::incrementProgress):
17758 (WebCore::FrameLoaderClientQt::completeProgress):
17759 (WebCore::FrameLoaderClientQt::startDownload):
17760 (WebCore::FrameLoaderClientQt::willUseArchive):
17761 * WebCoreSupport/FrameLoaderClientQt.h:
17763 2007-01-05 Lars Knoll <lars@trolltech.com>
17765 Make the Qt build compile again
17767 * WebCoreSupport/ChromeClientQt.cpp:
17768 (WebCore::ChromeClientQt::canTakeFocus):
17769 (WebCore::ChromeClientQt::takeFocus):
17770 * WebCoreSupport/ChromeClientQt.h:
17771 * WebCoreSupport/ContextMenuClientQt.cpp:
17772 (WebCore::ContextMenuClientQt::getCustomMenuFromDefaultItems):
17773 * WebCoreSupport/ContextMenuClientQt.h:
17775 2007-01-03 Lars Knoll <lars@trolltech.com>
17779 * WebCoreSupport/FrameLoaderClientQt.cpp:
17780 (WebCore::FrameLoaderClientQt::setDocumentViewFromPageCache):
17781 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
17782 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForReload):
17783 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
17784 (WebCore::FrameLoaderClientQt::saveScrollPositionAndViewStateToItem):
17785 (WebCore::FrameLoaderClientQt::saveDocumentViewToPageCache):
17786 (WebCore::FrameLoaderClientQt::canCachePage):
17787 * WebCoreSupport/FrameLoaderClientQt.h:
17789 2006-12-29 George Staikos <staikos@kde.org>
17791 Add missing notimplemented.
17793 * WebCoreSupport/FrameLoaderClientQt.cpp:
17794 (WebCore::FrameLoaderClientQt::frameLoaderDestroyed):
17795 (WebCore::FrameLoaderClientQt::canHandleRequest):
17796 (WebCore::FrameLoaderClientQt::partClearedInBegin):
17798 2006-12-21 Lars Knoll <lars@trolltech.com>
17802 * WebCoreSupport/FrameLoaderClientQt.cpp:
17803 (WebCore::FrameLoaderClientQt::hasWebView):
17804 (WebCore::FrameLoaderClientQt::hasFrameView):
17805 (WebCore::FrameLoaderClientQt::dispatchDidHandleOnloadEvents):
17806 (WebCore::FrameLoaderClientQt::dispatchDidFirstLayout):
17807 (WebCore::FrameLoaderClientQt::setTitle):
17808 (WebCore::FrameLoaderClientQt::partClearedInBegin):
17809 * WebCoreSupport/FrameLoaderClientQt.h:
17810 Remove some runtimw warnings
17811 Add partClearedInBegin forwarding call, so
17812 I can catch this in the layout tests.
17814 2006-12-19 Lars Knoll <lars@trolltech.com>
17818 * WebCoreSupport/ChromeClientQt.cpp:
17819 (WebCore::ChromeClientQt::canRunBeforeUnloadConfirmPanel):
17820 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
17821 (WebCore::ChromeClientQt::closeWindowSoon):
17822 * WebCoreSupport/ChromeClientQt.h:
17825 2006-12-16 Zack Rusin <zack@kde.org>
17827 Adjust the client to the most recent interface.
17829 * WebCoreSupport/ContextMenuClientQt.cpp:
17830 (WebCore::ContextMenuClientQt::contextMenuDestroyed):
17831 (WebCore::ContextMenuClientQt::addCustomContextMenuItems):
17832 (WebCore::ContextMenuClientQt::contextMenuItemSelected):
17833 (WebCore::ContextMenuClientQt::downloadURL):
17834 (WebCore::ContextMenuClientQt::copyImageToClipboard):
17835 (WebCore::ContextMenuClientQt::lookUpInDictionary):
17836 * WebCoreSupport/ContextMenuClientQt.h:
17838 2006-12-14 Simon Hausmann <hausmann@kde.org>
17842 * QtLauncher/QtLauncher.pro: Link this little test program
17843 with rpath, for convenience. (This is never going to get installed
17846 2006-12-12 George Staikos <staikos@kde.org>
17848 Reviewed by Alexey.
17850 Fix the Qt build again.
17852 * WebCoreSupport/ContextMenuClientQt.cpp:
17853 (WebCore::ContextMenuClientQt::speak):
17854 (WebCore::ContextMenuClientQt::stopSpeaking):
17855 * WebCoreSupport/ContextMenuClientQt.h:
17856 * WebCoreSupport/EditorClientQt.cpp:
17857 (WebCore::EditorClientQt::toggleContinuousSpellChecking):
17858 (WebCore::EditorClientQt::toggleGrammarChecking):
17859 * WebCoreSupport/EditorClientQt.h:
17861 2006-12-10 George Staikos <staikos@kde.org>
17865 Add a default user agent for now.
17867 * WebCoreSupport/FrameLoaderClientQt.cpp:
17868 (WebCore::FrameLoaderClientQt::userAgent):
17870 2006-12-10 Lars Knoll <lars@trolltech.com>
17874 Comment out a notImplemented() warning
17876 * WebCoreSupport/EditorClientQt.cpp:
17877 (WebCore::EditorClientQt::clearUndoRedoOperations):
17879 2006-12-10 Zack Rusin <zack@kde.org>
17881 Print out the method name if it's unimplemented.
17883 * WebCoreSupport/FrameLoaderClientQt.cpp:
17885 2006-12-10 Zack Rusin <zack@kde.org>
17887 Moving the clients from platform to their final location.
17889 * WebCoreSupport/FrameLoaderClientQt.cpp: Added.
17890 * WebCoreSupport/FrameLoaderClientQt.h: Added.
17891 * WebCoreSupport/ChromeClientQt.cpp: Added.
17892 * WebCoreSupport/ChromeClientQt.h: Added.
17893 * WebCoreSupport/ContextMenuClientQt.cpp: Added.
17894 * WebCoreSupport/ContextMenuClientQt.h: Added.
17895 * WebCoreSupport/EditorClientQt.cpp: Added.
17896 * WebCoreSupport/EditorClientQt.h: Added.
17898 2006-12-10 Zack Rusin <zack@kde.org>
17900 Adjusting to the changes in platform/qt.
17902 * QtLauncher/main.cpp:
17905 2006-12-09 Lars Knoll <lars@trolltech.com>
17909 Make it possible to build WebKit with qmake.
17911 * QtLauncher/QtLauncher.pro: Added.
17912 * QtLauncher/main.cpp:
17914 2006-12-08 Zack Rusin <zack@kde.org>
17916 Reviewed by Maciej.
17918 Fix the build after the recent changes.
17920 * QtLauncher/main.cpp:
17922 * WebKitPart/WebKitPart.cpp:
17923 (WebKitPart::initView):
17925 2006-11-19 Simon Hausmann <hausmann@kde.org>
17929 http://bugs.webkit.org/show_bug.cgi?id=11649
17932 * QtLauncher/CMakeLists.txt:
17934 2006-11-17 Zack Rusin <zack@kde.org>
17936 Reviewed by Mitz. Landed by Niko.
17938 Adjusting to the new api.
17940 * QtLauncher/main.cpp:
17942 * WebKitPart/WebKitPart.cpp:
17943 (WebKitPart::initView):
17945 2006-11-10 Zack Rusin <zack@kde.org>
17947 Reviewed and landed by Anders.
17949 Adjusting to the recent loader changes, making it compile
17952 * QtLauncher/main.cpp:
17954 * WebKitPart/WebKitPart.cpp:
17955 (WebKitPart::closeUrl):
17956 (WebKitPart::initView):
17958 2006-11-03 Zack Rusin <zack@kde.org>
17960 Reviewed by Maciej.
17962 Fixing compile on both Qt and KDE platforms.
17964 * QtLauncher/main.cpp:
17965 (main): url has already been defined
17966 * WebKitPart/WebKitPartBrowserExtension.cpp: removing
17967 duplicate implementation of this class
17969 2006-10-31 Simon Hausmann <hausmann@kde.org>
17971 Reviewed by Maciej, landed by Anders.
17973 * QtLauncher/CMakeLists.txt: Make linkage against kde libraries
17975 * QtLauncher/main.cpp: Make it compile without KDE.
17978 2006-11-02 Simon Hausmann <hausmann@kde.org>
17980 Reviewed by Maciej, landed by Anders.
17982 * QtLauncher/main.cpp:
17983 (main): Declare our frame as main frame to the Page object.
17984 Fixes crashes on various web sites
17986 2006-10-31 Zack Rusin <zack@kde.org>
17990 Fix the Qt build after last nights changes.
17992 * QtLauncher/CMakeLists.txt:
17993 * WebKitPart/CMakeLists.txt:
17995 2006-10-26 Nikolas Zimmermann <zimmermann@kde.org>
17997 Reviewed by Darin Adler.
17999 Fix Qt/Linux build.
18001 * QtLauncher/main.cpp:
18003 * WebKitPart/WebKitPart.cpp:
18004 (WebKitPart::openUrl):
18006 2006-10-24 Nikolas Zimmermann <zimmermann@kde.org>
18008 Reviewed by Maciej.
18010 Fix Qt/Linux build.
18012 - Remove BrowserExtensionQt, move it's methods to Page/FrameQt.
18013 - Fix CMakeLists.txt to include platform/network.
18015 * QtLauncher/CMakeLists.txt:
18016 * WebKitPart/CMakeLists.txt:
18018 2006-10-24 Simon Hausmann <hausmann@kde.org>
18020 Reviewed by Darin Adler.
18022 * QtLauncher/CMakeLists.txt, WebKitPart/CMakeLists.txt: Added project name to
18023 kde4_automoc macro, as required by the latest KDE4 cmake module.
18025 2006-10-20 Nikolas Zimmermann <zimmermann@kde.org>
18027 Reviewed and landed by Anders.
18029 Adapt to FrameQtClient changes, and provide some kind of status
18030 information to the KPart wheter we're loading or not (started/completed signaling).
18032 * WebKitPart/CMakeLists.txt:
18033 * WebKitPart/WebKitPart.cpp:
18034 (WebKitPart::WebKitPart):
18035 (WebKitPart::~WebKitPart):
18036 (WebKitPart::openUrl):
18037 (WebKitPart::initView):
18038 * WebKitPart/WebKitPart.h:
18039 * WebKitPart/WebKitPartBrowserExtension.cpp: Added.
18040 (WebKitPartBrowserExtension::WebKitPartBrowserExtension):
18041 (WebKitPartBrowserExtension::~WebKitPartBrowserExtension):
18042 * WebKitPart/WebKitPartBrowserExtension.h: Added.
18043 * WebKitPart/WebKitPartClient.cpp:
18044 (WebKitPartClient::WebKitPartClient):
18045 (WebKitPartClient::loadFinished):
18046 * WebKitPart/WebKitPartClient.h:
18047 * WebKitPart/WebKitPartInterface.h:
18049 2006-10-02 Nikolas Zimmermann <zimmermann@kde.org>
18051 Reviewed by eseidel. Landed by eseidel.
18053 Fix last remaining issue Qt/Linux build with gcc3.
18055 * WebKitPart/WebKitPart.h: Remove Q_PROPERTY usage, which is not needed and made problems.
18057 2006-09-10 Nikolas Zimmermann <zimmermann@kde.org>
18059 Reviewed and landed by ap.
18061 Fix QtLauncher - it is supposed to create a FrameView on its own nowadays.
18063 * QtLauncher/main.cpp:
18066 2006-09-04 Nikolas Zimmermann <zimmermann@kde.org>
18070 Fixes last part of: http://bugs.webkit.org/show_bug.cgi?id=10644
18071 Move QtLauncher down to WebKitQt.
18073 * QtLauncher/CMakeLists.txt: Added.
18074 * QtLauncher/main.cpp: Added.
18077 2006-09-04 Nikolas Zimmermann <zimmermann@kde.org>
18079 Reviewed by Darin Adler. Final polish by Sam.
18081 Fixes parts of: http://bugs.webkit.org/show_bug.cgi?id=10644
18082 Add WebKitPart, an embeddable KPart for the KDE platform.
18084 * WebKitPart/CMakeLists.txt: Added.
18085 * WebKitPart/WebKitFactory.cpp: Added.
18086 (WebKitFactory::WebKitFactory):
18087 (WebKitFactory::~WebKitFactory):
18088 (WebKitFactory::createPartObject):
18089 (WebKitFactory::instance):
18090 (WebKitFactory::ref):
18091 (WebKitFactory::deref):
18092 (init_libWebKitPart):
18093 * WebKitPart/WebKitFactory.h: Added.
18094 * WebKitPart/WebKitPart.cpp: Added.
18095 (WebKitPart::WebKitPart):
18096 (WebKitPart::~WebKitPart):
18097 (WebKitPart::openFile):
18098 (WebKitPart::openUrl):
18099 (WebKitPart::closeUrl):
18100 (WebKitPart::parentPart):
18101 (WebKitPart::frame):
18102 (WebKitPart::initView):
18103 * WebKitPart/WebKitPart.desktop: Added.
18104 * WebKitPart/WebKitPart.h: Added.
18106 * WebKitPart/WebKitPart.rc: Added.
18107 * WebKitPart/WebKitPartBrowser.rc: Added.
18108 * WebKitPart/WebKitPartClient.cpp: Added.
18109 (WebKitPartClient::WebKitPartClient):
18110 (WebKitPartClient::~WebKitPartClient):
18111 * WebKitPart/WebKitPartClient.h: Added.
18112 * WebKitPart/WebKitPartInterface.cpp: Added.
18113 (WebKitPartInterface::WebKitPartInterface):
18114 (WebKitPartInterface::~WebKitPartInterface):
18115 (WebKitPartInterface::url):
18116 (WebKitPartInterface::closeURL):
18117 * WebKitPart/WebKitPartInterface.h: Added.
18118 * WebKitPart/org.kde.WebKitPart.xml: Added.