WebKit-https.git
12 years ago2009-11-24 Philippe Normand <pnormand@igalia.com>
eric@webkit.org [Tue, 24 Nov 2009 18:55:13 +0000 (18:55 +0000)]
2009-11-24  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Gustavo Noronha Silva.

        [Gtk] GStreamer-CRITICAL's (and other warnings) on <video>
        https://bugs.webkit.org/show_bug.cgi?id=26354

        Implemented MediaPlayerPrivate::isAvailable by checking the
        presence of the playbin2 GStreamer element.

        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
        (WebCore::MediaPlayerPrivate::isAvailable):
        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h:

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

12 years ago2009-11-24 Joanmarie Diggs <joanmarie.diggs@gmail.com>
eric@webkit.org [Tue, 24 Nov 2009 18:47:14 +0000 (18:47 +0000)]
2009-11-24  Joanmarie Diggs  <joanmarie.diggs@gmail.com>

        Reviewed by Xan Lopez.

        https://bugs.webkit.org/show_bug.cgi?id=25415
        [GTK][ATK] Please implement support for get_text_at_offset

        When building up the pango layout from text boxes, only append a
        newline char after verifying there are no more boxes on this line.

        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
        (getPangoLayoutForAtk):
2009-11-24  Joanmarie Diggs  <joanmarie.diggs@gmail.com>

        Reviewed by Xan Lopez.

        https://bugs.webkit.org/show_bug.cgi?id=25415
        [GTK][ATK] Please implement support for get_text_at_offset

        When building up the pango layout from text boxes, only append a
        newline char after verifying there are no more boxes on this line.

        * tests/testatk.c
        (test_webkit_atk_get_text_at_offset_newlines):
        (main):

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

12 years ago2009-11-24 Joseph Pecoraro <joepeck@webkit.org>
joepeck@webkit.org [Tue, 24 Nov 2009 17:53:59 +0000 (17:53 +0000)]
2009-11-24  Joseph Pecoraro  <joepeck@webkit.org>

        Reviewed by Pavel Feldman.

        Web Inspector: Keyboard Shortcut to Clear Console Messages
        https://bugs.webkit.org/show_bug.cgi?id=31780

        All Platforms:  Ctrl+L  = Clear Console Messages
        Mac Only:       Cmd+K   = Clear Console Messages

        * inspector/front-end/ConsoleView.js:
        (WebInspector.ConsoleView): create shortcuts
        (WebInspector.ConsoleView.prototype._promptKeyDown): handle shortcuts
        * inspector/front-end/KeyboardShortcut.js:
        (WebInspector.KeyboardShortcut.makeKey): convenience conversion of "a-z" character to keyCode
        * inspector/front-end/ScriptsPanel.js:
        (WebInspector.ScriptsPanel): style fixes for keyboard shortcuts

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

12 years ago2009-11-24 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Tue, 24 Nov 2009 17:20:56 +0000 (17:20 +0000)]
2009-11-24  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed: touch inspector controller in order to
        kick win bot inspector deploy. rs=aroben.

        * inspector/InspectorController.cpp:

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

12 years ago2009-11-23 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Tue, 24 Nov 2009 17:15:01 +0000 (17:15 +0000)]
2009-11-23  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: Implement expandable compartments on timeline panel.

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

        * inspector/front-end/TimelineOverviewPane.js:
        (WebInspector.TimelineOverviewPane.prototype._setWindowPosition):
        * inspector/front-end/TimelinePanel.js:
        (WebInspector.TimelinePanel):
        (WebInspector.TimelinePanel.prototype.addRecordToTimeline):
        (WebInspector.TimelinePanel.prototype._innerAddRecordToTimeline):
        (WebInspector.TimelinePanel.prototype._formatRecord):
        (WebInspector.TimelinePanel.prototype._refreshRecords):
        (WebInspector.TimelinePanel.prototype._addToRecordsWindow):
        (WebInspector.TimelineRecordListRow):
        (WebInspector.TimelineRecordListRow.prototype.update):
        (WebInspector.TimelineRecordListRow.prototype.dispose):
        (WebInspector.TimelineRecordGraphRow):
        (WebInspector.TimelineRecordGraphRow.prototype.update):
        (WebInspector.TimelineRecordGraphRow.prototype._onClick):
        (WebInspector.TimelineRecordGraphRow.prototype.dispose):
        * inspector/front-end/inspector.css:

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

12 years ago2009-11-24 Adam Barth <abarth@webkit.org>
eric@webkit.org [Tue, 24 Nov 2009 16:15:54 +0000 (16:15 +0000)]
2009-11-24  Adam Barth  <abarth@webkit.org>

        Reviewed by Dimitri Glazkov.

        [Chromium] Fix DOM storage layout tests
        https://bugs.webkit.org/show_bug.cgi?id=31833

        The issue is, essentially, that this code assumes that
        SecurityOrigin::createString can re-create a SecurityOrigin given
        the string produced from SecurityOrigin::toString.  This is a bogus
        assumption in a number of corner cases (e.g., document.domain,
        @sandbox).  A recent patch (http://trac.webkit.org/changeset/51294)
        make this assumption further invalid in the case of of file:// URLs.

        The correct fix is for this code to use WebSecurityOrigin objects
        (and not strings) to represent SecurityOrigin objects.  However, the
        expert on this code is on vacation, and I don't want to do major
        surgery here without his involvement.  This patch is a temporary fix
        to get these tests passing again.  We'll do the right fix once
        jorlow gets back from vacation.

        Tests: Covered by a number of existing DOM storage tests.

        * src/WebStorageNamespaceImpl.cpp:
        (WebKit::WebStorageNamespaceImpl::createStorageArea):

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

12 years agoFix production builds where the source tree may be read-only.
mrowe@apple.com [Tue, 24 Nov 2009 10:21:13 +0000 (10:21 +0000)]
Fix production builds where the source tree may be read-only.

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

12 years ago2009-11-23 Laszlo Gombos <laszlo.1.gombos@nokia.com>
laszlo.1.gombos@nokia.com [Tue, 24 Nov 2009 04:25:51 +0000 (04:25 +0000)]
2009-11-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        Include "config.h" to meet Coding Style Guidelines
        https://bugs.webkit.org/show_bug.cgi?id=31792

        * wtf/unicode/UTF8.cpp:
        * wtf/unicode/glib/UnicodeGLib.cpp:
        * wtf/unicode/wince/UnicodeWince.cpp:

2009-11-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        Include "config.h" to meet Coding Style Guidelines
        https://bugs.webkit.org/show_bug.cgi?id=31792

        * GEN_DOMObject.cpp:
        * WebScriptObject.cpp:

2009-11-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        Include "config.h" to meet Coding Style Guidelines
        https://bugs.webkit.org/show_bug.cgi?id=31792

        * WebKitSupport/DragClientWx.cpp:

2009-11-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        Include "config.h" to meet Coding Style Guidelines
        https://bugs.webkit.org/show_bug.cgi?id=31792

        No new tests as there is no new functionality.

        * platform/graphics/win/IntPointWin.cpp:
        * platform/graphics/win/IntRectWin.cpp:
        * platform/graphics/win/IntSizeWin.cpp:
        * platform/network/chromium/ResourceRequest.cpp:
        * platform/win/PlatformMouseEventWin.cpp:

2009-11-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        Include "config.h" to meet Coding Style Guidelines
        https://bugs.webkit.org/show_bug.cgi?id=31792

        * DumpRenderTree/pthreads/JavaScriptThreadingPthreads.cpp:
        * DumpRenderTree/qt/jsobjects.cpp:
        * DumpRenderTree/win/DRTDesktopNotificationPresenter.cpp:

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

12 years agoWebCore: * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
jianli@chromium.org [Tue, 24 Nov 2009 02:33:04 +0000 (02:33 +0000)]
WebCore: * bindings/v8/custom/V8WebGLRenderingContextCustom.cpp:
(WebCore::CALLBACK_FUNC_DECL):
* platform/graphics/GraphicsContext3D.h:

Reviewed by NOBODY (Chromium build fix).

WebKit/chromium: * src/GraphicsContext3D.cpp:
(WebCore::GraphicsContext3D::createShader):

Reviewed by NOBODY (Chromium build fix).

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

12 years agoStreamlined some Math functions where we expect or know the result not
ggaren@apple.com [Tue, 24 Nov 2009 02:30:04 +0000 (02:30 +0000)]
Streamlined some Math functions where we expect or know the result not
to be representable as an int.

Reviewed by Oliver Hunt.

SunSpider says 0.6% faster.

* runtime/JSNumberCell.h:
(JSC::JSValue::JSValue):
* runtime/JSValue.h:
(JSC::JSValue::):
(JSC::jsDoubleNumber):
(JSC::JSValue::JSValue): Added a function for making a numeric JSValue
and skipping the "can I encode this as an int?" check, avoiding the
overhead of int <-> double roundtripping and double <-> double comparison
and branching.

* runtime/MathObject.cpp:
(JSC::mathProtoFuncACos):
(JSC::mathProtoFuncASin):
(JSC::mathProtoFuncATan):
(JSC::mathProtoFuncATan2):
(JSC::mathProtoFuncCos):
(JSC::mathProtoFuncExp):
(JSC::mathProtoFuncLog):
(JSC::mathProtoFuncRandom):
(JSC::mathProtoFuncSin):
(JSC::mathProtoFuncSqrt):
(JSC::mathProtoFuncTan): For these functions, which we expect or know
to produce results not representable as ints, call jsDoubleNumber instead
of jsNumber.

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

12 years agoUnreviewed. Unbreak the regression tests after r51329.
mrowe@apple.com [Tue, 24 Nov 2009 02:24:46 +0000 (02:24 +0000)]
Unreviewed. Unbreak the regression tests after r51329.

* API/JSBase.cpp:
(JSEvaluateScript): Null-check clientData before dereferencing it.
* API/JSObjectRef.cpp:
(JSObjectCallAsFunction): Ditto.

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

12 years agoAdd exported functions to fix the Windows build.
bweinstein@apple.com [Tue, 24 Nov 2009 01:31:14 +0000 (01:31 +0000)]
Add exported functions to fix the Windows build.

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

12 years agoPrevent ResourceHandleMac's version of ResourceHandle::receivedCredential from stripping
agolden@apple.com [Tue, 24 Nov 2009 01:07:33 +0000 (01:07 +0000)]
Prevent ResourceHandleMac's version of ResourceHandle::receivedCredential from stripping
identity and certificate information from a WebCore::Credential when receivedCredential
needs to modify the credential's persistence.

Reviewed by Alexey Proskuryakov.

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

12 years agoPart 2/3 of <rdar://problem/7377477> REGRESSION: Many web pages fail to render after...
barraclough@apple.com [Tue, 24 Nov 2009 00:55:03 +0000 (00:55 +0000)]
Part 2/3 of <rdar://problem/7377477> REGRESSION: Many web pages fail to render after interesting script runs in isolated world

Reviewed by Geoff Garen.

Some clients of the JavaScriptCore API expect to be able to make callbacks over the JSC API,
and for this to automagically cause execution to take place in the world associated with the
global object associated with the ExecState (JSContextRef) passed.  However this is not how
things work - the world must be explicitly set within WebCore.

Making this work just for API calls to evaluate & call will be a far from perfect solution,
since direct (non-API) use of JSC still relies on WebCore setting the current world correctly.
A better solution would be to make this all work automagically all throughout WebCore, but this
will require more refactoring.

Add references from the JSDOMWindowShell and the JSDOMGlobalObject to the world that owns them,
so that we can get to the world from the lexical global object of an ExecState.  In the long-term
we should switch over to using this approach for all cases we want to get a world from an exec state.

* bindings/js/JSDOMBinding.cpp:
(WebCore::WebCoreJSClientData::beginningExecution):
(WebCore::WebCoreJSClientData::completedExecution):
* bindings/js/JSDOMBinding.h:
* bindings/js/JSDOMGlobalObject.h:
(WebCore::JSDOMGlobalObject::world):
(WebCore::JSDOMGlobalObject::JSDOMGlobalObjectData::JSDOMGlobalObjectData):
* bindings/js/JSDOMWindowBase.cpp:
(WebCore::JSDOMWindowBase::JSDOMWindowBaseData::JSDOMWindowBaseData):
* bindings/js/JSDOMWindowBase.h:
* bindings/js/JSDOMWindowShell.cpp:
(WebCore::JSDOMWindowShell::JSDOMWindowShell):
* bindings/js/JSDOMWindowShell.h:
(WebCore::JSDOMWindowShell::world):
* bindings/js/JSWorkerContextBase.cpp:
(WebCore::JSWorkerContextBase::JSWorkerContextBase):
* bindings/js/ScriptController.cpp:
(WebCore::ScriptController::initScript):

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

12 years agoPart 1/3 of <rdar://problem/7377477> REGRESSION: Many web pages fail to render after...
barraclough@apple.com [Tue, 24 Nov 2009 00:54:27 +0000 (00:54 +0000)]
Part 1/3 of <rdar://problem/7377477> REGRESSION: Many web pages fail to render after interesting script runs in isolated world

Reviewed by Geoff Garen.

Some clients of the JavaScriptCore API expect to be able to make callbacks over the JSC API,
and for this to automagically cause execution to take place in the world associated with the
global object associated with the ExecState (JSContextRef) passed.  However this is not how
things work - the world must be explicitly set within WebCore.

Making this work just for API calls to evaluate & call will be a far from perfect solution,
since direct (non-API) use of JSC still relies on WebCore setting the current world correctly.
A better solution would be to make this all work automagically all throughout WebCore, but this
will require more refactoring.

Since the API is in JSC but worlds only exist in WebCore, add callbacks on the JSGlobalData::ClientData
to allow it to update the current world on entry/exit via the JSC API.  This is temporary duck
tape, and should be removed once the current world no longer needs to be explicitly tracked.

* API/JSBase.cpp:
(JSEvaluateScript):
* API/JSObjectRef.cpp:
(JSObjectCallAsFunction):
* JavaScriptCore.exp:
* runtime/JSGlobalData.cpp:
(JSC::JSGlobalData::ClientData::beginningExecution):
(JSC::JSGlobalData::ClientData::completedExecution):
* runtime/JSGlobalData.h:

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

12 years agoForgot one file for https://bugs.webkit.org/show_bug.cgi?id=31239
cmarrin@apple.com [Tue, 24 Nov 2009 00:35:37 +0000 (00:35 +0000)]
Forgot one file for https://bugs.webkit.org/show_bug.cgi?id=31239

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

12 years ago Add range checks to rendering calls in WebGL
cmarrin@apple.com [Tue, 24 Nov 2009 00:33:45 +0000 (00:33 +0000)]
    Add range checks to rendering calls in WebGL
        https://bugs.webkit.org/show_bug.cgi?id=31239

        I am now tracking the size of the data in each CanvasBuffer object
        and keeping track of the buffer size of each active vertex attrib.
        In drawArrays and drawElements I make sure no attempt is made to
        access elements outside the valid buffer ranges. The test at:

            http://cs.helsinki.fi/u/ilmarihe/c3d/functions/drawArraysOutOfBounds.html

        no longer crashes.

        I also added all the WebGL enumerations to GraphicsContext3D to use them in the validation checks

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

12 years ago2009-11-23 Erik Arvidsson <arv@chromium.org>
arv@chromium.org [Tue, 24 Nov 2009 00:30:37 +0000 (00:30 +0000)]
2009-11-23  Erik Arvidsson  <arv@chromium.org>

        Reviewed by Eric Seidel.

        JSC bindings for HasIndexGetter generates incorrect code (affects
        MediaList and CSSStyleDeclaration).
        This cleans up the edge cases for indexing out of range for style and
        computed style objects to return an empty string according to the spec.
        MediaList now returns null when indexed out of range.
        https://bugs.webkit.org/show_bug.cgi?id=31683

        * fast/dom/CSSStyleDeclaration/css-computed-style-item-expected.txt: Added.
        * fast/dom/CSSStyleDeclaration/css-computed-style-item.html: Added.
        * fast/dom/CSSStyleDeclaration/css-style-item-expected.txt: Added.
        * fast/dom/CSSStyleDeclaration/css-style-item.html: Added.
        * fast/dom/CSSStyleDeclaration/script-tests/css-computed-style-item.js: Added.
        * fast/dom/CSSStyleDeclaration/script-tests/css-style-item.js: Added.
        * fast/dom/StyleSheet/css-medialist-item-expected.txt: Added.
        * fast/dom/StyleSheet/css-medialist-item.html: Added.
        * fast/dom/StyleSheet/script-tests/TEMPLATE.html: Copied from LayoutTests/fast/backgrounds/repeat/script-tests/TEMPLATE.html.
        * fast/dom/StyleSheet/script-tests/css-medialist-item.js: Added.
2009-11-23  Erik Arvidsson  <arv@chromium.org>

        Reviewed by Eric Seidel.

        JSC bindings for HasIndexGetter generates incorrect code (affects
        MediaList and CSSStyleDeclaration).
        This cleans up the edge cases for indexing out of range for style and
        computed style objects to return an empty string according to the spec.
        MediaList now returns null when indexed out of range.
        https://bugs.webkit.org/show_bug.cgi?id=31683

        Tests: fast/dom/CSSStyleDeclaration/css-computed-style-item.html
               fast/dom/CSSStyleDeclaration/css-style-item.html
               fast/dom/StyleSheet/css-medialist-item.html

        * bindings/scripts/CodeGeneratorJS.pm: If IndexGetterReturnsString then
                we do not check the length before calling the item function.
        * css/CSSComputedStyleDeclaration.cpp:
        (WebCore::CSSComputedStyleDeclaration::item):
        * css/CSSMutableStyleDeclaration.cpp:
        (WebCore::CSSMutableStyleDeclaration::item):
        * css/CSSStyleDeclaration.idl:

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

12 years agoUnreviewed. Skip new test added in r51324.
ossy@webkit.org [Tue, 24 Nov 2009 00:16:57 +0000 (00:16 +0000)]
Unreviewed. Skip new test added in r51324.

* platform/qt/Skipped: Added editing/selection/trransformed-selection-rects.html

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

12 years ago2009-11-23 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Mon, 23 Nov 2009 23:30:31 +0000 (23:30 +0000)]
2009-11-23  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dan Bernstein.

        DocumentMarkers need to be educated about transforms
        https://bugs.webkit.org/show_bug.cgi?id=31751

        Find highlight is incorrect with transforms
        <rdar://problem/6358394>

        Allow callers to specify that Frame::selectionTextRects() takes transforms into account
        when computing the set of rects that encompass a selection. For transformed elemenets, the
        selection rect will be the bounding box of the selected content.

        Fix DocumentMarkers to cache rects in absolute coordinates, rather than painting coordinates.

        Test: editing/selection/transformed-selection-rects.html

        * WebCore.base.exp:
        Frame::selectionTextRects() has a new parameter.

        * dom/Document.cpp:
        (WebCore::Document::setRenderedRectForMarker):
        * dom/Document.h:
        Pass the marker as a const reference.

        * dom/Range.h:
        * dom/Range.cpp:
        (WebCore::Range::textQuads):
        Add a new method, textQuads(), which returns a list of quads, respecting transforms.

        * page/Frame.h:
        * page/Frame.cpp:
        (WebCore::Frame::selectionTextRects):
        Add a new parameter, respectTransforms, and when that is RespectTransforms, use the quad
        method to get quads for ranges, and then take their bounding boxes.

        * rendering/InlineTextBox.h:
        * rendering/InlineTextBox.cpp:
        (WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
        (WebCore::InlineTextBox::paintTextMatchMarker):
        (WebCore::InlineTextBox::computeRectForReplacementMarker):
        (WebCore::InlineTextBox::paintDocumentMarkers):
        (WebCore::InlineTextBox::textPos):
        (WebCore::InlineTextBox::offsetForPosition):

        Pass DocumentMarkers as a const references.
        Convert the argument to setRenderedRectForMarker() into absolute coordinates.

        * rendering/RenderView.cpp:
        (WebCore::RenderView::selectionBounds):

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

12 years ago2009-11-23 Steve Block <steveblock@google.com>
eric@webkit.org [Mon, 23 Nov 2009 22:55:22 +0000 (22:55 +0000)]
2009-11-23  Steve Block  <steveblock@google.com>

        Reviewed by Dmitry Titov.

        Adds MainThreadAndroid.cpp with Android-specific WTF threading functions.
        https://bugs.webkit.org/show_bug.cgi?id=31807

        * wtf/android: Added.
        * wtf/android/MainThreadAndroid.cpp: Added.
        (WTF::timeoutFired):
        (WTF::initializeMainThreadPlatform):
        (WTF::scheduleDispatchFunctionsOnMainThread):

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

12 years ago2009-11-23 Dirk Schulze <krit@webkit.org>
krit@webkit.org [Mon, 23 Nov 2009 22:36:42 +0000 (22:36 +0000)]
2009-11-23  Dirk Schulze  <krit@webkit.org>

        Reviewed by Oliver Hunt.

        [Cairo] support blurred test-shadow
        [https://bugs.webkit.org/show_bug.cgi?id=31797]

        Support for blurred text-shadows on Cairo. This patch
        reuses the code of blurred box-shadows, introduced in
        bug 26102. For a full textshadow support, a filters enabled
        build is needed.

        * platform/graphics/cairo/FontCairo.cpp:
        (WebCore::Font::drawGlyphs):

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

12 years agoChange incorrect calls to the constructor "EventNames()" to the correct accessor
snej@chromium.org [Mon, 23 Nov 2009 22:25:22 +0000 (22:25 +0000)]
Change incorrect calls to the constructor "EventNames()" to the correct accessor
"eventNames()". This saves ~100 AtomicString lookups each time.
https://bugs.webkit.org/show_bug.cgi?id=31811

Reviewed by Geoffrey Garen.

* dom/EventNames.h:  Make constructor private to prevent this from happening again.
* history/CachedFrame.cpp:
(WebCore::CachedFrameBase::restore):  EventNames() --> eventNames()
* html/HTMLFormControlElement.cpp:
(WebCore::HTMLFormControlElement::checkValidity):  EventNames() --> eventNames()
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::stopLoading):  EventNames() --> eventNames()
(WebCore::FrameLoader::pageHidden):  EventNames() --> eventNames()
* page/DOMWindow.cpp:
(WebCore::DOMWindow::dispatchAllPendingUnloadEvents):  EventNames() --> eventNames()

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

12 years ago Reviewed by Oliver Hunt.
kov@webkit.org [Mon, 23 Nov 2009 22:22:53 +0000 (22:22 +0000)]
    Reviewed by Oliver Hunt.

        Implement new required function to pass test we used to pass. This
        change is required since r51294.

        * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
        (LayoutTestController::setAllowUniversalAccessFromFileURLs):

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

12 years ago2009-11-23 Adam Langley <agl@google.com>
agl@chromium.org [Mon, 23 Nov 2009 22:10:55 +0000 (22:10 +0000)]
2009-11-23  Adam Langley  <agl@google.com>

        Reviewed by Dmitry Titov.

        Chromium Linux: Limit the stroke width and mitre limit.

        Limit the stroke width and mitre limit that we'll pass into Skia to
        avoid overflowing Skia's uint16_t glyph widths.

        http://code.google.com/p/chromium/issues/detail?id=28250
        https://bugs.webkit.org/show_bug.cgi?id=31747

        * platform/graphics/skia/PlatformContextSkia.cpp:
        (scalarBound):
        (PlatformContextSkia::setupPaintForStroking):

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

12 years agoUnreviewed. Skip new tests.
ossy@webkit.org [Mon, 23 Nov 2009 21:57:50 +0000 (21:57 +0000)]
Unreviewed. Skip new tests.

* platform/qt/Skipped:

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

12 years ago Reviewed by Oliver Hunt.
ap@apple.com [Mon, 23 Nov 2009 21:53:48 +0000 (21:53 +0000)]
    Reviewed by Oliver Hunt.

        https://bugs.webkit.org/show_bug.cgi?id=31812
        WebSocket code uses RefPtr::get() where it shouldn't

        No change in funcitonality, just coding style correction.

        * websockets/WebSocket.cpp:
        (WebCore::WebSocket::~WebSocket):
        * websockets/WebSocketChannel.cpp:
        (WebCore::WebSocketChannel::connect):
        (WebCore::WebSocketChannel::send):
        (WebCore::WebSocketChannel::bufferedAmount):
        (WebCore::WebSocketChannel::close):
        (WebCore::WebSocketChannel::disconnect):
        (WebCore::WebSocketChannel::didOpen):
        (WebCore::WebSocketChannel::didClose):
        (WebCore::WebSocketChannel::didReceiveData):
        (WebCore::WebSocketChannel::didFail):

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

12 years ago2009-11-23 Jakub Wieczorek <faw217@gmail.com>
eric@webkit.org [Mon, 23 Nov 2009 21:48:11 +0000 (21:48 +0000)]
2009-11-23  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] DRT: dumpBackForwardList() does not work properly with non-file URLs.
        https://bugs.webkit.org/show_bug.cgi?id=31775

        LayoutTestController::dumpBackForwardList() should work with local URLs
        as well as with normal URLs (in http tests for instance).
        Currently it does not output the latter properly.

        Unskip a bunch of passing http/navigation tests.

        * platform/qt/Skipped:
2009-11-23  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] DRT: dumpBackForwardList() does not work properly with non-file URLs.
        https://bugs.webkit.org/show_bug.cgi?id=31775

        LayoutTestController::dumpBackForwardList() should work with local URLs
        as well as with normal URLs (in http tests for instance).
        Currently it does not output the latter properly.

        Unskip a bunch of passing http/navigation tests.

        * DumpRenderTree/qt/DumpRenderTree.cpp:
        (WebCore::dumpHistoryItem):

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

12 years ago Build fix.
ap@apple.com [Mon, 23 Nov 2009 21:28:47 +0000 (21:28 +0000)]
    Build fix.

        * platform/network/cf/SocketStreamHandleCFNet.cpp:
        (WebCore::SocketStreamHandle::pacExecutionCallbackMainThread): pacExecutionCallbackMainThread
        is static, so it can't use member variables directly.

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

12 years ago Reviewed by Brady Eidson.
ap@apple.com [Mon, 23 Nov 2009 21:00:27 +0000 (21:00 +0000)]
    Reviewed by Brady Eidson.

        https://bugs.webkit.org/show_bug.cgi?id=31748
        Make WebSocketHandleCFNet respect proxy auto-configuration files via CFProxySupport

        * platform/network/cf/SocketStreamHandle.h: Removed names from some void* arguments, since
        they didn't carry useful information.

        * platform/network/cf/SocketStreamHandleCFNet.cpp:
        (WebCore::SocketStreamHandle::SocketStreamHandle): When we need an http-style URL, we actually
        always need https.
        (WebCore::SocketStreamHandle::scheduleStreams): Factored out from constructor, since streams
        only get scheduled after PAC is fetched and executed asynchronously.
        (WebCore::SocketStreamHandle::copyPACExecutionDescription): Return a description for event
        source.
        (WebCore::MainThreadPACCallbackInfo::MainThreadPACCallbackInfo): Forward callback to main thread.
        (WebCore::SocketStreamHandle::pacExecutionCallback): Ditto.
        (WebCore::SocketStreamHandle::pacExecutionCallbackMainThread): Ditto. To avoid code duplication,
        we make the call even on Mac.
        (WebCore::SocketStreamHandle::executePACFileURL): Make an async call to CFNetworkExecuteProxyAutoConfigurationURL.
        (WebCore::SocketStreamHandle::removePACRunLoopSource): Once PAC execution is done or aborted,
        we need to get rid of the event source.
        (WebCore::SocketStreamHandle::chooseProxy): Use stored m_httpsURL.get.
        (WebCore::SocketStreamHandle::chooseProxyFromArray): Factored out from chooseProxy - the
        array may come directly from system configuration, or from PAC.
        (WebCore::SocketStreamHandle::chooseProxy): Tiger version of this function is now completely
        separate.
        (WebCore::SocketStreamHandle::~SocketStreamHandle): Run loop source should be destroyed
        before we get to the destructor.
        (WebCore::SocketStreamHandle::platformClose): Destroy the run loop source, if PAC execution
        is still in progress.

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

12 years agoDon't leak the CGImage we create when drawing a sub image.
oliver@apple.com [Mon, 23 Nov 2009 20:10:04 +0000 (20:10 +0000)]
Don't leak the CGImage we create when drawing a sub image.

Reviewed by Geoff Garen.

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

12 years ago2009-11-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Mon, 23 Nov 2009 19:12:08 +0000 (19:12 +0000)]
2009-11-23  Adam Barth  <abarth@webkit.org>

        Reviewed by Dimitri Glazkov.

        [V8] Don't crash when OOM in creating isolated world
        https://bugs.webkit.org/show_bug.cgi?id=31805

        We need to add some more null checks to avoid crashing.  No new tests
        because we don't have a good way to test out-of-memory bugs.

        * bindings/v8/V8Proxy.cpp:
        (WebCore::V8Proxy::evaluateInIsolatedWorld):
        (WebCore::V8Proxy::evaluateInNewContext):
        (WebCore::V8Proxy::setInjectedScriptContextDebugId):
        * bindings/v8/V8Proxy.h:

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

12 years agoTouch WebKit.idl to force a rebuild.
bweinstein@apple.com [Mon, 23 Nov 2009 19:07:24 +0000 (19:07 +0000)]
Touch WebKit.idl to force a rebuild.

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

12 years ago2009-11-23 Dirk Schulze <krit@webkit.org>
krit@webkit.org [Mon, 23 Nov 2009 16:15:24 +0000 (16:15 +0000)]
2009-11-23  Dirk Schulze  <krit@webkit.org>

        Reviewed by Nikolas Zimmermann.

        This is the implementation of the filterRes attribute. It
        helps the SVG developer to set the quality of a filter by
        giving the width or height of filter.
        This patch also sets the filter resolution to lower values
        if a intermediate ImageBuffer size is bigger than the given
        maximal size.
        The maximal size is set to 5000x5000 by default. This is a
        subjectiv decission. Everthing greater than this values gets
        sensible slower. Values of 10000x10000 crashed on WebKitGtk.
        For mobil devices a maximum size of 100x100 or 200x200 seems
        to be reasonable.
        The important fact on filter resolution is, that the output
        size is still the size given by the <filter> element.

        Tests: svg/filters/big-sized-filter-2.svg
               svg/filters/big-sized-filter.svg
               svg/filters/filterRes.svg

        * platform/graphics/FloatRect.cpp:
        (WebCore::FloatRect::scale): Add the abbility to scale a rect by x and y.
        * platform/graphics/FloatRect.h:
        (WebCore::FloatRect::scale): Add the abbility to scale a rect by x and y.
        * platform/graphics/cairo/GraphicsContextCairo.cpp:
        (WebCore::GraphicsContext::createPlatformShadow): Use scaledSubRegion for
        calculation.
        * platform/graphics/filters/FEBlend.cpp:
        (WebCore::FEBlend::apply): Use scaledSubRegion for effect intern calculations.
        * platform/graphics/filters/FEColorMatrix.cpp:
        (WebCore::FEColorMatrix::apply): Use scaledSubRegion for effect intern calculations.
        * platform/graphics/filters/FEComponentTransfer.cpp:
        (WebCore::FEComponentTransfer::apply): Use scaledSubRegion for effect intern
        calculations.
        * platform/graphics/filters/FEComposite.cpp:
        (WebCore::FEComposite::apply): Use scaledSubRegion for effect intern calculations.
        * platform/graphics/filters/FEGaussianBlur.cpp:
        (WebCore::FEGaussianBlur::apply): Use scaledSubRegion for effect intern calculations.
        * platform/graphics/filters/Filter.h: Add the abbility to change the quality
        of a filter output.
        (WebCore::Filter::filterResolution):
        (WebCore::Filter::setFilterResolution):
        (WebCore::Filter::calculateEffectSubRegion): Calculates the correct subRegion
        as well as the scaledSubRegion. It also searches for the biggest effect size.
        We have to change the filter resolution, if one intermediate ImageBuffer size
        doesn't fit in the maximal image size.
        * platform/graphics/filters/FilterEffect.cpp:
        (WebCore::FilterEffect::calculateDrawingIntRect): Use scaledSubRegion to get
        the right part of a previous effect result.
        (WebCore::FilterEffect::calculateDrawingRect): Use scaledSubRegion to get
        the right part of a previous effect result.
        (WebCore::FilterEffect::getEffectContext): Use scaledSubRegion to create
        a new intermediate ImageBuffer for the result of the current effect.
        * platform/graphics/filters/FilterEffect.h:
        (WebCore::FilterEffect::scaledSubRegion): The scaled subRegion of a the
        filter effect.
        (WebCore::FilterEffect::setScaledSubRegion):
        (WebCore::FilterEffect::effectBoundaries): The original values of the
        EffectElement for a second subRegion calculation.
        (WebCore::FilterEffect::setEffectBoundaries):
        * platform/graphics/filters/ImageBufferFilter.cpp:
        (WebCore::ImageBufferFilter::ImageBufferFilter): Set the scale factor to one.
        * platform/graphics/filters/ImageBufferFilter.h:
        (WebCore::ImageBufferFilter::maxImageSize):
        (WebCore::ImageBufferFilter::calculateEffectSubRegion):
        * platform/graphics/filters/SourceAlpha.cpp:
        (WebCore::SourceAlpha::calculateEffectRect): Use scaledSubRegion for effect
        intern calculations.
        * platform/graphics/filters/SourceGraphic.cpp:
        (WebCore::SourceGraphic::calculateEffectRect): Use scaledSubRegion for effect
        intern calculations.
        * svg/SVGFilterElement.cpp:
        (WebCore::SVGFilterElement::parseMappedAttribute): Parse filterRes attribute.
        (WebCore::SVGFilterElement::buildFilter): Give SVGResourceFilter the current
        filterResolution.
        * svg/SVGFilterPrimitiveStandardAttributes.cpp:
        (WebCore::SVGFilterPrimitiveStandardAttributes::setStandardAttributes): Save
        values to effectBoundaries of the filter effect
        * svg/graphics/SVGResourceFilter.cpp:
        (WebCore::SVGResourceFilter::SVGResourceFilter):
        (WebCore::shouldProcessFilter): Return signal if a neccessary value is zero.
        (WebCore::SVGResourceFilter::fitsInMaximumImageSize): Checks if the given size
        fits into the maximal image size, modifys scale factors if not and return a
        bool: fits.
        (WebCore::SVGResourceFilter::prepareFilter): Scale the SourceImage to
        filterResolution (given by FilterElement or calculated on to big image sizes).
        Set the scale level to SVGFilter.
        (WebCore::SVGResourceFilter::applyFilter): Don't apply filters if shouldProcessFilter
        is wrong.
        * svg/graphics/SVGResourceFilter.h:
        (WebCore::SVGResourceFilter::setFilterResolution): FilterResolution of FilterElement.
        (WebCore::SVGResourceFilter::setHasFilterResolution): Does FilterElement provides
        a FilterResolution?
        (WebCore::SVGResourceFilter::scaleX): Current scale factor for horizontal.
        (WebCore::SVGResourceFilter::scaleY): Current scale factor for vertical.
        * svg/graphics/filters/SVGFEDisplacementMap.cpp:
        (WebCore::FEDisplacementMap::apply): Use scaledSubRegion for effect intern calculations.
        Kernel values are scaled to current filter resolution too.
        * svg/graphics/filters/SVGFEFlood.cpp:
        (WebCore::FEFlood::apply): Use scaledSubRegion for effect intern calculations.
        * svg/graphics/filters/SVGFEMerge.cpp:
        (WebCore::FEMerge::apply): Use scaledSubRegion for effect intern calculations.
        Kernel values are scaled to current filter resolution too.
        * svg/graphics/filters/SVGFEMorphology.cpp:
        (WebCore::FEMorphology::apply): Use scaledSubRegion for effect intern calculations.
        Kernel values are scaled to current filter resolution too.
        * svg/graphics/filters/SVGFEOffset.cpp:
        (WebCore::FEOffset::apply): Use scaledSubRegion for effect intern calculations.
        * svg/graphics/filters/SVGFETile.cpp:
        (WebCore::FETile::apply): Use scaledSubRegion for effect intern calculations.
        * svg/graphics/filters/SVGFilter.cpp:
        (WebCore::SVGFilter::calculateEffectSubRegion): Calculate subRegion for LayoutTests,
        scaledSubRegion according to the current filterResolution and get the maximal image size.
        * svg/graphics/filters/SVGFilter.h:
        (WebCore::SVGFilter::effectBoundingBoxMode): Original values of the FilterElement.
        (WebCore::SVGFilter::filterRegion): Use virtual for clarification.
        (WebCore::SVGFilter::sourceImageRect): Use virtual for clarification.
        (WebCore::SVGFilter::maxImageSize): Get the maximal image size.

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

12 years ago Reviewed by Adam Roben.
kdecker@apple.com [Mon, 23 Nov 2009 16:05:13 +0000 (16:05 +0000)]
    Reviewed by Adam Roben.

        <rdar://problem/7401503>

        Added a workaround for plug-ins not drawing immediately.

        * Plugins/WebBaseNetscapePluginView.mm: Added new constant.
        (-[WebBaseNetscapePluginView _clearSubstituteImage]): Added.
        (-[WebBaseNetscapePluginView resumeFromHalt]): Call above new method.

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

12 years ago2009-11-23 David Boddie <dboddie@trolltech.com>
eric@webkit.org [Mon, 23 Nov 2009 15:17:19 +0000 (15:17 +0000)]
2009-11-23  David Boddie  <dboddie@trolltech.com>

        Reviewed by Simon Hausmann.

        Updated the QWebElement documentation with links to examples and
        external resources.
        Fixed the project file for the webelement snippet and tidied up the
        markers used for quoting the code.

        * Api/qwebelement.cpp:
        * docs/webkitsnippets/webelement/main.cpp:
        (findAll):
        * docs/webkitsnippets/webelement/webelement.pro:

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

12 years ago[Symbian] Fix lastIndexOf() for Symbian
hausmann@webkit.org [Mon, 23 Nov 2009 13:02:13 +0000 (13:02 +0000)]
[Symbian] Fix lastIndexOf() for Symbian
https://bugs.webkit.org/show_bug.cgi?id=31773

Patch by Laszlo Gombos <laszlo.1.gombos@nokia.com> on 2009-11-23
Reviewed by Kenneth Rohde Christiansen.

Symbian soft floating point library has problems with operators
comparing NaN to numbers. Without a workaround lastIndexOf()
function does not work.

Patch developed by David Leong.

* runtime/StringPrototype.cpp:
(JSC::stringProtoFuncLastIndexOf):Add an extra test
to check for NaN for Symbian.

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

12 years ago2009-11-23 Simon Hausmann <simon.hausmann@nokia.com>
eric@webkit.org [Mon, 23 Nov 2009 12:58:30 +0000 (12:58 +0000)]
2009-11-23  Simon Hausmann  <simon.hausmann@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
        the wrapped object died before the gc removed the instance.

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

        Before using a cached instance, verify that its wrapped QObject is
        still alive.

        * bridge/qt/qt_instance.cpp:
        (JSC::Bindings::QtInstance::getQtInstance):
        * bridge/qt/qt_instance.h:
        (JSC::Bindings::QtInstance::hashKey):
2009-11-23  Simon Hausmann  <simon.hausmann@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Wrong runtime instance objects of wrapped QObjects may be used if
        the wrapped object died before the gc removed the instance.

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

        Added a unit-test to verify that wrapping a QObject with the
        same identity as a previously but now dead object works.

        * tests/qwebframe/tst_qwebframe.cpp:

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

12 years agoAndroid port lacks implementation of atomicIncrement and atomicDecrement
steveblock@google.com [Mon, 23 Nov 2009 11:29:07 +0000 (11:29 +0000)]
Android port lacks implementation of atomicIncrement and atomicDecrement

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

12 years ago2009-11-22 Chris Fleizach <cfleizach@apple.com>
eric@webkit.org [Mon, 23 Nov 2009 06:21:59 +0000 (06:21 +0000)]
2009-11-22  Chris Fleizach  <cfleizach@apple.com>

        Reviewed by Oliver Hunt.

        ARIA: support aria-flowto
        https://bugs.webkit.org/show_bug.cgi?id=31762

        * platform/mac/accessibility/aria-flowto-expected.txt: Added.
        * platform/mac/accessibility/aria-flowto.html: Added.
2009-11-22  Chris Fleizach  <cfleizach@apple.com>

        Reviewed by Oliver Hunt.

        ARIA: support aria-flowto
        https://bugs.webkit.org/show_bug.cgi?id=31762

        Test: platform/mac/accessibility/aria-flowto.html

        * accessibility/AccessibilityObject.h:
        (WebCore::AccessibilityObject::ariaOwnsElements):
        (WebCore::AccessibilityObject::supportsARIAFlowTo):
        (WebCore::AccessibilityObject::ariaFlowToElements):
        * accessibility/AccessibilityRenderObject.cpp:
        (WebCore::AccessibilityRenderObject::linkedUIElements):
        (WebCore::AccessibilityRenderObject::supportsARIAFlowTo):
        (WebCore::AccessibilityRenderObject::ariaFlowToElements):
        * accessibility/AccessibilityRenderObject.h:
        * html/HTMLAttributeNames.in:
2009-11-22  Chris Fleizach  <cfleizach@apple.com>

        Reviewed by Oliver Hunt.

        ARIA: support aria-flowto
        https://bugs.webkit.org/show_bug.cgi?id=31762

        * DumpRenderTree/AccessibilityUIElement.cpp:
        (ariaFlowToElementAtIndexCallback):
        (AccessibilityUIElement::getJSClass):
        * DumpRenderTree/AccessibilityUIElement.h:
        * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
        (AccessibilityUIElement::ariaFlowToElementAtIndex):
        * DumpRenderTree/mac/AccessibilityUIElementMac.mm:
        (AccessibilityUIElement::ariaFlowToElementAtIndex):
        * DumpRenderTree/win/AccessibilityUIElementWin.cpp:
        (AccessibilityUIElement::ariaFlowToElementAtIndex):

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

12 years agoUpdated WebKitSystemInterface.
mitz@apple.com [Mon, 23 Nov 2009 04:27:49 +0000 (04:27 +0000)]
Updated WebKitSystemInterface.

Reviewed by Eric Carlson.

* libWebKitSystemInterfaceLeopard.a:
* libWebKitSystemInterfaceSnowLeopard.a:
* libWebKitSystemInterfaceTiger.a:

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

12 years ago2009-11-22 Laszlo Gombos <laszlo.1.gombos@nokia.com>
laszlo.1.gombos@nokia.com [Mon, 23 Nov 2009 03:45:25 +0000 (03:45 +0000)]
2009-11-22  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Unreviewed.

        [Qt] Sort source lists and remove obsolete comments
        from the build system.

        * JavaScriptCore.pri:

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

12 years ago2009-11-22 Dirk Schulze <krit@webkit.org>
eric@webkit.org [Mon, 23 Nov 2009 01:33:53 +0000 (01:33 +0000)]
2009-11-22  Dirk Schulze  <krit@webkit.org>

        Reviewed by Nikolas Zimmermann.

        Tests to the filterRes implementation for SVG Filters
        [https://bugs.webkit.org/show_bug.cgi?id=6021]

        big-sized-filter: tests if filter quality is scaled down on a too
            big SourceImage (SourceGraphic, SourceAlpha)
        big-sized-filter-2: tests if the filter quality is scaled down
            on a too big filter effect size.
        filterRes: Various tests of SVG Filters with different values for
            filterRes attributes. Checks
            * that kernel values (if present) are scaled with the filterRes
            * subRegion calculation is correct for effects with deeper
              dependencies.

        * platform/mac/svg/filters/big-sized-filter-2-expected.txt: Added.
        * platform/mac/svg/filters/big-sized-filter-expected.checksum: Added.
        * platform/mac/svg/filters/big-sized-filter-expected.png: Added.
        * platform/mac/svg/filters/big-sized-filter-expected.txt: Added.
        * platform/mac/svg/filters/filterRes-expected.checksum: Added.
        * platform/mac/svg/filters/filterRes-expected.png: Added.
        * platform/mac/svg/filters/filterRes-expected.txt: Added.
        * svg/filters/big-sized-filter-2.svg: Added.
        * svg/filters/big-sized-filter.svg: Added.
        * svg/filters/filterRes.svg: Added.

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

12 years agoNot reviewed. Build fix for WML enabled builds.
zimmermann@webkit.org [Mon, 23 Nov 2009 01:29:07 +0000 (01:29 +0000)]
Not reviewed. Build fix for WML enabled builds.
Adopt WebCore API changes.

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

12 years ago[Qt] fast/history/back-forward-reset-after-error-handling.html failing due to WorkQue...
tonikitoo@webkit.org [Sun, 22 Nov 2009 23:14:58 +0000 (23:14 +0000)]
[Qt] fast/history/back-forward-reset-after-error-handling.html failing due to WorkQueue not being un-frozen
https://bugs.webkit.org/show_bug.cgi?id=31638

Reviewed by Kenneth Christiansen.

Unfreeze WorkQueue after each test execution.

* DumpRenderTree/qt/DumpRenderTree.cpp:
(WebCore::DumpRenderTree::resetToConsistentStateBeforeTesting):

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

12 years ago2009-11-22 Jakub Wieczorek <faw217@gmail.com>
eric@webkit.org [Sun, 22 Nov 2009 22:29:10 +0000 (22:29 +0000)]
2009-11-22  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Adam Barth.

        [Qt] DumpRenderTree should explicitly ignore any SSL certificate errors
        for localhost and 127.0.0.1.
        https://bugs.webkit.org/show_bug.cgi?id=31783

        Unskip the http/tests/ssl/verify-ssl-enabled.php test, which is passing now.

        * platform/qt/Skipped:
2009-11-22  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Adam Barth.

        [Qt] DumpRenderTree should explicitly ignore any SSL certificate errors
        for localhost and 127.0.0.1.
        https://bugs.webkit.org/show_bug.cgi?id=31783

        Unskip the http/tests/ssl/verify-ssl-enabled.php test, which is passing now.

        * DumpRenderTree/qt/DumpRenderTree.cpp:
        (WebCore::NetworkAccessManager::NetworkAccessManager):
        (WebCore::NetworkAccessManager::sslErrorsEncountered):
        (WebCore::WebPage::WebPage):
        * DumpRenderTree/qt/DumpRenderTree.h:

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

12 years ago2009-11-22 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Sun, 22 Nov 2009 20:05:47 +0000 (20:05 +0000)]
2009-11-22  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: Introduce sidebar background on timeline panel in order
        to prevent it from flickering on scroll.

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

        * inspector/front-end/TimelinePanel.js:
        (WebInspector.TimelinePanel):
        (WebInspector.TimelinePanel.prototype.setSidebarWidth):
        (WebInspector.TimelinePanel.prototype._onScroll):
        (WebInspector.TimelinePanel.prototype._scheduleRefresh):
        * inspector/front-end/inspector.css:

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

12 years ago2009-11-22 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Sun, 22 Nov 2009 18:25:03 +0000 (18:25 +0000)]
2009-11-22  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: Reimplement TimelinePanel to make it fast:
        - Extract grid and overview into separate files
        - Make timeline create only divs for visible rows

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

        * WebCore.gypi:
        * WebCore.vcproj/WebCore.vcproj:
        * inspector/front-end/AbstractTimelinePanel.js:
        (WebInspector.AbstractTimelinePanel.prototype.createInterface):
        (WebInspector.AbstractTimelinePanel.prototype.refresh):
        (WebInspector.AbstractTimelinePanel.prototype.set calculator):
        * inspector/front-end/TimelineGrid.js: Added.
        (WebInspector.TimelineGrid):
        (WebInspector.TimelineGrid.prototype.get itemsGraphsElement):
        (WebInspector.TimelineGrid.prototype.updateDividers):
        (WebInspector.TimelineGrid.prototype.addEventDivider):
        (WebInspector.TimelineGrid.prototype.setScrollAndDividerTop):
        * inspector/front-end/TimelineOverviewPane.js: Added.
        (WebInspector.TimelineOverviewPane):
        (WebInspector.TimelineOverviewPane.prototype._onCheckboxClicked):
        (WebInspector.TimelineOverviewPane.prototype.update):
        (WebInspector.TimelineOverviewPane.prototype.setSidebarWidth):
        (WebInspector.TimelineOverviewPane.prototype.updateMainViewWidth):
        (WebInspector.TimelineOverviewPane.prototype.reset):
        (WebInspector.TimelineOverviewPane.prototype._resizeWindow):
        (WebInspector.TimelineOverviewPane.prototype._windowResizeDragging):
        (WebInspector.TimelineOverviewPane.prototype._dragWindow):
        (WebInspector.TimelineOverviewPane.prototype._windowDragging):
        (WebInspector.TimelineOverviewPane.prototype._resizeWindowLeft):
        (WebInspector.TimelineOverviewPane.prototype._resizeWindowRight):
        (WebInspector.TimelineOverviewPane.prototype._setWindowPosition):
        (WebInspector.TimelineOverviewPane.prototype._endWindowDragging):
        (WebInspector.TimelineOverviewCalculator):
        (WebInspector.TimelineOverviewCalculator.prototype.computeBarGraphPercentages):
        (WebInspector.TimelineOverviewCalculator.prototype.reset):
        (WebInspector.TimelineOverviewCalculator.prototype.updateBoundaries):
        (WebInspector.TimelineOverviewCalculator.prototype.get boundarySpan):
        (WebInspector.TimelineOverviewCalculator.prototype.formatValue):
        (WebInspector.TimelineCategoryTreeElement):
        (WebInspector.TimelineCategoryTreeElement.prototype.onattach):
        (WebInspector.TimelineCategoryGraph):
        (WebInspector.TimelineCategoryGraph.prototype.get graphElement):
        (WebInspector.TimelineCategoryGraph.prototype.addChunk):
        (WebInspector.TimelineCategoryGraph.prototype.clearChunks):
        (WebInspector.TimelineCategoryGraph.prototype.set dimmed):
        * inspector/front-end/TimelinePanel.js:
        (WebInspector.TimelinePanel):
        (WebInspector.TimelinePanel.prototype._toggleTimelineButtonClicked):
        (WebInspector.TimelinePanel.prototype.addRecordToTimeline):
        (WebInspector.TimelinePanel.prototype._formatRecord):
        (WebInspector.TimelinePanel.prototype.setSidebarWidth):
        (WebInspector.TimelinePanel.prototype.updateMainViewWidth):
        (WebInspector.TimelinePanel.prototype.resize):
        (WebInspector.TimelinePanel.prototype.reset):
        (WebInspector.TimelinePanel.prototype.show):
        (WebInspector.TimelinePanel.prototype._onScroll):
        (WebInspector.TimelinePanel.prototype._scheduleRefresh):
        (WebInspector.TimelinePanel.prototype._refresh):
        (WebInspector.TimelinePanel.prototype._refreshRecords):
        (WebInspector.TimelinePanel.prototype._adjustScrollPosition):
        (WebInspector.TimelineCategory):
        (WebInspector.TimelineCalculator):
        (WebInspector.TimelineCalculator.prototype.get boundarySpan):
        (WebInspector.TimelineRecordListRow):
        (WebInspector.TimelineRecordListRow.prototype.update):
        (WebInspector.TimelineRecordGraphRow):
        (WebInspector.TimelineRecordGraphRow.prototype.update):
        * inspector/front-end/WebKit.qrc:
        * inspector/front-end/inspector.css:
        * inspector/front-end/inspector.html:

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

12 years ago2009-11-22 Chris Evans <cevans@chromium.org>
abarth@webkit.org [Sun, 22 Nov 2009 17:22:39 +0000 (17:22 +0000)]
2009-11-22  Chris Evans  <cevans@chromium.org>

        Reviewed by Adam Barth.

        Disable access to file:/// directory listings
        https://bugs.webkit.org/show_bug.cgi?id=31329

        Updates the test to make sure it is disabling universal access for
        file:/// URLs (if the API is supported). This is required to do
        effective intra-file:/// access tests.
        Note that Safari only passes by virtual of supporting no directory
        listings at all.

        * fast/xmlhttprequest/resources/xmlhttprequest-nonexistent-file-real.html: Added.
        * fast/xmlhttprequest/xmlhttprequest-nonexistent-file-expected.txt:
        * fast/xmlhttprequest/xmlhttprequest-nonexistent-file.html:
        Disable universal access for file:/// URLs (if API available).
        Run the real test in an iframe without universal access.
2009-11-22  Chris Evans  <cevans@chromium.org>

        Reviewed by Adam Barth.

        Disable access to file:/// directory listings
        https://bugs.webkit.org/show_bug.cgi?id=31329

        Deny access to directory listings. This needs doing in WebKit for
        WebKit clients that do permit top-level navigation to file:///dir.
        This matches Firefox, plus the existing Safari implementation (which
        does not support any directory access at all). It will fix the
        LayoutTest named below for Chromium.

        Test: fast/xmlhttprequest/xmlhttprequest-nonexistent-file.html

        * page/SecurityOrigin.cpp: Deny access to directory listings.
        (WebCore::SecurityOrigin::SecurityOrigin):
        (WebCore::SecurityOrigin::canRequest):
2009-11-22  Chris Evans  <cevans@chromium.org>

        Reviewed by Adam Barth.

        Disable access to file:/// directory listings
        https://bugs.webkit.org/show_bug.cgi?id=31329

        Implemented setAllowUniversalAccessFromFileURLs to support testing of
        file URL security.

        * DumpRenderTree/LayoutTestController.cpp:
        (setAllowUniversalAccessFromFileURLsCallback):
        (LayoutTestController::staticFunctions):
        * DumpRenderTree/LayoutTestController.h:
        * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
        (LayoutTestController::setAllowUniversalAccessFromFileURLs):
        * DumpRenderTree/mac/LayoutTestControllerMac.mm:
        (LayoutTestController::setAllowUniversalAccessFromFileURLs):
        * DumpRenderTree/win/LayoutTestControllerWin.cpp:
        (LayoutTestController::setAllowUniversalAccessFromFileURLs):
        * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
        (LayoutTestController::setAllowUniversalAccessFromFileURLs):

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

12 years ago2009-11-22 Chris Evans <cevans@chromium.org>
abarth@webkit.org [Sun, 22 Nov 2009 17:22:31 +0000 (17:22 +0000)]
2009-11-22  Chris Evans  <cevans@chromium.org>

        Reviewed by Adam Barth.

        Updates the test to make sure it is disabling universal access for
        file:/// URLs (if the API is supported). This is required to do
        effective intra-file:/// access tests.
        Note that Safari only passes by virtual of supporting no directory
        listings at all.

        * fast/xmlhttprequest/resources/xmlhttprequest-nonexistent-file-real.html: Added.
        * fast/xmlhttprequest/xmlhttprequest-nonexistent-file-expected.txt:
        * fast/xmlhttprequest/xmlhttprequest-nonexistent-file.html:
        Disable universal access for file:/// URLs (if API available).
        Run the real test in an iframe without universal access.
2009-11-22  Chris Evans  <cevans@chromium.org>

        Reviewed by Adam Barth.

        Deny access to directory listings. This needs doing in WebKit for
        WebKit clients that do permit top-level navigation to file:///dir.
        This matches Firefox, plus the existing Safari implementation (which
        does not support any directory access at all). It will fix the
        LayoutTest named below for Chromium.

        Test: fast/xmlhttprequest/xmlhttprequest-nonexistent-file.html

        * page/SecurityOrigin.cpp: Deny access to directory listings.
        (WebCore::SecurityOrigin::SecurityOrigin):
        (WebCore::SecurityOrigin::canRequest):
2009-11-22  Chris Evans  <cevans@chromium.org>

        Reviewed by Adam Barth.

        Implemented setAllowUniversalAccessFromFileURLs to support testing of
        file URL security.

        * DumpRenderTree/LayoutTestController.cpp:
        (setAllowUniversalAccessFromFileURLsCallback):
        (LayoutTestController::staticFunctions):
        * DumpRenderTree/LayoutTestController.h:
        * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
        (LayoutTestController::setAllowUniversalAccessFromFileURLs):
        * DumpRenderTree/mac/LayoutTestControllerMac.mm:
        (LayoutTestController::setAllowUniversalAccessFromFileURLs):
        * DumpRenderTree/win/LayoutTestControllerWin.cpp:
        (LayoutTestController::setAllowUniversalAccessFromFileURLs):
        * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
        (LayoutTestController::setAllowUniversalAccessFromFileURLs):

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

12 years ago2009-11-22 Jakub Wieczorek <faw217@gmail.com>
eric@webkit.org [Sun, 22 Nov 2009 15:16:31 +0000 (15:16 +0000)]
2009-11-22  Jakub Wieczorek  <faw217@gmail.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Fix the timeout of fast/frames/frame-navigation.html
        https://bugs.webkit.org/show_bug.cgi?id=31638

        The test is timeouting, because it uses the WorkQueue to load a document in one
        of the child frames and once the loading is finished, the DRT does not dump the
        tree. This is because it waits for the QWebFrame::loadFinished() signal from
        the main frame, while it should connect to QWebPage::loadFinished().

        * DumpRenderTree/qt/DumpRenderTree.cpp:
        (WebCore::DumpRenderTree::DumpRenderTree):

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

12 years agoFixed a leak in WKDrawMediaUIPart().
mitz@apple.com [Sun, 22 Nov 2009 10:04:14 +0000 (10:04 +0000)]
Fixed a leak in WKDrawMediaUIPart().

Reviewed by Cameron Zwarich.

* libWebKitSystemInterfaceLeopard.a:
* libWebKitSystemInterfaceSnowLeopard.a:
* libWebKitSystemInterfaceTiger.a:

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

12 years ago2009-11-20 Joseph Pecoraro <joepeck@webkit.org>
joepeck@webkit.org [Sun, 22 Nov 2009 03:39:27 +0000 (03:39 +0000)]
2009-11-20  Joseph Pecoraro  <joepeck@webkit.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: Support Ctrl+P and Ctrl+N, Readline keyboard shortcuts in the Console
        https://bugs.webkit.org/show_bug.cgi?id=31400

        Handle the following when on a Mac:

          Ctrl+P = Previous (like Up arrow)
          Ctrl+N = Next (like Down arrow)

        No longer rerun autocompletion when just pushing a modifier key
        like Control, Alt, Shift, or Meta.

        Improved arrow key behavior with Multiline code in the Console, with the following behavior:

          Up   = Previous Command if on First Line (caret moves to the end of the first line)
                 otherwise default caret movement in text.
          Down = Next Command if on Last Line (caret naturally moves to the end)
                 otherwise default caret movement in text.

        * inspector/front-end/TextPrompt.js:
        (WebInspector.TextPrompt.prototype.handleKeyEvent): handle new keyboard shortcuts
        (WebInspector.TextPrompt.prototype.isCaretOnFirstLine): check if the caret is on the top line
        (WebInspector.TextPrompt.prototype.isCaretOnLastLine): check if the caret is on the bottom line
        (WebInspector.TextPrompt.prototype._upKeyPressed):
        (WebInspector.TextPrompt.prototype._downKeyPressed):
        (WebInspector.TextPrompt.prototype._moveBackInHistory):
        (WebInspector.TextPrompt.prototype._moveForwardInHistory):

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

12 years agoAdds a tooltip containing the full url of the resource to each element
jberlin@webkit.org [Sun, 22 Nov 2009 03:04:33 +0000 (03:04 +0000)]
Adds a tooltip containing the full url of the resource to each element
in the Resources panel so that it is possible to quickly see the query
parameters.
https://bugs.webkit.org/show_bug.cgi?id=19103

Reviewed by Timothy Hatcher.

* inspector/front-end/ResourcesPanel.js:
(WebInspector.ResourceSidebarTreeElement.prototype.refresh):
Set the tooltip to be the resource's url.

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

12 years ago2009-11-21 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Sun, 22 Nov 2009 00:18:46 +0000 (00:18 +0000)]
2009-11-21  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dan Bernstein.

        CSSKeyframesRule::findRule() and deleteRule() should accept 'from' and 'to' as well as percentages
        https://bugs.webkit.org/show_bug.cgi?id=31588

        In WebKitCSSKeyframesRule::findRuleIndex(), map 'from' to 0% an 'to' to 100%
        so that findRule() and deleteRule() work with these keywords.

        * css/WebKitCSSKeyframesRule.cpp:
        (WebCore::WebKitCSSKeyframesRule::findRuleIndex):

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

12 years ago2009-11-21 Laszlo Gombos <laszlo.1.gombos@nokia.com>
eric@webkit.org [Sat, 21 Nov 2009 23:13:53 +0000 (23:13 +0000)]
2009-11-21  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Eric Seidel.

        [Qt][Mac] Turn on multiple JavaScript threads for QtWebkit on Mac
        https://bugs.webkit.org/show_bug.cgi?id=31753

        * wtf/Platform.h:

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

12 years ago2009-11-21 Eric Seidel <eric@webkit.org>
eric@webkit.org [Sat, 21 Nov 2009 21:34:49 +0000 (21:34 +0000)]
2009-11-21  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        bugzilla-tool --help spews way too much text
        https://bugs.webkit.org/show_bug.cgi?id=31771

        * Scripts/bugzilla-tool:
         - Remove self.cached_scm initialization hack.
        * Scripts/modules/buildbot.py:
         - Make default_host accessible to callers.
        * Scripts/modules/commands/download.py:
         - Phrase help for all commands consistently and remove spurious help text punctuation.
        * Scripts/modules/commands/queries.py: Ditto.
        * Scripts/modules/commands/queues.py: Ditto.
        * Scripts/modules/commands/upload.py: Ditto.
        * Scripts/modules/multicommandtool.py:
         - Add HelpPrintingOptionParser.format_epilog to replace
           NonWrappingEpilogIndentedHelpFormatter and allow us to lazily initialize
           per-command help (thus removing the need for the cached_scm hack in BugzillaTool).
         - Make --help only show a list of commands like "svn help" and "git help" do --
           previously --help was listing all commands and options.
         - Sort list of commands alphabetically.

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

12 years ago2009-11-21 Jon Honeycutt <jhoneycutt@apple.com>
jhoneycutt@apple.com [Sat, 21 Nov 2009 21:32:09 +0000 (21:32 +0000)]
2009-11-21  Jon Honeycutt  <jhoneycutt@apple.com>

        Windows build fix. Unreviewed.

        * Interfaces/IWebSerializedJSValue.idl:

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

12 years ago2009-11-21 Daniel Bates <dbates@webkit.org>
eric@webkit.org [Sat, 21 Nov 2009 21:26:55 +0000 (21:26 +0000)]
2009-11-21  Daniel Bates  <dbates@webkit.org>

        Reviewed by Eric Seidel.

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

        Changed KeyboardEvent::m_keyEvent from a raw pointer to an OwnPtr.

        No functionality was changed. So, no new tests.

        * dom/KeyboardEvent.cpp:
        (WebCore::KeyboardEvent::~KeyboardEvent):
        * dom/KeyboardEvent.h: Changed m_keyEvent to OwnPtr.
        (WebCore::KeyboardEvent::keyEvent):

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

12 years ago2009-11-21 Eric Seidel <eric@webkit.org>
eric@webkit.org [Sat, 21 Nov 2009 21:12:59 +0000 (21:12 +0000)]
2009-11-21  Eric Seidel  <eric@webkit.org>

        No review.  Fixing a typo from the previous patch for bug 31767.

        AbstractQueue.run_bugzilla_tool throws an exception
        https://bugs.webkit.org/show_bug.cgi?id=31769

        * Scripts/modules/commands/queues.py:

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

12 years ago2009-11-21 Eric Seidel <eric@webkit.org>
eric@webkit.org [Sat, 21 Nov 2009 15:50:16 +0000 (15:50 +0000)]
2009-11-21  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        commit-queue fails to run with "permissions error" due to bad bugzilla-tool path
        https://bugs.webkit.org/show_bug.cgi?id=31767

        What we really want to test is BugzillaTool.path() instead of TrivialTool.path().
        Since we don't have a good way to test BugzillaTool pieces, I've
        left out a test for now.

        * Scripts/bugzilla-tool:
         - Add a path() implementation to expose bugzilla-tool's __file__ path to commit-queue.
        * Scripts/modules/commands/queues.py:
         - Use tool.path() instead of __file__.
        * Scripts/modules/multicommandtool.py:
         - Add a new path() method to MultiComandTool.
        * Scripts/modules/multicommandtool_unittest.py:
         - Provide a path() method.  Little point in testing this mock implementation.

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

12 years ago2009-11-21 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Sat, 21 Nov 2009 15:37:56 +0000 (15:37 +0000)]
2009-11-21  Adam Barth  <abarth@webkit.org>

        Unreviewed "build" fix.  Turns out I was testing the wrong copy of
        WebKitTools.

        * Scripts/modules/commands/download.py:

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

12 years ago2009-11-21 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Sat, 21 Nov 2009 15:29:00 +0000 (15:29 +0000)]
2009-11-21  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Convert check-style to use LandingSequence
        https://bugs.webkit.org/show_bug.cgi?id=31763

        Instead of manipulating the working copy by hand, we should use the
        LandingSequence in CheckStyle.  This will make this code eaiser to
        test.

        * Scripts/modules/commands/download.py:

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

12 years agoDOMElement::tagName() is unimplemented
jhoneycutt@apple.com [Sat, 21 Nov 2009 04:50:21 +0000 (04:50 +0000)]
DOMElement::tagName() is unimplemented

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

Reviewed by Darin Adler.

* DOMCoreClasses.cpp:
(DOMElement::tagName):
Create a BString from the element's tag name, and release its BSTR
into result.

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

12 years agoDOMNode::childNodes() is unimplemented
jhoneycutt@apple.com [Sat, 21 Nov 2009 04:50:05 +0000 (04:50 +0000)]
DOMNode::childNodes() is unimplemented

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

Reviewed by Darin Adler.

* DOMCoreClasses.cpp:
(DOMNode::childNodes):
Create a DOMNodeList from the node's child nodes.

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

12 years ago2009-11-20 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Sat, 21 Nov 2009 04:06:06 +0000 (04:06 +0000)]
2009-11-20  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Unit test query commands
        https://bugs.webkit.org/show_bug.cgi?id=31755

        These tests are pretty rough, but hopefully they'll grow.

        * Scripts/modules/commands/queries_unittest.py: Added.
        * Scripts/modules/mock_bugzillatool.py: Added.
        * Scripts/run-webkit-unittests:

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

12 years ago2009-11-20 Eric Seidel <eric@webkit.org>
abarth@webkit.org [Sat, 21 Nov 2009 03:53:27 +0000 (03:53 +0000)]
2009-11-20  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Fix a bunch of unit test regressions from our recent bugzilla-toll hacking
        https://bugs.webkit.org/show_bug.cgi?id=31758

        * Scripts/modules/multicommandtool.py:
         - Allow passing of explicit commands to MultiCommandTool.__init__
        * Scripts/modules/multicommandtool_unittest.py:
         - Use new Command.name naming system.
         - Test Command auto-discovery.
        * Scripts/modules/workqueue.py:
         - bug_id no longer exists, use patch['bug_id'] instead.
        * Scripts/modules/workqueue_unittest.py:
         - WorkQueues require names now.
         - should_proceed_with_work_item must return a patch object.

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

12 years agoWAI-ARIA: add support for aria-owns
cfleizach@apple.com [Sat, 21 Nov 2009 03:29:38 +0000 (03:29 +0000)]
WAI-ARIA: add support for aria-owns
https://bugs.webkit.org/show_bug.cgi?id=31702

Reviewed by Beth Dakin.

WebCore:

Re-organized how accessibilityAttributeNames are returned so
that it's possible for an element to add an attribute based on
a dynamic value. In this case, we only want to add AXOwn if the
element actually supports aria-owns.

Test: platform/mac/accessibility/aria-owns.html

* accessibility/AccessibilityObject.h:
(WebCore::AccessibilityObject::supportsARIAOwns):
(WebCore::AccessibilityObject::ariaOwnsElements):
* accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::ariaOwnsElements):
(WebCore::AccessibilityRenderObject::supportsARIAOwns):
* accessibility/AccessibilityRenderObject.h:
* accessibility/mac/AccessibilityObjectWrapper.mm:
(-[AccessibilityObjectWrapper additionalAccessibilityAttributeNames]):
(-[AccessibilityObjectWrapper accessibilityAttributeNames]):
(-[AccessibilityObjectWrapper accessibilityAttributeValue:]):
* html/HTMLAttributeNames.in:

WebKitTools:

* DumpRenderTree/AccessibilityUIElement.cpp:
(ariaOwnsElementAtIndexCallback):
(AccessibilityUIElement::getJSClass):
* DumpRenderTree/AccessibilityUIElement.h:
* DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
(AccessibilityUIElement::ariaOwnsElementAtIndex):
* DumpRenderTree/mac/AccessibilityUIElementMac.mm:
(AccessibilityUIElement::ariaOwnsElementAtIndex):
* DumpRenderTree/win/AccessibilityUIElementWin.cpp:
(AccessibilityUIElement::ariaOwnsElementAtIndex):

LayoutTests:

* platform/mac/accessibility/aria-owns-expected.txt: Added.
* platform/mac/accessibility/aria-owns.html: Added.

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

12 years ago2009-11-20 Eric Seidel <eric@webkit.org>
eric@webkit.org [Sat, 21 Nov 2009 03:14:51 +0000 (03:14 +0000)]
2009-11-20  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Fix exception thrown when running the commit-queue.

        * Scripts/modules/statusbot.py: patch is optional.
        * Scripts/modules/workqueue.py: WorkQUeue requires a name.

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

12 years agoChange WebSerializedJSValue on Windows to have a zero-argument createInstance call...
hyatt@apple.com [Sat, 21 Nov 2009 02:54:23 +0000 (02:54 +0000)]
Change WebSerializedJSValue on Windows to have a zero-argument createInstance call.  Move the
serialization into a separate serialize() function that can be called after the object has been
created.

Reviewed by Jon Honeycutt.

Fix a typo in serialize() caused when fixing build bustage (put a ! back in).

* Interfaces/IWebSerializedJSValue.idl:
* WebSerializedJSValue.cpp:
(WebSerializedJSValue::WebSerializedJSValue):
(WebSerializedJSValue::createInstance):
(WebSerializedJSValue::serialize):
(WebSerializedJSValue::deserialize):
* WebSerializedJSValue.h:

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

12 years agoAnother go at the Windows Build Fix - this is a couple steps of it,
bweinstein@apple.com [Sat, 21 Nov 2009 02:36:38 +0000 (02:36 +0000)]
Another go at the Windows Build Fix - this is a couple steps of it,
so a little more involved than most build fixes.

Reviewed by Dave Hyatt.

* Interfaces/IWebSerializedJSValue.idl:
* Interfaces/JavaScriptCoreAPITypes.idl:
* WebKit.vcproj/Interfaces.vcproj:
* WebSerializedJSValue.cpp:
(WebSerializedJSValue::deserialize):
* WebSerializedJSValue.h:

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

12 years agoMake sure to export WebSerializedJSValue.
hyatt@apple.com [Sat, 21 Nov 2009 02:07:15 +0000 (02:07 +0000)]
Make sure to export WebSerializedJSValue.

Reviewed by Darin Adler.

* WebKit.exp:

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

12 years agoBuild fix for Windows - only declare JSContextRef once, instead
bweinstein@apple.com [Sat, 21 Nov 2009 01:54:59 +0000 (01:54 +0000)]
Build fix for Windows - only declare JSContextRef once, instead
of in two different idl files. Create a new file to hold the
definition of JSContextRef.

Reviewed by Dave Hyatt.

* Interfaces/IWebFrameLoadDelegate.idl:
* Interfaces/IWebSerializedJSValue.idl:
* Interfaces/JavaScriptCoreAPITypes.idl: Added.
* Interfaces/WebKit.idl:
* WebKit.vcproj/Interfaces.vcproj:

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

12 years ago2009-11-20 Eric Carlson <eric.carlson@apple.com>
eric.carlson@apple.com [Sat, 21 Nov 2009 01:44:04 +0000 (01:44 +0000)]
2009-11-20  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by Simon Fraser.

        <rdar://problem/7414396> Leopard & Tiger: Support closed caption in <video> element

        * css/mediaControls.css:
            Define closed caption toggle button.

        * rendering/RenderMedia.cpp:
        (WebCore::RenderMedia::updateControls):
            Create closed caption toggle button in display order.

        * rendering/RenderThemeMac.mm:
        (WebCore::RenderThemeMac::shouldRenderMediaControlPart):
            Don't require MediaControllerThemeQuickTime theme for captions toggle button.
            No need to check if the movie has video, a closed captions track is a video
            track.

2009-11-20  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by Simon Fraser.

        <rdar://problem/7414396> Leopard & Tiger: Support closed caption in <video> element

        * WebKitSystemInterface.h:
        * libWebKitSystemInterfaceLeopard.a:
        * libWebKitSystemInterfaceSnowLeopard.a:
        * libWebKitSystemInterfaceTiger.a:

2009-11-20  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by Simon Fraser.

        <rdar://problem/7414396> Leopard & Tiger: Support closed caption in <video> element

        Remove closed captions test from skipped list.

        * platform/mac-leopard/Skipped:
        * platform/mac-tiger/Skipped:

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

12 years agoNot reviewed. Fix chromium build.
jianli@chromium.org [Sat, 21 Nov 2009 01:34:22 +0000 (01:34 +0000)]
Not reviewed. Fix chromium build.

* public/WebAccessibilityRole.h:
(WebKit::):
* src/AssertMatchingEnums.cpp:

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

12 years ago2009-11-20 Joseph Pecoraro <joepeck@webkit.org>
joepeck@webkit.org [Sat, 21 Nov 2009 01:18:59 +0000 (01:18 +0000)]
2009-11-20  Joseph Pecoraro  <joepeck@webkit.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: Running code in the Console that ends with a
        single line comment no longer produces a parse error.

        * inspector/front-end/InjectedScript.js:
        (InjectedScript._evaluateOn):

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

12 years agoAdd support for WebSerializedJSValue to WebKit. This object wraps the SerializedScri...
hyatt@apple.com [Sat, 21 Nov 2009 01:17:18 +0000 (01:17 +0000)]
Add support for WebSerializedJSValue to WebKit.  This object wraps the SerializedScriptValue functionality in WebCore
and exposes the ability to do JS value serialization/deserialization to WebKit clients.

Reviewed by Oliver Hunt and Jon Honeycutt.

WebKit:

* WebKit.xcodeproj/project.pbxproj:

WebKit/mac:

* WebView/WebSerializedJSValue.h: Added.
* WebView/WebSerializedJSValue.mm: Added.
(-[WebSerializedJSValue initWithValue:context:]):
(-[WebSerializedJSValue deserialize:]):
(-[WebSerializedJSValue dealloc]):

WebKit/win:

* Interfaces/IWebSerializedJSValue.idl: Added.
* Interfaces/WebKit.idl:
* WebKit.vcproj/WebKit.vcproj:
* WebSerializedJSValue.cpp: Added.
(WebSerializedJSValue::WebSerializedJSValue):
(WebSerializedJSValue::~WebSerializedJSValue):
(WebSerializedJSValue::createInstance):
(WebSerializedJSValue::AddRef):
(WebSerializedJSValue::Release):
(WebSerializedJSValue::QueryInterface):
(WebSerializedJSValue::deserialize):
* WebSerializedJSValue.h: Added.

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

12 years ago2009-11-20 Eric Seidel <eric@webkit.org>
eric@webkit.org [Sat, 21 Nov 2009 01:15:40 +0000 (01:15 +0000)]
2009-11-20  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Teach the StatusBot how to support more than just the commit-queue
        https://bugs.webkit.org/show_bug.cgi?id=31754

        * Scripts/modules/workqueue.py: Another typo.

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

12 years ago2009-11-20 Eric Seidel <eric@webkit.org>
eric@webkit.org [Sat, 21 Nov 2009 01:09:28 +0000 (01:09 +0000)]
2009-11-20  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Teach the StatusBot how to support more than just the commit-queue
        https://bugs.webkit.org/show_bug.cgi?id=31754

        * Scripts/modules/commands/queues.py: Fix silly typo.

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

12 years ago2009-11-20 Eric Seidel <eric@webkit.org>
eric@webkit.org [Sat, 21 Nov 2009 01:02:41 +0000 (01:02 +0000)]
2009-11-20  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Teach the StatusBot how to support more than just the commit-queue
        https://bugs.webkit.org/show_bug.cgi?id=31754

        * CommitQueueStatus/index.yaml:
         - Add indices required for the new queries.
        * CommitQueueStatus/queue_status.py:
         - Add a patch-status page and move update_status to update-status.
         - Only display "commit-queue" status records for the commit-queue.
         - Add support for a queue_name property on status records.
         - Fix _int_from_request to actually work.
        * CommitQueueStatus/update_status.html:
         - Add support for a queue_name on status records.
         - Remove unused list of bug ids.
         * Scripts/modules/commands/queues.py
          - Make the queues pass the patch instead of the bug_id to StatusBot.
        * Scripts/modules/statusbot.py:
         - Support passing the queue_name to the status updates.
         - Support fetching patch status with patch_status().
        * Scripts/modules/workqueue.py:
         - Pass the patch to the StatusBot instead of the bug_id.
         - Let WorkQueues have a name.

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

12 years ago2009-11-20 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Sat, 21 Nov 2009 00:15:23 +0000 (00:15 +0000)]
2009-11-20  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Move bugzilla-tool commands into their own file
        https://bugs.webkit.org/show_bug.cgi?id=31752

        This will let us write unit tests.

        * Scripts/bugzilla-tool:
        * Scripts/modules/commands/__init__.py: Added.
        * Scripts/modules/commands/download.py: Added.
        * Scripts/modules/commands/queries.py: Added.
        * Scripts/modules/commands/queues.py: Added.
        * Scripts/modules/commands/upload.py: Added.
        * Scripts/modules/grammar.py: Added.

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

12 years ago2009-11-20 Chris Fleizach <cfleizach@apple.com>
eric@webkit.org [Sat, 21 Nov 2009 00:00:21 +0000 (00:00 +0000)]
2009-11-20  Chris Fleizach  <cfleizach@apple.com>

        Reviewed by Beth Dakin.

        WAI-ARIA: add support for 'math' role
        https://bugs.webkit.org/show_bug.cgi?id=31706

        * platform/mac/accessibility/aria-grouping-roles-expected.txt:
        * platform/mac/accessibility/aria-grouping-roles.html:
2009-11-20  Chris Fleizach  <cfleizach@apple.com>

        Reviewed by Beth Dakin.

        WAI-ARIA: add support for 'math' role
        https://bugs.webkit.org/show_bug.cgi?id=31706

        * accessibility/AccessibilityObject.cpp:
        * accessibility/AccessibilityObject.h:
        * accessibility/mac/AccessibilityObjectWrapper.mm:
2009-11-20  Chris Fleizach  <cfleizach@apple.com>

        Reviewed by Beth Dakin.

        WAI-ARIA: add support for 'math' role
        https://bugs.webkit.org/show_bug.cgi?id=31706

        * English.lproj/Localizable.strings:
        * StringsNotToBeLocalized.txt:
2009-11-20  Chris Fleizach  <cfleizach@apple.com>

        Reviewed by Beth Dakin.

        WAI-ARIA: add support for 'math' role
        https://bugs.webkit.org/show_bug.cgi?id=31706

        * WebCoreSupport/WebViewFactory.mm:
        (-[WebViewFactory AXARIAContentGroupText:]):

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

12 years agoFix ChangeLog
abarth@webkit.org [Fri, 20 Nov 2009 22:54:24 +0000 (22:54 +0000)]
Fix ChangeLog

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

12 years ago2009-11-20 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 20 Nov 2009 22:52:47 +0000 (22:52 +0000)]
2009-11-20  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.
        Reviewed by Eric Seidel.

        BuildQueue should check if the tree is currently buildable
        https://bugs.webkit.org/show_bug.cgi?id=31744

        * Scripts/bugzilla-tool:
        * Scripts/modules/landingsequence.py:
        * Scripts/modules/webkitlandingscripts.py:

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

12 years ago2009-11-20 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 20 Nov 2009 22:51:56 +0000 (22:51 +0000)]
2009-11-20  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Move prepare_clean_working_directory into the LandingSequence
        https://bugs.webkit.org/show_bug.cgi?id=31743

        * Scripts/bugzilla-tool:
        * Scripts/modules/landingsequence.py:

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

12 years agoUnreviewed fix.
yael.aharon@nokia.com [Fri, 20 Nov 2009 22:34:04 +0000 (22:34 +0000)]
Unreviewed fix.

Fix file names in the skipped list, for files added in http://trac.webkit.org/changeset/51257.

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

12 years agoNPN_ReloadPlugins does not reload the page even if reloadPages is true.
yael.aharon@nokia.com [Fri, 20 Nov 2009 21:40:38 +0000 (21:40 +0000)]
NPN_ReloadPlugins does not reload the page even if reloadPages is true.
https://bugs.webkit.org/show_bug.cgi?id=30460

Reviewed by Kenneth Rohde Christiansen.

WebCore:

Replace call to PluginDatabase::installedPlugins()->refresh() with Page::refreshPlugins().
It already refreshes plugins and reloads pages when necessary.

Tests: plugins/reloadplugins-and-pages.html
       plugins/reloadplugins-no-pages.html

* plugins/PluginInfoStore.cpp:
(WebCore::refreshPlugins):

WebKitTools:

Added code for calling NPN_ReloadPlugins with reloadPages true and false.

* DumpRenderTree/TestNetscapePlugIn.subproj/PluginObject.cpp:
(pluginInvoke):

LayoutTests:

Added tests for calling NPN_ReloadPlugins with reloadPages being true and false.

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

12 years ago<rdar://7409188> WebKit needs to be able to serialize and deserialize objects.
oliver@apple.com [Fri, 20 Nov 2009 21:32:03 +0000 (21:32 +0000)]
<rdar://7409188> WebKit needs to be able to serialize and deserialize objects.

Reviewed by Dave Hyatt.

Expose WebCore object serialization to WebKit.

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

12 years agoFixes <http://webkit.org/b/31741>.
bweinstein@apple.com [Fri, 20 Nov 2009 21:29:12 +0000 (21:29 +0000)]
Fixes <http://webkit.org/b/31741>.
Web Inspector: User Entered Data on the console should show up no matter what filters.

Reviewed by Tim Hatcher.

Always show .console-user-command-result, no matter what the filter say
we should do with the other classes.

* inspector/front-end/inspector.css:

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

12 years ago Reviewed by Darin Adler.
ap@apple.com [Fri, 20 Nov 2009 21:29:00 +0000 (21:29 +0000)]
    Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=25381
        Needs test: jQuery animation crashing Safari

        Adding a regression test for a bug that doesn't reproduce in ToT.

        * fast/dynamic/jQuery-animation-crash-expected.txt: Added.
        * fast/dynamic/jQuery-animation-crash.html: Added.

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

12 years ago2009-11-20 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 20 Nov 2009 21:03:12 +0000 (21:03 +0000)]
2009-11-20  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Pass the port information to the child process
        https://bugs.webkit.org/show_bug.cgi?id=31736

        We need to do this so the child process knows what to build!

        * Scripts/bugzilla-tool:
        * Scripts/modules/landingsequence.py:
        * Scripts/modules/webkitport.py:
        * Scripts/modules/webkitport_unittest.py:

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

12 years ago WebSocket tests still don't work on Windows, disabling for futher invesigation.
ap@apple.com [Fri, 20 Nov 2009 20:26:49 +0000 (20:26 +0000)]
    WebSocket tests still don't work on Windows, disabling for futher invesigation.

        * platform/win/Skipped:

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

12 years agoFix a closing tag issue in the vcproj and remove tabs.
bweinstein@apple.com [Fri, 20 Nov 2009 19:55:45 +0000 (19:55 +0000)]
Fix a closing tag issue in the vcproj and remove tabs.

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

12 years agoFixes <http://webkit.org/b/31700>.
bweinstein@apple.com [Fri, 20 Nov 2009 19:51:38 +0000 (19:51 +0000)]
Fixes <http://webkit.org/b/31700>.
Web Inspector: isMac should be in one central location + Cached.

Reviewed by Tim Hatcher.

We should cache the value of isMac, and make the indexOf call in one
single location, because we are calling it from multiple places, and saving
the result can save us time, and make the call sites simpler.

* inspector/front-end/AbstractTimelinePanel.js:
(WebInspector.AbstractTimelinePanel.prototype._updateFilter):
* inspector/front-end/ConsoleView.js:
(WebInspector.ConsoleView.prototype._updateFilter):
* inspector/front-end/ElementsPanel.js:
(WebInspector.ElementsPanel.prototype.handleKeyEvent):
* inspector/front-end/ScriptsPanel.js:
(WebInspector.ScriptsPanel):
* inspector/front-end/SourceFrame.js:
(WebInspector.SourceFrame.prototype._loaded):
* inspector/front-end/inspector.js:
(WebInspector.documentKeyDown):
(WebInspector.isMac):

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

12 years ago2009-11-20 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Fri, 20 Nov 2009 19:31:39 +0000 (19:31 +0000)]
2009-11-20  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Support Qt port in build-queue
        https://bugs.webkit.org/show_bug.cgi?id=31733

        * Scripts/bugzilla-tool:

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

12 years ago2009-11-20 Adam Barth <abarth@webkit.org>
eric@webkit.org [Fri, 20 Nov 2009 19:22:46 +0000 (19:22 +0000)]
2009-11-20  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Implement a build-queue
        https://bugs.webkit.org/show_bug.cgi?id=31725

        Currently this just builds the first 10 patches in the review queue.
        We'll want to do something smarter soon.

        * Scripts/bugzilla-tool:

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

12 years ago Enabling WebSocket tests on Windows - let's see if they pass after the recent...
ap@apple.com [Fri, 20 Nov 2009 19:22:07 +0000 (19:22 +0000)]
    Enabling WebSocket tests on Windows - let's see if they pass after the recent fixes.

        * platform/win/Skipped:

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

12 years ago2009-11-19 Joseph Pecoraro <joepeck@webkit.org>
joepeck@webkit.org [Fri, 20 Nov 2009 19:19:05 +0000 (19:19 +0000)]
2009-11-19  Joseph Pecoraro  <joepeck@webkit.org>

        Removed .DS_Store accidentally added in last (r51245).

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

12 years ago2009-11-19 Joseph Pecoraro <joepeck@webkit.org>
joepeck@webkit.org [Fri, 20 Nov 2009 19:11:32 +0000 (19:11 +0000)]
2009-11-19  Joseph Pecoraro  <joepeck@webkit.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: Add Console Only Layout Mode
        https://bugs.webkit.org/show_bug.cgi?id=30282

        Adds a Console Panel, which allows for a Full size Console. This
        extends the Drawer to the size of a Panel. This also fixes previous
        resize issues with the Drawer.

        * inspector/front-end/ConsolePanel.js: added.
        (WebInspector.ConsolePanel):
        (WebInspector.ConsolePanel.prototype.toolbarItemClass.get toolbarItemLabel):
        (WebInspector.ConsolePanel.prototype.show):
        (WebInspector.ConsolePanel.prototype.hide):
        * inspector/front-end/Drawer.js:
        (WebInspector.Drawer):
        (WebInspector.Drawer.prototype.set visibleView):
        (WebInspector.Drawer.prototype.get savedHeight): access the saved height of the variable console.
        (WebInspector.Drawer.prototype.show.animationFinished):
        (WebInspector.Drawer.prototype.show):
        (WebInspector.Drawer.prototype.hide.animationFinished):
        (WebInspector.Drawer.prototype.hide):
        (WebInspector.Drawer.prototype.resize): resize appropriately if full/non-full
        (WebInspector.Drawer.prototype.enterPanelMode):
        (WebInspector.Drawer.prototype.exitPanelMode):
        (WebInspector.Drawer.prototype.immediatelyExitPanelMode):
        (WebInspector.Drawer.prototype._cancelAnimationIfNeeded):
        (WebInspector.Drawer.prototype._animateDrawerHeight.animationFinished):
        (WebInspector.Drawer.prototype._animateDrawerHeight):
        (WebInspector.Drawer.prototype._animationDuration):
        (WebInspector.Drawer.prototype._startStatusBarDragging):
        (WebInspector.Drawer.prototype._statusBarDragging):
        (WebInspector.Drawer.prototype._endStatusBarDragging):

        Miscellaneous changes and cleanup.

        * English.lproj/localizedStrings.js: "Console" toolbar title.
        * inspector/front-end/ConsoleView.js: removed unnecessary element reordering
        * inspector/front-end/Images/consoleIcon.png: added.
        * inspector/front-end/inspector.css: added icon.
        * inspector/front-end/inspector.html:
        * inspector/front-end/inspector.js:
        (WebInspector._createPanels): create console panel
        (WebInspector.windowResize): resize drawer if necessary
        (WebInspector.documentKeyDown): esc should not toggle the console when in panel mode
        (WebInspector.animateStyle): start animation interval, returns the interval key
        (WebInspector.toggleAttach): resize drawer if necessary
        (WebInspector.showConsolePanel): restore the panel when the inspector restarts
        (WebInspector.showProfileForURL): style fix

        Restore the panel when the inspector restarts.

        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::setWindowVisible):
        (WebCore::InspectorController::specialPanelForJSName):
        * inspector/InspectorFrontend.cpp:
        (WebCore::InspectorFrontend::showPanel):

        Build files.

        * WebCore.gypi:
        * WebCore.vcproj/WebCore.vcproj:
        * inspector/front-end/WebKit.qrc:

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

12 years ago2009-11-20 Adam Barth <abarth@webkit.org>
eric@webkit.org [Fri, 20 Nov 2009 19:06:02 +0000 (19:06 +0000)]
2009-11-20  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Make commit-queue and style-queue show up in help
        https://bugs.webkit.org/show_bug.cgi?id=31724

        We need to store their names on their class to make these commands
        properly register themselves with MultiCommandTool.

        * Scripts/bugzilla-tool:

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