WebKit-https.git
11 years agoAdjust WinCairo-specific property sheet to use static versions of
bfulgham@webkit.org [Wed, 9 Sep 2009 07:13:05 +0000 (07:13 +0000)]
Adjust WinCairo-specific property sheet to use static versions of
libjpeg.lib and libpng.lib.  Change to libpng.lib required addition
of zlib.lib to link.

Reviewed by Dave Levin.

* win/tools/vsprops/WinCairo.vsprops:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48203 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoJSON.stringify(Date) loses the milliseconds information
oliver@apple.com [Wed, 9 Sep 2009 07:02:24 +0000 (07:02 +0000)]
JSON.stringify(Date) loses the milliseconds information
https://bugs.webkit.org/show_bug.cgi?id=29063

Reviewed by Maciej Stachowiak.

Make sure we include milliseconds in the output of toISOString.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48202 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoReviewed by NOBODY (Build fix).
oliver@apple.com [Wed, 9 Sep 2009 05:55:54 +0000 (05:55 +0000)]
Reviewed by NOBODY (Build fix).

Remove a few incorrect changes I left in.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48201 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoSupport numeric index getters in bindings
oliver@apple.com [Wed, 9 Sep 2009 04:32:30 +0000 (04:32 +0000)]
Support numeric index getters in bindings
https://bugs.webkit.org/show_bug.cgi?id=29067

Reviewed by Sam Weinig.

Add HasNumericIndexGetter to indicate a non-custom getter that
returns a number.  The numeric index getter also uses PropertySlot's
setValue rather than setCustomIndex to avoid an additional indirect
call.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48200 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Wed, 9 Sep 2009 03:03:18 +0000 (03:03 +0000)]
2009-09-08  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Mark Rowe.

        Reduce dglazkov's boboiness by properly concatenating revision value.

        * BuildSlaveSupport/build.webkit.org-config/master.cfg: Used substitution
            rather than "+".

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48199 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agowxWebKit Python extension build fix - get swig.py if it doesn't exist.
kevino@webkit.org [Wed, 9 Sep 2009 02:25:23 +0000 (02:25 +0000)]
wxWebKit Python extension build fix - get swig.py if it doesn't exist.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48198 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agowx build fix for 2.8.
kevino@webkit.org [Wed, 9 Sep 2009 02:20:26 +0000 (02:20 +0000)]
wx build fix for 2.8.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48197 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoshared-worker-exception.html needs to pause to let console messages get written out
atwilson@chromium.org [Wed, 9 Sep 2009 01:45:17 +0000 (01:45 +0000)]
shared-worker-exception.html needs to pause to let console messages get written out
https://bugs.webkit.org/show_bug.cgi?id=29043

Reviewed by Maciej Stachowiak.

* fast/workers/resources/shared-worker-exception.js:
(worker.onmessage):
Now invokes layoutTestController.notifyDone() via a timer so any pending ReportException tasks get a chance to fire.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48196 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Jens Alfke <snej@chromium.org>
eric@webkit.org [Wed, 9 Sep 2009 00:29:09 +0000 (00:29 +0000)]
2009-09-08  Jens Alfke  <snej@chromium.org>

        Reviewed by Eric Seidel.

        In Mac Chromium, clicking below the last line of an editable area (textarea or
        contenteditable) should put the caret at the end of the last line, as in Mac Safari.

        Tests: LayoutTests/editing/selection/click-in-margins-inside-editable-div.html
               LayoutTests/editing/selection/click-in-padding-with-multiple-line-boxes.html

        * page/Settings.cpp:
        (WebCore::Settings::Settings): Change #if PLATFORM_MAC to be Mac-Chrome-inclusive.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48195 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoFix an incorrect variable name in UpdateChromiumSource.
mrowe@apple.com [Wed, 9 Sep 2009 00:01:34 +0000 (00:01 +0000)]
Fix an incorrect variable name in UpdateChromiumSource.

* BuildSlaveSupport/build.webkit.org-config/master.cfg:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48194 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoDon't check for leaks on the release SnowLeopard builder.
mrowe@apple.com [Tue, 8 Sep 2009 22:51:32 +0000 (22:51 +0000)]
Don't check for leaks on the release SnowLeopard builder.

* BuildSlaveSupport/build.webkit.org-config/config.json:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48193 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoAdd a SnowLeopard release builder.
mrowe@apple.com [Tue, 8 Sep 2009 22:39:43 +0000 (22:39 +0000)]
Add a SnowLeopard release builder.

* BuildSlaveSupport/build.webkit.org-config/config.json:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48192 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoMake sure not to do an early return when a data URL stylesheet successfully loads...
hyatt@apple.com [Tue, 8 Sep 2009 22:17:21 +0000 (22:17 +0000)]
Make sure not to do an early return when a data URL stylesheet successfully loads.  We need to still
clear the old cached sheet out of all existing Frames.  Fixes the data URL stylesheet layout test failure.

Reviewed by Mark Rowe.

* page/Page.cpp:
(WebCore::Page::userStyleSheetLocationChanged):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48191 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoFix windows build.
weinig@apple.com [Tue, 8 Sep 2009 22:14:51 +0000 (22:14 +0000)]
Fix windows build.

* dom/Document.idl:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48190 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoMore robust wx build fix for 2.9.
kevino@webkit.org [Tue, 8 Sep 2009 22:11:42 +0000 (22:11 +0000)]
More robust wx build fix for 2.9.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48189 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoWebCore: Fix for https://bugs.webkit.org/show_bug.cgi?id=27046
weinig@apple.com [Tue, 8 Sep 2009 22:02:41 +0000 (22:02 +0000)]
WebCore: Fix for https://bugs.webkit.org/show_bug.cgi?id=27046
Implement CSSOM DocumentView.caretRangeFromPoint

Reviewed by Timothy Hatcher.

Tests: fast/dom/Document/CaretRangeFromPoint/basic.html
       fast/dom/Document/CaretRangeFromPoint/replace-element.html

* dom/Document.cpp:
(WebCore::Document::caretRangeFromPoint):
* dom/Document.h:
* dom/Document.idl:

LayoutTests: Test for https://bugs.webkit.org/show_bug.cgi?id=27046
Implement CSSOM DocumentView.caretRangeFromPoint

Reviewed by Timothy Hatcher.

* fast/dom/Document/CaretRangeFromPoint: Added.
* fast/dom/Document/CaretRangeFromPoint/basic-expected.txt: Added.
* fast/dom/Document/CaretRangeFromPoint/basic.html: Added.
* fast/dom/Document/CaretRangeFromPoint/replace-element-expected.txt: Added.
* fast/dom/Document/CaretRangeFromPoint/replace-element.html: Added.
* fast/dom/Window/window-properties-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48188 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoRemove end of line whitespace check from check-webkit-style.
levin@chromium.org [Tue, 8 Sep 2009 21:46:12 +0000 (21:46 +0000)]
Remove end of line whitespace check from check-webkit-style.
https://bugs.webkit.org/show_bug.cgi?id=29053

Patch by David Levin <levin@chromium.org> on 2009-09-08
Reviewed by Darin Adler.

* Scripts/modules/cpp_style.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48187 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agowx build fix, generate derived sources earlier in order to make sure
kevino@webkit.org [Tue, 8 Sep 2009 21:32:46 +0000 (21:32 +0000)]
wx build fix, generate derived sources earlier in order to make sure
they're found by the build system when generating the list of sources to build.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48186 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Nate Chapin <japhet@chromium.org>
japhet@chromium.org [Tue, 8 Sep 2009 21:11:56 +0000 (21:11 +0000)]
2009-09-08  Nate Chapin  <japhet@chromium.org>

        Reviewed by Dimitri Glazkov.

        <iterator> include in V8Proxy.h is spurious and causing ObjC compile issues for Chromium.

        Test: Chromium mac canary build is fixed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48185 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Brian Weinstein <bweinstein@apple.com>
bweinstein@apple.com [Tue, 8 Sep 2009 21:05:26 +0000 (21:05 +0000)]
2009-09-08  Brian Weinstein  <bweinstein@apple.com>

        Rubber-stamped by Adam Roben.

        Updated results for media/audio-controls-rendering.html, and added 3 failing
        tests to the Skipped list to investigate further <http://webkit.org/b/29047>.

        * platform/win/Skipped:
        * platform/win/media/audio-controls-rendering-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48184 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Tue, 8 Sep 2009 21:01:35 +0000 (21:01 +0000)]
2009-09-08  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Xan Lopez.

        https://bugs.webkit.org/show_bug.cgi?id=29044
        [GTK] Should update suggested-filename when the response is received

        Set suggested filename also when the response only comes after the
        download has started.

        * webkit/webkitdownload.cpp:
        (webkit_download_set_response):
        (webkit_download_set_suggested_filename):
        * webkit/webkitwebview.cpp:
        (webkit_web_view_request_download):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48183 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Tue, 8 Sep 2009 20:34:54 +0000 (20:34 +0000)]
2009-09-08  Xan Lopez  <xlopez@igalia.com>

        Unreviewed attempt to fix the GTK+ build.

        * GNUmakefile.am:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48182 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agohttps://bugs.webkit.org/show_bug.cgi?id=28987, make the Document cache the page's...
hyatt@apple.com [Tue, 8 Sep 2009 20:26:14 +0000 (20:26 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=28987, make the Document cache the page's user stylesheet in
parsed form.  Allows the sheet to survive across destruction/re-creation of the CSSStyleSelector.

Reviewed by Eric Seidel.

* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::CSSStyleSelector):
* css/CSSStyleSelector.h:
* dom/Document.cpp:
(WebCore::Document::attach):
(WebCore::Document::pageUserSheet):
(WebCore::Document::clearPageUserSheet):
(WebCore::Document::recalcStyleSelector):
* dom/Document.h:
* loader/PlaceholderDocument.cpp:
(WebCore::PlaceholderDocument::attach):
* page/Page.cpp:
(WebCore::Page::userStyleSheetLocationChanged):
* page/Settings.cpp:
(WebCore::Settings::setUserStyleSheetLocation):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48181 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUnreviewed buildfix.
kenneth@webkit.org [Tue, 8 Sep 2009 20:23:47 +0000 (20:23 +0000)]
Unreviewed buildfix.

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2009-09-08
Fix Qt build after 48167, by adding the new cpp/h files
added to WebCore.gypi to WebCore.pro as well.

* WebCore.pro:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48180 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUnreviewed build fix.
kenneth@webkit.org [Tue, 8 Sep 2009 20:11:08 +0000 (20:11 +0000)]
Unreviewed build fix.

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2009-09-08
Potential build fix for Qt 4.5

* Api/qwebpage.cpp:
(QWebPagePrivate::mousePressEvent):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48179 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Tue, 8 Sep 2009 20:06:05 +0000 (20:06 +0000)]
2009-09-08  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Gustavo Noronha.

        should not pass URI fragments to libsoup
        https://bugs.webkit.org/show_bug.cgi?id=28687

        Strip the fragment from the URI before passing it to soup, since
        it forwards it to servers in some cases (like when using a proxy)
        which confuses them and makes them return 403/404.

        * platform/network/soup/ResourceHandleSoup.cpp:
        (WebCore::startHttp):
        (WebCore::):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48178 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoWebCore: Add QGraphicsScene events support to the Qt platform events.
kenneth@webkit.org [Tue, 8 Sep 2009 19:40:42 +0000 (19:40 +0000)]
WebCore: Add QGraphicsScene events support to the Qt platform events.

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2009-09-08
Reviewed by Simon Hausmann.

* platform/PlatformMouseEvent.h:
* platform/PlatformWheelEvent.h:
* platform/qt/PlatformMouseEventQt.cpp:
(WebCore::PlatformMouseEvent::PlatformMouseEvent):
* platform/qt/WheelEventQt.cpp:
(WebCore::PlatformWheelEvent::applyDelta):
(WebCore::PlatformWheelEvent::PlatformWheelEvent):

WebKit/qt: Add support for handling QGraphicsScene events.

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2009-09-08
Reviewed by Simon Hausmann.

* Api/qwebpage.cpp:
(QWebPagePrivate::mouseMoveEvent):
(QWebPagePrivate::mousePressEvent):
(QWebPagePrivate::mouseDoubleClickEvent):
(QWebPagePrivate::mouseTripleClickEvent):
(QWebPagePrivate::handleClipboard):
(QWebPagePrivate::mouseReleaseEvent):
(QWebPagePrivate::wheelEvent):
(QWebPagePrivate::dragEnterEvent):
(QWebPagePrivate::dragLeaveEvent):
(QWebPagePrivate::dragMoveEvent):
(QWebPagePrivate::dropEvent):
(QWebPage::event):
* Api/qwebpage_p.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48177 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUpdate Security Group Members list.
weinig@apple.com [Tue, 8 Sep 2009 19:40:31 +0000 (19:40 +0000)]
Update Security Group Members list.

Reviewed by Adele Peterson.

* security/security-group-members.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48176 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Michael Nordman <michaeln@google.com>
eric@webkit.org [Tue, 8 Sep 2009 19:28:47 +0000 (19:28 +0000)]
2009-09-08  Michael Nordman  <michaeln@google.com>

        Reviewed by Eric Seidel.

        [Chromium] Cleanup: remove a few deprecated methods.
        https://bugs.webkit.org/show_bug.cgi?id=28960

        No new tests, just syntactic sugar.

        * platform/network/chromium/ResourceRequest.h:
        * platform/network/chromium/ResourceResponse.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48175 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Yongjun Zhang <yongjun.zhang@nokia.com>
eric@webkit.org [Tue, 8 Sep 2009 19:21:14 +0000 (19:21 +0000)]
2009-09-08  Yongjun Zhang  <yongjun.zhang@nokia.com>

        Reviewed by Ariya Hidayat.

        https://bugs.webkit.org/show_bug.cgi?id=28981

        [Qt] make npapi.h compile in winscw compiler.

        Add XP_SYMBIAN macro to identify Symbian OS; this macro should be used for Symbian
        specific changes in npapi.h.
        Undefine XP_WIN when building for Symbian to avoid including Windows specific code.

        * bridge/npapi.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48174 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Priit Laes <plaes@plaes.org>
kov@webkit.org [Tue, 8 Sep 2009 19:06:24 +0000 (19:06 +0000)]
2009-09-08  Priit Laes  <plaes@plaes.org>

        Reviewed by Gustavo Noronha.

        Fix up erroneus 'Since: @version@' tags in documentation.

        * webkit/webkitwebdatasource.cpp:
        * webkit/webkitwebresource.cpp:
        (webkit_web_resource_class_init):
        * webkit/webkitwebsettings.cpp:
        (webkit_web_settings_class_init):
        * webkit/webkitwebview.cpp:
        (webkit_web_view_class_init):
        * webkit/webkitwebwindowfeatures.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48173 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoWeb Inspector assertion failure related to marking
oliver@apple.com [Tue, 8 Sep 2009 19:02:04 +0000 (19:02 +0000)]
Web Inspector assertion failure related to marking
https://bugs.webkit.org/show_bug.cgi?id=28997

Reviewed by Geoff Garen.

When wrapping the callback the JSInspectorCallbackWrapper creator was using
inheritorID for the prototype structure which is unsafe for anything other
than a pure JS object.  Instead we now create a new structure, which while
inefficient is not problematic as this code is not hit frequently.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48172 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Kelly Norton <knorton@google.com>
dglazkov@chromium.org [Tue, 8 Sep 2009 18:34:48 +0000 (18:34 +0000)]
2009-09-08  Kelly Norton  <knorton@google.com>

        Reviewed by Dimitri Glazkov.

        Add missing extension to the file entry in WebCore.vcproj.

        * WebCore.vcproj/WebCore.vcproj: Added "cpp".

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48171 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Cameron McCormack <cam@mcc.id.au>
eric@webkit.org [Tue, 8 Sep 2009 18:02:48 +0000 (18:02 +0000)]
2009-09-08  Cameron McCormack  <cam@mcc.id.au>

        Reviewed by Darin Adler.

        Fix DumpRenderTree build from clean tree on Tiger
        https://bugs.webkit.org/show_bug.cgi?id=28927

        * DumpRenderTree/mac/PerlSupport/Makefile: Ensure the
        DerivedSources/DumpRenderTree directory exists when
        building on Tiger.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48170 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoWebCore: dataTransfer.types() should not return Files if file list is empty in the...
jianli@chromium.org [Tue, 8 Sep 2009 18:02:11 +0000 (18:02 +0000)]
WebCore: dataTransfer.types() should not return Files if file list is empty in the clipboard.
https://bugs.webkit.org/show_bug.cgi?id=28891

Reviewed by David Levin.

We change the behavior to handle the empty file list in order to match the spec.

Tested by clipboard-file-access.html.

* platform/mac/ClipboardMac.mm:
(WebCore::addHTMLClipboardTypesForCocoaType):
(WebCore::ClipboardMac::types):

LayoutTests: dataTransfer.types() should not return Files if file list is empty in the clipboard.
https://bugs.webkit.org/show_bug.cgi?id=28891

Reviewed by David Levin.

Update the test script and expected result to reflect the behavior change.

* http/tests/security/clipboard/clipboard-file-access-expected.txt:
* http/tests/security/clipboard/resources/clipboard-file-access.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48169 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Steve VanDeBogart <vandebo@chromium.org>
japhet@chromium.org [Tue, 8 Sep 2009 17:58:05 +0000 (17:58 +0000)]
2009-09-08  Steve VanDeBogart  <vandebo@chromium.org>

        Reviewed by Eric Seidel.

        Handle middle click in Chromium like QT
        https://bugs.webkit.org/show_bug.cgi?id=28696

        Tested by middle-click-onpaste.html.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48168 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Kelly Norton <knorton@google.com>
eric@webkit.org [Tue, 8 Sep 2009 17:55:32 +0000 (17:55 +0000)]
2009-09-08  Kelly Norton  <knorton@google.com>

        Reviewed by Eric Seidel.

        WebInspector: Adds a timeline agent to InspectorController that collects
        high-level timing data about event dispatch, layout, painting and HTML
        parsing and makes it available to Inspector.
        https://bugs.webkit.org/show_bug.cgi?id=25503

        * WebCore.gypi:
        * WebCore.xcodeproj/project.pbxproj:
        * dom/Document.cpp:
        (WebCore::Document::recalcStyle):
        * dom/Document.h:
        (WebCore::Document::inspectorTimelineAgent):
        * dom/Node.cpp:
        (WebCore::Node::dispatchGenericEvent):
        * html/HTMLTokenizer.cpp:
        (WebCore::HTMLTokenizer::write):
        * inspector/DOMDispatchTimelineItem.cpp: Added.
        (WebCore::DOMDispatchTimelineItem::DOMDispatchTimelineItem):
        (WebCore::DOMDispatchTimelineItem::convertToScriptObject):
        * inspector/DOMDispatchTimelineItem.h: Added.
        (WebCore::DOMDispatchTimelineItem::~DOMDispatchTimelineItem):
        * inspector/InspectorBackend.cpp:
        (WebCore::InspectorBackend::enableTimeline):
        (WebCore::InspectorBackend::disableTimeline):
        (WebCore::InspectorBackend::timelineEnabled):
        * inspector/InspectorBackend.h:
        * inspector/InspectorBackend.idl:
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::setFrontendProxyObject):
        (WebCore::InspectorController::close):
        (WebCore::InspectorController::resetScriptObjects):
        (WebCore::InspectorController::enableTimeline):
        (WebCore::InspectorController::disableTimeline):
        (WebCore::InspectorController::timelineEnabled):
        * inspector/InspectorController.h:
        (WebCore::InspectorController::timelineAgent):
        * inspector/InspectorFrontend.cpp:
        (WebCore::InspectorFrontend::timelineWasEnabled):
        (WebCore::InspectorFrontend::timelineWasDisabled):
        (WebCore::InspectorFrontend::addItemToTimeline):
        * inspector/InspectorFrontend.h:
        * inspector/InspectorTimelineAgent.cpp: Added.
        (WebCore::InspectorTimelineAgent::InspectorTimelineAgent):
        (WebCore::InspectorTimelineAgent::~InspectorTimelineAgent):
        (WebCore::InspectorTimelineAgent::willDispatchDOMEvent):
        (WebCore::InspectorTimelineAgent::didDispatchDOMEvent):
        (WebCore::InspectorTimelineAgent::willLayout):
        (WebCore::InspectorTimelineAgent::didLayout):
        (WebCore::InspectorTimelineAgent::willRecalculateStyle):
        (WebCore::InspectorTimelineAgent::didRecalculateStyle):
        (WebCore::InspectorTimelineAgent::willPaint):
        (WebCore::InspectorTimelineAgent::didPaint):
        (WebCore::InspectorTimelineAgent::willWriteHTML):
        (WebCore::InspectorTimelineAgent::didWriteHTML):
        (WebCore::InspectorTimelineAgent::reset):
        (WebCore::InspectorTimelineAgent::didCompleteCurrentRecord):
        (WebCore::InspectorTimelineAgent::currentTimeInMilliseconds):
        (WebCore::InspectorTimelineAgent::sessionTimeInMilliseconds):
        * inspector/InspectorTimelineAgent.h: Added.
        * inspector/TimelineItem.cpp: Added.
        (WebCore::TimelineItem::TimelineItem):
        (WebCore::TimelineItem::addToTimeline):
        (WebCore::TimelineItem::convertToScriptObject):
        (WebCore::TimelineItem::convertChildrenToScriptArray):
        (WebCore::TimelineItem::addChildItem):
        * inspector/TimelineItem.h: Added.
        (WebCore::):
        (WebCore::TimelineItem::~TimelineItem):
        (WebCore::TimelineItem::previous):
        (WebCore::TimelineItem::releasePrevious):
        (WebCore::TimelineItem::setEndTime):
        (WebCore::TimelineItem::type):
        * inspector/front-end/TimelineAgent.js: Added.
        (WebInspector.TimelineAgent):
        (WebInspector.addItemToTimeline):
        (WebInspector.timelineWasEnabled):
        (WebInspector.timelineWasDisabled):
        * inspector/front-end/inspector.html:
        * page/FrameView.cpp:
        (WebCore::FrameView::layout):
        (WebCore::FrameView::paintContents):
        * page/FrameView.h:
        (WebCore::FrameView::inspectorTimelineAgent):
        * page/Page.cpp:
        (WebCore::Page::inspectorTimelineAgent):
        * page/Page.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48167 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Benjamin Poulain <benjamin.poulain@nokia.com>
eric@webkit.org [Tue, 8 Sep 2009 17:44:17 +0000 (17:44 +0000)]
2009-09-08  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Simon Hausmann.

        https://bugs.webkit.org/show_bug.cgi?id=29007
        Add a test for the signal QWebFrame::javaScriptWindowObjectCleared()

        * tests/qwebframe/tst_qwebframe.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48166 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
eric@webkit.org [Tue, 8 Sep 2009 17:37:10 +0000 (17:37 +0000)]
2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Simon Hausmann.

        [Qt] Fix unused variable warnings
        https://bugs.webkit.org/show_bug.cgi?id=29018

        No functional change, no tests.

        * history/qt/HistoryItemQt.cpp:
        (WebCore::HistoryItem::restoreState):
        * platform/graphics/qt/ImageBufferQt.cpp:
        (WebCore::putImageData):
        * platform/qt/RenderThemeQt.cpp:
        (WebCore::RenderThemeQt::paintMenuList):
2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Simon Hausmann.

        [Qt] Fix unused variable warnings
        https://bugs.webkit.org/show_bug.cgi?id=29018

        * Api/qwebpage.cpp:
        (QWebPagePrivate::keyPressEvent):
        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::startDownload):
        (WebCore::FrameLoaderClientQt::createFrame):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48165 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
eric@webkit.org [Tue, 8 Sep 2009 17:30:05 +0000 (17:30 +0000)]
2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Ariya Hidayat.

        [Qt] Use the declaration order in initializer lists
        https://bugs.webkit.org/show_bug.cgi?id=29017

        No functional change, no new tests.

        * platform/graphics/qt/FontCacheQt.cpp:
        (WebCore::FontPlatformDataCacheKey::FontPlatformDataCacheKey):
        * platform/network/qt/QNetworkReplyHandler.cpp:
        (WebCore::QNetworkReplyHandler::QNetworkReplyHandler):
2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Ariya Hidayat.

        [Qt] Use the declaration order in initializer lists
        https://bugs.webkit.org/show_bug.cgi?id=29017

        * Api/qwebframe_p.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48164 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Kent Tamura <tkent@chromium.org>
eric@webkit.org [Tue, 8 Sep 2009 17:23:06 +0000 (17:23 +0000)]
2009-09-08  Kent Tamura  <tkent@chromium.org>

        Reviewed by Eric Seidel.

        Tests for ValidityState::typeMismatch() for <input type=number>.
        https://bugs.webkit.org/show_bug.cgi?id=28934

        * fast/forms/ValidityState-typeMismatch-number-expected.txt: Added.
        * fast/forms/ValidityState-typeMismatch-number.html: Added.
        * fast/forms/resources/ValidityState-typeMismatch-number.js: Added.
2009-09-08  Kent Tamura  <tkent@chromium.org>

        Reviewed by Eric Seidel.

        Implement ValidityState::typeMismatch() for <input type=number>.
        https://bugs.webkit.org/show_bug.cgi?id=28934

        Test: fast/forms/ValidityState-typeMismatch-number.html

        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::formStringToDouble):
        * html/HTMLInputElement.h:
        * html/ValidityState.cpp:
        (WebCore::ValidityState::typeMismatch):
        * html/ValidityState.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48163 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agowx build fix after introduction of platform/mock directory.
kevino@webkit.org [Tue, 8 Sep 2009 17:19:31 +0000 (17:19 +0000)]
wx build fix after introduction of platform/mock directory.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48162 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
eric@webkit.org [Tue, 8 Sep 2009 17:15:01 +0000 (17:15 +0000)]
2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Simon Hausmann.

        Build fix when USE(LOCKFREE_THREADSAFESHARED) is not defined
        https://bugs.webkit.org/show_bug.cgi?id=29011

        * wtf/Threading.h: Use LOCKFREE_THREADSAFESHARED guard for
        atomicIncrement and atomicDecrement

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48161 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUnreviewed.
yael.aharon@nokia.com [Tue, 8 Sep 2009 16:39:26 +0000 (16:39 +0000)]
Unreviewed.

Patch by Yael Aharon <yael.aharon@nokia.com> on 2009-09-08
Add myself to list of committers.

* Scripts/modules/committers.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48160 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
laszlo.1.gombos@nokia.com [Tue, 8 Sep 2009 16:08:19 +0000 (16:08 +0000)]
2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Unreviewed.

        Add myself to list of committers.

        * Scripts/modules/committers.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48159 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Cameron McCormack <cam@mcc.id.au>
eric@webkit.org [Tue, 8 Sep 2009 15:51:30 +0000 (15:51 +0000)]
2009-09-08  Cameron McCormack  <cam@mcc.id.au>

        Reviewed by Darin Adler.

        prepare-ChangeLog too chatty on file additions
        https://bugs.webkit.org/show_bug.cgi?id=29019

        * Scripts/prepare-ChangeLog: Omit description of added properties
        on newly added files.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48158 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago 2009-09-08 Andras Becsi <becsi.andras@stud.u-szeged.hu>
kov@webkit.org [Tue, 8 Sep 2009 15:49:11 +0000 (15:49 +0000)]
 2009-09-08  Andras Becsi  <becsi.andras@stud.u-szeged.hu>

        Reviewed by Gustavo Noronha.

        [Gtk] Another attempt of a buildfix.

        * GNUmakefile.am: Modified. Remove some extra IDL files added in r48153.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48157 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Steve Block <steveblock@google.com>
eric@webkit.org [Tue, 8 Sep 2009 15:43:32 +0000 (15:43 +0000)]
2009-09-08  Steve Block  <steveblock@google.com>

        Reviewed by Adam Barth.

        Adds a LayoutTestController method to set the permission state for Geolocation.
        This is required to use the mock Geolocation service for testing.
        https://bugs.webkit.org/show_bug.cgi?id=29027

        * fast/dom/Geolocation/resources/permission-denied.js: Added. Tests that the error callback is invoked with a permission error code when Geolocation permission is denied and the Geolocation service provides a good position fix.
        * fast/dom/Geolocation/permission-denied-expected.txt: Added.  Expected result for above test.
        * fast/dom/Geolocation/permission-denied.html: Added. Wrapper for above test.
        * fast/dom/Geolocation/resources/success.js: Added. Tests that the success callback is invoked when the Geolocation service provides a good position fix.
        * fast/dom/Geolocation/success-expected.txt: Added. Expected result for above test.
        * fast/dom/Geolocation/success.html: Added. Wrapper for above test.
        * platform/gtk/Skipped:
2009-09-08  Steve Block  <steveblock@google.com>

        Reviewed by Adam Barth.

        Adds a LayoutTestController method to set the permission state for Geolocation.
        This is required to use the mock Geolocation service for testing.
        https://bugs.webkit.org/show_bug.cgi?id=29027

        * DumpRenderTree/LayoutTestController.cpp: Modified.
        (setDatabaseQuotaCallback): Modified. Style fix.
        (setGeolocationPermissionCallback): Added. Sets the Geolocation permission state.
        (LayoutTestController::staticFunctions): Modified. Registers the above function on the LayoutTestController.
        * DumpRenderTree/LayoutTestController.h: Modified.
        (LayoutTestController::setGeolocationPermission): Added. Sets the Geolocation permission state.
        (LayoutTestController::isGeolocationPermissionSet): Added. Returns whether the Geolocation permission has been set.
        (LayoutTestController::geolocationPermission): Added. Returns the Geolocation permission state.
        * DumpRenderTree/mac/UIDelegate.mm: Modified.
        (-[UIDelegate webView:frame:requestGeolocationPermission:securityOrigin:]): Added. Implement chrome method to respond to request for Geolocation permission state. Response is made using above methods to access permission state.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48156 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Zoltan Horvath <zoltan@webkit.org>
zoltan@webkit.org [Tue, 8 Sep 2009 15:00:27 +0000 (15:00 +0000)]
2009-09-07  Zoltan Horvath  <zoltan@webkit.org>

        Reviewed by Darin Adler.

        Allow custom memory allocation control in Yarr's RegexInterpreter
        https://bugs.webkit.org/show_bug.cgi?id=29025

        Inherits RegexInterpreter classes from FastAllocBase (bug #20422), which has
        been instantiated by 'new':

        class ByteDisjunction
        -> instantiated in JavaScriptCore/yarr/RegexInterpreter.cpp:1462

        struct BytecodePattern
        -> instantiated in JavaScriptCore/yarr/RegexInterpreter.cpp:1279

        * yarr/RegexInterpreter.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48155 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoWebCore: [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
hausmann@webkit.org [Tue, 8 Sep 2009 14:43:08 +0000 (14:43 +0000)]
WebCore: [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
https://bugs.webkit.org/show_bug.cgi?id=28865

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2009-09-08
Reviewed by Simon Hausmann.

Save the QCursor as a property in WidgetQt::setCursor
and actually change the cursor in QWebView::event() by making use
of the QEvent::DynamicPropertyChange event type.
When unsetCursor() is called on the QWidget we can fallback to
the cursor set by WebCore.

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
         Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07

* platform/qt/WidgetQt.cpp:
(WebCore::Widget::setCursor):

WebKit/qt: [Qt] Make cursor set cleaner in QtWebKit Api: eliminate SetCursorEvent hack.
https://bugs.webkit.org/show_bug.cgi?id=28865

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> on 2009-09-08
Reviewed by Simon Hausmann.

Clean up the unserCursor hack to use the QCursor set
as a property of the QWidget by WebCore::WidgetQt.

Remove all code that are no longer necessary for getting
cursor change events.

Patch by Kenneth Rohde Christiansen <kenneth@webkit.org> and
         Antonio Gomes <antonio.gomes@openbossa.org> on 2009-09-07

* Api/qwebpage.cpp:
* Api/qwebpage_p.h:
* Api/qwebview.cpp:
(QWebViewPrivate::QWebViewPrivate):
(QWebView::event):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48154 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Andras Becsi <becsi.andras@stud.u-szeged.hu>
kov@webkit.org [Tue, 8 Sep 2009 14:34:06 +0000 (14:34 +0000)]
2009-09-08  Andras Becsi  <becsi.andras@stud.u-szeged.hu>

        Reviewed by Gustavo Noronha.

        [Gtk] Buildfix for build error introduced in r48150.

        * GNUmakefile.am: Modified. Added missing IDL files.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48153 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago[Qt] Buildfix. Build error caused by r48150.
vestbo@webkit.org [Tue, 8 Sep 2009 14:05:47 +0000 (14:05 +0000)]
[Qt] Buildfix. Build error caused by r48150.

Patch by Csaba Osztrogonac <oszi@inf.u-szeged.hu> on 2009-09-08
Reviewed by Tor Arne Vestbø.

* WebCore.pro: missing IDL files added

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48152 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-08 Laszlo Gombos <laszlo.1.gombos@nokia.com>
laszlo.1.gombos@nokia.com [Tue, 8 Sep 2009 13:27:07 +0000 (13:27 +0000)]
2009-09-08  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Simon Hausmann.

        [Qt] QtWebKit single API to enable persistency
        https://bugs.webkit.org/show_bug.cgi?id=28682

        Disable LocalStorage, ApplicationCache, HTML5 offline storage by
        default.

        If persistency is enabled the default directory for LocalStorage and
        ApplicationCache is now based on QDesktopServices::DataLocation and not
        QDesktopServices::CacheLocation (as it is expected to keep this data
        around after a reboot).

        If persistency is enabled initialize HTML5 offline storage as well - this
        fixed offline Storage for QtLauncher.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48151 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago Update Canvas 3D implementation to match spec
cmarrin@apple.com [Tue, 8 Sep 2009 13:01:34 +0000 (13:01 +0000)]
    Update Canvas 3D implementation to match spec
        https://bugs.webkit.org/show_bug.cgi?id=29010

        This adds several new CanvasXXXArray classes each of which has a custom constructor
        and custom getters and setters. Also changed CanvasRenderingContext3D and GraphicsContext3D
        to match the new and changed API.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48150 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago[Qt] Add expected files for new tests since we pass them.
vestbo@webkit.org [Tue, 8 Sep 2009 12:35:04 +0000 (12:35 +0000)]
[Qt] Add expected files for new tests since we pass them.

Patch by Andras Becsi <becsi.andras@stud.u-szeged.hu> on 2009-09-08
Reviewed by Tor Arne Vestbø.

* platform/qt/fast/reflections/abs-position-in-reflection-expected.txt: Added.
* platform/qt/fast/repaint/rel-positioned-inline-with-overflow-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48149 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoRefactor --strict switch to --ignore-metrics and correct the
vestbo@webkit.org [Tue, 8 Sep 2009 12:27:02 +0000 (12:27 +0000)]
Refactor --strict switch to --ignore-metrics and correct the
implementation to make the feature usable on all platforms.
https://bugs.webkit.org/show_bug.cgi?id=28907

Patch by Andras Becsi <becsi.andras@stud.u-szeged.hu> on 2009-09-07
Reviewed by Tor Arne Vestbø.

run-webkit-tests --ignore-metrics strips the font related metrics from
the actual and expected data before comparing them.
In this way the render trees can be checked for obvious differences but
a successful test implies by no means that the layout is actually correct.

* Scripts/run-webkit-tests:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48148 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUnreviewed.
hamaji@chromium.org [Tue, 8 Sep 2009 09:51:15 +0000 (09:51 +0000)]
Unreviewed.

Change my mail address on the list of committers.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48147 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoMake m_windowVisible more consistent with the actual visibility of the inspector.
hausmann@webkit.org [Tue, 8 Sep 2009 07:45:17 +0000 (07:45 +0000)]
Make m_windowVisible more consistent with the actual visibility of the inspector.

Patch by Jocelyn Turcotte <jocelyn.turcotte@nokia.com> on 2009-09-08
Reviewed by Timothy Hatcher.

* inspector/InspectorController.cpp:
(WebCore::InspectorController::setWindowVisible):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48146 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 8 Sep 2009 06:22:55 +0000 (06:22 +0000)]
2009-09-07  Adam Barth  <abarth@webkit.org>

        Unreviewed speculative build fix for Snow Leopard.

        * platform/GeolocationService.cpp:
        (WebCore::createGeolocationServiceNull):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48145 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Steve Block <steveblock@google.com>
abarth@webkit.org [Tue, 8 Sep 2009 06:13:55 +0000 (06:13 +0000)]
2009-09-07  Steve Block  <steveblock@google.com>

        Reviewed by Adam Barth.

        Adds a mock Geolocation service. This will be used to provide predictable behavior of the
        Geolocation API for use in LayoutTests. Later changes will integrate the the mock
        Geolocation service with DumpRenderTree.
        https://bugs.webkit.org/show_bug.cgi?id=28264

        * fast/dom/Geolocation/resources/error.js: Added. Tests that the error callback is called when the service reports an error.
        * fast/dom/Geolocation/error-expected.txt: Added. Expected result for above test.
        * fast/dom/Geolocation/error.html: Added. Wrapper for above test.
2009-09-07  Steve Block  <steveblock@google.com>

        Reviewed by Adam Barth.

        Adds a mock Geolocation service. This will be used to provide predictable behavior of the
        Geolocation API for use in LayoutTests. Later changes will integrate the the mock
        Geolocation service with DumpRenderTree.
        https://bugs.webkit.org/show_bug.cgi?id=28264

        The mock Geolocation service returns a fixed position or error. This position or error can be
        set through static methods on the GeolocationService class. The position or error is shared
        between all instances of the mock Geolocation service.

        Implementation details.
        The GeolocationService object maintains a pointer to a factory function which it uses to create
        Geolocation service instances. Each platform implementing Geolocation sets this pointer
        to the factory function for their platform's implementation. When the mock Geolocation service
        is activated, the factory function pointer is reset to the factory function for the mock service.

        Test: fast/dom/Geolocation/error.html

        * WebCore.base.exp: Modified. Exports GeolocationServiceMock methods.
        * GNUMakefile.am: Modified. Added GeolocationServiceMock files.
        * WebCore.gypi: Modified. Added GeolocationServiceMock files.
        * WebCore.pro: Modified. Added GeolocationServiceMock files.
        * WebCore.vcproj/WebCore.vcproj: Modified. Added GeolocationServiceMock files.
        * WebCore.vcproj/WebCoreCommon.vsprops: Modified. Added mock directory to includes.
        * WebCore.xcodeproj/project.pbxproj: Modified. Added GeolocationServiceMock files and exports some headers.
        * WebCoreSources.bkl: Modified. Added GeolocationServiceMock files.
        * page/ChromeClient.h: Modified. Fixed comment.
        * page/Geolocation.cpp: Modified.
        (WebCore::Geolocation::setIsAllowed): Modified. Fixed error string.
        * platform/GeolocationService.cpp: Modified.
        (WebCore::createGeolocationServiceNull): Added. Returns null in place of a Geolocation service. Used to avoid link errors on platforms where Geolocation is not implemented.
        (WebCore::GeolocationService::create): Added. Uses the factory function pointer to create a Geolocation service implementation.
        (WebCore::GeolocationService::useMock): Added. Configures the GeolocationServie to use the mock implementation.
        * platform/GeolocationService.h: Modified.
        * platform/mock: Added.
        * platform/mock/GeolocationServiceMock.cpp: Added.
        (WebCore::GeolocationServiceMock::create): Added. Creates a GeolocationServiceMock object.
        (WebCore::GeolocationServiceMock::GeolocationServiceMock): Added. Constructor.
        (WebCore::GeolocationServiceMock::~GeolocationServiceMock): Added. Destructor.
        (WebCore::GeolocationServiceMock::setPosition): Added. Sets the position that will be returned by the object.
        (WebCore::GeolocationServiceMock::setError): Added. Sets the error that will be returned by the object.
        (WebCore::GeolocationServiceMock::startUpdating): Added. GeolocationService implementation. Starts the service.
        (WebCore::GeolocationServiceMock::stopUpdating): Added. GeolocationService implementation. Stops the service.
        (WebCore::GeolocationServiceMock::timerFired): Added. Used to provide an asynchronous callback when the service is started.
        (WebCore::GeolocationServiceMock::makeGeolocationCallbackFromAllInstances): Added. Used to call back when the position or error is updated.
        (WebCore::GeolocationServiceMock::makeGeolocationCallback): Added. Used to call back when the service starts.
        (WebCore::GeolocationServiceMock::initStatics): Added. Initializes statics members with constructors.
        (WebCore::GeolocationServiceMock::cleanUpStatics): Added. Cleans up static members with constructors.
        * platform/mock/GeolocationServiceMock.h: Added.
        (WebCore::GeolocationServiceMock::lastPosition): Added. Returns the fixed position.
        (WebCore::GeolocationServiceMock::lastError): Added. Returns the fixed error.
        * platform/gtk/GeolocationServiceGtk.cpp: Modified.
        (WebCore::GeolocationServiceGtk::create): Added. Creates an instance of GeolocationServiceGtk.
        * platform/gtk/GeolocationServiceGtk.h: Modified.
        * platform/mac/GeolocationServiceMac.h: Modified.
        * platform/mac/GeolocationServiceMac.mm: Modified.
        (WebCore::GeolocationServiceMac::create): Added. Creates an instance of GeolocationServiceMac.
2009-09-07  Steve Block  <steveblock@google.com>

        Reviewed by Adam Barth.

        Adds a mock Geolocation service. This will be used to provide predictable behavior of the
        Geolocation API for use in LayoutTests. Later changes will integrate the the mock
        Geolocation service with DumpRenderTree.
        https://bugs.webkit.org/show_bug.cgi?id=28264

        * WebKit.xcodeproj/project.pbxproj: Modified. Adds WebGeolocationMock.
2009-09-07  Steve Block  <steveblock@google.com>

        Reviewed by Adam Barth.

        Adds a mock Geolocation service. This will be used to provide predictable behavior of the
        Geolocation API for use in LayoutTests. Later changes will integrate the the mock
        Geolocation service with DumpRenderTree.
        https://bugs.webkit.org/show_bug.cgi?id=28264

        * WebCoreSupport/WebGeolocationMockPrivate.h: Added.
        * WebCoreSupport/WebGeolocationMock.mm: Added.
        (+[WebGeolocationMock setError:code:]): Added. Used by DumpRender tree to configure the mock Geolocation service.
        (+[WebGeolocationMock setPosition:latitude:longitude:accuracy:]): Added. Used by DumpRender tree to configure the mock Geolocation service.
        * WebKit.exp: Modified. Exports WebGeolocationMock.
2009-09-07  Steve Block  <steveblock@google.com>

        Reviewed by Adam Barth.

        Adds a mock Geolocation service. This will be used to provide predictable behavior of the
        Geolocation API for use in LayoutTests. Later changes will integrate the the mock
        Geolocation service with DumpRenderTree.
        https://bugs.webkit.org/show_bug.cgi?id=28264

        * DumpRenderTree/LayoutTestController.cpp: Modified.
        (setMockGeolocationPositionCallback): Added. Configures the mock Geolocation service.
        (setMockGeolocationErrorCallback): Added. Configures the mock Geolocation service.
        (LayoutTestController::staticFunctions): Added. Registers the above functions on the LayoutTestController.
        * DumpRenderTree/LayoutTestController.h: Modified.
        * DumpRenderTree/mac/LayoutTestControllerMac.mm: Modified.
        (LayoutTestController::setMockGeolocationPosition): Added. Configures the mock Geolocation service.
        (LayoutTestController::setMockGeolocationError): Added. Configures the mock Geolocation service.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48144 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Jeremy Orlow <jorlow@chromium.org>
jorlow@chromium.org [Tue, 8 Sep 2009 05:19:00 +0000 (05:19 +0000)]
2009-09-07  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Eric Seidel.

        Clean up localStorage.clear() layout test.
        https://bugs.webkit.org/show_bug.cgi?id=28939

        This is the first step of https://bugs.webkit.org/show_bug.cgi?id=27897 which
        is a pretty major cleanup of all the dom storage layout tests.  I'm just
        changing this one to begin with to get buy-in on the approach.

        This also adds a new method to the fast/js/js-test-pre.js that runs a command
        and prints it to the screen.  This should really help with making the output of
        the tests readable without looking at the source code.

        * fast/js/resources/js-test-pre.js:
        (tryAndLog): Runs a command and logs it to the screen.
        * storage/domstorage/localstorage/clear-expected.txt:
        * storage/domstorage/localstorage/clear.html:
        * storage/domstorage/resources: Added.
        * storage/domstorage/resources/clear.js: Added.
            The meat of the test is now in this file.
        * storage/domstorage/sessionstorage/clear-expected.txt:
        * storage/domstorage/sessionstorage/clear.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48143 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 8 Sep 2009 01:25:31 +0000 (01:25 +0000)]
2009-09-07  Adam Barth  <abarth@webkit.org>

        Reviewed by Dimitri Glazkov.

        https://bugs.webkit.org/show_bug.cgi?id=28985

        We need to be slightly more careful about how we pick up a script
        execution context.  In particular, we were getting the wrong document
        for frames that had been navigated somewhere else.

        In the long term, we should think about a better algorithm for
        computing the script context.

        Fixes LayoutTests/http/tests/xmlhttprequest/detaching-frame-2.html

        * bindings/v8/V8Proxy.cpp:
        (WebCore::V8Proxy::retrieveFrame):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48142 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoRubber-stamped by Sam Weinig.
atwilson@chromium.org [Tue, 8 Sep 2009 00:32:45 +0000 (00:32 +0000)]
Rubber-stamped by Sam Weinig.

Rebaseline tests for GTK platform, and skipping shared worker XHR tests (worker XHR tests are already skipped).
Tracked as https://bugs.webkit.org/show_bug.cgi?id=29020.

* platform/gtk/Skipped:
* platform/gtk/fast/dom/Window/window-properties-expected.txt:
* platform/gtk/fast/dom/prototype-inheritance-2-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48141 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUnreviewed test fixup.
atwilson@chromium.org [Tue, 8 Sep 2009 00:08:27 +0000 (00:08 +0000)]
Unreviewed test fixup.

Added shared worker lifecycle tests to Skipped test list due to missing DRT functionality on Qt platform.

* platform/qt/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48140 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoEnable shared worker tests.
atwilson@chromium.org [Mon, 7 Sep 2009 23:55:01 +0000 (23:55 +0000)]
Enable shared worker tests.
https://bugs.webkit.org/show_bug.cgi?id=28977

Reviewed by David Levin.

Just moved tests from shared-worker-xxxx.html-disabled to shared-worker-xxxx.html. No other changes.

* fast/workers/shared-worker-constructor.html: Renamed from LayoutTests/fast/workers/shared-worker-constructor.html-disabled.
* fast/workers/shared-worker-context-gc.html: Renamed from LayoutTests/fast/workers/shared-worker-context-gc.html-disabled.
* fast/workers/shared-worker-event-listener.html: Renamed from LayoutTests/fast/workers/shared-worker-event-listener.html-disabled.
* fast/workers/shared-worker-exception.html: Renamed from LayoutTests/fast/workers/shared-worker-exception.html-disabled.
* fast/workers/shared-worker-frame-lifecycle.html: Renamed from LayoutTests/fast/workers/shared-worker-frame-lifecycle.html-disabled.
* fast/workers/shared-worker-gc.html: Renamed from LayoutTests/fast/workers/shared-worker-gc.html-disabled.
* fast/workers/shared-worker-lifecycle.html: Renamed from LayoutTests/fast/workers/shared-worker-lifecycle.html-disabled.
* fast/workers/shared-worker-load-error.html: Renamed from LayoutTests/fast/workers/shared-worker-load-error.html-disabled.
* fast/workers/shared-worker-location.html: Renamed from LayoutTests/fast/workers/shared-worker-location.html-disabled.
* fast/workers/shared-worker-navigator.html: Renamed from LayoutTests/fast/workers/shared-worker-navigator.html-disabled.
* fast/workers/shared-worker-replace-global-constructor.html: Renamed from LayoutTests/fast/workers/shared-worker-replace-global-constructor.html-disabled.
* fast/workers/shared-worker-replace-self.html: Renamed from LayoutTests/fast/workers/shared-worker-replace-self.html-disabled.
* fast/workers/shared-worker-script-error.html: Renamed from LayoutTests/fast/workers/shared-worker-script-error.html-disabled.
* fast/workers/shared-worker-shared.html: Renamed from LayoutTests/fast/workers/shared-worker-shared.html-disabled.
* fast/workers/shared-worker-simple.html: Renamed from LayoutTests/fast/workers/shared-worker-simple.html-disabled.
* http/tests/workers/shared-worker-importScripts.html: Renamed from LayoutTests/http/tests/workers/shared-worker-importScripts.html-disabled.
* http/tests/workers/shared-worker-redirect.html: Renamed from LayoutTests/http/tests/workers/shared-worker-redirect.html-disabled.
* http/tests/xmlhttprequest/workers/shared-worker-close.html: Renamed from LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-close.html-disabled.
* http/tests/xmlhttprequest/workers/shared-worker-methods-async.html: Renamed from LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods-async.html-disabled.
* http/tests/xmlhttprequest/workers/shared-worker-methods.html: Renamed from LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-methods.html-disabled.
* http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found.html: Renamed from LayoutTests/http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found.html-disabled.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48139 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agowx build fix for 2.8 compilation.
kevino@webkit.org [Mon, 7 Sep 2009 23:05:49 +0000 (23:05 +0000)]
wx build fix for 2.8 compilation.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48138 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoJavaScriptCore: Reverting r48121 to fix Windows build errors.
atwilson@chromium.org [Mon, 7 Sep 2009 22:23:46 +0000 (22:23 +0000)]
JavaScriptCore: Reverting r48121 to fix Windows build errors.

* JavaScriptCore.exp:

WebCore: Unreviewed build fix.

Reverting r48121 to fix Windows build errors.

* DerivedSources.cpp:
* GNUmakefile.am:
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSDOMWindowCustom.cpp:
* bindings/js/JSEventTarget.cpp:
(WebCore::toJS):
(WebCore::toEventTarget):
* dom/EventTarget.cpp:
* dom/EventTarget.h:
* page/DOMWindow.idl:
* websockets/WebSocket.cpp:
(WebCore::WebSocket::connect):
(WebCore::WebSocket::send):
(WebCore::WebSocket::close):
(WebCore::WebSocket::bufferedAmount):
(WebCore::WebSocket::addEventListener):
(WebCore::WebSocket::removeEventListener):
(WebCore::WebSocket::dispatchEvent):
(WebCore::WebSocket::didConnect):
(WebCore::WebSocket::didReceiveMessage):
(WebCore::WebSocket::didClose):
(WebCore::WebSocket::dispatchOpenEvent):
(WebCore::WebSocket::dispatchMessageEvent):
(WebCore::WebSocket::dispatchCloseEvent):
* websockets/WebSocket.h:
(WebCore::WebSocket::create):
(WebCore::WebSocket::):
(WebCore::WebSocket::setOnopen):
(WebCore::WebSocket::onopen):
(WebCore::WebSocket::setOnmessage):
(WebCore::WebSocket::onmessage):
(WebCore::WebSocket::setOnclose):
(WebCore::WebSocket::onclose):
(WebCore::WebSocket::toWebSocket):
(WebCore::WebSocket::refEventTarget):
(WebCore::WebSocket::derefEventTarget):
* websockets/WebSocketChannel.cpp: Removed.
* websockets/WebSocketChannel.h: Removed.
* websockets/WebSocketChannelClient.h: Removed.
* websockets/WebSocketHandshake.cpp: Removed.
* websockets/WebSocketHandshake.h: Removed.

LayoutTests: Unreviewed build fix.

Reverting r48121 to fix Windows build errors.

* fast/dom/Window/window-properties-expected.txt:
* fast/dom/prototype-inheritance-2-expected.txt:
* fast/dom/prototype-inheritance-expected.txt:
* fast/js/global-constructors-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48137 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUnreviewed speculative build fix.
atwilson@chromium.org [Mon, 7 Sep 2009 21:29:12 +0000 (21:29 +0000)]
Unreviewed speculative build fix.

Reverted previous build fix as it didn't fix the problem.

* bindings/js/JSEventTarget.cpp:
(WebCore::toEventTarget):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48136 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Laszlo Gombos <laszlo.1.gombos@nokia.com>
laszlo.1.gombos@nokia.com [Mon, 7 Sep 2009 21:20:09 +0000 (21:20 +0000)]
2009-09-07  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Unreviewed, build fix.

        [Qt] Fix build after SHARED_WORKERS are enabled by default (r48131)

        * WebCore.pro:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48135 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUnreviewed build fix.
atwilson@chromium.org [Mon, 7 Sep 2009 20:50:47 +0000 (20:50 +0000)]
Unreviewed build fix.

Temporarily removed depenency between JSEventTarget.cpp and WebSocket.h in an attempt to fix a windows build break.

* bindings/js/JSEventTarget.cpp:
(WebCore::toEventTarget):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48134 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Mon, 7 Sep 2009 20:10:48 +0000 (20:10 +0000)]
2009-09-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Link new objects documents in the main document.

        * docs/webkitgtk-docs.sgml:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48133 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Mon, 7 Sep 2009 20:04:38 +0000 (20:04 +0000)]
2009-09-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Documentation control files updated for 1.1.14.

        * docs/webkitgtk-docs.sgml:
        * docs/webkitgtk-sections.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48132 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoJavaScriptCore: Enable SHARED_WORKERS by default
atwilson@chromium.org [Mon, 7 Sep 2009 19:53:13 +0000 (19:53 +0000)]
JavaScriptCore: Enable SHARED_WORKERS by default
https://bugs.webkit.org/show_bug.cgi?id=28959

Reviewed by David Levin.

* Configurations/FeatureDefines.xcconfig:

WebCore: Enable SHARED_WORKERS by default.
https://bugs.webkit.org/show_bug.cgi?id=28959

Reviewed by David Levin.

Tests (enabled in a separate patch):
       fast/workers/shared-worker-constructor.html
       fast/workers/shared-worker-context-gc.html
       fast/workers/shared-worker-event-listener.html
       fast/workers/shared-worker-exception.html
       fast/workers/shared-worker-frame-lifecycle.html
       fast/workers/shared-worker-gc.html
       fast/workers/shared-worker-lifecycle.html
       fast/workers/shared-worker-load-error.html
       fast/workers/shared-worker-location.html
       fast/workers/shared-worker-navigator.html
       fast/workers/shared-worker-replace-global-constructor.html
       fast/workers/shared-worker-replace-self.html
       fast/workers/shared-worker-shared.html
       fast/workers/shared-worker-simple.html
       http/tests/workers/shared-worker-importScripts.html
       http/tests/workers/shared-worker-redirect.html
       http/tests/xmlhttprequest/workers/shared-worker-close.html
       http/tests/xmlhttprequest/workers/shared-worker-methods-async.html
       http/tests/xmlhttprequest/workers/shared-worker-methods.html
       http/tests/xmlhttprequest/workers/shared-worker-xhr-file-not-found.html

* config.h: Removed some whitespace/touched the file to force a full rebuild on the build-bots.
* Configurations/FeatureDefines.xcconfig:
* WebCore.pro:
* WebCore.vcproj/WebCoreCommon.vsprops:
* WebCore.vcproj/build-generated-files.sh:
* dom/DOMWindow.idl: Removed unnecessary whitespace to force a rebuild on the build-bots to pickup the flag change.
* workers/DefaultSharedWorkerRepository.cpp:
(WebCore::SharedWorkerScriptLoader::load):
Clean up bitrot in SharedWorker code - DenyCrossOriginRedirect is now DenyCrossOriginRequests.
* workers/SharedWorkerContext.cpp:
(WebCore::SharedWorkerContext::dispatchConnect):
Clean up bitrot - updated SharedWorker code to reflect new MessageEvent API.

WebKit/mac: Enable SHARED_WORKERS by default.
https://bugs.webkit.org/show_bug.cgi?id=28959

Reviewed by David Levin.

* Configurations/FeatureDefines.xcconfig:

WebKit/win: Enable SHARED_WORKERS by default.
https://bugs.webkit.org/show_bug.cgi?id=28959

Reviewed by David Levin.

* WebKit.vcproj/WebKit.vcproj:

WebKitTools: Enable SHARED_WORKERS by default
https://bugs.webkit.org/show_bug.cgi?id=28959

Reviewed by David Levin.

* Scripts/build-webkit:

LayoutTests: Enable SHARED_WORKERS by default
https://bugs.webkit.org/show_bug.cgi?id=28959

Reviewed by David Levin.

Update test expectations to reflect the availability of the SharedWorker constructor.
Fixup bitrot in disabled tests - now reflects new MessagePort API.

* fast/dom/Window/window-properties-expected.txt:
Updated expectations now that window.SharedWorkers is defined.
* fast/dom/prototype-inheritance-2-expected.txt:
Updated expectations now that window.SharedWorkers is defined.
* fast/dom/prototype-inheritance-expected.txt:
Updated expectations now that window.SharedWorkers is defined.
* fast/workers/shared-worker-script-error-expected.txt
Updated expectations to reflect current (correct) behavior (unhandled exceptions are logged to console).
* fast/workers/shared-worker-script-error.html
Pauses before exiting the test to allow pending console errors to get emitted (makes test less flaky).
* fast/workers/resources/shared-worker-script-error.js
(onerror):
Now properly handles the exception (onerror function has to return false to swallow the exception).
* fast/js/global-constructors-expected.txt:
Updated expectations now that window.SharedWorkers is defined.
* http/tests/workers/resources/worker-importScripts.js:
Clean up bitrot in tests - MessageEvent.messagePort => MessageEvent.ports.
(handleConnect.self.postMessage):
(handleConnect):
* http/tests/workers/resources/worker-redirect-target.js:
Clean up bitrot in tests - MessageEvent.messagePort => MessageEvent.ports.
(self.onconnect):
* http/tests/xmlhttprequest/workers/resources/worker-pre.js:
Clean up bitrot in tests - MessageEvent.messagePort => MessageEvent.ports.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48131 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Mon, 7 Sep 2009 19:27:38 +0000 (19:27 +0000)]
2009-09-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Skipping one more test affected by the libsoup issue, a new test,
        and tests that require eventSender.

        * platform/gtk/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48129 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Mon, 7 Sep 2009 18:57:32 +0000 (18:57 +0000)]
2009-09-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Unreviewed. Skipping tests that are failing because of a libsoup
        problem. Bug reported.

        * platform/gtk/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48128 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago[PATCH 2/6] Speed up the QWebPluginInfo::supportsMimeType() function.
ben@webkit.org [Mon, 7 Sep 2009 18:52:02 +0000 (18:52 +0000)]
[PATCH 2/6] Speed up the QWebPluginInfo::supportsMimeType() function.
https://bugs.webkit.org/show_bug.cgi?id=27651

Instead of going through the MIME types list constructed with
mimeTypes() function, look up the internal mimeToDescriptions map.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48127 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Mon, 7 Sep 2009 18:16:18 +0000 (18:16 +0000)]
2009-09-07  Xan Lopez  <xlopez@igalia.com>

        Unreviewed build fix.

        Add new file to sources list.

        * GNUmakefile.am:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48126 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agowx build fixes for wx SVN trunk.
kevino@webkit.org [Mon, 7 Sep 2009 17:53:09 +0000 (17:53 +0000)]
wx build fixes for wx SVN trunk.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48125 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Mon, 7 Sep 2009 17:21:21 +0000 (17:21 +0000)]
2009-09-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        What's new for 1.1.14.

        * NEWS:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48124 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Mon, 7 Sep 2009 17:16:49 +0000 (17:16 +0000)]
2009-09-07  Xan Lopez  <xlopez@igalia.com>

        Rubber-stamped by Gustavo Noronha.

        Bump versions in preparation for 1.1.14 release.

        * configure.ac:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48123 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago[Qt] Use direct includes for Phonon, not the pretty ones
vestbo@webkit.org [Mon, 7 Sep 2009 17:07:56 +0000 (17:07 +0000)]
[Qt] Use direct includes for Phonon, not the pretty ones

Patch by Chris Hills <chaz@chaz6.com> on 2009-09-07
Reviewed by Tor Arne Vestbø.

* platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48122 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Fumitoshi Ukai <ukai@chromium.org>
eric@webkit.org [Mon, 7 Sep 2009 17:02:20 +0000 (17:02 +0000)]
2009-09-07  Fumitoshi Ukai  <ukai@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Export WTF::tryFastMalloc used in WebSocketChannel.
        https://bugs.webkit.org/show_bug.cgi?id=28038

        * JavaScriptCore.exp:
2009-09-07  Fumitoshi Ukai  <ukai@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Add WebSocket API.
        https://bugs.webkit.org/show_bug.cgi?id=28038

        WebSocket constructor is available in window object.

        * fast/dom/Window/window-properties-expected.txt:
        * fast/dom/prototype-inheritance-2-expected.txt:
        * fast/dom/prototype-inheritance-expected.txt:
        * fast/js/global-constructors-expected.txt:
2009-09-07  Fumitoshi Ukai  <ukai@chromium.org>

        Reviewed by Alexey Proskuryakov.

        WebSocket API implementation.
        https://bugs.webkit.org/show_bug.cgi?id=28038

        Add build systems only for GNUmakefile.am and WebCore.xcodeproj now.
        Other build systems will be updated once the code is functional.
        Tests will be landed once the code is completed and functional.

        * DerivedSources.cpp:
        * GNUmakefile.am:
        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/JSDOMWindowCustom.cpp:
        (WebCore::JSDOMWindow::webSocket):
        * bindings/js/JSEventTarget.cpp:
        (WebCore::toJS):
        (WebCore::toEventTarget):
        * dom/EventTarget.cpp:
        (WebCore::EventTarget::toWebSocket):
        * dom/EventTarget.h:
        * page/DOMWindow.idl:
        * websockets/WebSocket.cpp:
        (WebCore::ProcessWebSocketEventTask::create):
        (WebCore::ProcessWebSocketEventTask::performTask):
        (WebCore::ProcessWebSocketEventTask::ProcessWebSocketEventTask):
        (WebCore::isValidProtocolString):
        (WebCore::WebSocket::connect):
        (WebCore::WebSocket::send):
        (WebCore::WebSocket::close):
        (WebCore::WebSocket::bufferedAmount):
        (WebCore::WebSocket::addEventListener):
        (WebCore::WebSocket::removeEventListener):
        (WebCore::WebSocket::dispatchEvent):
        (WebCore::WebSocket::didConnect):
        (WebCore::WebSocket::didReceiveMessage):
        (WebCore::WebSocket::didClose):
        (WebCore::WebSocket::dispatchOpenEvent):
        (WebCore::WebSocket::dispatchMessageEvent):
        (WebCore::WebSocket::dispatchCloseEvent):
        * websockets/WebSocket.h:
        (WebCore::WebSocket::create):
        (WebCore::WebSocket::):
        (WebCore::WebSocket::setOnopen):
        (WebCore::WebSocket::onopen):
        (WebCore::WebSocket::setOnmessage):
        (WebCore::WebSocket::onmessage):
        (WebCore::WebSocket::setOnclose):
        (WebCore::WebSocket::onclose):
        (WebCore::WebSocket::toWebSocket):
        (WebCore::WebSocket::eventListeners):
        (WebCore::WebSocket::refEventTarget):
        (WebCore::WebSocket::derefEventTarget):
        * websockets/WebSocketChannel.cpp: Added.
        * websockets/WebSocketChannel.h: Added.
        * websockets/WebSocketChannelClient.h: Added.
        * websockets/WebSocketHandshake.cpp: Added.
        * websockets/WebSocketHandshake.h: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48121 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Mon, 7 Sep 2009 16:31:33 +0000 (16:31 +0000)]
2009-09-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Rubber-stamped by Xan Lopez.

        Use g_return_if_fail to check for the SoupURI creation, instead of
        printing a custom warning.

        * webkit/webkitnetworkrequest.cpp:
        (webkit_network_request_set_uri):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48120 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoFixing name of reviewer in some older commits. Xan suggested the fix,
kov@webkit.org [Mon, 7 Sep 2009 16:29:00 +0000 (16:29 +0000)]
Fixing name of reviewer in some older commits. Xan suggested the fix,
but Jan reviewed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48119 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Mon, 7 Sep 2009 16:27:29 +0000 (16:27 +0000)]
2009-09-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Xan Lopez.

        https://bugs.webkit.org/show_bug.cgi?id=26854
        [GTK] Needs API to allow more control over outgoing requests

        * GNUmakefile.am: new files added to the build for new class
        WebKitNetworkResponse

WebCore:

2009-09-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Xan Lopez.

        https://bugs.webkit.org/show_bug.cgi?id=26854
        [GTK] Needs API to allow more control over outgoing requests

        Add infrastructure required to provide the new
        WebKitNetworkResponse object in our API.

        * GNUmakefile.am: Add new files to the build.
        * platform/network/soup/ResourceRequestSoup.cpp:
        (WebCore::ResourceRequest::updateFromSoupMessage):
        * platform/network/soup/ResourceResponse.h:
        * platform/network/soup/ResourceResponseSoup.cpp: Added.
        (WebCore::ResourceResponse::toSoupMessage):

WebKit/gtk

2009-09-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Xan Lopez.

        https://bugs.webkit.org/show_bug.cgi?id=26854
        [GTK] Needs API to allow more control over outgoing requests

        Map the willSendRequest delegate to the 'resource-request-starting'
        signal, allowing more control of the resources that are fetched.

        Mapping willSendRequest properly requires an appropriate Response
        object, so we are introducing WebKitNetworkResponse, which works in a
        way similar to WebKitNetworkRequest.

        * WebCoreSupport/FrameLoaderClientGtk.cpp:
        (WebKit::FrameLoaderClient::dispatchWillSendRequest):
        (WebKit::FrameLoaderClient::assignIdentifierToInitialRequest):
        (WebKit::FrameLoaderClient::dispatchDidFinishLoading):
        (WebKit::FrameLoaderClient::dispatchDidFailLoading):
        * tests/testnetworkresponse.c: Added.
        (test_network_response_create_destroy):
        (test_network_response_properties):
        (main):
        * tests/testwebresource.c:
        (resource_request_starting_cb):
        (load_finished_cb):
        (test_web_resource_loading):
        (main):
        * webkit/webkit.h:
        * webkit/webkitdefines.h:
        * webkit/webkitnetworkrequest.cpp:
        * webkit/webkitnetworkresponse.cpp: Added.
        (webkit_network_response_dispose):
        (webkit_network_response_finalize):
        (webkit_network_response_get_property):
        (webkit_network_response_set_property):
        (webkit_network_response_class_init):
        (webkit_network_response_init):
        (webkit_network_response_new_with_core_response):
        (webkit_network_response_new):
        (webkit_network_response_set_uri):
        (webkit_network_response_get_uri):
        (webkit_network_response_get_message):
        * webkit/webkitnetworkresponse.h: Added.
        * webkit/webkitprivate.cpp:
        (WTF::SoupMessage):
        (WTF::WebKitNetworkRequest):
        (WTF::WebKitNetworkResponse):
        (WTF::WebKitWebResource):
        * webkit/webkitprivate.h:
        * webkit/webkitwebresource.cpp:
        (webkit_web_resource_cleanup):
        (webkit_web_resource_finalize):
        (webkit_web_resource_class_init):
        (webkit_web_resource_set_property):
        (webkit_web_resource_get_uri):
        * webkit/webkitwebview.cpp:
        (webkit_web_view_class_init):
        * webkitmarshal.list:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48118 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Mon, 7 Sep 2009 15:28:48 +0000 (15:28 +0000)]
2009-09-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Xan Lopez.

        https://bugs.webkit.org/show_bug.cgi?id=28979
        [GTK] Misc improvments to NetworkRequest

        Unref message in dispose, as it should be, not in finalize.

        * webkit/webkitnetworkrequest.cpp:
        (webkit_network_request_dispose):
        (webkit_network_request_finalize):
        (webkit_network_request_class_init):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48117 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Mon, 7 Sep 2009 15:28:05 +0000 (15:28 +0000)]
2009-09-07  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Xan Lopez.

        https://bugs.webkit.org/show_bug.cgi?id=28979
        [GTK] Misc improvments to NetworkRequest

        Bring documentation up-to-date with reality regarding NetworkRequest.

        * webkit/webkitnetworkrequest.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48116 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Mon, 7 Sep 2009 15:11:00 +0000 (15:11 +0000)]
2009-09-07  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Gustavo Noronha.

        Make the auth dialog usable when libsoup does not have a
        SoupPasswordManager, since it might go away in the next
        development cycle.

        * webkit/webkitsoupauthdialog.c:
        (response_callback):
        (session_can_save_passwords):
        (session_authenticate):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48115 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Mads Ager <ager@chromium.org>
eric@webkit.org [Mon, 7 Sep 2009 14:49:03 +0000 (14:49 +0000)]
2009-09-07  Mads Ager  <ager@chromium.org>

        Reviewed by Adam Barth.

        [V8] Cleanup document/frame null-checking in V8DOMWindowCustom.cpp
        https://bugs.webkit.org/show_bug.cgi?id=29009

        Be consistent in document and frame null checks.

        * bindings/v8/custom/V8DOMWindowCustom.cpp:
        (WebCore::V8Custom::WindowSetTimeoutImpl):
        (WebCore::ACCESSOR_GETTER):
        (WebCore::ACCESSOR_SETTER):
        (WebCore::CALLBACK_FUNC_DECL):
        (WebCore::NAMED_PROPERTY_GETTER):
        (WebCore::V8Custom::ClearTimeoutImpl):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48114 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Jakub Wieczorek <faw217@gmail.com>
eric@webkit.org [Mon, 7 Sep 2009 14:21:54 +0000 (14:21 +0000)]
2009-09-07  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Simon Hausmann.

        Speed up the QWebPluginInfo::mimeTypes() function.
        https://bugs.webkit.org/show_bug.cgi?id=27651

        Instead of constructing a list of MIME types every time it is called,
        do this only once.

        * Api/qwebplugindatabase.cpp:
        (QWebPluginInfo::mimeTypes):
        (QWebPluginInfo::operator=):
        * Api/qwebplugindatabase.h:
        * tests/qwebplugindatabase/tst_qwebplugindatabase.cpp:
        (tst_QWebPluginDatabase::operatorassign_data):
        (tst_QWebPluginDatabase::operatorassign):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48113 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Jakub Wieczorek <faw217@gmail.com>
eric@webkit.org [Mon, 7 Sep 2009 14:15:06 +0000 (14:15 +0000)]
2009-09-07  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Simon Hausmann.

        Remove the private classes from QWebPluginDatabase.
        https://bugs.webkit.org/show_bug.cgi?id=27651

        Instead, hold the PluginDatabase and PluginPackage objects as class
        members and take care of refcounting on our own instead of using RefPtr.

        This way we not only made the code cleaner but also got rid of
        redundant allocations when constructing null QWebPluginInfo objects.

        The private classes have been forward-declared and the d-pointers left
        to be on the safe side.

        * Api/qwebplugindatabase.cpp:
        (QWebPluginInfo::QWebPluginInfo):
        (QWebPluginInfo::~QWebPluginInfo):
        (QWebPluginInfo::name):
        (QWebPluginInfo::description):
        (QWebPluginInfo::mimeTypes):
        (QWebPluginInfo::path):
        (QWebPluginInfo::isNull):
        (QWebPluginInfo::setEnabled):
        (QWebPluginInfo::isEnabled):
        (QWebPluginInfo::operator==):
        (QWebPluginInfo::operator!=):
        (QWebPluginInfo::operator=):
        (QWebPluginDatabase::QWebPluginDatabase):
        (QWebPluginDatabase::~QWebPluginDatabase):
        (QWebPluginDatabase::plugins):
        (QWebPluginDatabase::searchPaths):
        (QWebPluginDatabase::setSearchPaths):
        (QWebPluginDatabase::addSearchPath):
        (QWebPluginDatabase::refresh):
        (QWebPluginDatabase::pluginForMimeType):
        (QWebPluginDatabase::setPreferredPluginForMimeType):
        * Api/qwebplugindatabase.h:
        * Api/qwebplugindatabase_p.h: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48112 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Mon, 7 Sep 2009 13:38:23 +0000 (13:38 +0000)]
2009-09-07  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Gustavo Noronha.

        [Soup] Limit the number of connections
        https://bugs.webkit.org/show_bug.cgi?id=18431

        Increase the maximum number of per host and total connections to
        similar values than those used by the other modern browsers. Seems
        to significantly improve page loading time in many cases.

        * platform/network/soup/ResourceHandleSoup.cpp:
        (WebCore::ensureSessionIsInitialized):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48111 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago[Qt] Disable a few tests that require missing controller features
vestbo@webkit.org [Mon, 7 Sep 2009 10:09:20 +0000 (10:09 +0000)]
[Qt] Disable a few tests that require missing controller features

Patch by Andras Becsi <becsi.andras@stud.u-szeged.hu> on 2009-09-07
Reviewed by Tor Arne Vestbø

* platform/qt/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48110 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Michael Nordman <michaeln@google.com>
eric@webkit.org [Mon, 7 Sep 2009 07:35:19 +0000 (07:35 +0000)]
2009-09-07  Michael Nordman  <michaeln@google.com>

        Reviewed by Darin Fisher.

        Various minor chromium appcache modifications.
        https://bugs.webkit.org/show_bug.cgi?id=28960

        No new tests.

        * bindings/v8/custom/V8DOMApplicationCacheCustom.cpp:
          Fix a null pointer exception.
        (WebCore::ACCESSOR_GETTER):
        * platform/network/chromium/ResourceRequest.h:
          Switch from appCache 'context' to 'host' terminology.
          Note: leaving the old deprecated accessors in place until the matching
          change in chrome is landed to use the new accessors.
        (WebCore::ResourceRequest::ResourceRequest):
        (WebCore::ResourceRequest::appCacheHostID):
        (WebCore::ResourceRequest::setAppCacheHostID):
        (WebCore::ResourceRequest::appCacheContextID):
        (WebCore::ResourceRequest::setAppCacheContextID):
        * platform/network/chromium/ResourceResponse.h:
          Add an appCacheManifestURL getter/setter.
          Drop the 'get' prefix from the appCacheID getter.
          Note: leaving the old deprecated 'get' prefixed accessor in place until the matching
          change in chrome is landed to use the new accessor.
        (WebCore::ResourceResponse::appCacheID):
        (WebCore::ResourceResponse::appCacheManifestURL):
        (WebCore::ResourceResponse::setAppCacheManifestURL):
        (WebCore::ResourceResponse::getAppCacheID):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48109 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-07 Michael Nordman <michaeln@google.com>
eric@webkit.org [Mon, 7 Sep 2009 07:28:22 +0000 (07:28 +0000)]
2009-09-07  Michael Nordman  <michaeln@google.com>

        Reviewed by Alexey Proskuryakov.

        https://bugs.webkit.org/show_bug.cgi?id=28359
        Test to ensure the the window.applicationCache attribute is defined but non-functional
        with the feature disabled.

        * http/tests/appcache/disabled-expected.txt: Added.
        * http/tests/appcache/disabled.html: Added.
2009-09-07  Michael Nordman  <michaeln@google.com>

        Reviewed by Alexey Proskuryakov.

        https://bugs.webkit.org/show_bug.cgi?id=28359
        Cleanup: Undo some accidental changes around DOMApplicationCache.
        - Restore support for constructing a DOMApplicationCache object with a null frame ptr.
        - Return a non-null object for window.applicationCache when the feature is disabled.
        - Simplify the swapCache method.

        Test: http/tests/appcache/disabled.html

        * loader/appcache/DOMApplicationCache.cpp:
        (WebCore::DOMApplicationCache::DOMApplicationCache):
        (WebCore::DOMApplicationCache::swapCache):
        (WebCore::DOMApplicationCache::scriptExecutionContext):
        * loader/appcache/DOMApplicationCache.h:
        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::applicationCache):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48108 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-06 Yael Aharon <yael.aharon@nokia.com>
eric@webkit.org [Mon, 7 Sep 2009 05:25:00 +0000 (05:25 +0000)]
2009-09-06  Yael Aharon  <yael.aharon@nokia.com>

        Reviewed by Darin Adler.

        hostname and host are mixed up when manipulating anchor elements.
        https://bugs.webkit.org/show_bug.cgi?id=28954

        Added test case for when port is 0.

        * fast/dom/Element/hostname-host-expected.txt:
        * fast/dom/Element/hostname-host.html:
2009-09-06  Yael Aharon  <yael.aharon@nokia.com>

        Reviewed by Darin Adler.

        hostname and host are mixed up when manipulating anchor elements.
        https://bugs.webkit.org/show_bug.cgi?id=28954

        handle the case of port 0.

        * html/HTMLAnchorElement.cpp:
        (WebCore::HTMLAnchorElement::host):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48107 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-06 Erik Arvidsson <arv@chromium.org>
abarth@webkit.org [Mon, 7 Sep 2009 05:10:12 +0000 (05:10 +0000)]
2009-09-06  Erik Arvidsson  <arv@chromium.org>

        Reviewed by Eric Seidel.

        Tests for https://bugs.webkit.org/show_bug.cgi?id=27099
        Make hidden elements not focusable. This is important becaue we should
        not allow tabbing to a hidden element.

        The patch also makes a element without href behave like generic elements
        when it comes to focus. Added tests that asserts that this works as
        expected.

        * fast/events/click-focus-anchor-expected.txt: Added.
        * fast/events/click-focus-anchor.html: Added.
        * fast/events/resources/tabindex-focus-blur-all.js:
        (test):
        (testProgrammaticFocus):
        * fast/events/tab-focus-anchor-expected.txt: Added.
        * fast/events/tab-focus-anchor.html: Added.
        * fast/events/tab-focus-hidden-expected.txt: Added.
        * fast/events/tab-focus-hidden.html: Added.
        * fast/events/tabindex-focus-blur-all-expected.txt:
2009-09-06  Erik Arvidsson  <arv@chromium.org>

        Reviewed by Eric Seidel.

        Make hidden elements not focusable.

        Clean up supportsFocus and isFocusable.
        supportsFocus now strictly means that the node can be focused by default.
        This is true for links, form controls and content editable elements for example.
        isFocusable means that the user can actually focus it.
        All (2) calls to supportsFocus have been updated to take this into account.

        Make a elements without href work correctly as well.

        https://bugs.webkit.org/show_bug.cgi?id=27099

        Tests: fast/events/click-focus-anchor.html
               fast/events/tab-focus-anchor.html
               fast/events/tab-focus-hidden.html

        * dom/Element.cpp:
        (WebCore::Element::focus):
        * dom/Node.cpp:
        (WebCore::Node::supportsFocus):
        (WebCore::Node::isFocusable):
        * dom/Node.h:
        * html/HTMLAnchorElement.cpp:
        (WebCore::HTMLAnchorElement::supportsFocus):
        (WebCore::HTMLAnchorElement::isMouseFocusable):
        (WebCore::HTMLAnchorElement::isKeyboardFocusable):
        * html/HTMLAnchorElement.h:
        * html/HTMLAreaElement.cpp:
        (WebCore::HTMLAreaElement::supportsFocus):
        * html/HTMLAreaElement.h:
        * html/HTMLElement.cpp:
        (WebCore::HTMLElement::supportsFocus):
        * html/HTMLElement.h:
        * html/HTMLFieldSetElement.cpp:
        (WebCore::HTMLFieldSetElement::supportsFocus):
        * html/HTMLFieldSetElement.h:
        * html/HTMLFormControlElement.cpp:
        (WebCore::HTMLFormControlElement::supportsFocus):
        (WebCore::HTMLFormControlElement::isFocusable):
        * html/HTMLFrameElementBase.cpp:
        (WebCore::HTMLFrameElementBase::supportsFocus):
        * html/HTMLFrameElementBase.h:
        * html/HTMLLegendElement.cpp:
        (WebCore::HTMLLegendElement::supportsFocus):
        * html/HTMLLegendElement.h:
        * html/HTMLOptGroupElement.cpp:
        (WebCore::HTMLOptGroupElement::supportsFocus):
        (WebCore::HTMLOptGroupElement::isFocusable):
        * html/HTMLOptGroupElement.h:
        * html/HTMLOptionElement.cpp:
        (WebCore::HTMLOptionElement::supportsFocus):
        (WebCore::HTMLOptionElement::isFocusable):
        * html/HTMLOptionElement.h:
        * page/EventHandler.cpp:
        (WebCore::EventHandler::dispatchMouseEvent):
        * page/FocusController.cpp:
        (WebCore::FocusController::advanceFocus):
        * svg/SVGAElement.cpp:
        (WebCore::SVGAElement::supportsFocus):
        (WebCore::SVGAElement::isFocusable):
        * wml/WMLAElement.cpp:
        (WebCore::WMLAElement::supportsFocus):
        * wml/WMLAElement.h:
        * wml/WMLFormControlElement.cpp:
        (WebCore::WMLFormControlElement::supportsFocus):
        (WebCore::WMLFormControlElement::isFocusable):
        * wml/WMLFormControlElement.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48106 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-06 Joel Stanley <joel@jms.id.au>
eric@webkit.org [Mon, 7 Sep 2009 04:15:37 +0000 (04:15 +0000)]
2009-09-06  Joel Stanley  <joel@jms.id.au>

        Reviewed by Dimitri Glazkov.

        Expose functions to set the caret blink interval for Linux Chromium.
        Default value is set to that of RenderTheme::caretBlankInterval().
        Uses caretBlinkIntervalInternal to avoid overriding
        RenderThemeChromiumSkia::caretBlankInterval to preserve the disabling
        of blinking caret required for layout tests.
        https://bugs.webkit.org/show_bug.cgi?id=28931

        * rendering/RenderThemeChromiumLinux.cpp:
        (WebCore::RenderThemeChromiumLinux::RenderThemeChromiumLinux):
        (WebCore::RenderThemeChromiumLinux::setCaretBlinkInterval):
        (WebCore::RenderThemeChromiumLinux::caretBlinkIntervalInternal):
        * rendering/RenderThemeChromiumLinux.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48105 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago Remove an extra </File> in WebCore.vcproj.
adachan@apple.com [Mon, 7 Sep 2009 02:27:56 +0000 (02:27 +0000)]
    Remove an extra </File> in WebCore.vcproj.

        * WebCore.vcproj/WebCore.vcproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48104 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2009-09-06 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Sun, 6 Sep 2009 22:44:42 +0000 (22:44 +0000)]
2009-09-06  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Gustavo Noronha.

        Update the unitests to latest changes wrt scrollbar policy.

        * tests/testwindow.c:
        (test_webkit_window_scrollbar_policy):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@48103 268f45cc-cd09-0410-ab3c-d52691b4dbfc