WebKit-https.git
11 years ago2009-04-16 Zan Dobersek <zandobersek@gmail.com>
kov@webkit.org [Thu, 16 Apr 2009 18:11:06 +0000 (18:11 +0000)]
2009-04-16  Zan Dobersek  <zandobersek@gmail.com>

        Reviewed by Adam Roben.

        Compare test's response mime type and dump test as text properly.

        * DumpRenderTree/gtk/DumpRenderTree.cpp:
        (dump):

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

11 years ago2009-04-16 Pierre d'Herbemont <pdherbemont@apple.com>
eric.carlson@apple.com [Thu, 16 Apr 2009 18:00:29 +0000 (18:00 +0000)]
2009-04-16  Pierre d'Herbemont  <pdherbemont@apple.com>

        Reviewed by Simon Fraser.

        https://bugs.webkit.org/show_bug.cgi?id=25187
        Bug 25187: <video> may not be rendered upon certain racy conditions

        Always create the video renderer when the load state reaches QTMovieLoadStateLoaded
        and the element is visible, not only when the movie has just been opened.

        * platform/graphics/mac/MediaPlayerPrivateQTKit.mm:
        (WebCore::MediaPlayerPrivate::updateStates): Make sure we do not make false
        assumption on the state changes order. Create the renderer if none is present,
        when movie is loaded instead.

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

11 years ago Reviewed by Geoffrey Garen.
eric@webkit.org [Thu, 16 Apr 2009 17:24:03 +0000 (17:24 +0000)]
    Reviewed by Geoffrey Garen.

        Add filterBoundingBox() to RenderSVGModelObject to share a tiny bit of code

        RenderSVGModelObject has much more interesting code it can share,
        but I'm just trying to get the commits out of my local branch and into
        the repository in any order I can. :)  This one was small.

        This will be used by the unified RenderSVGModelObject
        clippedOverflowRectForRepaint patch coming soon.

        * rendering/RenderPath.cpp:
        (WebCore::RenderPath::clippedOverflowRectForRepaint):
        * rendering/RenderSVGContainer.cpp:
        (WebCore::RenderSVGContainer::clippedOverflowRectForRepaint):
        * rendering/RenderSVGModelObject.cpp:
        (WebCore::RenderSVGModelObject::filterBoundingBox):
        * rendering/RenderSVGModelObject.h:

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

11 years ago2009-04-16 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Thu, 16 Apr 2009 17:11:33 +0000 (17:11 +0000)]
2009-04-16  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Eric Seidel and Adam Roben.

        More fix for https://bugs.webkit.org/show_bug.cgi?id=21260
        Unbounded memory growth when churning elements with anonymous event handler functions

        Simplified some EventHandler creation code.

        Removed a pile of code whose sole purpose was to allow SVG event handlers
        to supply a parameter named "evt" instead of the normal "event", and
        replaced it with a single parameter to JSLazyEventListener's constructor
        specifying the parameter name to use.

        * bindings/js/JSDOMWindowBase.h:
        * bindings/js/JSLazyEventListener.cpp:
        (WebCore::JSLazyEventListener::JSLazyEventListener):
        (WebCore::JSLazyEventListener::parseCode):
        * bindings/js/JSLazyEventListener.h:
        (WebCore::JSLazyEventListener::create):
        * bindings/js/ScriptController.cpp:
        (WebCore::ScriptController::createInlineEventListener):
        * bindings/js/ScriptController.h:
        * dom/Document.cpp:
        (WebCore::Document::createEventListener):

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

11 years ago Reviewed by David Hyatt.
eric@webkit.org [Thu, 16 Apr 2009 17:09:59 +0000 (17:09 +0000)]
    Reviewed by David Hyatt.

        Split out objectBoundingBox and repaintRectInLocalCoordinates from relativeBBox
        in preparation for simplifying (and fixing) repaint logic in the SVG rendering tree.
        https://bugs.webkit.org/show_bug.cgi?id=25224

        objectBoundingBox() matches the SVG 1.1 concept of a "bounding box"

        repaintRectInLocalCoordinates() should return the a rect covering all painted content.
        However, repaintRectInLocalCoordinates() still only returns the "stroke bounding box"
        in this patch.  In a future patch, repaintRectInLocalCoordinates will be fixed to return
        a rect covering all painted content.  In order to avoid changing several hundred layout test results, I've left
        the behavior as-is for now.  The returned rect is used by various repaintRectInLocalCoordinates
        implementations and sometimes adjusted to include all painted content, but not always, and
        the places where the adjustments are made are sometimes wrong.  Again, will be fixed in
        an upcoming patch.

        This patch discovered a bug in Font::drawTextUsingSVGFont, which is probably causing
        bounding-box relative gradients on SVGFont glyphs to not paint correctly.
        I chose not to try and fix the bug in this patch and instead left a FIXME.

        This patch also discovered that at least tspan.getBBox() is broken.  This
        along with the foreignObject.getBBox() change will be tested (and fixed) in a
        later patch.  https://bugs.webkit.org/show_bug.cgi?id=25225

        No change in behavior (besides the above mentioned foreignObject.getBBox()), thus no tests.

        * rendering/RenderForeignObject.cpp:
        (WebCore::RenderForeignObject::objectBoundingBox): this is a behavior improvement for getBBox() test case coming in a later patch
        (WebCore::RenderForeignObject::repaintRectInLocalCoordinates): only really used for layout test results, might some day be used for repaint.
        * rendering/RenderForeignObject.h:
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::objectBoundingBox): new methods, ASSERT if used but not implemented.
        (WebCore::RenderObject::repaintRectInLocalCoordinates):
        * rendering/RenderObject.h:
        * rendering/RenderPath.cpp:
        (WebCore::RenderPath::objectBoundingBox):
        (WebCore::RenderPath::repaintRectInLocalCoordinates):
        (WebCore::RenderPath::clippedOverflowRectForRepaint):
        (WebCore::RenderPath::lineHeight):
        (WebCore::RenderPath::baselinePosition):
        (WebCore::RenderPath::paint):
        (WebCore::RenderPath::addFocusRingRects):
        * rendering/RenderPath.h:
        * rendering/RenderSVGContainer.cpp:
        (WebCore::RenderSVGContainer::paint):
        (WebCore::RenderSVGContainer::objectBoundingBox):
        (WebCore::RenderSVGContainer::repaintRectInLocalCoordinates):
        * rendering/RenderSVGContainer.h:
        * rendering/RenderSVGGradientStop.h:
        (WebCore::RenderSVGGradientStop::objectBoundingBox):
        (WebCore::RenderSVGGradientStop::repaintRectInLocalCoordinates):
        * rendering/RenderSVGHiddenContainer.cpp:
        (WebCore::RenderSVGHiddenContainer::objectBoundingBox):
        (WebCore::RenderSVGHiddenContainer::repaintRectInLocalCoordinates):
        * rendering/RenderSVGHiddenContainer.h:
        * rendering/RenderSVGImage.cpp:
        (WebCore::RenderSVGImage::objectBoundingBox):
        (WebCore::RenderSVGImage::repaintRectInLocalCoordinates):
        (WebCore::RenderSVGImage::calculateAbsoluteBounds):
        (WebCore::RenderSVGImage::addFocusRingRects):
        * rendering/RenderSVGImage.h:
        * rendering/RenderSVGRoot.cpp:
        (WebCore::RenderSVGRoot::paint):
        (WebCore::RenderSVGRoot::objectBoundingBox):
        (WebCore::RenderSVGRoot::repaintRectInLocalCoordinates):
        * rendering/RenderSVGRoot.h:
        * rendering/RenderSVGTSpan.h:
        (WebCore::RenderSVGTSpan::objectBoundingBox):
        (WebCore::RenderSVGTSpan::repaintRectInLocalCoordinates):
        * rendering/RenderSVGText.cpp:
        (WebCore::RenderSVGText::clippedOverflowRectForRepaint):
        (WebCore::RenderSVGText::absoluteRects):
        (WebCore::RenderSVGText::absoluteQuads):
        (WebCore::RenderSVGText::objectBoundingBox):
        (WebCore::RenderSVGText::repaintRectInLocalCoordinates):
        * rendering/RenderSVGText.h:
        * rendering/RenderSVGViewportContainer.cpp:
        (WebCore::RenderSVGViewportContainer::viewportTransform):
        * rendering/SVGRenderSupport.cpp:
        (WebCore::computeContainerBoundingBox):
        * rendering/SVGRenderSupport.h:
        * rendering/SVGRenderTreeAsText.cpp:
        (WebCore::operator<<):
        * svg/SVGFont.cpp:
        (WebCore::Font::drawTextUsingSVGFont):
        * svg/SVGLocatable.cpp:
        (WebCore::SVGLocatable::getBBox):
        * svg/SVGPatternElement.cpp:
        (WebCore::SVGPatternElement::buildPattern):
        * svg/graphics/SVGPaintServerGradient.cpp:
        (WebCore::createMaskAndSwapContextForTextGradient):
        (WebCore::clipToTextMask):
        (WebCore::SVGPaintServerGradient::setup):
        * svg/graphics/SVGPaintServerPattern.cpp:
        (WebCore::SVGPaintServerPattern::setup):

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

11 years agoWebCore:
mitz@apple.com [Thu, 16 Apr 2009 15:42:03 +0000 (15:42 +0000)]
WebCore:

        Reviewed by Darin Adler.

        - fix <rdar://problem/6032139> Table cell widths calculated
          incorrectly on table that uses table-layout:fixed, colspans, and a mix
          of percentage and pixel widths

        Test: fast/table/fixed-granular-cols.html

        The incorrect widths resulted from incorrect handling of the case where
        the <col> elements are more granular than the table cells.

        * rendering/FixedTableLayout.cpp:
        (WebCore::FixedTableLayout::calcWidthArray): When processing <col>
        elements, append effective columns or split existing effective columns
        as needed.

LayoutTests:

        Reviewed by Darin Adler.

        - test for <rdar://problem/6032139> Table cell widths calculated
          incorrectly on table that uses table-layout:fixed, colspans, and a mix
          of percentage and pixel widths

        * fast/table/fixed-granular-cols.html: Added.
        * platform/mac/fast/table/fixed-granular-cols-expected.checksum: Added.
        * platform/mac/fast/table/fixed-granular-cols-expected.png: Added.
        * platform/mac/fast/table/fixed-granular-cols-expected.txt: Added.

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

11 years ago Skip yet another JavaScriptCore test that sometimes fails on Windows
aroben@apple.com [Thu, 16 Apr 2009 15:40:58 +0000 (15:40 +0000)]
    Skip yet another JavaScriptCore test that sometimes fails on Windows

        See Bug 25160: Various ecma/Date tests sometimes fail on Windows (but
        not Mac)
        <https://bugs.webkit.org/show_bug.cgi?id=25160>

        * Scripts/run-javascriptcore-tests: Skip ecma/Date/15.9.2.2-6.js.

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

11 years agoOptimise op_resolve_base
oliver@apple.com [Thu, 16 Apr 2009 12:01:31 +0000 (12:01 +0000)]
Optimise op_resolve_base

Reviewed by Gavin Barraclough.

If we can statically find a property we are trying to resolve
the base of, the base is guaranteed to be the global object.

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

11 years agoImprove performance of read-write-modify operators
oliver@apple.com [Thu, 16 Apr 2009 11:36:07 +0000 (11:36 +0000)]
Improve performance of read-write-modify operators

Reviewed by Gavin Barraclough

Implement cross scope optimisation for read-write-modify
operators, to avoid unnecessary calls to property resolve
helper functions.

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

11 years agoImprove performance of remaining array enumeration functions
oliver@apple.com [Thu, 16 Apr 2009 10:10:53 +0000 (10:10 +0000)]
Improve performance of remaining array enumeration functions

Reviewed by Gavin Barraclough

Make use of function entry cache for remaining Array enumeration functions.

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

11 years ago <rdar://problem/6795285> Infinite recursion in ResourceHandle::receivedReques...
ap@webkit.org [Thu, 16 Apr 2009 07:54:15 +0000 (07:54 +0000)]
    <rdar://problem/6795285> Infinite recursion in ResourceHandle::receivedRequestToContinueWithoutCredential

        Rolled out <http://trac.webkit.org/projects/webkit/changeset/42536> - the two instances of
        authentication challenge are different, after all. Added a FIXME comment about a possible
        future improvement.

        * platform/network/ResourceHandle.cpp:
        (WebCore::ResourceHandle::clearAuthentication):
        * platform/network/ResourceHandleInternal.h:
        (WebCore::ResourceHandleInternal::ResourceHandleInternal):
        * platform/network/cf/ResourceHandleCFNet.cpp:
        (WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
        (WebCore::ResourceHandle::receivedCredential):
        (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential):
        (WebCore::ResourceHandle::receivedCancellation):
        * platform/network/mac/ResourceHandleMac.mm:
        (WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
        (WebCore::ResourceHandle::didCancelAuthenticationChallenge):
        (WebCore::ResourceHandle::receivedCredential):
        (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential):
        (WebCore::ResourceHandle::receivedCancellation):

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

11 years agoImprove performance of Array.sort
oliver@apple.com [Thu, 16 Apr 2009 07:24:59 +0000 (07:24 +0000)]
Improve performance of Array.sort

Reviewed by Gavin Barraclough.

Cache the VM entry for Array.sort when using a JS comparison function.

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

11 years agoBug 25229: Need support for Array.prototype.reduceRight
oliver@apple.com [Thu, 16 Apr 2009 04:07:23 +0000 (04:07 +0000)]
Bug 25229: Need support for Array.prototype.reduceRight
<https://bugs.webkit.org/show_bug.cgi?id=25229>

Reviewed by Gavin Barraclough.

Implement Array.reduceRight

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

11 years ago2009-04-15 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Thu, 16 Apr 2009 03:51:55 +0000 (03:51 +0000)]
2009-04-15  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Sam Weinig.

        More fix for https://bugs.webkit.org/show_bug.cgi?id=21260
        Unbounded memory growth when churning elements with anonymous event handler functions

        Also fixed <rdar://problem/6792909> WebInspector crashes when reloading
        a page with breakpoints set

        * bindings/js/JSEventListener.cpp:
        (WebCore::JSEventListener::clearJSFunctionInline):
        (WebCore::JSEventListener::markJSFunction):
        * bindings/js/JSEventListener.h: Actually clear our function and global
        object pointers when our client instructs us to. (Oops!) Also, mark
        our global object while we still intend to use it.

        * bindings/js/JSSVGElementInstanceCustom.cpp:
        (WebCore::JSSVGElementInstance::mark):
        (WebCore::toJS):
        * bindings/scripts/CodeGeneratorJS.pm:
        * svg/SVGElementInstance.idl: For every SVGElementInstance wrapper, ensure
        that the corresponding element also has a wrapper, to keep its event
        listeners alive.

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

11 years ago2009-04-15 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Thu, 16 Apr 2009 03:33:25 +0000 (03:33 +0000)]
2009-04-15  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Darin Fisher.

        https://bugs.webkit.org/show_bug.cgi?id=25201
        Add ScriptFunctionCall/ScriptObject for V8.

        * bindings/v8/ScriptFunctionCall.cpp: Added.
        * bindings/v8/ScriptFunctionCall.h: Added.
        * bindings/v8/ScriptObject.cpp: Added.
        * bindings/v8/ScriptObject.h: Added.
        * bindings/v8/ScriptObjectQuarantine.cpp: Added.
        * bindings/v8/ScriptObjectQuarantine.h: Added.
        * bindings/v8/ScriptScope.cpp: Added.
        * bindings/v8/ScriptScope.h: Added.
        * bindings/v8/ScriptState.h:
        (WebCore::ScriptState::ScriptState): Added new constructors.
        (WebCore::ScriptState::frame): Added Frame ptr accessor.
        * bindings/v8/ScriptString.h:
        (WebCore::ScriptString::ScriptString): Added default constructor.
        * bindings/v8/ScriptValue.h:
        (WebCore::ScriptValue::isEqual): Added.

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

11 years agoBug 25227: Array.filter triggers an assertion when the target array shrinks while...
oliver@apple.com [Thu, 16 Apr 2009 02:12:23 +0000 (02:12 +0000)]
Bug 25227: Array.filter triggers an assertion when the target array shrinks while being filtered
<https://bugs.webkit.org/show_bug.cgi?id=25227>

Reviewed by Gavin Barraclough.

We correct this simply by making the fast array path fall back on the slow path if
we ever discover the fast access is unsafe.

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

11 years ago2009-04-15 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Thu, 16 Apr 2009 00:49:15 +0000 (00:49 +0000)]
2009-04-15  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Unreviewed build fix. Add RenderSVGModelObject.* to GTK+'s build.

        * GNUmakefile.am:

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

11 years ago Redo last build fix in a more straightforward way.
sfalken@apple.com [Thu, 16 Apr 2009 00:02:23 +0000 (00:02 +0000)]
    Redo last build fix in a more straightforward way.

        * DumpRenderTree/win/DumpRenderTree.cpp:
        (sharedCFURLCache):

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

11 years ago Fix Windows build of DumpRenderTree.
sfalken@apple.com [Wed, 15 Apr 2009 23:46:30 +0000 (23:46 +0000)]
    Fix Windows build of DumpRenderTree.

        * DumpRenderTree/win/DumpRenderTree.cpp:
        (sharedCFURLCache):
        (main):

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

11 years agoBug 25159: Support Array.prototype.reduce
oliver@apple.com [Wed, 15 Apr 2009 23:35:31 +0000 (23:35 +0000)]
Bug 25159: Support Array.prototype.reduce
<https://bugs.webkit.org/show_bug.cgi?id=25159>

Reviewed by Gavin Barraclough

Implement Array.prototype.reduce

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

11 years agoReviewed by Kevin Ollivier.
kevino@webkit.org [Wed, 15 Apr 2009 22:46:34 +0000 (22:46 +0000)]
Reviewed by Kevin Ollivier.

Implement support for wxWebViewNewWindowEvent.

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

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

11 years ago Reviewed by Simon Fraser.
eric@webkit.org [Wed, 15 Apr 2009 22:32:14 +0000 (22:32 +0000)]
    Reviewed by Simon Fraser.

        Add minimal RenderSVGModelObject and make RenderPath and RenderSVGContainer use it.
        https://bugs.webkit.org/show_bug.cgi?id=25221

        RenderSVGModelObject is the base rendering class for things which live
        in the SVG rendering tree.  Not all SVG renders are RenderSVGModelObjects yet.

        More patches coming.  This is just adding the class, future patches
        will pull more logic out of RenderPath and RenderSVGContainer into RenderSVGModelObject.

        * WebCore.pro:
        * WebCore.scons:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * rendering/RenderPath.cpp:
        (WebCore::RenderPath::RenderPath):
        * rendering/RenderPath.h:
        * rendering/RenderSVGContainer.cpp:
        (WebCore::RenderSVGContainer::RenderSVGContainer):
        * rendering/RenderSVGContainer.h:
        * rendering/RenderSVGModelObject.cpp: Added.
        (WebCore::RenderSVGModelObject::RenderSVGModelObject):
        * rendering/RenderSVGModelObject.h: Added.
        (WebCore::RenderSVGModelObject::requiresLayer):
        * rendering/RenderTreeAsText.cpp:
        * rendering/SVGRenderTreeAsText.cpp:

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

11 years agoFixed an expected result and added a test to the Skipped list while I investigate...
justin.garcia@apple.com [Wed, 15 Apr 2009 22:22:26 +0000 (22:22 +0000)]
Fixed an expected result and added a test to the Skipped list while I investigate why its expected results didn't change.

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

11 years ago <rdar://problem/6785760> WebCore should use a maximum of 6 connections per...
sfalken@apple.com [Wed, 15 Apr 2009 21:32:35 +0000 (21:32 +0000)]
    <rdar://problem/6785760> WebCore should use a maximum of 6 connections per host, not 4

        Reviewed by Adam Roben.

        * platform/network/ResourceRequestBase.cpp:
        * platform/network/cf/ResourceRequestCFNet.cpp:
        (WebCore::initializeMaximumHTTPConnectionCountPerHost):

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

11 years ago Updated WebKitSystemInterface for Windows.
sfalken@apple.com [Wed, 15 Apr 2009 21:30:12 +0000 (21:30 +0000)]
    Updated WebKitSystemInterface for Windows.
        Changes needed for <rdar://problem/6785760>

        * win/include/WebKitSystemInterface/WebKitSystemInterface.h:
        * win/lib/WebKitSystemInterface.lib:
        * win/lib/WebKitSystemInterface_debug.lib:

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

11 years ago2009-04-15 Sam Weinig <sam@webkit.org>
weinig@apple.com [Wed, 15 Apr 2009 20:28:46 +0000 (20:28 +0000)]
2009-04-15  Sam Weinig  <sam@webkit.org>

        Reviewed by Mark Rowe.

        Add special casing to bindings generator so that custom functions
        starting with xml or xslt conform to WebKit style guidelines.

        * bindings/js/JSDOMWindowCustom.cpp:
        (WebCore::JSDOMWindow::xmlHttpRequest):
        (WebCore::JSDOMWindow::xsltProcessor):
        * bindings/scripts/CodeGenerator.pm:

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

11 years ago Skip yet another JavaScriptCore test that sometimes fails on Windows
aroben@apple.com [Wed, 15 Apr 2009 20:25:22 +0000 (20:25 +0000)]
    Skip yet another JavaScriptCore test that sometimes fails on Windows

        See Bug 25160: Various ecma/Date tests sometimes fail on Windows (but
        not Mac)
        <https://bugs.webkit.org/show_bug.cgi?id=25160>

        * Scripts/run-javascriptcore-tests: Skip ecma/Date/15.9.2.2-2.js (who
        didn't see it coming?).

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

11 years ago Reviewed by Simon Fraser.
eric@webkit.org [Wed, 15 Apr 2009 20:24:28 +0000 (20:24 +0000)]
    Reviewed by Simon Fraser.

        Remove more dead code from RenderSVGHiddenContainer.

        lineHeight and baselinePosition used to be on RenderSVGContainer
        (of which this is a subclass) because RenderSVGContainer used
        to be a RenderBox and always the renderer for <svg>
        Now <svg> uses RenderSVGRoot when needing a RenderBox (inside HTML)
        and RenderSVGViewportContainer (when inside SVG content)
        so there is no need for RenderSVGHiddenContainer to have these HTML-specific methods.

        * rendering/RenderSVGHiddenContainer.cpp:
        * rendering/RenderSVGHiddenContainer.h:

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

11 years ago Reviewed by Simon Fraser.
eric@webkit.org [Wed, 15 Apr 2009 20:01:25 +0000 (20:01 +0000)]
    Reviewed by Simon Fraser.

        Remove unneeded (broken) code from SVG renderers
        https://bugs.webkit.org/show_bug.cgi?id=25214

        Mostly due to my historical confusions about the render tree
        and some methods not being removed after classes were split.

        RenderSVGRoot is an RenderBox and should just use all the
        standard RenderBox methods for inspector and repaint rects.

        RenderSVGContainer is *not* a RenderBox (any more) and thus
        doesn't need lineHeight or width/height or calcBounds.

        RenderSVGViewportContainer had some broken code which tried
        to see if the click was inside the container at all, but it
        was using width/height metrics based off of the containing
        block (from calcWidth) which is wrong (since its real
        width/height are from its containing viewport not containing block).

        * rendering/RenderSVGContainer.cpp:
        (WebCore::RenderSVGContainer::RenderSVGContainer):
        (WebCore::RenderSVGContainer::layout):
        * rendering/RenderSVGContainer.h:
        * rendering/RenderSVGRoot.cpp:
        * rendering/RenderSVGRoot.h:
        * rendering/RenderSVGViewportContainer.cpp:
        (WebCore::RenderSVGViewportContainer::layout):
        (WebCore::RenderSVGViewportContainer::nodeAtPoint):

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

11 years agoUpdated expected result for a text dragging test that pastes text on Windows but...
justin.garcia@apple.com [Wed, 15 Apr 2009 19:42:24 +0000 (19:42 +0000)]
Updated expected result for a text dragging test that pastes text on Windows but not on Mac (which is expected).

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

11 years ago Reviewed by Simon Fraser and Sam Weinig.
eric@webkit.org [Wed, 15 Apr 2009 19:33:02 +0000 (19:33 +0000)]
    Reviewed by Simon Fraser and Sam Weinig.

        https://bugs.webkit.org/show_bug.cgi?id=25217
        Simplify nearestViewportElement and farthestViewportElement using isViewportElement and a for loop
        Add ASSERT(element) to all these functions since they should never be passed a null element.

        * svg/SVGLocatable.cpp:
        (WebCore::isViewportElement):
        (WebCore::SVGLocatable::nearestViewportElement):
        (WebCore::SVGLocatable::farthestViewportElement):
        (WebCore::SVGLocatable::getBBox):
        (WebCore::SVGLocatable::getCTM):
        (WebCore::SVGLocatable::getScreenCTM):

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

11 years ago2009-04-15 Sam Weinig <sam@webkit.org>
weinig@apple.com [Wed, 15 Apr 2009 18:41:14 +0000 (18:41 +0000)]
2009-04-15  Sam Weinig  <sam@webkit.org>

        Reviewed by Anders Carlsson.

        Remove support for the ObjCIvar extended attribute from the Objective-C
        bindings generator.  It is not used anymore.

        * bindings/scripts/CodeGeneratorObjC.pm:

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

11 years ago2009-04-15 Eric Carlson <eric.carlson@apple.com>
eric.carlson@apple.com [Wed, 15 Apr 2009 18:30:49 +0000 (18:30 +0000)]
2009-04-15  Eric Carlson  <eric.carlson@apple.com>

        Fix incorrect expected result.

        * http/tests/security/local-video-source-from-remote-expected.txt:

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

11 years agoWebCore:
justin.garcia@apple.com [Wed, 15 Apr 2009 18:22:22 +0000 (18:22 +0000)]
WebCore:

2009-04-15  Justin Garcia  <justin.garcia@apple.com>

        Reviewed by Dan Bernstein.

        https://bugs.webkit.org/show_bug.cgi?id=25204
        Create a fast path for ReplaceSelectionCommand that merges text nodes

        During simple pastes, where we're just pasting a text node into a run of text, we would split the current
        text and insert the new node in between.  This is slow and we hit this bug:

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

        in the layout and rendering code where adjacent text nodes don't shape correctly in Arabic.

        This change creates a fast path for ReplaceSelectionCommand that inserts text directly into the
        text node that holds the selection (very similar to the fast path we wrote for InsertTextCommand).

        * editing/ReplaceSelectionCommand.cpp:
        (WebCore::ReplaceSelectionCommand::doApply):
        (WebCore::ReplaceSelectionCommand::performTrivialReplace):
        * editing/ReplaceSelectionCommand.h:
        * editing/TextIterator.cpp:

LayoutTests:

2009-04-15  Justin Garcia  <justin.garcia@apple.com>

        Reviewed by Dan Bernstein.

        https://bugs.webkit.org/show_bug.cgi?id=25204
        Create a fast path for ReplaceSelectionCommand that merges text nodes

        Simplified DOM/Render trees:
        * editing/pasteboard/4840662-expected.txt:
        * platform/mac/editing/pasteboard/bad-placeholder-expected.txt:
        * platform/mac/editing/pasteboard/paste-match-style-001-expected.txt:
        * platform/mac/editing/pasteboard/paste-text-019-expected.txt:
        * platform/mac/editing/pasteboard/paste-xml-expected.txt:

        Removed redundant styles that were generated during nesting prevention that is no longer needed:
        * platform/mac/editing/pasteboard/4076267-2-expected.txt:
        * platform/mac/editing/pasteboard/5156401-1-expected.txt:

        No longer incorrectly uncollapsing unrendered whitespace:
        * editing/pasteboard/paste-into-anchor-text-expected.txt:
        * platform/mac/editing/pasteboard/5387578-expected.txt:

        No longer invalidating the old selected DOM range during a paste:
        * editing/pasteboard/copy-in-password-field-expected.txt:

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

11 years ago2009-04-15 Adam Langley <agl@google.com>
darin@chromium.org [Wed, 15 Apr 2009 18:18:40 +0000 (18:18 +0000)]
2009-04-15  Adam Langley  <agl@google.com>

        Reviewed by Darin Fisher.

        Move VDMX parsing into the Chromium Linux port.

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

        VDMX tables are optional tables in TrueType fonts which contain the
        exact pixel height of a given font at a given pel size. In order to
        match Windows font metrics we have to use these numbers.

        Previously, the parsing was performed in Skia. As part of the merge
        with upstream Skia, an interface for getting table data from a font
        has been added to Skia and we're moving the parsing into WebKit.

        This does not change any layout tests.

        * platform/graphics/chromium/FontPlatformDataLinux.cpp:
        (WebCore::FontPlatformData::uniqueID):
        * platform/graphics/chromium/FontPlatformDataLinux.h:
        * platform/graphics/chromium/FontTrueTypeLinux.cpp: Added.
        * platform/graphics/chromium/FontTrueTypeLinux.h: Added.
        * platform/graphics/chromium/SimpleFontDataLinux.cpp:
        (WebCore::SimpleFontData::platformInit):
        (WebCore::SimpleFontData::platformWidthForGlyph):

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

11 years ago2009-04-15 Stephen White <senorblanco@chromium.org>
darin@chromium.org [Wed, 15 Apr 2009 18:15:26 +0000 (18:15 +0000)]
2009-04-15  Stephen White  <senorblanco@chromium.org>

        Reviewed by Dimitri Glazkov.

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

        Restore stroked outlines to PlatformContextSkia::drawRect().
        These were removed inadvertently in r41805, aka
        https://bugs.webkit.org/show_bug.cgi?id=24662.
        SkRect is { left, top, right, bottom }, not { left, top, width, height }.

        * platform/graphics/skia/PlatformContextSkia.cpp:
        (PlatformContextSkia::drawRect):

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

11 years agoWebCore:
mitz@apple.com [Wed, 15 Apr 2009 18:14:04 +0000 (18:14 +0000)]
WebCore:

        Reviewed by Dave Hyatt.

        - fix <rdar://problem/6777374> Generated content with display: run-in
          causes a crash

        Test: fast/runin/generated.html

        * rendering/RenderBlock.cpp:
        (WebCore::RenderBlock::handleRunInChild): Check if the run-in block is
        generated, and if so, make the RenderInline anonymous instead of passing
        a 0 node to the RenderInline constructor. If the run-in itself is
        generated, do move :before and :after children from the block into the
        inline, as they will not be regenerated. Changed nested ifs into early
        returns.

LayoutTests:

        Reviewed by Dave Hyatt.

        - test for <rdar://problem/6777374> Generated content with display:
          run-in causes a crash

        * fast/runin/generated.html: Added.
        * platform/mac/fast/runin/generated-expected.checksum: Added.
        * platform/mac/fast/runin/generated-expected.png: Added.
        * platform/mac/fast/runin/generated-expected.txt: Added.

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

11 years ago2009-04-15 Eric Roman <eroman@chromium.org>
darin@chromium.org [Wed, 15 Apr 2009 18:13:02 +0000 (18:13 +0000)]
2009-04-15  Eric Roman  <eroman@chromium.org>

        Reviewed by Geoffrey Garen.

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

        Expose DOMWindow::removeInlineEventListenerForType and
        DOMWindow::inlineEventListenerForType as public.

        * page/DOMWindow.h:

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

11 years ago2009-04-14 Eric Roman <eroman@chromium.org>
darin@chromium.org [Wed, 15 Apr 2009 18:06:46 +0000 (18:06 +0000)]
2009-04-14  Eric Roman  <eroman@chromium.org>

        Reviewed by Darin Adler.

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

        Wrap RegisteredEventListener's markEventListeners and invalidateEventListeners
        in a USE(JSC), since it doesn't compile with V8 bindings.

        * dom/RegisteredEventListener.h:

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

11 years ago2009-04-15 Eric Carlson <eric.carlson@apple.com>
eric.carlson@apple.com [Wed, 15 Apr 2009 17:26:11 +0000 (17:26 +0000)]
2009-04-15  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by Alexey Proskuryakov.

        Use a media file inside of LayoutTests/http/ so a cgi isn't necessary to load
        it. Fixes a test failure introduced in r42533.

        * http/tests/resources/silence.mpg: Added.
        * http/tests/security/local-video-source-from-remote-expected.txt:
        * http/tests/security/local-video-source-from-remote.html: change the
        remote url, update a comment.
        * http/tests/security/resources/load-media.cgi: Removed.

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

11 years ago2009-04-15 Eric Roman <eroman@chromium.org>
darin@chromium.org [Wed, 15 Apr 2009 17:20:21 +0000 (17:20 +0000)]
2009-04-15  Eric Roman  <eroman@chromium.org>

        Reviewed by Darin Adler.

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

        Fix a caller of Settings::javaScriptCanOpenWindowsAutomatically() to
        use the new name.

        * bindings/v8/custom/V8DOMWindowCustom.cpp:

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

11 years ago Reviewed by Darin Adler.
ap@webkit.org [Wed, 15 Apr 2009 15:25:45 +0000 (15:25 +0000)]
    Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=25186
        There is no XSLT component in bugzilla

        * projects/xslt/index.html: Changed to search by bug title.

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

11 years ago2009-04-15 Antonio Gomes <antonio.gomes@openbossa.org>
ariya@webkit.org [Wed, 15 Apr 2009 15:09:55 +0000 (15:09 +0000)]
2009-04-15  Antonio Gomes   <antonio.gomes@openbossa.org>

        Reviewed by Ariya Hidayat.

        Rename extend() method in QWebElementSelection to append().

        * Api/qwebelement.cpp:
        (QWebElementSelection::append):
        * Api/qwebelement.h:
        * tests/qwebelement/tst_qwebelement.cpp:
        (tst_QWebElement::appendSelection):

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

11 years ago2009-04-15 Antonio Gomes <antonio.gomes@openbossa.org>
hausmann@webkit.org [Wed, 15 Apr 2009 13:42:34 +0000 (13:42 +0000)]
2009-04-15  Antonio Gomes   <antonio.gomes@openbossa.org>

        Reviewed by Simon Hausmann.

        Fixed nit/typo in QWebElement documentation.

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

11 years agoMove CallFrameClosure from inside the Interpreter class to its own file.
oliver@apple.com [Wed, 15 Apr 2009 07:31:48 +0000 (07:31 +0000)]
Move CallFrameClosure from inside the Interpreter class to its own file.

Reviewed by NOBODY(Build fix)

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

11 years agoBug 25202: Improve performance of repeated callbacks into the VM
oliver@apple.com [Wed, 15 Apr 2009 07:13:25 +0000 (07:13 +0000)]
Bug 25202: Improve performance of repeated callbacks into the VM

Reviewed by Cameron Zwarich

Add the concept of a CachedCall to native code for use in Array
prototype and similar functions where a single callback function
is called repeatedly with the same number of arguments.

Used Array.prototype.filter as the test function and got a 50% win
over a naive non-caching specialised version.  This makes the native
implementation of Array.prototype.filter faster than the JS one once
more.

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

11 years ago Rubber-stamped by Darin Adler.
ap@webkit.org [Wed, 15 Apr 2009 06:43:35 +0000 (06:43 +0000)]
    Rubber-stamped by Darin Adler.

        Don't keep platform objects for authentication challenge in ResourceHandleInternal.
        We already have a copy in AuthenticationChallenge object.

        * platform/network/ResourceHandle.cpp:
        (WebCore::ResourceHandle::clearAuthentication):
        * platform/network/ResourceHandleInternal.h:
        (WebCore::ResourceHandleInternal::ResourceHandleInternal):
        * platform/network/cf/ResourceHandleCFNet.cpp:
        (WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
        (WebCore::ResourceHandle::receivedCredential):
        (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential):
        (WebCore::ResourceHandle::receivedCancellation):
        * platform/network/mac/ResourceHandleMac.mm:
        (WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
        (WebCore::ResourceHandle::didCancelAuthenticationChallenge):
        (WebCore::ResourceHandle::receivedCredential):
        (WebCore::ResourceHandle::receivedRequestToContinueWithoutCredential):
        (WebCore::ResourceHandle::receivedCancellation):

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

11 years ago2009-04-14 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Wed, 15 Apr 2009 05:06:37 +0000 (05:06 +0000)]
2009-04-14  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dan Bernstein

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

        Move the run loop observer cleanup from -close
        to -_close.

        * WebView/WebView.mm:
        (-[WebView _close]):
        (-[WebView close]):

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

11 years ago2009-04-14 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Wed, 15 Apr 2009 04:19:08 +0000 (04:19 +0000)]
2009-04-14  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Sam Weinig.

        Nixed some now-defunct autogeneration code.

        * bindings/scripts/CodeGeneratorJS.pm:

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

11 years ago2009-04-14 Eric Carlson <eric.carlson@apple.com>
eric.carlson@apple.com [Wed, 15 Apr 2009 01:42:27 +0000 (01:42 +0000)]
2009-04-14  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by NOBODY (OOPS!).

        Fix <rdar://problem/6755724> <audio> and <video> elements can reference local
        file:/// URLs from remote in Safari

        Tests: http/tests/security/local-video-poster-from-remote.html
               http/tests/security/local-video-source-from-remote.html
               http/tests/security/local-video-src-from-remote.html

        * html/HTMLMediaElement.cpp:
        (WebCore::HTMLMediaElement::loadResource): Don't pass url to media engine if loader->canLoad()
        says it should not be loaded.

2009-04-14  Eric Carlson  <eric.carlson@apple.com>

        Reviewed by NOBODY (OOPS!).

        Fix <rdar://problem/6755724> <audio> and <video> elements can reference local
        file:/// URLs from remote in Safari

        Test cases to ensure that local 'src', 'poster', and <source> are not loaded.

        * http/tests/security/local-video-poster-from-remote-expected.txt: Added.
        * http/tests/security/local-video-poster-from-remote.html: Added.
        * http/tests/security/local-video-source-from-remote-expected.txt: Added.
        * http/tests/security/local-video-source-from-remote.html: Added.
        * http/tests/security/local-video-src-from-remote-expected.txt: Added.
        * http/tests/security/local-video-src-from-remote.html: Added.
        * http/tests/security/resources/load-media.cgi: Added.

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

11 years agoWebCore:
weinig@apple.com [Wed, 15 Apr 2009 01:15:07 +0000 (01:15 +0000)]
WebCore:

2009-04-14  Sam Weinig  <sam@webkit.org>

        Reviewed by Darin Adler.

        Part of <rdar://problem/6150868>
        Fix incorrect handling of content that needs to go into the head element
        once the head element has been removed.

        Test: fast/parser/head-content-after-head-removal.html

        * html/HTMLParser.cpp:
        (WebCore::HTMLParser::HTMLParser): Remove unneeded initializer of m_head.
        (WebCore::HTMLParser::handleError): Update since m_head is now a RefPtr.
        (WebCore::HTMLParser::createHead): Ditto.
        * html/HTMLParser.h: Make m_head a RefPtr.

LayoutTests:

2009-04-14  Sam Weinig  <sam@webkit.org>

        Reviewed by Darin Adler.

        Part of <rdar://problem/6150868>
        Test for incorrect handling of content that needs to go into the head element
        once the head element has been removed.

        * fast/parser/head-content-after-head-removal-expected.txt: Added.
        * fast/parser/head-content-after-head-removal.html: Added.

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

11 years ago2009-04-14 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Tue, 14 Apr 2009 23:11:24 +0000 (23:11 +0000)]
2009-04-14  Geoffrey Garen  <ggaren@apple.com>

        Used svn merge -r42529:42528 to roll out my last patch because it broke
        the build.

        * bindings/js/JSDOMGlobalObject.cpp:
        (WebCore::JSDOMGlobalObject::~JSDOMGlobalObject):
        (WebCore::JSDOMGlobalObject::findJSProtectedEventListener):
        (WebCore::JSDOMGlobalObject::findOrCreateJSProtectedEventListener):
        (WebCore::JSDOMGlobalObject::jsProtectedEventListeners):
        (WebCore::JSDOMGlobalObject::jsProtectedInlineEventListeners):
        * bindings/js/JSDOMGlobalObject.h:

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

11 years ago2009-04-14 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Tue, 14 Apr 2009 22:54:25 +0000 (22:54 +0000)]
2009-04-14  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Sam Weinig.

        Nixed some now-dead code related to protected event listeners.

        * bindings/js/JSDOMGlobalObject.cpp:
        (WebCore::JSDOMGlobalObject::~JSDOMGlobalObject):
        * bindings/js/JSDOMGlobalObject.h:

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

11 years ago2009-04-14 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Tue, 14 Apr 2009 22:48:42 +0000 (22:48 +0000)]
2009-04-14  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Sam Weinig.

        More fix for https://bugs.webkit.org/show_bug.cgi?id=21260
        Unbounded memory growth when churning elements with anonymous event handler functions

        Stop using protected event listeners on SVGElementInstance.

        * bindings/js/JSSVGElementInstanceCustom.cpp:
        (WebCore::JSSVGElementInstance::mark): Mark our event listeners, since
        they're not protected anymore.

        (WebCore::JSSVGElementInstance::addEventListener):
        (WebCore::JSSVGElementInstance::removeEventListener): Make unprotected
        event listeners, since we mark them now.

        * bindings/scripts/CodeGeneratorJS.pm: Autogenerate event listener
        invalidation for SVGElementInstance.

        * svg/SVGElementInstance.h:
        (WebCore::SVGElementInstance::eventListeners): Added an accessor, for
        the sake of autogenerated code.

        * svg/SVGElementInstance.idl: Removed the ProtectedEventListener attribute
        from event listener properties. Added a CustomMarkFunction attribute,
        since we need to mark our event listeners.

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

11 years ago2009-04-14 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 14 Apr 2009 22:47:38 +0000 (22:47 +0000)]
2009-04-14  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        - Speculative fix for <rdar://problem/6781422>

        Protect the plug-in instance proxy in case it's deleted while waiting for a reply.

        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
        (WebKit::NetscapePluginInstanceProxy::wheelEvent):

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

11 years agoWindows build fix
sfalken@apple.com [Tue, 14 Apr 2009 22:30:54 +0000 (22:30 +0000)]
Windows build fix

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

11 years agoVersioning.
mrowe@apple.com [Tue, 14 Apr 2009 22:26:28 +0000 (22:26 +0000)]
Versioning.

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

11 years ago Skip another test that sometimes times out on Windows
aroben@apple.com [Tue, 14 Apr 2009 22:04:43 +0000 (22:04 +0000)]
    Skip another test that sometimes times out on Windows

        * platform/win/Skipped: Added dom/html/level2/html/table29.html.

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

11 years ago2009-04-14 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Tue, 14 Apr 2009 21:33:59 +0000 (21:33 +0000)]
2009-04-14  Xan Lopez  <xlopez@igalia.com>

        Fix the build.

        Add the yarr headers (and only the headers) to the build, so that
        RegExp.cpp can compile. The headers are ifdefed out with yarr
        disabled, so we don't need anything else for now.

        * GNUmakefile.am:

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

11 years ago Add header guards to WebCore forwarding headers.
sfalken@apple.com [Tue, 14 Apr 2009 21:23:56 +0000 (21:23 +0000)]
    Add header guards to WebCore forwarding headers.

        Speeds up WebCore debug build on Windows by 12% on my system,
        since Visual Studio appears to not optimize for standard header
        guards in included files.

        Rubber stamped by Ada Chan.

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

11 years ago Skip a test that sometimes times out on Windows
aroben@apple.com [Tue, 14 Apr 2009 20:56:12 +0000 (20:56 +0000)]
    Skip a test that sometimes times out on Windows

        * platform/win/Skipped: Added
        http/tests/incremental/slow-utf8-text.pl.

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

11 years ago2009-04-14 Sam Weinig <sam@webkit.org>
weinig@apple.com [Tue, 14 Apr 2009 20:53:49 +0000 (20:53 +0000)]
2009-04-14  Sam Weinig  <sam@webkit.org>

        Reviewed by Adele Peterson.

        Use a template function to generalize the way we create non-caching
        JS function getters.

        * bindings/js/JSDOMWindowCustom.cpp:
        * bindings/js/JSDOMWindowCustom.h:
        (WebCore::nonCachingStaticFunctionGetter):
        (WebCore::JSDOMWindow::customGetOwnPropertySlot):

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

11 years ago Skip another JavaScriptCore test that sometimes fails on Windows
aroben@apple.com [Tue, 14 Apr 2009 20:53:08 +0000 (20:53 +0000)]
    Skip another JavaScriptCore test that sometimes fails on Windows

        See Bug 25160: Various ecma/Date tests sometimes fail on Windows (but
        not Mac)
        <https://bugs.webkit.org/show_bug.cgi?id=25160>

        Rubber-stamped by Geoff Garen.

        * Scripts/run-javascriptcore-tests: Skip ecma/Date/15.9.2.2-3.js.

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

11 years ago Skip a sometimes-failing test on Windows
aroben@apple.com [Tue, 14 Apr 2009 20:46:23 +0000 (20:46 +0000)]
    Skip a sometimes-failing test on Windows

        Rubber-stamped by Simon Fraser.

        * platform/win/Skipped: Added
        transitions/zero-duration-with-non-zero-delay-end.html.

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

11 years ago2009-04-14 Benjamin C Meyer <benjamin.meyer@torchmobile.com>
hausmann@webkit.org [Tue, 14 Apr 2009 20:46:15 +0000 (20:46 +0000)]
2009-04-14  Benjamin C Meyer  <benjamin.meyer@torchmobile.com>

        Reviewed by George Staikos.

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

        When creating a QNetworkRequest make sure to populate the
        CacheLoadControlAttribute with the value set by the ResourceRequest::cachePolicy() so that the cache will be used as WebKit expects.

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

11 years ago2009-04-14 Laszlo Gombos <laszlo.1.gombos@nokia.com>
hausmann@webkit.org [Tue, 14 Apr 2009 20:14:47 +0000 (20:14 +0000)]
2009-04-14  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Reviewed by Simon Hausmann.

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

        Fix linking against QtWebKit for Symbian and other platforms
        where the OS ABI distinguishes between an import or an export situation.

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

11 years ago2009-04-14 Adele Peterson <adele@apple.com>
adele@apple.com [Tue, 14 Apr 2009 19:53:16 +0000 (19:53 +0000)]
2009-04-14  Adele Peterson  <adele@apple.com>

        Reviewed by Darin.

        Initialize WebKitSystemInterface in class methods that could get called before a WebView/WebFrame is set up.  This was causing Mail to crash on launch.

        * Misc/WebCache.mm: (+[WebCache initialize]):
        * WebView/WebView.mm: (+[WebView initialize]):

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

11 years agoBuild fix. Move the DerivedSources.make calls into build-wxwebkit so that the FEATURE...
kevino@webkit.org [Tue, 14 Apr 2009 19:25:36 +0000 (19:25 +0000)]
Build fix. Move the DerivedSources.make calls into build-wxwebkit so that the FEATURE_DEFINES are parsed properly.

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

11 years ago Fix a world leak caused by opening the Web Inspector. This was
timothy@apple.com [Tue, 14 Apr 2009 19:06:53 +0000 (19:06 +0000)]
    Fix a world leak caused by opening the Web Inspector. This was
        a regression caused by the InspectorController becoming refcounted.

        <rdar://problem/6782944>

        Reviewed by Darin Adler.

        * bindings/js/ScriptObject.cpp:
        (WebCore::ScriptGlobalObject::get): Renamed to better match the
        other functions.
        (WebCore::ScriptGlobalObject::remove): Added. Deletes the property.
        * bindings/js/ScriptObject.h:
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::~InspectorController): Do less work
        at destruction time since the object lifetime is tied to JS GC.
        Assert that inspectedPageDestroyed cleared everything needed.
        (WebCore::InspectorController::inspectedPageDestroyed): Do most
        of the work that ~InspectorController was doing.
        (WebCore::InspectorController::scriptObjectReady): Renamed getObject.

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

11 years ago2009-04-14 Dmitry Titov <dimich@chromium.org>
dimich@chromium.org [Tue, 14 Apr 2009 18:59:43 +0000 (18:59 +0000)]
2009-04-14  Dmitry Titov  <dimich@chromium.org>

    Fixing ChangeLog.

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

11 years ago2009-04-14 Antony Sargent <asargent@chromium.org>
dimich@chromium.org [Tue, 14 Apr 2009 18:55:13 +0000 (18:55 +0000)]
2009-04-14  Antony Sargent  <asargent@chromium.org>

        Reviewed by Dimitri Glazkov.

        This is some cleanup motivated by the crash in http://crbug.com/9775 , which
        happens because of calling window.open inside a window.onload handler.

        These changes are just part of the fix, along with some asserts to help prevent
        breakage on future changes.

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

        * bindings/v8/V8EventListenerList.cpp:
        (WebCore::V8EventListenerList::add):
        (WebCore::V8EventListenerList::remove):
        (WebCore::V8EventListenerList::clear):
        * bindings/v8/V8EventListenerList.h:
        (WebCore::V8EventListenerList::size):

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

11 years ago2009-04-14 Evan Martin <evan@chromium.org>
dimich@chromium.org [Tue, 14 Apr 2009 18:55:07 +0000 (18:55 +0000)]
2009-04-14  Evan Martin  <evan@chromium.org>

        Reviewed by Darin Adler.

        Fix a race that can occur between flex and the perl script that parses
        its output.

        * css/maketokenizer: Consume all input.

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

11 years ago2009-04-14 Rohit Rao <rohitrao@google.com>
dimich@chromium.org [Tue, 14 Apr 2009 18:55:00 +0000 (18:55 +0000)]
2009-04-14  Rohit Rao  <rohitrao@google.com>

        Reviewed by Dan Bernstein.

        https://bugs.webkit.org/show_bug.cgi?id=25184
        Do not change the text color for selected text in Mac Chromium.

        * rendering/RenderThemeChromiumMac.h:
        (WebCore::RenderThemeChromiumMac::supportsSelectionForegroundColors):
        Now returns false, matching the behavior of Safari on Mac.

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

11 years ago2009-04-13 Justin Garcia <justin.garcia@apple.com>
justin.garcia@apple.com [Tue, 14 Apr 2009 18:48:16 +0000 (18:48 +0000)]
2009-04-13  Justin Garcia  <justin.garcia@apple.com>

        Reviewed by Eric Seidel.

        https://bugs.webkit.org/show_bug.cgi?id=25172
        Extra partial layout during the first keypress in an empty block

        Determining if a placeholder needs to be removed requires the creation of a VisiblePosition
        which was triggering layout before we were finished modifying the DOM for the insert operation.

        Find out if we need to remove a placeholder near the start of the operation, and if we do remember
        where it's located.  Then, later, remove it along with all of the other DOM operations we perform.

        Renamed lineBreakExistsAtPosition to lineBreakExistsAtVisiblePosition and added a lineBreakExistsAtPosition
        that takes in a Position.  In InsertTextCommand, we can use the latter, since we normalize manually.

        removePlaceholderAt now takes in a Position that it assumes has already been checked for a placeholder.

        No test added as this only effects performance.

        * editing/BreakBlockquoteCommand.cpp:
        (WebCore::BreakBlockquoteCommand::doApply):
        * editing/CompositeEditCommand.cpp:
        (WebCore::CompositeEditCommand::removePlaceholderAt):
        (WebCore::CompositeEditCommand::moveParagraphs):
        (WebCore::CompositeEditCommand::breakOutOfEmptyMailBlockquotedParagraph):
        (WebCore::CompositeEditCommand::positionAvoidingSpecialElementBoundary):
        * editing/CompositeEditCommand.h:
        * editing/DeleteSelectionCommand.cpp:
        (WebCore::DeleteSelectionCommand::calculateTypingStyleAfterDelete):
        (WebCore::DeleteSelectionCommand::doApply):
        * editing/FormatBlockCommand.cpp:
        (WebCore::FormatBlockCommand::doApply):
        * editing/InsertLineBreakCommand.cpp:
        (WebCore::InsertLineBreakCommand::doApply):
        * editing/InsertParagraphSeparatorCommand.cpp:
        (WebCore::InsertParagraphSeparatorCommand::doApply):
        * editing/InsertTextCommand.cpp:
        (WebCore::InsertTextCommand::input):
        * editing/htmlediting.cpp:
        (WebCore::lineBreakExistsAtVisiblePosition):
        (WebCore::lineBreakExistsAtPosition):
        * editing/htmlediting.h:

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

11 years agoRemove support for profile-guided optimization on Windows
aroben@apple.com [Tue, 14 Apr 2009 18:35:52 +0000 (18:35 +0000)]
Remove support for profile-guided optimization on Windows

JavaScriptCore:

        Remove support for profile-guided optimization on Windows

        Rubber-stamped by Steve Falkenburg.

        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj: Removed
        the Release_PGO configuration. Also let VS re-order the source files
        list.

WebCore:

        Remove support for profile-guided optimization on Windows

        Rubber-stamped by Steve Falkenburg.

        * WebCore.vcproj/WebCore.vcproj: Removed the Release_PGO
        configuration.

WebKit/win:

        Remove support for profile-guided optimization on Windows

        Rubber-stamped by Steve Falkenburg.

        * WebKit.vcproj/WebKit.vcproj: Removed the Release_PGOInstrument and
        Release_PGOOptimize configurations.

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

11 years ago2009-04-14 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Tue, 14 Apr 2009 18:32:40 +0000 (18:32 +0000)]
2009-04-14  Xan Lopez  <xlopez@igalia.com>

        Unreviewed build fix.

        * GNUmakefile.am:

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

11 years ago2009-04-14 Dmitry Titov <dimich@chromium.org>
dimich@chromium.org [Tue, 14 Apr 2009 18:15:31 +0000 (18:15 +0000)]
2009-04-14  Dmitry Titov  <dimich@chromium.org>

        Reviewed by Dimitri Glazkov.

        https://bugs.webkit.org/show_bug.cgi?id=25163
        Upstream fix for releasing v8 objects on worker thread termination in Chromium.

        * bindings/v8/V8DOMMap.cpp:
        (WebCore::domDataList): Now uses Vector instead of HashMap.
        (WebCore::domDataListMutex):
        (WebCore::ThreadSpecificDOMData::ThreadSpecificDOMData):  remove usage of currentThread();
        (WebCore::ThreadSpecificDOMData::~ThreadSpecificDOMData): ditto.
        (WebCore::NonMainThreadSpecificDOMData::~NonMainThreadSpecificDOMData): moved call to removeAllDOMObjectsInCurrentThread() to ~WorkerScriptController.
        (WebCore::handleWeakObjectInOwningThread):
        (WebCore::derefDelayedObjects):
        (WebCore::removeAllDOMObjectsInCurrentThread): not static anymore.
        * bindings/v8/V8DOMMap.h:
        * bindings/v8/WorkerContextExecutionProxy.cpp:
        (WebCore::WorkerContextExecutionProxy::dispose): removed code that avoided dual-dereference of WorkerContext.
        (WebCore::WorkerContextExecutionProxy::initContextIfNeeded): this ref() is countered in removeAllDOMObjectsInCurrentThread(), when the WorkerContext is removed from the v8 map.
        * bindings/v8/WorkerScriptController.cpp:
        (WebCore::WorkerScriptController::~WorkerScriptController):

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

11 years ago Fix Bug 25183: Split up WebCore.vcproj's settings into vsprops files
aroben@apple.com [Tue, 14 Apr 2009 18:08:38 +0000 (18:08 +0000)]
    Fix Bug 25183: Split up WebCore.vcproj's settings into vsprops files

        <https://bugs.webkit.org/show_bug.cgi?id=25183>

        WebCore.vcproj now uses a set of .vsprops files to store most of its
        settings.

        Reviewed by Darin Adler.

        * WebCore.vcproj/WebCore.vcproj: Moved settings from here into the new
        .vsprops files.

        * WebCore.vcproj/WebCoreCFNetwork.vsprops: Added. Contains settings
        for ports that build against CFNetwork.
        * WebCore.vcproj/WebCoreCG.vsprops: Added. Contains settings for ports
        that build against CoreGraphics.
        * WebCore.vcproj/WebCoreCURL.vsprops: Added. Contains settings for
        ports that build against libcurl.
        * WebCore.vcproj/WebCoreCairo.vsprops: Added. Contains settings for
        ports that build against Cairo.
        * WebCore.vcproj/WebCoreCommon.vsprops: Added. Contains settings
        shared by all ports.
        * WebCore.vcproj/WebCoreMediaQT.vsprops: Added. Contains settings for
        ports that use QTMovieWin to implement the MediaPlayerPrivate
        interface.
        * WebCore.vcproj/WebCorePthreads.vsprops: Added. Contains settings for
        ports that build against pthreads.

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

11 years ago Reviewed by Darin Adler.
ap@webkit.org [Tue, 14 Apr 2009 17:56:07 +0000 (17:56 +0000)]
    Reviewed by Darin Adler.

        http/tests/xmlhttprequest/basic-auth.html fails on Tiger.

        Turns out that NSURLCredentialPersistenceNone doesn't work on Tiger, so we have to use
        session persistence.

        * platform/network/mac/ResourceHandleMac.mm:
        (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): Route the credential through
        receivedCredential(), ensuring that the Tiger-specific need to use session credentials
        is honored.
        (WebCore::ResourceHandle::receivedCredential): On Tiger, change PersistenceNone to
        PersistenceForSession, because the former doesn't work.

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

11 years ago2009-04-13 Adele Peterson <adele@apple.com>
adele@apple.com [Tue, 14 Apr 2009 17:40:28 +0000 (17:40 +0000)]
2009-04-13  Adele Peterson  <adele@apple.com>

        Reviewed by Darin Adler.

        Fix for <rdar://problem/6703873> Triple-click quoted line and type Return creates an extra quoted blank line

        Test: editing/inserting/6703873.html

        * editing/BreakBlockquoteCommand.cpp: (WebCore::BreakBlockquoteCommand::doApply):
        If the startNode's original parent is now empty, we can remove it.  Its already been cloned and copied with the startNode,
        so we only need to keep it around if it actually holds some original content, otherwise it will look like an extra empty
        container in the document.

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

11 years ago2009-04-14 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Tue, 14 Apr 2009 16:52:01 +0000 (16:52 +0000)]
2009-04-14  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Unreviewed. Update gtk-doc control and base sgml files for 1.1.5.

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

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

11 years ago2009-04-14 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Tue, 14 Apr 2009 16:44:47 +0000 (16:44 +0000)]
2009-04-14  Xan Lopez  <xlopez@igalia.com>

        * NEWS: updated for 1.1.5 release.

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

11 years ago2009-04-14 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Tue, 14 Apr 2009 16:14:37 +0000 (16:14 +0000)]
2009-04-14  Xan Lopez  <xlopez@igalia.com>

        Unreviewed version bump in preparation for 1.1.5 release.

        * configure.ac:

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

11 years ago2009-04-14 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Tue, 14 Apr 2009 15:56:43 +0000 (15:56 +0000)]
2009-04-14  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Holger Freyther.

        https://bugs.webkit.org/show_bug.cgi?id=21546
        [GTK] ATK accessibility enhancements

        Add a proper implementation of AtkText::get_text and
        AtkText::get_character_count, which takes into account non
        TextControl text. With this the 'Text' field in Accerciser's
        Interface Viewer is filled correctly.

        * page/gtk/AccessibilityObjectWrapperAtk.cpp:

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

11 years ago2009-04-14 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Tue, 14 Apr 2009 15:56:28 +0000 (15:56 +0000)]
2009-04-14  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Holger Freyther.

        https://bugs.webkit.org/show_bug.cgi?id=21546
        [GTK] ATK accessibility enhancements

        Remove some dead code and g_return_if_fail from static functions.

        * page/gtk/AccessibilityObjectWrapperAtk.cpp:

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

11 years ago2009-04-14 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Tue, 14 Apr 2009 15:56:10 +0000 (15:56 +0000)]
2009-04-14  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Holger Freyther.

        https://bugs.webkit.org/show_bug.cgi?id=21546
        [GTK] ATK accessibility enhancements

        Also implement text interface for StaticTextRole, which covers
        most of the text in web pages.

        * page/gtk/AccessibilityObjectWrapperAtk.cpp:

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

11 years ago2009-04-14 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
hausmann@webkit.org [Tue, 14 Apr 2009 15:07:03 +0000 (15:07 +0000)]
2009-04-14  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>

        Reviewed by Tor Arne Vestbø.

        Rename QWebElement::setHtml and html to setXml and toXml respectivily.

        Also add a mean to define the scope (inner or other).

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

11 years ago Land updated Windows results for two tests changed by r42471
aroben@apple.com [Tue, 14 Apr 2009 14:53:32 +0000 (14:53 +0000)]
    Land updated Windows results for two tests changed by r42471

        Rubber-stamped by Anders Carlsson.

        * platform/win/css1/text_properties/text_transform-expected.txt: Copied from LayoutTests/platform/mac-leopard/css1/text_properties/text_transform-expected.txt.
        * platform/win/css2.1/t1605-c545-txttrans-00-b-ag-expected.txt: Copied from LayoutTests/platform/mac-leopard/css2.1/t1605-c545-txttrans-00-b-ag-expected.txt.

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

11 years ago Small run-javascriptcore-tests cleanup
aroben@apple.com [Tue, 14 Apr 2009 14:53:10 +0000 (14:53 +0000)]
    Small run-javascriptcore-tests cleanup

        Reviewed by Cameron Zwarich.

        * Scripts/run-javascriptcore-tests: Move the list of tests to skip
        into its own variable, annotated with the bugs that are filed about
        the various failures.

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

11 years ago Skip another sometimes-failing ecma/Date test on Windows
aroben@apple.com [Tue, 14 Apr 2009 14:52:55 +0000 (14:52 +0000)]
    Skip another sometimes-failing ecma/Date test on Windows

        These failing tests are covered by Bug 25160: Various ecma/Date tests
        sometimes fail on Windows (but not Mac)
        <https://bugs.webkit.org/show_bug.cgi?id=25160>

        Reviewed by Cameron Zwarich.

        * Scripts/run-javascriptcore-tests: Added ecma/Date/15.9.2.1.js to the
        list of tests to skip.

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

11 years ago2009-04-14 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org>
hausmann@webkit.org [Tue, 14 Apr 2009 14:08:48 +0000 (14:08 +0000)]
2009-04-14  Kenneth Rohde Christiansen  <kenneth.christiansen@openbossa.org>

        Reviewed by Tor Arne Vestbø.

        Rename QWebElement::setText() and text() to ::setPlainText and
        ::toPlainText, respectively.

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

11 years ago2009-04-14 Jan Michael Alonzo <jmalonzo@webkit.org>
jmalonzo@webkit.org [Tue, 14 Apr 2009 11:30:16 +0000 (11:30 +0000)]
2009-04-14  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Reviewed by Holger Freyther.

        [Gtk] disable soup auth dialog when running DRT
        https://bugs.webkit.org/show_bug.cgi?id=24598

        Disable soup's auth dialog when running the tests.

        * DumpRenderTree/gtk/DumpRenderTree.cpp:
        (setDefaultsToConsistentStateValuesForTesting):
        * GNUmakefile.am:

2009-04-14  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Reviewed by Holger Freyther.

        [Gtk] disable soup auth dialog when running DRT
        https://bugs.webkit.org/show_bug.cgi?id=24598

        Enable http/tests/xmlhttprequest/failed-auth.html test. We should
        be able to run this test in non-interactive mode

        * platform/gtk/Skipped:

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

11 years ago2009-04-14 Jan Michael Alonzo <jmalonzo@webkit.org>
jmalonzo@webkit.org [Tue, 14 Apr 2009 11:16:01 +0000 (11:16 +0000)]
2009-04-14  Jan Michael Alonzo  <jmalonzo@webkit.org>

        Gtk build fix when building minidom. Not reviewed.

        Use C-style comment instead of C++ style since autotools builds
        minidom using gcc and not g++.

        * wtf/Platform.h:

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

11 years agoUpdate WebKitSystemInterface so that the Tiger portion supports PowerPC.
mrowe@apple.com [Tue, 14 Apr 2009 10:19:13 +0000 (10:19 +0000)]
Update WebKitSystemInterface so that the Tiger portion supports PowerPC.

* libWebKitSystemInterfaceLeopard.a:
* libWebKitSystemInterfaceTiger.a:

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

11 years ago Another Windows build fix.
ap@webkit.org [Tue, 14 Apr 2009 08:41:09 +0000 (08:41 +0000)]
    Another Windows build fix.

        * platform/network/cf/ResourceHandleCFNet.cpp:
        (WebCore::WebCoreSynchronousLoader::load):

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

11 years ago Windows build fix.
ap@webkit.org [Tue, 14 Apr 2009 08:24:37 +0000 (08:24 +0000)]
    Windows build fix.

        * platform/network/cf/ResourceHandleCFNet.cpp:
        (WebCore::WebCoreSynchronousLoader::willSendRequest):
        (WebCore::WebCoreSynchronousLoader::didReceiveChallenge):

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

11 years agoRemoved mentions of tests from ChangeLog - I'll land those once OS-level support...
ap@webkit.org [Tue, 14 Apr 2009 08:16:01 +0000 (08:16 +0000)]
Removed mentions of tests from ChangeLog - I'll land those once OS-level support for this feature is in.

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

11 years ago Reviewed by Sam Weinig.
ap@webkit.org [Tue, 14 Apr 2009 08:11:42 +0000 (08:11 +0000)]
    Reviewed by Sam Weinig.

        <rdar://problem/6698851> Implement XMLHttpRequest withCredentials attribute

        Tests: http/tests/xmlhttprequest/cross-origin-authorization.html
               http/tests/xmlhttprequest/cross-origin-no-authorization.html

        * WebCore.xcodeproj/project.pbxproj: Made ThreadableLoader.h private, as enum definitions
        from it are now used in otehr private headers.

        * xml/XMLHttpRequest.h:
        * xml/XMLHttpRequest.idl:
        Added withCredentials attribute. When it is false (default), neither credentials nor cookies
        are sent with cross origin requests, When it is true, those are sent, but the server needs
        to allow handling results via Access-Control-Allow-Credentials header. It was always possible
        to send a cross-site request with credentials via IFRAME or IMG, so this just adds a way to
        read results, as long as the server reports that it's allowed.
        Having the default set to false ensures that requests won't fail unexpectedly because of
        stored credentials and cookies for other resources in the target protection space.

        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::loadRequestSynchronously): Allow stored credentials for same origin
        requests, and for cross origin ones that have withCredentials attribute set. Such code already
        existed for cookies (but it's simpler, because we could just set a ResourceRequest flag).
        (WebCore::XMLHttpRequest::loadRequestAsynchronously): Ditto.

        * platform/network/ResourceHandle.h: Added willSendRequest() - just like for other callbacks,
        is is easier to have code in the class. Also, loadResourceSynchronously() now takes a
        StoredCredentials option, matching async case.

        * platform/network/ResourceHandleClient.h:
        (WebCore::ResourceHandleClient::receivedCredential): Removed. This method could never be
        called, and no client used it.
        (WebCore::ResourceHandleClient::receivedRequestToContinueWithoutCredential): Ditto.

        * platform/network/ResourceHandleInternal.h:
        (WebCore::ResourceHandleInternal::ResourceHandleInternal): Split username and password out
        of request URL. We want to always get a callback for credentials to manage them in WebCore,
        so network back-end shouldn't see them too early.

        * platform/network/ResourceRequestBase.cpp:
        (WebCore::ResourceRequestBase::removeCredentials):
        * platform/network/ResourceRequestBase.h:
        Added a removeCredentials() method that removes login and password parts from request URL.

        * platform/network/mac/ResourceHandleMac.mm:
        (WebCoreCredentialStorage): Added a simple storage class for per-session credentials.
        (WebCore::ResourceHandle::loadResourceSynchronously): Pass allowStoredCredentials through.
        (WebCore::ResourceHandle::willSendRequest): On a redirect, credentials should be replaced.
        (WebCore::ResourceHandle::didReceiveAuthenticationChallenge): Try credentials from the URL
        and per-session credentials. Code was partially moved from Obj-C callback.
        (WebCore::ResourceHandle::receivedCredential): Intercept per-session credentials and store
        them in WebCore storage.
        (-[WebCoreResourceHandleAsDelegate connection:willSendRequest:redirectResponse:]): Don't
        store the redirected URL - we only needed credentials, which are now stored separately.
        (-[WebCoreResourceHandleAsDelegate connection:didReceiveAuthenticationChallenge:]): Removed
        code that was setting credentials from URL. First, the code is now in ResourceHandle, and
        also, it wasn't actually needed in Leopard release before this patch, see <rdar://problem/5298142>.
        (-[WebCoreSynchronousLoader dealloc]): Release credentials. Note that unlike ResourceHandle,
        this class still needs to track URL for checking whether a redirect is allowed. This is
        not a great solution, and we should unify client code to use the same checks in sync and
        async cases.
        (-[WebCoreSynchronousLoader connection:willSendRequest:redirectResponse:]): Just like in
        async case, put credentials aside to ensure that network back-end asks for them.
        (-[WebCoreSynchronousLoader connection:didReceiveAuthenticationChallenge:]): Use credentials
        from URL, or from WebCore storage.
        (-[WebCoreSynchronousLoader connectionShouldUseCredentialStorage:]): Don't use stored
        credentials when not allowed to.
        (+[WebCoreSynchronousLoader loadRequest:allowStoredCredentials:returningResponse:error:]):
        Put credentials aside to ensure that network back-end asks for them.

        * platform/network/cf/ResourceHandleCFNet.cpp:
        (WebCore::WebCoreCredentialStorage::set):
        (WebCore::WebCoreCredentialStorage::get):
        (WebCore::willSendRequest):
        (WebCore::ResourceHandle::start):
        (WebCore::ResourceHandle::willSendRequest):
        (WebCore::ResourceHandle::didReceiveAuthenticationChallenge):
        (WebCore::ResourceHandle::receivedCredential):
        (WebCore::ResourceHandle::loadResourceSynchronously):
        (WebCore::WebCoreSynchronousLoader::willSendRequest):
        (WebCore::WebCoreSynchronousLoader::didReceiveChallenge):
        (WebCore::WebCoreSynchronousLoader::shouldUseCredentialStorage):
        (WebCore::WebCoreSynchronousLoader::load):
        Same changes as in Mac case.

        * platform/network/curl/ResourceHandleCurl.cpp:
        (WebCore::ResourceHandle::loadResourceSynchronously):
        * platform/network/qt/ResourceHandleQt.cpp:
        (WebCore::ResourceHandle::loadResourceSynchronously):
        * platform/network/soup/ResourceHandleSoup.cpp:
        (WebCore::ResourceHandle::loadResourceSynchronously):
        Trying not to break the build.

        * dom/XMLTokenizerLibxml2.cpp: (WebCore::openFunc):
        * xml/XSLTProcessor.cpp: (WebCore::docLoaderFunc):
        Unconditionally allow stored credentials for these, as they only support same origin loads.

        * workers/WorkerContext.cpp: (WebCore::WorkerContext::importScripts):
        WorkerContext.importScripts() can be cross-origin, but sending credentials with it is no worse
        than sending them with <script src=...>, so this is also unconditionally allowed.

        * loader/DocumentThreadableLoader.cpp:
        (WebCore::DocumentThreadableLoader::loadResourceSynchronously): Pass through storedCredentials.
        (WebCore::DocumentThreadableLoader::create): Ditto.
        (WebCore::DocumentThreadableLoader::DocumentThreadableLoader): Save storedCredentials and
        sameOrigin flags foruse in callbacks.
        (WebCore::DocumentThreadableLoader::willSendRequest): Assert that loaders aren't all confused.
        (WebCore::DocumentThreadableLoader::didSendData): Ditto.
        (WebCore::DocumentThreadableLoader::didReceiveResponse): Ditto.
        (WebCore::DocumentThreadableLoader::didReceiveData): Ditto.
        (WebCore::DocumentThreadableLoader::didFinishLoading): Ditto.
        (WebCore::DocumentThreadableLoader::didFail): Ditto.
        (WebCore::DocumentThreadableLoader::getShouldUseCredentialStorage): Don't use credential
        storage if that's not allowed by the code that invoked DocumentThreadableLoader.
        (WebCore::DocumentThreadableLoader::didReceiveAuthenticationChallenge): Simulate a failure
        and cancel the request if we are about to ask the user for credentials for a cross-origin
        request, which is forbidden by CORS (and would have been very confusing if allowed).
        (WebCore::DocumentThreadableLoader::receivedCancellation): Assert that loaders aren't all confused.

        * loader/DocumentThreadableLoader.h: Updated for the new flags (storedCredentials and
        sameOrigin) that affect the loader. Eventually, we need to move all CORS logic from XHR here.

        * loader/ThreadableLoader.h: (StoredCredentials): Added another flag that affects loader
        behavior. We should combine all of these into a structure, and use it for sync requests, too.

        * loader/FrameLoader.cpp: (WebCore::FrameLoader::loadResourceSynchronously):
        * loader/FrameLoader.h:
        * loader/ThreadableLoader.cpp:
        (WebCore::ThreadableLoader::create):
        (WebCore::ThreadableLoader::loadResourceSynchronously):
        * loader/WorkerThreadableLoader.cpp:
        (WebCore::WorkerThreadableLoader::WorkerThreadableLoader):
        (WebCore::WorkerThreadableLoader::loadResourceSynchronously):
        (WebCore::WorkerThreadableLoader::MainThreadBridge::MainThreadBridge):
        (WebCore::WorkerThreadableLoader::MainThreadBridge::mainThreadCreateLoader):
        * loader/WorkerThreadableLoader.h:
        (WebCore::WorkerThreadableLoader::create):
        Pass through storedCredentials.

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

11 years agospeculative 'doze build fix
barraclough@apple.com [Tue, 14 Apr 2009 07:19:34 +0000 (07:19 +0000)]
speculative 'doze build fix

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

11 years ago2009-04-13 Gavin Barraclough <barraclough@apple.com>
barraclough@apple.com [Tue, 14 Apr 2009 07:06:41 +0000 (07:06 +0000)]
2009-04-13  Gavin Barraclough  <barraclough@apple.com>

        Reviewed by Cap'n Geoff Garen.

        Yarr!
        (Yet another regex runtime).

        Currently disabled by default since the interpreter, whilst awesomely
        functional, has not been optimized and is likely slower than PCRE, and
        the JIT, whilst faster than WREC, is presently incomplete and does not
        fallback to using an interpreter for the cases it cannot handle.

        * JavaScriptCore.xcodeproj/project.pbxproj:
        * assembler/MacroAssemblerX86Common.h:
        (JSC::MacroAssemblerX86Common::move):
        (JSC::MacroAssemblerX86Common::swap):
        (JSC::MacroAssemblerX86Common::signExtend32ToPtr):
        (JSC::MacroAssemblerX86Common::zeroExtend32ToPtr):
        (JSC::MacroAssemblerX86Common::branch32):
        (JSC::MacroAssemblerX86Common::branch16):
        * assembler/X86Assembler.h:
        (JSC::X86Assembler::cmpw_im):
        (JSC::X86Assembler::testw_rr):
        (JSC::X86Assembler::X86InstructionFormatter::immediate16):
        * runtime/RegExp.cpp:
        (JSC::RegExp::RegExp):
        (JSC::RegExp::~RegExp):
        (JSC::RegExp::create):
        (JSC::RegExp::compile):
        (JSC::RegExp::match):
        * runtime/RegExp.h:
        * wtf/Platform.h:
        * yarr: Added.
        * yarr/RegexCompiler.cpp: Added.
        (JSC::Yarr::CharacterClassConstructor::CharacterClassConstructor):
        (JSC::Yarr::CharacterClassConstructor::reset):
        (JSC::Yarr::CharacterClassConstructor::append):
        (JSC::Yarr::CharacterClassConstructor::putChar):
        (JSC::Yarr::CharacterClassConstructor::isUnicodeUpper):
        (JSC::Yarr::CharacterClassConstructor::isUnicodeLower):
        (JSC::Yarr::CharacterClassConstructor::putRange):
        (JSC::Yarr::CharacterClassConstructor::charClass):
        (JSC::Yarr::CharacterClassConstructor::addSorted):
        (JSC::Yarr::CharacterClassConstructor::addSortedRange):
        (JSC::Yarr::newlineCreate):
        (JSC::Yarr::digitsCreate):
        (JSC::Yarr::spacesCreate):
        (JSC::Yarr::wordcharCreate):
        (JSC::Yarr::nondigitsCreate):
        (JSC::Yarr::nonspacesCreate):
        (JSC::Yarr::nonwordcharCreate):
        (JSC::Yarr::RegexPatternConstructor::RegexPatternConstructor):
        (JSC::Yarr::RegexPatternConstructor::~RegexPatternConstructor):
        (JSC::Yarr::RegexPatternConstructor::reset):
        (JSC::Yarr::RegexPatternConstructor::assertionBOL):
        (JSC::Yarr::RegexPatternConstructor::assertionEOL):
        (JSC::Yarr::RegexPatternConstructor::assertionWordBoundary):
        (JSC::Yarr::RegexPatternConstructor::atomPatternCharacter):
        (JSC::Yarr::RegexPatternConstructor::atomBuiltInCharacterClass):
        (JSC::Yarr::RegexPatternConstructor::atomCharacterClassBegin):
        (JSC::Yarr::RegexPatternConstructor::atomCharacterClassAtom):
        (JSC::Yarr::RegexPatternConstructor::atomCharacterClassRange):
        (JSC::Yarr::RegexPatternConstructor::atomCharacterClassBuiltIn):
        (JSC::Yarr::RegexPatternConstructor::atomCharacterClassEnd):
        (JSC::Yarr::RegexPatternConstructor::atomParenthesesSubpatternBegin):
        (JSC::Yarr::RegexPatternConstructor::atomParentheticalAssertionBegin):
        (JSC::Yarr::RegexPatternConstructor::atomParenthesesEnd):
        (JSC::Yarr::RegexPatternConstructor::atomBackReference):
        (JSC::Yarr::RegexPatternConstructor::copyDisjunction):
        (JSC::Yarr::RegexPatternConstructor::copyTerm):
        (JSC::Yarr::RegexPatternConstructor::quantifyAtom):
        (JSC::Yarr::RegexPatternConstructor::disjunction):
        (JSC::Yarr::RegexPatternConstructor::regexBegin):
        (JSC::Yarr::RegexPatternConstructor::regexEnd):
        (JSC::Yarr::RegexPatternConstructor::regexError):
        (JSC::Yarr::RegexPatternConstructor::setupAlternativeOffsets):
        (JSC::Yarr::RegexPatternConstructor::setupDisjunctionOffsets):
        (JSC::Yarr::RegexPatternConstructor::setupOffsets):
        (JSC::Yarr::compileRegex):
        * yarr/RegexCompiler.h: Added.
        * yarr/RegexInterpreter.cpp: Added.
        (JSC::Yarr::Interpreter::appendParenthesesDisjunctionContext):
        (JSC::Yarr::Interpreter::popParenthesesDisjunctionContext):
        (JSC::Yarr::Interpreter::DisjunctionContext::DisjunctionContext):
        (JSC::Yarr::Interpreter::DisjunctionContext::operator new):
        (JSC::Yarr::Interpreter::allocDisjunctionContext):
        (JSC::Yarr::Interpreter::freeDisjunctionContext):
        (JSC::Yarr::Interpreter::ParenthesesDisjunctionContext::ParenthesesDisjunctionContext):
        (JSC::Yarr::Interpreter::ParenthesesDisjunctionContext::operator new):
        (JSC::Yarr::Interpreter::ParenthesesDisjunctionContext::restoreOutput):
        (JSC::Yarr::Interpreter::ParenthesesDisjunctionContext::getDisjunctionContext):
        (JSC::Yarr::Interpreter::allocParenthesesDisjunctionContext):
        (JSC::Yarr::Interpreter::freeParenthesesDisjunctionContext):
        (JSC::Yarr::Interpreter::InputStream::InputStream):
        (JSC::Yarr::Interpreter::InputStream::next):
        (JSC::Yarr::Interpreter::InputStream::rewind):
        (JSC::Yarr::Interpreter::InputStream::read):
        (JSC::Yarr::Interpreter::InputStream::readChecked):
        (JSC::Yarr::Interpreter::InputStream::reread):
        (JSC::Yarr::Interpreter::InputStream::prev):
        (JSC::Yarr::Interpreter::InputStream::getPos):
        (JSC::Yarr::Interpreter::InputStream::setPos):
        (JSC::Yarr::Interpreter::InputStream::atStart):
        (JSC::Yarr::Interpreter::InputStream::atEnd):
        (JSC::Yarr::Interpreter::InputStream::checkInput):
        (JSC::Yarr::Interpreter::InputStream::uncheckInput):
        (JSC::Yarr::Interpreter::testCharacterClass):
        (JSC::Yarr::Interpreter::tryConsumeCharacter):
        (JSC::Yarr::Interpreter::checkCharacter):
        (JSC::Yarr::Interpreter::tryConsumeCharacterClass):
        (JSC::Yarr::Interpreter::checkCharacterClass):
        (JSC::Yarr::Interpreter::tryConsumeBackReference):
        (JSC::Yarr::Interpreter::matchAssertionBOL):
        (JSC::Yarr::Interpreter::matchAssertionEOL):
        (JSC::Yarr::Interpreter::matchAssertionWordBoundary):
        (JSC::Yarr::Interpreter::matchPatternCharacter):
        (JSC::Yarr::Interpreter::backtrackPatternCharacter):
        (JSC::Yarr::Interpreter::matchCharacterClass):
        (JSC::Yarr::Interpreter::backtrackCharacterClass):
        (JSC::Yarr::Interpreter::matchBackReference):
        (JSC::Yarr::Interpreter::backtrackBackReference):
        (JSC::Yarr::Interpreter::recordParenthesesMatch):
        (JSC::Yarr::Interpreter::resetMatches):
        (JSC::Yarr::Interpreter::resetAssertionMatches):
        (JSC::Yarr::Interpreter::parenthesesDoBacktrack):
        (JSC::Yarr::Interpreter::matchParenthesesOnceBegin):
        (JSC::Yarr::Interpreter::matchParenthesesOnceEnd):
        (JSC::Yarr::Interpreter::backtrackParenthesesOnceBegin):
        (JSC::Yarr::Interpreter::backtrackParenthesesOnceEnd):
        (JSC::Yarr::Interpreter::matchParentheticalAssertionOnceBegin):
        (JSC::Yarr::Interpreter::matchParentheticalAssertionOnceEnd):
        (JSC::Yarr::Interpreter::backtrackParentheticalAssertionOnceBegin):
        (JSC::Yarr::Interpreter::backtrackParentheticalAssertionOnceEnd):
        (JSC::Yarr::Interpreter::matchParentheses):
        (JSC::Yarr::Interpreter::backtrackParentheses):
        (JSC::Yarr::Interpreter::matchTerm):
        (JSC::Yarr::Interpreter::backtrackTerm):
        (JSC::Yarr::Interpreter::matchAlternative):
        (JSC::Yarr::Interpreter::matchDisjunction):
        (JSC::Yarr::Interpreter::matchNonZeroDisjunction):
        (JSC::Yarr::Interpreter::interpret):
        (JSC::Yarr::Interpreter::Interpreter):
        (JSC::Yarr::ByteCompiler::ParenthesesStackEntry::ParenthesesStackEntry):
        (JSC::Yarr::ByteCompiler::ByteCompiler):
        (JSC::Yarr::ByteCompiler::compile):
        (JSC::Yarr::ByteCompiler::checkInput):
        (JSC::Yarr::ByteCompiler::assertionBOL):
        (JSC::Yarr::ByteCompiler::assertionEOL):
        (JSC::Yarr::ByteCompiler::assertionWordBoundary):
        (JSC::Yarr::ByteCompiler::atomPatternCharacter):
        (JSC::Yarr::ByteCompiler::atomCharacterClass):
        (JSC::Yarr::ByteCompiler::atomBackReference):
        (JSC::Yarr::ByteCompiler::atomParenthesesSubpatternBegin):
        (JSC::Yarr::ByteCompiler::atomParentheticalAssertionBegin):
        (JSC::Yarr::ByteCompiler::popParenthesesStack):
        (JSC::Yarr::ByteCompiler::dumpDisjunction):
        (JSC::Yarr::ByteCompiler::closeAlternative):
        (JSC::Yarr::ByteCompiler::atomParenthesesEnd):
        (JSC::Yarr::ByteCompiler::regexBegin):
        (JSC::Yarr::ByteCompiler::regexEnd):
        (JSC::Yarr::ByteCompiler::alterantiveDisjunction):
        (JSC::Yarr::ByteCompiler::emitDisjunction):
        (JSC::Yarr::byteCompileRegex):
        (JSC::Yarr::interpretRegex):
        * yarr/RegexInterpreter.h: Added.
        (JSC::Yarr::ByteTerm::):
        (JSC::Yarr::ByteTerm::ByteTerm):
        (JSC::Yarr::ByteTerm::BOL):
        (JSC::Yarr::ByteTerm::CheckInput):
        (JSC::Yarr::ByteTerm::EOL):
        (JSC::Yarr::ByteTerm::WordBoundary):
        (JSC::Yarr::ByteTerm::BackReference):
        (JSC::Yarr::ByteTerm::AlternativeBegin):
        (JSC::Yarr::ByteTerm::AlternativeDisjunction):
        (JSC::Yarr::ByteTerm::AlternativeEnd):
        (JSC::Yarr::ByteTerm::PatternEnd):
        (JSC::Yarr::ByteTerm::invert):
        (JSC::Yarr::ByteTerm::capture):
        (JSC::Yarr::ByteDisjunction::ByteDisjunction):
        (JSC::Yarr::BytecodePattern::BytecodePattern):
        (JSC::Yarr::BytecodePattern::~BytecodePattern):
        * yarr/RegexJIT.cpp: Added.
        (JSC::Yarr::RegexGenerator::optimizeAlternative):
        (JSC::Yarr::RegexGenerator::matchCharacterClassRange):
        (JSC::Yarr::RegexGenerator::matchCharacterClass):
        (JSC::Yarr::RegexGenerator::jumpIfNoAvailableInput):
        (JSC::Yarr::RegexGenerator::jumpIfAvailableInput):
        (JSC::Yarr::RegexGenerator::checkInput):
        (JSC::Yarr::RegexGenerator::atEndOfInput):
        (JSC::Yarr::RegexGenerator::notAtEndOfInput):
        (JSC::Yarr::RegexGenerator::jumpIfCharEquals):
        (JSC::Yarr::RegexGenerator::jumpIfCharNotEquals):
        (JSC::Yarr::RegexGenerator::readCharacter):
        (JSC::Yarr::RegexGenerator::storeToFrame):
        (JSC::Yarr::RegexGenerator::loadFromFrame):
        (JSC::Yarr::RegexGenerator::TermGenerationState::TermGenerationState):
        (JSC::Yarr::RegexGenerator::TermGenerationState::resetAlternative):
        (JSC::Yarr::RegexGenerator::TermGenerationState::alternativeValid):
        (JSC::Yarr::RegexGenerator::TermGenerationState::nextAlternative):
        (JSC::Yarr::RegexGenerator::TermGenerationState::alternative):
        (JSC::Yarr::RegexGenerator::TermGenerationState::resetTerm):
        (JSC::Yarr::RegexGenerator::TermGenerationState::termValid):
        (JSC::Yarr::RegexGenerator::TermGenerationState::nextTerm):
        (JSC::Yarr::RegexGenerator::TermGenerationState::term):
        (JSC::Yarr::RegexGenerator::TermGenerationState::lookaheadTerm):
        (JSC::Yarr::RegexGenerator::TermGenerationState::isSinglePatternCharacterLookaheadTerm):
        (JSC::Yarr::RegexGenerator::TermGenerationState::inputOffset):
        (JSC::Yarr::RegexGenerator::TermGenerationState::jumpToBacktrack):
        (JSC::Yarr::RegexGenerator::TermGenerationState::setBacktrackGenerated):
        (JSC::Yarr::RegexGenerator::jumpToBacktrackCheckEmitPending):
        (JSC::Yarr::RegexGenerator::genertateAssertionBOL):
        (JSC::Yarr::RegexGenerator::genertateAssertionEOL):
        (JSC::Yarr::RegexGenerator::matchAssertionWordchar):
        (JSC::Yarr::RegexGenerator::genertateAssertionWordBoundary):
        (JSC::Yarr::RegexGenerator::genertatePatternCharacterSingle):
        (JSC::Yarr::RegexGenerator::genertatePatternCharacterPair):
        (JSC::Yarr::RegexGenerator::genertatePatternCharacterFixed):
        (JSC::Yarr::RegexGenerator::genertatePatternCharacterGreedy):
        (JSC::Yarr::RegexGenerator::genertatePatternCharacterNonGreedy):
        (JSC::Yarr::RegexGenerator::genertateCharacterClassSingle):
        (JSC::Yarr::RegexGenerator::genertateCharacterClassFixed):
        (JSC::Yarr::RegexGenerator::genertateCharacterClassGreedy):
        (JSC::Yarr::RegexGenerator::genertateCharacterClassNonGreedy):
        (JSC::Yarr::RegexGenerator::generateParenthesesSingleDisjunctionOneAlternative):
        (JSC::Yarr::RegexGenerator::generateParenthesesSingle):
        (JSC::Yarr::RegexGenerator::generateTerm):
        (JSC::Yarr::RegexGenerator::generateDisjunction):
        (JSC::Yarr::RegexGenerator::RegexGenerator):
        (JSC::Yarr::RegexGenerator::generate):
        (JSC::Yarr::jitCompileRegex):
        (JSC::Yarr::executeRegex):
        * yarr/RegexJIT.h: Added.
        (JSC::Yarr::RegexCodeBlock::RegexCodeBlock):
        * yarr/RegexParser.h: Added.
        (JSC::Yarr::):
        (JSC::Yarr::Parser::):
        (JSC::Yarr::Parser::CharacterClassParserDelegate::CharacterClassParserDelegate):
        (JSC::Yarr::Parser::CharacterClassParserDelegate::begin):
        (JSC::Yarr::Parser::CharacterClassParserDelegate::atomPatternCharacterUnescaped):
        (JSC::Yarr::Parser::CharacterClassParserDelegate::atomPatternCharacter):
        (JSC::Yarr::Parser::CharacterClassParserDelegate::atomBuiltInCharacterClass):
        (JSC::Yarr::Parser::CharacterClassParserDelegate::end):
        (JSC::Yarr::Parser::CharacterClassParserDelegate::assertionWordBoundary):
        (JSC::Yarr::Parser::CharacterClassParserDelegate::atomBackReference):
        (JSC::Yarr::Parser::CharacterClassParserDelegate::flush):
        (JSC::Yarr::Parser::CharacterClassParserDelegate::):
        (JSC::Yarr::Parser::Parser):
        (JSC::Yarr::Parser::parseEscape):
        (JSC::Yarr::Parser::parseAtomEscape):
        (JSC::Yarr::Parser::parseCharacterClassEscape):
        (JSC::Yarr::Parser::parseCharacterClass):
        (JSC::Yarr::Parser::parseParenthesesBegin):
        (JSC::Yarr::Parser::parseParenthesesEnd):
        (JSC::Yarr::Parser::parseQuantifier):
        (JSC::Yarr::Parser::parseTokens):
        (JSC::Yarr::Parser::parse):
        (JSC::Yarr::Parser::saveState):
        (JSC::Yarr::Parser::restoreState):
        (JSC::Yarr::Parser::atEndOfPattern):
        (JSC::Yarr::Parser::peek):
        (JSC::Yarr::Parser::peekIsDigit):
        (JSC::Yarr::Parser::peekDigit):
        (JSC::Yarr::Parser::consume):
        (JSC::Yarr::Parser::consumeDigit):
        (JSC::Yarr::Parser::consumeNumber):
        (JSC::Yarr::Parser::consumeOctal):
        (JSC::Yarr::Parser::tryConsume):
        (JSC::Yarr::Parser::tryConsumeHex):
        (JSC::Yarr::parse):
        * yarr/RegexPattern.h: Added.
        (JSC::Yarr::CharacterRange::CharacterRange):
        (JSC::Yarr::):
        (JSC::Yarr::PatternTerm::):
        (JSC::Yarr::PatternTerm::PatternTerm):
        (JSC::Yarr::PatternTerm::BOL):
        (JSC::Yarr::PatternTerm::EOL):
        (JSC::Yarr::PatternTerm::WordBoundary):
        (JSC::Yarr::PatternTerm::invert):
        (JSC::Yarr::PatternTerm::capture):
        (JSC::Yarr::PatternTerm::quantify):
        (JSC::Yarr::PatternAlternative::PatternAlternative):
        (JSC::Yarr::PatternAlternative::lastTerm):
        (JSC::Yarr::PatternAlternative::removeLastTerm):
        (JSC::Yarr::PatternDisjunction::PatternDisjunction):
        (JSC::Yarr::PatternDisjunction::~PatternDisjunction):
        (JSC::Yarr::PatternDisjunction::addNewAlternative):
        (JSC::Yarr::RegexPattern::RegexPattern):
        (JSC::Yarr::RegexPattern::~RegexPattern):
        (JSC::Yarr::RegexPattern::reset):
        (JSC::Yarr::RegexPattern::containsIllegalBackReference):
        (JSC::Yarr::RegexPattern::newlineCharacterClass):
        (JSC::Yarr::RegexPattern::digitsCharacterClass):
        (JSC::Yarr::RegexPattern::spacesCharacterClass):
        (JSC::Yarr::RegexPattern::wordcharCharacterClass):
        (JSC::Yarr::RegexPattern::nondigitsCharacterClass):
        (JSC::Yarr::RegexPattern::nonspacesCharacterClass):
        (JSC::Yarr::RegexPattern::nonwordcharCharacterClass):

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