Reviewed by Darin Adler.

        <rdar://problem/6918671> REGRESSION (r41700): Crashes in debug DumpRenderTree at RefCountedBase::ref().

        * dom/QualifiedName.cpp: (WebCore::QualifiedName::QualifiedName):
        * dom/QualifiedName.h: (WebCore::QualifiedName::QualifiedNameImpl::QualifiedNameImpl):
        Adjust empty namespace before QNameComponentsTranslator black magic, not after.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44147 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-05-26  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Serialize calls to WebInspector. This is the first step where method 
        calls are being serialized to arrays (not yet JSON stringified ones) and 
        are being dispatched on the client. This change also allows client to override 
        InspectorFrontend, so that the serialized calls can be made on a given object
        instead of in-process WebInspector global. This will be the main control flow
        when InspectorController is decoupled from the in-process frontend.

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

        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::scriptObjectReady):
        (WebCore::InspectorController::overrideFrontendObject):
        (WebCore::InspectorController::show):
        (WebCore::InspectorController::populateScriptObjects):
        * inspector/InspectorController.h:
        * inspector/InspectorFrontend.cpp:
        (WebCore::InspectorFrontend::addMessageToConsole):
        (WebCore::InspectorFrontend::addResource):
        (WebCore::InspectorFrontend::updateResource):
        (WebCore::InspectorFrontend::removeResource):
        (WebCore::InspectorFrontend::updateFocusedNode):
        (WebCore::InspectorFrontend::setAttachedWindow):
        (WebCore::InspectorFrontend::inspectedWindowScriptObjectCleared):
        (WebCore::InspectorFrontend::showPanel):
        (WebCore::InspectorFrontend::populateInterface):
        (WebCore::InspectorFrontend::reset):
        (WebCore::InspectorFrontend::debuggerWasEnabled):
        (WebCore::InspectorFrontend::debuggerWasDisabled):
        (WebCore::InspectorFrontend::profilerWasEnabled):
        (WebCore::InspectorFrontend::profilerWasDisabled):
        (WebCore::InspectorFrontend::parsedScriptSource):
        (WebCore::InspectorFrontend::failedToParseScriptSource):
        (WebCore::InspectorFrontend::addProfile):
        (WebCore::InspectorFrontend::setRecordingProfile):
        (WebCore::InspectorFrontend::pausedScript):
        (WebCore::InspectorFrontend::resumedScript):
        (WebCore::InspectorFrontend::addDatabase):
        (WebCore::InspectorFrontend::addDOMStorage):
        (WebCore::InspectorFrontend::newFunctionCall):
        (WebCore::InspectorFrontend::callSimpleFunction):
        * inspector/InspectorFrontend.h:
        * inspector/front-end/inspector.js:
        (WebInspector.dispatch):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44149 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-05-26  Stephen White  <senorblanco@chromium.org>

        Reviewed by Dimitri Glazkov.

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

        Fix the Skia path to normalize the given source rect when
        drawing patterns, so it accepts negative width/height (as CG does).
        Fixes Chromium bug http://www.crbug.com/6167.
        * platform/graphics/skia/ImageSkia.cpp:
        (WebCore::Image::drawPattern):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44150 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Bug 25801: change AccessibilityAria -> AccessibilityARIA
https://bugs.webkit.org/show_bug.cgi?id=25801



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44151 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore:

2009-05-26  David Hyatt  <hyatt@apple.com>

        Reviewed by Darin Adler.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=25969

        Detect the case where we can fit without scrollbars when the view shrinks, so that we don't mistakenly
        continue to show scrollbars.

        Added two tests in fast/dynamic.

        * platform/ScrollView.cpp:
        (WebCore::ScrollView::updateScrollbars):

WebKit/mac:

2009-05-26  David Hyatt  <hyatt@apple.com>

        Reviewed by Darin Adler.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=25969.

        Stop using notifications for boundsChanged, since the notifications are being sent too late.
        Since subviews get resized before parents do, the notification comes in telling the WebHTMLView
        that its size has changed *before* we've done setNeedsLayout in the WebView size change callback.

        Become more like the Windows platform and just do the bounds changed immediately as our size is
        being altered by subclassing setFrameSize in WebView.

        Also patch WebDynamicScrollbarsView to detect the case where neither axis is really spilling out
        past the viewport, so that in shrinking situations we figure out that we don't need scrollbars
        any more.

        * WebView/WebDynamicScrollBarsView.m:
        (-[WebDynamicScrollBarsView updateScrollers]):
        * WebView/WebView.mm:
        (-[WebView _boundsChangedToNewSize:]):
        (-[WebView setFrameSize:]):
        (-[WebView viewWillMoveToWindow:]):
        (-[WebView viewDidMoveToWindow]):

LayoutTests:

2009-05-26  David Hyatt  <hyatt@apple.com>

        Reviewed by Darin Adler.

        Fix for bug 25969, scrollbars remain after document shrinks.  Add a couple of layout tests
        written by Dan that show various problems with scrollbars following resizes.

        * fast/dynamic/window-resize-scrollbars-test.html: Added.
        * fast/dynamic/window-scrollbars-test.html: Added.
        * platform/mac/fast/dynamic/window-resize-scrollbars-test-expected.checksum: Added.
        * platform/mac/fast/dynamic/window-resize-scrollbars-test-expected.png: Added.
        * platform/mac/fast/dynamic/window-resize-scrollbars-test-expected.txt: Added.
        * platform/mac/fast/dynamic/window-scrollbars-test-expected.checksum: Added.
        * platform/mac/fast/dynamic/window-scrollbars-test-expected.png: Added.
        * platform/mac/fast/dynamic/window-scrollbars-test-expected.txt: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44152 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-05-26  David Hyatt  <hyatt@apple.com>

        Back out the workaround for Mail crashing.  Darin is working on the real fix.

        * Misc/WebNSObjectExtras.mm:
        (-[WebMainThreadInvoker forwardInvocation:]):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44153 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-05-26  Darin Adler  <darin@apple.com>

        Reviewed by Mark Rowe.

        <rdar://problem/6921835> REGRESSION (r44115): Crash in Leopard Mail viewing message

        Fix case where we autorelease an object on the main thread that we are returning
        to another thread when using our _webkit_invokeOnMainThread method.

        * Misc/WebNSObjectExtras.mm:
        (returnTypeIsObject): Added.
        (-[WebMainThreadInvoker forwardInvocation:]): Autorelease the object on the calling
        thread, balancing a retain done on the main thread.
        (-[NSInvocation _webkit_invokeAndHandleException:]): Retain the object on the main
        thread.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44154 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore:

2009-05-26  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Maciej Stachowiak.

        https://bugs.webkit.org/show_bug.cgi?id=23649
        Update SQLTransactionErrorCallback to not return a value per changes in
        HTML5 spec.

        Test: storage/transaction-error-callback.html

        * bindings/js/JSCustomSQLTransactionErrorCallback.cpp:
        (WebCore::JSCustomSQLTransactionErrorCallback::handleEvent):
        * bindings/js/JSCustomSQLTransactionErrorCallback.h:
        * storage/SQLTransaction.cpp:
        (WebCore::SQLTransaction::SQLTransaction):
        (WebCore::SQLTransaction::postflightAndCommit):
        (WebCore::SQLTransaction::handleTransactionError):
        (WebCore::SQLTransaction::deliverTransactionErrorCallback):
        (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback):
        * storage/SQLTransaction.h:
        * storage/SQLTransactionErrorCallback.h:

LayouTests:

2009-05-26  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Maciej Stachowiak.

        https://bugs.webkit.org/show_bug.cgi?id=23649
        Add layout test for various cases of SQLTransactionErrorCallback
        invocation.

        * storage/transaction-error-callback-expected.txt: Added.
        * storage/transaction-error-callback.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44155 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-05-26  Dirk Schulze  <krit@webkit.org>

        Reviewed by Nikolas Zimmermann.

        Move FilterEffect to platform/graphics/filters. First step to get an
        SVG independent filter system.

        * GNUmakefile.am:
        * WebCore.pro:
        * WebCore.xcodeproj/project.pbxproj:
        * platform/graphics/filters/FilterEffect.cpp: Added.
        (WebCore::FilterEffect::FilterEffect):
        (WebCore::FilterEffect::~FilterEffect):
        (WebCore::FilterEffect::externalRepresentation):
        * platform/graphics/filters/FilterEffect.h: Added.
        (WebCore::FilterEffect::xBoundingBoxMode):
        (WebCore::FilterEffect::setXBoundingBoxMode):
        (WebCore::FilterEffect::yBoundingBoxMode):
        (WebCore::FilterEffect::setYBoundingBoxMode):
        (WebCore::FilterEffect::widthBoundingBoxMode):
        (WebCore::FilterEffect::setWidthBoundingBoxMode):
        (WebCore::FilterEffect::heightBoundingBoxMode):
        (WebCore::FilterEffect::setHeightBoundingBoxMode):
        (WebCore::FilterEffect::subRegion):
        (WebCore::FilterEffect::setSubRegion):
        (WebCore::FilterEffect::resultImage):
        (WebCore::FilterEffect::setEffectBuffer):
        * svg/FilterEffect.cpp: Removed.
        * svg/FilterEffect.h: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44156 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-05-26  Dimitri Glazkov  <dglazkov@chromium.org>

        Unreviewed, build fix.

        https://bugs.webkit.org/show_bug.cgi?id=23649
        Update V8 bindings to match SQLTransactionErrorCallback change.

        * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.cpp:
        (WebCore::V8CustomSQLTransactionErrorCallback::handleEvent): Changed to return void.
        * bindings/v8/custom/V8CustomSQLTransactionErrorCallback.h: Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44157 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix the Tiger build.

* Misc/WebNSObjectExtras.mm:
(-[NSInvocation _webkit_invokeAndHandleException:]): Rename the local variable so that
it doesn't conflict with a member variable on Tiger.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44158 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-05-26  Adam Barth  <abarth@webkit.org>

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

        Unreviewed change to disable flaky test as requested by Sam Weinig.

        * http/tests/security/postMessage/origin-follows-lexical-scope-expected.txt: Removed.
        * http/tests/security/postMessage/origin-follows-lexical-scope.html: Removed.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44159 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-05-26  Dmitry Titov  <dimich@chromium.org>

        Reviewed by Dimitri Glazkov.

        https://bugs.webkit.org/show_bug.cgi?id=25974
        Enable timers in Chromuim workers.

        * bindings/v8/ScheduledAction.cpp:
        (WebCore::ScheduledAction::execute): Added function which can execute a callback using WorkerContext.
        * bindings/v8/ScheduledAction.h:
        (WebCore::ScheduledAction::ScheduledAction): added url parameter to capture the worker's location.
        * bindings/v8/custom/V8WorkerContextCustom.cpp:
        (WebCore::SetTimeoutOrInterval): replaced NotImplemented with code to create ScheduledAction and DOMTimer.
        Also, removed declarations for clearTimeout/clearInterval callbacks since they are now directly generated from IDL.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44160 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-05-26  Zoltan Horvath  <horvath.zoltan.6@stud.u-szeged.hu>

        Reviewed by Maciej Stachowiak.

        Inherite HashTable from FastAllocBase, because it has been instantiated by
        'new' in JavaScriptCore/runtime/JSGlobalData.cpp.

        * wtf/HashTable.h:
        * wtf/FastAllocBase.h: Remove 'wtf' path from TypeTraits.h to allow use outside of wtf.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44161 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-05-26  Jian Li  <jianli@chromium.org>

        Reviewed by Dimitri Glazkov.

        https://bugs.webkit.org/show_bug.cgi?id=25944
        Remove the uses of V8 Locker in worker execution code. No additional test is needed.
        The normal WebKit layout tests should cover it. However, layout tests that start
        multiple workers will fail to pass due to test shell limitation in Chromium. To cover
        this, UI tests will be added (http://code.google.com/p/chromium/issues/detail?id=12554).

        * bindings/v8/V8WorkerContextEventListener.cpp:
        (WebCore::V8WorkerContextEventListener::handleEvent):
        * bindings/v8/WorkerContextExecutionProxy.cpp:
        (WebCore::WorkerContextExecutionProxy::dispose):
        (WebCore::WorkerContextExecutionProxy::initV8IfNeeded):
        (WebCore::WorkerContextExecutionProxy::evaluate):
        (WebCore::WorkerContextExecutionProxy::findOrCreateEventListenerHelper):
        (WebCore::WorkerContextExecutionProxy::RemoveEventListener):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44162 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-05-26  Brent Fulgham  <bfulgham@webkit.org>

        Build fix to correct r44161.

        * wtf/FastAllocBase.h:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44163 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by Darin Adler.

        - fix <rdar://problem/6922371> REGRESSION (r43973): Can't type first
          character with an umlaut, circumflex, or accent in Mail or in a wiki

        * WebView/WebHTMLView.mm:
        (isTextInput): Moved here.
        (isInPasswordField): Moved here.
        (-[WebHTMLView becomeFirstResponder]): Update the exposeInputContext
        flag and let NSApplication update the input manager with the new input
        context if necessary.
        (-[WebHTMLView _updateSelectionForInputManager]): Changed to use the
        NSApp global instead of +[NSApplication sharedApplication].



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44164 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Versioning.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44166 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-05-26  Peter Kasting  <pkasting@google.com>

        Reviewed by Eric Seidel.

        https://bugs.webkit.org/show_bug.cgi?id=25709 part two
        Mostly cosmetic changes, mainly to get image decoders for Cairo build to
        comply with WebKit style guidelines:
        * Fix header guard names
        * Fix initializer list wrapping
        * Fix class/function "{" wrapping
        * Fix wrapping of long boolean expressions
        * Fix whitespace around operators
        * Eliminate whitespace on otherwise-blank lines
        * No {} on single-line conditional arms
        * Use 0 instead of NULL
        * Don't #include "config.h" in headers

        Also a few non-cosmetic changes:
        * Remove unneeded #ifdef protecting the contents of these files.  The
          platforms listed don't match who uses these files anymore (even
          without considering Skia), and platforms which don't use them at all
          (like CG) aren't harmed by the files, since they don't have
          equivalently-named classes.  It's simpler to just ditch these.
        * Convert a use of Vector<>& into SharedBuffer*, since that's how the
          data is really stored anyway.
        * Use size() instead of m_size, for consistency with Skia code, and
          future-proofing (if a particular decoder wants to specialize this).
        * Move an ASSERT that was slightly more aggressive than necessary.
        * Change variable names/types for clarity/accuracy and to match Skia.
        * Remove unnecessary macro magic to work around a problem which no
          longer exists in the third-party JPEG headers.
        * Stop silencing a portability warning about setjmp (the vcproj/vsprops
          are the right place for this)
        * In Skia code, don't explicitly check |m_failed| before calling
          isSizeAvailable(), which itself checks |m_failed|.

        * platform/image-decoders/ImageDecoder.h: Fix header guards, "{" wrapping.
        (WebCore::RGBA32Buffer::):
        (WebCore::RGBA32Buffer::RGBA32Buffer): Fix initializer list wrapping.
        (WebCore::ImageDecoder::ImageDecoder): Fix initializer list wrapping.
        * platform/image-decoders/bmp/BMPImageDecoder.cpp: Remove unneeded #ifdef.
        * platform/image-decoders/bmp/BMPImageDecoder.h: Fix header guards, "{" wrapping.
        * platform/image-decoders/gif/GIFImageDecoder.cpp: Remove unneeded #ifdef, fix "{" wrapping.
        (WebCore::GIFImageDecoderPrivate::GIFImageDecoderPrivate): Use an initializer instead of a block-level statement.
        (WebCore::GIFImageDecoderPrivate::decode): Expect a SharedBuffer.
        (WebCore::GIFImageDecoderPrivate::getColorMap):
        (WebCore::GIFImageDecoder::GIFImageDecoder): Fix initializer list wrapping.
        (WebCore::GIFImageDecoder::frameCount): Add comment.
        (WebCore::GIFImageDecoder::frameBufferAtIndex): Explicitly cast, fix whitespace around operators.
        (WebCore::GIFImageDecoder::decode): Pass a SharedBuffer.
        (WebCore::GIFImageDecoder::initFrameBuffer): Use size() instead of m_size, move ASSERT, fix boolean wrapping, fix indenting.
        (WebCore::GIFImageDecoder::prepEmptyFrameBuffer): Use size() instead of m_size.
        (WebCore::GIFImageDecoder::haveDecodedRow): Use size() instead of m_size, eliminate unneeded whitespace, change variable name.
        (WebCore::GIFImageDecoder::frameComplete): Use size() instead of m_size, no {} on single-line conditional arms, fix boolean wrapping.
        * platform/image-decoders/gif/GIFImageDecoder.h: Fix header guards, "{" wrapping.
        * platform/image-decoders/gif/GIFImageReader.cpp: Remove unneeded #ifdef.
        (GIFImageReader::read):
        * platform/image-decoders/gif/GIFImageReader.h: Fix header guards, change variable type.
        * platform/image-decoders/ico/ICOImageDecoder.cpp: Remove unneeded #ifdef.
        * platform/image-decoders/ico/ICOImageDecoder.h: Fix header guards, "{" wrapping.
        * platform/image-decoders/jpeg/JPEGImageDecoder.cpp: Remove unneeded #ifdef, macro magic, silencing of warning.
        (WebCore::JPEGImageDecoder::outputScanlines): Use size() instead of m_size, change variable name.
        * platform/image-decoders/jpeg/JPEGImageDecoder.h: Fix header guards, "{" wrapping.
        * platform/image-decoders/png/PNGImageDecoder.cpp: Remove unneeded #ifdef, silencing of warning, change variable type.
        (WebCore::PNGImageReader::PNGImageReader): Fix initializer list wrapping.
        (WebCore::PNGImageReader::close): Add comment, zero another member for consistency.
        (WebCore::PNGImageDecoder::PNGImageDecoder): Fix indenting.
        (WebCore::PNGImageDecoder::decodingFailed): Define in .cpp, not .h.
        (WebCore::PNGImageDecoder::rowAvailable):
        * platform/image-decoders/png/PNGImageDecoder.h: Fix header guards, "{" wrapping.
        * platform/image-decoders/skia/GIFImageDecoder.cpp:
        (WebCore::GIFImageDecoder::isSizeAvailable): Don't check m_failed unnecessarily.
        (WebCore::GIFImageDecoder::frameBufferAtIndex): Fix whitespace around operators.
        * platform/image-decoders/skia/GIFImageReader.h: "unsigned" is sufficient to convey "unsigned int".
        * platform/image-decoders/skia/ImageDecoder.h: Remove unnecessary #includes.
        (WebCore::ImageDecoder::ImageDecoder): Fix initializer list wrapping.
        * platform/image-decoders/skia/JPEGImageDecoder.cpp:
        (WebCore::JPEGImageReader::JPEGImageReader): Use 0 instead of NULL.
        (WebCore::JPEGImageDecoder::isSizeAvailable): Don't check m_failed unnecessarily.
        * platform/image-decoders/skia/PNGImageDecoder.cpp:
        (WebCore::PNGImageReader::PNGImageReader): Fix initializer list wrapping.
        (WebCore::PNGImageDecoder::PNGImageDecoder): Fix indenting.
        (WebCore::PNGImageDecoder::isSizeAvailable): Don't check m_failed unnecessarily.
        (WebCore::rowAvailable):
        * platform/image-decoders/skia/XBMImageDecoder.h: Don't #include config.h.
        * platform/image-decoders/xbm/XBMImageDecoder.cpp: Remove unneeded #ifdef.
        * platform/image-decoders/xbm/XBMImageDecoder.h: Fix header guards, "{" wrapping.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2009-05-26  Olivier DOLE  <odole@pleyo.com>

        Reviewed by Maciej.

        Store sunspider test suite results in a specific directory for each
        different type of benchmark (sunspider, V8 or ubench).

        * sunspider:
        * sunspider-compare-results:



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