1 2008-08-07 Simon Hausmann <hausmann@webkit.org>
3 Rubber-stamped by Lars.
5 Added API tests for QWebPage/QWebFrame based on QTestLib.
7 * tests/qwebframe/qwebframe.pro: Added.
8 * tests/qwebframe/tst_qwebframe.cpp: Added.
9 * tests/qwebpage/qwebpage.pro: Added.
10 * tests/qwebpage/tst_qwebpage.cpp: Added.
11 * tests/tests.pro: Added.
13 2008-08-06 Benjamin C Meyer <ben@meyerhome.net>
17 During the drag operation only accept the event if the action is not ignore action.
20 (QWebPagePrivate::dragEnterEvent):
21 (QWebPagePrivate::dragMoveEvent):
22 (QWebPagePrivate::dropEvent):
24 2008-08-06 Ariya Hidayat <ariya.hidayat@trolltech.com>
26 Fix the Qt build due to recent ScriptController refactoring.
29 (QWebFrame::addToJavaScriptWindowObject):
31 2008-08-05 Tor Arne Vestbø <tavestbo@trolltech.com>
35 Move event handling of the return-key from EditorClientQt to QWebPage.
37 https://bugs.webkit.org/show_bug.cgi?id=20191
39 This is a first step in refactoring the big switch block
40 in EditorClientQt::handleKeyboardEvent to using WebActions
43 The new logic uses two new StandardKeys from QKeySequence:
45 - InsertParagraphSeparator
48 Which translate to the commands InsertNewline and InsertLineBreak
49 respectivly. On Windows/X11 pressing the shift modifier will invoke
50 the latter action. For Mac this is triggered by pressing the meta
53 Initial patch by: Erik Bunce
56 (editorActionForKeyEvent):
58 * WebCoreSupport/EditorClientQt.cpp:
59 (WebCore::EditorClientQt::handleKeyboardEvent):
61 2008-08-04 Erik Bunce <elbunce@thehive.com>
65 https://bugs.webkit.org/show_bug.cgi?id=20221
67 Add updateAction() support to ToggleBold, ToggleItalic, and ToggleUnderline.
68 Add lookup table for mapping web actions to editor commands.
71 (editorCommandForWebActions):
72 (QWebPagePrivate::updateAction):
73 (QWebPagePrivate::updateEditorActions):
74 (QWebPage::triggerAction):
75 (QWebPage::setEditable):
77 2008-08-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
81 A bunch of improvements to the QtLauncher.
84 - Unify and unclutter the toolbar, use menu for addition actions
85 - Simplify URL edit, just use QLineEdit (no fancy close button etc)
86 - Guess the URL from the command line so now we can run ./QtLauncher www.google.com
87 - Shortcut keys for most actions
88 - Simple autocomplete for the URL edit
89 - Actions for zooming, New Window and Close Window
90 - Show Format menu only when the content is set to editable
92 * QtLauncher/main.cpp:
93 (MainWindow::MainWindow):
94 (MainWindow::webPage):
95 (MainWindow::changeLocation):
96 (MainWindow::loadFinished):
97 (MainWindow::showLinkHover):
98 (MainWindow::newWindow):
100 (MainWindow::zoomOut):
101 (MainWindow::resetZoom):
103 (MainWindow::setEditable):
104 (MainWindow::dumpHtml):
105 (MainWindow::setupUI):
108 2008-08-04 Erik Bunce <elbunce@thehive.com>
112 https://bugs.webkit.org/show_bug.cgi?id=20198
114 Allow Copy key sequence to work in non-editable areas.
117 (QWebPagePrivate::keyPressEvent):
119 2008-07-31 Erik Bunce <elbunce@thehive.com>
123 Make sure edit actions get updated when the contents change.
125 * WebCoreSupport/EditorClientQt.cpp:
126 (WebCore::EditorClientQt::respondToChangedContents):
128 2008-07-31 Erik Bunce <elbunce@thehive.com>
132 Add simple edit test abilities to QtLauncher.
134 * QtLauncher/main.cpp:
135 (MainWindow::MainWindow):
136 (MainWindow::setEditable):
137 (MainWindow::dumpHtml):
139 2008-07-31 Alexey Proskuryakov <ap@webkit.org>
141 Rubber-stamped by Maciej.
143 Eliminate JSLock (it was already disabled, removing the stub implementaion and all
147 (QWebFrame::addToJavaScriptWindowObject):
149 2008-07-27 David Kilzer <ddkilzer@apple.com>
151 Fix Qt build failure.
154 (QWebFrame::setScrollOffset): Make argument const.
156 2008-07-26 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
158 Reviewed by Simon Hausmann.
160 https://bugs.webkit.org/show_bug.cgi?id=20010
161 [Qt] Add API access to scrolling
163 * Api/qwebframe.cpp: Added access to a frame scroll offset.
165 (QWebFrame::scrollOffset):
166 (QWebFrame::setScrollOffset):
169 2008-07-26 Daniel Jalkut <jalkut@red-sweater.com>
171 Build fix. Adjust to updated WebCore FrameLoader method names & signatures.
174 (QWebPage::triggerAction):
175 * WebCoreSupport/FrameLoaderClientQt.cpp:
176 (WebCore::FrameLoaderClientQt::createFrame):
178 2008-07-25 Joerg Bornemann <joerg.bornemann@trolltech.com>
182 Compile with QT_NO_PRINTER.
184 * QtLauncher/main.cpp:
185 (MainWindow::MainWindow):
187 2008-07-24 Tor Arne Vestbø <tavestbo@trolltech.com>
191 Don't insert text on keyDown event in EditorClientQt.
193 * WebCoreSupport/EditorClientQt.cpp:
194 (WebCore::EditorClientQt::handleKeyboardEvent):
196 2008-07-04 Benjamin C Meyer <ben@meyerhome.net>
200 Update the webkit version in the QtWebKit useragent string to match trunk
204 2008-07-02 Simon Hausmann <hausmann@webkit.org>
209 (QWebPage::triggerAction): The signature of setBaseWritingDirection
210 changed to take an enum instead of a string.
212 2008-07-01 Alexey Proskuryakov <ap@webkit.org>
216 Disable JSLock for per-thread contexts.
219 (QWebFrame::addToJavaScriptWindowObject):
220 Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking.
221 Include JSLock.h, as it is no longer brought in implicitly.
223 2008-07-01 Tor Arne Vestbø <tavestbo@trolltech.com>
227 Don't show the tooltip instantly in the QtLauncher.
229 Let the QWebView handle tooltips by itself, so we get
230 the expected delay as everywhere else.
232 * QtLauncher/main.cpp:
234 2008-06-30 Simon Hausmann <hausmann@webkit.org>
236 Rubber-stamped by Niko.
238 Removed the obsolete and unmaintained WebKitPart. The integration of
239 QtWebKit into KDE is now done in the webkitkde component inside KDE.
241 * WebKitPart/WebKitFactory.cpp: Removed.
242 * WebKitPart/WebKitFactory.h: Removed.
243 * WebKitPart/WebKitPart.cpp: Removed.
244 * WebKitPart/WebKitPart.desktop: Removed.
245 * WebKitPart/WebKitPart.h: Removed.
246 * WebKitPart/WebKitPart.rc: Removed.
247 * WebKitPart/WebKitPartBrowser.rc: Removed.
248 * WebKitPart/WebKitPartBrowserExtension.cpp: Removed.
249 * WebKitPart/WebKitPartBrowserExtension.h: Removed.
250 * WebKitPart/WebKitPartClient.cpp: Removed.
251 * WebKitPart/WebKitPartClient.h: Removed.
252 * WebKitPart/WebKitPartInterface.cpp: Removed.
253 * WebKitPart/WebKitPartInterface.h: Removed.
254 * WebKitPart/org.kde.WebKitPart.xml: Removed.
256 2008-06-24 Simon Hausmann <hausmann@webkit.org>
258 Fix the Qt build, added missing include for RuntimeObjectImp.
262 2008-06-23 Benjamin C Meyer <ben@meyerhome.net>
266 Add function to retrieve the standard context menu
268 2008-06-20 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
272 https://bugs.webkit.org/show_bug.cgi?id=19082
273 [Qt] Full-page plugins not activated
275 * WebCoreSupport/FrameLoaderClientQt.cpp:
276 (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a
277 plugin present, as it can be created during the function.
279 2008-06-20 Marco Barisione <marco.barisione@collabora.co.uk>
283 https://bugs.webkit.org/show_bug.cgi?id=19082
284 [Qt] Full-page plugins not activated
286 * WebCoreSupport/FrameLoaderClientQt.cpp:
287 (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the
288 MIME type is supported by a plugin.
290 2008-06-18 Alexey Proskuryakov <ap@webkit.org>
294 Prepare JavaScript heap for being per-thread.
297 (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build.
299 2008-06-18 Julien Chaffraix <jchaffraix@webkit.org>
301 Qt Build fix after r34627.
303 * WebCoreSupport/FrameLoaderClientQt.cpp:
304 (WebCore::FrameLoaderClientQt::createPlugin):
306 2008-06-15 Darin Adler <darin@apple.com>
308 - give Frame object functions shorter names: scriptProxy() -> script(),
309 selectionController() -> selection(), animationController() -> animation()
312 (QWebFrame::evaluateJavaScript):
314 (QWebPagePrivate::focusInEvent):
315 (QWebPagePrivate::focusOutEvent):
316 (QWebPage::inputMethodQuery):
317 * WebCoreSupport/EditorClientQt.cpp:
318 (WebCore::EditorClientQt::handleKeyboardEvent):
320 2008-06-15 Darin Adler <darin@apple.com>
322 - new names for more JavaScriptCore files
326 2008-06-15 Darin Adler <darin@apple.com>
328 - new names for a few key JavaScriptCore files
332 2008-06-14 Darin Adler <darin@apple.com>
334 Rubber stamped by Sam.
336 - new names for kjs_binding.h and kjs_proxy.h
339 (QWebFrame::evaluateJavaScript):
342 2008-06-14 Darin Adler <darin@apple.com>
347 (QWebFramePrivate::init): Added a missing semicolon.
349 2008-06-14 Darin Adler <darin@apple.com>
353 - more https://bugs.webkit.org/show_bug.cgi?id=17257
354 start ref counts at 1 instead of 0 for speed
357 (QWebFramePrivate::init): Use create instead of new.
358 * WebCoreSupport/FrameLoaderClientQt.cpp:
359 (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto.
361 2008-06-13 Darin Adler <darin@apple.com>
365 * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument.
367 2008-06-13 Darin Adler <darin@apple.com>
369 Reviewed by John Sullivan.
371 - updated for addition of FormState argument to action policy functions
373 * WebCoreSupport/FrameLoaderClientQt.cpp:
374 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
375 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
377 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
381 Fix left-click and middle-click mouse event are not properly accepted.
383 When copying or pasting text using left or middle-click, the event must be
384 accepted so that it will not be potentially processed further by the parent
385 and/or sub-classed widget.
389 (QWebPagePrivate::mouseReleaseEvent):
391 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
395 Fix input element does not accept character typed in using AltGr.
397 EditorClient is modified to catch AltGr and Ctrl+Alt key combination.
398 This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry
400 * WebCoreSupport/EditorClientQt.cpp:
401 (WebCore::EditorClientQt::handleKeyboardEvent):
403 2008-05-26 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
407 https://bugs.webkit.org/show_bug.cgi?id=19323
409 Implemented the QWebPage::editable property.
411 Small documentation fixes by Simon.
414 (QWebPagePrivate::QWebPagePrivate):
415 (QWebPage::setEditable):
416 (QWebPage::isEditable):
418 * Api/qwebpage_p.h: implement the editable property and add API so that
419 applications can switch edit mode on and off for a particular QWebPage
420 * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the
421 QWebPage instead of always returning false
423 2008-06-09 Tor Arne Vestbø <tavestbo@trolltech.com>
427 Make sure web action in context menus have the right enablement,
428 while not messing up other web actions not included in the menu.
431 (QWebPagePrivate::createContextMenu):
432 (QWebPage::updatePositionDependentActions):
435 2008-06-09 Benjamin C Meyer <ben@meyerhome.net>
439 Add Shift-Space shortcut to go up one screen, the opposite of Space
440 which goes down one screen.
443 (QWebPagePrivate::handleScrolling):
445 2008-06-04 Tor Arne Vestbø <tavestbo@trolltech.com>
449 Fix a failing assertion when calling QWebFrame::evaluateJavaScript.
451 The starting line number has to be 1 instead of 0.
454 (QWebFrame::evaluateJavaScript):
456 2008-06-03 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
460 * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains(). This
461 function is not used anywhere internally and is only a convenience
462 function that can still be accomplished using
463 QWebHistoryInterface::historyContains();
465 2008-05-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
469 Doc: Mention the requirement of a QApplication with QtWebKit
474 2008-05-29 David Boddie <dboddie@trolltech.com>
478 Some clarifications for the documentation.
482 * Api/qwebpluginfactory.cpp:
484 2008-05-27 Ariya Hidayat <ariya.hidayat@trolltech.com>
488 Fix web inspector does not returns its state properly after its window is minimized.
490 As hinted by Holger, InspectorClientView::hideEvent is not needed.
491 This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967
493 * WebCoreSupport/InspectorClientQt.cpp:
495 2008-05-21 Siraj Razick <siraj.razick@collabora.co.uk>
499 Add <param name="classid"/> support for application/x-qt-object plugins
501 * WebCoreSupport/FrameLoaderClientQt.cpp:
502 (WebCore::FrameLoaderClientQt::createPlugin):
504 2008-05-13 Andy Shaw <andy@trolltech.com>
508 Fixes: QWebHistory::forward() should go forwards and not back
510 * Api/qwebhistory.cpp:
512 2008-05-12 Alexey Proskuryakov <ap@webkit.org>
514 Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify
515 SquirrelFish merging.
518 (QWebFrame::addToJavaScriptWindowObject):
520 2008-05-09 Thiago Macieira <tjmaciei@trolltech.com>
524 Fix bad includes in QtWebKit public headers.
526 Make sure to include qglobal.h using the QtCore prefix so that an explicit
527 include/QtCore is not needed in the application's build system. Also make sure
528 that qwebsettings.h includes the local qwebkitglobal.h.
531 * Api/qwebkitglobal.h:
532 * Api/qwebsettings.h:
534 2008-05-08 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
538 https://bugs.webkit.org/show_bug.cgi?id=18935
540 Based on work by Sriram Neelakandan for the Gtk port.
542 * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize
543 m_hasSentResponseToPlugin.
544 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
545 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
547 2008-05-08 Warwick Allison <warwick@trolltech.com>
551 Fixes: WebKit expects initial input method state to be *disabled*.
553 At least QWS does not need the initial input method state to be forced to
554 enabled, but other platforms (esp. X11) do. Until fixed/tested on those
555 platforms, this is specific to QWS.
559 (QWebView::QWebView):
561 2008-05-06 Simon Hausmann <hausmann@webkit.org>
565 Fix logic error in QWebHitTestResult::isNull().
569 2008-05-02 Benjamin Meyer <bmeyer@trolltech.com>
573 Doc: Mention that you have to enable plugins in QWebSettings for them to work.
577 2008-05-02 Simon Hausmann <hausmann@webkit.org>
579 Fix the Qt build, ExecState is required here.
582 (QWebFrame::addToJavaScriptWindowObject):
584 2008-05-01 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
586 Reviewed by Alp Toker.
587 Qt parts OK'ed by Simon Hausmann.
589 https://bugs.webkit.org/show_bug.cgi?id=14750
590 Added support for NPAPI plugins on Gtk and Qt-x11 ports.
592 * WebCoreSupport/FrameLoaderClientQt.cpp:
593 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
594 (WebCore::FrameLoaderClientQt::finishedLoading):
595 (WebCore::FrameLoaderClientQt::setMainDocumentError):
596 (WebCore::FrameLoaderClientQt::committedLoad):
597 (WebCore::FrameLoaderClientQt::objectContentType):
598 (WebCore::FrameLoaderClientQt::createPlugin):
599 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
600 * WebCoreSupport/FrameLoaderClientQt.h:
602 2008-04-30 Julien Chaffraix <jchaffraix@webkit.org>
606 Fixes a brace error that made Qt 4.4 build but not Qt 4.3.
611 2008-04-30 Tor Arne Vestbø <tavestbo@trolltech.com>
615 In focusIn and focusOut event always update the active state of the
616 focus controller. Fixes ~400 failing layout tests due to missing
617 editing callbacks that relied on the correct focus.
620 (QWebPagePrivate::focusInEvent):
621 (QWebPagePrivate::focusOutEvent):
623 2008-04-29 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
627 Fix compilation with QT_NO_PRINTER
633 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
637 Ensure that relative URL is converted to absolute URL.
639 This is necessary because loading a relative URL is not really supported
640 (the web page may load, but the subsequent URLs for images and links will
641 not be resolved properly).
642 This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484
650 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
654 Simplification of Qt Launcher (no animation and use standard progress bar widget)
656 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.
659 * QtLauncher/main.cpp:
660 (MainWindow::MainWindow):
662 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
666 Update the cursor when the frame/page loading is finished.
668 This fixes https://bugs.webkit.org/show_bug.cgi?id=18712
671 * WebCoreSupport/FrameLoaderClientQt.cpp:
672 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
673 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
675 2008-04-29 Simon Hausmann <shausman@trolltech.com>
679 Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links.
681 Call QWebPage::acceptNavigationRequest when the creation of a new window with
682 URL is requested. The frame pointer is set to null in this case.
686 (QWebPage::setViewportSize):
687 * WebCoreSupport/FrameLoaderClientQt.cpp:
688 (WebCore::FrameLoaderClientQt::startDownload):
689 (WebCore::FrameLoaderClientQt::createFrame):
691 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
695 Use the WebCore facility to do the scrolling. Move some code around.
698 (QWebPagePrivate::keyPressEvent):
699 (QWebPagePrivate::shortcutOverrideEvent):
700 (QWebPagePrivate::handleScrolling):
703 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
707 fix potential crash when loading image(s)
709 Crash may occur. If compiled with 4.3, the variable is not initialized.
712 (QWebPagePrivate::QWebPagePrivate):
714 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
718 Calling QWebView::setCursor will override the WebCore Cursor.
719 Calling QWebView::setCursor will override the WebCore Cursor using
720 QWidget::unsetCursor will revert to the WebCore Cursor.
722 For detecting the unset we have to compare the shape of the
723 cursor to the default arrow. Qt::WA_SetCursor can not be used
724 as it is set unconditionally but conditionally removed.
726 Calling QWidget::setCursor will immediately send the CursorChange
727 event. We listen to this event to decide if we currently use a
728 WebCore cursor, got a cursor from outside, or revert to the default.
730 This should be race free and work reliable, the manual test for this
731 is WebCore/manual-tests/cursor.html
734 (SetCursorEvent::SetCursorEvent):
737 (QWebViewPrivate::QWebViewPrivate):
738 (QWebViewPrivate::setCursor):
739 (QWebView::QWebView):
742 2008-04-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
748 - Fixed a qdoc warning
749 - Mention that fav icons can be of arbitrary size
750 - Fix signature of QWebPage::acceptNavigationRequest show in the documentation
755 * Api/qwebsettings.cpp:
758 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
762 Fix QWebView::loadFinished isn't always emitted
764 Replaced loadDone() with loadFinished(bool) and moved the signals for progress
765 tracking (start, progres, and finish) to the page instead of the frame. This
766 ensures that we emit loadFinished even when a subframe started the actual load.
768 This causes a few regressions in the layout tests that we for now accept for
769 the sake of the correct API. Layout tests we can fix any time though, including
770 patch release, the API however we can't change anymore in patch releases.
775 (QWebPage::totalBytes):
780 * QtLauncher/main.cpp:
781 (MainWindow::MainWindow):
782 * WebCoreSupport/FrameLoaderClientQt.cpp:
783 (drtDescriptionSuitableForTestResult):
784 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
785 (WebCore::FrameLoaderClientQt::setFrame):
786 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
787 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
788 (WebCore::FrameLoaderClientQt::willChangeTitle):
789 (WebCore::FrameLoaderClientQt::createDocumentLoader):
790 (WebCore::FrameLoaderClientQt::download):
791 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
792 * WebCoreSupport/FrameLoaderClientQt.h:
794 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
798 Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame
801 * Api/qwebpluginfactory.cpp:
802 * Api/qwebsettings.cpp:
803 (QWebSettings::QWebSettings):
804 (QWebSettings::setUserStyleSheetUrl):
805 (QWebSettings::iconForUrl):
806 (QWebSettings::webGraphic):
807 (QWebSettings::maximumPagesInCache):
808 (QWebSettings::setFontFamily):
809 (QWebSettings::resetFontFamily):
810 (QWebSettings::testAttribute):
811 (QWebSettings::resetAttribute):
813 2008-04-28 Ariya Hidayat <ahidayat@trolltech.com>
817 Fix document/frame title not reset when loading a new URI
819 We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle()
820 will be called very soon with the correct title.
821 This properly resets the title when we navigate to a URI without a title.
824 * WebCoreSupport/FrameLoaderClientQt.cpp:
826 2008-04-28 David Boddie <dboddie@trolltech.com>
830 Minor documentation changes.
834 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
838 Prevent middle-click from triggering open URL from clipboard when the event has already been accepted.
842 (QWebPagePrivate::mouseMoveEvent):
843 (QWebPagePrivate::mousePressEvent):
844 (QWebPagePrivate::mouseDoubleClickEvent):
845 (QWebPagePrivate::mouseTripleClickEvent):
846 (QWebPagePrivate::mouseReleaseEvent):
848 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
852 Fix scrollbar behavior in QtWebKit to match QScrollBar.
854 Right click context menu is now supported, along with
855 middle click to center slider thumb over mouse cursor.
859 (QWebPage::linkDelegationPolicy):
861 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
865 Implemented channel-based logging for QtWebKit.
867 Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable.
868 Warnings for notImplemented() is still output by default, but can be disabled
869 by setting DISABLE_NI_WARNINGS=1.
872 (QWebPagePrivate::QWebPagePrivate):
874 2008-04-28 Simon Hausmann <shausman@trolltech.com>
876 Rubber-stamped by Lars
878 Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API.
885 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
889 Doc - adding more documentation to QWebFrame, QWebPage and QWebView
897 (QWebView::changeEvent):
899 2008-04-28 Simon Hausmann <shausman@trolltech.com>
903 Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens
905 Give the popups the right parent widget and the right coordinates relative within the parent.
910 2008-04-28 Benjamin Meyer <bmeyer@trolltech.com>
914 Doc: Add see also's (and a few minor whitespace/typo corrections)
918 (QWebFrame::~QWebFrame):
919 (QWebFrame::setHtml):
920 (QWebFrame::setContent):
921 (QWebFrame::parentFrame):
922 (QWebFrame::childFrames):
923 (QWebFrame::setScrollBarValue):
924 (QWebFrame::scrollBarValue):
925 (QWebFrame::scrollBarMaximum):
926 (QWebFrame::scrollBarMinimum):
929 (QWebFrame::geometry):
931 (QWebFrame::evaluateJavaScript):
933 (QWebPagePrivate::mousePressEvent):
934 (QWebPagePrivate::mouseDoubleClickEvent):
935 (QWebPage::~QWebPage):
936 (QWebPage::javaScriptPrompt):
938 (QWebPage::setViewportSize):
939 (QWebPage::acceptNavigationRequest):
941 (QWebPage::userAgentForUrl):
942 (QWebPagePrivate::_q_onLoadProgressChanged):
946 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
950 Submitting more documentation for QWebPage
955 2008-04-28 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
959 Compile when QT_NO_CLIPBOARD is defined.
963 (QWebPage::triggerAction):
965 2008-04-28 David Boddie <dboddie@trolltech.com>
969 Minor documentation fix.
972 * Api/qwebhistory.cpp:
974 2008-04-28 Holger Hans Peter Freyther <zecke@selfish.org>
978 Implement QWebPage::createPlugin
980 The code is coming from the demo browser and needed here
981 for some manual tests.
984 * QtLauncher/QtLauncher.pro:
985 * QtLauncher/main.cpp:
986 (WebPage::createPlugin):
988 2008-04-28 Simon Hausmann <hausmann@webkit.org>
990 Qt/Win build fix. Include config.h to get the implicit MathExtras.h
991 inclusion correct with regards to rand_s.
993 * Api/qwebhistory.cpp:
995 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
999 https://bugs.webkit.org/show_bug.cgi?id=18713
1001 Fix scrollbar painting issues in QtWebKit.
1003 Hovering and click-draging outside of the scrollbar would
1004 produce unexpected and inconcistent results. We also didn't
1005 pass on leave-events to the underlying WebKit code, which
1006 was nessecary to implement the paint fix.
1008 Note: The event handling of the Leave event should be moved
1009 out of QWebView::event() and into a proper override for 4.5.
1012 (QWebPagePrivate::leaveEvent):
1017 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1019 Reviewed by Simon, Holger.
1021 Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus.
1023 * Correctly de- and reactivate the focused frame in focusOut/focusInEvent
1024 without telling the focus controller. We don't want to change the focused frame
1025 - the controller has to remember it in fact - but instead just deactivate the
1026 frame for correct painting as RenderTheme::isFocused() uses the activation
1030 (QWebPagePrivate::focusInEvent):
1031 (QWebPagePrivate::focusOutEvent):
1033 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
1037 completed documentation for the Detailed Description section for QWebView
1042 2008-04-25 Denis Dzyubenko <denis.dzyubenko@trolltech.com>
1046 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.
1049 * Api/qwebhistory.cpp:
1050 (QWebHistory::back):
1051 (QWebHistory::forward):
1052 (QWebHistory::goToItem):
1054 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
1058 Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest().
1061 * WebCoreSupport/FrameLoaderClientQt.cpp:
1062 (WebCore::FrameLoaderClientQt::createFrame):
1064 2008-04-25 Simon Hausmann <hausmann@webkit.org>
1068 When pressing backspace in a line edit in a webpage we should not go back to the previous page.
1070 The shortcut for back on Windows is backspace. Implemented shortcut override
1071 handling in QWebView/QWebPage to prevent this.
1075 (QWebPagePrivate::wheelEvent):
1076 (editorActionForKeyEvent):
1077 (QWebPagePrivate::keyPressEvent):
1078 (QWebPagePrivate::inputMethodEvent):
1079 (QWebPagePrivate::shortcutOverrideEvent):
1085 2008-04-25 Ariya Hidayat <ariya.hidayat@trolltech.com>
1089 Fix triple-clicking does not work in a web page
1093 (QWebPagePrivate::updateEditorActions):
1094 (QWebPagePrivate::timerEvent):
1095 (QWebPagePrivate::mousePressEvent):
1096 (QWebPagePrivate::mouseDoubleClickEvent):
1097 (QWebPage::undoStack):
1100 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1104 When pressing Ctrl-Up the keyboard modifiers could include other modifiers
1108 (QWebPagePrivate::keyPressEvent):
1110 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
1114 Fix handling of Javascript's confirm() function in QtWebKit.
1119 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
1123 Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity
1128 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1132 QWebPage: missing signal when window.print() is requested from javascript
1137 * WebCoreSupport/ChromeClientQt.cpp:
1139 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1143 Fixes: "Save Image" action wasn't doing anything.
1147 (QWebPage::triggerAction):
1149 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1153 Apply key event changes to the current frame, not the main frame.
1155 Example: hitting space bar should scroll current frame, not the main frame
1156 which doesn't even have a scrollbar.
1160 (QWebPagePrivate::keyPressEvent):
1162 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
1166 Fixes: QWebFrame crash when fetching the icon
1168 Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock.
1170 * Api/qwebframe.cpp:
1172 2008-04-25 Warwick Allison <warwick@trolltech.com>
1176 Fixes: Scrollbars did not report correct maximum.
1178 * Api/qwebframe.cpp:
1180 2008-04-25 David Boddie <dboddie@trolltech.com>
1184 Documentation updates for some of the QWeb classes
1186 * Api/qwebframe.cpp:
1187 * Api/qwebhistory.cpp:
1188 * Api/qwebsettings.cpp:
1191 2008-04-25 Holger Hans Peter Freyther <zecke@selfish.org>
1195 Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html
1197 Similar to Editing and Frameloading we do the dumping within WebCore
1200 * WebCoreSupport/FrameLoaderClientQt.cpp:
1201 (qt_dump_frame_loader):
1202 (qt_dump_resource_load_callbacks):
1203 (drtDescriptionSuitableForTestResult):
1204 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
1205 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
1206 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
1208 2008-04-24 Anders Carlsson <andersca@apple.com>
1212 Change some String arguments to be const references instead.
1214 * WebCoreSupport/EditorClientQt.cpp:
1215 (WebCore::EditorClientQt::shouldInsertText):
1216 * WebCoreSupport/EditorClientQt.h:
1218 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
1222 Cosmetic changes to make the code more readable.
1223 -Early exit if we don't have a webview
1224 -handle the empty tooltip and non-empty tooltip case separately
1227 * WebCoreSupport/ChromeClientQt.cpp:
1228 (WebCore::ChromeClientQt::setToolTip):
1229 (WebCore::ChromeClientQt::print):
1231 2008-04-24 Paul Olav Tvete <paul@trolltech.com>
1235 Automatically wrap tooltip text and hide a shown tooltip when it is empty.
1237 QWidget::setTooltip("") will still show the old tooltip for up to 10 seconds.
1238 Workaround as discussed with Matthias.
1240 * WebCoreSupport/ChromeClientQt.cpp:
1241 (WebCore::ChromeClientQt::setToolTip):
1243 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
1247 Allow to disable caching completeley by calling setObjectCacheCapacities(0, 0, 0)
1249 * Api/qwebsettings.cpp:
1250 (QWebSettings::setObjectCacheCapacities):
1252 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
1256 Improve keyboard scrolling
1258 Match Down/Up keys scroll distance with Safari (i.e. faster) and add Home and End shortcuts to scroll to the top/botom.
1262 (QWebPagePrivate::keyPressEvent):
1264 2008-04-24 Olivier Goffart <ogoffart@trolltech.com>
1268 Fix various compiler warnings in the Qt port.
1270 * Api/qwebframe.cpp:
1272 * Api/qwebsettings.cpp:
1274 * WebCoreSupport/FrameLoaderClientQt.cpp:
1275 (WebCore::FrameLoaderClientQt::createPlugin):
1277 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
1281 Cleaned up copyright headers (removed misplaced class descriptions and
1282 fixed inconsistent whitespace and indentation).
1284 * Api/qwebframe.cpp:
1286 * Api/qwebframe_p.h:
1287 * Api/qwebhistory.cpp:
1288 * Api/qwebhistory.h:
1289 * Api/qwebhistory_p.h:
1290 * Api/qwebhistoryinterface.cpp:
1291 * Api/qwebhistoryinterface.h:
1292 * Api/qwebkitglobal.h:
1293 * Api/qwebnetworkinterface.cpp:
1294 * Api/qwebnetworkinterface.h:
1295 * Api/qwebnetworkinterface_p.h:
1299 * Api/qwebpluginfactory.cpp:
1300 * Api/qwebpluginfactory.h:
1301 * Api/qwebsettings.cpp:
1302 * Api/qwebsettings.h:
1304 * QtLauncher/main.cpp:
1306 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
1310 Added basic URL guessing to QtLauncher (same as in the demo browser).
1313 * QtLauncher/main.cpp:
1314 (MainWindow::changeLocation):
1315 (MainWindow::guessUrlFromString):
1317 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
1319 Reviewed by Simon Hausmann <hausmann@webkit.org>.
1321 Prevent double deletions of the default web interface.
1324 * Api/qwebhistoryinterface.cpp:
1325 (gCleanupInterface):
1326 (QWebHistoryInterface::QWebHistoryInterface):
1328 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1330 Fix compilation against Qt 4.3
1333 (QWebPage::userAgentForUrl):
1334 * QtLauncher/main.cpp:
1337 2008-04-23 Holger Hans Peter Freyther <zecke@selfish.org>
1341 * Make sure the "Inspect Element" item gets added to the ContextMenu, a call
1342 to ContextMenu::populate() is not adding it, the ContextMenuController does
1343 add it after the call to populate(). Do that as well.
1347 (QWebPage::updatePositionDependentActions):
1349 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1353 Fix crashes on window.close().
1355 We should not delete the QWebPage object in the ChromeClient but leave it up to
1356 the application when and whether to delete a browser window. For this we now
1357 emit the windowCloseRequested() signal.
1363 * QtLauncher/main.cpp:
1364 (MainWindow::MainWindow):
1365 * WebCoreSupport/ChromeClientQt.cpp:
1367 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1371 Fix parsing of external scripts/stylesheets when using setHtml(const QString &html).
1373 We used to pass the html string to the frameloader in utf-16, which also meant that the default
1374 encoding of external scripts/stylesheets became utf-16. That doesn't make sense, so assume utf-8
1375 by default. This is now also documented.
1377 * Api/qwebframe.cpp:
1378 (QWebFrame::setHtml):
1381 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
1385 Fixes background color propagation when using a custom QWebPage
1387 Set the palette in setPage(), not during the creation on-demand.
1392 (QWebView::setPage):
1394 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
1398 Fix the user agent on the mac to be BSD4
1400 Put Q_OS_DARWIN before Q_OS_BSD4 sense they are both defined on the mac
1404 (QWebPage::userAgentForUrl):
1406 2008-04-23 Simon Hausmann <shausman@trolltech.com>
1410 Added missing copyright notice.
1411 Small fixes to the documentation.
1413 * Api/qwebpluginfactory.cpp:
1415 2008-04-23 Zack Rusin <zack@tungstengraphics.com>
1419 Added a contentsSize() property.
1421 * Api/qwebframe.cpp:
1422 (QWebFrame::contentsSize):
1423 (QWebFrame::hitTestContent):
1426 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1430 Fixes: QWebPage's QNetworkManager's can be shared among webpages.
1432 Don't force the deletion of the object, but let QObject take care of it.
1436 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1440 Documentation for QWebPluginFactory and documentation updates for QWebPage.
1443 (QWebPage::setLinkDelegationPolicy):
1444 (QWebPage::linkDelegationPolicy):
1445 (QWebPage::swallowContextMenuEvent):
1446 (QWebPage::updatePositionDependentActions):
1447 (QWebPage::extension):
1448 (QWebPage::networkAccessManager):
1449 * Api/qwebpluginfactory.cpp:
1450 (QWebPluginFactory::QWebPluginFactory):
1451 (QWebPluginFactory::~QWebPluginFactory):
1452 (QWebPluginFactory::refreshPlugins):
1454 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1458 Added QWebPage::swallowContextMenuEvent and QWebPage::updatePositionDependentActions.
1462 (QWebPagePrivate::QWebPagePrivate):
1463 (QWebPagePrivate::mouseReleaseEvent):
1464 (QWebPage::setLinkDelegationPolicy):
1465 (QWebPage::linkDelegationPolicy):
1466 (QWebPage::swallowContextMenuEvent):
1467 (QWebPage::updatePositionDependentActions):
1473 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1477 Added Extension APIs for QWebPage.
1480 (QWebPage::setLinkDelegationPolicy):
1481 (QWebPage::linkDelegationPolicy):
1482 (QWebPage::extension):
1484 * Api/qwebpluginfactory.cpp:
1485 (QWebPluginFactory::extension):
1487 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
1491 Emit loadProgress() signal on loadStarted().
1494 * WebCoreSupport/FrameLoaderClientQt.cpp:
1495 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
1497 2008-04-22 Zack Rusin <zack@kde.org>
1501 Fix background propagation from the QWebView's palette.
1503 The background brush of the palette needs to be propagated to the WebCore::FrameView.
1505 * Api/qwebframe.cpp:
1506 (QWebFramePrivate::updateBackground):
1507 * Api/qwebframe_p.h:
1509 (QWebPagePrivate::dropEvent):
1510 (QWebPage::setPalette):
1515 (QWebView::changeEvent):
1517 * WebCoreSupport/FrameLoaderClientQt.cpp:
1519 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1525 We have to include a version in the Safari tag in the user-agent.
1528 (QWebPage::userAgentForUrl):
1530 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
1534 Add visual focusing hint for clear button and
1535 change focus to web page after user enters new URL.
1537 * QtLauncher/main.cpp:
1538 (ClearButton::paintEvent):
1539 (MainWindow::changeLocation):
1541 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1545 Added QWebFrame::hitTestContent() and QWebHitTestResult.
1547 * Api/qwebframe.cpp:
1548 (QWebFrame::hitTestContent):
1550 (QWebHitTestResult::QWebHitTestResult):
1551 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1552 (QWebHitTestResult::operator=):
1553 (QWebHitTestResult::~QWebHitTestResult):
1554 (QWebHitTestResult::isNull):
1555 (QWebHitTestResult::pos):
1556 (QWebHitTestResult::title):
1557 (QWebHitTestResult::linkText):
1558 (QWebHitTestResult::linkUrl):
1559 (QWebHitTestResult::linkTitle):
1560 (QWebHitTestResult::linkTargetFrame):
1561 (QWebHitTestResult::alternateText):
1562 (QWebHitTestResult::imageUrl):
1563 (QWebHitTestResult::pixmap):
1564 (QWebHitTestResult::isContentEditable):
1565 (QWebHitTestResult::isContentSelected):
1566 (QWebHitTestResult::frame):
1568 * Api/qwebframe_p.h:
1569 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1571 (QWebPagePrivate::contextMenuEvent):
1572 (QWebPage::triggerAction):
1576 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1580 Don't crash if an input method query is done without a page.
1584 (QWebView::inputMethodQuery):
1586 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1590 Added re-implementations of QObject::event for future safety.
1592 This makes it easier to fix bugs with the event handling even in patch releases
1593 and is a general style we follow in Qt.
1596 * Api/qwebframe.cpp:
1602 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1606 Fix construction of the user agent.
1608 The user-agent is now composed of
1609 * the platform and subplatform
1610 * the Qt version or application name and version (if set)
1616 (QWebPage::networkAccessManager):
1617 (QWebPage::setPluginFactory):
1618 (QWebPage::pluginFactory):
1619 (QWebPage::userAgentForUrl):
1620 * QtLauncher/main.cpp:
1622 2008-04-22 Thiago Macieira <tjmaciei@trolltech.com>
1626 Fixes: Pedantic compilation fix
1628 Don't put semi-colons after braces closing namespaces.
1630 * Api/qwebsettings.h:
1632 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1636 Changed the return type of QWebFrame::evaluateJavaScript from a QString to a QVariant.
1638 * Api/qwebframe.cpp:
1639 (QWebFrame::evaluateJavaScript):
1642 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1646 Fixes redundant "Fonts" submenu in default lineedits that has only disabled items.
1648 Don't show sub-menus that have only actions that are disabled.
1651 (QWebPagePrivate::createContextMenu):
1653 2008-04-21 Kavindra Devi Palaraja <kdpalara@trolltech.com>.
1657 Lots of documentation fixes, fixed all qdoc warnings.
1659 * Api/qwebframe.cpp:
1660 (QWebFrame::setTextSizeMultiplier):
1661 * Api/qwebhistoryinterface.cpp:
1662 (gCleanupInterface):
1663 (QWebHistoryInterface::QWebHistoryInterface):
1664 (QWebHistoryInterface::~QWebHistoryInterface):
1666 (QWebPage::inputMethodQuery):
1668 (QWebPage::javaScriptConsoleMessage):
1669 (QWebPage::javaScriptAlert):
1670 (QWebPage::javaScriptConfirm):
1671 (QWebPage::javaScriptPrompt):
1672 (QWebPage::viewportSize):
1673 (QWebPage::acceptNavigationRequest):
1676 (QWebPage::focusNextPrevChild):
1677 (QWebPage::setForwardUnsupportedContent):
1678 (QWebPage::setLinkDelegationPolicy):
1679 (QWebPage::findText):
1680 (QWebPage::settings):
1681 (QWebPage::networkProxy):
1682 (QWebPage::setNetworkAccessManager):
1684 * Api/qwebsettings.cpp:
1685 (QWebSettings::QWebSettings):
1686 (QWebSettings::setIconDatabasePath):
1687 (QWebSettings::iconForUrl):
1688 (QWebSettings::fontFamily):
1693 2008-04-21 Marius Bugge Monsen <mmonsen@trolltech.com>
1697 Fix compile failure on solaris-cc
1699 * Api/qwebpage.h: Removed trailing semicolons and moved the private
1700 d-pointer to not confuse the compiler
1702 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1706 Build fix for Qt 4.3
1708 * When building WebCore/internal make sure the QT_[BEGIN,END]_NAMESPACE is
1709 always defined. Do this by adding defines to the compiler line
1710 * For users of our API this is not feasible. Every public header file should
1711 include qwebkitglobal.h. Define the QT_BEGIN_NAMESPACE and QT_END_NAMESPACE
1712 when we are building everything < 4.4.0 and don't have them defined.
1714 * Api/qwebkitglobal.h:
1716 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1720 * Initialize the WebGraphics with the one found in WebCore
1723 * Api/qwebsettings.cpp:
1724 (QWebSettingsPrivate::apply):
1726 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1730 * Allow TextAreas to be resized.
1731 * No QWebSettings for this is introduced.
1734 * Api/qwebsettings.cpp:
1735 (QWebSettingsPrivate::apply):
1737 2008-04-21 Simon Hausmann <shausman@trolltech.com>
1741 Fixes: QWebView::url property behaviour strange in designer
1743 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.
1745 * Api/qwebframe.cpp:
1746 (QWebFrame::setUrl):
1752 2008-04-21 Andre Poenitz <andre.poenitz@trolltech.com>
1754 Reviewed by Simon Hausmann <hausmann@webkit.org>.
1756 Fix compilation with Qt namespaces
1758 * Api/qwebframe.cpp:
1762 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1766 When printing on high resolution printers we need to scale the painter accordingly (for now).
1768 * Api/qwebframe.cpp:
1771 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1775 Provide a print preview in the QtLauncher
1777 * QtLauncher/main.cpp:
1778 (MainWindow::MainWindow):
1779 (MainWindow::showLinkHover):
1780 (MainWindow::print):
1782 2008-04-20 Simon Hausmann <hausmann@webkit.org>
1784 Reviewed by Alp Toker.
1786 Share the printing code between the Gtk and the Qt port
1787 and added printing to the Qt WebKit API.
1789 * Api/qwebframe.cpp:
1796 2008-04-19 Julien Chaffraix <jchaffraix@webkit.org>
1798 Qt build fix (renderer() -> contentRenderer()).
1800 * Api/qwebframe.cpp:
1801 (QWebFrame::renderTreeDump):
1802 (QWebFrame::render):
1804 2008-04-18 Simon Hausmann <hausmann@webkit.org>
1808 Many API changes and additions after a full review with Jasmin Blanchette <jasmin@trolltech.com>
1810 The diff is too big to mention the changes individually, but most of the changes were of cosmetic
1811 nature where methods or enums have been renamed or prefixed/suffixed according to the consistency
1812 rules of the Qt API.
1814 * Api/qwebframe.cpp:
1815 (QWebFrame::addToJavaScriptWindowObject):
1816 (QWebFrame::toHtml):
1817 (QWebFrame::toPlainText):
1819 (QWebFrame::setContent):
1820 (QWebFrame::setScrollBarPolicy):
1821 (QWebFrame::render):
1822 (QWebFrame::setTextSizeMultiplier):
1823 (QWebFrame::textSizeMultiplier):
1826 * Api/qwebhistory.cpp:
1827 * Api/qwebhistory.h:
1829 (QWebPagePrivate::QWebPagePrivate):
1830 (QWebPagePrivate::~QWebPagePrivate):
1831 (QWebPagePrivate::acceptNavigationRequest):
1832 (webActionForContextMenuAction):
1833 (QWebPagePrivate::updateAction):
1834 (QWebPagePrivate::keyPressEvent):
1836 (QWebPage::javaScriptPrompt):
1837 (QWebPage::createWindow):
1838 (QWebPage::triggerAction):
1839 (QWebPage::setViewportSize):
1840 (QWebPage::acceptNavigationRequest):
1842 (QWebPage::focusNextPrevChild):
1843 (QWebPage::setForwardUnsupportedContent):
1844 (QWebPage::forwardUnsupportedContent):
1845 (QWebPage::setLinkDelegationPolicy):
1846 (QWebPage::findText):
1847 (QWebPage::networkAccessManager):
1848 (QWebPageContext::imageUrl):
1849 (QWebPageContext::image):
1852 * Api/qwebsettings.cpp:
1853 (QWebSettingsPrivate::apply):
1854 (QWebSettings::QWebSettings):
1855 (QWebSettings::setIconDatabasePath):
1856 (QWebSettings::iconDatabasePath):
1857 (QWebSettings::clearIconDatabase):
1858 (QWebSettings::iconForUrl):
1859 (QWebSettings::setWebGraphic):
1860 (QWebSettings::fontFamily):
1861 (QWebSettings::setAttribute):
1862 (QWebSettings::testAttribute):
1863 (QWebSettings::resetAttribute):
1864 * Api/qwebsettings.h:
1866 (QWebView::setPage):
1868 (QWebView::setTextSizeMultiplier):
1869 (QWebView::textSizeMultiplier):
1870 (QWebView::findText):
1872 (QWebView::mouseMoveEvent):
1874 * QtLauncher/main.cpp:
1875 (MainWindow::MainWindow):
1877 * WebCoreSupport/ChromeClientQt.cpp:
1878 (WebCore::ChromeClientQt::ChromeClientQt):
1879 (WebCore::ChromeClientQt::setWindowRect):
1880 (WebCore::ChromeClientQt::toolbarsVisible):
1881 (WebCore::ChromeClientQt::setStatusbarVisible):
1882 (WebCore::ChromeClientQt::statusbarVisible):
1883 (WebCore::ChromeClientQt::setScrollbarsVisible):
1884 (WebCore::ChromeClientQt::setResizable):
1885 (WebCore::ChromeClientQt::scrollBackingStore):
1886 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
1887 (WebCore::ChromeClientQt::setToolTip):
1888 * WebCoreSupport/ChromeClientQt.h:
1889 * WebCoreSupport/FrameLoaderClientQt.cpp:
1890 (WebCore::FrameLoaderClientQt::setFrame):
1891 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
1892 (WebCore::FrameLoaderClientQt::setMainDocumentError):
1893 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
1894 (WebCore::FrameLoaderClientQt::createFrame):
1895 (WebCore::FrameLoaderClientQt::objectContentType):
1896 * WebCoreSupport/FrameLoaderClientQt.h:
1897 * WebCoreSupport/InspectorClientQt.cpp:
1899 2008-04-18 Simon Hausmann <hausmann@webkit.org>
1903 Added QWebView::find/QWebFrame::find.
1906 (QWebPage::focusNextPrevChild):
1913 2008-04-15 Ariya Hidayat <ariya.hidayat@trolltech.com>
1917 fix potential crash when loading image(s)
1919 Crash may occur. If compiled with 4.3, the variable is not initialized.
1920 This fix solves https://bugs.webkit.org/show_bug.cgi?id=17174
1923 (QWebPagePrivate::QWebPagePrivate):
1925 2008-04-15 Simon Hausmann <hausmann@webkit.org>
1929 Update the micro focus for input methods as soon as the composition mode changes
1930 or the caret/selection changes.
1936 (QWebView::setPage):
1937 * WebCoreSupport/EditorClientQt.cpp:
1938 (WebCore::EditorClientQt::respondToChangedSelection):
1939 (WebCore::EditorClientQt::setInputMethodState):
1941 2008-04-15 Simon Hausmann <hausmann@webkit.org>
1945 Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application,
1946 it yields undefined behaviour or wrong default codec initialization.
1949 * QtLauncher/main.cpp:
1950 (WebPage::createWindow):
1952 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
1956 Fixes: copy to clipboard when selecting, and paste when clicking with the middle button
1959 (QWebPagePrivate::mouseReleaseEvent): If the clipboard supports
1960 selections then we support copy & paste into the selection.
1962 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
1966 Add basic input method support.
1970 (QWebPagePrivate::dropEvent):
1971 (QWebPagePrivate::inputMethodEvent):
1972 (QWebPage::inputMethodQuery):
1977 (QWebView::QWebView):
1978 (QWebView::inputMethodQuery):
1979 (QWebView::inputMethodEvent):
1981 * WebCoreSupport/EditorClientQt.cpp:
1982 (WebCore::EditorClientQt::setInputMethodState):
1984 2008-04-15 Simon Hausmann <hausmann@webkit.org>
1988 Added (QWebFrame|QWebView)::textZoomFactor.
1991 * Api/qwebframe.cpp:
1992 (QWebFrame::setTextZoomFactor):
1993 (QWebFrame::textZoomFactor):
1996 (QWebView::setTextZoomFactor):
1997 (QWebView::textZoomFactor):
2000 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
2004 Added simple scrolling API to QWebFrame.
2006 The intent is that it works similar to QAbstractScrollArea.
2009 * Api/qwebframe.cpp:
2010 (QWebFrame::setScrollBarValue):
2011 (QWebFrame::scrollBarValue):
2012 (QWebFrame::scrollBarMaximum):
2013 (QWebFrame::scrollBarMinimum):
2016 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
2020 Fixes: implement the OpenFrameInNewWindow action.
2024 (QWebPage::triggerAction):
2026 2008-04-15 Andre Poenitz <andre.poenitz@trolltech.com>
2030 Fix compilation with Qt namespaces
2032 Qt can be configured to have all of its classes inside a specified namespaces.
2033 This is for example used in plugin/component environments like Eclipse.
2035 This change makes it possible to let the Qt port compile against a namespaced
2036 Qt by the use of macros Qt provides to properly forward declare Qt classes in
2042 * Api/qwebpluginfactory.h:
2043 * Api/qwebsettings.h:
2046 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
2050 Fixes: Right clicking an image and choosing "copy image" doesnt put anything in the clipboard.
2054 (QWebPage::triggerAction):
2056 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
2060 Fixes: Right click, and "Open image" open the link instead of the image.
2065 2008-04-05 Benjamin Meyer <bmeyer@trolltech.com>
2069 Added doc stub for QWebSettings so class docs are generated
2072 * Api/qwebsettings.cpp:
2073 (QWebSettings::QWebSettings):
2075 2008-04-05 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2079 * Propose the addition of updateRequest and scrollRequest to the QWebPage.
2081 * The question is if these signals belong to QWebPage or QWebFrame.
2082 -It is more easy to have them in QWebPage because ScrollView is invoking
2083 the ChromeClient with the right coordinates
2084 -On the other hand someone wants to render frames separately. But this is partly
2085 doomed as you can have overlapping frames and what you paint would not relate to
2086 what you normally see on webpages.
2091 * WebCoreSupport/ChromeClientQt.cpp:
2092 (WebCore::ChromeClientQt::scrollBackingStore):
2093 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2095 2008-04-03 Simon Hausmann <hausmann@webkit.org>
2097 Reviewed by Mark Rowe.
2099 Roll out r31599 and r31605 again after discussion with Mark Rowe.
2101 * Api/qwebframe.cpp:
2103 * Api/qwebsettings.cpp:
2104 (QWebSettings::iconForUrl):
2106 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2110 * Change IconDatabase::iconForPageURL to return more information. E.g. if
2111 an image has been found, or if the loading of an image has been scheduled.
2112 * Update FrameLoader to use another method to trigger reading from disk
2113 * Update the QWebFrame and QWebSettings
2115 * Api/qwebframe.cpp:
2117 * Api/qwebsettings.cpp:
2118 (QWebSettings::iconForUrl):
2120 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2124 * Safari is using the IconDatabase the following way (assumption). Before they
2125 call iconDatabase()->open they "retain" all URLs they are interested in, these
2126 could come from the history.
2127 * When opening the iconDatabase() a thread will be started that is going to import
2128 the URLs, all none manually retained URLs are scheduled for removal. The removal
2129 is going to happen when the next icon gets stored in the database.
2130 * We do not have any IconDatabase code, we can not retain the URLs before opening the
2131 database. To disable the automatic pruning of the icons we will ask the IconDatabase
2132 to delay this operation. This means our IconDatabase, when used, will grow, so we should
2133 try to have a IconDatabase class in 4.4.
2134 * The only way to counter the growth is a call to QWebSettings::clearIconDatabase
2137 * Api/qwebsettings.cpp:
2138 (QWebSettings::clearIconDatabase):
2139 * Api/qwebsettings.h:
2141 2008-04-03 Benjamin Meyer <bmeyer@trolltech.com>
2145 Add a way to get the site icon for a url
2146 static QPixmap iconForUrl(const QUrl &url);
2149 * Api/qwebsettings.cpp:
2150 (QWebSettings::iconForUrl):
2151 * Api/qwebsettings.h:
2153 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2157 * Update the Copyright info in QWebSettings
2160 * Api/qwebsettings.cpp:
2161 * Api/qwebsettings.h:
2163 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2167 * The isEmpty check is not needed anymore with the earlier backport
2170 * Api/qwebframe.cpp:
2173 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2177 * For the http tests we need the output of the FrameLoaderClient. The QtWebKit API
2178 is not exporting enough to create the output in DRT itself. Settle with the approach
2179 Lars has taken for the Editing support and add branches to our FrameLoaderClient code.
2180 * run-webkit-tests http/tests(/loading) can now be executed.
2181 * For tests in loading/ directories we are going to throw away the dirty
2182 QWebPage to start with something clean.
2185 * WebCoreSupport/FrameLoaderClientQt.cpp:
2186 (qt_dump_frame_loader):
2187 (drtDescriptionSuitableForTestResult):
2188 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
2189 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
2190 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
2191 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
2192 (WebCore::FrameLoaderClientQt::dispatchWillClose):
2193 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
2194 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2195 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
2196 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
2197 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
2198 (WebCore::FrameLoaderClientQt::registerForIconNotification):
2199 (WebCore::FrameLoaderClientQt::setMainDocumentError):
2200 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2202 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2206 * Export the PageCache and Cache capacity call one to one. This is only there
2207 to allow the QtLauncher to play with caching.
2208 * TODO: make API decisions and consider following the windows Api to set a WebCacheModel
2209 and determine certain values automatically.
2212 * Api/qwebsettings.cpp:
2213 (QWebSettings::setPageCacheCapacity):
2214 (QWebSettings::setObjectCacheCapacities):
2215 * Api/qwebsettings.h:
2216 * QtLauncher/main.cpp:
2218 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2222 Prepapre everything for enabling the PageCache for the Qt Platform:
2223 * Claim that we can cache pages
2224 * Create the FrameView FrameLoaderClientQt::transitionToCommittedForNewPage using
2225 the initial size of the viewport and stop creating it in the QWebFramePrivate::init
2227 Differences to the Windows port:
2228 * attachToWindow/detachFromWindow is not called and is not (yet) part
2229 of Widget/ScrollView of the Qt platform. We might need that for plugin
2230 support in the future.
2231 * We store the margin's and scrolling flag inside QWebFrame and use it when
2232 creating the FrameView.
2235 * API to call pageCache()->setCapacity(XYZ);
2238 * Api/qwebframe.cpp:
2239 (QWebFramePrivate::init):
2240 * Api/qwebframe_p.h:
2241 (QWebFramePrivate::QWebFramePrivate):
2243 (QWebPagePrivate::createMainFrame):
2244 * WebCoreSupport/FrameLoaderClientQt.cpp:
2245 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2246 (WebCore::FrameLoaderClientQt::blockedError):
2248 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2252 * For the PageCache support we do not want to create a FrameView in the constructor
2253 of QWebFrame. In QWegPage::viewportSize() we currently call mainFrame() and that will
2254 create a QWebFrame if no mainFrame is present and this gets called when we try to
2255 create a FrameView...
2256 * Keep a copy of the initial viewportSize around and use it if we do not have a Frame
2261 (QWebPagePrivate::QWebPagePrivate):
2262 (QWebPage::triggerAction):
2265 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2269 * Always return true in FrameLoaderClientQt::shouldGoToHistoryItem, like the windows port
2271 * WebCoreSupport/FrameLoaderClientQt.cpp:
2274 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2278 * Attempt to make the m_webFrame null pointer checking consistent. Always check for
2279 m_webFrame. It should get set by the QWebFrame with the FramerLoaderClientQt::setFrame
2280 call and should stay valid until the destruction of the QWebFrame.
2281 * Currently the same checking is not needed for m_frame as it will only set to 0 in
2282 FrameLoaderClientQt::frameLoaderDestroyed and should be not 0 because of the setFrame
2286 * WebCoreSupport/FrameLoaderClientQt.cpp:
2287 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2288 (WebCore::FrameLoaderClientQt::setMainDocumentError):
2289 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
2290 (WebCore::FrameLoaderClientQt::objectContentType):
2291 (WebCore::FrameLoaderClientQt::createPlugin):
2293 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2297 * Get the RefCounting of WebCore::Frame right and make sure that both QWebFrame
2298 and WebCore::Frame get destroyed if we leave site with subframes and on the
2299 end of the application.
2300 * Use adoptRef in FrameLoaderClientQt::createFrame to get the refs right for subframes. We
2301 do not want to add an extra reference. Without this we are leaking subframes.
2302 * Assume that the lifetime of a Frame and FrameLoader are the same, when the Frame is gone
2303 we want to destroy the QWebFrame (e.g. on a page with subframes). Add delete m_webFrame
2304 in the frameLoaderDestroyed method to do that.
2305 * If we happen to delete the QWebFrame before the FrameLoaderClientQt we set m_webFrame to
2306 zero in the FrameLoaderClientQt to avoid bad things.
2309 * Api/qwebframe.cpp:
2310 (QWebFrame::~QWebFrame):
2311 * WebCoreSupport/FrameLoaderClientQt.cpp:
2312 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2313 (WebCore::FrameLoaderClientQt::objectContentType):
2314 * WebCoreSupport/FrameLoaderClientQt.h:
2316 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2320 * Do not save a RefPtr to the frame. The FrameLoaderClient, Frame and
2321 QWebFrame should have the same lifetime everything else is a leak
2324 * Api/qwebframe.cpp:
2325 (QWebFramePrivate::init):
2326 * Api/qwebframe_p.h:
2327 * WebCoreSupport/FrameLoaderClientQt.cpp:
2329 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2333 * Do not store the QWebFrame associated with a ScrollView/FrameView
2334 in the WebCore::Widget.
2335 * Instead of asking the Widget for the QWebFrame use the QWebFramePrivate::core
2336 and QWebFramePrivate::kit function to convert from and to QWebFrame.
2339 * Api/qwebframe.cpp:
2340 (QWebFramePrivate::init):
2342 (QWebPagePrivate::createMainFrame):
2344 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2348 * Do not store the FrameView in the QWebFrame and cope with the situation when
2349 a WebCore::Frame has no WebCore::FrameView.
2352 * Api/qwebframe.cpp:
2353 (QWebFramePrivate::init):
2354 (QWebFramePrivate::horizontalScrollBar):
2355 (QWebFramePrivate::verticalScrollBar):
2356 (QWebFrame::innerText):
2357 (QWebFrame::renderTreeDump):
2358 (QWebFrame::setVerticalScrollBarPolicy):
2359 (QWebFrame::setHorizontalScrollBarPolicy):
2360 (QWebFrame::render):
2361 (QWebFrame::layout):
2363 * Api/qwebframe_p.h:
2364 (QWebFramePrivate::QWebFramePrivate):
2366 (QWebPagePrivate::updateEditorActions):
2367 (QWebPagePrivate::mouseMoveEvent):
2368 (QWebPagePrivate::mousePressEvent):
2369 (QWebPagePrivate::mouseDoubleClickEvent):
2370 (QWebPagePrivate::contextMenuEvent):
2371 (QWebPagePrivate::wheelEvent):
2372 (QWebPage::triggerAction):
2373 * WebCoreSupport/FrameLoaderClientQt.cpp:
2375 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2379 * Change the order of the methods to match with the FrameLoaderClient.h to ease
2380 removing methods in the future.
2382 * WebCoreSupport/FrameLoaderClientQt.h:
2384 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2388 * Remove virtuals in the FrameLoaderClientQt that don't exist in the base class.
2390 * WebCoreSupport/FrameLoaderClientQt.cpp:
2391 (WebCore::FrameLoaderClientQt::detachedFromParent4):
2392 * WebCoreSupport/FrameLoaderClientQt.h:
2394 2008-03-25 Brady Eidson <beidson@apple.com>
2398 Remove newly obsolete FrameLoaderClient methods
2400 * WebCoreSupport/FrameLoaderClientQt.cpp:
2401 * WebCoreSupport/FrameLoaderClientQt.h:
2403 2008-03-22 Mark Rowe <mrowe@apple.com>
2407 * WebCoreSupport/FrameLoaderClientQt.cpp:
2410 2008-03-18 Simon Hausmann <hausmann@webkit.org>
2414 Fix the Qt build. Don't return void in non-void functions.
2416 * Api/qwebpluginfactory.cpp:
2417 (QWebPluginFactory::extension):
2419 2008-03-16 Thiago Macieira <thiago.macieira@trolltech.com>
2423 Don't use RefPtr in classes you haven't seen the implementation of.
2425 Forward-declaration and declaration of RefPtr<Foo> is ok. But you
2426 cannot *use* said objects until Foo is defined. This is true even for
2427 initialisation with a 0.
2429 Seems the HP aCC compiler is more strict here than gcc.
2431 * Api/qwebframe_p.h:
2433 2008-03-14 Simon Hausmann <hausmann@webkit.org>
2437 * Api/qwebframe.cpp:
2438 (QWebFrame::setHtml):
2439 (QWebFrame::setContent):
2441 2008-03-13 Simon Hausmann <hausmann@webkit.org>
2445 * Api/qwebframe.cpp:
2446 (QWebFrame::addToJSWindowObject):
2448 2008-03-12 Simon Hausmann <hausmann@webkit.org>
2450 Fix compilation against Qt 4.3
2456 2008-03-11 Rodney Dawes <dobey@wayofthemonkey.com>
2460 * WebCoreSupport/FrameLoaderClientQt.cpp:
2461 (FrameLoaderClientQt::CreatePlugin):
2463 2008-03-11 Simon Hausmann <hausmann@webkit.org>
2465 Fix the Qt build (silly typo).
2467 * QtLauncher/main.cpp:
2468 (MainWindow::MainWindow):
2470 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
2474 Moved obscuring progress bar to the lower right corner.
2476 * QtLauncher/main.cpp:
2477 (MainWindow::MainWindow):
2478 (MainWindow::resizeEvent):
2480 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
2484 Added reload action and grouped stop and reload actions together.
2486 * QtLauncher/main.cpp:
2487 (MainWindow::MainWindow):
2489 2008-03-11 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2493 * Set a Icon on the QAction if we have one.
2498 2008-03-11 Simon Hausmann <hausmann@webkit.org>
2502 * Api/qwebframe.cpp:
2503 (QWebFrame::addToJSWindowObject):
2505 2008-03-07 Simon Hausmann <hausmann@webkit.org>
2511 Replaced the QWebObjectPlugin interfaces with QWebPluginFactory.
2513 * Api/qwebnetworkinterface.cpp:
2514 (QWebNetworkManager::add):
2515 (QWebNetworkManager::cancel):
2516 (QWebNetworkManager::started):
2517 (QWebNetworkManager::data):
2518 (QWebNetworkManager::finished):
2519 * Api/qwebnetworkinterface_p.h:
2520 (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
2521 * Api/qwebobjectplugin.cpp: Removed.
2522 * Api/qwebobjectplugin.h: Removed.
2523 * Api/qwebobjectplugin_p.h: Removed.
2524 * Api/qwebobjectpluginconnector.cpp: Removed.
2525 * Api/qwebobjectpluginconnector.h: Removed.
2527 (QWebPagePrivate::QWebPagePrivate):
2528 (QWebPage::setPluginFactory):
2529 (QWebPage::pluginFactory):
2532 * Api/qwebpluginfactory.cpp: Added.
2533 (QWebPluginFactory::QWebPluginFactory):
2534 (QWebPluginFactory::~QWebPluginFactory):
2535 (QWebPluginFactory::refreshPlugins):
2536 (QWebPluginFactory::extension):
2537 * Api/qwebpluginfactory.h: Added.
2539 * WebCoreSupport/FrameLoaderClientQt.cpp:
2540 (WebCore::FrameLoaderClientQt::objectContentType):
2541 (WebCore::FrameLoaderClientQt::createPlugin):
2543 2008-03-07 Simon Hausmann <hausmann@webkit.org>
2547 * Api/qwebframe.cpp:
2549 2008-03-04 Sam Weinig <sam@webkit.org>
2551 Reviewed by Mark Rowe.
2553 - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
2556 * Api/qwebframe.cpp:
2557 (QWebFrame::addToJSWindowObject):
2559 2008-03-04 Mark Rowe <mrowe@apple.com>
2561 Another go at fixing the Qt build.
2563 * Api/qwebframe.cpp:
2564 (QWebFrame::addToJSWindowObject):
2566 2008-02-24 Darin Adler <darin@apple.com>
2570 - remove separate client calls for "standard" and "reload' history
2572 * WebCoreSupport/FrameLoaderClientQt.cpp:
2573 (WebCore::FrameLoaderClientQt::updateGlobalHistory):
2574 * WebCoreSupport/FrameLoaderClientQt.h:
2576 2008-02-24 Darin Adler <darin@apple.com>
2578 - another try at fixing the build
2580 * Api/qwebframe.cpp:
2581 (QWebFrame::load): Replace new FormData with FormData::create.
2583 2008-02-22 Sam Weinig <sam@webkit.org>
2587 * Api/qwebhistoryinterface.cpp:
2589 2008-02-22 Sam Weinig <sam@webkit.org>
2591 Rubber-stamped by Adam Roben.
2593 Rid the project of the Devil known as DeprecatedString!
2595 * Api/qwebhistory.cpp:
2596 * Api/qwebhistoryinterface.cpp:
2598 2008-02-18 Darin Adler <darin@apple.com>
2602 * Api/qwebnetworkinterface.cpp:
2603 (QWebNetworkRequestPrivate::init): Removed use of DeprecatedString.
2605 2008-01-24 David Boddie <dboddie@trolltech.com>
2609 Documentation tidying.
2612 * Api/qwebframe.cpp:
2613 * Api/qwebhistoryinterface.cpp:
2616 2008-01-24 Jarek Kobus <jkobus@trolltech.com>
2620 Text for translations were used wrongly as comments
2623 * WebCoreSupport/FrameLoaderClientQt.cpp:
2625 (WebCore::FrameLoaderClientQt::cannotShowURLError):
2626 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2627 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2628 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2629 (WebCore::FrameLoaderClientQt::shouldFallBack):
2631 2008-01-24 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2635 * We have a KURL->QUrl conversion on KURL itself, make use of it.
2636 * This conversion is supposed to be loss-free
2639 * Api/qwebframe.cpp:
2641 2008-01-23 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2643 * Rubber stamped by Simon
2645 * Fix leaking of sub frames (WebCore::Frame). We keep one reference too many.
2646 This was found while working on the page-cache, other ports are not affected.
2648 * WebCoreSupport/FrameLoaderClientQt.cpp:
2649 (WebCore::FrameLoaderClientQt::createFrame):
2651 2008-01-23 Rohan McGovern <rohan.mcgovern@trolltech.com>
2653 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2655 Fix Qtopia compilation with QT_NO_TOOLTIP
2658 * WebCoreSupport/ChromeClientQt.cpp:
2659 (WebCore::ChromeClientQt::print):
2661 2008-01-23 Geir Vattekar <gvatteka@trolltech.com>
2665 Doc: Replaced \code with snippets in the docs
2670 2008-01-23 Benjamin Meyer <bmeyer@trolltech.com>
2674 Tweak key presses even to match commonly expected behavior
2675 - space key == page down
2676 - page down moved down not a page, but slightly less then a page so you don't loose your spot when reading.
2677 - Use font height rather then a hard coded "10" for left, right, up, down
2678 - Ctrl-Up moves to the top of the page
2679 - Ctrl-Down move to the bottom of the page
2680 - Backspace == GoBack
2681 - Shift-Backspace == GoForward
2685 (dropActionToDragOp):
2686 (dragOpToDropAction):
2687 (QWebPagePrivate::keyPressEvent):
2689 2008-01-23 Simon Hausmann <hausmann@webkit.org>
2693 Implemented FrameLoaderClient::startDownload() and FrameLoaderClient::download().
2695 Added two signals to QWebPage to handle downloading of links and handling of
2696 unsupported content.
2700 (QWebPage::triggerAction):
2702 * WebCoreSupport/FrameLoaderClientQt.cpp:
2703 (WebCore::FrameLoaderClientQt::download):
2704 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2705 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2706 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2707 (WebCore::FrameLoaderClientQt::willUseArchive):
2709 2008-01-22 Lars Knoll <lars@trolltech.com>
2713 setup a family for cursive and fantasy fonts as well.
2716 * Api/qwebsettings.cpp:
2717 (QWebSettings::QWebSettings):
2719 2008-01-22 Benjamin Meyer <bmeyer@trolltech.com>
2723 Implement ChromeClientQt::setToolTip
2724 Implement ChromeClientQt::mouseDidMoveOverElement
2729 * WebCoreSupport/ChromeClientQt.cpp:
2730 (WebCore::ChromeClientQt::ChromeClientQt):
2731 (WebCore::ChromeClientQt::focus):
2732 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2733 (WebCore::ChromeClientQt::setToolTip):
2734 (WebCore::ChromeClientQt::print):
2735 * WebCoreSupport/ChromeClientQt.h:
2737 2008-01-21 Darin Adler <darin@apple.com>
2739 Reviewed by John Sullivan.
2741 - updated for changes to ChromeClient database functions
2743 * WebCoreSupport/ChromeClientQt.cpp:
2744 (WebCore::ChromeClientQt::exceededDatabaseQuota):
2745 * WebCoreSupport/ChromeClientQt.h:
2747 2008-01-21 Benjamin Meyer <bmeyer@trolltech.com>
2751 Change QWebHistoryInterface::addHistoryEntry() from const to non-const
2754 * Api/qwebhistoryinterface.h:
2756 2008-01-21 Adam Treat <treat@kde.org>
2760 * Don't leak the d-pointer in QWebSettings.
2763 * Api/qwebsettings.cpp:
2764 (QWebSettings::~QWebSettings):
2766 2008-01-21 Simon Hausmann <hausmann@webkit.org>
2770 Update the WebKit version number from WebKit/win/WebKit.vcproj/VERSION.
2772 This has the fortunate side-effect that gmail sends us sensible HTML/JS again :)
2777 2008-01-21 Simon Hausmann <hausmann@webkit.org>
2781 Fix focus chain handling and cycling through focusable objects (links) using tab/backtab.
2783 * Fix GraphicsContext::drawFocusRing to also draw single focus rects.
2784 * Implemented QWebPage::focusNextPrevChild by sending fake tab/shift-tab events
2785 and make the return value depend on whether we successfully determined a focusable
2787 * Changed QWebView::focusNextPrevChild() to call the base QWidget implementation correctly
2788 if we could not handle the focus chain ourselves.
2789 * Changed the focus policy of QWebView to correctly use WheelFocus instead of ClickFocus.
2790 * Made ChromeClientQt::canTakeFocus() and takeFocus() dummy method since they are only
2791 used to control the situation of stepping out of the focus chain inside the page.
2792 * Made inclusion of links in the focus chain configurable through QWebSettings::LinksIncludedInFocusChain.
2793 The layout tests expect this to be disabled but for the user it seems sensible to have it
2794 on by default, hence the default in qwebsettings.cpp
2798 (QWebPage::focusNextPrevChild):
2799 * Api/qwebsettings.cpp:
2800 (QWebSettings::QWebSettings):
2801 * Api/qwebsettings.h:
2803 (QWebView::QWebView):
2804 (QWebView::focusNextPrevChild):
2805 * WebCoreSupport/ChromeClientQt.cpp:
2806 (WebCore::ChromeClientQt::canTakeFocus):
2807 (WebCore::ChromeClientQt::takeFocus):
2809 2008-01-18 Simon Hausmann <hausmann@webkit.org>
2813 Coding style fixes and added a comment about the include order.
2817 2008-01-18 Marius Storm-Olsen <marius@trolltech.com>
2819 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2821 Add use of precompiled header, when building inside Qt.
2823 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.
2826 * WebKit_pch.h: Added.
2828 2008-01-18 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2832 * Ask the WebCore::IconDatabase only if our URL is not empty. Otherwise
2833 we will see a crash in a HashSet.
2834 * It is crashing there because the StringImpl of an empty String is 0.
2835 * We avoid this crash by checking for isEmpty() in WebKit as there is no
2836 use to ask the iconDatabase for an empty string. We will fallback to the
2840 * Api/qwebframe.cpp:
2843 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2847 Minor documentation fixes
2850 * Api/qwebframe.cpp:
2853 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2857 Fix form elements not focusing correctly after the qt widget lost its focus.
2859 When receiving a focus out event notify the focus controller. Otherwise its
2860 m_focusedFrame variable remains unchanged and setFocusedFrame on a focusIn
2861 event shortcuts and doesn't call setActive(true).
2866 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2870 Lots of updates to the documentation.
2873 * Api/qwebframe.cpp:
2874 * Api/qwebhistory.cpp:
2876 (QWebPagePrivate::dropEvent):
2877 (QWebPage::history):
2879 (QWebPage::triggerAction):
2880 (QWebPage::viewportSize):
2881 (QWebPage::navigationRequested):
2884 (QWebPageContext::targetFrame):
2888 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2892 Added a urlChanged signals to QWebFrame and QWebView.
2895 * Api/qwebframe.cpp:
2898 (QWebView::setPage):
2900 * WebCoreSupport/FrameLoaderClientQt.cpp:
2902 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2906 Fixed docs and sanity checks in QWebSettings::setIconDatabaseEnabled
2909 * Api/qwebsettings.cpp:
2910 (QWebSettings::setIconDatabaseEnabled):
2912 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2916 Added QWebView::createWindow() which is forwarded from QWebPage::createWindow() for convenience.
2920 (QWebPage::createWindow):
2922 (QWebView::createWindow):
2925 2008-01-17 Lars Knoll <lars@trolltech.com>
2929 add a 0 pointer check.
2931 Fixes a crash in the demo web browser.
2933 * WebCoreSupport/FrameLoaderClientQt.cpp:
2934 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2936 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2940 Fix QWebFrame::title().
2942 For the titleChanged() signal we use the documentloader's title. For the property we have to use the same
2943 instead of Document::title() as the latter is not trimmed and not suited for a window caption.
2946 * Api/qwebframe.cpp:
2949 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2951 Reviewed by Maciej, Lars, Holger.
2953 http://bugs.webkit.org/show_bug.cgi?id=16589
2955 Add a document parameter to WebCore::cookies, setCookies and cookiesEnabled.
2957 * Api/qwebnetworkinterface.cpp:
2958 (QWebNetworkRequestPrivate::init):
2959 (QWebNetworkManager::started):
2961 2008-01-17 Warwick Allison <warwick@trolltech.com>
2963 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2965 Follow QWidget::keyPressEvent advice and call parents.
2967 Without this, Back does not work in Qtopia, for example.
2971 (QWebView::keyPressEvent):
2972 (QWebView::keyReleaseEvent):
2974 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2978 Fix compilation against Qt 4.3 after the recent KURL <> QUrl conversion fixes.
2980 * Api/qwebnetworkinterface.cpp:
2981 (QWebNetworkManager::started):
2983 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2987 Fix compilation against Qt 4.4 without files that are specific for the Qt 4.3 build.
2990 * Api/qwebframe.cpp:
2992 * WebCoreSupport/FrameLoaderClientQt.cpp:
2994 2008-01-17 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
2996 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2998 Fixes compilation with QT_NO_DRAGANDDROP
3004 (QWebView::dragEnterEvent):
3005 (QWebView::dragLeaveEvent):
3006 (QWebView::dragMoveEvent):
3007 (QWebView::dropEvent):
3009 2008-01-17 Simon Hausmann <hausmann@webkit.org>
3013 Fix compilation, removed obsolete privateBrowsingEnabled() method.
3015 * WebCoreSupport/FrameLoaderClientQt.cpp:
3017 2008-01-16 Lars Knoll <lars@trolltech.com>
3019 Reviewed by Simon Hausmann <simon.hausmann@trolltech.com>.
3021 Removed a whole bunch of notImplemented() warnings.
3023 I don't want to hide the real warnings in lots of things that
3024 I am by now pretty certain we won't need.
3027 * WebCoreSupport/FrameLoaderClientQt.cpp:
3028 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
3029 (WebCore::FrameLoaderClientQt::canShowMIMEType):
3031 2008-01-16 Simon Hausmann <hausmann@webkit.org>
3035 Fix crash when bringing up the context menu on maps.google.com.
3037 If the website provides its own context menu then we don't have a ContextMenu pointer.
3041 (QWebPagePrivate::contextMenuEvent):
3043 2008-01-16 Simon Hausmann <hausmann@webkit.org>
3047 Don't crash when receiving all sorts of events on a default constructed QWebView without a page.
3050 (QWebView::mouseMoveEvent):
3051 (QWebView::mousePressEvent):
3052 (QWebView::mouseDoubleClickEvent):
3053 (QWebView::mouseReleaseEvent):
3054 (QWebView::contextMenuEvent):
3055 (QWebView::wheelEvent):
3056 (QWebView::keyPressEvent):
3057 (QWebView::keyReleaseEvent):
3058 (QWebView::focusInEvent):
3059 (QWebView::focusOutEvent):
3060 (QWebView::dragEnterEvent):
3061 (QWebView::dragLeaveEvent):
3062 (QWebView::dragMoveEvent):
3063 (QWebView::dropEvent):
3064 (QWebView::focusNextPrevChild):
3066 2008-01-16 Simon Hausmann <hausmann@webkit.org>
3070 Made the url property read-write.
3074 2008-01-16 Simon Hausmann <hausmann@webkit.org>
3078 Don't crash when showing a default initialized QWebView that has no page/frame yet.
3081 (QWebView::paintEvent):
3083 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
3087 Change hoveringOverLink implementation to have less issues.
3089 * Currently we only compare a pointer. In the worst case we
3090 could delete the Element we have pointed to and a new one
3091 gets the same address. But even if that doesn't happen the
3092 WebCore::Element is mutable and JavaScript could change the
3093 URL, Title or Content. So we have to compare all these three
3095 * This does not seem to be a performance impact.
3099 (QWebPagePrivate::mouseMoveEvent):
3102 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
3106 * Move the hoverElement from QWebFrame to QWebPage. As it is
3110 * Api/qwebframe_p.h:
3111 (QWebFramePrivate::QWebFramePrivate):
3113 (QWebPagePrivate::mouseMoveEvent):
3116 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
3120 EventHandler changes/fixes in QWebPage:
3121 -mouse{Press,Move,Release}Event:
3122 Send the event always to the mainFrame of the QWebPage.
3124 -contextMenuEvent, key{Press,Release}Event:
3125 Send the event to the focused frame.
3127 This is following the Windows port and fixes a issue with the
3128 Web Inspector where we were sending the events to a wrong frame.
3130 It is guaranteed that the mainFrame will always have an eventHandler
3131 and frameView set. There is no need to check for this in QWebPage.
3134 * Api/qwebframe.cpp:
3135 (QWebFramePrivate::init):
3136 * Api/qwebframe_p.h:
3137 (QWebFramePrivate::QWebFramePrivate):
3139 (QWebPagePrivate::updateEditorActions):
3140 (QWebPagePrivate::mouseMoveEvent):
3141 (QWebPagePrivate::mousePressEvent):
3142 (QWebPagePrivate::mouseDoubleClickEvent):
3143 (QWebPagePrivate::mouseReleaseEvent):
3144 (QWebPagePrivate::contextMenuEvent):
3145 (QWebPagePrivate::wheelEvent):
3146 (QWebPagePrivate::keyPressEvent):
3147 (QWebPagePrivate::keyReleaseEvent):
3148 (QWebPagePrivate::focusInEvent):
3151 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
3155 * Add core and kit functions to QWebFramePrivate to convert from
3156 QWebFrame to WebCore::Frame and vice versa.
3159 * Api/qwebframe.cpp:
3160 (QWebFramePrivate::core):
3161 (QWebFramePrivate::kit):
3163 * Api/qwebframe_p.h:
3165 2008-01-16 Lars Knoll <lars@trolltech.com>
3169 add conversion methods from and to QUrl to KURL.
3171 Use them in the places I found at the moment. Fixes a bug
3172 where form data was encoded twice.
3173 Also fix QWebSettings to take a QUrl for the user style sheet
3177 * Api/qwebframe.cpp:
3180 (QWebPage::createPlugin):
3182 (QWebPage::triggerAction):
3183 * Api/qwebsettings.cpp:
3184 (QWebSettingsPrivate::apply):
3185 * Api/qwebsettings.h:
3186 * WebCoreSupport/ChromeClientQt.cpp:
3187 (WebCore::ChromeClientQt::createWindow):
3188 (WebCore::ChromeClientQt::show):
3190 2008-01-16 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3194 * Make the InspectorClientView inherit from QWebView instead of QWidget. This
3195 way paintEvent, mouse{Press,Release}Event and other events get forwarded to
3196 the QWebPage/WebInspector automatically.
3199 * WebCoreSupport/InspectorClientQt.cpp:
3200 (WebCore::InspectorClientWebPage::createWindow):
3201 (WebCore::InspectorClientView::InspectorClientView):
3203 2008-01-10 Maciej Stachowiak <mjs@apple.com>
3207 - remove SecurityOriginData and fold its functionality into SecurityOrigin
3209 * WebCoreSupport/ChromeClientQt.cpp:
3210 (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
3211 (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
3212 * WebCoreSupport/ChromeClientQt.h:
3214 2008-01-10 Lars Knoll <lars@trolltech.com>
3218 document QWebHistory
3221 * Api/qwebhistory.cpp:
3222 (QWebHistoryItem::QWebHistoryItem):
3223 (QWebHistoryItem::operator=):
3224 (QWebHistoryItem::~QWebHistoryItem):
3225 (QWebHistoryItem::originalUrl):
3226 (QWebHistoryItem::currentUrl):
3227 (QWebHistoryItem::title):
3228 (QWebHistoryItem::icon):
3229 (QWebHistory::canGoBack):
3230 (QWebHistory::canGoForward):
3231 (QWebHistory::goBack):
3232 (QWebHistory::goForward):
3233 (QWebHistory::goToItem):
3234 * Api/qwebhistory.h:
3236 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3240 Make the reset() functions not do anything on the default QWebSettings object.
3243 * Api/qwebsettings.cpp:
3244 (QWebSettings::resetFontSize):
3245 (QWebSettings::resetFontFamily):
3246 (QWebSettings::clearAttribute):
3248 2008-01-10 Lars Knoll <lars@trolltech.com>
3252 rename QWebPageHistory to QWebHistory.
3255 * Api/qwebhistory.cpp: Added.
3256 (QWebHistoryItem::QWebHistoryItem):
3257 (QWebHistoryItem::operator=):
3258 (QWebHistoryItem::~QWebHistoryItem):
3259 (QWebHistoryItem::originalUrl):
3260 (QWebHistoryItem::currentUrl):
3261 (QWebHistoryItem::title):
3262 (QWebHistoryItem::lastVisited):
3263 (QWebHistoryItem::icon):
3264 (QWebHistory::QWebHistory):
3265 (QWebHistory::~QWebHistory):
3266 (QWebHistory::clear):
3267 (QWebHistory::items):
3268 (QWebHistory::backItems):
3269 (QWebHistory::forwardItems):
3270 (QWebHistory::canGoBack):
3271 (QWebHistory::canGoForward):
3272 (QWebHistory::goBack):
3273 (QWebHistory::goForward):
3274 (QWebHistory::goToItem):
3275 (QWebHistory::backItem):
3276 (QWebHistory::currentItem):
3277 (QWebHistory::forwardItem):
3278 (QWebHistory::itemAtIndex):
3279 * Api/qwebhistory.h: Added.
3280 * Api/qwebhistory_p.h: Added.
3281 (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
3282 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
3283 (QWebHistoryPrivate::QWebHistoryPrivate):
3284 (QWebHistoryPrivate::~QWebHistoryPrivate):
3286 (QWebPagePrivate::QWebPagePrivate):
3289 * Api/qwebpagehistory.cpp: Removed.
3290 * Api/qwebpagehistory.h: Removed.
3291 * Api/qwebpagehistory_p.h: Removed.
3295 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3299 Documentation for QWebSettings
3302 * Api/qwebsettings.cpp:
3303 (QWebSettings::~QWebSettings):
3304 (QWebSettings::setFontSize):
3305 (QWebSettings::resetFontSize):
3306 (QWebSettings::setUserStyleSheetLocation):
3307 (QWebSettings::userStyleSheetLocation):
3308 (QWebSettings::iconDatabaseEnabled):
3309 (QWebSettings::webGraphic):
3310 (QWebSettings::setFontFamily):
3311 (QWebSettings::resetFontFamily):
3312 (QWebSettings::setAttribute):
3314 2008-01-10 Lars Knoll <lars@trolltech.com>
3318 Document QWebHistoryInterface.
3321 * Api/qwebhistoryinterface.cpp:
3322 (QWebHistoryInterface::defaultInterface):
3323 (QWebHistoryInterface::~QWebHistoryInterface):
3325 2008-01-10 Lars Knoll <lars@trolltech.com>
3329 Documentation for QWebFrame.
3332 * Api/qwebframe.cpp:
3336 (QWebFrame::setHtml):
3337 (QWebFrame::parentFrame):
3338 (QWebFrame::render):
3340 (QWebFrame::geometry):
3342 * Api/qwebframe_p.h:
3344 2008-01-10 Lars Knoll <lars@trolltech.com>
3348 fix the drawing errors that where introduced due to refactoring.
3350 Correctly clip to the rectangle we want to draw in ScrollView::paint().
3353 * Api/qwebframe.cpp:
3354 (QWebFrame::render):
3357 (QWebView::paintEvent):
3358 * WebCoreSupport/ChromeClientQt.cpp:
3359 (WebCore::ChromeClientQt::scrollBackingStore):
3361 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3365 Added a whole bunch of docs for QWebPage and fixed some minor doc glitches in QWebView.
3369 (QWebPagePrivate::dropEvent):
3370 (QWebPage::QWebPage):
3371 (QWebPage::~QWebPage):
3372 (QWebPage::mainFrame):
3373 (QWebPage::currentFrame):
3374 (QWebPage::history):
3375 (QWebPage::setView):
3377 (QWebPage::javaScriptConsoleMessage):
3378 (QWebPage::javaScriptAlert):
3379 (QWebPage::javaScriptConfirm):
3380 (QWebPage::javaScriptPrompt):
3381 (QWebPage::createWindow):
3382 (QWebPage::createModalDialog):
3384 (QWebPage::triggerAction):
3385 (QWebPage::viewportSize):
3386 (QWebPage::navigationRequested):
3387 (QWebPage::selectedText):
3388 (QWebPage::isModified):
3389 (QWebPage::focusNextPrevChild):
3390 (QWebPage::settings):
3391 (QWebPage::networkProxy):
3392 (QWebPage::setNetworkAccessManager):
3393 (QWebPage::networkAccessManager):
3394 (QWebPagePrivate::_q_onLoadProgressChanged):
3397 2008-01-07 Holger Freyther <zecke@selfish.org>
3399 Reviewed by Alp Toker.
3401 * Qt and Gtk must know if a ContextMenuItem is checkable. Add a new ContextMenuItemType for checkable
3403 * Use this information in the Gtk platform to create a GtkCheckMenuItem when needed.
3404 * Update the ContextMenuController to accept CheckableActionTypes as well.
3405 * Change ContextMenu.cpp to use the CheckableActionType. The information if a item is checkable
3406 was extracted from ContextMenu::checkOrEnableIfNeeded.
3407 * Update the Qt and Windows port.
3410 (QWebPagePrivate::createContextMenu):
3412 2008-01-07 Simon Hausmann <hausmann@webkit.org>
3414 Build fix for the Windows build. MSVC wants to see the full
3415 declaration of arguments even when just passing them through.
3419 2008-01-07 Simon Hausmann <hausmann@webkit.org>
3423 Added the missing parameters to make it possible to do POST operations from the public API.
3425 This is ugly though as it also requires including qnetworkaccessmanager.h. It would be nicer if the
3426 two extra arguments were in QNetworkRequest :-/
3429 * Api/qwebframe.cpp:
3436 2008-01-07 Simon Hausmann <hausmann@webkit.org>
3440 Ported of the network backend of the Qt platform to Qt 4.4's new networking API.
3443 * Api/qwebframe.cpp:
3446 * Api/qwebnetworkinterface.cpp:
3447 * Api/qwebnetworkinterface.h:
3448 * Api/qwebnetworkinterface_p.h:
3449 * Api/qwebobjectplugin.cpp:
3450 * Api/qwebobjectplugin.h:
3451 * Api/qwebobjectplugin_p.h:
3452 * Api/qwebobjectpluginconnector.cpp:
3453 * Api/qwebobjectpluginconnector.h:
3455 (QWebPagePrivate::QWebPagePrivate):
3456 (QWebPagePrivate::~QWebPagePrivate):
3457 (QWebPagePrivate::navigationRequested):
3458 (QWebPage::setNetworkInterface):
3459 (QWebPage::networkInterface):
3460 (QWebPage::setNetworkAccessManager):
3461 (QWebPage::networkAccessManager):
3466 * WebCoreSupport/FrameLoaderClientQt.cpp:
3467 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3468 (WebCore::FrameLoaderClientQt::objectContentType):
3469 (WebCore::FrameLoaderClientQt::createPlugin):
3471 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3475 * Move the QWebPagePrivate methods up to the other private ones
3478 (dropActionToDragOp):
3479 (dragOpToDropAction):
3480 (QWebPagePrivate::mouseMoveEvent):
3481 (QWebPagePrivate::mousePressEvent):
3482 (QWebPagePrivate::mouseDoubleClickEvent):
3483 (QWebPagePrivate::mouseReleaseEvent):
3484 (QWebPagePrivate::contextMenuEvent):
3485 (QWebPagePrivate::wheelEvent):
3486 (QWebPagePrivate::keyPressEvent):
3487 (QWebPagePrivate::keyReleaseEvent):
3488 (QWebPagePrivate::focusInEvent):
3489 (QWebPagePrivate::focusOutEvent):
3490 (QWebPagePrivate::dragEnterEvent):
3491 (QWebPagePrivate::dragLeaveEvent):
3492 (QWebPagePrivate::dragMoveEvent):
3493 (QWebPagePrivate::dropEvent):
3494 (QWebPage::focusNextPrevChild):
3496 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3500 * Add reimplemented comments for the methods reimplemented in QWebView and QWebPage.
3504 (dragOpToDropAction):
3506 (QWebView::mouseMoveEvent):
3507 (QWebView::mousePressEvent):
3508 (QWebView::mouseDoubleClickEvent):
3509 (QWebView::mouseReleaseEvent):
3510 (QWebView::contextMenuEvent):
3511 (QWebView::keyPressEvent):
3512 (QWebView::keyReleaseEvent):
3513 (QWebView::focusInEvent):
3514 (QWebView::focusOutEvent):
3515 (QWebView::dragEnterEvent):
3516 (QWebView::dragLeaveEvent):
3517 (QWebView::dragMoveEvent):
3518 (QWebView::dropEvent):
3520 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3524 * This layout is not needed anymore as Widget::invalidateRect will not
3529 (QWebView::paintEvent):
3531 2008-01-04 Lars Knoll <lars@trolltech.com>
3535 Remove most dependencies of Widget/ScrollView onto native QWidgets.
3537 This also brings the code closer in line with the Windows code. Seems
3538 to work nicely on first try :)
3541 * WebCoreSupport/ChromeClientQt.cpp:
3542 (WebCore::ChromeClientQt::updateBackingStore):
3543 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3544 (WebCore::ChromeClientQt::setToolTip):
3545 * WebCoreSupport/FrameLoaderClientQt.cpp:
3546 (WebCore::FrameLoaderClientQt::createPlugin):
3548 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3552 * Remove the todo from QWebPage and move the code to QWebView.
3556 (QWebPagePrivate::wheelEvent):
3557 (QWebPagePrivate::focusInEvent):
3559 (QWebView::wheelEvent):
3560 (QWebView::focusInEvent):
3562 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3566 * Move the various event methods to QWebPagePrivate. This is similar to
3567 QTextControl as well.
3572 (QWebPagePrivate::mouseMoveEvent):
3573 (QWebPagePrivate::mousePressEvent):
3574 (QWebPagePrivate::mouseDoubleClickEvent):
3575 (QWebPagePrivate::mouseReleaseEvent):
3576 (QWebPagePrivate::contextMenuEvent):
3577 (QWebPagePrivate::wheelEvent):
3578 (QWebPagePrivate::keyPressEvent):
3579 (QWebPagePrivate::keyReleaseEvent):
3580 (QWebPagePrivate::focusInEvent):
3581 (QWebPagePrivate::focusOutEvent):
3582 (QWebPage::focusNextPrevChild):
3583 (QWebPagePrivate::dragEnterEvent):
3584 (QWebPagePrivate::dragLeaveEvent):
3585 (QWebPagePrivate::dragMoveEvent):
3586 (QWebPagePrivate::dropEvent):
3590 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3594 * Forward the event from QWebView to QWebPage through QObject::event. This
3595 is similar to the way QTextControl is working.
3599 (dragOpToDropAction):
3603 (QWebView::mouseMoveEvent):
3604 (QWebView::mousePressEvent):
3605 (QWebView::mouseDoubleClickEvent):
3606 (QWebView::mouseReleaseEvent):
3607 (QWebView::contextMenuEvent):
3608 (QWebView::wheelEvent):
3609 (QWebView::keyPressEvent):
3610 (QWebView::keyReleaseEvent):
3611 (QWebView::focusInEvent):
3612 (QWebView::focusOutEvent):
3613 (QWebView::dragEnterEvent):
3614 (QWebView::dragLeaveEvent):
3615 (QWebView::dragMoveEvent):
3616 (QWebView::dropEvent):
3619 2008-01-04 Lars Knoll <lars@trolltech.com>
3623 make QWebPage a QObject and get things to compile.
3625 Nothing works currently though.
3628 * Api/qwebobjectpluginconnector.cpp:
3630 (QWebPagePrivate::QWebPagePrivate):
3631 (QWebPagePrivate::createMainFrame):
3632 (QWebPage::QWebPage):
3633 (QWebPage::setView):
3635 (QWebPage::javaScriptAlert):
3636 (QWebPage::javaScriptPrompt):
3637 (dragOpToDropAction):
3638 (QWebPage::mousePressEvent):
3639 (QWebPage::mouseDoubleClickEvent):
3640 (QWebPage::mouseReleaseEvent):
3641 (QWebPage::wheelEvent):
3642 (QWebPage::keyPressEvent):
3643 (QWebPage::focusInEvent):
3647 (QWebView::QWebView):
3648 (QWebView::setPage):
3649 (QWebView::resizeEvent):
3650 (QWebView::paintEvent):
3652 * WebCoreSupport/ChromeClientQt.cpp:
3653 (WebCore::ChromeClientQt::windowRect):
3654 (WebCore::ChromeClientQt::pageRect):
3655 (WebCore::ChromeClientQt::focus):
3656 (WebCore::ChromeClientQt::unfocus):
3657 (WebCore::ChromeClientQt::canTakeFocus):
3658 (WebCore::ChromeClientQt::takeFocus):
3659 (WebCore::ChromeClientQt::canRunModal):
3660 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3661 * WebCoreSupport/DragClientQt.cpp:
3662 (WebCore::DragClientQt::startDrag):
3663 * WebCoreSupport/FrameLoaderClientQt.cpp:
3664 (WebCore::FrameLoaderClientQt::createPlugin):
3665 * WebCoreSupport/InspectorClientQt.cpp:
3666 (WebCore::InspectorClientWebPage::createWindow):
3667 (WebCore::InspectorClientView::InspectorClientView):
3668 (WebCore::InspectorClientView::page):
3669 (WebCore::InspectorClientView::hideEvent):
3670 (WebCore::InspectorClientView::closeEvent):
3671 (WebCore::InspectorClientQt::createPage):
3672 (WebCore::InspectorClientQt::closeWindow):
3674 2008-01-04 Simon Hausmann <hausmann@webkit.org>
3678 Added some preliminary class documentation for QWebView, fixed a missing const() and some missing Q_PROPERTYs
3682 (QWebView::setHtml):
3683 (QWebView::setContent):
3684 (QWebView::history):
3685 (QWebView::settings):
3687 (QWebView::triggerAction):
3689 (QWebView::backward):
3690 (QWebView::forward):
3694 2008-01-04 Lars Knoll <lars@trolltech.com>
3698 add a viewportSize to QWebPage.
3700 This is required to eventually make it a QObject only.
3704 (QWebPage::triggerAction):
3705 (QWebPage::viewportSize):
3706 (QWebPage::setViewportSize):
3709 2008-01-04 Lars Knoll <lars@trolltech.com>
3713 take a QString as identifier in QWebFrame::addToJSWindowObject.
3715 * Api/qwebframe.cpp:
3716 (QWebFrame::addToJSWindowObject):
3719 2008-01-04 Simon Hausmann <hausmann@webkit.org>
3723 Call the frame arguments for the javascript callbacks "originatingFrame"
3728 2008-01-04 Simon Hausmann <hausmann@webkit.org>
3732 Moved the QWebPage::addToHistory signal into QWebHistoryInterface
3735 * Api/qwebhistoryinterface.h:
3737 * WebCoreSupport/FrameLoaderClientQt.cpp:
3738 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
3740 2008-01-04 Lars Knoll <lars@trolltech.com>
3744 moved title(), url(), icon() and initialLayoutComplete() from QWebPage to QWebFrame
3746 * Api/qwebframe.cpp:
3749 (QWebFrame::setVerticalScrollBarPolicy):
3752 (QWebPage::javaScriptAlert):
3753 (QWebPage::javaScriptPrompt):
3754 (QWebPage::networkInterface):