1 2009-03-03 Adam Barth <abarth@webkit.org>
3 Reviewed by Alexey Proskuryakov.
5 https://bugs.webkit.org/show_bug.cgi?id=24340
7 Expose AllowUniversalAccessFromFileUrls to Qt clients.
9 * Api/qwebsettings.cpp:
10 (QWebSettingsPrivate::apply):
11 (QWebSettings::QWebSettings):
14 2009-03-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
16 Rubber-stamped by Simon Hausmann.
18 [Qt] Create and update the action for SelectAll.
21 (QWebPagePrivate::updateAction):
22 (QWebPagePrivate::updateEditorActions):
24 * tests/qwebpage/tst_qwebpage.cpp:
25 (tst_QWebPage::textSelection):
27 2009-03-02 Adam Treat <adam.treat@torchmobile.com>
29 Reviewed by Eric Seidel.
31 Add three new drt helper functions that enable all of the tests in
32 LayoutTests/animation/* and LayoutTests/transitions/* to now pass.
35 (qt_drt_pauseAnimation):
36 (qt_drt_pauseTransitionOfProperty):
37 (qt_drt_numberOfActiveAnimations):
39 2009-03-02 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
41 Reviewed by George Staikos.
43 https://bugs.webkit.org/show_bug.cgi?id=21230
44 On X11 match the behavior of Firefox and also copy the url to the
45 clipboard selection when the action Copy Link Location is executed.
48 (QWebPage::triggerAction):
50 2009-02-25 Kavindra Palaraja <kavindra.palaraja@nokia.com>
52 Reviewed by Simon Hausmann.
54 Fix the documentation for the linkHovered signal.
58 2009-02-23 Adam Treat <adam.treat@torchmobile.com>
60 Reviewed by Darin Adler.
62 https://bugs.webkit.org/show_bug.cgi?id=24094
63 Make sure to empty the cache on exit to get rid of superfluous leak messages
64 for CachedResource's in order to keep the leak messages accurate. This
65 is analagous to what the Mac port is doing on application exit when all
66 WebView's have been closed.
69 (QWebPagePrivate::_q_cleanupLeakMessages):
74 2009-02-23 Thiago Macieira <thiago.macieira@nokia.com>
76 Reviewed by Simon Hausmann.
78 Fix the Copyright notices in a few files
82 2009-02-16 Simon Hausmann <simon.hausmann@nokia.com>
84 Reviewed by Tor Arne Vestbø.
86 Avoid loading plugins when they're disabled in the settings.
88 * WebCoreSupport/FrameLoaderClientQt.cpp:
89 (WebCore::FrameLoaderClientQt::canShowMIMEType): Don't call into the
90 PluginDatabase if plugins are disabled in the settings.
92 2009-02-13 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
94 Reviewed by Nikolas Zimmermann.
96 https://bugs.webkit.org/show_bug.cgi?id=23738
97 Expose the url elements target frame string. This is the sister function
98 to the existing linkTargetFrame which returns the QWebFrame*. When the
99 linkTargetFrame is 0 it is useful to know what the target was to be.
102 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
103 (QWebHitTestResult::linkTarget):
106 * tests/qwebframe/tst_qwebframe.cpp:
108 2009-02-13 David Boddie <dboddie@trolltech.com>
110 Reviewed by Simon Hausmann.
112 Removed documentation for internal functions.
114 * Api/qwebsettings.cpp:
116 2009-02-13 Martin Smith <msmith@trolltech.com>
118 Reviewed by Simon Hausmann.
120 Corrected some minor qdoc errors.
122 * Api/qwebsettings.cpp:
124 2009-02-11 Dimitri Dupuis-latour <dupuislatour@apple.com>
126 Stub out InspectorClientQt::hiddenPanels.
128 Reviewed by Timothy Hatcher.
130 * WebCoreSupport/InspectorClientQt.cpp:
131 (WebCore::InspectorClientQt::hiddenPanels):
132 * WebCoreSupport/InspectorClientQt.h:
134 2009-02-10 Karsten Heimrich <kheimric@trolltech.com>
136 Reviewed by Simon Hausmann.
138 Fixes missing navigation/url update while clicking on anchor inside
141 * WebCoreSupport/FrameLoaderClientQt.cpp:
142 (WebCore::FrameLoaderClientQt::dispatchDidChangeLocationWithinPage):
143 update and emit in case we navigate inside a webpage
145 2009-02-10 Adam Treat <adam.treat@torchmobile.com>
147 Fix the Qt build as class Selection is now VisibleSelection.
150 (QWebPage::inputMethodQuery):
152 2009-02-06 Geoffrey Garen <ggaren@apple.com>
156 * WebCoreSupport/FrameLoaderClientQt.cpp:
157 (WebCore::FrameLoaderClientQt::updateGlobalHistoryRedirectLinks):
158 * WebCoreSupport/FrameLoaderClientQt.h:
160 2009-02-06 Kavindra Palaraja <kavindra.palaraja@nokia.com>
162 Reviewed by Simon Hausmann.
164 Doc - made 2 functions internal as they are not part of the API anymore (and this fixes 2 qdoc warnings)
166 * Api/qwebsettings.cpp:
168 2009-02-06 Simon Hausmann <simon.hausmann@nokia.com>
170 Reviewed by Tor Arne Vestbø.
172 Added an overload of QWebFrame::addToJavaScriptWindowObject that takes a QScriptEngine::ValueOwnership parameter.
175 (QWebFrame::addToJavaScriptWindowObject): New overload.
177 * tests/qwebframe/tst_qwebframe.cpp: Added unit tests for ownership
180 2009-02-06 Aaron Boodman <aa@chromium.org>
182 Reviewed by Holger Freyther.
184 * WebCoreSupport/FrameLoaderClientQt.cpp:
185 (WebCore::FrameLoaderClientQt::documentElementAvailable):)
186 Fix compile error in Qt build introduced by the below change (r40694).
188 2009-02-05 Aaron Boodman <aa@chromium.org>
190 Reviewed by Dave Hyatt.
192 https://bugs.webkit.org/show_bug.cgi?id=23708
193 Adds documentElementAvailable() callback to FrameLoaderClient.
195 * WebCoreSupport/FrameLoaderClientQt.cpp:
196 (WebCore::FrameLoaderClient::documentElementAvailable):
197 Stub out documentElementAvailable().
198 * WebCoreSupport/FrameLoaderClientQt.h:
201 2009-02-04 David Boddie <dboddie@trolltech.com>
203 Reviewed by Simon Hausmann.
205 Doc: Documented the return value of the evaluateJavaScript() function.
209 2009-02-03 Simon Hausmann <simon.hausmann@nokia.com>
211 Reviewed by Tor Arne Vestbø.
213 Added a unit test to verify the succesful conversion from QByteArray to
214 JSByteArray and back to QByteArray.
216 * tests/qwebframe/tst_qwebframe.cpp:
218 2009-02-02 Geoffrey Garen <ggaren@apple.com>
223 (QWebFrame::QWebFrame):
225 (QWebFrame::setHtml):
226 (QWebFrame::setContent):
228 2009-02-02 Geoffrey Garen <ggaren@apple.com>
232 * WebCoreSupport/FrameLoaderClientQt.cpp:
233 (WebCore::FrameLoaderClientQt::createFrame):
235 2009-02-02 Geoffrey Garen <ggaren@apple.com>
237 Reviewed by Sam Weinig.
239 Track redirects in global history.
243 * WebCoreSupport/FrameLoaderClientQt.cpp:
244 (WebCore::FrameLoaderClientQt::updateGlobalHistoryForRedirectWithoutHistoryItem):
245 (WebCore::FrameLoaderClientQt::createFrame):
246 * WebCoreSupport/FrameLoaderClientQt.h:
248 2009-02-02 Anders Carlsson <andersca@apple.com>
250 Reviewed by Dan Bernstein.
252 Update for changes to WebCore.
254 * WebCoreSupport/FrameLoaderClientQt.cpp:
255 (WebCore::FrameLoaderClientQt::createPlugin):
256 (WebCore::FrameLoaderClientQt::createJavaAppletWidget):
257 * WebCoreSupport/FrameLoaderClientQt.h:
259 2009-02-02 Adam Treat <adam.treat@torchmobile.com>
261 Reviewed by Nikolas Zimmermann.
263 https://bugs.webkit.org/show_bug.cgi?id=23587
264 Refactor HitTestRequest to eliminate all the ugly boolean arguments and
265 use an enum bitflag instead. Cleanup all the code that constructs the
266 various HitTestRequests to make the code more readable.
269 (QWebFrame::hitTestContent):
271 2009-02-02 Adam Treat <adam.treat@torchmobile.com>
273 Fix the Qt build to call forceLayout on the view instead.
276 (QWebPage::setFixedLayoutSize):
277 (QWebPage::setUseFixedLayout):
279 2009-02-02 Holger Hans Peter Freyther <zecke@selfish.org>
281 Reviewed by Darin Adler.
283 Move Frame::forceLayout, Frame::adjustPageHeight and Frame::forceLayoutWithPageWidthRange to FrameView
285 https://bugs.webkit.org/show_bug.cgi?id=23428
287 FrameView::forceLayout could be killed but the comment might
288 contain a value over the the plain FrameView::layout...
290 Adjust the WebCore/WebKit consumers of these methods.
293 (QWebPage::setViewportSize):
294 * WebCoreSupport/FrameLoaderClientQt.cpp:
295 (WebCore::FrameLoaderClientQt::forceLayout):
297 2009-01-30 Geoffrey Garen <ggaren@apple.com>
301 * WebCoreSupport/FrameLoaderClientQt.cpp:
302 (WebCore::FrameLoaderClientQt::createFrame):
304 2009-01-30 Holger Hans Peter Freyther <zecke@selfish.org>
306 Reviewed by Simon Hausmann.
308 https://bugs.webkit.org/show_bug.cgi?id=22056
310 Kill FrameLoaderClient.cpp, move the code over to Frame::createView
312 FrameLoaderClient is supposed to be an interface, move the
313 to be shared code to Frame which is a controller and is
314 allowed to create a FrameView.
316 * WebCoreSupport/FrameLoaderClientQt.cpp:
317 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
319 2009-01-30 Geoffrey Garen <ggaren@apple.com>
321 Reviewed by Sam Weinig.
323 Split "lockHistory" into "lockHistory" and "lockBackForwardList" in
324 preparation for setting them differently during a redirect.
327 (QWebPage::triggerAction):
329 2009-01-30 Brady Eidson <beidson@apple.com>
331 Reviewed by Sam Weinig
333 Remove FrameLoaderClient code that is now handled by FrameLoader itself
335 * WebCoreSupport/FrameLoaderClientQt.cpp:
336 (WebCore::FrameLoaderClientQt::frameLoadCompleted):
338 2009-01-30 Simon Hausmann <simon.hausmann@nokia.com>
340 Reviewed by Tor Arne Vestbø.
342 Hide the Offline Web Application Cache path API from the public API
345 * Api/qwebsettings.cpp:
346 (qt_websettings_setOfflineWebApplicationCachePath):
347 (qt_websettings_offlineWebApplicationCachePath):
348 * Api/qwebsettings.h:
350 2009-01-28 Adam Treat <adam.treat@torchmobile.com>
352 Reviewed by Nikolas Zimmermann and George Staikos.
354 https://bugs.webkit.org/show_bug.cgi?id=23557
355 Do not clip the QWebFrame::hitTestContent method to the visible viewport
356 and add a regression test to make sure it works.
359 (QWebFrame::hitTestContent):
360 * tests/qwebframe/tst_qwebframe.cpp:
362 2009-01-28 Ariya Hidayat <ariya.hidayat@trolltech.com>
364 Rubber-stamped by Simon Hausmann.
366 Provide default implementations of JavaScript dialog boxes like in
367 most web browsers, i.e. indicate that is from JavaScript and show the
371 (QWebPage::javaScriptAlert):
372 (QWebPage::javaScriptConfirm):
373 (QWebPage::javaScriptPrompt):
375 2009-01-27 Ariya Hidayat <ariya.hidayat@trolltech.com>
377 Reviewed by Simon Hausmann.
379 http://www.qtsoftware.com/developer/task-tracker/index_html?id=238391&method=entry
381 [Qt] If QPainter fails to start on a QPrinter instance, do not
387 2009-01-27 Brady Eidson <beidson@apple.com>
389 Reviewed by Dan Bernstein
391 Rework FrameLoaderClient to work on a CachedFrame basis instead of CachedPage
393 * WebCoreSupport/FrameLoaderClientQt.cpp:
394 (WebCore::FrameLoaderClientQt::savePlatformDataToCachedFrame):
395 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedFrame):
396 * WebCoreSupport/FrameLoaderClientQt.h:
398 2009-01-26 Simon Fraser <simon.fraser@apple.com>
400 Reviewed by David Hyatt
402 Back out r40285, because it was checked in with no bug number, no
403 testcase, is rendering change that did not get thorough review,
404 and broke the Mac build.
407 (QWebFrame::hitTestContent):
409 2009-01-26 Adam Treat <adam.treat@torchmobile.com>
411 Reviewed by Nikolas Zimmermann.
413 Do not clip the QWebFrame::hitTestContent method to the visible viewport.
416 (QWebFrame::hitTestContent):
418 2009-01-26 David Boddie <dboddie@trolltech.com>
420 Reviewed by Simon Hausmann.
422 Doc: qdoc fix for a link to a property and added a basic description of the offline caching and storage features from HTML 5.
425 * Api/qwebsettings.cpp:
427 2009-01-25 Urs Wolfer <uwolfer@kde.org>
429 Reviewed by Simon Hausmann.
431 Add QWebPage::SelectAll to WebAction enum to select all content.
433 https://bugs.webkit.org/show_bug.cgi?id=22946
436 (QWebPagePrivate::editorActionForKeyEvent):
439 2009-01-25 David Boddie <dboddie@trolltech.com>
441 Reviewed by Simon Hausmann.
443 Doc: Fixed the terminology used.
447 2009-01-25 Thiago Macieira <thiago.macieira@nokia.com>
449 Reviewed by Simon Hausmann.
451 Rename links from trolltech.com to qtsoftware.com
453 * Api/qwebpluginfactory.cpp:
455 2009-01-25 Tor Arne Vestbø <tavestbo@trolltech.com>
457 Reviewed by Simon Hausmann.
459 Make QWebPage auto-test more robust by cleaning up generated files
461 Sometimes the auto-test may segfault, leaving behind files because the
462 call to cleanupTestCase() never happens, so we also clean up the files
463 at initTestCase() just to make sure we're running in a clean environment.
465 * tests/qwebpage/tst_qwebpage.cpp:
466 (tst_QWebPage::cleanupFiles):
467 (tst_QWebPage::initTestCase):
468 (tst_QWebPage::cleanupTestCase):
470 2008-12-20 Urs Wolfer <uwolfer@kde.org>
472 Reviewed by Simon Hausmann.
474 Fix: compile qwebhistory.h with pendantic comiler flag.
476 https://bugs.webkit.org/show_bug.cgi?id=22947
480 2009-01-24 Adam Treat <adam.treat@torchmobile.com>
482 Oops, fix the Qt build.
487 2009-01-24 Adam Treat <adam.treat@torchmobile.com>
489 Reviewed by Nikolas Zimmermann.
491 Add QWebFrame::renderContents() method which allows arbitary rendering
492 of any content region within the QWebFrame. It also does not draw any
496 (QWebFrame::renderContents):
499 2009-01-23 Ariya Hidayat <ariya.hidayat@trolltech.com>
501 Reviewed by Simon Hausmann.
503 Make the test more robust by taking into account the platform-specific
504 cursor flashing time.
506 * tests/qwebframe/tst_qwebframe.cpp:
508 2009-01-20 Friedemann Kleint <Friedemann.Kleint@nokia.com>
510 Reviewed by Simon Hausmann.
512 Fix spelling error in QWebPage
517 2009-01-19 Simon Hausmann <simon.hausmann@nokia.com>
519 Reviewed by Tor Arne Vestbø.
521 Fix calling of onkeypress event handlers on input elements when pressing enter
522 and other text insertion commands in the Qt port.
524 Similar to the win and mac ports don't execute text inserting editor
525 commands on RawKeyDown but continue processing the event first in
526 WebCore, i.e. also get a keypress event sent. If unhandled it will
527 come back to EditorClientQt::handleKeyboardEvent later and we execute
530 This also fixes search by pressing enter on www.trafikanten.no.
533 (QWebPagePrivate::editorCommandForWebActions): Make function
534 accessible from other files.
535 (QWebPage::triggerAction): Adjust to new function visibility.
536 * Api/qwebpage_p.h: Ditto.
537 * WebCoreSupport/EditorClientQt.cpp:
538 (WebCore::EditorClientQt::handleKeyboardEvent): Don't execute
539 text inserting commands on RawKeyPressDown.
541 2009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com>
543 Rubber-stamped by Simon Hausmann.
545 [Qt] Increase popup focus delay time to a sensible 500 ms.
547 * tests/qwebframe/tst_qwebframe.cpp:
549 2009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com>
551 Reviewed by Adam Roben.
553 [Qt] Prevent crash if plugin data is NULL.
555 * WebCoreSupport/FrameLoaderClientQt.cpp: NULL check.
556 (WebCore::FrameLoaderClientQt::objectContentType):
558 2009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com>
560 Rubber-stamped by Simon Hausmann.
562 [Qt] Per-line cursor movement tests depend on platform-specific font
563 metrics. Remove them to avoid test failures on different platforms.
565 * tests/qwebpage/tst_qwebpage.cpp:
566 (tst_QWebPage::cursorMovements):
568 2009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com>
570 Rubber-stamped by Simon Hausmann.
572 http://www.qtsoftware.com/developer/task-tracker/index_html?id=219344&method=entry
574 [Qt] API documentation for QWebPage::WebAction enum.
578 2009-01-16 Ariya Hidayat <ariya.hidayat@trolltech.com>
580 Another attempt at fixing the Qt build.
583 (QWebFrame::addToJavaScriptWindowObject):
585 2009-01-14 Ariya Hidayat <ariya.hidayat@trolltech.com>
587 Reviewed by Tor Arne Vestbø.
589 [Qt] Unit tests for text selection and editing actions of QWebPage.
590 The following are tested:
591 - the actions are not NULL
592 - the actions are disabled when contentEditable is false
593 - the actions are enabled when contentEditable is true
595 * tests/qwebpage/tst_qwebpage.cpp:
596 (tst_QWebPage::textSelection):
597 (tst_QWebPage::textEditing):
599 2009-01-14 Simon Hausmann <simon.hausmann@nokia.com>
601 Reviewed by Tor Arne Vestbø.
603 Fix failing assertion when pressing an extra mouse button on a
606 Mice with more than three buttons - for example with a dedicated
607 "back" button - can generate Qt::XButton1 or Button2.
608 WebCore::MouseButton contains only Left, Middle and Right, so in
609 Qt's PlatformMouseEvent we map to NoButton, resulting in a mouse
610 press or release even with no button set. That triggers an assertion
611 in EventTargetNode::dispatchMouseEvent requiring that either a button
612 is set or it is just a mouse move event, which is correct.
614 In QWebPage decide not to dispatch such mouse events where we cannot
615 map the mouse button to a WebCore::MouseButton.
618 (QWebPagePrivate::mousePressEvent):
619 (QWebPagePrivate::mouseDoubleClickEvent):
620 (QWebPagePrivate::mouseTripleClickEvent):
621 (QWebPagePrivate::mouseReleaseEvent):
623 2009-01-14 Ariya Hidayat <ariya.hidayat@trolltech.com>
625 Reviewed by Simon Hausmann.
627 http://www.qtsoftware.com/developer/task-tracker/index_html?id=241144&method=entry
629 [Qt] Create actions for text selection and editing for QWebPage.
630 Also properly disable and enable them when contentEditable is toggled.
633 (QWebPagePrivate::updateAction):
634 (QWebPagePrivate::updateEditorActions):
637 2009-01-14 Ariya Hidayat <ariya.hidayat@trolltech.com>
639 Reviewed by Simon Hausmann.
641 [Qt] Unit tests for cursor movements. The following are tested:
642 - the actions are not NULL
643 - the actions are disabled when contentEditable is false
644 - the actions are enabled when contentEditable is true
645 - the cursor moves properly when the actions are triggered
647 * tests/qwebpage/tst_qwebpage.cpp:
648 (CursorTrackedPage::CursorTrackedPage):
649 (CursorTrackedPage::selectedText):
650 (CursorTrackedPage::selectionStartOffset):
651 (CursorTrackedPage::selectionEndOffset):
652 (CursorTrackedPage::isSelectionCollapsed):
653 (tst_QWebPage::cursorMovements):
655 2009-01-08 Yongjun Zhang <yongjun.zhang@nokia.com>
657 Reviewed by Simon Hausmann.
659 https://bugs.webkit.org/show_bug.cgi?id=23187
661 Update webview with the intersected rect.
663 In ChromeClientQt::repaint, view should be updated with the
664 intersected rect, not the whole windowRect;
666 This generally is not a problem for normal viewport setup where
667 viewport size is the same as the qwebview widget size. However, if we
668 set the viewport size smaller than qwebkit widget, we will see
669 unwanted painting outside the viewport.
671 * WebCoreSupport/ChromeClientQt.cpp:
672 (WebCore::ChromeClientQt::repaint):
674 2009-01-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
676 Rubber-stamped by Tor Arne Vestbø.
678 [Qt] Missing piece from my previous commit:
679 Disable and enable the cursor navigation actions when contentEditable
683 (QWebPagePrivate::updateEditorActions):
685 2009-01-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
687 Reviewed by Tor Arne Vestbø.
689 [Qt] Create actions for cursor navigation for QWebPage.
690 Also properly disable and enable them when contentEditable is toggled.
693 (QWebPagePrivate::updateAction):
696 2009-01-13 Simon Hausmann <simon.hausmann@nokia.com>
698 Reviewed by Tor Arne Vestbø.
700 https://bugs.webkit.org/show_bug.cgi?id=23171
702 Based on patch by Yael Aharon <yael.aharon@nokia.com>
704 Make the QWebSettings functions for setting the path for the local
705 storage database private QtWebkit API, including the ability to
706 associated a QWebPage with a named page group.
709 (qt_webpage_setGroupName): Added.
710 (qt_webpage_groupName): Added.
712 (ExtensionOption::handle): Added internal helper function.
713 * Api/qwebsettings.cpp:
714 (qt_websettings_setLocalStorageDatabasePath): Made private API.
715 (qt_websettings_localStorageDatabasePath): Made private API.
716 * Api/qwebsettings.h:
717 * tests/qwebpage/tst_qwebpage.cpp:
718 (tst_QWebPage::database): Small cleanup.
719 (tst_QWebPage::multiplePageGroupsAndLocalStorage): New test for the
720 page group handling, written by Yael.
722 2009-01-12 Tor Arne Vestbø <tavestbo@trolltech.com>
724 Reviewed by Simon Hausmann.
726 [Qt] Ensure that we're always notified of navigation actions for local anchors
728 FrameLoader::checkNavigationPolicy() does not notify us if the request has
729 been checked before (which happens for local anchors), but in the case of
730 our clients not accepting the navigation request we do want to be notified
731 again later on, so we clear the lastCheckedRequest flag.
733 * WebCoreSupport/FrameLoaderClientQt.cpp:
734 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
735 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
737 2009-01-12 Ariya Hidayat <ariya.hidayat@trolltech.com>
739 Rubber-stamped by Tor Arne Vestbø.
741 Build fix: use qobject_cast which does not rely on RTTI. This fixes the
742 unit test when building it with a version of Qt (e.g. Qt/Embedded)
743 configured without RTTI.
745 * tests/qwebframe/tst_qwebframe.cpp:
747 2009-01-12 Simon Hausmann <simon.hausmann@nokia.com>
749 Rubber-stamped by Tor Arne Vestbø.
751 When the QWebView is disabled context menus implemented in JavaScript should not pop up.
753 Just like in QWidget::event() we have to check for the disabled state and
754 ignore context menu events.
758 2009-01-12 Simon Hausmann <simon.hausmann@nokia.com
760 Reviewed by Tor Arne Vestbø.
762 Fix QWebView appearance when showed uninitialized without page.
764 Only set WA_OpaquePaintEvent if we have a page set that will actually
765 paint the entire contents, otherwise the optimization does not apply
766 as we do not have a paintEvent() implementation and Qt has to fill the
767 view with its default background instead.
770 (QWebView::QWebView):
773 2009-01-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
775 Rubber-stamped by Tor Arne Vestbø.
777 Do not create a QVariant from QObject* directly, use the
778 template-specialized function.
780 * tests/qwebframe/tst_qwebframe.cpp:
781 (MyQObject::myOverloadedSlot):
783 2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>
785 Rubber-stamped by Tor Arne Vestbø.
787 Documentation fixes, remove duplicated docs, document missing
788 parameters and return values.
790 * Api/qwebdatabase.cpp:
793 2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>
795 Reviewed by Tor Arne Vestbø.
797 Fix linking against QtWebKit on Windows, by defining the EXPORT macros
798 _exactly_ the same way as in qglobal.h, depending on QT_NODLL,
799 QT_MAKEDLL and QT_SHARED.
801 * Api/qwebkitglobal.h:
803 2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>
805 Reviewed by Tor Arne Vestbø.
807 Remove qwebnetworkinterface.h from WEBKIT_API_HEADERS as it's not
808 public Qt 4.4/4.5 API.
812 2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>
814 Unreviewed Qt build fix, remove qcookiejar.h from the API headers and
815 therefore HEADERS. It's not part of the API and it moc shouldn't be
820 2009-01-09 Simon Hausmann <simon.hausmann@nokia.com>
822 Rubber-stamped by Tor Arne Vestbø.
824 Remove files not present anymore from the WEBKIT_API_HEADERS variable.
828 2009-01-08 Adam Treat <adam.treat@torchmobile.com>
830 Reviewed by Simon Hausmann.
832 Don't set the minimumFontSize and minimumLogicalFontSize as these are
833 just for accessibility and should be left up to the client application.
835 * Api/qwebsettings.cpp:
836 (QWebSettings::QWebSettings):
838 2009-01-08 Kavindra Palaraja <kdpalara@trolltech.com>
840 Reviewed by Simon Hausmann.
842 Small fixes to the API documentation, missing 4.5 tags and
843 undocumented parameters.
845 * Api/qwebhistory.cpp:
847 * Api/qwebsettings.cpp:
849 2009-01-07 Adam Treat <adam.treat@torchmobile.com>
851 Reviewed by George Staikos.
853 Add Qt API to QWebHitTestResult::isScrollBar method
856 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
857 (QWebHitTestResult::isScrollBar):
860 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
862 2009-01-07 Adam Treat <adam.treat@torchmobile.com>
864 Reviewed by George Staikos.
866 Add Qt API for QWebFrame::scrollBarGeometry method
869 (QWebFrame::scrollBarGeometry):
872 2009-01-07 Adam Treat <adam.treat@torchmobile.com>
874 Reviewed by George Staikos.
876 Fix unused variable warnings
878 * tests/qwebpage/tst_qwebpage.cpp:
879 (TestPage::createWindow):
881 2009-01-07 Ariya Hidayat <ariya.hidayat@trolltech.com>
883 Rubber-stamped by Simon Hausmann.
885 Qt build fix after r39670.
888 (QWebFrame::evaluateJavaScript):
890 2009-01-06 Ariya Hidayat <ariya.hidayat@trolltech.com>
892 Reviewed by Holger Freyther.
894 Allow building QtWebKit statically (within Qt).
896 http://trolltech.com/developer/task-tracker/index_html?id=211273&method=entry
898 * Api/qwebkitglobal.h:
900 2009-01-06 Adam Treat <adam.treat@torchmobile.com>
902 Reviewed by Simon Hausmann.
904 Update the documentation to reflect when these API changes will land in
910 2009-01-05 Adam Treat <adam.treat@torchmobile.com>
912 Reviewed by George Staikos.
914 Add Qt API for QWebFrame::contentsSizeChanged signal
918 * WebCoreSupport/ChromeClientQt.cpp:
919 (WebCore::ChromeClientQt::contentsSizeChanged):
920 * WebCoreSupport/ChromeClientQt.h:
922 2009-01-05 Adam Treat <adam.treat@torchmobile.com>
924 Reviewed by George Staikos.
926 Fixes QWebFrame::setScrollBarPolicy(..) to actually work. Also happens
927 to fix 192 layout tests that were previously failing for Qt.
930 (QWebFrame::setScrollBarPolicy):
931 * WebCoreSupport/FrameLoaderClientQt.cpp:
932 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
934 2009-01-04 Adam Treat <adam.treat@torchmobile.com>
936 Reviewed by George Staikos.
938 Add new API to QWebHitTestResult to return a rect for the smallest enclosing
939 block element of the hit test
942 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
943 (QWebHitTestResult::enclosingBlock):
947 2008-12-30 Adam Treat <adam.treat@torchmobile.com>
949 Reviewed by George Staikos.
951 Make the qt port build and work with the new fixedLayoutSize feature
954 (QWebPagePrivate::QWebPagePrivate):
955 (QWebPage::fixedLayoutSize):
956 (QWebPage::setFixedLayoutSize):
957 (QWebPage::useFixedLayout):
958 (QWebPage::setUseFixedLayout):
961 * WebCoreSupport/FrameLoaderClientQt.cpp:
962 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
964 2008-12-19 Jade Han <jade.han@nokia.com>
966 Reviewed by Tor Arne Vestbø.
968 [Qt] Allow conversion of JavaScript Number and Boolean types to Qt types
970 https://bugs.webkit.org/show_bug.cgi?id=22880
972 * tests/qwebframe/tst_qwebframe.cpp:
973 (MyQObject::myInvokableWithBoolArg):
975 2008-12-18 Yael Aharon <yael.aharon@nokia.com>
977 Reviewed by Tor Arne Vestbø.
979 When Web Inspector is launched without an associated node,
980 call show() instead of inspect().
983 (QWebPage::triggerAction):
985 2008-12-18 Dan Bernstein <mitz@apple.com>
987 Reviewed by Sam Weinig.
989 - stub out FrameLoaderClient::shouldUseCredentialStorage().
991 * WebCoreSupport/FrameLoaderClientQt.cpp:
992 (WebCore::FrameLoaderClientQt::shouldUseCredentialStorage):
993 * WebCoreSupport/FrameLoaderClientQt.h:
995 2008-12-18 Sam Weinig <sam@webkit.org>
997 Reviewed by John Sullivan.
999 Stub out FrameLoaderClient::dispatchDidFirstVisuallyNonEmptyLayout()
1001 * WebCoreSupport/FrameLoaderClientQt.cpp:
1002 (WebCore::FrameLoaderClientQt::dispatchDidFirstVisuallyNonEmptyLayout):
1003 * WebCoreSupport/FrameLoaderClientQt.h:
1005 2008-12-16 Simon Hausmann <hausmann@webkit.org>
1007 Reviewed by Holger Freyther.
1009 Added support for unload event counting to the Qt DRT.
1012 (qt_drt_run): Moved function here.
1013 * Api/qwebpage_p.h: Moved drt run boolean here.
1014 * WebCoreSupport/EditorClientQt.cpp: Moved drt run boolean.
1015 (WebCore::EditorClientQt::shouldShowDeleteInterface): Use the new drt
1017 * WebCoreSupport/FrameLoaderClientQt.cpp:
1018 (WebCore::FrameLoaderClientQt::dispatchDidFinishDocumentLoad): Add DRT
1019 output for unload event handler counting.
1021 2008-12-15 Holger Hans Peter Freyther <zecke@selfish.org>
1023 Reviewed by Simon Hausmann.
1025 Change the order of sub frame initialisation to avoid crashes
1027 Add the newly created frame to the FrameTree before calling
1028 WebCore::Frame::init to not segfault on
1029 LayoutTests/fast/loader/frame-creation-removal.html.
1031 * Api/qwebframe.cpp:
1032 (QWebFramePrivate::init):
1033 * WebCoreSupport/FrameLoaderClientQt.cpp:
1034 (WebCore::FrameLoaderClientQt::createFrame):
1036 2008-12-15 Simon Hausmann <hausmann@webkit.org>
1038 Reviewed by Holger Freyther.
1040 Implement setJavaScriptProfilingEnabled in the Qt DRT to pass fast/profiler.
1042 * Api/qwebframe.cpp:
1043 (qt_drt_setJavaScriptProfilingEnabled):
1045 2008-12-12 Simon Hausmann <hausmann@webkit.org>
1047 Reviewed by Tor Arne Vestbø.
1049 Fix pressing return/enter not triggering any action on web sites
1050 that define event handlers, such as the JS console in the web
1053 Process the key events in the DOM first and if not handled map them
1057 (QWebPagePrivate::editorActionForKeyEvent): Made a class method.
1058 (QWebPagePrivate::keyPressEvent): Pass the key event first to the DOM.
1059 * WebCoreSupport/EditorClientQt.cpp:
1060 (WebCore::EditorClientQt::handleKeyboardEvent): Map the key event to
1061 actions and trigger them.
1063 2008-12-12 Ariya Hidayat <ariya.hidayat@trolltech.com>
1065 Reviewed by Simon Hausmann.
1067 Create the plugin widget even though the web page has no associated
1068 view. This prevents the plugin to be uselessly constructed more than once.
1070 * WebCoreSupport/FrameLoaderClientQt.cpp:
1071 (WebCore::FrameLoaderClientQt::createPlugin):
1072 * tests/qwebpage/tst_qwebpage.cpp:
1073 (tst_QWebPage::createViewlessPlugin):
1075 2008-12-11 Enrico Ros <enrico.ros@m31.com>
1077 Reviewed by Simon Hausmann.
1079 Fix the broken focus behavior that happened when QWebPage lost
1080 focus to a popup menu.
1082 The previous code didn't notify the QWebPage at all when the
1083 focus was back in (breaking focus rects, caret blinking, ...).
1084 By the way when a popup is show, 2 FocusOut events are delivered
1085 to the QWebPage, but this doesn't seem to hurt.
1087 Added a test to check popup opening, closing a lineedit blinks.
1090 (QWebPagePrivate::focusInEvent):
1091 (QWebPagePrivate::focusOutEvent):
1092 * tests/qwebframe/tst_qwebframe.cpp:
1095 2008-12-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
1097 Reviewed by Tor Arne Vestbø.
1099 When the web page is navigated away, delete the instance
1100 of the native plugin.
1102 http://trolltech.com/developer/task-tracker/index_html?id=214946&method=entry
1104 * WebCoreSupport/FrameLoaderClientQt.cpp:
1106 * tests/qwebpage/tst_qwebpage.cpp:
1107 (PluginTrackedPage::PluginTrackedPage):
1108 (PluginTrackedPage::createPlugin):
1109 (tst_QWebPage::destroyPlugin):
1111 2008-12-11 Yael Aharon <yael.aharon@nokia.com>
1113 Reviewed by Simon Hausmann.
1115 Allow applications to save and restore their state between loads.
1117 * Api/qwebframe.cpp:
1119 * WebCoreSupport/FrameLoaderClientQt.cpp:
1120 (WebCore::FrameLoaderClientQt::restoreViewState):
1121 (WebCore::FrameLoaderClientQt::saveViewStateToItem):
1122 * tests/qwebpage/tst_qwebpage.cpp:
1123 (tst_QWebPage::modified):
1125 2008-12-08 Tor Arne Vestbø <tavestbo@trolltech.com>
1127 Reviewed by Darin Adler and Holger Freyther.
1129 Make Widget::frameRectsChanged() and overrides non-const
1131 This will hopefully allow us to get rid of some of the mutables in
1132 the classes that react to the callback by changing their own state.
1134 * WebCoreSupport/FrameLoaderClientQt.cpp:
1137 2008-12-10 Holger Hans Peter Freyther <zecke@selfish.org>
1139 Reviewed by Simon Hausmann.
1141 API changes discussed with Simon Hausmann, Tor Arne
1142 Vestbø, Ariya Hidayat...
1144 * Api/qwebdatabase.cpp:
1145 (QWebDatabase::fileName):
1146 (QWebDatabase::removeDatabase):
1147 * Api/qwebdatabase.h:
1148 * Api/qwebframe.cpp:
1149 (QWebFrame::scroll):
1150 (QWebFrame::scrollPosition):
1151 (QWebFrame::setScrollPosition):
1154 (QWebPage::setContentEditable):
1155 (QWebPage::isContentEditable):
1156 (QWebPage::extension):
1158 * Api/qwebsecurityorigin.cpp:
1159 * Api/qwebsettings.cpp:
1160 (QWebSettingsPrivate::apply):
1161 (QWebSettings::QWebSettings):
1162 * Api/qwebsettings.h:
1163 * QtLauncher/main.cpp:
1164 (MainWindow::setEditable):
1165 * WebCoreSupport/ChromeClientQt.cpp:
1166 (WebCore::ChromeClientQt::exceededDatabaseQuota):
1167 (WebCore::ChromeClientQt::runOpenPanel):
1168 * WebCoreSupport/EditorClientQt.cpp:
1169 (WebCore::EditorClientQt::isEditable):
1170 * tests/qwebpage/tst_qwebpage.cpp:
1171 (tst_QWebPage::database):
1173 2008-12-09 Balazs Kelemen <Kelemen.Balazs.3@stud.u-szeged.hu>
1175 Reviewed by Simon Hausmann.
1177 Extended QtLauncher so now it can load pages from an url list
1178 one by one. This can be useful for testing purposes (eq. leak hunting).
1179 The -r option activates this feature.
1181 https://bugs.webkit.org/show_bug.cgi?id=20932
1183 * QtLauncher/main.cpp:
1184 (MainWindow::webPage):
1185 Just a coding style repairing (* written with no space between the return type name)
1186 (MainWindow::webView):
1187 I need the webView to connect it with the URLLoader object.
1188 (URLLoader::URLLoader):
1189 (URLLoader::loadNext):
1191 (URLLoader::getUrl):
1194 2008-12-10 Simon Hausmann <hausmann@webkit.org>
1196 Fix the Qt build, added const to Node* parameter after change
1199 * WebCoreSupport/ChromeClientQt.h:
1200 (WebCore::ChromeClientQt::formStateDidChange):
1202 2008-12-09 Brett Wilson <brettw@chromium.org>
1204 Reviewed by Dave Hyatt.
1206 https://bugs.webkit.org/show_bug.cgi?id=22177
1208 Add a callback on ChromeClient that the state of form elements on
1209 the page has changed. This is to allow clients implementing session
1210 saving to know when the current state is dirty.
1212 * WebCoreSupport/ChromeClientQt.h:
1213 (WebCore::ChromeClientQt::formStateDidChange):
1215 2008-12-09 Ariya Hidayat <ariya.hidayat@trolltech.com>
1217 Reviewed by Simon Hausmann.
1219 Fix the documentation of the localStorageDatabasePath setters/getters.
1221 * Api/qwebsettings.cpp:
1223 2008-12-08 Ariya Hidayat <ariya.hidayat@trolltech.com>
1225 Reviewed by Simon Hausmann.
1227 Multiple files support for the file chooser.
1230 (QWebPage::chooseFiles):
1232 * WebCoreSupport/ChromeClientQt.cpp:
1233 (WebCore::ChromeClientQt::runOpenPanel):
1235 2008-12-06 Simon Fraser <simon.fraser@apple.com>
1237 Reviewed by Dave Hyatt
1239 https://bugs.webkit.org/show_bug.cgi?id=15671
1241 Renderer::caretRect() is now localCaretRect(), which needs
1242 converting to absolute coordinates (taking transforms into account).
1245 (QWebPage::inputMethodQuery):
1247 2008-12-03 Tor Arne Vestbø <tavestbo@trolltech.com>
1249 Reviewed by Simon Hausmann.
1251 Allow passing jsNull and jsUndefined to Qt plugins
1253 Currently limited to functions with QString and QVariant arguments,
1254 and properties of these types. Both jsNull and jsUndefined ends up
1255 as default-constructed QStrings and QVariants, which means you can
1256 check for isEmpty() and isValid() in the native plugin code.
1258 Based on patches by Jade Han <jade.han@nokia.com>
1260 * tests/qwebframe/tst_qwebframe.cpp:
1262 2008-12-02 Simon Hausmann <hausmann@webkit.org>
1264 Rubber-stamped by Tor Arne Vestbø.
1266 Initial API documentation for QWebDatabase, QWebSecurityOrigin and
1267 QWebFrame::securityOrigin().
1269 * Api/qwebdatabase.cpp:
1270 * Api/qwebframe.cpp:
1271 * Api/qwebsecurityorigin.cpp:
1273 2008-11-27 Kent Hansen <khansen@trolltech.com>
1275 Reviewed by Simon Hausmann.
1277 Added auto tests for making JavaScript bindings for Qt plugin widgets
1280 * tests/qwebpage/tst_qwebpage.cpp:
1281 (PluginPage::PluginPage):
1282 (PluginPage::CallInfo::CallInfo):
1283 (PluginPage::createPlugin):
1284 (tst_QWebPage::createPlugin):
1286 2008-11-25 Holger Hans Peter Freyther <zecke@selfish.org>
1288 Build fix. Use WebCore::Frame::loader instead of QWebFrame
1290 * WebCoreSupport/FrameLoaderClientQt.cpp:
1291 (WebCore::FrameLoaderClientQt::updateGlobalHistory):
1293 2008-11-24 Darin Fisher <darin@chromium.org>
1297 http://bugs.webkit.org/show_bug.cgi?id=15643
1299 * WebCoreSupport/EditorClientQt.cpp:
1300 (WebCore::EditorClientQt::isSelectTrailingWhitespaceEnabled):
1301 * WebCoreSupport/EditorClientQt.h:
1303 2008-11-24 Darin Adler <darin@apple.com>
1305 Reviewed by Dan Bernstein.
1307 - https://bugs.webkit.org/show_bug.cgi?id=22470
1308 remove unneeded URL argument from FrameLoaderClient::updateGlobalHistory
1310 * WebCoreSupport/FrameLoaderClientQt.cpp:
1311 (WebCore::FrameLoaderClientQt::updateGlobalHistory): Get the URL from the
1313 * WebCoreSupport/FrameLoaderClientQt.h: Remove argument.
1315 2008-11-24 Darin Fisher <darin@chromium.org>
1319 https://bugs.webkit.org/show_bug.cgi?id=22448
1321 * Api/qwebframe.cpp:
1322 (QWebFrame::evaluateJavaScript):
1324 2008-11-20 Sam Weinig <sam@webkit.org>
1328 * Api/qwebframe.cpp:
1329 (QWebFrame::evaluateJavaScript):
1331 2008-11-19 Darin Fisher <darin@chromium.org>
1335 https://bugs.webkit.org/show_bug.cgi?id=22373
1336 Ports busted by addition of ScriptValue.{h,cpp}
1338 * Api/qwebframe.cpp:
1339 (QWebFrame::evaluateJavaScript):
1341 2008-11-19 Darin Fisher <darin@chromium.org>
1345 https://bugs.webkit.org/show_bug.cgi?id=22373
1346 Ports busted by addition of ScriptValue.{h,cpp}
1348 * Api/qwebframe.cpp:
1350 2008-11-19 Simon Hausmann <hausmann@webkit.org>
1352 Fix the Qt build, remove file referenced in the qrc file that does not
1353 exist and is not needed.
1355 * tests/qwebframe/qwebframe.qrc:
1357 2008-11-18 Ariya Hidayat <ariya.hidayat@trolltech.com>
1359 Rubber-stamped by Tor Arne Vestbø.
1361 Missing file in new unit test for QWebFrame (r38493).
1363 * tests/qwebframe/qwebframe.pro:
1364 * tests/qwebframe/qwebframe.qrc: Added.
1366 2008-11-18 Tor Arne Vestbø <tavestbo@trolltech.com>
1368 Rubber-stamped by Simon Hausmann.
1370 Make sure QWidget based plugins are invisible until placed into the layout
1372 * WebCoreSupport/FrameLoaderClientQt.cpp:
1373 (WebCore::FrameLoaderClientQt::createPlugin):
1375 2008-11-18 Tor Arne Vestbø <tavestbo@trolltech.com>
1377 Reviewed by Simon Hausmann.
1379 React properly to frame rect changes for QWidget based plugins
1381 We now set the geometry of the QWidget in frameRectsChanged,
1382 intead of setFrameRect, which means we pick up the changes to
1383 the frame rect when scrolling. We also set a mask on the
1384 widget to keep it from painting over scrollbars and the like
1386 * WebCoreSupport/FrameLoaderClientQt.cpp:
1389 2008-11-18 Ariya Hidayat <ariya.hidayat@trolltech.com>
1391 Reviewed by Tor Arne Vestbø.
1393 Fix crash when trying to pick a file using the file chooser.
1395 * WebCoreSupport/ChromeClientQt.cpp:
1396 (WebCore::ChromeClientQt::runOpenPanel):
1398 2008-11-18 Holger Hans Peter Freyther <zecke@selfish.org>
1400 Reviewed by Simon Hausmann.
1402 Attempt to share transitionToCommittedForNewPage of FrameLoaderClient with the different ports
1404 After Hyatt's work on Widget and ScrollView there is little difference
1405 between the implementation of Qt, Gtk+ and Win. In fact any kind of
1406 difference is mostly a bug. Alp has fixed two of such errors for the Gtk+
1407 port and the Qt port has at least one of them left.
1409 The only difference between the implementations is in getting the the
1410 IntSize for the new FrameView, the background color to be applied and
1411 eventually some post processing.
1413 Unify the implementations by providing a static helper function that
1414 takes a Frame, IntSize, color and transparency bit and calling it from
1415 the Gtk+, the Qt and the Windows port.
1417 * Api/qwebframe.cpp:
1418 * Api/qwebframe_p.h:
1420 (QWebPage::setPalette):
1421 * WebCoreSupport/FrameLoaderClientQt.cpp:
1422 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1424 2008-11-17 Geoffrey Garen <ggaren@apple.com>
1428 Try to fix qt build.
1430 * Api/qwebframe.cpp:
1432 2008-11-17 Ariya Hidayat <ariya.hidayat@trolltech.com>
1434 Reviewed by Tor Arne Vestbø and Simon Hausmann.
1436 Fix regression when loading resources from Qt resource system using qrc:/.
1438 Added a unit test to catch future regression.
1441 (QWebPagePrivate::QWebPagePrivate):
1442 * tests/qwebframe/image.png: Added.
1443 * tests/qwebframe/tst_qwebframe.cpp:
1445 2008-11-16 Darin Adler <darin@apple.com>
1449 * Api/qwebhistory.cpp: Added include of "KURL.h".
1451 2008-10-24 Yael Aharon <yael.aharon@nokia.com>
1453 Reviewed by Simon Hausmann.
1455 Added some basic unit tests for the public database API.
1457 * tests/qwebpage/tst_qwebpage.cpp:
1458 (tst_QWebPage::initTestCase):
1459 (tst_QWebPage::cleanupTestCase):
1460 (tst_QWebPage::database):
1462 2008-11-14 Simon Hausmann <hausmann@webkit.org>
1464 Fix the Qt build, add missing export macros for the new classes.
1466 * Api/qwebdatabase.h:
1467 * Api/qwebsecurityorigin.h:
1469 2008-10-24 Yael Aharon <yael.aharon@nokia.com>
1471 Reviewed by Simon Hausmann.
1473 Adding public API to provide access to the security origin
1474 (QWebSecurityOrigin) and the databases used for the offline
1475 storage (QWebDatabase).
1477 In addition QWebSettings gains configuration functions for
1478 enabling/disabling offline storage, web application cache
1479 and DOM local storage.
1481 This commits lands the core feature(s), the unit tests and the
1482 documentation are going to follow in the comming days/weeks.
1484 Note: The API is not frozen yet.
1487 * Api/qwebdatabase.cpp: Added.
1488 (QWebDatabase::QWebDatabase):
1489 (QWebDatabase::operator=):
1490 (QWebDatabase::name):
1491 (QWebDatabase::displayName):
1492 (QWebDatabase::expectedSize):
1493 (QWebDatabase::size):
1494 (QWebDatabase::absoluteFilePath):
1495 (QWebDatabase::origin):
1496 (QWebDatabase::remove):
1497 (QWebDatabase::~QWebDatabase):
1498 * Api/qwebdatabase.h: Added.
1499 * Api/qwebdatabase_p.h: Added.
1500 * Api/qwebframe.cpp:
1501 (QWebFrame::securityOrigin):
1505 * Api/qwebsecurityorigin.cpp: Added.
1506 (QWebSecurityOrigin::QWebSecurityOrigin):
1507 (QWebSecurityOrigin::operator=):
1508 (QWebSecurityOrigin::scheme):
1509 (QWebSecurityOrigin::host):
1510 (QWebSecurityOrigin::port):
1511 (QWebSecurityOrigin::databaseUsage):
1512 (QWebSecurityOrigin::databaseQuota):
1513 (QWebSecurityOrigin::setDatabaseQuota):
1514 (QWebSecurityOrigin::~QWebSecurityOrigin):
1515 (QWebSecurityOrigin::allOrigins):
1516 (QWebSecurityOrigin::databases):
1517 * Api/qwebsecurityorigin.h: Added.
1518 * Api/qwebsecurityorigin_p.h: Added.
1519 (QWebSecurityOriginPrivate::QWebSecurityOriginPrivate):
1520 (QWebSecurityOriginPrivate::~QWebSecurityOriginPrivate):
1521 * Api/qwebsettings.cpp:
1522 (QWebSettingsPrivate::apply):
1523 (QWebSettings::QWebSettings):
1524 (QWebSettings::setOfflineStoragePath):
1525 (QWebSettings::offlineStoragePath):
1526 (QWebSettings::setOfflineStorageDefaultQuota):
1527 (QWebSettings::offlineStorageDefaultQuota):
1528 (QWebSettings::setOfflineWebApplicationCachePath):
1529 (QWebSettings::offlineWebApplicationCachePath):
1530 (QWebSettings::setLocalStorageDatabasePath):
1531 (QWebSettings::localStorageDatabasePath):
1532 * Api/qwebsettings.h:
1533 * WebCoreSupport/ChromeClientQt.cpp:
1534 (WebCore::ChromeClientQt::exceededDatabaseQuota):
1536 2008-11-12 Ariya Hidayat <ariya.hidayat@trolltech.com>
1538 Rubber-stamped by Tor Arne Vestbø.
1540 Mention the color role change (r38331) in the API doc.
1544 2008-11-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
1546 Reviewed by Tor Arne Vestbø and Simon Hausmann.
1548 Use QPalette::Base (instead of QPalette::Background) for the page
1551 * Api/qwebframe.cpp:
1552 (QWebFramePrivate::updateBackground):
1554 (QWebView::QWebView):
1556 2008-11-11 Cameron Zwarich <zwarich@apple.com>
1558 Reviewed by Geoff Garen.
1560 Remove pointless dependencies on the now-deleted kjs directory.
1564 2008-11-10 Ariya Hidayat <ariya.hidayat@trolltech.com>
1566 Rubber-stamped by Simon Hausmann.
1568 To fit Qt API, scroll offset is a QPoint instead of a QSize.
1570 * Api/qwebframe.cpp:
1571 (QWebFrame::scrollOffset):
1572 (QWebFrame::setScrollOffset):
1575 2008-11-10 David Boddie <dboddie@trolltech.com>
1577 Reviewed by Simon Hausmann.
1579 Doc: Fixed qdoc warnings by supplying function documentation.
1581 * Api/qwebframe.cpp:
1584 2008-11-10 Tobias Koenig <tobias.koenig@trolltech.com>
1586 Reviewed by Simon Hausmann.
1588 Removed old and stale prf file that breaks the MingW build.
1590 * Api/qtwebkit.prf: Removed.
1592 2008-11-10 Kavindra Palaraja <kdpalara@trolltech.com>
1594 Reviewed by Simon Hausmann.
1596 Clarify QWebFrame/View::setHTML docs with regards to relative URLs
1598 * Api/qwebframe.cpp:
1601 2008-11-10 Joerg Bornemann <joerg.bornemann@nokia.com>
1603 Reviewed by Simon Hausmann
1605 Don't define _CRT_RAND_S on Windows CE in the precompiled
1606 header, to fix the CE build.
1610 2008-11-07 Ariya Hidayat <ariya.hidayat@trolltech.com>
1612 Reviewed by Tor Arne Vestbø and Simon Hausmann.
1614 Added an option to allow printing the background color and images.
1615 Mostly reworked from a patch by Holger.
1616 This setting is enabled by default.
1618 * Api/qwebsettings.cpp:
1619 (QWebSettingsPrivate::apply):
1620 (QWebSettings::QWebSettings):
1621 * Api/qwebsettings.h:
1623 2008-11-06 Simon Hausmann <hausmann@webkit.org>
1625 Reviewed by Tor Arne Vestbø.
1627 Added a unit tests for QWebFrame::metaData().
1629 * tests/qwebframe/tst_qwebframe.cpp:
1631 2008-11-06 Simon Hausmann <hausmann@webkit.org>
1633 Reviewed by Tor Arne Vestbø.
1635 Improved documentation for QWebFrame::metaData().
1637 * Api/qwebframe.cpp:
1639 2008-11-05 Sriram Yadavalli <sriram.yadavalli@nokia.com>
1641 Reviewed by Simon Hausmann.
1643 Added QWebFrame::metaData() to provide a way in the public API
1644 to retrieve the values of the <meta> tags.
1646 See https://bugs.webkit.org/show_bug.cgi?id=22071
1648 * Api/qwebframe.cpp:
1649 (QWebFrame::metaData):
1652 2008-10-24 Yael Aharon <yael.aharon@nokia.com>
1654 Reviewed by Simon Hausmann.
1656 Add userData() and setUserData() to QWebHistoryItem.
1657 Add setMaximumItemCount() and maximumItemCount() to QWebHistory.
1658 Add currentItemIndex() to QWebHistory.
1660 See also https://bugs.webkit.org/show_bug.cgi?id=21864
1662 Small cleanup by Simon (docs and forward declaration of QWebHistoryItem in qwebframe.h)
1665 * Api/qwebhistory.cpp:
1666 (QWebHistoryItem::userData):
1667 (QWebHistoryItem::setUserData):
1668 (QWebHistory::currentItemIndex):
1669 (QWebHistory::maximumItemCount):
1670 (QWebHistory::setMaximumItemCount):
1671 * Api/qwebhistory.h:
1672 * WebCoreSupport/FrameLoaderClientQt.cpp:
1673 (WebCore::FrameLoaderClientQt::saveViewStateToItem):
1674 * tests/qwebpage/tst_qwebpage.cpp:
1675 (tst_QWebPage::modified):
1677 2008-11-03 Cameron Zwarich <zwarich@apple.com>
1679 Rubber-stamped by Maciej Stachowiak.
1681 Move more files into the runtime subdirectory of JavaScriptCore.
1685 2008-10-25 Jade Han <jade.han@nokia.com>
1689 Enable custom properties for Qt runtime objects in QtWebKit
1691 https://bugs.webkit.org/show_bug.cgi?id=21813
1693 * tests/qwebframe/tst_qwebframe.cpp:
1695 2008-10-24 Sam Weinig <sam@webkit.org>
1697 Another Qt build fix.
1699 * WebCoreSupport/ChromeClientQt.cpp:
1701 2008-10-24 Sam Weinig <sam@webkit.org>
1703 Reviewed by Dan Bernstein.
1705 Fix https://bugs.webkit.org/show_bug.cgi?id=21759
1706 Layering violation: FileChooser should not depend on Document/Frame/Page
1708 * WebCoreSupport/ChromeClientQt.cpp:
1709 (WebCore::ChromeClientQt::runOpenPanel):
1710 * WebCoreSupport/ChromeClientQt.h:
1712 2008-10-24 Timothy Hatcher <timothy@apple.com>
1714 Stub out new InspectorClient methods.
1716 https://bugs.webkit.org/show_bug.cgi?id=21856
1718 Reviewed by Darin Adler.
1720 * WebCoreSupport/InspectorClientQt.cpp:
1721 (WebCore::InspectorClientQt::populateSetting): Not implemented.
1722 (WebCore::InspectorClientQt::storeSetting): Ditto.
1723 (WebCore::InspectorClientQt::removeSetting): Ditto.
1724 * WebCoreSupport/InspectorClientQt.h:
1726 2008-10-24 Darin Adler <darin@apple.com>
1728 - finish rolling out https://bugs.webkit.org/show_bug.cgi?id=21732
1730 * Api/qwebframe.cpp:
1731 (QWebFrame::evaluateJavaScript): Use JSValue* instead of JSValuePtr.
1733 2008-10-23 Yael Aharon <yael.aharon@nokia.com>
1735 Reviewed by Simon Hausmann.
1737 Invalid history entries could cause a crash in QT Webkit
1739 * Api/qwebhistory.cpp:
1740 (QWebHistoryItem::originalUrl):
1741 (QWebHistoryItem::url):
1742 (QWebHistoryItem::title):
1743 (QWebHistoryItem::lastVisited):
1744 (QWebHistoryItem::icon):
1745 (QWebHistoryItem::isValid):
1746 * Api/qwebhistory.h:
1747 * Api/qwebhistory_p.h:
1748 (QWebHistoryItemPrivate::QWebHistoryItemPrivate):
1749 (QWebHistoryItemPrivate::~QWebHistoryItemPrivate):
1750 * tests/qwebpage/tst_qwebpage.cpp:
1751 (tst_QWebPage::modified):
1753 2008-10-22 Yael Aharon <yael.aharon@nokia.com>
1755 Reviewed by Simon Hausmann.
1757 emit scrollRequested unconditionally when scrolling.
1759 See https://bugs.webkit.org/show_bug.cgi?id=21790
1761 * WebCoreSupport/ChromeClientQt.cpp:
1762 (WebCore::ChromeClientQt::scroll):
1764 2008-10-23 Simon Hausmann <hausmann@webkit.org>
1766 Reviewed by Tor Arne.
1768 Fix handling of mouse events when embedding QWebView into the
1771 QWebPage accepts or ignores events to indicate whether the web page
1772 handled the event. However for QWebView to behave like a good widget
1773 it should always accept the mouse events to indicate that it handled
1774 them and that they should not be subject to event propagation.
1776 The graphics view relies on acceptance of the initial mouse click to
1777 make the embedded widget the focus item.
1780 (QWebView::mouseMoveEvent):
1781 (QWebView::mousePressEvent):
1782 (QWebView::mouseDoubleClickEvent):
1783 (QWebView::mouseReleaseEvent):
1784 (QWebView::contextMenuEvent):
1785 (QWebView::wheelEvent):
1787 2008-10-22 Ariya Hidayat <ariya.hidayat@trolltech.com>
1789 Reviewed by Simon Hausmann.
1791 For public API, use the term boundingRect instead of boundingBox.
1793 * Api/qwebframe.cpp:
1794 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1795 (QWebHitTestResult::boundingRect):
1797 * Api/qwebframe_p.h:
1799 2008-06-03 Siraj Razick <siraj.razick@collabora.co.uk>
1801 Reviewed by Simon Hausmann.
1803 https://bugs.webkit.org/show_bug.cgi?id=19374
1805 Expose boundingBox value in QWebHitTestResult
1807 Add API function QRect QWebHitResult::boundingBox() const
1811 * Api/qwebframe.cpp:
1812 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
1813 (QWebHitTestResult::boundingBox):
1815 * Api/qwebframe_p.h:
1817 2008-10-21 Yael Aharon <yael.aharon@nokia.com>
1819 Reviewed by Simon Hausmann.
1821 emit repaintRequested unconditionally when repaint is requested.
1823 * WebCoreSupport/ChromeClientQt.cpp:
1824 (WebCore::ChromeClientQt::repaint):
1826 2008-10-20 Sam Weinig <sam@webkit.org>
1828 Reviewed by Anders Carlsson.
1830 Remove FrameLoaderClient::detachedFromParent4. It is no longer used by any port.
1832 * WebCoreSupport/FrameLoaderClientQt.cpp:
1833 * WebCoreSupport/FrameLoaderClientQt.h:
1835 2008-10-19 Darin Adler <darin@apple.com>
1837 Reviewed by Oliver Hunt.
1839 - next step of https://bugs.webkit.org/show_bug.cgi?id=21732
1840 improve performance by eliminating JSValue as a base class for JSCell
1842 Remove most uses of JSValue, which will be removed in a future patch.
1844 * Api/qwebframe.cpp:
1845 (QWebFrame::evaluateJavaScript): Use JSValuePtr.
1847 2008-10-14 Tor Arne Vestbø <tavestbo@trolltech.com>
1851 Clip painter to dirty rect before passing on to WebKit
1853 This was previously done in ScrollViewQt, but after the
1854 refactoring of ScrollView we need to do it in QWebFrame
1855 instead, similar to Safari/Win.
1857 * Api/qwebframe.cpp:
1858 (QWebFrame::render):
1860 2008-10-08 Matthias Ettrich <ettrich@nokia.com>
1864 Make QWebView ignore focus changes with PopupFocusReason to avoid
1865 massive updates when menus open and close.
1868 (QWebView::focusInEvent):
1869 (QWebView::focusOutEvent):
1871 2008-10-08 Kavindra Palaraja <kdpalara@trolltech.com>
1875 Fixed a qdoc warning and adjusted some spacing
1877 * Api/qwebframe.cpp:
1879 2008-10-08 Rhys Weatherley <rhys.weatherley@nokia.com>
1883 Compile for platforms without context menus.
1886 (QWebPage::createStandardContextMenu):
1888 2008-10-08 André Pönitz <apoenitz@trolltech.com>
1892 Fix compilation with Qt namespaces.
1894 * WebCoreSupport/EditCommandQt.h:
1896 2008-10-07 Tor Arne Vestbø <tavestbo@trolltech.com>
1898 QtWebKit build fix after changes to FrameLoaderClient.h in r37371
1900 * WebCoreSupport/FrameLoaderClientQt.h:
1902 2008-10-07 Holger Hans Peter Freyther <zecke@selfish.org>
1904 [qt] Build fix after Scrollbar.h and Widget.h changes.
1907 (QWebPage::swallowContextMenuEvent):
1909 2008-10-06 David Hyatt <hyatt@apple.com>
1911 Enable viewless Mac WebKit to paint some basic pages.
1913 Reviewed by Sam Weinig
1915 * WebCoreSupport/FrameLoaderClientQt.cpp:
1916 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
1918 2008-10-03 David Hyatt <hyatt@apple.com>
1920 Fix scroll method on Qt. The delta was supposed to use .width()/.height() and not .x()/.y().
1922 Fix the QtPluginWidget to do an invalidate properly.
1926 * WebCoreSupport/ChromeClientQt.cpp:
1927 (WebCore::ChromeClientQt::scroll):
1928 * WebCoreSupport/FrameLoaderClientQt.cpp:
1931 2008-10-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
1933 Build fix. Remove addToDirtyRegion from the header file.
1935 * WebCoreSupport/ChromeClientQt.h:
1937 2008-10-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
1941 * WebCoreSupport/ChromeClientQt.cpp:
1942 (WebCore::ChromeClientQt::scroll):
1943 * WebCoreSupport/FrameLoaderClientQt.cpp:
1945 (WebCore::FrameLoaderClientQt::createPlugin):
1947 2008-10-03 David Hyatt <hyatt@apple.com>
1949 Remove addToDirtyRegion.
1951 Reviewed by Oliver Hunt
1953 * WebCoreSupport/ChromeClientQt.cpp:
1955 2008-10-02 David Hyatt <hyatt@apple.com>
1957 https://bugs.webkit.org/show_bug.cgi?id=21314
1959 Make scrollBackingStore cross-platform.
1961 Reviewed by Sam Weinig
1963 * WebCoreSupport/ChromeClientQt.cpp:
1964 (WebCore::ChromeClientQt::repaint):
1965 (WebCore::ChromeClientQt::scroll):
1966 * WebCoreSupport/ChromeClientQt.h:
1968 2008-10-01 David Hyatt <hyatt@apple.com>
1970 https://bugs.webkit.org/show_bug.cgi?id=21282
1972 Make contentsToScreen/screenToContents cross-platform. Only implemented by Mac/Win right now.
1974 Reviewed by Adam Roben
1976 * WebCoreSupport/ChromeClientQt.cpp:
1977 (WebCore::ChromeClientQt::windowToScreen):
1978 (WebCore::ChromeClientQt::screenToWindow):
1979 * WebCoreSupport/ChromeClientQt.h:
1981 2008-09-30 Dave Hyatt <hyatt@apple.com>
1983 http://bugs.webkit.org/show_bug.cgi?id=21250
1985 Rename updateContents to repaintContentRectangle and make it cross-platform by always sending
1986 repaints up through the ChromeClient.
1988 Reviewed by Darin Adler
1990 * WebCoreSupport/ChromeClientQt.cpp:
1991 (WebCore::ChromeClientQt::repaint):
1992 * WebCoreSupport/ChromeClientQt.h:
1994 2008-09-29 Gunnar Sletta <gunnar@trolltech.com>
1998 Compile on windows using MSVC 2005
2000 For the PCH We need to define _WIN32_WINNT and include windows.h early on,
2001 otherwise we'll miss several functions.
2005 2008-09-29 Thiago Macieira <thiago.macieira@nokia.com>
2009 Changed copyright from Trolltech ASA to Nokia.
2011 Nokia acquired Trolltech ASA, assets were transferred on September 26th 2008.
2014 * Api/qwebframe.cpp:
2016 * Api/qwebframe_p.h:
2017 * Api/qwebhistory.cpp:
2018 * Api/qwebhistory.h:
2019 * Api/qwebhistory_p.h:
2020 * Api/qwebkitglobal.h:
2021 * Api/qwebnetworkinterface.cpp:
2022 * Api/qwebnetworkinterface.h:
2023 * Api/qwebnetworkinterface_p.h:
2027 * Api/qwebpluginfactory.cpp:
2028 * Api/qwebpluginfactory.h:
2029 * Api/qwebsettings.cpp:
2030 * Api/qwebsettings.h:
2033 * Plugins/ICOHandler.cpp:
2034 * QtLauncher/main.cpp:
2035 * WebCoreSupport/FrameLoaderClientQt.cpp:
2036 * WebCoreSupport/FrameLoaderClientQt.h:
2037 * WebCoreSupport/InspectorClientQt.cpp:
2038 * WebCoreSupport/InspectorClientQt.h:
2039 * tests/qwebframe/tst_qwebframe.cpp:
2040 * tests/qwebpage/tst_qwebpage.cpp:
2042 2008-09-28 Simon Hausmann <hausmann@webkit.org>
2044 Reviewed by David Hyatt.
2046 Ensure the mainThreadIdentifier is set as well as other bits and pieces of
2047 the threading machinery, by calling JSC::initializeThreading().
2050 (QWebPagePrivate::QWebPagePrivate):
2052 2008-09-27 David Hyatt <hyatt@apple.com>
2054 Forgot to land renaming changes in WebKit.
2056 * Api/qwebframe.cpp:
2057 (QWebFrame::render):
2059 (QWebFrame::geometry):
2061 (QWebPage::viewportSize):
2062 (QWebPage::setViewportSize):
2064 2008-09-27 Simon Hausmann <hausmann@webkit.org>
2066 Qt build fix - use frameRect instead of frameGeometry, adapt
2067 to renamed scrollbar frameview methods.
2070 (QWebPage::viewportSize):
2071 (QWebPage::setViewportSize):
2072 * WebCoreSupport/FrameLoaderClientQt.cpp:
2073 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
2075 2008-09-27 Jan Michael Alonzo <jmalonzo@webkit.org>
2077 Qt build fix - rename frameGeometry to frameRect per r36995.
2079 * Api/qwebframe.cpp:
2080 (QWebFrame::render):
2082 (QWebFrame::geometry):
2084 2008-09-26 Ariya Hidayat <ahidayat@trolltech.com>
2088 Fixed potential crash when deleting QWebView instance.
2090 When deleting the view, sets the page's view to NULL.
2091 The reason is that the page is smart and its destructor might lead to a call
2092 that operates on a view (which is in the process of being deleted).
2096 (QWebView::~QWebView):
2098 2008-09-26 Ariya Hidayat <ahidayat@trolltech.com>
2102 Fixed using modifiers to type special symbols (e.g '@','$') does not work on Mac OS X.
2104 * WebCoreSupport/EditorClientQt.cpp:
2105 (WebCore::EditorClientQt::handleKeyboardEvent):
2107 2008-09-26 Håvard Wall <hwall@trolltech.com>
2111 Fix compilation with QT_NO_MESSAGEBOX
2114 (QWebPage::javaScriptAlert):
2115 (QWebPage::javaScriptConfirm):
2117 2008-09-23 Tor Arne Vestbø <tavestbo@trolltech.com>
2121 Remove deprecated JS Qt bindings object call/construct code and fix autotests
2123 * tests/qwebframe/tst_qwebframe.cpp:
2125 2008-09-16 Alp Toker <alp@nuanti.com>
2127 Prospective Qt build fix. ScrollBar.h -> Scrollbar.h
2129 * Api/qwebframe.cpp:
2132 2008-09-15 Eli Fidler <eli@staikos.net>
2136 Yahoo assumes non-RFC compliant HTTP redirect behaviour. QtWebKit is (more)
2137 compliant, so broken. I think the Yahoo-assumed behaviour is real-world standard.
2139 Basically, Yahoo's login procedure for flickr looks like this:
2140 1. load flickr.com, click "sign in"
2141 2. this is a Yahoo page with a form
2142 (https://login.yahoo.com/config/login?.src=flickr...)
2143 when you click the "Sign In" button, the form submits to a yahoo.com POST URL
2144 3. The POST returns with a 302 (redirect) to another yahoo.com URL
2145 4. If you POST the redirected Location:, it all breaks. Yahoo assumes you will
2146 convert the method to GET, which works fine but is definitely not
2147 RFC-compliant. It would be compliant for 303, and the RFC says that many
2148 implementations treat 302 and 303 the same way (for HTTP/1.0 compliance), but
2149 converting to GET is explicitly wrong for 302.
2151 * Api/qwebnetworkinterface.cpp:
2152 (QWebNetworkManager::started):
2154 2008-09-15 Tor Arne Vestbø <tavestbo@trolltech.com>
2158 Make QtInstance::create() private and fix caching
2160 * Api/qwebframe.cpp:
2161 (QWebFrame::addToJavaScriptWindowObject):
2163 2008-09-11 Tor Arne Vestbø <tavestbo@trolltech.com>
2165 Rubber-stamped by Simon.
2167 Prevent leaking pages and frames in QWebKit autotest
2169 * tests/qwebpage/tst_qwebpage.cpp:
2171 2008-09-11 Tor Arne Vestbø <tavestbo@trolltech.com>
2175 Fix QtWebKit autotest
2177 * tests/qwebpage/tst_qwebpage.cpp:
2178 (tst_QWebPage::userStyleSheet):
2180 2008-09-09 Joerg Bornemann <joerg.bornemann@trolltech.com>
2184 Added missing WebCore prefix to ResourceRequest
2186 This is needed for Windows/CE compilation where there is a conflict
2187 with a global ResourceRequest type. Elsewhere in this file ResourceRequest
2188 is also prefixed with WebCore::
2190 * Api/qwebframe.cpp:
2191 (QWebFrame::QWebFrame):
2193 2008-09-07 Cameron Zwarich <cwzwarich@uwaterloo.ca>
2195 Reviewed by Maciej Stachowiak.
2197 Bug 20704: Replace the KJS namespace
2198 <https://bugs.webkit.org/show_bug.cgi?id=20704>
2200 Rename the KJS namespace to JSC.
2202 * Api/qwebframe.cpp:
2203 (QWebFrame::addToJavaScriptWindowObject):
2204 (QWebFrame::evaluateJavaScript):
2206 2008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
2210 Fix the QtWebKit build to match changes in r36016
2212 * Api/qwebframe.cpp:
2213 (QWebFrame::addToJavaScriptWindowObject):
2215 2008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
2219 Re-enable support for user stylesheets in QtWebKit
2221 QtWebKit now follows the FRAME_LOADS_USER_STYLESHEET
2222 code path, which allows us to keep API support for
2223 loading user style sheets from remote URLs.
2225 As part of the change UserStyleSheetLoader.cpp/h was
2226 moved from WebCore/loader/mac to WebCore/loader.
2228 * tests/qwebpage/tst_qwebpage.cpp:
2229 (tst_QWebPage::userStyleSheet):
2231 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
2233 Reviewed by Eric Seidel.
2235 [janitor/qt] Start replacing port specific getters with the generic native getter
2236 To get the native presentation of an image we currently have platform
2237 specific #ifdef's and a generic getter using NativeImagePtr. This patch
2238 extends this to the ImageBuffer and updates the Qt platform to get rid
2239 of the special #ifdefs.
2241 https://bugs.webkit.org/attachment.cgi?id=22861
2243 * Api/qwebframe.cpp:
2244 (QWebHitTestResultPrivate::QWebHitTestResultPrivate):
2245 * Api/qwebhistory.cpp:
2246 * Api/qwebsettings.cpp:
2247 (QWebSettings::iconForUrl):
2249 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
2253 Catch up with the introduction of PageGroup in r30840. Enable tracking of
2254 visited links, enable this in QWebPage next to the other WebCore init call.
2255 Calling this more than once is no issue and a cheap operation, we also do not
2256 reset the state. When clearing the history of a page, clear the link state.
2258 * Api/qwebhistory.cpp:
2259 (QWebHistory::clear):
2260 * Api/qwebhistoryinterface.cpp:
2261 (QWebHistoryInterface::setDefaultInterface):
2263 (QWebPagePrivate::QWebPagePrivate):
2265 2008-08-29 Holger Hans Peter Freyther <zecke@selfish.org>
2269 Revert revision 34348 which removed the global historyContains() function.
2271 This function was needed to implement the public API of QWebHistoryInterface
2272 and will be used again in the near future.
2274 * Api/qwebhistoryinterface.cpp:
2275 (WebCore::historyContains):
2277 2008-08-27 Erik Bunce <elbunce@thehive.com>
2279 Reviewed by Eric Seidel.
2281 https://bugs.webkit.org/show_bug.cgi?id=20223
2283 Add QWebPage::contentsChanged() signal to notify of content changes.
2287 * WebCoreSupport/EditorClientQt.cpp:
2288 (WebCore::EditorClientQt::respondToChangedContents):
2290 2008-08-27 Brady Eidson <beidson@apple.com>
2294 <rdar://problem/6134133> - Crash when loading large movie as a standalone document
2296 * WebCoreSupport/FrameLoaderClientQt.cpp:
2297 (WebCore::FrameLoaderClientQt::pluginWillHandleLoadError): Stubbed for now
2298 * WebCoreSupport/FrameLoaderClientQt.h:
2300 2008-08-25 Holger Hans Peter Freyther <zecke@selfish.org>
2304 [inspector] Emit signals from attachWindow and detachWindow in the Qt platform
2305 Allow the user of the API to honor the attachWindow and detachWindow
2306 requests and attach the QWebPage/QWebView wherever it is wanted. This needs
2307 some more API in QWebPage to be properly exposed.
2309 * WebCoreSupport/InspectorClientQt.cpp:
2310 (WebCore::InspectorClientQt::createPage):
2311 (WebCore::InspectorClientQt::attachWindow):
2312 (WebCore::InspectorClientQt::detachWindow):
2313 * WebCoreSupport/InspectorClientQt.h:
2315 2008-08-19 Alexey Proskuryakov <ap@webkit.org>
2317 Reviewed by Geoff Garen.
2319 Bring back shared JSGlobalData and implicit locking, because too many clients rely on it.
2321 * Api/qwebframe.cpp:
2322 (QWebFrame::addToJavaScriptWindowObject):
2324 2008-08-15 Håvard Wall <hwall@trolltech.com>
2328 Fixes: compile with QT_NO_UNDOCOMMAND/STACK
2332 (SetCursorEvent::SetCursorEvent):
2333 (QWebPagePrivate::createContextMenu):
2337 * WebCoreSupport/EditCommandQt.cpp:
2338 (EditCommandQt::EditCommandQt):
2339 * WebCoreSupport/EditCommandQt.h:
2340 * WebCoreSupport/EditorClientQt.cpp:
2342 (WebCore::EditorClientQt::shouldInsertText):
2343 (WebCore::EditorClientQt::shouldChangeSelectedRange):
2344 (WebCore::EditorClientQt::isEditable):
2345 (WebCore::EditorClientQt::registerCommandForUndo):
2346 (WebCore::EditorClientQt::clearUndoRedoOperations):
2347 (WebCore::EditorClientQt::canUndo):
2348 (WebCore::EditorClientQt::canRedo):
2349 (WebCore::EditorClientQt::undo):
2350 (WebCore::EditorClientQt::redo):
2351 (WebCore::EditorClientQt::shouldInsertNode):
2353 2008-08-15 Håvard Wall <hwall@trolltech.com>
2357 Fixes: compile with QT_NO_STYLE_STYLESHEET
2360 * WebCoreSupport/FrameLoaderClientQt.cpp:
2361 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
2362 (WebCore::FrameLoaderClientQt::createPlugin):
2364 2008-08-15 Håvard Wall <hwall@trolltech.com>
2368 Fixes: compile with QT_NO_SHORTCUT
2372 (QWebPagePrivate::mouseMoveEvent):
2373 (QWebPagePrivate::mouseReleaseEvent):
2374 (QWebPagePrivate::dragMoveEvent):
2376 2008-08-15 Håvard Wall <hwall@trolltech.com>
2380 Fixes: compile with QT_NO_CONTEXTMENU
2384 (editorCommandForWebActions):
2385 (QWebPagePrivate::QWebPagePrivate):
2386 (QWebPagePrivate::createMainFrame):
2387 (QWebPagePrivate::updateEditorActions):
2388 (QWebPage::setEditable):
2394 2008-08-15 Håvard Wall <hwall@trolltech.com>
2398 Fixes: compile with QT_NO_WHEELEVENT
2402 (QWebPagePrivate::updateEditorActions):
2408 2008-08-15 Håvard Wall <hwall@trolltech.com>
2412 Fixes: compile with QT_NO_PRINTER
2415 * Api/qwebframe.cpp:
2419 2008-08-15 David Boddie <dboddie@trolltech.com>
2423 Doc: Added documentation for default property values.
2427 (QWebPagePrivate::keyPressEvent):
2428 (QWebPage::triggerAction):
2429 (QWebPage::acceptNavigationRequest):
2433 2008-08-15 David Boddie <dboddie@trolltech.com>
2437 Doc: Renamed snippets that appear in the code directory.
2444 2008-08-12 Timothy Hatcher <timothy@apple.com>
2446 Add a stub for InspectorClient::setAttachedWindowHeight.
2448 * WebCoreSupport/InspectorClientQt.cpp:
2449 (WebCore::InspectorClientQt::setAttachedWindowHeight):
2450 Call notImplemented().
2451 * WebCoreSupport/InspectorClientQt.h:
2453 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
2457 Use full-page zoom in QtLauncher.
2459 * QtLauncher/main.cpp:
2460 (MainWindow::zoomIn):
2461 (MainWindow::zoomOut):
2462 (MainWindow::resetZoom):
2463 (MainWindow::setupUI):
2465 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
2469 Fix linking with QtWebKit.
2471 * Api/qwebframe.h: remove non-existing function/property.
2473 2008-08-13 Simon Hausmann <hausmann@webkit.org>
2477 Based on patch by Siraj razick <siraj.razick@collabora.co.uk>
2479 https://bugs.webkit.org/show_bug.cgi?id=19125
2481 Added functions to get/set the zoom factor.
2483 Added a QWebFrame/QWebView::zoomFactor as well as a boolean
2484 ZoomTextOnly attribute in QWebSettings.
2486 * Api/qwebframe.cpp:
2487 (QWebFrame::setZoomFactor):
2488 (QWebFrame::zoomFactor):
2490 * Api/qwebsettings.cpp:
2491 (QWebSettingsPrivate::apply):
2492 (QWebSettings::QWebSettings):
2493 * Api/qwebsettings.h:
2495 (QWebView::setZoomFactor):
2496 (QWebView::zoomFactor):
2499 2008-08-13 Simon Hausmann <hausmann@webkit.org>
2503 Fix QWebFrame::setHtml() not setting the new contents immediately.
2505 Added a setter to the DocumentLoader to toggle the deferred loading of the main
2506 resource when it comes from substitute data.
2508 Disable deferred loading of the main resource when we have valid substitute data,
2509 as used by QWebFrame::setHtml.
2511 * WebCoreSupport/FrameLoaderClientQt.cpp:
2512 (WebCore::FrameLoaderClientQt::download):
2514 2008-08-13 Simon Hausmann <hausmann@webkit.org>
2516 Rubber-stamped by Holger.
2518 Fix QWebPage::isModified().
2520 isModified() would return true after loading a new page or it would continue to
2521 return true after undoing modifications. Fix this by eliminating the
2522 QWebPagePrivate::modified variable and use the undoStack's canUndo() property
2525 https://bugs.webkit.org/show_bug.cgi?id=19252
2530 * WebCoreSupport/EditorClientQt.cpp:
2531 (WebCore::EditorClientQt::respondToChangedContents):
2533 2008-08-13 David Boddie <dboddie@trolltech.com>
2537 Updated docs with the signal emission behavior of urlChanged()
2539 * Api/qwebframe.cpp:
2541 2008-08-13 Ariya Hidayat <ariya.hidayat@trolltech.com>
2545 Fix Ctrl+Y to work again when editing text in contextEditable mode.
2547 This fixes regression in LayoutTests/editing/pasteboard/emacs-cntl-y-001.html
2549 * WebCoreSupport/EditorClientQt.cpp:
2550 (WebCore::EditorClientQt::handleKeyboardEvent):
2552 2008-08-13 Thiago Macieira <tjmaciei@trolltech.com>
2556 Fix encoding of [ and ] in the host part of the URL
2558 Until QUrl is fixed (making QUrl's tolerant parser more tolerant), we have to
2559 add this workaround to the QUrl <> WebCore::KURL conversion operator so that it
2560 doesn't encode [ and ] when they are found in the host part. That is, the
2563 is valid and should not be reencoded to:
2566 This change adds the automatic test for it.
2568 * tests/qwebframe/tst_qwebframe.cpp:
2570 2008-08-12 Urs Wolfer <uwolfer@kde.org>
2574 https://bugs.webkit.org/show_bug.cgi?id=20357
2576 Fix crash in QWebPage in case contextMenuEvent has been overwritten
2577 because context menu has the view as parent and thus is deleted too early.
2579 Add testcase for this crash.
2582 * tests/qwebpage/tst_qwebpage.cpp:
2583 (tst_QWebPage::contextMenuCrash):
2585 2008-08-07 Simon Hausmann <hausmann@webkit.org>
2587 Rubber-stamped by Lars.
2589 Added API tests for QWebPage/QWebFrame based on QTestLib.
2591 * tests/qwebframe/qwebframe.pro: Added.
2592 * tests/qwebframe/tst_qwebframe.cpp: Added.
2593 * tests/qwebpage/qwebpage.pro: Added.
2594 * tests/qwebpage/tst_qwebpage.cpp: Added.
2595 * tests/tests.pro: Added.
2597 2008-08-06 Benjamin C Meyer <ben@meyerhome.net>
2601 During the drag operation only accept the event if the action is not ignore action.
2604 (QWebPagePrivate::dragEnterEvent):
2605 (QWebPagePrivate::dragMoveEvent):
2606 (QWebPagePrivate::dropEvent):
2608 2008-08-06 Ariya Hidayat <ariya.hidayat@trolltech.com>
2610 Fix the Qt build due to recent ScriptController refactoring.
2612 * Api/qwebframe.cpp:
2613 (QWebFrame::addToJavaScriptWindowObject):
2615 2008-08-05 Tor Arne Vestbø <tavestbo@trolltech.com>
2619 Move event handling of the return-key from EditorClientQt to QWebPage.
2621 https://bugs.webkit.org/show_bug.cgi?id=20191
2623 This is a first step in refactoring the big switch block
2624 in EditorClientQt::handleKeyboardEvent to using WebActions
2627 The new logic uses two new StandardKeys from QKeySequence:
2629 - InsertParagraphSeparator
2630 - InsertLineSeparator
2632 Which translate to the commands InsertNewline and InsertLineBreak
2633 respectivly. On Windows/X11 pressing the shift modifier will invoke
2634 the latter action. For Mac this is triggered by pressing the meta
2637 Initial patch by: Erik Bunce
2640 (editorActionForKeyEvent):
2642 * WebCoreSupport/EditorClientQt.cpp:
2643 (WebCore::EditorClientQt::handleKeyboardEvent):
2645 2008-08-04 Erik Bunce <elbunce@thehive.com>
2649 https://bugs.webkit.org/show_bug.cgi?id=20221
2651 Add updateAction() support to ToggleBold, ToggleItalic, and ToggleUnderline.
2652 Add lookup table for mapping web actions to editor commands.
2655 (editorCommandForWebActions):
2656 (QWebPagePrivate::updateAction):
2657 (QWebPagePrivate::updateEditorActions):
2658 (QWebPage::triggerAction):
2659 (QWebPage::setEditable):
2661 2008-08-03 Ariya Hidayat <ariya.hidayat@trolltech.com>
2665 A bunch of improvements to the QtLauncher.
2668 - Unify and unclutter the toolbar, use menu for addition actions
2669 - Simplify URL edit, just use QLineEdit (no fancy close button etc)
2670 - Guess the URL from the command line so now we can run ./QtLauncher www.google.com
2671 - Shortcut keys for most actions
2672 - Simple autocomplete for the URL edit
2673 - Actions for zooming, New Window and Close Window
2674 - Show Format menu only when the content is set to editable
2676 * QtLauncher/main.cpp:
2677 (MainWindow::MainWindow):
2678 (MainWindow::webPage):
2679 (MainWindow::changeLocation):
2680 (MainWindow::loadFinished):
2681 (MainWindow::showLinkHover):
2682 (MainWindow::newWindow):
2683 (MainWindow::zoomIn):
2684 (MainWindow::zoomOut):
2685 (MainWindow::resetZoom):
2686 (MainWindow::print):
2687 (MainWindow::setEditable):
2688 (MainWindow::dumpHtml):
2689 (MainWindow::setupUI):
2692 2008-08-04 Erik Bunce <elbunce@thehive.com>
2696 https://bugs.webkit.org/show_bug.cgi?id=20198
2698 Allow Copy key sequence to work in non-editable areas.
2701 (QWebPagePrivate::keyPressEvent):
2703 2008-07-31 Erik Bunce <elbunce@thehive.com>
2707 Make sure edit actions get updated when the contents change.
2709 * WebCoreSupport/EditorClientQt.cpp:
2710 (WebCore::EditorClientQt::respondToChangedContents):
2712 2008-07-31 Erik Bunce <elbunce@thehive.com>
2716 Add simple edit test abilities to QtLauncher.
2718 * QtLauncher/main.cpp:
2719 (MainWindow::MainWindow):
2720 (MainWindow::setEditable):
2721 (MainWindow::dumpHtml):
2723 2008-07-31 Alexey Proskuryakov <ap@webkit.org>
2725 Rubber-stamped by Maciej.
2727 Eliminate JSLock (it was already disabled, removing the stub implementaion and all
2730 * Api/qwebframe.cpp:
2731 (QWebFrame::addToJavaScriptWindowObject):
2733 2008-07-27 David Kilzer <ddkilzer@apple.com>
2735 Fix Qt build failure.
2738 (QWebFrame::setScrollOffset): Make argument const.
2740 2008-07-26 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
2742 Reviewed by Simon Hausmann.
2744 https://bugs.webkit.org/show_bug.cgi?id=20010
2745 [Qt] Add API access to scrolling
2747 * Api/qwebframe.cpp: Added access to a frame scroll offset.
2748 (QWebFrame::scroll):
2749 (QWebFrame::scrollOffset):
2750 (QWebFrame::setScrollOffset):
2753 2008-07-26 Daniel Jalkut <jalkut@red-sweater.com>
2755 Build fix. Adjust to updated WebCore FrameLoader method names & signatures.
2758 (QWebPage::triggerAction):
2759 * WebCoreSupport/FrameLoaderClientQt.cpp:
2760 (WebCore::FrameLoaderClientQt::createFrame):
2762 2008-07-25 Joerg Bornemann <joerg.bornemann@trolltech.com>
2766 Compile with QT_NO_PRINTER.
2768 * QtLauncher/main.cpp:
2769 (MainWindow::MainWindow):
2771 2008-07-24 Tor Arne Vestbø <tavestbo@trolltech.com>
2775 Don't insert text on keyDown event in EditorClientQt.
2777 * WebCoreSupport/EditorClientQt.cpp:
2778 (WebCore::EditorClientQt::handleKeyboardEvent):
2780 2008-07-04 Benjamin C Meyer <ben@meyerhome.net>
2784 Update the webkit version in the QtWebKit useragent string to match trunk
2788 2008-07-02 Simon Hausmann <hausmann@webkit.org>
2793 (QWebPage::triggerAction): The signature of setBaseWritingDirection
2794 changed to take an enum instead of a string.
2796 2008-07-01 Alexey Proskuryakov <ap@webkit.org>
2798 Reviewed by Darin Adler.
2800 Disable JSLock for per-thread contexts.
2802 * Api/qwebframe.cpp:
2803 (QWebFrame::addToJavaScriptWindowObject):
2804 Pass a parameter (false) to JSLock to indicate that WebKit doesn't need locking.
2805 Include JSLock.h, as it is no longer brought in implicitly.
2807 2008-07-01 Tor Arne Vestbø <tavestbo@trolltech.com>
2811 Don't show the tooltip instantly in the QtLauncher.
2813 Let the QWebView handle tooltips by itself, so we get
2814 the expected delay as everywhere else.
2816 * QtLauncher/main.cpp:
2818 2008-06-30 Simon Hausmann <hausmann@webkit.org>
2820 Rubber-stamped by Niko.
2822 Removed the obsolete and unmaintained WebKitPart. The integration of
2823 QtWebKit into KDE is now done in the webkitkde component inside KDE.
2825 * WebKitPart/WebKitFactory.cpp: Removed.
2826 * WebKitPart/WebKitFactory.h: Removed.
2827 * WebKitPart/WebKitPart.cpp: Removed.
2828 * WebKitPart/WebKitPart.desktop: Removed.
2829 * WebKitPart/WebKitPart.h: Removed.
2830 * WebKitPart/WebKitPart.rc: Removed.
2831 * WebKitPart/WebKitPartBrowser.rc: Removed.
2832 * WebKitPart/WebKitPartBrowserExtension.cpp: Removed.
2833 * WebKitPart/WebKitPartBrowserExtension.h: Removed.
2834 * WebKitPart/WebKitPartClient.cpp: Removed.
2835 * WebKitPart/WebKitPartClient.h: Removed.
2836 * WebKitPart/WebKitPartInterface.cpp: Removed.
2837 * WebKitPart/WebKitPartInterface.h: Removed.
2838 * WebKitPart/org.kde.WebKitPart.xml: Removed.
2840 2008-06-24 Simon Hausmann <hausmann@webkit.org>
2842 Fix the Qt build, added missing include for RuntimeObjectImp.
2844 * Api/qwebframe.cpp:
2846 2008-06-23 Benjamin C Meyer <ben@meyerhome.net>
2850 Add function to retrieve the standard context menu
2852 2008-06-20 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
2856 https://bugs.webkit.org/show_bug.cgi?id=19082
2857 [Qt] Full-page plugins not activated
2859 * WebCoreSupport/FrameLoaderClientQt.cpp:
2860 (WebCore::FrameLoaderClientQt::committedLoad): Re-check if there's a
2861 plugin present, as it can be created during the function.
2863 2008-06-20 Marco Barisione <marco.barisione@collabora.co.uk>
2867 https://bugs.webkit.org/show_bug.cgi?id=19082
2868 [Qt] Full-page plugins not activated
2870 * WebCoreSupport/FrameLoaderClientQt.cpp:
2871 (WebCore::FrameLoaderClientQt::canShowMIMEType): Return true if the
2872 MIME type is supported by a plugin.
2874 2008-06-18 Alexey Proskuryakov <ap@webkit.org>
2876 Reviewed by Darin Adler.
2878 Prepare JavaScript heap for being per-thread.
2880 * Api/qwebframe.cpp:
2881 (QWebFrame::addToJavaScriptWindowObject): Trying not to break the build.
2883 2008-06-18 Julien Chaffraix <jchaffraix@webkit.org>
2885 Qt Build fix after r34627.
2887 * WebCoreSupport/FrameLoaderClientQt.cpp:
2888 (WebCore::FrameLoaderClientQt::createPlugin):
2890 2008-06-15 Darin Adler <darin@apple.com>
2892 - give Frame object functions shorter names: scriptProxy() -> script(),
2893 selectionController() -> selection(), animationController() -> animation()
2895 * Api/qwebframe.cpp:
2896 (QWebFrame::evaluateJavaScript):
2898 (QWebPagePrivate::focusInEvent):
2899 (QWebPagePrivate::focusOutEvent):
2900 (QWebPage::inputMethodQuery):
2901 * WebCoreSupport/EditorClientQt.cpp:
2902 (WebCore::EditorClientQt::handleKeyboardEvent):
2904 2008-06-15 Darin Adler <darin@apple.com>
2906 - new names for more JavaScriptCore files
2910 2008-06-15 Darin Adler <darin@apple.com>
2912 - new names for a few key JavaScriptCore files
2914 * Api/qwebframe.cpp:
2916 2008-06-14 Darin Adler <darin@apple.com>
2918 Rubber stamped by Sam.
2920 - new names for kjs_binding.h and kjs_proxy.h
2922 * Api/qwebframe.cpp:
2923 (QWebFrame::evaluateJavaScript):
2926 2008-06-14 Darin Adler <darin@apple.com>
2930 * Api/qwebframe.cpp:
2931 (QWebFramePrivate::init): Added a missing semicolon.
2933 2008-06-14 Darin Adler <darin@apple.com>
2937 - more https://bugs.webkit.org/show_bug.cgi?id=17257
2938 start ref counts at 1 instead of 0 for speed
2940 * Api/qwebframe.cpp:
2941 (QWebFramePrivate::init): Use create instead of new.
2942 * WebCoreSupport/FrameLoaderClientQt.cpp:
2943 (WebCore::FrameLoaderClientQt::createDocumentLoader): Ditto.
2945 2008-06-13 Darin Adler <darin@apple.com>
2949 * WebCoreSupport/FrameLoaderClientQt.h: Add missing argument.
2951 2008-06-13 Darin Adler <darin@apple.com>
2953 Reviewed by John Sullivan.
2955 - updated for addition of FormState argument to action policy functions
2957 * WebCoreSupport/FrameLoaderClientQt.cpp:
2958 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNewWindowAction):
2959 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
2961 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
2965 Fix left-click and middle-click mouse event are not properly accepted.
2967 When copying or pasting text using left or middle-click, the event must be
2968 accepted so that it will not be potentially processed further by the parent
2969 and/or sub-classed widget.
2973 (QWebPagePrivate::mouseReleaseEvent):
2975 2008-06-11 Ariya Hidayat <ariya.hidayat@trolltech.com>
2979 Fix input element does not accept character typed in using AltGr.
2981 EditorClient is modified to catch AltGr and Ctrl+Alt key combination.
2982 This fixes http://trolltech.com/developer/task-tracker/index_html?id=207050&method=entry
2984 * WebCoreSupport/EditorClientQt.cpp:
2985 (WebCore::EditorClientQt::handleKeyboardEvent):
2987 2008-05-26 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
2991 https://bugs.webkit.org/show_bug.cgi?id=19323
2993 Implemented the QWebPage::editable property.
2995 Small documentation fixes by Simon.
2998 (QWebPagePrivate::QWebPagePrivate):
2999 (QWebPage::setEditable):
3000 (QWebPage::isEditable):
3002 * Api/qwebpage_p.h: implement the editable property and add API so that
3003 applications can switch edit mode on and off for a particular QWebPage
3004 * WebCoreSupport/EditorClientQt.cpp: retrieve editable property from the
3005 QWebPage instead of always returning false
3007 2008-06-09 Tor Arne Vestbø <tavestbo@trolltech.com>
3011 Make sure web action in context menus have the right enablement,
3012 while not messing up other web actions not included in the menu.
3015 (QWebPagePrivate::createContextMenu):
3016 (QWebPage::updatePositionDependentActions):
3019 2008-06-09 Benjamin C Meyer <ben@meyerhome.net>
3023 Add Shift-Space shortcut to go up one screen, the opposite of Space
3024 which goes down one screen.
3027 (QWebPagePrivate::handleScrolling):
3029 2008-06-04 Tor Arne Vestbø <tavestbo@trolltech.com>
3033 Fix a failing assertion when calling QWebFrame::evaluateJavaScript.
3035 The starting line number has to be 1 instead of 0.
3037 * Api/qwebframe.cpp:
3038 (QWebFrame::evaluateJavaScript):
3040 2008-06-03 Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
3042 Reviewed by Darin Adler.
3044 * Api/qwebhistoryinterface.cpp: Remove WebCore::historyContains(). This
3045 function is not used anywhere internally and is only a convenience
3046 function that can still be accomplished using
3047 QWebHistoryInterface::historyContains();
3049 2008-05-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
3053 Doc: Mention the requirement of a QApplication with QtWebKit
3058 2008-05-29 David Boddie <dboddie@trolltech.com>
3062 Some clarifications for the documentation.
3066 * Api/qwebpluginfactory.cpp:
3068 2008-05-27 Ariya Hidayat <ariya.hidayat@trolltech.com>
3072 Fix web inspector does not returns its state properly after its window is minimized.
3074 As hinted by Holger, InspectorClientView::hideEvent is not needed.
3075 This fixes bug https://bugs.webkit.org/show_bug.cgi?id=18967
3077 * WebCoreSupport/InspectorClientQt.cpp:
3079 2008-05-21 Siraj Razick <siraj.razick@collabora.co.uk>
3083 Add <param name="classid"/> support for application/x-qt-object plugins
3085 * WebCoreSupport/FrameLoaderClientQt.cpp:
3086 (WebCore::FrameLoaderClientQt::createPlugin):
3088 2008-05-13 Andy Shaw <andy@trolltech.com>
3092 Fixes: QWebHistory::forward() should go forwards and not back
3094 * Api/qwebhistory.cpp:
3096 2008-05-12 Alexey Proskuryakov <ap@webkit.org>
3098 Roll out recent threading changes (r32807, r32810, r32819, r32822) to simplify
3099 SquirrelFish merging.
3101 * Api/qwebframe.cpp:
3102 (QWebFrame::addToJavaScriptWindowObject):
3104 2008-05-09 Thiago Macieira <tjmaciei@trolltech.com>
3108 Fix bad includes in QtWebKit public headers.
3110 Make sure to include qglobal.h using the QtCore prefix so that an explicit
3111 include/QtCore is not needed in the application's build system. Also make sure
3112 that qwebsettings.h includes the local qwebkitglobal.h.
3115 * Api/qwebkitglobal.h:
3116 * Api/qwebsettings.h:
3118 2008-05-08 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
3122 https://bugs.webkit.org/show_bug.cgi?id=18935
3124 Based on work by Sriram Neelakandan for the Gtk port.
3126 * WebCoreSupport/FrameLoaderClientQt.cpp: Initialize
3127 m_hasSentResponseToPlugin.
3128 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3129 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
3131 2008-05-08 Warwick Allison <warwick@trolltech.com>
3135 Fixes: WebKit expects initial input method state to be *disabled*.
3137 At least QWS does not need the initial input method state to be forced to
3138 enabled, but other platforms (esp. X11) do. Until fixed/tested on those
3139 platforms, this is specific to QWS.
3143 (QWebView::QWebView):
3145 2008-05-06 Simon Hausmann <hausmann@webkit.org>
3149 Fix logic error in QWebHitTestResult::isNull().
3151 * Api/qwebframe.cpp:
3153 2008-05-02 Benjamin Meyer <bmeyer@trolltech.com>
3157 Doc: Mention that you have to enable plugins in QWebSettings for them to work.
3161 2008-05-02 Simon Hausmann <hausmann@webkit.org>
3163 Fix the Qt build, ExecState is required here.
3165 * Api/qwebframe.cpp:
3166 (QWebFrame::addToJavaScriptWindowObject):
3168 2008-05-01 Marc Ordinas i Llopis <marc.ordinasillopis@collabora.co.uk>
3170 Reviewed by Alp Toker.
3171 Qt parts OK'ed by Simon Hausmann.
3173 https://bugs.webkit.org/show_bug.cgi?id=14750
3174 Added support for NPAPI plugins on Gtk and Qt-x11 ports.
3176 * WebCoreSupport/FrameLoaderClientQt.cpp:
3177 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3178 (WebCore::FrameLoaderClientQt::finishedLoading):
3179 (WebCore::FrameLoaderClientQt::setMainDocumentError):
3180 (WebCore::FrameLoaderClientQt::committedLoad):
3181 (WebCore::FrameLoaderClientQt::objectContentType):
3182 (WebCore::FrameLoaderClientQt::createPlugin):
3183 (WebCore::FrameLoaderClientQt::redirectDataToPlugin):
3184 * WebCoreSupport/FrameLoaderClientQt.h:
3186 2008-04-30 Julien Chaffraix <jchaffraix@webkit.org>
3190 Fixes a brace error that made Qt 4.4 build but not Qt 4.3.
3195 2008-04-30 Tor Arne Vestbø <tavestbo@trolltech.com>
3199 In focusIn and focusOut event always update the active state of the
3200 focus controller. Fixes ~400 failing layout tests due to missing
3201 editing callbacks that relied on the correct focus.
3204 (QWebPagePrivate::focusInEvent):
3205 (QWebPagePrivate::focusOutEvent):
3207 2008-04-29 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
3211 Fix compilation with QT_NO_PRINTER
3217 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
3221 Ensure that relative URL is converted to absolute URL.
3223 This is necessary because loading a relative URL is not really supported
3224 (the web page may load, but the subsequent URLs for images and links will
3225 not be resolved properly).
3226 This also fixes https://bugs.webkit.org/show_bug.cgi?id=18484
3229 * Api/qwebframe.cpp:
3230 (ensureAbsoluteUrl):
3231 (QWebFrame::setUrl):
3234 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
3238 Simplification of Qt Launcher (no animation and use standard progress bar widget)
3240 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.
3243 * QtLauncher/main.cpp:
3244 (MainWindow::MainWindow):
3246 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
3250 Update the cursor when the frame/page loading is finished.
3252 This fixes https://bugs.webkit.org/show_bug.cgi?id=18712
3255 * WebCoreSupport/FrameLoaderClientQt.cpp:
3256 (WebCore::FrameLoaderClientQt::postProgressFinishedNotification):
3257 (WebCore::FrameLoaderClientQt::setMainFrameDocumentReady):
3259 2008-04-29 Simon Hausmann <shausman@trolltech.com>
3263 Fixes: QWebPage::acceptNavigationRequest not being called / linkClicked() not being emitted when clicking on <a href="..." target="_blank"> kind of links.
3265 Call QWebPage::acceptNavigationRequest when the creation of a new window with
3266 URL is requested. The frame pointer is set to null in this case.
3270 (QWebPage::setViewportSize):
3271 * WebCoreSupport/FrameLoaderClientQt.cpp:
3272 (WebCore::FrameLoaderClientQt::startDownload):
3273 (WebCore::FrameLoaderClientQt::createFrame):
3275 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
3279 Use the WebCore facility to do the scrolling. Move some code around.
3282 (QWebPagePrivate::keyPressEvent):
3283 (QWebPagePrivate::shortcutOverrideEvent):
3284 (QWebPagePrivate::handleScrolling):
3287 2008-04-29 Ariya Hidayat <ariya.hidayat@trolltech.com>
3291 fix potential crash when loading image(s)
3293 Crash may occur. If compiled with 4.3, the variable is not initialized.
3296 (QWebPagePrivate::QWebPagePrivate):
3298 2008-04-29 Holger Hans Peter Freyther <zecke@selfish.org>
3302 Calling QWebView::setCursor will override the WebCore Cursor.
3303 Calling QWebView::setCursor will override the WebCore Cursor using
3304 QWidget::unsetCursor will revert to the WebCore Cursor.
3306 For detecting the unset we have to compare the shape of the
3307 cursor to the default arrow. Qt::WA_SetCursor can not be used
3308 as it is set unconditionally but conditionally removed.
3310 Calling QWidget::setCursor will immediately send the CursorChange
3311 event. We listen to this event to decide if we currently use a
3312 WebCore cursor, got a cursor from outside, or revert to the default.
3314 This should be race free and work reliable, the manual test for this
3315 is WebCore/manual-tests/cursor.html
3318 (SetCursorEvent::SetCursorEvent):
3321 (QWebViewPrivate::QWebViewPrivate):
3322 (QWebViewPrivate::setCursor):
3323 (QWebView::QWebView):
3326 2008-04-29 Kavindra Devi Palaraja <kdpalara@trolltech.com>
3330 Documentation fixes:
3332 - Fixed a qdoc warning
3333 - Mention that fav icons can be of arbitrary size
3334 - Fix signature of QWebPage::acceptNavigationRequest show in the documentation
3336 * Api/qwebframe.cpp:
3339 * Api/qwebsettings.cpp:
3342 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
3346 Fix QWebView::loadFinished isn't always emitted
3348 Replaced loadDone() with loadFinished(bool) and moved the signals for progress
3349 tracking (start, progres, and finish) to the page instead of the frame. This
3350 ensures that we emit loadFinished even when a subframe started the actual load.
3352 This causes a few regressions in the layout tests that we for now accept for
3353 the sake of the correct API. Layout tests we can fix any time though, including
3354 patch release, the API however we can't change anymore in patch releases.
3356 * Api/qwebframe.cpp:
3359 (QWebPage::totalBytes):
3362 (QWebView::setPage):
3364 * QtLauncher/main.cpp:
3365 (MainWindow::MainWindow):
3366 * WebCoreSupport/FrameLoaderClientQt.cpp:
3367 (drtDescriptionSuitableForTestResult):
3368 (WebCore::FrameLoaderClientQt::FrameLoaderClientQt):
3369 (WebCore::FrameLoaderClientQt::setFrame):
3370 (WebCore::FrameLoaderClientQt::transitionToCommittedFromCachedPage):
3371 (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
3372 (WebCore::FrameLoaderClientQt::willChangeTitle):
3373 (WebCore::FrameLoaderClientQt::createDocumentLoader):
3374 (WebCore::FrameLoaderClientQt::download):
3375 (WebCore::FrameLoaderClientQt::dispatchDecidePolicyForNavigationAction):
3376 * WebCoreSupport/FrameLoaderClientQt.h:
3378 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
3382 Added more documentation for QWebSettings, QWebPluginFactory and QWebFrame
3384 * Api/qwebframe.cpp:
3385 * Api/qwebpluginfactory.cpp:
3386 * Api/qwebsettings.cpp:
3387 (QWebSettings::QWebSettings):
3388 (QWebSettings::setUserStyleSheetUrl):
3389 (QWebSettings::iconForUrl):
3390 (QWebSettings::webGraphic):
3391 (QWebSettings::maximumPagesInCache):
3392 (QWebSettings::setFontFamily):
3393 (QWebSettings::resetFontFamily):
3394 (QWebSettings::testAttribute):
3395 (QWebSettings::resetAttribute):
3397 2008-04-28 Ariya Hidayat <ahidayat@trolltech.com>
3401 Fix document/frame title not reset when loading a new URI
3403 We should assume first the frame has no title. If it has, then the dispatchDidReceiveTitle()
3404 will be called very soon with the correct title.
3405 This properly resets the title when we navigate to a URI without a title.
3408 * WebCoreSupport/FrameLoaderClientQt.cpp:
3410 2008-04-28 David Boddie <dboddie@trolltech.com>
3414 Minor documentation changes.
3418 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
3422 Prevent middle-click from triggering open URL from clipboard when the event has already been accepted.
3426 (QWebPagePrivate::mouseMoveEvent):
3427 (QWebPagePrivate::mousePressEvent):
3428 (QWebPagePrivate::mouseDoubleClickEvent):
3429 (QWebPagePrivate::mouseTripleClickEvent):
3430 (QWebPagePrivate::mouseReleaseEvent):
3432 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
3436 Fix scrollbar behavior in QtWebKit to match QScrollBar.
3438 Right click context menu is now supported, along with
3439 middle click to center slider thumb over mouse cursor.
3443 (QWebPage::linkDelegationPolicy):
3445 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
3449 Implemented channel-based logging for QtWebKit.
3451 Comma-separated log channels are read from the QT_WEBKIT_LOG environment variable.
3452 Warnings for notImplemented() is still output by default, but can be disabled
3453 by setting DISABLE_NI_WARNINGS=1.
3456 (QWebPagePrivate::QWebPagePrivate):
3458 2008-04-28 Simon Hausmann <shausman@trolltech.com>
3460 Rubber-stamped by Lars
3462 Removed setHtml(const QByteArray &) overload as it breaks the common use of the setHtml() API.
3464 * Api/qwebframe.cpp:
3469 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
3473 Doc - adding more documentation to QWebFrame, QWebPage and QWebView
3476 * Api/qwebframe.cpp:
3481 (QWebView::changeEvent):
3483 2008-04-28 Simon Hausmann <shausman@trolltech.com>
3487 Fixes: Popups/Context menu in WebKit appearing at the wrong location when embedded in the graphics view or using multiple screens
3489 Give the popups the right parent widget and the right coordinates relative within the parent.
3494 2008-04-28 Benjamin Meyer <bmeyer@trolltech.com>
3498 Doc: Add see also's (and a few minor whitespace/typo corrections)
3501 * Api/qwebframe.cpp:
3502 (QWebFrame::~QWebFrame):
3503 (QWebFrame::setHtml):
3504 (QWebFrame::setContent):
3505 (QWebFrame::parentFrame):
3506 (QWebFrame::childFrames):
3507 (QWebFrame::setScrollBarValue):
3508 (QWebFrame::scrollBarValue):
3509 (QWebFrame::scrollBarMaximum):
3510 (QWebFrame::scrollBarMinimum):
3511 (QWebFrame::render):
3513 (QWebFrame::geometry):
3515 (QWebFrame::evaluateJavaScript):
3517 (QWebPagePrivate::mousePressEvent):
3518 (QWebPagePrivate::mouseDoubleClickEvent):
3519 (QWebPage::~QWebPage):
3520 (QWebPage::javaScriptPrompt):
3522 (QWebPage::setViewportSize):
3523 (QWebPage::acceptNavigationRequest):
3525 (QWebPage::userAgentForUrl):
3526 (QWebPagePrivate::_q_onLoadProgressChanged):
3530 2008-04-28 Kavindra Devi Palaraja <kdpalara@trolltech.com>
3534 Submitting more documentation for QWebPage
3539 2008-04-28 Lincoln Ramsay <lincoln.ramsay@trolltech.com>
3543 Compile when QT_NO_CLIPBOARD is defined.
3547 (QWebPage::triggerAction):
3549 2008-04-28 David Boddie <dboddie@trolltech.com>
3553 Minor documentation fix.
3556 * Api/qwebhistory.cpp:
3558 2008-04-28 Holger Hans Peter Freyther <zecke@selfish.org>
3562 Implement QWebPage::createPlugin
3564 The code is coming from the demo browser and needed here
3565 for some manual tests.
3568 * QtLauncher/QtLauncher.pro:
3569 * QtLauncher/main.cpp:
3570 (WebPage::createPlugin):
3572 2008-04-28 Simon Hausmann <hausmann@webkit.org>
3574 Qt/Win build fix. Include config.h to get the implicit MathExtras.h
3575 inclusion correct with regards to rand_s.
3577 * Api/qwebhistory.cpp:
3579 2008-04-28 Tor Arne Vestbø <tavestbo@trolltech.com>
3583 https://bugs.webkit.org/show_bug.cgi?id=18713
3585 Fix scrollbar painting issues in QtWebKit.
3587 Hovering and click-draging outside of the scrollbar would
3588 produce unexpected and inconcistent results. We also didn't
3589 pass on leave-events to the underlying WebKit code, which
3590 was nessecary to implement the paint fix.
3592 Note: The event handling of the Leave event should be moved
3593 out of QWebView::event() and into a proper override for 4.5.
3596 (QWebPagePrivate::leaveEvent):
3601 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
3603 Reviewed by Simon, Holger.
3605 Fixed focus handling when a node is focused while the corresponding QWebPage does not have the focus.
3607 * Correctly de- and reactivate the focused frame in focusOut/focusInEvent
3608 without telling the focus controller. We don't want to change the focused frame
3609 - the controller has to remember it in fact - but instead just deactivate the
3610 frame for correct painting as RenderTheme::isFocused() uses the activation
3614 (QWebPagePrivate::focusInEvent):
3615 (QWebPagePrivate::focusOutEvent):
3617 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
3621 completed documentation for the Detailed Description section for QWebView
3626 2008-04-25 Denis Dzyubenko <denis.dzyubenko@trolltech.com>
3630 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.
3633 * Api/qwebhistory.cpp:
3634 (QWebHistory::back):
3635 (QWebHistory::forward):
3636 (QWebHistory::goToItem):
3638 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
3642 Fix resubmit of HTML forms when initially denied by QWebPage::acceptNavigationRequest().
3645 * WebCoreSupport/FrameLoaderClientQt.cpp:
3646 (WebCore::FrameLoaderClientQt::createFrame):
3648 2008-04-25 Simon Hausmann <hausmann@webkit.org>
3652 When pressing backspace in a line edit in a webpage we should not go back to the previous page.
3654 The shortcut for back on Windows is backspace. Implemented shortcut override
3655 handling in QWebView/QWebPage to prevent this.
3659 (QWebPagePrivate::wheelEvent):
3660 (editorActionForKeyEvent):
3661 (QWebPagePrivate::keyPressEvent):
3662 (QWebPagePrivate::inputMethodEvent):
3663 (QWebPagePrivate::shortcutOverrideEvent):
3669 2008-04-25 Ariya Hidayat <ariya.hidayat@trolltech.com>
3673 Fix triple-clicking does not work in a web page
3677 (QWebPagePrivate::updateEditorActions):
3678 (QWebPagePrivate::timerEvent):
3679 (QWebPagePrivate::mousePressEvent):
3680 (QWebPagePrivate::mouseDoubleClickEvent):
3681 (QWebPage::undoStack):
3684 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
3688 When pressing Ctrl-Up the keyboard modifiers could include other modifiers
3692 (QWebPagePrivate::keyPressEvent):
3694 2008-04-25 Tor Arne Vestbø <tavestbo@trolltech.com>
3698 Fix handling of Javascript's confirm() function in QtWebKit.
3703 2008-04-25 Kavindra Devi Palaraja <kdpalara@trolltech.com>
3707 Doc - added a screenshot, flowchart, and a snippet to the QWebView documentation to improve clarity
3712 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
3716 QWebPage: missing signal when window.print() is requested from javascript
3721 * WebCoreSupport/ChromeClientQt.cpp:
3723 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
3727 Fixes: "Save Image" action wasn't doing anything.
3731 (QWebPage::triggerAction):
3733 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
3737 Apply key event changes to the current frame, not the main frame.
3739 Example: hitting space bar should scroll current frame, not the main frame
3740 which doesn't even have a scrollbar.
3744 (QWebPagePrivate::keyPressEvent):
3746 2008-04-25 Benjamin Meyer <bmeyer@trolltech.com>
3750 Fixes: QWebFrame crash when fetching the icon
3752 Just call QWebSettings::iconForUrl to not duplicate code and obey the mutex lock.
3754 * Api/qwebframe.cpp:
3756 2008-04-25 Warwick Allison <warwick@trolltech.com>
3760 Fixes: Scrollbars did not report correct maximum.
3762 * Api/qwebframe.cpp:
3764 2008-04-25 David Boddie <dboddie@trolltech.com>
3768 Documentation updates for some of the QWeb classes
3770 * Api/qwebframe.cpp:
3771 * Api/qwebhistory.cpp:
3772 * Api/qwebsettings.cpp:
3775 2008-04-25 Holger Hans Peter Freyther <zecke@selfish.org>
3779 Implement dumping of resource load callbacks to pass http/tests/xmlhttprequest/abort-should-cancel-load.html
3781 Similar to Editing and Frameloading we do the dumping within WebCore