1 2008-07-04 Benjamin C Meyer <ben@meyerhome.net>
5 Update the webkit version in the QtWebKit useragent string to match trunk
9 2008-07-02 Simon Hausmann <hausmann@webkit.org>
14 (QWebPage::triggerAction): The signature of setBaseWritingDirection
15 changed to take an enum instead of a string.
17 2008-07-01 Alexey Proskuryakov <ap@webkit.org>
21 Disable JSLock for per-thread contexts.
24 (QWebFrame::addToJavaScriptWindowObject):
25 Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking.
26 Include JSLock.h, as it is no longer brought in implicitly.
28 2008-07-01 Tor Arne Vestbø <tavestbo@trolltech.com>
32 Don't show the tooltip instantly in the QtLauncher.
34 Let the QWebView handle tooltips by itself, so we get
35 the expected delay as everywhere else.
37 * QtLauncher/main.cpp:
39 2008-06-30 Simon Hausmann <hausmann@webkit.org>
41 Rubber-stamped by Niko.
43 Removed the obsolete and unmaintained WebKitPart. The integration of
44 QtWebKit into KDE is now done in the webkitkde component inside KDE.
46 * WebKitPart/WebKitFactory.cpp: Removed.
47 * WebKitPart/WebKitFactory.h: Removed.
48 * WebKitPart/WebKitPart.cpp: Removed.
49 * WebKitPart/WebKitPart.desktop: Removed.
50 * WebKitPart/WebKitPart.h: Removed.
51 * WebKitPart/WebKitPart.rc: Removed.
52 * WebKitPart/WebKitPartBrowser.rc: Removed.
53 * WebKitPart/WebKitPartBrowserExtension.cpp: Removed.
54 * WebKitPart/WebKitPartBrowserExtension.h: Removed.
55 * WebKitPart/WebKitPartClient.cpp: Removed.
56 * WebKitPart/WebKitPartClient.h: Removed.
57 * WebKitPart/WebKitPartInterface.cpp: Removed.
58 * WebKitPart/WebKitPartInterface.h: Removed.
59 * WebKitPart/org.kde.WebKitPart.xml: Removed.
61 2008-06-24 Simon Hausmann <hausmann@webkit.org>
63 Fix the Qt build, added missing include for RuntimeObjectImp.
67 2008-06-23 Benjamin C Meyer <ben@meyerhome.net>
71 Add function to retrieve the standard context menu
73 2008-06-20 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
77 https://bugs.webkit.org/show_bug.cgi?id=19082
78 [Qt] Full-page plugins not activated
80 * WebCoreSupport/FrameLoaderClientQt.cpp:
81 (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a
82 plugin present, as it can be created during the function.
84 2008-06-20 Marco Barisione <marco.barisione@collabora.co.uk>
88 https://bugs.webkit.org/show_bug.cgi?id=19082
89 [Qt] Full-page plugins not activated
91 * WebCoreSupport/FrameLoaderClientQt.cpp:
92 (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the
93 MIME type is supported by a plugin.
95 2008-06-18 Alexey Proskuryakov <ap@webkit.org>
99 Prepare JavaScript heap for being per-thread.
102 (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build.
104 2008-06-18 Julien Chaffraix <jchaffraix@webkit.org>
106 Qt Build fix after r34627.
108 * WebCoreSupport/FrameLoaderClientQt.cpp:
109 (WebCore::FrameLoaderClientQt::createPlugin):
111 2008-06-15 Darin Adler <darin@apple.com>
113 - give Frame object functions shorter names: scriptProxy() -> script(),
114 selectionController() -> selection(), animationController() -> animation()
117 (QWebFrame::evaluateJavaScript):
119 (QWebPagePrivate::focusInEvent):
120 (QWebPagePrivate::focusOutEvent):
121 (QWebPage::inputMethodQuery):
122 * WebCoreSupport/EditorClientQt.cpp:
123 (WebCore::EditorClientQt::handleKeyboardEvent):
125 2008-06-15 Darin Adler <darin@apple.com>
127 - new names for more JavaScriptCore files
131 2008-06-15 Darin Adler <darin@apple.com>
133 - new names for a few key JavaScriptCore files
137 2008-06-14 Darin Adler <darin@apple.com>
139 Rubber stamped by Sam.
141 - new names for kjs_binding.h and kjs_proxy.h
144 (QWebFrame::evaluateJavaScript):
147 2008-06-14 Darin Adler <darin@apple.com>
152 (QWebFramePrivate::init): Added a missing semicolon.
154 2008-06-14 Darin Adler <darin@apple.com>
158 - more https://bugs.webkit.org/show_bug.cgi?id=17257
159 start ref counts at 1 instead of 0 for speed
162 (QWebFramePrivate::init): Use create instead of new.
163 * WebCoreSupport/FrameLoaderClientQt.cpp:
164 (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto.
166 2008-06-13 Darin Adler <darin@apple.com>
170 * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument.
172 2008-06-13 Darin Adler <darin@apple.com>
174 Reviewed by John Sullivan.
176 - updated for addition of FormState argument to action policy functions
178 * WebCoreSupport/FrameLoaderClientQt.cpp:
179 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
180 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
182 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
186 Fix left-click and middle-click mouse event are not properly accepted.
188 When copying or pasting text using left or middle-click, the event must be
189 accepted so that it will not be potentially processed further by the parent
190 and/or sub-classed widget.
194 (QWebPagePrivate::mouseReleaseEvent):
196 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
200 Fix input element does not accept character typed in using AltGr.
202 EditorClient is modified to catch AltGr and Ctrl+Alt key combination.
203 This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry
205 * WebCoreSupport/EditorClientQt.cpp:
206 (WebCore::EditorClientQt::handleKeyboardEvent):
208 2008-05-26 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
212 https://bugs.webkit.org/show_bug.cgi?id=19323
214 Implemented the QWebPage::editable property.
216 Small documentation fixes by Simon.
219 (QWebPagePrivate::QWebPagePrivate):
220 (QWebPage::setEditable):
221 (QWebPage::isEditable):
223 * Api/qwebpage_p.h: implement the editable property and add API so that
224 applications can switch edit mode on and off for a particular QWebPage
225 * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the
226 QWebPage instead of always returning false
228 2008-06-09 Tor Arne Vestbø <tavestbo@trolltech.com>
232 Make sure web action in context menus have the right enablement,
233 while not messing up other web actions not included in the menu.
236 (QWebPagePrivate::createContextMenu):
237 (QWebPage::updatePositionDependentActions):
240 2008-06-09 Benjamin C Meyer <ben@meyerhome.net>
244 Add Shift-Space shortcut to go up one screen, the opposite of Space
245 which goes down one screen.
248 (QWebPagePrivate::handleScrolling):
250 2008-06-04 Tor Arne Vestbø <tavestbo@trolltech.com>
254 Fix a failing assertion when calling QWebFrame::evaluateJavaScript.
256 The starting line number has to be 1 instead of 0.
259 (QWebFrame::evaluateJavaScript):
261 2008-06-03 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
265 * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains(). This
266 function is not used anywhere internally and is only a convenience
267 function that can still be accomplished using
268 QWebHistoryInterface::historyContains();
270 2008-05-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
274 Doc: Mention the requirement of a QApplication with QtWebKit
279 2008-05-29 David Boddie <dboddie@trolltech.com>
283 Some clarifications for the documentation.
287 * Api/qwebpluginfactory.cpp:
289 2008-05-27 Ariya Hidayat <ariya.hidayat@trolltech.com>
293 Fix web inspector does not returns its state properly after its window is minimized.
295 As hinted by Holger, InspectorClientView::hideEvent is not needed.
296 This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967
298 * WebCoreSupport/InspectorClientQt.cpp:
300 2008-05-21 Siraj Razick <siraj.razick@collabora.co.uk>
304 Add <param name="classid"/> support for application/x-qt-object plugins
306 * WebCoreSupport/FrameLoaderClientQt.cpp:
307 (WebCore::FrameLoaderClientQt::createPlugin):
309 2008-05-13 Andy Shaw <andy@trolltech.com>
313 Fixes: QWebHistory::forward() should go forwards and not back
315 * Api/qwebhistory.cpp:
317 2008-05-12 Alexey Proskuryakov <ap@webkit.org>
319 Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify
320 SquirrelFish merging.
323 (QWebFrame::addToJavaScriptWindowObject):
325 2008-05-09 Thiago Macieira <tjmaciei@trolltech.com>
329 Fix bad includes in QtWebKit public headers.
331 Make sure to include qglobal.h using the QtCore prefix so that an explicit
332 include/QtCore is not needed in the application's build system. Also make sure
333 that qwebsettings.h includes the local qwebkitglobal.h.
336 * Api/qwebkitglobal.h:
337 * Api/qwebsettings.h:
339 2008-05-08 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
343 https://bugs.webkit.org/show_bug.cgi?id=18935
345 Based on work by Sriram Neelakandan for the Gtk port.
347 * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize
348 m_hasSentResponseToPlugin.
349 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
350 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
352 2008-05-08 Warwick Allison <warwick@trolltech.com>
356 Fixes: WebKit expects initial input method state to be *disabled*.
358 At least QWS does not need the initial input method state to be forced to
359 enabled, but other platforms (esp. X11) do. Until fixed/tested on those
360 platforms, this is specific to QWS.
364 (QWebView::QWebView):
366 2008-05-06 Simon Hausmann <hausmann@webkit.org>
370 Fix logic error in QWebHitTestResult::isNull().
374 2008-05-02 Benjamin Meyer <bmeyer@trolltech.com>
378 Doc: Mention that you have to enable plugins in QWebSettings for them to work.
382 2008-05-02 Simon Hausmann <hausmann@webkit.org>
384 Fix the Qt build, ExecState is required here.
387 (QWebFrame::addToJavaScriptWindowObject):
389 2008-05-01 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
391 Reviewed by Alp Toker.
392 Qt parts OK'ed by Simon Hausmann.
394 https://bugs.webkit.org/show_bug.cgi?id=14750
395 Added support for NPAPI plugins on Gtk and Qt-x11 ports.
397 * WebCoreSupport/FrameLoaderClientQt.cpp:
398 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
399 (WebCore::FrameLoaderClientQt::finishedLoading):
400 (WebCore::FrameLoaderClientQt::setMainDocumentError):
401 (WebCore::FrameLoaderClientQt::committedLoad):
402 (WebCore::FrameLoaderClientQt::objectContentType):
403 (WebCore::FrameLoaderClientQt::createPlugin):
404 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
405 * WebCoreSupport/FrameLoaderClientQt.h:
407 2008-04-30 Julien Chaffraix <jchaffraix@webkit.org>
411 Fixes a brace error that made Qt 4.4 build but not Qt 4.3.
416 2008-04-30 Tor Arne Vestbø <tavestbo@trolltech.com>
420 In focusIn and focusOut event always update the active state of the
421 focus controller. Fixes ~400 failing layout tests due to missing
422 editing callbacks that relied on the correct focus.
425 (QWebPagePrivate::focusInEvent):
426 (QWebPagePrivate::focusOutEvent):
428 2008-04-29 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
432 Fix compilation with QT_NO_PRINTER
438 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
442 Ensure that relative URL is converted to absolute URL.
444 This is necessary because loading a relative URL is not really supported
445 (the web page may load, but the subsequent URLs for images and links will
446 not be resolved properly).
447 This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484
455 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
459 Simplification of Qt Launcher (no animation and use standard progress bar widget)
461 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.
464 * QtLauncher/main.cpp:
465 (MainWindow::MainWindow):
467 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
471 Update the cursor when the frame/page loading is finished.
473 This fixes https://bugs.webkit.org/show_bug.cgi?id=18712
476 * WebCoreSupport/FrameLoaderClientQt.cpp:
477 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
478 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
480 2008-04-29 Simon Hausmann <shausman@trolltech.com>
484 Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links.
486 Call QWebPage::acceptNavigationRequest when the creation of a new window with
487 URL is requested. The frame pointer is set to null in this case.
491 (QWebPage::setViewportSize):
492 * WebCoreSupport/FrameLoaderClientQt.cpp:
493 (WebCore::FrameLoaderClientQt::startDownload):
494 (WebCore::FrameLoaderClientQt::createFrame):
496 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
500 Use the WebCore facility to do the scrolling. Move some code around.
503 (QWebPagePrivate::keyPressEvent):
504 (QWebPagePrivate::shortcutOverrideEvent):
505 (QWebPagePrivate::handleScrolling):
508 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
512 fix potential crash when loading image(s)
514 Crash may occur. If compiled with 4.3, the variable is not initialized.
517 (QWebPagePrivate::QWebPagePrivate):
519 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
523 Calling QWebView::setCursor will override the WebCore Cursor.
524 Calling QWebView::setCursor will override the WebCore Cursor using
525 QWidget::unsetCursor will revert to the WebCore Cursor.
527 For detecting the unset we have to compare the shape of the
528 cursor to the default arrow. Qt::WA_SetCursor can not be used
529 as it is set unconditionally but conditionally removed.
531 Calling QWidget::setCursor will immediately send the CursorChange
532 event. We listen to this event to decide if we currently use a
533 WebCore cursor, got a cursor from outside, or revert to the default.
535 This should be race free and work reliable, the manual test for this
536 is WebCore/manual-tests/cursor.html
539 (SetCursorEvent::SetCursorEvent):
542 (QWebViewPrivate::QWebViewPrivate):
543 (QWebViewPrivate::setCursor):
544 (QWebView::QWebView):
547 2008-04-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
553 - Fixed a qdoc warning
554 - Mention that fav icons can be of arbitrary size
555 - Fix signature of QWebPage::acceptNavigationRequest show in the documentation
560 * Api/qwebsettings.cpp:
563 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
567 Fix QWebView::loadFinished isn't always emitted
569 Replaced loadDone() with loadFinished(bool) and moved the signals for progress
570 tracking (start, progres, and finish) to the page instead of the frame. This
571 ensures that we emit loadFinished even when a subframe started the actual load.
573 This causes a few regressions in the layout tests that we for now accept for
574 the sake of the correct API. Layout tests we can fix any time though, including
575 patch release, the API however we can't change anymore in patch releases.
580 (QWebPage::totalBytes):
585 * QtLauncher/main.cpp:
586 (MainWindow::MainWindow):
587 * WebCoreSupport/FrameLoaderClientQt.cpp:
588 (drtDescriptionSuitableForTestResult):
589 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
590 (WebCore::FrameLoaderClientQt::setFrame):
591 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
592 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
593 (WebCore::FrameLoaderClientQt::willChangeTitle):
594 (WebCore::FrameLoaderClientQt::createDocumentLoader):
595 (WebCore::FrameLoaderClientQt::download):
596 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
597 * WebCoreSupport/FrameLoaderClientQt.h:
599 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
603 Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame
606 * Api/qwebpluginfactory.cpp:
607 * Api/qwebsettings.cpp:
608 (QWebSettings::QWebSettings):
609 (QWebSettings::setUserStyleSheetUrl):
610 (QWebSettings::iconForUrl):
611 (QWebSettings::webGraphic):
612 (QWebSettings::maximumPagesInCache):
613 (QWebSettings::setFontFamily):
614 (QWebSettings::resetFontFamily):
615 (QWebSettings::testAttribute):
616 (QWebSettings::resetAttribute):
618 2008-04-28 Ariya Hidayat <ahidayat@trolltech.com>
622 Fix document/frame title not reset when loading a new URI
624 We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle()
625 will be called very soon with the correct title.
626 This properly resets the title when we navigate to a URI without a title.
629 * WebCoreSupport/FrameLoaderClientQt.cpp:
631 2008-04-28 David Boddie <dboddie@trolltech.com>
635 Minor documentation changes.
639 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
643 Prevent middle-click from triggering open URL from clipboard when the event has already been accepted.
647 (QWebPagePrivate::mouseMoveEvent):
648 (QWebPagePrivate::mousePressEvent):
649 (QWebPagePrivate::mouseDoubleClickEvent):
650 (QWebPagePrivate::mouseTripleClickEvent):
651 (QWebPagePrivate::mouseReleaseEvent):
653 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
657 Fix scrollbar behavior in QtWebKit to match QScrollBar.
659 Right click context menu is now supported, along with
660 middle click to center slider thumb over mouse cursor.
664 (QWebPage::linkDelegationPolicy):
666 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
670 Implemented channel-based logging for QtWebKit.
672 Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable.
673 Warnings for notImplemented() is still output by default, but can be disabled
674 by setting DISABLE_NI_WARNINGS=1.
677 (QWebPagePrivate::QWebPagePrivate):
679 2008-04-28 Simon Hausmann <shausman@trolltech.com>
681 Rubber-stamped by Lars
683 Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API.
690 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
694 Doc - adding more documentation to QWebFrame, QWebPage and QWebView
702 (QWebView::changeEvent):
704 2008-04-28 Simon Hausmann <shausman@trolltech.com>
708 Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens
710 Give the popups the right parent widget and the right coordinates relative within the parent.
715 2008-04-28 Benjamin Meyer <bmeyer@trolltech.com>
719 Doc: Add see also's (and a few minor whitespace/typo corrections)
723 (QWebFrame::~QWebFrame):
724 (QWebFrame::setHtml):
725 (QWebFrame::setContent):
726 (QWebFrame::parentFrame):
727 (QWebFrame::childFrames):
728 (QWebFrame::setScrollBarValue):
729 (QWebFrame::scrollBarValue):
730 (QWebFrame::scrollBarMaximum):
731 (QWebFrame::scrollBarMinimum):
734 (QWebFrame::geometry):
736 (QWebFrame::evaluateJavaScript):
738 (QWebPagePrivate::mousePressEvent):
739 (QWebPagePrivate::mouseDoubleClickEvent):
740 (QWebPage::~QWebPage):
741 (QWebPage::javaScriptPrompt):
743 (QWebPage::setViewportSize):
744 (QWebPage::acceptNavigationRequest):
746 (QWebPage::userAgentForUrl):
747 (QWebPagePrivate::_q_onLoadProgressChanged):
751 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
755 Submitting more documentation for QWebPage
760 2008-04-28 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
764 Compile when QT_NO_CLIPBOARD is defined.
768 (QWebPage::triggerAction):
770 2008-04-28 David Boddie <dboddie@trolltech.com>
774 Minor documentation fix.
777 * Api/qwebhistory.cpp:
779 2008-04-28 Holger Hans Peter Freyther <zecke@selfish.org>
783 Implement QWebPage::createPlugin
785 The code is coming from the demo browser and needed here
786 for some manual tests.
789 * QtLauncher/QtLauncher.pro:
790 * QtLauncher/main.cpp:
791 (WebPage::createPlugin):
793 2008-04-28 Simon Hausmann <hausmann@webkit.org>
795 Qt/Win build fix. Include config.h to get the implicit MathExtras.h
796 inclusion correct with regards to rand_s.
798 * Api/qwebhistory.cpp:
800 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
804 https://bugs.webkit.org/show_bug.cgi?id=18713
806 Fix scrollbar painting issues in QtWebKit.
808 Hovering and click-draging outside of the scrollbar would
809 produce unexpected and inconcistent results. We also didn't
810 pass on leave-events to the underlying WebKit code, which
811 was nessecary to implement the paint fix.
813 Note: The event handling of the Leave event should be moved
814 out of QWebView::event() and into a proper override for 4.5.
817 (QWebPagePrivate::leaveEvent):
822 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
824 Reviewed by Simon, Holger.
826 Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus.
828 * Correctly de- and reactivate the focused frame in focusOut/focusInEvent
829 without telling the focus controller. We don't want to change the focused frame
830 - the controller has to remember it in fact - but instead just deactivate the
831 frame for correct painting as RenderTheme::isFocused() uses the activation
835 (QWebPagePrivate::focusInEvent):
836 (QWebPagePrivate::focusOutEvent):
838 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
842 completed documentation for the Detailed Description section for QWebView
847 2008-04-25 Denis Dzyubenko <denis.dzyubenko@trolltech.com>
851 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.
854 * Api/qwebhistory.cpp:
856 (QWebHistory::forward):
857 (QWebHistory::goToItem):
859 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
863 Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest().
866 * WebCoreSupport/FrameLoaderClientQt.cpp:
867 (WebCore::FrameLoaderClientQt::createFrame):
869 2008-04-25 Simon Hausmann <hausmann@webkit.org>
873 When pressing backspace in a line edit in a webpage we should not go back to the previous page.
875 The shortcut for back on Windows is backspace. Implemented shortcut override
876 handling in QWebView/QWebPage to prevent this.
880 (QWebPagePrivate::wheelEvent):
881 (editorActionForKeyEvent):
882 (QWebPagePrivate::keyPressEvent):
883 (QWebPagePrivate::inputMethodEvent):
884 (QWebPagePrivate::shortcutOverrideEvent):
890 2008-04-25 Ariya Hidayat <ariya.hidayat@trolltech.com>
894 Fix triple-clicking does not work in a web page
898 (QWebPagePrivate::updateEditorActions):
899 (QWebPagePrivate::timerEvent):
900 (QWebPagePrivate::mousePressEvent):
901 (QWebPagePrivate::mouseDoubleClickEvent):
902 (QWebPage::undoStack):
905 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
909 When pressing Ctrl-Up the keyboard modifiers could include other modifiers
913 (QWebPagePrivate::keyPressEvent):
915 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
919 Fix handling of Javascript's confirm() function in QtWebKit.
924 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
928 Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity
933 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
937 QWebPage: missing signal when window.print() is requested from javascript
942 * WebCoreSupport/ChromeClientQt.cpp:
944 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
948 Fixes: "Save Image" action wasn't doing anything.
952 (QWebPage::triggerAction):
954 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
958 Apply key event changes to the current frame, not the main frame.
960 Example: hitting space bar should scroll current frame, not the main frame
961 which doesn't even have a scrollbar.
965 (QWebPagePrivate::keyPressEvent):
967 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
971 Fixes: QWebFrame crash when fetching the icon
973 Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock.
977 2008-04-25 Warwick Allison <warwick@trolltech.com>
981 Fixes: Scrollbars did not report correct maximum.
985 2008-04-25 David Boddie <dboddie@trolltech.com>
989 Documentation updates for some of the QWeb classes
992 * Api/qwebhistory.cpp:
993 * Api/qwebsettings.cpp:
996 2008-04-25 Holger Hans Peter Freyther <zecke@selfish.org>
1000 Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html
1002 Similar to Editing and Frameloading we do the dumping within WebCore
1005 * WebCoreSupport/FrameLoaderClientQt.cpp:
1006 (qt_dump_frame_loader):
1007 (qt_dump_resource_load_callbacks):
1008 (drtDescriptionSuitableForTestResult):
1009 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
1010 (WebCore::FrameLoaderClientQt::dispatchDidLoadResourceFromMemoryCache):
1011 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
1013 2008-04-24 Anders Carlsson <andersca@apple.com>
1017 Change some String arguments to be const references instead.
1019 * WebCoreSupport/EditorClientQt.cpp:
1020 (WebCore::EditorClientQt::shouldInsertText):
1021 * WebCoreSupport/EditorClientQt.h:
1023 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
1027 Cosmetic changes to make the code more readable.
1028 -Early exit if we don't have a webview
1029 -handle the empty tooltip and non-empty tooltip case separately
1032 * WebCoreSupport/ChromeClientQt.cpp:
1033 (WebCore::ChromeClientQt::setToolTip):
1034 (WebCore::ChromeClientQt::print):
1036 2008-04-24 Paul Olav Tvete <paul@trolltech.com>
1040 Automatically wrap tooltip text and hide a shown tooltip when it is empty.
1042 QWidget::setTooltip("") will still show the old tooltip for up to 10 seconds.
1043 Workaround as discussed with Matthias.
1045 * WebCoreSupport/ChromeClientQt.cpp:
1046 (WebCore::ChromeClientQt::setToolTip):
1048 2008-04-24 Holger Hans Peter Freyther <zecke@selfish.org>
1052 Allow to disable caching completeley by calling setObjectCacheCapacities(0, 0, 0)
1054 * Api/qwebsettings.cpp:
1055 (QWebSettings::setObjectCacheCapacities):
1057 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
1061 Improve keyboard scrolling
1063 Match Down/Up keys scroll distance with Safari (i.e. faster) and add Home and End shortcuts to scroll to the top/botom.
1067 (QWebPagePrivate::keyPressEvent):
1069 2008-04-24 Olivier Goffart <ogoffart@trolltech.com>
1073 Fix various compiler warnings in the Qt port.
1075 * Api/qwebframe.cpp:
1077 * Api/qwebsettings.cpp:
1079 * WebCoreSupport/FrameLoaderClientQt.cpp:
1080 (WebCore::FrameLoaderClientQt::createPlugin):
1082 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
1086 Cleaned up copyright headers (removed misplaced class descriptions and
1087 fixed inconsistent whitespace and indentation).
1089 * Api/qwebframe.cpp:
1091 * Api/qwebframe_p.h:
1092 * Api/qwebhistory.cpp:
1093 * Api/qwebhistory.h:
1094 * Api/qwebhistory_p.h:
1095 * Api/qwebhistoryinterface.cpp:
1096 * Api/qwebhistoryinterface.h:
1097 * Api/qwebkitglobal.h:
1098 * Api/qwebnetworkinterface.cpp:
1099 * Api/qwebnetworkinterface.h:
1100 * Api/qwebnetworkinterface_p.h:
1104 * Api/qwebpluginfactory.cpp:
1105 * Api/qwebpluginfactory.h:
1106 * Api/qwebsettings.cpp:
1107 * Api/qwebsettings.h:
1109 * QtLauncher/main.cpp:
1111 2008-04-24 Tor Arne Vestbø <tavestbo@trolltech.com>
1115 Added basic URL guessing to QtLauncher (same as in the demo browser).
1118 * QtLauncher/main.cpp:
1119 (MainWindow::changeLocation):
1120 (MainWindow::guessUrlFromString):
1122 2008-04-24 Benjamin Meyer <bmeyer@trolltech.com>
1124 Reviewed by Simon Hausmann <hausmann@webkit.org>.
1126 Prevent double deletions of the default web interface.
1129 * Api/qwebhistoryinterface.cpp:
1130 (gCleanupInterface):
1131 (QWebHistoryInterface::QWebHistoryInterface):
1133 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1135 Fix compilation against Qt 4.3
1138 (QWebPage::userAgentForUrl):
1139 * QtLauncher/main.cpp:
1142 2008-04-23 Holger Hans Peter Freyther <zecke@selfish.org>
1146 * Make sure the "Inspect Element" item gets added to the ContextMenu, a call
1147 to ContextMenu::populate() is not adding it, the ContextMenuController does
1148 add it after the call to populate(). Do that as well.
1152 (QWebPage::updatePositionDependentActions):
1154 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1158 Fix crashes on window.close().
1160 We should not delete the QWebPage object in the ChromeClient but leave it up to
1161 the application when and whether to delete a browser window. For this we now
1162 emit the windowCloseRequested() signal.
1168 * QtLauncher/main.cpp:
1169 (MainWindow::MainWindow):
1170 * WebCoreSupport/ChromeClientQt.cpp:
1172 2008-04-23 Simon Hausmann <hausmann@webkit.org>
1176 Fix parsing of external scripts/stylesheets when using setHtml(const QString &html).
1178 We used to pass the html string to the frameloader in utf-16, which also meant that the default
1179 encoding of external scripts/stylesheets became utf-16. That doesn't make sense, so assume utf-8
1180 by default. This is now also documented.
1182 * Api/qwebframe.cpp:
1183 (QWebFrame::setHtml):
1186 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
1190 Fixes background color propagation when using a custom QWebPage
1192 Set the palette in setPage(), not during the creation on-demand.
1197 (QWebView::setPage):
1199 2008-04-23 Benjamin Meyer <bmeyer@trolltech.com>
1203 Fix the user agent on the mac to be BSD4
1205 Put Q_OS_DARWIN before Q_OS_BSD4 sense they are both defined on the mac
1209 (QWebPage::userAgentForUrl):
1211 2008-04-23 Simon Hausmann <shausman@trolltech.com>
1215 Added missing copyright notice.
1216 Small fixes to the documentation.
1218 * Api/qwebpluginfactory.cpp:
1220 2008-04-23 Zack Rusin <zack@tungstengraphics.com>
1224 Added a contentsSize() property.
1226 * Api/qwebframe.cpp:
1227 (QWebFrame::contentsSize):
1228 (QWebFrame::hitTestContent):
1231 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1235 Fixes: QWebPage's QNetworkManager's can be shared among webpages.
1237 Don't force the deletion of the object, but let QObject take care of it.
1241 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1245 Documentation for QWebPluginFactory and documentation updates for QWebPage.
1248 (QWebPage::setLinkDelegationPolicy):
1249 (QWebPage::linkDelegationPolicy):
1250 (QWebPage::swallowContextMenuEvent):
1251 (QWebPage::updatePositionDependentActions):
1252 (QWebPage::extension):
1253 (QWebPage::networkAccessManager):
1254 * Api/qwebpluginfactory.cpp:
1255 (QWebPluginFactory::QWebPluginFactory):
1256 (QWebPluginFactory::~QWebPluginFactory):
1257 (QWebPluginFactory::refreshPlugins):
1259 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1263 Added QWebPage::swallowContextMenuEvent and QWebPage::updatePositionDependentActions.
1267 (QWebPagePrivate::QWebPagePrivate):
1268 (QWebPagePrivate::mouseReleaseEvent):
1269 (QWebPage::setLinkDelegationPolicy):
1270 (QWebPage::linkDelegationPolicy):
1271 (QWebPage::swallowContextMenuEvent):
1272 (QWebPage::updatePositionDependentActions):
1278 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1282 Added Extension APIs for QWebPage.
1285 (QWebPage::setLinkDelegationPolicy):
1286 (QWebPage::linkDelegationPolicy):
1287 (QWebPage::extension):
1289 * Api/qwebpluginfactory.cpp:
1290 (QWebPluginFactory::extension):
1292 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
1296 Emit loadProgress() signal on loadStarted().
1299 * WebCoreSupport/FrameLoaderClientQt.cpp:
1300 (WebCore::FrameLoaderClientQt::postProgressEstimateChangedNotification):
1302 2008-04-22 Zack Rusin <zack@kde.org>
1306 Fix background propagation from the QWebView's palette.
1308 The background brush of the palette needs to be propagated to the WebCore::FrameView.
1310 * Api/qwebframe.cpp:
1311 (QWebFramePrivate::updateBackground):
1312 * Api/qwebframe_p.h:
1314 (QWebPagePrivate::dropEvent):
1315 (QWebPage::setPalette):
1320 (QWebView::changeEvent):
1322 * WebCoreSupport/FrameLoaderClientQt.cpp:
1324 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1330 We have to include a version in the Safari tag in the user-agent.
1333 (QWebPage::userAgentForUrl):
1335 2008-04-22 Tor Arne Vestbø <tavestbo@trolltech.com>
1339 Add visual focusing hint for clear button and
1340 change focus to web page after user enters new URL.
1342 * QtLauncher/main.cpp:
1343 (ClearButton::paintEvent):
1344 (MainWindow::changeLocation):
1346 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1350 Added QWebFrame::hitTestContent() and QWebHitTestResult.
1352 * Api/qwebframe.cpp:
1353 (QWebFrame::hitTestContent):
1355 (QWebHitTestResult::QWebHitTestResult):
1356 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1357 (QWebHitTestResult::operator=):
1358 (QWebHitTestResult::~QWebHitTestResult):
1359 (QWebHitTestResult::isNull):
1360 (QWebHitTestResult::pos):
1361 (QWebHitTestResult::title):
1362 (QWebHitTestResult::linkText):
1363 (QWebHitTestResult::linkUrl):
1364 (QWebHitTestResult::linkTitle):
1365 (QWebHitTestResult::linkTargetFrame):
1366 (QWebHitTestResult::alternateText):
1367 (QWebHitTestResult::imageUrl):
1368 (QWebHitTestResult::pixmap):
1369 (QWebHitTestResult::isContentEditable):
1370 (QWebHitTestResult::isContentSelected):
1371 (QWebHitTestResult::frame):
1373 * Api/qwebframe_p.h:
1374 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1376 (QWebPagePrivate::contextMenuEvent):
1377 (QWebPage::triggerAction):
1381 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1385 Don't crash if an input method query is done without a page.
1389 (QWebView::inputMethodQuery):
1391 2008-04-22 Simon Hausmann <hausmann@webkit.org>
1395 Added re-implementations of QObject::event for future safety.
1397 This makes it easier to fix bugs with the event handling even in patch releases
1398 and is a general style we follow in Qt.
1401 * Api/qwebframe.cpp:
1407 2008-04-22 Benjamin Meyer <bmeyer@trolltech.com>
1411 Fix construction of the user agent.
1413 The user-agent is now composed of
1414 * the platform and subplatform
1415 * the Qt version or application name and version (if set)
1421 (QWebPage::networkAccessManager):
1422 (QWebPage::setPluginFactory):
1423 (QWebPage::pluginFactory):
1424 (QWebPage::userAgentForUrl):
1425 * QtLauncher/main.cpp:
1427 2008-04-22 Thiago Macieira <tjmaciei@trolltech.com>
1431 Fixes: Pedantic compilation fix
1433 Don't put semi-colons after braces closing namespaces.
1435 * Api/qwebsettings.h:
1437 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1441 Changed the return type of QWebFrame::evaluateJavaScript from a QString to a QVariant.
1443 * Api/qwebframe.cpp:
1444 (QWebFrame::evaluateJavaScript):
1447 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1451 Fixes redundant "Fonts" submenu in default lineedits that has only disabled items.
1453 Don't show sub-menus that have only actions that are disabled.
1456 (QWebPagePrivate::createContextMenu):
1458 2008-04-21 Kavindra Devi Palaraja <kdpalara@trolltech.com>.
1462 Lots of documentation fixes, fixed all qdoc warnings.
1464 * Api/qwebframe.cpp:
1465 (QWebFrame::setTextSizeMultiplier):
1466 * Api/qwebhistoryinterface.cpp:
1467 (gCleanupInterface):
1468 (QWebHistoryInterface::QWebHistoryInterface):
1469 (QWebHistoryInterface::~QWebHistoryInterface):
1471 (QWebPage::inputMethodQuery):
1473 (QWebPage::javaScriptConsoleMessage):
1474 (QWebPage::javaScriptAlert):
1475 (QWebPage::javaScriptConfirm):
1476 (QWebPage::javaScriptPrompt):
1477 (QWebPage::viewportSize):
1478 (QWebPage::acceptNavigationRequest):
1481 (QWebPage::focusNextPrevChild):
1482 (QWebPage::setForwardUnsupportedContent):
1483 (QWebPage::setLinkDelegationPolicy):
1484 (QWebPage::findText):
1485 (QWebPage::settings):
1486 (QWebPage::networkProxy):
1487 (QWebPage::setNetworkAccessManager):
1489 * Api/qwebsettings.cpp:
1490 (QWebSettings::QWebSettings):
1491 (QWebSettings::setIconDatabasePath):
1492 (QWebSettings::iconForUrl):
1493 (QWebSettings::fontFamily):
1498 2008-04-21 Marius Bugge Monsen <mmonsen@trolltech.com>
1502 Fix compile failure on solaris-cc
1504 * Api/qwebpage.h: Removed trailing semicolons and moved the private
1505 d-pointer to not confuse the compiler
1507 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1511 Build fix for Qt 4.3
1513 * When building WebCore/internal make sure the QT_[BEGIN,END]_NAMESPACE is
1514 always defined. Do this by adding defines to the compiler line
1515 * For users of our API this is not feasible. Every public header file should
1516 include qwebkitglobal.h. Define the QT_BEGIN_NAMESPACE and QT_END_NAMESPACE
1517 when we are building everything < 4.4.0 and don't have them defined.
1519 * Api/qwebkitglobal.h:
1521 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1525 * Initialize the WebGraphics with the one found in WebCore
1528 * Api/qwebsettings.cpp:
1529 (QWebSettingsPrivate::apply):
1531 2008-04-21 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1535 * Allow TextAreas to be resized.
1536 * No QWebSettings for this is introduced.
1539 * Api/qwebsettings.cpp:
1540 (QWebSettingsPrivate::apply):
1542 2008-04-21 Simon Hausmann <shausman@trolltech.com>
1546 Fixes: QWebView::url property behaviour strange in designer
1548 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.
1550 * Api/qwebframe.cpp:
1551 (QWebFrame::setUrl):
1557 2008-04-21 Andre Poenitz <andre.poenitz@trolltech.com>
1559 Reviewed by Simon Hausmann <hausmann@webkit.org>.
1561 Fix compilation with Qt namespaces
1563 * Api/qwebframe.cpp:
1567 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1571 When printing on high resolution printers we need to scale the painter accordingly (for now).
1573 * Api/qwebframe.cpp:
1576 2008-04-21 Simon Hausmann <hausmann@webkit.org>
1580 Provide a print preview in the QtLauncher
1582 * QtLauncher/main.cpp:
1583 (MainWindow::MainWindow):
1584 (MainWindow::showLinkHover):
1585 (MainWindow::print):
1587 2008-04-20 Simon Hausmann <hausmann@webkit.org>
1589 Reviewed by Alp Toker.
1591 Share the printing code between the Gtk and the Qt port
1592 and added printing to the Qt WebKit API.
1594 * Api/qwebframe.cpp:
1601 2008-04-19 Julien Chaffraix <jchaffraix@webkit.org>
1603 Qt build fix (renderer() -> contentRenderer()).
1605 * Api/qwebframe.cpp:
1606 (QWebFrame::renderTreeDump):
1607 (QWebFrame::render):
1609 2008-04-18 Simon Hausmann <hausmann@webkit.org>
1613 Many API changes and additions after a full review with Jasmin Blanchette <jasmin@trolltech.com>
1615 The diff is too big to mention the changes individually, but most of the changes were of cosmetic
1616 nature where methods or enums have been renamed or prefixed/suffixed according to the consistency
1617 rules of the Qt API.
1619 * Api/qwebframe.cpp:
1620 (QWebFrame::addToJavaScriptWindowObject):
1621 (QWebFrame::toHtml):
1622 (QWebFrame::toPlainText):
1624 (QWebFrame::setContent):
1625 (QWebFrame::setScrollBarPolicy):
1626 (QWebFrame::render):
1627 (QWebFrame::setTextSizeMultiplier):
1628 (QWebFrame::textSizeMultiplier):
1631 * Api/qwebhistory.cpp:
1632 * Api/qwebhistory.h:
1634 (QWebPagePrivate::QWebPagePrivate):
1635 (QWebPagePrivate::~QWebPagePrivate):
1636 (QWebPagePrivate::acceptNavigationRequest):
1637 (webActionForContextMenuAction):
1638 (QWebPagePrivate::updateAction):
1639 (QWebPagePrivate::keyPressEvent):
1641 (QWebPage::javaScriptPrompt):
1642 (QWebPage::createWindow):
1643 (QWebPage::triggerAction):
1644 (QWebPage::setViewportSize):
1645 (QWebPage::acceptNavigationRequest):
1647 (QWebPage::focusNextPrevChild):
1648 (QWebPage::setForwardUnsupportedContent):
1649 (QWebPage::forwardUnsupportedContent):
1650 (QWebPage::setLinkDelegationPolicy):
1651 (QWebPage::findText):
1652 (QWebPage::networkAccessManager):
1653 (QWebPageContext::imageUrl):
1654 (QWebPageContext::image):
1657 * Api/qwebsettings.cpp:
1658 (QWebSettingsPrivate::apply):
1659 (QWebSettings::QWebSettings):
1660 (QWebSettings::setIconDatabasePath):
1661 (QWebSettings::iconDatabasePath):
1662 (QWebSettings::clearIconDatabase):
1663 (QWebSettings::iconForUrl):
1664 (QWebSettings::setWebGraphic):
1665 (QWebSettings::fontFamily):
1666 (QWebSettings::setAttribute):
1667 (QWebSettings::testAttribute):
1668 (QWebSettings::resetAttribute):
1669 * Api/qwebsettings.h:
1671 (QWebView::setPage):
1673 (QWebView::setTextSizeMultiplier):
1674 (QWebView::textSizeMultiplier):
1675 (QWebView::findText):
1677 (QWebView::mouseMoveEvent):
1679 * QtLauncher/main.cpp:
1680 (MainWindow::MainWindow):
1682 * WebCoreSupport/ChromeClientQt.cpp:
1683 (WebCore::ChromeClientQt::ChromeClientQt):
1684 (WebCore::ChromeClientQt::setWindowRect):
1685 (WebCore::ChromeClientQt::toolbarsVisible):
1686 (WebCore::ChromeClientQt::setStatusbarVisible):
1687 (WebCore::ChromeClientQt::statusbarVisible):
1688 (WebCore::ChromeClientQt::setScrollbarsVisible):
1689 (WebCore::ChromeClientQt::setResizable):
1690 (WebCore::ChromeClientQt::scrollBackingStore):
1691 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
1692 (WebCore::ChromeClientQt::setToolTip):
1693 * WebCoreSupport/ChromeClientQt.h:
1694 * WebCoreSupport/FrameLoaderClientQt.cpp:
1695 (WebCore::FrameLoaderClientQt::setFrame):
1696 (WebCore::FrameLoaderClientQt::didPerformFirstNavigation):
1697 (WebCore::FrameLoaderClientQt::setMainDocumentError):
1698 (WebCore::FrameLoaderClientQt::dispatchDidFailLoading):
1699 (WebCore::FrameLoaderClientQt::createFrame):
1700 (WebCore::FrameLoaderClientQt::objectContentType):
1701 * WebCoreSupport/FrameLoaderClientQt.h:
1702 * WebCoreSupport/InspectorClientQt.cpp:
1704 2008-04-18 Simon Hausmann <hausmann@webkit.org>
1708 Added QWebView::find/QWebFrame::find.
1711 (QWebPage::focusNextPrevChild):
1718 2008-04-15 Ariya Hidayat <ariya.hidayat@trolltech.com>
1722 fix potential crash when loading image(s)
1724 Crash may occur. If compiled with 4.3, the variable is not initialized.
1725 This fix solves https://bugs.webkit.org/show_bug.cgi?id=17174
1728 (QWebPagePrivate::QWebPagePrivate):
1730 2008-04-15 Simon Hausmann <hausmann@webkit.org>
1734 Update the micro focus for input methods as soon as the composition mode changes
1735 or the caret/selection changes.
1741 (QWebView::setPage):
1742 * WebCoreSupport/EditorClientQt.cpp:
1743 (WebCore::EditorClientQt::respondToChangedSelection):
1744 (WebCore::EditorClientQt::setInputMethodState):
1746 2008-04-15 Simon Hausmann <hausmann@webkit.org>
1750 Don't use QDir, QString or any locale sensitive function before constructing Q(Core)Application,
1751 it yields undefined behaviour or wrong default codec initialization.
1754 * QtLauncher/main.cpp:
1755 (WebPage::createWindow):
1757 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
1761 Fixes: copy to clipboard when selecting, and paste when clicking with the middle button
1764 (QWebPagePrivate::mouseReleaseEvent): If the clipboard supports
1765 selections then we support copy & paste into the selection.
1767 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
1771 Add basic input method support.
1775 (QWebPagePrivate::dropEvent):
1776 (QWebPagePrivate::inputMethodEvent):
1777 (QWebPage::inputMethodQuery):
1782 (QWebView::QWebView):
1783 (QWebView::inputMethodQuery):
1784 (QWebView::inputMethodEvent):
1786 * WebCoreSupport/EditorClientQt.cpp:
1787 (WebCore::EditorClientQt::setInputMethodState):
1789 2008-04-15 Simon Hausmann <hausmann@webkit.org>
1793 Added (QWebFrame|QWebView)::textZoomFactor.
1796 * Api/qwebframe.cpp:
1797 (QWebFrame::setTextZoomFactor):
1798 (QWebFrame::textZoomFactor):
1801 (QWebView::setTextZoomFactor):
1802 (QWebView::textZoomFactor):
1805 2008-04-15 Michael Brasser <michael.brasser@trolltech.com>
1809 Added simple scrolling API to QWebFrame.
1811 The intent is that it works similar to QAbstractScrollArea.
1814 * Api/qwebframe.cpp:
1815 (QWebFrame::setScrollBarValue):
1816 (QWebFrame::scrollBarValue):
1817 (QWebFrame::scrollBarMaximum):
1818 (QWebFrame::scrollBarMinimum):
1821 2008-04-15 Olivier Goffart <ogoffart@trolltech.com>
1825 Fixes: implement the OpenFrameInNewWindow action.
1829 (QWebPage::triggerAction):
1831 2008-04-15 Andre Poenitz <andre.poenitz@trolltech.com>
1835 Fix compilation with Qt namespaces
1837 Qt can be configured to have all of its classes inside a specified namespaces.
1838 This is for example used in plugin/component environments like Eclipse.
1840 This change makes it possible to let the Qt port compile against a namespaced
1841 Qt by the use of macros Qt provides to properly forward declare Qt classes in
1847 * Api/qwebpluginfactory.h:
1848 * Api/qwebsettings.h:
1851 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
1855 Fixes: Right clicking an image and choosing "copy image" doesnt put anything in the clipboard.
1859 (QWebPage::triggerAction):
1861 2008-04-05 Olivier Goffart <ogoffart@trolltech.com>
1865 Fixes: Right click, and "Open image" open the link instead of the image.
1870 2008-04-05 Benjamin Meyer <bmeyer@trolltech.com>
1874 Added doc stub for QWebSettings so class docs are generated
1877 * Api/qwebsettings.cpp:
1878 (QWebSettings::QWebSettings):
1880 2008-04-05 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1884 * Propose the addition of updateRequest and scrollRequest to the QWebPage.
1886 * The question is if these signals belong to QWebPage or QWebFrame.
1887 -It is more easy to have them in QWebPage because ScrollView is invoking
1888 the ChromeClient with the right coordinates
1889 -On the other hand someone wants to render frames separately. But this is partly
1890 doomed as you can have overlapping frames and what you paint would not relate to
1891 what you normally see on webpages.
1896 * WebCoreSupport/ChromeClientQt.cpp:
1897 (WebCore::ChromeClientQt::scrollBackingStore):
1898 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
1900 2008-04-03 Simon Hausmann <hausmann@webkit.org>
1902 Reviewed by Mark Rowe.
1904 Roll out r31599 and r31605 again after discussion with Mark Rowe.
1906 * Api/qwebframe.cpp:
1908 * Api/qwebsettings.cpp:
1909 (QWebSettings::iconForUrl):
1911 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1915 * Change IconDatabase::iconForPageURL to return more information. E.g. if
1916 an image has been found, or if the loading of an image has been scheduled.
1917 * Update FrameLoader to use another method to trigger reading from disk
1918 * Update the QWebFrame and QWebSettings
1920 * Api/qwebframe.cpp:
1922 * Api/qwebsettings.cpp:
1923 (QWebSettings::iconForUrl):
1925 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1929 * Safari is using the IconDatabase the following way (assumption). Before they
1930 call iconDatabase()->open they "retain" all URLs they are interested in, these
1931 could come from the history.
1932 * When opening the iconDatabase() a thread will be started that is going to import
1933 the URLs, all none manually retained URLs are scheduled for removal. The removal
1934 is going to happen when the next icon gets stored in the database.
1935 * We do not have any IconDatabase code, we can not retain the URLs before opening the
1936 database. To disable the automatic pruning of the icons we will ask the IconDatabase
1937 to delay this operation. This means our IconDatabase, when used, will grow, so we should
1938 try to have a IconDatabase class in 4.4.
1939 * The only way to counter the growth is a call to QWebSettings::clearIconDatabase
1942 * Api/qwebsettings.cpp:
1943 (QWebSettings::clearIconDatabase):
1944 * Api/qwebsettings.h:
1946 2008-04-03 Benjamin Meyer <bmeyer@trolltech.com>
1950 Add a way to get the site icon for a url
1951 static QPixmap iconForUrl(const QUrl &url);
1954 * Api/qwebsettings.cpp:
1955 (QWebSettings::iconForUrl):
1956 * Api/qwebsettings.h:
1958 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1962 * Update the Copyright info in QWebSettings
1965 * Api/qwebsettings.cpp:
1966 * Api/qwebsettings.h:
1968 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1972 * The isEmpty check is not needed anymore with the earlier backport
1975 * Api/qwebframe.cpp:
1978 2008-04-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
1982 * For the http tests we need the output of the FrameLoaderClient. The QtWebKit API
1983 is not exporting enough to create the output in DRT itself. Settle with the approach
1984 Lars has taken for the Editing support and add branches to our FrameLoaderClient code.
1985 * run-webkit-tests http/tests(/loading) can now be executed.
1986 * For tests in loading/ directories we are going to throw away the dirty
1987 QWebPage to start with something clean.
1990 * WebCoreSupport/FrameLoaderClientQt.cpp:
1991 (qt_dump_frame_loader):
1992 (drtDescriptionSuitableForTestResult):
1993 (WebCore::FrameLoaderClientQt::dispatchDidReceiveServerRedirectForProvisionalLoad):
1994 (WebCore::FrameLoaderClientQt::dispatchDidCancelClientRedirect):
1995 (WebCore::FrameLoaderClientQt::dispatchWillPerformClientRedirect):
1996 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
1997 (WebCore::FrameLoaderClientQt::dispatchWillClose):
1998 (WebCore::FrameLoaderClientQt::dispatchDidStartProvisionalLoad):
1999 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2000 (WebCore::FrameLoaderClientQt::dispatchDidCommitLoad):
2001 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad):
2002 (WebCore::FrameLoaderClientQt::dispatchDidFinishLoad):
2003 (WebCore::FrameLoaderClientQt::registerForIconNotification):
2004 (WebCore::FrameLoaderClientQt::setMainDocumentError):
2005 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2007 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2011 * Export the PageCache and Cache capacity call one to one. This is only there
2012 to allow the QtLauncher to play with caching.
2013 * TODO: make API decisions and consider following the windows Api to set a WebCacheModel
2014 and determine certain values automatically.
2017 * Api/qwebsettings.cpp:
2018 (QWebSettings::setPageCacheCapacity):
2019 (QWebSettings::setObjectCacheCapacities):
2020 * Api/qwebsettings.h:
2021 * QtLauncher/main.cpp:
2023 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2027 Prepapre everything for enabling the PageCache for the Qt Platform:
2028 * Claim that we can cache pages
2029 * Create the FrameView FrameLoaderClientQt::transitionToCommittedForNewPage using
2030 the initial size of the viewport and stop creating it in the QWebFramePrivate::init
2032 Differences to the Windows port:
2033 * attachToWindow/detachFromWindow is not called and is not (yet) part
2034 of Widget/ScrollView of the Qt platform. We might need that for plugin
2035 support in the future.
2036 * We store the margin's and scrolling flag inside QWebFrame and use it when
2037 creating the FrameView.
2040 * API to call pageCache()->setCapacity(XYZ);
2043 * Api/qwebframe.cpp:
2044 (QWebFramePrivate::init):
2045 * Api/qwebframe_p.h:
2046 (QWebFramePrivate::QWebFramePrivate):
2048 (QWebPagePrivate::createMainFrame):
2049 * WebCoreSupport/FrameLoaderClientQt.cpp:
2050 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2051 (WebCore::FrameLoaderClientQt::blockedError):
2053 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2057 * For the PageCache support we do not want to create a FrameView in the constructor
2058 of QWebFrame. In QWegPage::viewportSize() we currently call mainFrame() and that will
2059 create a QWebFrame if no mainFrame is present and this gets called when we try to
2060 create a FrameView...
2061 * Keep a copy of the initial viewportSize around and use it if we do not have a Frame
2066 (QWebPagePrivate::QWebPagePrivate):
2067 (QWebPage::triggerAction):
2070 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2074 * Always return true in FrameLoaderClientQt::shouldGoToHistoryItem, like the windows port
2076 * WebCoreSupport/FrameLoaderClientQt.cpp:
2079 2008-04-02 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2083 * Attempt to make the m_webFrame null pointer checking consistent. Always check for
2084 m_webFrame. It should get set by the QWebFrame with the FramerLoaderClientQt::setFrame
2085 call and should stay valid until the destruction of the QWebFrame.
2086 * Currently the same checking is not needed for m_frame as it will only set to 0 in
2087 FrameLoaderClientQt::frameLoaderDestroyed and should be not 0 because of the setFrame
2091 * WebCoreSupport/FrameLoaderClientQt.cpp:
2092 (WebCore::FrameLoaderClientQt::dispatchDidReceiveTitle):
2093 (WebCore::FrameLoaderClientQt::setMainDocumentError):
2094 (WebCore::FrameLoaderClientQt::dispatchDidReceiveContentLength):
2095 (WebCore::FrameLoaderClientQt::objectContentType):
2096 (WebCore::FrameLoaderClientQt::createPlugin):
2098 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2102 * Get the RefCounting of WebCore::Frame right and make sure that both QWebFrame
2103 and WebCore::Frame get destroyed if we leave site with subframes and on the
2104 end of the application.
2105 * Use adoptRef in FrameLoaderClientQt::createFrame to get the refs right for subframes. We
2106 do not want to add an extra reference. Without this we are leaking subframes.
2107 * Assume that the lifetime of a Frame and FrameLoader are the same, when the Frame is gone
2108 we want to destroy the QWebFrame (e.g. on a page with subframes). Add delete m_webFrame
2109 in the frameLoaderDestroyed method to do that.
2110 * If we happen to delete the QWebFrame before the FrameLoaderClientQt we set m_webFrame to
2111 zero in the FrameLoaderClientQt to avoid bad things.
2114 * Api/qwebframe.cpp:
2115 (QWebFrame::~QWebFrame):
2116 * WebCoreSupport/FrameLoaderClientQt.cpp:
2117 (WebCore::FrameLoaderClientQt::shouldGoToHistoryItem):
2118 (WebCore::FrameLoaderClientQt::objectContentType):
2119 * WebCoreSupport/FrameLoaderClientQt.h:
2121 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2125 * Do not save a RefPtr to the frame. The FrameLoaderClient, Frame and
2126 QWebFrame should have the same lifetime everything else is a leak
2129 * Api/qwebframe.cpp:
2130 (QWebFramePrivate::init):
2131 * Api/qwebframe_p.h:
2132 * WebCoreSupport/FrameLoaderClientQt.cpp:
2134 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2138 * Do not store the QWebFrame associated with a ScrollView/FrameView
2139 in the WebCore::Widget.
2140 * Instead of asking the Widget for the QWebFrame use the QWebFramePrivate::core
2141 and QWebFramePrivate::kit function to convert from and to QWebFrame.
2144 * Api/qwebframe.cpp:
2145 (QWebFramePrivate::init):
2147 (QWebPagePrivate::createMainFrame):
2149 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2153 * Do not store the FrameView in the QWebFrame and cope with the situation when
2154 a WebCore::Frame has no WebCore::FrameView.
2157 * Api/qwebframe.cpp:
2158 (QWebFramePrivate::init):
2159 (QWebFramePrivate::horizontalScrollBar):
2160 (QWebFramePrivate::verticalScrollBar):
2161 (QWebFrame::innerText):
2162 (QWebFrame::renderTreeDump):
2163 (QWebFrame::setVerticalScrollBarPolicy):
2164 (QWebFrame::setHorizontalScrollBarPolicy):
2165 (QWebFrame::render):
2166 (QWebFrame::layout):
2168 * Api/qwebframe_p.h:
2169 (QWebFramePrivate::QWebFramePrivate):
2171 (QWebPagePrivate::updateEditorActions):
2172 (QWebPagePrivate::mouseMoveEvent):
2173 (QWebPagePrivate::mousePressEvent):
2174 (QWebPagePrivate::mouseDoubleClickEvent):
2175 (QWebPagePrivate::contextMenuEvent):
2176 (QWebPagePrivate::wheelEvent):
2177 (QWebPage::triggerAction):
2178 * WebCoreSupport/FrameLoaderClientQt.cpp:
2180 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2184 * Change the order of the methods to match with the FrameLoaderClient.h to ease
2185 removing methods in the future.
2187 * WebCoreSupport/FrameLoaderClientQt.h:
2189 2008-04-01 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2193 * Remove virtuals in the FrameLoaderClientQt that don't exist in the base class.
2195 * WebCoreSupport/FrameLoaderClientQt.cpp:
2196 (WebCore::FrameLoaderClientQt::detachedFromParent4):
2197 * WebCoreSupport/FrameLoaderClientQt.h:
2199 2008-03-25 Brady Eidson <beidson@apple.com>
2203 Remove newly obsolete FrameLoaderClient methods
2205 * WebCoreSupport/FrameLoaderClientQt.cpp:
2206 * WebCoreSupport/FrameLoaderClientQt.h:
2208 2008-03-22 Mark Rowe <mrowe@apple.com>
2212 * WebCoreSupport/FrameLoaderClientQt.cpp:
2215 2008-03-18 Simon Hausmann <hausmann@webkit.org>
2219 Fix the Qt build. Don't return void in non-void functions.
2221 * Api/qwebpluginfactory.cpp:
2222 (QWebPluginFactory::extension):
2224 2008-03-16 Thiago Macieira <thiago.macieira@trolltech.com>
2228 Don't use RefPtr in classes you haven't seen the implementation of.
2230 Forward-declaration and declaration of RefPtr<Foo> is ok. But you
2231 cannot *use* said objects until Foo is defined. This is true even for
2232 initialisation with a 0.
2234 Seems the HP aCC compiler is more strict here than gcc.
2236 * Api/qwebframe_p.h:
2238 2008-03-14 Simon Hausmann <hausmann@webkit.org>
2242 * Api/qwebframe.cpp:
2243 (QWebFrame::setHtml):
2244 (QWebFrame::setContent):
2246 2008-03-13 Simon Hausmann <hausmann@webkit.org>
2250 * Api/qwebframe.cpp:
2251 (QWebFrame::addToJSWindowObject):
2253 2008-03-12 Simon Hausmann <hausmann@webkit.org>
2255 Fix compilation against Qt 4.3
2261 2008-03-11 Rodney Dawes <dobey@wayofthemonkey.com>
2265 * WebCoreSupport/FrameLoaderClientQt.cpp:
2266 (FrameLoaderClientQt::CreatePlugin):
2268 2008-03-11 Simon Hausmann <hausmann@webkit.org>
2270 Fix the Qt build (silly typo).
2272 * QtLauncher/main.cpp:
2273 (MainWindow::MainWindow):
2275 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
2279 Moved obscuring progress bar to the lower right corner.
2281 * QtLauncher/main.cpp:
2282 (MainWindow::MainWindow):
2283 (MainWindow::resizeEvent):
2285 2008-03-11 Tor Arne Vestbø <tavestbo@trolltech.com>
2289 Added reload action and grouped stop and reload actions together.
2291 * QtLauncher/main.cpp:
2292 (MainWindow::MainWindow):
2294 2008-03-11 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2298 * Set a Icon on the QAction if we have one.
2303 2008-03-11 Simon Hausmann <hausmann@webkit.org>
2307 * Api/qwebframe.cpp:
2308 (QWebFrame::addToJSWindowObject):
2310 2008-03-07 Simon Hausmann <hausmann@webkit.org>
2316 Replaced the QWebObjectPlugin interfaces with QWebPluginFactory.
2318 * Api/qwebnetworkinterface.cpp:
2319 (QWebNetworkManager::add):
2320 (QWebNetworkManager::cancel):
2321 (QWebNetworkManager::started):
2322 (QWebNetworkManager::data):
2323 (QWebNetworkManager::finished):
2324 * Api/qwebnetworkinterface_p.h:
2325 (QWebNetworkJobPrivate::QWebNetworkJobPrivate):
2326 * Api/qwebobjectplugin.cpp: Removed.
2327 * Api/qwebobjectplugin.h: Removed.
2328 * Api/qwebobjectplugin_p.h: Removed.
2329 * Api/qwebobjectpluginconnector.cpp: Removed.
2330 * Api/qwebobjectpluginconnector.h: Removed.
2332 (QWebPagePrivate::QWebPagePrivate):
2333 (QWebPage::setPluginFactory):
2334 (QWebPage::pluginFactory):
2337 * Api/qwebpluginfactory.cpp: Added.
2338 (QWebPluginFactory::QWebPluginFactory):
2339 (QWebPluginFactory::~QWebPluginFactory):
2340 (QWebPluginFactory::refreshPlugins):
2341 (QWebPluginFactory::extension):
2342 * Api/qwebpluginfactory.h: Added.
2344 * WebCoreSupport/FrameLoaderClientQt.cpp:
2345 (WebCore::FrameLoaderClientQt::objectContentType):
2346 (WebCore::FrameLoaderClientQt::createPlugin):
2348 2008-03-07 Simon Hausmann <hausmann@webkit.org>
2352 * Api/qwebframe.cpp:
2354 2008-03-04 Sam Weinig <sam@webkit.org>
2356 Reviewed by Mark Rowe.
2358 - Remove all unnecessary includes of JSDOMWindowBase.h, we prefer including
2361 * Api/qwebframe.cpp:
2362 (QWebFrame::addToJSWindowObject):
2364 2008-03-04 Mark Rowe <mrowe@apple.com>
2366 Another go at fixing the Qt build.
2368 * Api/qwebframe.cpp:
2369 (QWebFrame::addToJSWindowObject):
2371 2008-02-24 Darin Adler <darin@apple.com>
2375 - remove separate client calls for "standard" and "reload' history
2377 * WebCoreSupport/FrameLoaderClientQt.cpp:
2378 (WebCore::FrameLoaderClientQt::updateGlobalHistory):
2379 * WebCoreSupport/FrameLoaderClientQt.h:
2381 2008-02-24 Darin Adler <darin@apple.com>
2383 - another try at fixing the build
2385 * Api/qwebframe.cpp:
2386 (QWebFrame::load): Replace new FormData with FormData::create.
2388 2008-02-22 Sam Weinig <sam@webkit.org>
2392 * Api/qwebhistoryinterface.cpp:
2394 2008-02-22 Sam Weinig <sam@webkit.org>
2396 Rubber-stamped by Adam Roben.
2398 Rid the project of the Devil known as DeprecatedString!
2400 * Api/qwebhistory.cpp:
2401 * Api/qwebhistoryinterface.cpp:
2403 2008-02-18 Darin Adler <darin@apple.com>
2407 * Api/qwebnetworkinterface.cpp:
2408 (QWebNetworkRequestPrivate::init): Removed use of DeprecatedString.
2410 2008-01-24 David Boddie <dboddie@trolltech.com>
2414 Documentation tidying.
2417 * Api/qwebframe.cpp:
2418 * Api/qwebhistoryinterface.cpp:
2421 2008-01-24 Jarek Kobus <jkobus@trolltech.com>
2425 Text for translations were used wrongly as comments
2428 * WebCoreSupport/FrameLoaderClientQt.cpp:
2430 (WebCore::FrameLoaderClientQt::cannotShowURLError):
2431 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
2432 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
2433 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
2434 (WebCore::FrameLoaderClientQt::shouldFallBack):
2436 2008-01-24 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2440 * We have a KURL->QUrl conversion on KURL itself, make use of it.
2441 * This conversion is supposed to be loss-free
2444 * Api/qwebframe.cpp:
2446 2008-01-23 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2448 * Rubber stamped by Simon
2450 * Fix leaking of sub frames (WebCore::Frame). We keep one reference too many.
2451 This was found while working on the page-cache, other ports are not affected.
2453 * WebCoreSupport/FrameLoaderClientQt.cpp:
2454 (WebCore::FrameLoaderClientQt::createFrame):
2456 2008-01-23 Rohan McGovern <rohan.mcgovern@trolltech.com>
2458 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2460 Fix Qtopia compilation with QT_NO_TOOLTIP
2463 * WebCoreSupport/ChromeClientQt.cpp:
2464 (WebCore::ChromeClientQt::print):
2466 2008-01-23 Geir Vattekar <gvatteka@trolltech.com>
2470 Doc: Replaced \code with snippets in the docs
2475 2008-01-23 Benjamin Meyer <bmeyer@trolltech.com>
2479 Tweak key presses even to match commonly expected behavior
2480 - space key == page down
2481 - page down moved down not a page, but slightly less then a page so you don't loose your spot when reading.
2482 - Use font height rather then a hard coded "10" for left, right, up, down
2483 - Ctrl-Up moves to the top of the page
2484 - Ctrl-Down move to the bottom of the page
2485 - Backspace == GoBack
2486 - Shift-Backspace == GoForward
2490 (dropActionToDragOp):
2491 (dragOpToDropAction):
2492 (QWebPagePrivate::keyPressEvent):
2494 2008-01-23 Simon Hausmann <hausmann@webkit.org>
2498 Implemented FrameLoaderClient::startDownload() and FrameLoaderClient::download().
2500 Added two signals to QWebPage to handle downloading of links and handling of
2501 unsupported content.
2505 (QWebPage::triggerAction):
2507 * WebCoreSupport/FrameLoaderClientQt.cpp:
2508 (WebCore::FrameLoaderClientQt::download):
2509 (WebCore::FrameLoaderClientQt::assignIdentifierToInitialRequest):
2510 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2511 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2512 (WebCore::FrameLoaderClientQt::willUseArchive):
2514 2008-01-22 Lars Knoll <lars@trolltech.com>
2518 setup a family for cursive and fantasy fonts as well.
2521 * Api/qwebsettings.cpp:
2522 (QWebSettings::QWebSettings):
2524 2008-01-22 Benjamin Meyer <bmeyer@trolltech.com>
2528 Implement ChromeClientQt::setToolTip
2529 Implement ChromeClientQt::mouseDidMoveOverElement
2534 * WebCoreSupport/ChromeClientQt.cpp:
2535 (WebCore::ChromeClientQt::ChromeClientQt):
2536 (WebCore::ChromeClientQt::focus):
2537 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
2538 (WebCore::ChromeClientQt::setToolTip):
2539 (WebCore::ChromeClientQt::print):
2540 * WebCoreSupport/ChromeClientQt.h:
2542 2008-01-21 Darin Adler <darin@apple.com>
2544 Reviewed by John Sullivan.
2546 - updated for changes to ChromeClient database functions
2548 * WebCoreSupport/ChromeClientQt.cpp:
2549 (WebCore::ChromeClientQt::exceededDatabaseQuota):
2550 * WebCoreSupport/ChromeClientQt.h:
2552 2008-01-21 Benjamin Meyer <bmeyer@trolltech.com>
2556 Change QWebHistoryInterface::addHistoryEntry() from const to non-const
2559 * Api/qwebhistoryinterface.h:
2561 2008-01-21 Adam Treat <treat@kde.org>
2565 * Don't leak the d-pointer in QWebSettings.
2568 * Api/qwebsettings.cpp:
2569 (QWebSettings::~QWebSettings):
2571 2008-01-21 Simon Hausmann <hausmann@webkit.org>
2575 Update the WebKit version number from WebKit/win/WebKit.vcproj/VERSION.
2577 This has the fortunate side-effect that gmail sends us sensible HTML/JS again :)
2582 2008-01-21 Simon Hausmann <hausmann@webkit.org>
2586 Fix focus chain handling and cycling through focusable objects (links) using tab/backtab.
2588 * Fix GraphicsContext::drawFocusRing to also draw single focus rects.
2589 * Implemented QWebPage::focusNextPrevChild by sending fake tab/shift-tab events
2590 and make the return value depend on whether we successfully determined a focusable
2592 * Changed QWebView::focusNextPrevChild() to call the base QWidget implementation correctly
2593 if we could not handle the focus chain ourselves.
2594 * Changed the focus policy of QWebView to correctly use WheelFocus instead of ClickFocus.
2595 * Made ChromeClientQt::canTakeFocus() and takeFocus() dummy method since they are only
2596 used to control the situation of stepping out of the focus chain inside the page.
2597 * Made inclusion of links in the focus chain configurable through QWebSettings::LinksIncludedInFocusChain.
2598 The layout tests expect this to be disabled but for the user it seems sensible to have it
2599 on by default, hence the default in qwebsettings.cpp
2603 (QWebPage::focusNextPrevChild):
2604 * Api/qwebsettings.cpp:
2605 (QWebSettings::QWebSettings):
2606 * Api/qwebsettings.h:
2608 (QWebView::QWebView):
2609 (QWebView::focusNextPrevChild):
2610 * WebCoreSupport/ChromeClientQt.cpp:
2611 (WebCore::ChromeClientQt::canTakeFocus):
2612 (WebCore::ChromeClientQt::takeFocus):
2614 2008-01-18 Simon Hausmann <hausmann@webkit.org>
2618 Coding style fixes and added a comment about the include order.
2622 2008-01-18 Marius Storm-Olsen <marius@trolltech.com>
2624 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2626 Add use of precompiled header, when building inside Qt.
2628 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.
2631 * WebKit_pch.h: Added.
2633 2008-01-18 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2637 * Ask the WebCore::IconDatabase only if our URL is not empty. Otherwise
2638 we will see a crash in a HashSet.
2639 * It is crashing there because the StringImpl of an empty String is 0.
2640 * We avoid this crash by checking for isEmpty() in WebKit as there is no
2641 use to ask the iconDatabase for an empty string. We will fallback to the
2645 * Api/qwebframe.cpp:
2648 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2652 Minor documentation fixes
2655 * Api/qwebframe.cpp:
2658 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2662 Fix form elements not focusing correctly after the qt widget lost its focus.
2664 When receiving a focus out event notify the focus controller. Otherwise its
2665 m_focusedFrame variable remains unchanged and setFocusedFrame on a focusIn
2666 event shortcuts and doesn't call setActive(true).
2671 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2675 Lots of updates to the documentation.
2678 * Api/qwebframe.cpp:
2679 * Api/qwebhistory.cpp:
2681 (QWebPagePrivate::dropEvent):
2682 (QWebPage::history):
2684 (QWebPage::triggerAction):
2685 (QWebPage::viewportSize):
2686 (QWebPage::navigationRequested):
2689 (QWebPageContext::targetFrame):
2693 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2697 Added a urlChanged signals to QWebFrame and QWebView.
2700 * Api/qwebframe.cpp:
2703 (QWebView::setPage):
2705 * WebCoreSupport/FrameLoaderClientQt.cpp:
2707 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2711 Fixed docs and sanity checks in QWebSettings::setIconDatabaseEnabled
2714 * Api/qwebsettings.cpp:
2715 (QWebSettings::setIconDatabaseEnabled):
2717 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2721 Added QWebView::createWindow() which is forwarded from QWebPage::createWindow() for convenience.
2725 (QWebPage::createWindow):
2727 (QWebView::createWindow):
2730 2008-01-17 Lars Knoll <lars@trolltech.com>
2734 add a 0 pointer check.
2736 Fixes a crash in the demo web browser.
2738 * WebCoreSupport/FrameLoaderClientQt.cpp:
2739 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForMIMEType):
2741 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2745 Fix QWebFrame::title().
2747 For the titleChanged() signal we use the documentloader's title. For the property we have to use the same
2748 instead of Document::title() as the latter is not trimmed and not suited for a window caption.
2751 * Api/qwebframe.cpp:
2754 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2756 Reviewed by Maciej, Lars, Holger.
2758 http://bugs.webkit.org/show_bug.cgi?id=16589
2760 Add a document parameter to WebCore::cookies, setCookies and cookiesEnabled.
2762 * Api/qwebnetworkinterface.cpp:
2763 (QWebNetworkRequestPrivate::init):
2764 (QWebNetworkManager::started):
2766 2008-01-17 Warwick Allison <warwick@trolltech.com>
2768 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2770 Follow QWidget::keyPressEvent advice and call parents.
2772 Without this, Back does not work in Qtopia, for example.
2776 (QWebView::keyPressEvent):
2777 (QWebView::keyReleaseEvent):
2779 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2783 Fix compilation against Qt 4.3 after the recent KURL <> QUrl conversion fixes.
2785 * Api/qwebnetworkinterface.cpp:
2786 (QWebNetworkManager::started):
2788 2008-01-17 Simon Hausmann <shausman@trolltech.com>
2792 Fix compilation against Qt 4.4 without files that are specific for the Qt 4.3 build.
2795 * Api/qwebframe.cpp:
2797 * WebCoreSupport/FrameLoaderClientQt.cpp:
2799 2008-01-17 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
2801 Reviewed by Simon Hausmann <hausmann@webkit.org>.
2803 Fixes compilation with QT_NO_DRAGANDDROP
2809 (QWebView::dragEnterEvent):
2810 (QWebView::dragLeaveEvent):
2811 (QWebView::dragMoveEvent):
2812 (QWebView::dropEvent):
2814 2008-01-17 Simon Hausmann <hausmann@webkit.org>
2818 Fix compilation, removed obsolete privateBrowsingEnabled() method.
2820 * WebCoreSupport/FrameLoaderClientQt.cpp:
2822 2008-01-16 Lars Knoll <lars@trolltech.com>
2824 Reviewed by Simon Hausmann <simon.hausmann@trolltech.com>.
2826 Removed a whole bunch of notImplemented() warnings.
2828 I don't want to hide the real warnings in lots of things that
2829 I am by now pretty certain we won't need.
2832 * WebCoreSupport/FrameLoaderClientQt.cpp:
2833 (WebCore::FrameLoaderClientQt::dispatchWillSubmitForm):
2834 (WebCore::FrameLoaderClientQt::canShowMIMEType):
2836 2008-01-16 Simon Hausmann <hausmann@webkit.org>
2840 Fix crash when bringing up the context menu on maps.google.com.
2842 If the website provides its own context menu then we don't have a ContextMenu pointer.
2846 (QWebPagePrivate::contextMenuEvent):
2848 2008-01-16 Simon Hausmann <hausmann@webkit.org>
2852 Don't crash when receiving all sorts of events on a default constructed QWebView without a page.
2855 (QWebView::mouseMoveEvent):
2856 (QWebView::mousePressEvent):
2857 (QWebView::mouseDoubleClickEvent):
2858 (QWebView::mouseReleaseEvent):
2859 (QWebView::contextMenuEvent):
2860 (QWebView::wheelEvent):
2861 (QWebView::keyPressEvent):
2862 (QWebView::keyReleaseEvent):
2863 (QWebView::focusInEvent):
2864 (QWebView::focusOutEvent):
2865 (QWebView::dragEnterEvent):
2866 (QWebView::dragLeaveEvent):
2867 (QWebView::dragMoveEvent):
2868 (QWebView::dropEvent):
2869 (QWebView::focusNextPrevChild):
2871 2008-01-16 Simon Hausmann <hausmann@webkit.org>
2875 Made the url property read-write.
2879 2008-01-16 Simon Hausmann <hausmann@webkit.org>
2883 Don't crash when showing a default initialized QWebView that has no page/frame yet.
2886 (QWebView::paintEvent):
2888 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
2892 Change hoveringOverLink implementation to have less issues.
2894 * Currently we only compare a pointer. In the worst case we
2895 could delete the Element we have pointed to and a new one
2896 gets the same address. But even if that doesn't happen the
2897 WebCore::Element is mutable and JavaScript could change the
2898 URL, Title or Content. So we have to compare all these three
2900 * This does not seem to be a performance impact.
2904 (QWebPagePrivate::mouseMoveEvent):
2907 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
2911 * Move the hoverElement from QWebFrame to QWebPage. As it is
2915 * Api/qwebframe_p.h:
2916 (QWebFramePrivate::QWebFramePrivate):
2918 (QWebPagePrivate::mouseMoveEvent):
2921 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
2925 EventHandler changes/fixes in QWebPage:
2926 -mouse{Press,Move,Release}Event:
2927 Send the event always to the mainFrame of the QWebPage.
2929 -contextMenuEvent, key{Press,Release}Event:
2930 Send the event to the focused frame.
2932 This is following the Windows port and fixes a issue with the
2933 Web Inspector where we were sending the events to a wrong frame.
2935 It is guaranteed that the mainFrame will always have an eventHandler
2936 and frameView set. There is no need to check for this in QWebPage.
2939 * Api/qwebframe.cpp:
2940 (QWebFramePrivate::init):
2941 * Api/qwebframe_p.h:
2942 (QWebFramePrivate::QWebFramePrivate):
2944 (QWebPagePrivate::updateEditorActions):
2945 (QWebPagePrivate::mouseMoveEvent):
2946 (QWebPagePrivate::mousePressEvent):
2947 (QWebPagePrivate::mouseDoubleClickEvent):
2948 (QWebPagePrivate::mouseReleaseEvent):
2949 (QWebPagePrivate::contextMenuEvent):
2950 (QWebPagePrivate::wheelEvent):
2951 (QWebPagePrivate::keyPressEvent):
2952 (QWebPagePrivate::keyReleaseEvent):
2953 (QWebPagePrivate::focusInEvent):
2956 2008-01-16 Holger Freyther <holger.freyther@trolltech.com>
2960 * Add core and kit functions to QWebFramePrivate to convert from
2961 QWebFrame to WebCore::Frame and vice versa.
2964 * Api/qwebframe.cpp:
2965 (QWebFramePrivate::core):
2966 (QWebFramePrivate::kit):
2968 * Api/qwebframe_p.h:
2970 2008-01-16 Lars Knoll <lars@trolltech.com>
2974 add conversion methods from and to QUrl to KURL.
2976 Use them in the places I found at the moment. Fixes a bug
2977 where form data was encoded twice.
2978 Also fix QWebSettings to take a QUrl for the user style sheet
2982 * Api/qwebframe.cpp:
2985 (QWebPage::createPlugin):
2987 (QWebPage::triggerAction):
2988 * Api/qwebsettings.cpp:
2989 (QWebSettingsPrivate::apply):
2990 * Api/qwebsettings.h:
2991 * WebCoreSupport/ChromeClientQt.cpp:
2992 (WebCore::ChromeClientQt::createWindow):
2993 (WebCore::ChromeClientQt::show):
2995 2008-01-16 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
2999 * Make the InspectorClientView inherit from QWebView instead of QWidget. This
3000 way paintEvent, mouse{Press,Release}Event and other events get forwarded to
3001 the QWebPage/WebInspector automatically.
3004 * WebCoreSupport/InspectorClientQt.cpp:
3005 (WebCore::InspectorClientWebPage::createWindow):
3006 (WebCore::InspectorClientView::InspectorClientView):
3008 2008-01-10 Maciej Stachowiak <mjs@apple.com>
3012 - remove SecurityOriginData and fold its functionality into SecurityOrigin
3014 * WebCoreSupport/ChromeClientQt.cpp:
3015 (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
3016 (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
3017 * WebCoreSupport/ChromeClientQt.h:
3019 2008-01-10 Lars Knoll <lars@trolltech.com>
3023 document QWebHistory
3026 * Api/qwebhistory.cpp:
3027 (QWebHistoryItem::QWebHistoryItem):
3028 (QWebHistoryItem::operator=):
3029 (QWebHistoryItem::~QWebHistoryItem):
3030 (QWebHistoryItem::originalUrl):
3031 (QWebHistoryItem::currentUrl):
3032 (QWebHistoryItem::title):
3033 (QWebHistoryItem::icon):
3034 (QWebHistory::canGoBack):
3035 (QWebHistory::canGoForward):
3036 (QWebHistory::goBack):
3037 (QWebHistory::goForward):
3038 (QWebHistory::goToItem):
3039 * Api/qwebhistory.h:
3041 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3045 Make the reset() functions not do anything on the default QWebSettings object.
3048 * Api/qwebsettings.cpp:
3049 (QWebSettings::resetFontSize):
3050 (QWebSettings::resetFontFamily):
3051 (QWebSettings::clearAttribute):
3053 2008-01-10 Lars Knoll <lars@trolltech.com>
3057 rename QWebPageHistory to QWebHistory.
3060 * Api/qwebhistory.cpp: Added.
3061 (QWebHistoryItem::QWebHistoryItem):
3062 (QWebHistoryItem::operator=):
3063 (QWebHistoryItem::~QWebHistoryItem):
3064 (QWebHistoryItem::originalUrl):
3065 (QWebHistoryItem::currentUrl):
3066 (QWebHistoryItem::title):
3067 (QWebHistoryItem::lastVisited):
3068 (QWebHistoryItem::icon):
3069 (QWebHistory::QWebHistory):
3070 (QWebHistory::~QWebHistory):
3071 (QWebHistory::clear):
3072 (QWebHistory::items):
3073 (QWebHistory::backItems):
3074 (QWebHistory::forwardItems):
3075 (QWebHistory::canGoBack):
3076 (QWebHistory::canGoForward):
3077 (QWebHistory::goBack):
3078 (QWebHistory::goForward):
3079 (QWebHistory::goToItem):
3080 (QWebHistory::backItem):
3081 (QWebHistory::currentItem):
3082 (QWebHistory::forwardItem):
3083 (QWebHistory::itemAtIndex):
3084 * Api/qwebhistory.h: Added.
3085 * Api/qwebhistory_p.h: Added.
3086 (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
3087 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
3088 (QWebHistoryPrivate::QWebHistoryPrivate):
3089 (QWebHistoryPrivate::~QWebHistoryPrivate):
3091 (QWebPagePrivate::QWebPagePrivate):
3094 * Api/qwebpagehistory.cpp: Removed.
3095 * Api/qwebpagehistory.h: Removed.
3096 * Api/qwebpagehistory_p.h: Removed.
3100 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3104 Documentation for QWebSettings
3107 * Api/qwebsettings.cpp:
3108 (QWebSettings::~QWebSettings):
3109 (QWebSettings::setFontSize):
3110 (QWebSettings::resetFontSize):
3111 (QWebSettings::setUserStyleSheetLocation):
3112 (QWebSettings::userStyleSheetLocation):
3113 (QWebSettings::iconDatabaseEnabled):
3114 (QWebSettings::webGraphic):
3115 (QWebSettings::setFontFamily):
3116 (QWebSettings::resetFontFamily):
3117 (QWebSettings::setAttribute):
3119 2008-01-10 Lars Knoll <lars@trolltech.com>
3123 Document QWebHistoryInterface.
3126 * Api/qwebhistoryinterface.cpp:
3127 (QWebHistoryInterface::defaultInterface):
3128 (QWebHistoryInterface::~QWebHistoryInterface):
3130 2008-01-10 Lars Knoll <lars@trolltech.com>
3134 Documentation for QWebFrame.
3137 * Api/qwebframe.cpp:
3141 (QWebFrame::setHtml):
3142 (QWebFrame::parentFrame):
3143 (QWebFrame::render):
3145 (QWebFrame::geometry):
3147 * Api/qwebframe_p.h:
3149 2008-01-10 Lars Knoll <lars@trolltech.com>
3153 fix the drawing errors that where introduced due to refactoring.
3155 Correctly clip to the rectangle we want to draw in ScrollView::paint().
3158 * Api/qwebframe.cpp:
3159 (QWebFrame::render):
3162 (QWebView::paintEvent):
3163 * WebCoreSupport/ChromeClientQt.cpp:
3164 (WebCore::ChromeClientQt::scrollBackingStore):
3166 2008-01-10 Simon Hausmann <hausmann@webkit.org>
3170 Added a whole bunch of docs for QWebPage and fixed some minor doc glitches in QWebView.
3174 (QWebPagePrivate::dropEvent):
3175 (QWebPage::QWebPage):
3176 (QWebPage::~QWebPage):
3177 (QWebPage::mainFrame):
3178 (QWebPage::currentFrame):
3179 (QWebPage::history):
3180 (QWebPage::setView):
3182 (QWebPage::javaScriptConsoleMessage):
3183 (QWebPage::javaScriptAlert):
3184 (QWebPage::javaScriptConfirm):
3185 (QWebPage::javaScriptPrompt):
3186 (QWebPage::createWindow):
3187 (QWebPage::createModalDialog):
3189 (QWebPage::triggerAction):
3190 (QWebPage::viewportSize):
3191 (QWebPage::navigationRequested):
3192 (QWebPage::selectedText):
3193 (QWebPage::isModified):
3194 (QWebPage::focusNextPrevChild):
3195 (QWebPage::settings):
3196 (QWebPage::networkProxy):
3197 (QWebPage::setNetworkAccessManager):
3198 (QWebPage::networkAccessManager):
3199 (QWebPagePrivate::_q_onLoadProgressChanged):
3202 2008-01-07 Holger Freyther <zecke@selfish.org>
3204 Reviewed by Alp Toker.
3206 * Qt and Gtk must know if a ContextMenuItem is checkable. Add a new ContextMenuItemType for checkable
3208 * Use this information in the Gtk platform to create a GtkCheckMenuItem when needed.
3209 * Update the ContextMenuController to accept CheckableActionTypes as well.
3210 * Change ContextMenu.cpp to use the CheckableActionType. The information if a item is checkable
3211 was extracted from ContextMenu::checkOrEnableIfNeeded.
3212 * Update the Qt and Windows port.
3215 (QWebPagePrivate::createContextMenu):
3217 2008-01-07 Simon Hausmann <hausmann@webkit.org>
3219 Build fix for the Windows build. MSVC wants to see the full
3220 declaration of arguments even when just passing them through.
3224 2008-01-07 Simon Hausmann <hausmann@webkit.org>
3228 Added the missing parameters to make it possible to do POST operations from the public API.
3230 This is ugly though as it also requires including qnetworkaccessmanager.h. It would be nicer if the
3231 two extra arguments were in QNetworkRequest :-/
3234 * Api/qwebframe.cpp:
3241 2008-01-07 Simon Hausmann <hausmann@webkit.org>
3245 Ported of the network backend of the Qt platform to Qt 4.4's new networking API.
3248 * Api/qwebframe.cpp:
3251 * Api/qwebnetworkinterface.cpp:
3252 * Api/qwebnetworkinterface.h:
3253 * Api/qwebnetworkinterface_p.h:
3254 * Api/qwebobjectplugin.cpp:
3255 * Api/qwebobjectplugin.h:
3256 * Api/qwebobjectplugin_p.h:
3257 * Api/qwebobjectpluginconnector.cpp:
3258 * Api/qwebobjectpluginconnector.h:
3260 (QWebPagePrivate::QWebPagePrivate):
3261 (QWebPagePrivate::~QWebPagePrivate):
3262 (QWebPagePrivate::navigationRequested):
3263 (QWebPage::setNetworkInterface):
3264 (QWebPage::networkInterface):
3265 (QWebPage::setNetworkAccessManager):
3266 (QWebPage::networkAccessManager):
3271 * WebCoreSupport/FrameLoaderClientQt.cpp:
3272 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3273 (WebCore::FrameLoaderClientQt::objectContentType):
3274 (WebCore::FrameLoaderClientQt::createPlugin):
3276 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3280 * Move the QWebPagePrivate methods up to the other private ones
3283 (dropActionToDragOp):
3284 (dragOpToDropAction):
3285 (QWebPagePrivate::mouseMoveEvent):
3286 (QWebPagePrivate::mousePressEvent):
3287 (QWebPagePrivate::mouseDoubleClickEvent):
3288 (QWebPagePrivate::mouseReleaseEvent):
3289 (QWebPagePrivate::contextMenuEvent):
3290 (QWebPagePrivate::wheelEvent):
3291 (QWebPagePrivate::keyPressEvent):
3292 (QWebPagePrivate::keyReleaseEvent):
3293 (QWebPagePrivate::focusInEvent):
3294 (QWebPagePrivate::focusOutEvent):
3295 (QWebPagePrivate::dragEnterEvent):
3296 (QWebPagePrivate::dragLeaveEvent):
3297 (QWebPagePrivate::dragMoveEvent):
3298 (QWebPagePrivate::dropEvent):
3299 (QWebPage::focusNextPrevChild):
3301 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3305 * Add reimplemented comments for the methods reimplemented in QWebView and QWebPage.
3309 (dragOpToDropAction):
3311 (QWebView::mouseMoveEvent):
3312 (QWebView::mousePressEvent):
3313 (QWebView::mouseDoubleClickEvent):
3314 (QWebView::mouseReleaseEvent):
3315 (QWebView::contextMenuEvent):
3316 (QWebView::keyPressEvent):
3317 (QWebView::keyReleaseEvent):
3318 (QWebView::focusInEvent):
3319 (QWebView::focusOutEvent):
3320 (QWebView::dragEnterEvent):
3321 (QWebView::dragLeaveEvent):
3322 (QWebView::dragMoveEvent):
3323 (QWebView::dropEvent):
3325 2008-01-07 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3329 * This layout is not needed anymore as Widget::invalidateRect will not
3334 (QWebView::paintEvent):
3336 2008-01-04 Lars Knoll <lars@trolltech.com>
3340 Remove most dependencies of Widget/ScrollView onto native QWidgets.
3342 This also brings the code closer in line with the Windows code. Seems
3343 to work nicely on first try :)
3346 * WebCoreSupport/ChromeClientQt.cpp:
3347 (WebCore::ChromeClientQt::updateBackingStore):
3348 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3349 (WebCore::ChromeClientQt::setToolTip):
3350 * WebCoreSupport/FrameLoaderClientQt.cpp:
3351 (WebCore::FrameLoaderClientQt::createPlugin):
3353 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3357 * Remove the todo from QWebPage and move the code to QWebView.
3361 (QWebPagePrivate::wheelEvent):
3362 (QWebPagePrivate::focusInEvent):
3364 (QWebView::wheelEvent):
3365 (QWebView::focusInEvent):
3367 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3371 * Move the various event methods to QWebPagePrivate. This is similar to
3372 QTextControl as well.
3377 (QWebPagePrivate::mouseMoveEvent):
3378 (QWebPagePrivate::mousePressEvent):
3379 (QWebPagePrivate::mouseDoubleClickEvent):
3380 (QWebPagePrivate::mouseReleaseEvent):
3381 (QWebPagePrivate::contextMenuEvent):
3382 (QWebPagePrivate::wheelEvent):
3383 (QWebPagePrivate::keyPressEvent):
3384 (QWebPagePrivate::keyReleaseEvent):
3385 (QWebPagePrivate::focusInEvent):
3386 (QWebPagePrivate::focusOutEvent):
3387 (QWebPage::focusNextPrevChild):
3388 (QWebPagePrivate::dragEnterEvent):
3389 (QWebPagePrivate::dragLeaveEvent):
3390 (QWebPagePrivate::dragMoveEvent):
3391 (QWebPagePrivate::dropEvent):
3395 2008-01-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3399 * Forward the event from QWebView to QWebPage through QObject::event. This
3400 is similar to the way QTextControl is working.
3404 (dragOpToDropAction):
3408 (QWebView::mouseMoveEvent):
3409 (QWebView::mousePressEvent):
3410 (QWebView::mouseDoubleClickEvent):
3411 (QWebView::mouseReleaseEvent):
3412 (QWebView::contextMenuEvent):
3413 (QWebView::wheelEvent):
3414 (QWebView::keyPressEvent):
3415 (QWebView::keyReleaseEvent):
3416 (QWebView::focusInEvent):
3417 (QWebView::focusOutEvent):
3418 (QWebView::dragEnterEvent):
3419 (QWebView::dragLeaveEvent):
3420 (QWebView::dragMoveEvent):
3421 (QWebView::dropEvent):
3424 2008-01-04 Lars Knoll <lars@trolltech.com>
3428 make QWebPage a QObject and get things to compile.
3430 Nothing works currently though.
3433 * Api/qwebobjectpluginconnector.cpp:
3435 (QWebPagePrivate::QWebPagePrivate):
3436 (QWebPagePrivate::createMainFrame):
3437 (QWebPage::QWebPage):
3438 (QWebPage::setView):
3440 (QWebPage::javaScriptAlert):
3441 (QWebPage::javaScriptPrompt):
3442 (dragOpToDropAction):
3443 (QWebPage::mousePressEvent):
3444 (QWebPage::mouseDoubleClickEvent):
3445 (QWebPage::mouseReleaseEvent):
3446 (QWebPage::wheelEvent):
3447 (QWebPage::keyPressEvent):
3448 (QWebPage::focusInEvent):
3452 (QWebView::QWebView):
3453 (QWebView::setPage):
3454 (QWebView::resizeEvent):
3455 (QWebView::paintEvent):
3457 * WebCoreSupport/ChromeClientQt.cpp:
3458 (WebCore::ChromeClientQt::windowRect):
3459 (WebCore::ChromeClientQt::pageRect):
3460 (WebCore::ChromeClientQt::focus):
3461 (WebCore::ChromeClientQt::unfocus):
3462 (WebCore::ChromeClientQt::canTakeFocus):
3463 (WebCore::ChromeClientQt::takeFocus):
3464 (WebCore::ChromeClientQt::canRunModal):
3465 (WebCore::ChromeClientQt::mouseDidMoveOverElement):
3466 * WebCoreSupport/DragClientQt.cpp:
3467 (WebCore::DragClientQt::startDrag):
3468 * WebCoreSupport/FrameLoaderClientQt.cpp:
3469 (WebCore::FrameLoaderClientQt::createPlugin):
3470 * WebCoreSupport/InspectorClientQt.cpp:
3471 (WebCore::InspectorClientWebPage::createWindow):
3472 (WebCore::InspectorClientView::InspectorClientView):
3473 (WebCore::InspectorClientView::page):
3474 (WebCore::InspectorClientView::hideEvent):
3475 (WebCore::InspectorClientView::closeEvent):
3476 (WebCore::InspectorClientQt::createPage):
3477 (WebCore::InspectorClientQt::closeWindow):
3479 2008-01-04 Simon Hausmann <hausmann@webkit.org>
3483 Added some preliminary class documentation for QWebView, fixed a missing const() and some missing Q_PROPERTYs
3487 (QWebView::setHtml):
3488 (QWebView::setContent):
3489 (QWebView::history):
3490 (QWebView::settings):
3492 (QWebView::triggerAction):
3494 (QWebView::backward):
3495 (QWebView::forward):
3499 2008-01-04 Lars Knoll <lars@trolltech.com>
3503 add a viewportSize to QWebPage.
3505 This is required to eventually make it a QObject only.
3509 (QWebPage::triggerAction):
3510 (QWebPage::viewportSize):
3511 (QWebPage::setViewportSize):
3514 2008-01-04 Lars Knoll <lars@trolltech.com>
3518 take a QString as identifier in QWebFrame::addToJSWindowObject.
3520 * Api/qwebframe.cpp:
3521 (QWebFrame::addToJSWindowObject):
3524 2008-01-04 Simon Hausmann <hausmann@webkit.org>
3528 Call the frame arguments for the javascript callbacks "originatingFrame"
3533 2008-01-04 Simon Hausmann <hausmann@webkit.org>
3537 Moved the QWebPage::addToHistory signal into QWebHistoryInterface
3540 * Api/qwebhistoryinterface.h:
3542 * WebCoreSupport/FrameLoaderClientQt.cpp:
3543 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForStandardLoad):
3545 2008-01-04 Lars Knoll <lars@trolltech.com>
3549 moved title(), url(), icon() and initialLayoutComplete() from QWebPage to QWebFrame
3551 * Api/qwebframe.cpp:
3554 (QWebFrame::setVerticalScrollBarPolicy):
3557 (QWebPage::javaScriptAlert):
3558 (QWebPage::javaScriptPrompt):
3559 (QWebPage::networkInterface):
3565 * WebCoreSupport/FrameLoaderClientQt.cpp:
3567 2008-01-03 Simon Hausmann <hausmann@webkit.org>
3571 Moved QWebPage::open to QWebFrame::load and added setHtml.
3574 * Api/qwebframe.cpp:
3576 (QWebFrame::setHtml):
3577 (QWebFrame::setContent):
3583 (QWebView::setHtml):
3585 * WebCoreSupport/ChromeClientQt.cpp:
3586 (WebCore::ChromeClientQt::createWindow):
3587 * WebCoreSupport/InspectorClientQt.cpp:
3588 (WebCore::InspectorClientQt::createPage):
3590 2008-01-03 Simon Hausmann <hausmann@webkit.org>
3594 Added the first revision of QWebView and started moving functionality from QWebPave over to QWebView and QWebFrame.
3600 (QWebPagePrivate::createMainFrame):
3602 * Api/qwebpagehistory.h:
3603 * Api/qwebview.cpp: Added.
3604 (QWebView::QWebView):
3605 (QWebView::~QWebView):
3607 (QWebView::setPage):
3609 (QWebView::setHtml):
3610 (QWebView::history):
3611 (QWebView::settings):
3615 (QWebView::selectedText):
3617 (QWebView::triggerAction):
3618 (QWebView::isModified):
3619 (QWebView::textInteractionFlags):
3620 (QWebView::setTextInteractionFlags):
3621 (QWebView::sizeHint):
3623 (QWebView::backward):
3624 (QWebView::forward):
3626 * Api/qwebview.h: Added.
3627 * QtLauncher/main.cpp:
3628 (MainWindow::MainWindow):
3629 (MainWindow::webPage):
3630 (MainWindow::changeLocation):
3631 * WebCoreSupport/FrameLoaderClientQt.cpp:
3632 (WebCore::FrameLoaderClientQt::setFrame):
3633 * WebCoreSupport/FrameLoaderClientQt.h:
3635 2007-12-14 Darin Adler <darin@apple.com>
3640 (QWebPage::triggerAction): Removed some use of Editor member functions we plan
3641 to eventually eliminate. Switch from Editor::execCommand to Editor::command.
3642 * WebCoreSupport/EditorClientQt.cpp:
3643 (WebCore::EditorClientQt::handleKeyboardEvent): Ditto. Also updated name from
3644 MoveUpByPageAndModifyCaret to MovePageUp and from MoveDownByPageAndModifyCaret
3647 2007-12-12 Brady Eidson <beidson@apple.com>
3649 Reviewed by Sam Weinig
3651 As part of doing some CachedPage and client cleanup, keep Qt building
3653 * WebCoreSupport/FrameLoaderClientQt.cpp:
3654 (WebCore::FrameLoaderClientQt::savePlatformDataToCachedPage):
3655 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
3656 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
3657 * WebCoreSupport/FrameLoaderClientQt.h:
3659 2007-12-12 Sam Weinig <sam@webkit.org>
3663 * WebCoreSupport/FrameLoaderClientQt.cpp:
3664 (WebCore::FrameLoaderClientQt::userAgent):
3666 2007-12-12 Sam Weinig <sam@webkit.org>
3670 * Api/qwebnetworkinterface.cpp:
3671 (QWebNetworkRequestPrivate::init):
3674 (QWebPageContext::QWebPageContext):
3675 * Api/qwebpagehistory.cpp:
3676 (QWebHistoryItem::originalUrl):
3677 (QWebHistoryItem::currentUrl):
3678 * WebCoreSupport/FrameLoaderClientQt.cpp:
3679 (WebCore::FrameLoaderClientQt::cannotShowURLError):
3680 (WebCore::FrameLoaderClientQt::interruptForPolicyChangeError):
3681 (WebCore::FrameLoaderClientQt::cannotShowMIMETypeError):
3682 (WebCore::FrameLoaderClientQt::fileDoesNotExistError):
3683 (WebCore::FrameLoaderClientQt::dispatchWillSendRequest):
3684 (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):
3685 (WebCore::FrameLoaderClientQt::createPlugin):
3687 2007-12-07 Alexey Proskuryakov <ap@webkit.org>
3691 <rdar://problem/5535636>
3692 Have to press 4 times instead of 2 times to get the expected result of ^^ with german keyboard.
3694 http://bugs.webkit.org/show_bug.cgi?id=13916
3695 JavaScript detects Tab as a character input on a textfield validation
3697 * WebCoreSupport/EditorClientQt.cpp:
3698 (WebCore::EditorClientQt::handleKeyboardEvent):
3699 (WebCore::EditorClientQt::handleInputMethodKeydown):
3700 * WebCoreSupport/EditorClientQt.h:
3701 Updated for cross-platform changes as much as it was possible without a Qt build environment.
3703 2007-12-07 Darin Adler <darin@apple.com>
3707 * Api/qwebhistoryinterface.cpp:
3708 (WebCore::historyContains): There's a WebCore function here in WebKit! Needs to
3709 be updated, since WebCore changed, but this should not be here.
3711 2007-12-04 Darin Adler <darin@apple.com>
3713 Reviewed by Kevin Decker.
3715 * WebCoreSupport/FrameLoaderClientQt.cpp: Removed obsolete privateBrowsingEnabled.
3716 * WebCoreSupport/FrameLoaderClientQt.h: Ditto.
3718 2007-12-04 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3722 * Implement the InspectorClient for the Qt port
3723 * It does not support highlighting of nodes yet
3724 * Use QRC to open the internal page. The important thing is the
3725 '/' in the URL to make WebCore::Document::completeURL behave the
3727 * To make the InspectorClient work we will have to mark qrc as secure.
3730 (QWebPagePrivate::QWebPagePrivate):
3732 * WebCoreSupport/InspectorClientQt.cpp:
3733 (WebCore::InspectorClientWebPage::hideEvent):
3734 (WebCore::InspectorClientQt::InspectorClientQt):
3735 (WebCore::InspectorClientQt::inspectorDestroyed):
3736 (WebCore::InspectorClientQt::createPage):
3737 (WebCore::InspectorClientQt::localizedStringsURL):
3738 (WebCore::InspectorClientQt::showWindow):
3739 (WebCore::InspectorClientQt::closeWindow):
3740 (WebCore::InspectorClientQt::attachWindow):
3741 (WebCore::InspectorClientQt::detachWindow):
3742 * WebCoreSupport/InspectorClientQt.h:
3744 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3746 Rubber stamped by Mark.
3748 Always include config.h at the beginning of the file.
3750 * Api/qwebsettings.cpp:
3752 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3756 * Avoid crashes by making sure everything is layouted before
3757 we start painting. This avoids a crash in Widget::invalidateRect
3758 because QPainter::begin would fail
3759 * The QWebFrame::layout() methods and calls are left untouched because
3760 this would be an API decision.
3763 * Api/qwebframe.cpp:
3764 (QWebFrame::layout):
3766 (QWebPage::paintEvent):
3768 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3772 * SubClass QWebPage to handle hide and close events.
3773 * Forward these events to the InspectorController
3774 * The other options would have been using an eventFilter
3775 on the webpage and making InspectorClient a QObject or
3776 creating a QObject Observer.
3777 * Provide a simple QWebPage* createWindow implementation. This is needed
3778 to make FrameLoaderClientQt::dispatchCreatePage stop crashing in the case
3779 of the inspector client.
3782 * WebCoreSupport/InspectorClientQt.cpp:
3783 (WebCore::InspectorClientWebPage::InspectorClientWebPage):
3784 (WebCore::InspectorClientWebPage::createWindow):
3785 (WebCore::InspectorClientWebPage::hideEvent):
3786 (WebCore::InspectorClientWebPage::closeEvent):
3787 (WebCore::InspectorClientQt::createPage):
3789 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3793 * Allow adding the Inspect ContextMenuItem to our Menu
3794 * Open the Inspector when Inspect was activated. This requires
3795 that we keep the innerNonSharedNode from the HitTest around. This
3796 forces us to include <wtf/RefPtr.h> in the private header. It is
3797 the first non Qt header but should be okay.
3801 (webActionForContextMenuAction):
3802 (QWebPage::triggerAction):
3804 (QWebPageContext::QWebPageContext):
3808 2007-12-03 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3812 * Add the Developer Extras to the WebAttribute and propagate it
3813 to WebCore::Settings. This will enable the Inspect Element menu item
3814 * CodingStyle fixes in QWebSettings
3815 * Enable the Developer Extras in the QtLauncher
3818 * Api/qwebsettings.cpp:
3819 (QWebSettingsPrivate::apply):
3820 * Api/qwebsettings.h:
3821 * QtLauncher/main.cpp:
3824 2007-12-03 Geoffrey Garen <ggaren@apple.com>
3826 Removed unnecessary and possibly incorrect #include from my last
3829 * Api/qwebframe.cpp:
3831 2007-12-03 Geoffrey Garen <ggaren@apple.com>
3833 Qt build fix: Get globalExec() from the right place.
3835 2007-11-30 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
3839 * Self destruct the clients like the ohter ports do
3842 * WebCoreSupport/ChromeClientQt.cpp:
3843 (WebCore::ChromeClientQt::runBeforeUnloadConfirmPanel):
3844 * WebCoreSupport/ContextMenuClientQt.cpp:
3845 * WebCoreSupport/DragClientQt.cpp:
3846 * WebCoreSupport/EditorClientQt.cpp:
3847 * WebCoreSupport/InspectorClientQt.cpp:
3849 2007-11-29 Brady Eidson <beidson@apple.com>
3851 Keep it building with new client method
3853 * WebCoreSupport/ChromeClientQt.cpp:
3854 (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
3855 (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
3856 * WebCoreSupport/ChromeClientQt.h:
3858 2007-11-22 Simon Hausmann <hausmann@webkit.org>
3860 Reviewed by Adam Treat.
3862 Fix compilation (don't define notImplemented twice)
3864 * Api/qwebnetworkinterface.cpp:
3866 2007-11-22 Simon Hausmann <hausmann@kde.org>
3870 Use Q_SIGNALS/Q_SLOTS in the public API
3875 2007-11-22 Simon Hausmann <hausmann@kde.org>
3879 Fixed the signature of the QWebPage constructor to follow Qt guidelines.
3883 2007-11-22 Simon Hausmann <hausmann@kde.org>
3887 Use <QtModule/headerfile.h> instead of <Classname> in public HEADER files, to not require the include paths for the other modules to be present
3891 * Api/qwebhistoryinterface.h:
3892 * Api/qwebnetworkinterface.h:
3893 * Api/qwebobjectplugin.h:
3894 * Api/qwebobjectplugin_p.h:
3895 * Api/qwebobjectpluginconnector.h:
3897 * Api/qwebpagehistory.h:
3898 * Api/qwebsettings.h:
3900 2007-11-22 Simon Hausmann <hausmann@kde.org>
3904 Removed inline copy of QExplicitlySharedDataPointer. This is not needed anymore since we require Qt >= 4.3.0.
3906 * Api/qwebpagehistory.h:
3908 2007-11-22 George Staikos <staikos@kde.org>
3910 Reviewed by Simon Hausmann <hausmann@kde.org>.
3915 * Api/qwebobjectplugin.cpp:
3916 * Api/qwebobjectplugin.h:
3917 * Api/qwebobjectpluginconnector.cpp:
3918 * Api/qwebobjectpluginconnector.h:
3920 2007-11-22 Simon Hausmann <hausmann@kde.org>
3922 Reviewed by George Staikos <staikos@kde.org>.
3924 Fix shadowing of "page" variable that is passed as argument as well as a member variable.
3926 This also fixes compilation with gcc 4.3.
3929 * Api/qwebframe.cpp:
3930 (QWebFramePrivate::init):
3932 2007-11-21 Adam Treat <treat@kde.org>
3936 * Connect up the signal for all subframes too.
3938 * Api/qwebframe.cpp:
3939 (QWebFramePrivate::init):
3941 (QWebPagePrivate::createMainFrame):
3943 2007-11-20 Simon Hausmann <hausmann@kde.org>
3945 Reviewed by Adam Treat <treat@kde.org>.
3947 Remove static linkage of QtWebKit against the ICO image format plugin.
3949 Instead build the support for the ICO image format as a proper standalone qt image format plugin and install it.
3952 * Plugins/Plugins.pro:
3954 2007-11-20 Simon Hausmann <hausmann@kde.org>
3956 Reviewed by George Staikos <staikos@kde.org>.
3958 Added a default argument to textContent for the hoveringOverLink signal to keep existing two-argument connections working
3963 2007-11-20 George Staikos <staikos@kde.org>
3965 Reviewed by Simon Hausmann <hausmann@kde.org>.
3967 Add an argument to pass the link text in the hovering signal
3972 (QWebPagePrivate::createMainFrame):
3973 (QWebPage::mouseMoveEvent):
3976 2007-11-20 Adam Treat <treat@kde.org>
3978 Reviewed by Simon and George.
3980 * Be quiet and allow suppression of NotImplemented calls at runtime.
3982 * WebCoreSupport/FrameLoaderClientQt.cpp:
3983 (WebCore::FrameLoaderClientQt::representationExistsForURLScheme):
3985 2007-11-19 Adam Treat <treat@kde.org>
3989 * Don't segfault when event pos is outside of the widget.
3992 (QWebPage::mouseMoveEvent):
3993 (QWebPage::mousePressEvent):
3994 (QWebPage::mouseDoubleClickEvent):
3995 (QWebPage::mouseReleaseEvent):
3996 (QWebPage::contextMenuEvent):
3998 2007-11-17 Timothy Hatcher <timothy@apple.com>
4000 Reviewed by Mark Rowe.
4002 Bug 13470: i18n: The Web Inspector is not localizable
4003 http://bugs.webkit.org/show_bug.cgi?id=13470
4005 * WebCoreSupport/InspectorClientQt.cpp:
4006 (WebCore::InspectorClientQt::localizedStringsURL): Empty stub.
4007 * WebCoreSupport/InspectorClientQt.h: Added localizedStringsURL.
4009 2007-11-13 Geoffrey Garen <ggaren@apple.com>
4011 Build fix: changed Shared to RefCounted.
4013 * WebCoreSupport/ChromeClientQt.h:
4014 * WebCoreSupport/ContextMenuClientQt.cpp:
4015 * WebCoreSupport/ContextMenuClientQt.h:
4016 * WebCoreSupport/EditorClientQt.h:
4017 * WebCoreSupport/FrameLoaderClientQt.h:
4019 2007-11-10 Simon Hausmann <hausmann@kde.org>
4021 Reviewed by Nikolas.
4023 When populating the context menu with sub-menus don't add sub-menus if they're empty.
4027 (QWebPagePrivate::createContextMenu):
4029 2007-11-10 Simon Hausmann <hausmann@kde.org>
4031 Reviewed by Nikolas.
4033 Added support for the Bold/Italic/Underline toggle actions.
4037 (webActionForContextMenuAction):
4038 (QWebPage::triggerAction):
4042 2007-11-10 Simon Hausmann <hausmann@kde.org>
4044 Reviewed by Nikolas.
4046 Before adding an action to the context menu call checkOrEnableIfNeeded for each action
4047 to update the enable/checked state correctly.
4051 (QWebPagePrivate::createContextMenu):
4052 (QWebPage::contextMenuEvent):
4055 2007-11-10 Simon Hausmann <hausmann@kde.org>
4057 Reviewed by Nikolas.
4059 Mark the text direction actions as checkable actions.
4065 2007-11-09 Simon Hausmann <hausmann@kde.org>
4069 Implemented the webcore actions for changing the text direction.
4073 (webActionForContextMenuAction):
4074 (QWebPage::triggerAction):
4078 2007-11-09 Simon Hausmann <hausmann@kde.org>
4082 Fix ContextMenu allocation in the Qt port.
4084 Store all items and submenus value based in ContextMenu and ContextMenuItem.
4085 That fixes the crashes when the context menu was populated with sub-menus because
4086 of the use of temporary ContextMenu objects like this:
4088 ContextMenu subMenu(...);
4089 subMenu.appendItem(...);
4090 subMenu.appendItem(...);
4092 subMenuItem.setSubMenu(&subMenu); // temporary pointer, need to _copy_ contents
4096 (QWebPage::contextMenuEvent):
4099 2007-11-09 Simon Hausmann <hausmann@kde.org>
4103 Renamed QWebPage::NumWebActions to QWebPage::WebActionCount (for consistency) and fixed its value.
4109 2007-11-08 Kevin McCullough <kmccullough@apple.com>
4113 - windowObjectCleared() is no longer const. It needs to setup the
4114 script debugger and cannot be const to do so.
4116 * WebCoreSupport/FrameLoaderClientQt.cpp:
4117 (WebCore::FrameLoaderClientQt::windowObjectCleared):
4118 * WebCoreSupport/FrameLoaderClientQt.h:
4120 2007-11-08 Simon Hausmann <hausmann@kde.org>
4122 Reviewed by nobody (well, Holger knows about it), build fix for Qt 4.3.
4124 The buildbots use Qt 4.4 which has the function in question, but Qt
4125 4.3 doesn't have it. Use removeAll() as replacement instead, it
4126 shouldn't make a difference in performance.
4128 * Api/qwebsettings.cpp:
4129 (QWebSettings::~QWebSettings):
4131 2007-11-08 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
4133 Reviewed by Lars Knoll <lars@trolltech.com>.
4135 Cleanup checking for the request method.
4137 * Check the request method only in QWebNetworkManager::add.
4138 * Currently HEAD, GET, POST are allowed and for everything else
4139 QWebNetworkManager::add returns false.
4140 * Returning false is compatible with ResourceHandle::start and it
4141 can be used in ResourceHandle::loadResourceSynchronously to generate
4145 * Api/qwebnetworkinterface.cpp:
4146 (QWebNetworkManager::add):
4148 2007-11-08 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
4150 Reviewed by Lars Knoll <lars@trolltech.com>.
4152 Fix bug in the implementation of synchronous network jobs.
4154 * George (pmax) reviewed the networking patches and found the following bug (thanks for reviewing)
4155 - if (jobMode == AsynchronousJob) {
4156 + if (jobMode == SynchronousJob) {
4157 add job to synchronous list/hash
4159 * Just applying the above change will lead to crashes because we can finish
4160 jobs before we started them.
4162 * Avoid these issues by saving all work (starting a job, sending data and
4163 finishing it) inside one list. JobWork will contain any
4164 of the above three work types and doWork will just work on this list
4165 (m_pendingWork). As foreach takes a copy of the list calling started, data
4166 and finished will not add new work and we gurantee that if we have JobStarted
4167 it will be in the list before JobData and JobFinished.
4169 * Observation: We might just kill the code to handle sync jobs.
4172 * Api/qwebnetworkinterface.cpp:
4173 (QWebNetworkManager::add):
4174 (QWebNetworkManager::queueStart):
4175 (QWebNetworkManager::queueData):
4176 (QWebNetworkManager::queueFinished):
4177 (QWebNetworkManager::doWork):
4178 * Api/qwebnetworkinterface_p.h:
4179 (QWebNetworkManager::JobWork::):
4180 (QWebNetworkManager::JobWork::JobWork):
4182 2007-11-07 Simon Hausmann <hausmann@kde.org>
4184 Fix the Qt build by setting up WindowFeatures before calling
4185 createWindow on the Chrome. This is similar to openNewWindow in
4186 page/ContextMenuController.cpp
4191 2007-11-07 Simon Hausmann <hausmann@kde.org>
4195 Make the setting of letting Javascript access the clipboard configurable through QWebSettings, turn it off by default and turn it on in DumpRenderTree.
4198 (QWebPagePrivate::QWebPagePrivate):
4199 * Api/qwebsettings.cpp:
4200 (QWebSettingsPrivate::apply):
4201 * Api/qwebsettings.h:
4203 2007-11-07 Simon Hausmann <hausmann@kde.org>
4207 Changed QWebPageHistory::goToItem to take a value instead of a pointer.
4209 * Api/qwebpagehistory.cpp:
4210 * Api/qwebpagehistory.h:
4212 2007-11-07 Simon Hausmann <hausmann@kde.org>
4216 Removed unimplemented QWebHistoryItem::children() function
4218 * Api/qwebpagehistory.h:
4220 2007-11-07 Simon Hausmann <hausmann@kde.org>
4224 Changed the getter functions in QWebSettings to transparently resolve against the default settings.
4226 * Api/qwebsettings.cpp:
4227 (QWebSettings::fontSize):
4228 (QWebSettings::fontFamily):
4229 (QWebSettings::testAttribute):
4231 2007-11-07 Simon Hausmann <hausmann@kde.org>
4235 Added explicit functions for resetting the font sizes and font families.
4237 * Api/qwebsettings.cpp:
4238 (QWebSettings::resetFontSize):
4239 (QWebSettings::resetFontFamily):
4240 * Api/qwebsettings.h:
4242 2007-11-07 Simon Hausmann <hausmann@kde.org>
4246 Combined the font sizes accessors/setters under one setter/getter with an enum.
4248 * Api/qwebsettings.cpp:
4249 (QWebSettingsPrivate::QWebSettingsPrivate):
4250 (QWebSettingsPrivate::apply):
4251 (QWebSettings::QWebSettings):
4252 (QWebSettings::setFontSize):
4253 * Api/qwebsettings.h:
4255 2007-11-07 Simon Hausmann <hausmann@kde.org>
4259 Renamed QWebPage::userAgentStringForUrl(url) to QWebPage::userAgentFor(url);
4263 * WebCoreSupport/FrameLoaderClientQt.cpp:
4264 (WebCore::FrameLoaderClientQt::userAgent):
4266 2007-11-07 Simon Hausmann <hausmann@kde.org>
4270 Renamed QWebPage::webActionTriggered to QWebPage::triggerAction
4273 (QWebPagePrivate::_q_webActionTriggered):
4274 (QWebPage::keyPressEvent):
4277 2007-11-07 Simon Hausmann <hausmann@kde.org>
4281 Changed the virtual QWebPage::setWindowGeometry to be a geometryChangeRequest signal instead.
4285 * WebCoreSupport/ChromeClientQt.cpp:
4286 (WebCore::ChromeClientQt::setWindowRect):
4288 2007-11-07 Simon Hausmann <hausmann@kde.org>
4292 Renamed QWebPage::webAction() to QWebPage::action()
4295 (QWebPagePrivate::createContextMenu):
4297 * QtLauncher/main.cpp:
4298 (MainWindow::MainWindow):
4300 2007-11-07 Simon Hausmann <hausmann@kde.org>
4304 Removed a bunch of slots/functions that are now available through the new actions API.
4309 2007-11-07 Simon Hausmann <hausmann@kde.org>
4313 Added some more comments to the API after another round of API review with Lars.
4317 2007-11-07 Simon Hausmann <hausmann@kde.org>
4321 Moved QWebFrame::selectedText() to QWebPage::selectedText().
4323 The currently selected text is a property of the page as a whole.
4325 * Api/qwebframe.cpp:
4328 (QWebPage::selectedText):
4331 2007-11-07 Simon Hausmann <hausmann@kde.org>
4335 Implemented support for settings propagation.
4337 If an individual setting is not set in a page's QWebSettings then it is inherited from the default settings.
4339 * Api/qwebsettings.cpp:
4340 (QWebSettingsPrivate::QWebSettingsPrivate):
4341 (QWebSettingsPrivate::apply):
4342 (QWebSettings::QWebSettings):
4343 (QWebSettings::~QWebSettings):
4344 (QWebSettings::setFontFamily):
4345 * Api/qwebsettings.h:
4347 2007-11-07 Simon Hausmann <hausmann@kde.org>
4351 Reworked the QWebSettings API.
4352 QWebPage now returns a pointer to its mutable QWebSettings object and the settings of newly created QWebPageObjects are initialized from QWebSettings::defaultSettings().
4355 (QWebPagePrivate::QWebPagePrivate):
4356 (QWebPagePrivate::~QWebPagePrivate):
4357 (QWebPage::QWebPage):
4360 * Api/qwebsettings.cpp:
4361 (QWebSettingsPrivate::QWebSettingsPrivate):
4362 (QWebSettingsPrivate::apply):
4363 (QWebSettings::defaultSettings):
4364 (QWebSettings::QWebSettings):
4365 (QWebSettings::setMinimumFontSize):
4366 (QWebSettings::setMinimumLogicalFontSize):
4367 (QWebSettings::setDefaultFontSize):
4368 (QWebSettings::setDefaultFixedFontSize):
4369 (QWebSettings::setUserStyleSheetLocation):
4370 (QWebSettings::setFontFamily):
4371 (QWebSettings::fontFamily):
4372 (QWebSettings::setAttribute):
4373 * Api/qwebsettings.h:
4374 * QtLauncher/main.cpp:
4377 2007-11-07 Simon Hausmann <hausmann@kde.org>
4381 Made the QWebSettings::webGraphic functions static. The implementation was using QWebSettings::global() anyway.
4383 * Api/qwebsettings.cpp:
4384 (QWebSettings::setWebGraphic):
4385 * Api/qwebsettings.h:
4387 2007-11-07 Simon Hausmann <hausmann@kde.org>
4391 Moved the WebCore::Image specific function loadResourcePixmap from qwebsettings.cpp to ImageQt.cpp and made it static.
4393 * Api/qwebsettings.cpp:
4395 2007-11-07 Simon Hausmann <hausmann@kde.org>
4399 Changed the icondatabase accessor to be a static function because it doesn't change the QWebSettings object.
4401 * Api/qwebsettings.cpp:
4402 * Api/qwebsettings.h:
4404 2007-11-07 Simon Hausmann <hausmann@kde.org>
4408 Changed the webAction() accessor to not be a slot but just a public function.
4412 2007-11-07 Simon Hausmann <hausmann@kde.org>
4416 Implemented createWindow() in QtLauncher.
4418 * QtLauncher/main.cpp:
4420 (MainWindow::MainWindow):
4421 (WebPage::createWindow):
4423 2007-11-07 Simon Hausmann <hausmann@kde.org>
4427 Implemented opening links in new windows
4432 (QWebPage::webActionTriggered):
4434 2007-11-07 Simon Hausmann <hausmann@kde.org>
4438 Added and implemented the "OpenLink" action.
4441 (webActionForContextMenuAction):
4442 (QWebPage::webActionTriggered):
4443 (QWebPage::webAction):
4446 2007-11-07 Simon Hausmann <hausmann@kde.org>
4450 Adjust the state of the reload action correctly.
4453 (QWebPagePrivate::updateAction):
4454 (QWebPagePrivate::updateNavigationActions):
4456 2007-11-07 Simon Hausmann <hausmann@kde.org>
4460 Initialize the undo/redo actions from QUndoStack. That automatically takes care of enabling/disabling them as well as the activation/trigger.
4463 (QWebPagePrivate::updateAction):
4464 (QWebPage::webAction):
4465 (QWebPage::undoStack):