WebKit-https.git
8 years agoCopy over new WebKit 2 header.
jhoneycutt@apple.com [Wed, 16 Feb 2011 03:08:56 +0000 (03:08 +0000)]
Copy over new WebKit 2 header.

Rubber-stamped by Alice Liu.

* win/WebKit2Generated.make:

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

8 years agoSkipped crashing test on Windows.
sfalken@apple.com [Wed, 16 Feb 2011 03:03:52 +0000 (03:03 +0000)]
Skipped crashing test on Windows.
Tracked by https://bugs.webkit.org/show_bug.cgi?id=54519

* platform/win/Skipped: Skip fast/xmlhttprequest/xmlhttprequest-responsetype-arraybuffer.html

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

8 years ago2011-02-15 Chris Rogers <crogers@google.com>
crogers@google.com [Wed, 16 Feb 2011 02:12:53 +0000 (02:12 +0000)]
2011-02-15  Chris Rogers  <crogers@google.com>

        Reviewed by Kenneth Russell.

        Fix race condition in JavaScriptAudioNode
        https://bugs.webkit.org/show_bug.cgi?id=54518

        No new tests since audio API is not yet implemented.

        * webaudio/JavaScriptAudioNode.cpp:
        (WebCore::JavaScriptAudioNode::process):

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

8 years agoUnreviewed, Chromium test expectations update.
pkasting@chromium.org [Wed, 16 Feb 2011 01:56:45 +0000 (01:56 +0000)]
Unreviewed, Chromium test expectations update.

Remove line with dupe expectations.

* platform/chromium/test_expectations.txt:

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

8 years ago2011-02-15 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Wed, 16 Feb 2011 01:55:02 +0000 (01:55 +0000)]
2011-02-15  Anders Carlsson  <andersca@apple.com>

        Reviewed by Darin Adler.

        Implement WKPluginSiteDataManagerClearSiteData
        https://bugs.webkit.org/show_bug.cgi?id=54512
        <rdar://problem/8689312>

        * UIProcess/API/C/WKPluginSiteDataManager.cpp:
        (WKPluginSiteDataManagerGetTypeID):
        Implement this.

        (toNPClearSiteDataFlags):
        Convert WKClearSiteDataFlags to NPP_ClearSiteData flags.

        (WKPluginSiteDataManagerClearSiteData):
        (WKPluginSiteDataManagerClearAllSiteData):
        Call through to WebPluginSiteDataManager::clearSiteData.

        * UIProcess/API/C/WKPluginSiteDataManager.h:
        Change the clear functions to take a completion callback.

        * UIProcess/Plugins/WebPluginSiteDataManager.cpp:
        (WebKit::WebPluginSiteDataManager::clearSiteData):
        Ask the plug-in info store for all plug-in paths and send a
        ClearPluginSiteData message to the web process.

        (WebKit::WebPluginSiteDataManager::didClearSiteData):
        call the callback.

        * UIProcess/WebContext.cpp:
        (WebKit::WebContext::didClearPluginSiteData):
        Call through to the plug-in site data manager.

        * UIProcess/WebContext.messages.in:
        Add ClearPluginSiteData message.

        * WebProcess/WebProcess.cpp:
        (WebKit::WebProcess::clearPluginSiteData):
        Iterate over all the plug-in paths, creating plug-in modules and calling
        clearSiteData for each one.

        * WebProcess/WebProcess.h:
        * WebProcess/WebProcess.messages.in:
        Add DidClearPluginSiteData message.

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

8 years ago2011-02-15 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Wed, 16 Feb 2011 01:37:10 +0000 (01:37 +0000)]
2011-02-15  Mihai Parparita  <mihaip@chromium.org>

        Unreviewed chromium-gpu-linux rebaseline of
        compositing/geometry/vertical-scroll-composited.html.

        * platform/chromium-gpu-linux/compositing/geometry/vertical-scroll-composited-expected.checksum:
        * platform/chromium-gpu-linux/compositing/geometry/vertical-scroll-composited-expected.png:

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

8 years agoUnreviewed, Chromium test expectations update.
pkasting@chromium.org [Wed, 16 Feb 2011 01:36:09 +0000 (01:36 +0000)]
Unreviewed, Chromium test expectations update.

* platform/chromium/test_expectations.txt:

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

8 years ago2011-02-10 Jeremy Orlow <jorlow@chromium.org>
jorlow@chromium.org [Wed, 16 Feb 2011 01:24:00 +0000 (01:24 +0000)]
2011-02-10  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Nate Chapin.

        Throwing in an IndexedDB error or success event should lead to the transaction aborting
        https://bugs.webkit.org/show_bug.cgi?id=54249

        * storage/indexeddb/exception-in-event-aborts-expected.txt: Added.
        * storage/indexeddb/exception-in-event-aborts.html: Added.
            tests new feature
        * storage/indexeddb/queued-commands-expected.txt:
        * storage/indexeddb/queued-commands.html:
            cleaned up (while debuggign something else)
        * storage/indexeddb/request-event-propagation-expected.txt:
        * storage/indexeddb/request-event-propagation.html:
            a few additional tests + cleanup
        * storage/indexeddb/transaction-event-propagation-expected.txt:
        * storage/indexeddb/transaction-event-propagation.html:
            a few additional tests + cleanup
2011-02-10  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Nate Chapin.

        Throwing in an IndexedDB error or success event should lead to the transaction aborting
        https://bugs.webkit.org/show_bug.cgi?id=54249

        When an exception is thrown but not handled  within an IDBRequests success/error event,
        we should abort the transaction.

        Test: storage/indexeddb/exception-in-event-aborts.html

        * bindings/js/JSEventListener.cpp:
        (WebCore::JSEventListener::handleEvent):
        * bindings/js/JSEventTarget.cpp:
        (WebCore::toJS):
        * bindings/v8/V8AbstractEventListener.cpp:
        (WebCore::V8AbstractEventListener::invokeEventHandler):
        * dom/EventTarget.cpp:
        (WebCore::EventTarget::uncaughtExceptionInEventHandler):
        * dom/EventTarget.h:
        * storage/IDBRequest.cpp:
        (WebCore::IDBRequest::uncaughtExceptionInEventHandler):
        * storage/IDBRequest.h:

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

8 years agoWindows build fix for
jhoneycutt@apple.com [Wed, 16 Feb 2011 01:22:01 +0000 (01:22 +0000)]
Windows build fix for
https://bugs.webkit.org/show_bug.cgi?id=54415

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
Remove deleted files.

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

8 years ago2011-02-15 Ian Henderson <ianh@apple.com>
commit-queue@webkit.org [Wed, 16 Feb 2011 01:15:20 +0000 (01:15 +0000)]
2011-02-15  Ian Henderson  <ianh@apple.com>

        Reviewed by Darin Adler.

        To determine image properties, CG allocates memory which isn't included in CachedImage's decoded size
        https://bugs.webkit.org/show_bug.cgi?id=53281

        When determining properties of an image (such as its size), CG ends up
        decoding part of the image.  This patch adds accounting for this extra
        decoded size so a cache prune can clean up the allocations.

        * platform/graphics/BitmapImage.cpp:
        (WebCore::BitmapImage::BitmapImage):
        (WebCore::BitmapImage::destroyMetadataAndNotify):
        Clearing the source destroys the extra decoded data.  Report this
        change in decoded size to the image observer.
        (WebCore::BitmapImage::cacheFrame):
        The first decoded frame subsumes the data decoded when determining
        image properties, so we subtract it out here.
        (WebCore::BitmapImage::didDecodeProperties):
        Reports the extra decoded size to the image's observer.
        (WebCore::BitmapImage::size):
        (WebCore::BitmapImage::currentFrameSize):
        (WebCore::BitmapImage::getHotSpot):
        (WebCore::BitmapImage::frameCount):
        (WebCore::BitmapImage::isSizeAvailable):
        (WebCore::BitmapImage::repetitionCount):
        * platform/graphics/BitmapImage.h:
        * platform/graphics/ImageSource.cpp:
        (WebCore::ImageSource::bytesDecodedToDetermineProperties):
        The default value is 0 to match the current behavior on other
        platforms.
        * platform/graphics/ImageSource.h:
        * platform/graphics/cg/ImageSourceCG.cpp:
        (WebCore::ImageSource::bytesDecodedToDetermineProperties):
        Add a constant value for bytesDecodedToDetermineProperties(), measured
        by tracing malloc/calloc calls while asking an image source for its
        properties.

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

8 years agoWindows-specific results for tests added in r78396.
sfalken@apple.com [Wed, 16 Feb 2011 01:11:49 +0000 (01:11 +0000)]
Windows-specific results for tests added in r78396.
https://bugs.webkit.org/show_bug.cgi?id=54506

* platform/win/fast/inline: Added.
* platform/win/fast/inline/inline-box-background-expected.txt: Added.
* platform/win/fast/inline/inline-box-background-long-image-expected.txt: Added.
* platform/win/fast/inline/inline-box-background-repeat-x-expected.txt: Added.
* platform/win/fast/inline/inline-box-background-repeat-y-expected.txt: Added.

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

8 years ago2011-02-15 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Wed, 16 Feb 2011 00:58:25 +0000 (00:58 +0000)]
2011-02-15  Mihai Parparita  <mihaip@chromium.org>

        Unreviewed chromium-gpu rebaseline. Rebaseline tests that were unskipped
        after r78619 as well as some lingering Mac rebaselines.

        * platform/chromium-gpu-linux/compositing/color-matching/image-color-matching-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/color-matching/image-color-matching-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/color-matching/image-color-matching-expected.txt: Added.
        * platform/chromium-gpu-linux/compositing/geometry/abs-position-inside-opacity-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/geometry/abs-position-inside-opacity-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/geometry/abs-position-inside-opacity-expected.txt: Added.
        * platform/chromium-gpu-linux/compositing/masks/direct-image-mask-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/masks/direct-image-mask-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/masks/direct-image-mask-expected.txt: Added.
        * platform/chromium-gpu-linux/compositing/overflow/ancestor-overflow-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/overflow/ancestor-overflow-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/overflow/ancestor-overflow-expected.txt: Added.
        * platform/chromium-gpu-linux/compositing/repaint/composited-document-element-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/repaint/composited-document-element-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/repaint/composited-document-element-expected.txt: Added.
        * platform/chromium-gpu-linux/compositing/shadows/shadow-drawing-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/shadows/shadow-drawing-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/shadows/shadow-drawing-expected.txt: Added.
        * platform/chromium-gpu-mac/compositing/color-matching/image-color-matching-expected.checksum: Added.
        * platform/chromium-gpu-mac/compositing/color-matching/image-color-matching-expected.png: Added.
        * platform/chromium-gpu-mac/compositing/geometry/abs-position-inside-opacity-expected.checksum: Added.
        * platform/chromium-gpu-mac/compositing/geometry/abs-position-inside-opacity-expected.png: Added.
        * platform/chromium-gpu-mac/compositing/masks/direct-image-mask-expected.checksum: Added.
        * platform/chromium-gpu-mac/compositing/masks/direct-image-mask-expected.png: Added.
        * platform/chromium-gpu-mac/compositing/overflow/overflow-scroll-expected.checksum: Added.
        * platform/chromium-gpu-mac/compositing/overflow/overflow-scroll-expected.png: Added.
        * platform/chromium-gpu-mac/compositing/repaint/composited-document-element-expected.checksum: Added.
        * platform/chromium-gpu-mac/compositing/repaint/composited-document-element-expected.png: Added.
        * platform/chromium-gpu-mac/compositing/repaint/opacity-between-absolute2-expected.checksum: Added.
        * platform/chromium-gpu-mac/compositing/repaint/opacity-between-absolute2-expected.png: Added.
        * platform/chromium-gpu-mac/compositing/shadows/shadow-drawing-expected.checksum: Added.
        * platform/chromium-gpu-mac/compositing/shadows/shadow-drawing-expected.png: Added.
        * platform/chromium-gpu-mac/compositing/text-on-large-layer-expected.checksum: Added.
        * platform/chromium-gpu-mac/compositing/text-on-large-layer-expected.png: Added.
        * platform/chromium-gpu-mac/compositing/tiling/constrained-layer-size-expected.checksum: Added.
        * platform/chromium-gpu-mac/compositing/tiling/constrained-layer-size-expected.png: Added.
        * platform/chromium-gpu-mac/compositing/transitions/scale-transition-no-start-expected.checksum: Added.
        * platform/chromium-gpu-mac/compositing/transitions/scale-transition-no-start-expected.png: Added.
        * platform/chromium-gpu-mac/compositing/z-order/negative-z-index-expected.checksum: Added.
        * platform/chromium-gpu-mac/compositing/z-order/negative-z-index-expected.png: Added.
        * platform/chromium-gpu-win/compositing/color-matching/image-color-matching-expected.checksum: Added.
        * platform/chromium-gpu-win/compositing/color-matching/image-color-matching-expected.png: Added.
        * platform/chromium-gpu-win/compositing/color-matching/image-color-matching-expected.txt: Added.
        * platform/chromium-gpu-win/compositing/geometry/abs-position-inside-opacity-expected.checksum: Added.
        * platform/chromium-gpu-win/compositing/geometry/abs-position-inside-opacity-expected.png: Added.
        * platform/chromium-gpu-win/compositing/geometry/abs-position-inside-opacity-expected.txt: Added.
        * platform/chromium-gpu-win/compositing/masks/direct-image-mask-expected.checksum: Added.
        * platform/chromium-gpu-win/compositing/masks/direct-image-mask-expected.png: Added.
        * platform/chromium-gpu-win/compositing/masks/direct-image-mask-expected.txt: Added.
        * platform/chromium-gpu-win/compositing/overflow/ancestor-overflow-expected.checksum: Added.
        * platform/chromium-gpu-win/compositing/overflow/ancestor-overflow-expected.png: Added.
        * platform/chromium-gpu-win/compositing/overflow/ancestor-overflow-expected.txt: Added.
        * platform/chromium-gpu-win/compositing/repaint/composited-document-element-expected.checksum: Added.
        * platform/chromium-gpu-win/compositing/repaint/composited-document-element-expected.png: Added.
        * platform/chromium-gpu-win/compositing/repaint/composited-document-element-expected.txt: Added.
        * platform/chromium-gpu-win/compositing/shadows/shadow-drawing-expected.checksum: Added.
        * platform/chromium-gpu-win/compositing/shadows/shadow-drawing-expected.png: Added.
        * platform/chromium-gpu-win/compositing/shadows/shadow-drawing-expected.txt: Added.
        * platform/chromium-gpu-win/compositing/tiling/constrained-layer-size-expected.checksum: Added.
        * platform/chromium-gpu-win/compositing/tiling/constrained-layer-size-expected.png: Added.
        * platform/chromium-gpu-win/compositing/z-order/negative-z-index-expected.checksum: Added.
        * platform/chromium-gpu-win/compositing/z-order/negative-z-index-expected.png: Added.
        * platform/chromium/test_expectations.txt:

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

8 years ago2011-02-15 James Robinson <jamesr@chromium.org>
jamesr@google.com [Wed, 16 Feb 2011 00:53:36 +0000 (00:53 +0000)]
2011-02-15  James Robinson  <jamesr@chromium.org>

        Reviewed by Alexey Proskuryakov.

        requestAnimationFrame callbacks should not fire within a modal dialog
        https://bugs.webkit.org/show_bug.cgi?id=53188

        Tests that requestAnimationFrame callbacks are suspended while a modal
        dialog is showing.

        * fast/animation/request-animation-frame-during-modal-expected.txt: Added.
        * fast/animation/request-animation-frame-during-modal.html: Added.
2011-02-15  James Robinson  <jamesr@chromium.org>

        Reviewed by Alexey Proskuryakov.

        requestAnimationFrame callbacks should not fire within a modal dialog
        https://bugs.webkit.org/show_bug.cgi?id=53188

        requestAnimationFrame callbacks shouldn't fire while a modal dialog is up (like a window.alert()).
        This matches Firefox and other async APIs.  This patch moves the callback servicing into its own
        controller class which receives notifications on suspend/resume.

        Test: fast/animation/request-animation-frame-during-modal.html

        * WebCore.gypi:
        * bindings/js/ScriptDebugServer.cpp:
        (WebCore::ScriptDebugServer::setJavaScriptPaused):
        * dom/Document.cpp:
        (WebCore::Document::Document):
        (WebCore::Document::suspendScriptedAnimationControllerCallbacks):
        (WebCore::Document::resumeScriptedAnimationControllerCallbacks):
        (WebCore::Document::webkitRequestAnimationFrame):
        (WebCore::Document::webkitCancelRequestAnimationFrame):
        (WebCore::Document::serviceScriptedAnimations):
        * dom/Document.h:
        * dom/ScriptExecutionContext.h:
        (WebCore::ScriptExecutionContext::suspendScriptedAnimationControllerCallbacks):
        (WebCore::ScriptExecutionContext::resumeScriptedAnimationControllerCallbacks):
        * dom/ScriptedAnimationController.cpp: Added.
        (WebCore::ScriptedAnimationController::ScriptedAnimationController):
        (WebCore::ScriptedAnimationController::suspend):
        (WebCore::ScriptedAnimationController::resume):
        (WebCore::ScriptedAnimationController::registerCallback):
        (WebCore::ScriptedAnimationController::cancelCallback):
        (WebCore::ScriptedAnimationController::serviceScriptedAnimations):
        * dom/ScriptedAnimationController.h: Added.
        (WebCore::ScriptedAnimationController::create):
        * history/CachedFrame.cpp:
        (WebCore::CachedFrameBase::restore):
        (WebCore::CachedFrame::CachedFrame):
        * page/PageGroupLoadDeferrer.cpp:
        (WebCore::PageGroupLoadDeferrer::PageGroupLoadDeferrer):
        (WebCore::PageGroupLoadDeferrer::~PageGroupLoadDeferrer):

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

8 years ago2011-02-15 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Wed, 16 Feb 2011 00:49:26 +0000 (00:49 +0000)]
2011-02-15  Anders Carlsson  <andersca@apple.com>

        Reviewed by Jon Honeycutt.

        Implement WKPluginSiteDataManagerGetSitesWithData
        https://bugs.webkit.org/show_bug.cgi?id=54510
        <rdar://problem/8689312>

        * UIProcess/API/C/WKContext.cpp:
        (WKContextGetPluginSiteDataManager):
        Call WebContext::pluginSiteDataManager.

        * UIProcess/API/C/WKPluginSiteDataManager.cpp:
        (WKPluginSiteDataManagerGetSitesWithData):
        Call WebPluginSiteDataManager::getSitesWithData.

        * UIProcess/Plugins/PluginInfoStore.cpp:
        (WebKit::PluginInfoStore::getPluginPaths):
        * UIProcess/Plugins/PluginInfoStore.h:
        Populate the paths argument with the paths of all plug-ins.

        * UIProcess/Plugins/WebPluginSiteDataManager.cpp: Added.
        (WebKit::WebPluginSiteDataManager::invalidate):
        Invalidate the callbacks map.

        (WebKit::WebPluginSiteDataManager::getSitesWithData):
        Ask the plug-in info store for all plug-in paths and send a
        GetSitesWithPluginData message to the web process.

        (WebKit::WebPluginSiteDataManager::didGetSitesWithPluginData):
        Call the callback.

        * UIProcess/Plugins/WebPluginSiteDataManager.h: Added.
        (WebKit::WebPluginSiteDataManager::clearContext):
        Clear the context.

        * UIProcess/WebContext.cpp:
        (WebKit::WebContext::WebContext):
        Initialize m_pluginSiteDataManager.

        (WebKit::WebContext::~WebContext):
        Invalidate the plug-in site data manager and clear its context.

        (WebKit::WebContext::processDidClose):
        Invalidate the plug-in site data manager.

        (WebKit::WebContext::didGetSitesWithPluginData):
        Call through to the plug-in site data manager.

        * UIProcess/WebContext.h:
        * UIProcess/WebContext.messages.in:
        Add GetSitesWithPluginData message.

        * WebKit2.pro:
        * WebKit2.xcodeproj/project.pbxproj:
        * win/WebKit2.vcproj:
        Add new files.

        * WebProcess/WebProcess.cpp:
        (WebKit::WebProcess::getSitesWithPluginData):
        Iterate over all plug-in paths and get the sites from all plug-ins.

        * WebProcess/WebProcess.h:
        * WebProcess/WebProcess.messages.in:
        Add DidGetSitesWithPluginData.

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

8 years ago2011-02-15 Benjamin Kalman <kalman@chromium.org>
kalman@chromium.org [Wed, 16 Feb 2011 00:43:30 +0000 (00:43 +0000)]
2011-02-15  Benjamin Kalman  <kalman@chromium.org>

        Reviewed by Darin Adler.

        Clean up results for editing/selection/extend-selection-home-end layout test
        https://bugs.webkit.org/show_bug.cgi?id=54508

        Line up results in columns, remove unused pixel test results from qt.

        * editing/selection/extend-selection-home-end-expected.txt:
        * editing/selection/extend-selection-home-end.html:
        * platform/mac/editing/selection/extend-selection-home-end-expected.txt:
        * platform/qt/editing/selection/extend-selection-home-end-expected.checksum: Removed.
        * platform/qt/editing/selection/extend-selection-home-end-expected.png: Removed.
        * platform/win/editing/selection/extend-selection-home-end-expected.txt:

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

8 years ago2011-02-14 Jeremy Orlow <jorlow@chromium.org>
jorlow@chromium.org [Wed, 16 Feb 2011 00:38:03 +0000 (00:38 +0000)]
2011-02-14  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Darin Fisher.

        Add initial support for per-origin quotas to IndexedDB
        https://bugs.webkit.org/show_bug.cgi?id=54421

        Add support for non-persistent per-origin quotas. If one is
        specified, it overrides the default.

        No tests as this is only exposed via the Chromium webkit API.

        * storage/IDBFactoryBackendImpl.cpp:
        (WebCore::IDBFactoryBackendImpl::open):
        (WebCore::IDBFactoryBackendImpl::setQuota):
        * storage/IDBFactoryBackendImpl.h:
        * storage/IDBFactoryBackendInterface.h:
2011-02-14  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Darin Fisher.

        Add initial support for per-origin quotas to IndexedDB
        https://bugs.webkit.org/show_bug.cgi?id=54421

        * public/WebIDBFactory.h:
        (WebKit::WebIDBFactory::setQuota):
        * src/AssertMatchingEnums.cpp:
        * src/IDBFactoryBackendProxy.cpp:
        (WebCore::IDBFactoryBackendProxy::setQuota):
        * src/IDBFactoryBackendProxy.h:
        * src/WebIDBFactoryImpl.cpp:
        (WebKit::WebIDBFactoryImpl::setQuota):
        * src/WebIDBFactoryImpl.h:

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

8 years ago2011-02-15 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 16 Feb 2011 00:36:28 +0000 (00:36 +0000)]
2011-02-15  Adam Barth  <abarth@webkit.org>

        Reviewed by Darin Adler.

        XSLT with output method HTML and images crashes in debug mode
        https://bugs.webkit.org/show_bug.cgi?id=54462

        http://trac.webkit.org/changeset/75577 created Document::setContent but
        didn't notice that the code paths combined into Document::setContent
        were subtly different.  In particular, some of the code paths called
        parser->finish() whereas other did not.

        The difference is that an explicit call to parser->finish() is required
        in the case where there is no frame because explicitClose doesn't call
        endIfNotLoadingMainResource if there is no frame.  This patch moves
        that logic inside explicitClose, which is more natural.

        This patch also removes removeAllChildren, which has not effect in this
        situation and should never have been added in the first place.

        Test: fast/parser/xslt-with-html.xml

        * dom/Document.cpp:
        (WebCore::Document::setContent):
        (WebCore::Document::explicitClose):
2011-02-15  Adam Barth  <abarth@webkit.org>

        Reviewed by Darin Adler.

        XSLT with output method HTML and images crashes in debug mode
        https://bugs.webkit.org/show_bug.cgi?id=54462

        Test that we don't try to prepare to stop twice when pasing HTML
        generated from an XSLT.

        * fast/parser/resources/xslt-with-html.xsl: Added.
        * fast/parser/xslt-with-html-expected.txt: Added.
        * fast/parser/xslt-with-html.xml: Added.

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

8 years ago2011-02-15 Kenneth Russell <kbr@google.com>
kbr@google.com [Wed, 16 Feb 2011 00:36:14 +0000 (00:36 +0000)]
2011-02-15  Kenneth Russell  <kbr@google.com>

        Unreviewed. Remove whitespace-only change from
        http://trac.webkit.org/changeset/78620 (https://bugs.webkit.org/show_bug.cgi?id=54312)
        now that the patch has passed the Windows build bots.

        * Interfaces/WebKit.idl:

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

8 years ago2011-02-15 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Wed, 16 Feb 2011 00:32:37 +0000 (00:32 +0000)]
2011-02-15  Martin Robinson  <mrobinson@igalia.com>

        Rebaseline some GTK+ tests which have different results on the bots.
        Skip a test which appears to be timing out intermittently.

        * platform/gtk/Skipped: Skip a test which has been timing out.
        * platform/gtk/svg/custom/use-nested-transform-expected.txt:
        * platform/gtk/svg/hixie/perf/001-expected.txt:
        * platform/gtk/svg/hixie/perf/002-expected.txt:
        * platform/gtk/svg/hixie/perf/007-expected.txt:

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

8 years agoAutocorrection should respect undo.
darin@apple.com [Wed, 16 Feb 2011 00:23:40 +0000 (00:23 +0000)]
Autocorrection should respect undo.
https://bugs.webkit.org/show_bug.cgi?id=52221
<rdar://problem/8663399>

Patch by Jia Pu <jpu@apple.com> on 2011-02-15
Reviewed by Darin Adler.

Rebaselined tests affected by code change.

* platform/mac/editing/spelling/autocorrection-contraction-expected.txt:
* platform/mac/editing/spelling/autocorrection-delete-expected.txt:
* platform/mac/editing/spelling/autocorrection-removing-underline-after-paste-expected.txt:
* platform/mac/editing/spelling/autocorrection-removing-underline-expected.txt:
* platform/mac/editing/spelling/autocorrection-simple-expected.txt:
* platform/mac/editing/spelling/delete-autocorrected-word-1-expected.txt:

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

8 years agoFix Qt build.
andersca@apple.com [Wed, 16 Feb 2011 00:18:17 +0000 (00:18 +0000)]
Fix Qt build.

* WebKit2.pro:

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

8 years ago2011-02-15 Oliver Hunt <oliver@apple.com>
oliver@apple.com [Wed, 16 Feb 2011 00:11:47 +0000 (00:11 +0000)]
2011-02-15  Oliver Hunt  <oliver@apple.com>

        Fix EFL build for
        https://bugs.webkit.org/show_bug.cgi?id=54415

        * CMakeLists.txt:

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

8 years agoFix Windows build.
andersca@apple.com [Wed, 16 Feb 2011 00:10:46 +0000 (00:10 +0000)]
Fix Windows build.

* win/WebKit2.vcproj:

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

8 years ago2011-02-15 Oliver Hunt <oliver@apple.com>
oliver@apple.com [Wed, 16 Feb 2011 00:04:00 +0000 (00:04 +0000)]
2011-02-15  Oliver Hunt  <oliver@apple.com>

        Fix EFL build for
        https://bugs.webkit.org/show_bug.cgi?id=54415

        * CMakeLists.txt:

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

8 years ago<http://webkit.org/b/54487> Minor header clean up in RenderLayerBacking.cpp
ddkilzer@apple.com [Tue, 15 Feb 2011 23:59:07 +0000 (23:59 +0000)]
<webkit.org/b/54487> Minor header clean up in RenderLayerBacking.cpp

Reviewed by Darin Adler.

* rendering/RenderLayerBacking.cpp: Remove unused
WebGLRenderingContext.h header, and move GraphicsContext3D.h
into a #if ENABLE(WEBGL) || ENABLE(ACCELERATED_2D_CANVAS)/#endif
block.

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

8 years agoUnreviewed, Chromium test expectations update.
pkasting@chromium.org [Tue, 15 Feb 2011 23:55:00 +0000 (23:55 +0000)]
Unreviewed, Chromium test expectations update.

https://bugs.webkit.org/show_bug.cgi?id=40147
https://bugs.webkit.org/show_bug.cgi?id=48029
https://bugs.webkit.org/show_bug.cgi?id=53740
https://bugs.webkit.org/show_bug.cgi?id=54387
https://bugs.webkit.org/show_bug.cgi?id=54418
https://bugs.webkit.org/show_bug.cgi?id=54499
Remove a couple erroneously-added baselines, unmark some now-passing
tests, bug numbers, etc.

* platform/chromium-linux/http/tests/xmlhttprequest: Removed.
* platform/chromium-linux/http/tests/xmlhttprequest/cache-override-expected.txt: Removed.
* platform/chromium-win/fast/gradients/css3-repeating-end-fill-expected.txt: Removed.
* platform/chromium/test_expectations.txt:

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

8 years ago2011-02-14 Oliver Hunt <oliver@apple.com>
oliver@apple.com [Tue, 15 Feb 2011 23:54:06 +0000 (23:54 +0000)]
2011-02-14  Oliver Hunt  <oliver@apple.com>

        Reviewed by Gavin Barraclough and Geoff Garen.

        Refactor handles and weak pointers to become nicer and more automatic
        https://bugs.webkit.org/show_bug.cgi?id=54415

        Move to a true handle based mechanism for GC value protection.  This
        also allows us to switch to a more sensible behaviour for weak pointers
        in which weak pointers are automatically updated.

        This allows us to remove the old (and convoluted) that required all
        objects that may be held by a weak reference to be aware of the reference
        and manually clear them in their destructors.

        This also adds a few new data types to JSC that we use to efficiently
        allocate and return the underlying handle storage.

        This patch is largely renaming and removing now unnecessary destructors
        from objects.

        * API/JSClassRef.cpp:
        (OpaqueJSClass::create):
        (OpaqueJSClassContextData::OpaqueJSClassContextData):
        (OpaqueJSClass::contextData):
        (OpaqueJSClass::prototype):
        * API/JSClassRef.h:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * JavaScriptCore.exp:
        * JavaScriptCore.gypi:
        * JavaScriptCore.pro:
        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreCommon.vsprops:
        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCoreGenerated.make:
        * JavaScriptCore.vcproj/WTF/WTF.vcproj:
        * JavaScriptCore.vcproj/jsc/jscCommon.vsprops:
        * JavaScriptCore.xcodeproj/project.pbxproj:
        * collector/handles/Global.h: Added.
            New Global handle type used to keep gc objects live, even if they're not
            marked.
        (JSC::Global::Global):
        (JSC::Global::~Global):
        (JSC::Global::set):
            We can only assign directly to a global from another global.
            In all other cases we need the JSGlobalData to be provided
            explicitly so we use a set function.
        (JSC::Global::operator=):
        (JSC::Global::clear):
        (JSC::Global::isHashTableDeletedValue):
        (JSC::Global::internalSet):
        * collector/handles/Handle.h: Added.
            Root "Handle" type used for immutable handles and to provide the basic
            APIs needed for pointer-like behaviour.
        (JSC::HandleBase::operator!):
        (JSC::HandleBase::operator UnspecifiedBoolType*):
        (JSC::HandleBase::isEmpty):
        (JSC::HandleBase::HandleBase):
        (JSC::HandleBase::slot):
        (JSC::HandleBase::invalidate):
        (JSC::HandleBase::setSlot):
        (JSC::HandleTypes::getFromSlot):
        (JSC::HandleTypes::toJSValue):
        (JSC::HandleTypes::validateUpcast):
        (JSC::HandleConverter::operator->):
        (JSC::HandleConverter::operator*):
        (JSC::Handle::Handle):
        (JSC::Handle::get):
        (JSC::Handle::wrapSlot):
        (JSC::operator==):
        (JSC::operator!=):
        * collector/handles/HandleHeap.cpp: Added.
            New heap for global handles.
        (JSC::HandleHeap::HandleHeap):
        (JSC::HandleHeap::grow):
        (JSC::HandleHeap::markStrongHandles):
        (JSC::HandleHeap::updateAfterMark):
        (JSC::HandleHeap::clearWeakPointers):
        (JSC::HandleHeap::writeBarrier):
        * collector/handles/HandleHeap.h: Added.
        (JSC::HandleHeap::heapFor):
        (JSC::HandleHeap::toHandle):
        (JSC::HandleHeap::toNode):
        (JSC::HandleHeap::allocate):
        (JSC::HandleHeap::deallocate):
        (JSC::HandleHeap::makeWeak):
            Convert a hard handle into weak handle that does not
            protect the object it points to.
        (JSC::HandleHeap::makeSelfDestroying):
            Converts a handle to a weak handle that will be returned
            to the free list when the referenced object dies.
        (JSC::HandleHeap::Node::Node):
        (JSC::HandleHeap::Node::slot):
        (JSC::HandleHeap::Node::handleHeap):
        (JSC::HandleHeap::Node::setFinalizer):
        (JSC::HandleHeap::Node::makeWeak):
        (JSC::HandleHeap::Node::isWeak):
        (JSC::HandleHeap::Node::makeSelfDestroying):
        (JSC::HandleHeap::Node::isSelfDestroying):
        (JSC::HandleHeap::Node::finalizer):
        (JSC::HandleHeap::Node::setPrev):
        (JSC::HandleHeap::Node::prev):
        (JSC::HandleHeap::Node::setNext):
        (JSC::HandleHeap::Node::next):
        * interpreter/Interpreter.cpp:
        (JSC::Interpreter::Interpreter):
        * interpreter/Interpreter.h:
        * interpreter/RegisterFile.cpp:
        (JSC::RegisterFile::globalObjectCollected):
        * interpreter/RegisterFile.h:
        (JSC::RegisterFile::RegisterFile):
        * runtime/GCHandle.cpp: Removed.
        * runtime/GCHandle.h: Removed.
        * runtime/Heap.cpp:
        (JSC::Heap::Heap):
        (JSC::Heap::destroy):
        (JSC::Heap::markRoots):
        * runtime/Heap.h:
        (JSC::Heap::allocateGlobalHandle):
        (JSC::Heap::reportExtraMemoryCost):
        * runtime/JSGlobalData.cpp:
        (JSC::JSGlobalData::JSGlobalData):
        * runtime/JSGlobalData.h:
        (JSC::JSGlobalData::allocateGlobalHandle):
        * runtime/JSGlobalObject.cpp:
        (JSC::JSGlobalObject::~JSGlobalObject):
        * runtime/JSPropertyNameIterator.cpp:
        (JSC::JSPropertyNameIterator::create):
        (JSC::JSPropertyNameIterator::~JSPropertyNameIterator):
        * runtime/JSPropertyNameIterator.h:
        (JSC::JSPropertyNameIterator::createStructure):
        (JSC::Structure::setEnumerationCache):
        (JSC::Structure::clearEnumerationCache):
        * runtime/Protect.h:
        * runtime/Structure.cpp:
        (JSC::Structure::~Structure):
        * runtime/Structure.h:
        * runtime/WeakGCPtr.h:
        (JSC::WeakGCPtrBase::get):
        (JSC::WeakGCPtrBase::clear):
        (JSC::WeakGCPtrBase::operator!):
        (JSC::WeakGCPtrBase::operator UnspecifiedBoolType*):
        (JSC::WeakGCPtrBase::~WeakGCPtrBase):
        (JSC::WeakGCPtrBase::WeakGCPtrBase):
        (JSC::WeakGCPtrBase::internalSet):
        (JSC::LazyWeakGCPtr::LazyWeakGCPtr):
        (JSC::LazyWeakGCPtr::set):
        (JSC::WeakGCPtr::WeakGCPtr):
        (JSC::WeakGCPtr::operator=):
        * runtime/WriteBarrier.h:
        * wtf/BlockStack.h: Added.
        (WTF::::BlockStack):
        (WTF::::~BlockStack):
        (WTF::::blocks):
        (WTF::::grow):
        (WTF::::shrink):
        * wtf/SentinelLinkedList.h: Added.
        (WTF::::SentinelLinkedList):
        (WTF::::begin):
        (WTF::::end):
        (WTF::::push):
        (WTF::::remove):
        * wtf/SinglyLinkedList.h: Added.
        (WTF::::SinglyLinkedList):
        (WTF::::isEmpty):
        (WTF::::push):
        (WTF::::pop):
2011-02-14  Oliver Hunt  <oliver@apple.com>

        Reviewed by Gavin Barraclough and Geoff Garen.

        Refactor handles and weak pointers to become nicer and more automatic
        https://bugs.webkit.org/show_bug.cgi?id=54415

        Update to use new Global<> type

        * JSRun.cpp:
        (JSRun::JSRun):
        (JSRun::GlobalObject):
        * JSRun.h:
        * JSValueWrapper.cpp:
        (JSValueWrapper::JSValueWrapper):
        * JSValueWrapper.h:
2011-02-14  Oliver Hunt  <oliver@apple.com>

        Reviewed by Gavin Barraclough and Geoff Garen.

        Refactor handles and weak pointers to become nicer and more automatic
        https://bugs.webkit.org/show_bug.cgi?id=54415

        Update WebCore to use the new Global<> type rather than ProtectedJSValue
        and gc[Un]Protect.  Also update to use new WeakGCPtr APIs, and remove now
        unnecessary destructors.

        * ForwardingHeaders/collector/handles/Global.h: Added.
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.vcproj/copyForwardingHeaders.cmd:
        * bindings/js/JSCallbackData.h:
        (WebCore::JSCallbackData::JSCallbackData):
        * bindings/js/JSCustomVoidCallback.h:
        * bindings/js/JSDOMBinding.cpp:
        (WebCore::forgetDOMNode):
        (WebCore::cacheDOMNodeWrapper):
        * bindings/js/JSDOMWindowBase.h:
        * bindings/js/JSDOMWindowShell.cpp:
        (WebCore::JSDOMWindowShell::setWindow):
        * bindings/js/JSDataGridDataSource.h:
        * bindings/js/JSEventListener.cpp:
        (WebCore::JSEventListener::JSEventListener):
        * bindings/js/JSEventListener.h:
        (WebCore::JSEventListener::setWrapper):
        * bindings/js/JSLazyEventListener.cpp:
        (WebCore::JSLazyEventListener::initializeJSFunction):
        * bindings/js/ScheduledAction.cpp:
        (WebCore::ScheduledAction::ScheduledAction):
        (WebCore::ScheduledAction::executeFunctionInContext):
        * bindings/js/ScheduledAction.h:
        (WebCore::ScheduledAction::ScheduledAction):
        * bindings/js/ScriptCachedFrameData.cpp:
        (WebCore::ScriptCachedFrameData::ScriptCachedFrameData):
        (WebCore::ScriptCachedFrameData::restore):
        * bindings/js/ScriptCachedFrameData.h:
        * bindings/js/ScriptCallStackFactory.cpp:
        (WebCore::createScriptArguments):
        * bindings/js/ScriptController.cpp:
        (WebCore::ScriptController::createWindowShell):
        (WebCore::ScriptController::evaluateInWorld):
        (WebCore::ScriptController::clearWindowShell):
        (WebCore::ScriptController::attachDebugger):
        * bindings/js/ScriptController.h:
        * bindings/js/ScriptFunctionCall.cpp:
        (WebCore::ScriptFunctionCall::call):
        (WebCore::ScriptCallback::call):
        * bindings/js/ScriptObject.cpp:
        (WebCore::ScriptObject::ScriptObject):
        * bindings/js/ScriptObject.h:
        * bindings/js/ScriptState.cpp:
        (WebCore::ScriptStateProtectedPtr::ScriptStateProtectedPtr):
        (WebCore::ScriptStateProtectedPtr::get):
        * bindings/js/ScriptState.h:
        * bindings/js/ScriptValue.cpp:
        (WebCore::ScriptValue::isFunction):
        (WebCore::ScriptValue::deserialize):
        * bindings/js/ScriptValue.h:
        (WebCore::ScriptValue::ScriptValue):
        (WebCore::ScriptValue::hasNoValue):
        * bindings/js/ScriptWrappable.h:
        (WebCore::ScriptWrappable::ScriptWrappable):
        (WebCore::ScriptWrappable::setWrapper):
        * bindings/js/WorkerScriptController.cpp:
        (WebCore::WorkerScriptController::WorkerScriptController):
        (WebCore::WorkerScriptController::~WorkerScriptController):
        (WebCore::WorkerScriptController::initScript):
        (WebCore::WorkerScriptController::evaluate):
        * bindings/js/WorkerScriptController.h:
        (WebCore::WorkerScriptController::workerContextWrapper):
        * bindings/scripts/CodeGeneratorJS.pm:
        * bridge/NP_jsobject.cpp:
        (_NPN_InvokeDefault):
        (_NPN_Invoke):
        (_NPN_Evaluate):
        (_NPN_Construct):
        * bridge/jsc/BridgeJSC.cpp:
        (JSC::Bindings::Instance::Instance):
        (JSC::Bindings::Instance::~Instance):
        (JSC::Bindings::Instance::willDestroyRuntimeObject):
        (JSC::Bindings::Instance::willInvalidateRuntimeObject):
        * bridge/jsc/BridgeJSC.h:
        * bridge/runtime_object.cpp:
        (JSC::Bindings::RuntimeObject::invalidate):
        * bridge/runtime_root.cpp:
        (JSC::Bindings::RootObject::RootObject):
        (JSC::Bindings::RootObject::invalidate):
        (JSC::Bindings::RootObject::globalObject):
        (JSC::Bindings::RootObject::updateGlobalObject):
        * bridge/runtime_root.h:
        * dom/EventListener.h:
        * dom/EventTarget.h:
        (WebCore::EventTarget::markJSEventListeners):
        * xml/XMLHttpRequest.cpp:

        Qt bindings courtesy of Csaba Osztrogonác
        * bridge/qt/qt_runtime.cpp:
        (JSC::Bindings::QtRuntimeConnectionMethod::call):
        (JSC::Bindings::QtConnectionObject::QtConnectionObject):
        (JSC::Bindings::QtConnectionObject::execute):
        (JSC::Bindings::QtConnectionObject::match):
        * bridge/qt/qt_runtime.h:
2011-02-14  Oliver Hunt  <oliver@apple.com>

        Reviewed by Gavin Barraclough and Geoff Garen.

        Refactor handles and weak pointers to become nicer and more automatic
        https://bugs.webkit.org/show_bug.cgi?id=54415

        Update to use Global<> instead of ProtectedPtr, and refactored slightly
        to get global data to places it's needed for when we're assigning to
        Global<>s

        * ForwardingHeaders/collector/handles/Global.h: Added.
        * Plugins/Hosted/NetscapePluginInstanceProxy.h:
        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::get):
        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::idForObject):
        (WebKit::NetscapePluginInstanceProxy::LocalObjectMap::forget):
        (WebKit::NetscapePluginInstanceProxy::getWindowNPObject):
        (WebKit::NetscapePluginInstanceProxy::getPluginElementNPObject):
        (WebKit::NetscapePluginInstanceProxy::evaluate):
        (WebKit::NetscapePluginInstanceProxy::invoke):
        (WebKit::NetscapePluginInstanceProxy::invokeDefault):
        (WebKit::NetscapePluginInstanceProxy::construct):
        (WebKit::NetscapePluginInstanceProxy::addValueToArray):
        * WebView/WebScriptDebugger.h:
        * WebView/WebScriptDebugger.mm:
        (WebScriptDebugger::WebScriptDebugger):
2011-02-14  Oliver Hunt  <oliver@apple.com>

        Reviewed by Gavin Barraclough and Geoff Garen.

        Refactor handles and weak pointers to become nicer and more automatic
        https://bugs.webkit.org/show_bug.cgi?id=54415

        Update code to new Global<> API, and refactor to get global data to
        necessary points.

        * WebProcess/Plugins/Netscape/NPJSObject.cpp:
        (WebKit::NPJSObject::create):
        (WebKit::NPJSObject::NPJSObject):
        (WebKit::NPJSObject::initialize):
        (WebKit::NPJSObject::invokeDefault):
        (WebKit::NPJSObject::construct):
        (WebKit::NPJSObject::invoke):
        * WebProcess/Plugins/Netscape/NPJSObject.h:
        * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
        (WebKit::NPRuntimeObjectMap::getOrCreateNPObject):
        (WebKit::NPRuntimeObjectMap::convertJSValueToNPVariant):
        (WebKit::NPRuntimeObjectMap::evaluate):
        * WebProcess/Plugins/Netscape/NPRuntimeObjectMap.h:
        * WebProcess/Plugins/PluginView.cpp:
        (WebKit::PluginView::windowScriptNPObject):
        (WebKit::PluginView::pluginElementNPObject):

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

8 years ago2011-02-15 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 15 Feb 2011 23:51:59 +0000 (23:51 +0000)]
2011-02-15  Anders Carlsson  <andersca@apple.com>

        Reviewed by Jon Honeycutt.

        Add stubbed out WKPluginSiteDataManagerRef API
        https://bugs.webkit.org/show_bug.cgi?id=54504

        * Shared/API/c/WKBase.h:
        * Shared/APIObject.h:
        * UIProcess/API/C/WKAPICast.h:
        * UIProcess/API/C/WKContext.cpp:
        (WKContextGetPluginSiteDataManager):
        * UIProcess/API/C/WKContext.h:
        * UIProcess/API/C/WKPluginSiteDataManager.cpp: Added.
        (WKPluginSiteDataManagerGetTypeID):
        (WKPluginSiteDataManagerGetSitesWithData):
        (WKPluginSiteDataManagerClearSiteData):
        (WKPluginSiteDataManagerClearAllSiteData):
        * UIProcess/API/C/WKPluginSiteDataManager.h: Added.
        * WebKit2.pro:
        * WebKit2.xcodeproj/project.pbxproj:
        * win/WebKit2.vcproj:

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

8 years ago2011-02-15 Jia Pu <jpu@apple.com>
darin@apple.com [Tue, 15 Feb 2011 23:44:13 +0000 (23:44 +0000)]
2011-02-15  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Autocorrection should respect undo.
        https://bugs.webkit.org/show_bug.cgi?id=52221
        <rdar://problem/8663399>

        Please see WebCore/ChangeLog for detailed description.

        * WebCoreSupport/WebEditorClient.cpp:
        (WebFrameImpl::replaceSelection): Adopted new signature of ReplaceSelectionCommand::create().
2011-02-15  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Autocorrection should respect undo.
        https://bugs.webkit.org/show_bug.cgi?id=52221
        <rdar://problem/8663399>

        Please see WebCore/ChangeLog for detailed description.

        * WebCoreSupport/WebEditorClient.h: Updated for the new function declared in EditorClient.

        * WebCoreSupport/WebEditorClient.mm:
        (WebEditorClient::recordAutocorrectionResponse): Ditto.

        * WebView/WebFrame.mm:
        (-[WebFrame _replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]):
             Adopted new signature of ReplaceSelectionCommand::create().
2011-02-15  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Autocorrection should respect undo.
        https://bugs.webkit.org/show_bug.cgi?id=52221
        <rdar://problem/8663399>

        Manual test: manual-tests/autocorrection/undo-autocorrection.html

        When user undoes an autocorrection, we need to do four things:
        1. Revert the change in text that has been made by correction.
        2. Revert the selection to pre-correction state so that user can immediately continue typing.
        3. Add appropriate markers to reverted text so that it won't be corrected again and/or shown
           as misspelled.
        4. If applicable, notify spell checking service to record this reversion.

        To achieve these, this patch introduces following changes:
        1. Created SpellingCorrectionCommand so that correction can be undone in similar way as any
           other editing command. SpellingCorrectionCommand is a composition of SetSelectionCommand,
           SpellingCorrectionRecordUndoCommand and ReplaceSelectionCommand.
        2. Created SetSelectionCommand so that undo command can restore selection state.
        3. Added member function recordAutocorrectionResponse() to editor client.

        To improve readability, this patch also consolidates various boolean arguments in SelectionController::setSelection()
        and ReplaceSelectionCommand::ReplaceSelectionCommand(). These boolean arguments have been
        replaced by enum variable.

        * WebCore.exp.in: Updated for changes in Editor and ReplaceSelectionCommand.

        * WebCore.xcodeproj/project.pbxproj: Updated for new source files.

        * editing/CompositeEditCommand.cpp:
        (WebCore::CompositeEditCommand::moveParagraphs): Adopted new signature of ReplaceSelectionCommand::create().

        * editing/Editor.cpp:
        (WebCore::Editor::replaceSelectionWithFragment): Ditto.
        (WebCore::Editor::unappliedEditing): Cleaned up trailing whitespace.
        (WebCore::Editor::reappliedEditing): Ditto.
        (WebCore::Editor::selectComposition): Adopted new signature of SelectionController::setSelection().
        (WebCore::Editor::confirmComposition): Ditto.
        (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges): Rearranged code to reduce the
            level of deeply nested if statement. Adopted SpellingCorrectionCommand.
        (WebCore::Editor::applyCorrectionPanelInfo): Adopted SpellingCorrectionCommand.
        (WebCore::Editor::unappliedSpellCorrection): Function for adding markers to reverted text and
            for notifiying editor client about undone correction.
        (WebCore::Editor::changeSelectionAfterCommand): Adopted new signature of SelectionController::setSelection().
        (WebCore::Editor::respondToChangedSelection): Use SelectionController::SetSelectionOptions
            instead of boolean variables.

        * editing/Editor.h: Added Editor::unappliedSpellCorrection().

        * editing/EditorCommand.cpp:
        (WebCore::executeInsertFragment): Adopted new signature of ReplaceSelectionCommand::create().

        * editing/MoveSelectionCommand.cpp:
        (WebCore::MoveSelectionCommand::doApply): Ditto.

        * editing/ReplaceSelectionCommand.cpp:
        (WebCore::ReplaceSelectionCommand::ReplaceSelectionCommand): Replaced all boolean arguments
            with an enum value.

        * editing/ReplaceSelectionCommand.h:
        (WebCore::ReplaceSelectionCommand::create): Ditto.

        * editing/SelectionController.cpp: Adopted new signature of SelectionController::setSelection().
        (WebCore::SelectionController::moveTo):
        (WebCore::SelectionController::setSelection):
        (WebCore::SelectionController::respondToNodeModification):
        (WebCore::SelectionController::setBase):
        (WebCore::SelectionController::setExtent):
        (WebCore::SelectionController::setSelectedRange):

        * editing/SelectionController.h:
        (WebCore::SelectionController::setSelection): Replaced all boolean arguments with an enum value.

        * editing/SetSelectionCommand.cpp: Added.
        (WebCore::SetSelectionCommand::SetSelectionCommand):
        (WebCore::SetSelectionCommand::doApply):
        (WebCore::SetSelectionCommand::doUnapply):

        * editing/SetSelectionCommand.h: Added.
        (WebCore::SetSelectionCommand::create):

        * editing/mac/SpellingCorrectionCommand.cpp: Added.
        (WebCore::SpellingCorrectionRecordUndoCommand::create):
        (WebCore::SpellingCorrectionRecordUndoCommand::SpellingCorrectionRecordUndoCommand):
        (WebCore::SpellingCorrectionRecordUndoCommand::doApply):
        (WebCore::SpellingCorrectionRecordUndoCommand::doUnapply):
        (WebCore::SpellingCorrectionCommand::SpellingCorrectionCommand):
        (WebCore::SpellingCorrectionCommand::doApply):

        * editing/mac/SpellingCorrectionCommand.h: Added.
        (WebCore::SpellingCorrectionCommand::create):

        * loader/EmptyClients.h: Updated for the new function declared in EditorClient.
        (WebCore::EmptyEditorClient::recordAutocorrectionResponse):

        * manual-tests/autocorrection/undo-autocorrection.html: Added.

        * page/ContextMenuController.cpp:
        (WebCore::ContextMenuController::contextMenuItemSelected): Adopted new signature of ReplaceSelectionCommand::create().

        * page/DragController.cpp:
        (WebCore::DragController::concludeEditDrag): Ditto.

        * page/EditorClient.h: Added EditorClient::recordAutocorrectionResponse().
2011-02-15  Jia Pu  <jpu@apple.com>

        Reviewed by Darin Adler.

        Autocorrection should respect undo.
        https://bugs.webkit.org/show_bug.cgi?id=52221
        <rdar://problem/8663399>

        Please see WebCore/ChangeLog for detailed description.

        * WebProcess/WebCoreSupport/WebEditorClient.h: Updated for the new function declared in EditorClient.

        * WebProcess/WebCoreSupport/mac/WebEditorClientMac.mm:
        (WebKit::WebEditorClient::recordAutocorrectionResponse): Ditto.

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::replaceSelectionWithText): Adopted new signature of ReplaceSelectionCommand::create().

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

8 years agoAdd media/audio-delete-while-slider-thumb-clicked.html to Windows skipped list.
sfalken@apple.com [Tue, 15 Feb 2011 23:41:53 +0000 (23:41 +0000)]
Add media/audio-delete-while-slider-thumb-clicked.html to Windows skipped list.
Failing since r78562.

* platform/win/Skipped:

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

8 years agoSpeculative fix for <rdar://problem/8998498> CrashTracer: [USER]
bdakin@apple.com [Tue, 15 Feb 2011 23:39:55 +0000 (23:39 +0000)]
Speculative fix for <rdar://problem/8998498> CrashTracer: [USER]
8 crashes in WebProcess calling setOverlayScrollerState:forceImmediately:

Reviewed by Darin Adler.

My best guess is that this is crashing because
willRemoveVerticalScrollbar()/Horizontal was not being called
properly from the RenderLayer destructor.

Call willRemoveVerticalScrollbar()/Horizontal from destroyScrollbar()
so that all current and future scrollbar-destroyers will properly
call this function. And only do it for native scrollers.
(WebCore::RenderLayer::destroyScrollbar):
(WebCore::RenderListBox::destroyScrollbar):

For consistency's sake, I also moved didAddVerticalScrollbar()
/Horizontal to createScrollbar(). Again, only call for native
scrollers.
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::createScrollbar):
(WebCore::RenderListBox::createScrollbar):

These functions no longer call didAdd/willRemove.
(WebCore::RenderLayer::setHasHorizontalScrollbar):
(WebCore::RenderLayer::setHasVerticalScrollbar):
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::setHasVerticalScrollbar):

Remove unnecessary ScrollableArea::-prefix
* platform/ScrollView.cpp:
(WebCore::ScrollView::setHasHorizontalScrollbar):
(WebCore::ScrollView::setHasVerticalScrollbar):

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

8 years ago2011-02-15 Stephen White <senorblanco@chromium.org>
senorblanco@chromium.org [Tue, 15 Feb 2011 23:38:05 +0000 (23:38 +0000)]
2011-02-15  Stephen White  <senorblanco@chromium.org>

        Unreviewed; new baselines for canvas GPU tests.

        Rebaseline for slight pixel differences on windows.

        * platform/chromium-gpu-win/fast/canvas/canvas-text-alignment-expected.checksum:
        * platform/chromium-gpu-win/fast/canvas/canvas-text-alignment-expected.png:
        * platform/chromium-gpu-win/fast/canvas/image-object-in-canvas-expected.checksum:
        * platform/chromium-gpu-win/fast/canvas/image-object-in-canvas-expected.png:
        * platform/chromium/test_expectations.txt:

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

8 years ago2011-02-15 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Tue, 15 Feb 2011 23:31:12 +0000 (23:31 +0000)]
2011-02-15  Mihai Parparita  <mihaip@chromium.org>

        Unreviewed chromium-gpu expectations update. Update expectations after
        tests that were unskipped by r78619 started to be run again. Most of
        them don't time out anymore, instead they have image and/or text diffs.

        Also remove flaky expectations for fast/canvas/shadow-offset-*.html,
        since they pass consistently now that the bug on the Chromium/V8 side
        (http://crbug.com/67732) has been fixed.

        * platform/chromium/test_expectations.txt:

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

8 years ago<http://webkit.org/b/54485> Fix spelling of -inProgramaticScroll
ddkilzer@apple.com [Tue, 15 Feb 2011 23:25:45 +0000 (23:25 +0000)]
<webkit.org/b/54485> Fix spelling of -inProgramaticScroll

Reviewed by Darin Adler.

* WebView/WebDynamicScrollBarsView.h:
* WebView/WebDynamicScrollBarsView.mm:
(-[WebDynamicScrollBarsView inProgrammaticScroll]): Renamed from
-inProgramaticScroll.
* WebView/WebHTMLView.mm:
(-[WebHTMLView _frameOrBoundsChanged]): Corrected method name.

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

8 years ago2011-02-15 Joseph Pecoraro <joepeck@webkit.org>
joepeck@webkit.org [Tue, 15 Feb 2011 23:20:09 +0000 (23:20 +0000)]
2011-02-15  Joseph Pecoraro  <joepeck@webkit.org>

        Reviewed by David Kilzer.

        Cleanup Some Potential ENABLE(INSPECTOR) Related Building Issues
        https://bugs.webkit.org/show_bug.cgi?id=54048

        * WebCore.exp.in: moved inspector only export into ENABLE(INSPECTOR) block.
        * bindings/js/ScriptHeapSnapshot.h: include no longer needed.

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

8 years ago2011-02-15 Stephen White <senorblanco@chromium.org>
senorblanco@chromium.org [Tue, 15 Feb 2011 23:17:10 +0000 (23:17 +0000)]
2011-02-15  Stephen White  <senorblanco@chromium.org>

        Reviewed by James Robinson.

        [chromium] clearRect() is incorrect in accelerated 2D canvas.
        https://bugs.webkit.org/show_bug.cgi?id=54497

        When doing GPU-Canvas2D clearRect() using the fast path (glClear()),
        we were not correctly converting from canvas to screen coordinates.
        Fixed by inverting the rectangle in Y, and changing
        SharedGraphicsContext3D::scissor to take glScissor-like parameters.

        Covered by fast/canvas/canvas-strokeRect.html.

        * platform/graphics/chromium/GLES2Canvas.cpp:
        (WebCore::GLES2Canvas::clearRect):
        Flip the Y coord of the rectangle passed to scissor().
        * platform/graphics/gpu/SharedGraphicsContext3D.cpp:
        (WebCore::SharedGraphicsContext3D::scissor):
        * platform/graphics/gpu/SharedGraphicsContext3D.h:
        Give scissor() the same param types as GraphicsContext3D::scissor().
2011-02-15  Stephen White  <senorblanco@chromium.org>

        Reviewed by James Robinson.

        [chromium] Mark fast/canvas/canvas-strokeRect.html as passing on the GPU path.
        https://bugs.webkit.org/show_bug.cgi?id=54497

        * platform/chromium/test_expectations.txt:

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

8 years agoWebKit2: Use the Database directory location specified in NSUserDefaults.
jberlin@webkit.org [Tue, 15 Feb 2011 23:16:27 +0000 (23:16 +0000)]
WebKit2: Use the Database directory location specified in NSUserDefaults.
https://bugs.webkit.org/show_bug.cgi?id=54496

Reviewed by Darin Adler.

* UIProcess/mac/WebContextMac.mm:
(WebKit::WebContext::platformDefaultDatabaseDirectory):
Use the same logic as WebKit1's WebDatabaseManager::databasesDirectoryPath.

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

8 years ago2011-02-15 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Tue, 15 Feb 2011 23:01:39 +0000 (23:01 +0000)]
2011-02-15  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Anders Carlsson, Darin Adler.

        Layers stick around in DrawingAreaImpl until we switch out of compositing
        https://bugs.webkit.org/show_bug.cgi?id=54498

        When leaving compositing mode soon, remove all the child layers
        of the nonCompositedContent layer right away, so they don't stick
        around.

        * WebProcess/WebPage/DrawingAreaImpl.cpp:
        (WebKit::DrawingAreaImpl::setRootCompositingLayer):
        * WebProcess/WebPage/mac/LayerTreeHostMac.mm:
        (WebKit::LayerTreeHostMac::setRootCompositingLayer):

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

8 years ago2011-02-15 Pratik Solanki <psolanki@apple.com>
psolanki@apple.com [Tue, 15 Feb 2011 23:01:10 +0000 (23:01 +0000)]
2011-02-15  Pratik Solanki  <psolanki@apple.com>

        Move WTF_USE_CFNETWORK to Platform.h
        https://bugs.webkit.org/show_bug.cgi?id=54168

        Reviewed by Darin Adler.

        * wtf/Platform.h: Define WTF_USE_CFNETWORK for Windows builds.
2011-02-15  Pratik Solanki  <psolanki@apple.com>

        Move WTF_USE_CFNETWORK to Platform.h
        https://bugs.webkit.org/show_bug.cgi?id=54168

        Reviewed by Darin Adler.

        * config.h: Remove WTF_USE_CFNETWORK.

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

8 years ago2011-02-15 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Tue, 15 Feb 2011 22:55:58 +0000 (22:55 +0000)]
2011-02-15  Mihai Parparita  <mihaip@chromium.org>

        Unreviewed chromium-gpu expectations update.
        compositing/reflections/animation-inside-reflection.html and
        compositing/reflections/nested-reflection-animated.html are flaky on
        Linux too.

        * platform/chromium/test_expectations.txt:

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

8 years ago2011-02-15 Kenneth Russell <kbr@google.com>
kbr@google.com [Tue, 15 Feb 2011 22:53:44 +0000 (22:53 +0000)]
2011-02-15  Kenneth Russell  <kbr@google.com>

        Reviewed by Darin Fisher.

        Allow controlling minimum DOMTimer interval on a per-page basis
        https://bugs.webkit.org/show_bug.cgi?id=54312

        Implemented new method setMinimumTimerInterval in
        LayoutTestController for all ports.

        * DumpRenderTree/LayoutTestController.cpp:
        (setMinimumTimerIntervalCallback):
        (LayoutTestController::staticFunctions):
        * DumpRenderTree/LayoutTestController.h:
        * DumpRenderTree/chromium/LayoutTestController.cpp:
        (LayoutTestController::LayoutTestController):
        (LayoutTestController::setMinimumTimerInterval):
        * DumpRenderTree/chromium/LayoutTestController.h:
        * DumpRenderTree/chromium/WebViewHost.cpp:
        (WebViewHost::reset):
        * DumpRenderTree/gtk/DumpRenderTree.cpp:
        (resetDefaultsToConsistentValues):
        * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
        (LayoutTestController::setMinimumTimerInterval):
        * DumpRenderTree/mac/DumpRenderTree.mm:
        (resetWebViewToConsistentStateBeforeTesting):
        * DumpRenderTree/mac/LayoutTestControllerMac.mm:
        (LayoutTestController::setMinimumTimerInterval):
        * DumpRenderTree/qt/DumpRenderTreeQt.cpp:
        (WebCore::WebPage::resetSettings):
        * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
        (LayoutTestController::setMinimumTimerInterval):
        * DumpRenderTree/qt/LayoutTestControllerQt.h:
        * DumpRenderTree/win/DumpRenderTree.cpp:
        (resetWebViewToConsistentStateBeforeTesting):
        * DumpRenderTree/win/LayoutTestControllerWin.cpp:
        (LayoutTestController::setMinimumTimerInterval):
2011-02-15  Kenneth Russell  <kbr@google.com>

        Reviewed by Darin Fisher.

        Allow controlling minimum DOMTimer interval on a per-page basis
        https://bugs.webkit.org/show_bug.cgi?id=54312

        * fast/dom/timer-increase-min-interval-and-reset-part-1-expected.txt: Added.
        * fast/dom/timer-increase-min-interval-and-reset-part-1.html: Added.
        * fast/dom/timer-increase-min-interval-and-reset-part-2-expected.txt: Added.
        * fast/dom/timer-increase-min-interval-and-reset-part-2.html: Added.
          - Chained tests (the assumption is that the run-webkit-tests
            harness will run them sequentially, which is a reasonably good
            assumption) which verify that the minimum timer interval is
            reset between tests.
        * fast/dom/timer-increase-min-interval-expected.txt: Added.
        * fast/dom/timer-increase-min-interval.html: Added.
          - Verifies that increasing the minimum timer interval causes
            fast timers to run slowly.
        * fast/dom/timer-increase-then-decrease-min-interval-expected.txt: Added.
        * fast/dom/timer-increase-then-decrease-min-interval.html: Added.
          - Verifies that decreasing the minimum timer interval causes
            previously slowed-down timers to be reevaluated immediately.
2011-02-15  Kenneth Russell  <kbr@google.com>

        Reviewed by Darin Fisher.

        Allow controlling minimum DOMTimer interval on a per-page basis
        https://bugs.webkit.org/show_bug.cgi?id=54312

        * public/WebSettings.h:
          - Added setMinimumTimerInterval.
        * src/WebKit.cpp:
        (WebKit::initialize):
          - Added FIXME to remove setting of page's default timer interval.
        * src/WebSettingsImpl.cpp:
        (WebKit::WebSettingsImpl::setMinimumTimerInterval):
          - Implemented new method on WebSettings.
        * src/WebSettingsImpl.h:
2011-02-15  Kenneth Russell  <kbr@google.com>

        Reviewed by Darin Fisher.

        Allow controlling minimum DOMTimer interval on a per-page basis
        https://bugs.webkit.org/show_bug.cgi?id=54312

        Added needed methods to implement LayoutTestController's new
        setMinimumTimerInterval method.

        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
        (DumpRenderTreeSupportQt::defaultMinimumTimerInterval):
        (DumpRenderTreeSupportQt::setMinimumTimerInterval):
        * WebCoreSupport/DumpRenderTreeSupportQt.h:
2011-02-15  Kenneth Russell  <kbr@google.com>

        Reviewed by Darin Fisher.

        Allow controlling minimum DOMTimer interval on a per-page basis
        https://bugs.webkit.org/show_bug.cgi?id=54312

        Added needed methods to implement LayoutTestController's new
        setMinimumTimerInterval method.

        * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
        (DumpRenderTreeSupportGtk::defaultMinimumTimerInterval):
        (DumpRenderTreeSupportGtk::setMinimumTimerInterval):
        * WebCoreSupport/DumpRenderTreeSupportGtk.h:
2011-02-15  Kenneth Russell  <kbr@google.com>

        Reviewed by Darin Fisher.

        Allow controlling minimum DOMTimer interval on a per-page basis
        https://bugs.webkit.org/show_bug.cgi?id=54312

        Added needed methods to implement LayoutTestController's new
        setMinimumTimerInterval method. Includes whitespace-only change to
        WebKit.idl to trigger proper rebuild on bots; will be removed in
        subsequent checkin.

        * Interfaces/IWebViewPrivate.idl:
        * Interfaces/WebKit.idl:
        * WebView.cpp:
        (WebView::initWithFrame):
        (WebView::defaultMinimumTimerInterval):
        (WebView::setMinimumTimerInterval):
        * WebView.h:
2011-02-15  Kenneth Russell  <kbr@google.com>

        Reviewed by Darin Fisher.

        Allow controlling minimum DOMTimer interval on a per-page basis
        https://bugs.webkit.org/show_bug.cgi?id=54312

        Added needed methods to implement LayoutTestController's new
        setMinimumTimerInterval method.

        * WebView/WebView.mm:
        (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
        (+[WebView _defaultMinimumTimerInterval]):
        (-[WebView _setMinimumTimerInterval:]):
        * WebView/WebViewPrivate.h:
2011-02-15  Kenneth Russell  <kbr@google.com>

        Reviewed by Darin Fisher.

        Allow controlling minimum DOMTimer interval on a per-page basis
        https://bugs.webkit.org/show_bug.cgi?id=54312

        Renamed DOMTimer::minTimerInterval and setMinTimerInterval to
        defaultMinTimerInterval and setDefaultMinTimerInterval, made them
        private and exposed them via Settings::defaultMinDOMTimerInterval
        and setDefaultMinDOMTimerInterval. Added new
        Settings::setMinDOMTimerInterval and minDOMTimerInterval.

        The storage for the minimum timer interval currently lives in the
        Page, though this could be moved to the Settings object if
        desired. The accessor methods on the Page are private and exposed
        to Settings by making Settings a friend, so the abstraction
        barrier is clear at the API level.

        Adjusting the interval both upward and downward may cause the fire
        times of the active timers on the page to be adjusted, if they
        would be affected by the clamping value. This is needed to reduce
        latency when bringing a tab to the foreground, in particular if
        the minimum timer interval was decreased from a very high value to
        a very low value.

        A new method, setMinimumTimerInterval, has been added to
        LayoutTestController, implemented in all ports of DumpRenderTree,
        and used in new layout tests.

        Ideally changing the page's minimum timer interval would affect
        dedicated workers, but this is too much to do in an initial patch,
        so a FIXME has been added.

        Tested with:
          - The new layout tests on the WebKit Mac and Chromium (Mac,
            Linux) DRT ports.
          - Hooked up the new API in Chromium and ran some simple manual
            tests.

        Tests: fast/dom/timer-increase-min-interval-and-reset-part-1.html
               fast/dom/timer-increase-min-interval-and-reset-part-2.html
               fast/dom/timer-increase-min-interval.html
               fast/dom/timer-increase-then-decrease-min-interval.html

        * WebCore.exp.in:
        * dom/Document.cpp:
        (WebCore::Document::minimumTimerInterval):
        * dom/Document.h:
        * dom/ScriptExecutionContext.cpp:
        (WebCore::ScriptExecutionContext::adjustMinimumTimerInterval):
        (WebCore::ScriptExecutionContext::minimumTimerInterval):
        * dom/ScriptExecutionContext.h:
        * page/DOMTimer.cpp:
        (WebCore::DOMTimer::DOMTimer):
        (WebCore::DOMTimer::fired):
        (WebCore::DOMTimer::adjustMinimumTimerInterval):
        (WebCore::DOMTimer::intervalClampedToMinimum):
        * page/DOMTimer.h:
        (WebCore::DOMTimer::defaultMinTimerInterval):
        (WebCore::DOMTimer::setDefaultMinTimerInterval):
        * page/Page.cpp:
        (WebCore::Page::Page):
        (WebCore::Page::setMinimumTimerInterval):
        (WebCore::Page::minimumTimerInterval):
        * page/Page.h:
        * page/Settings.cpp:
        (WebCore::Settings::setDefaultMinDOMTimerInterval):
        (WebCore::Settings::defaultMinDOMTimerInterval):
        (WebCore::Settings::setMinDOMTimerInterval):
        (WebCore::Settings::minDOMTimerInterval):
        * page/Settings.h:
        * platform/Timer.h:
        (WebCore::TimerBase::augmentFireInterval):
        (WebCore::TimerBase::augmentRepeatInterval):
2011-02-15  Kenneth Russell  <kbr@google.com>

        Reviewed by Darin Fisher.

        Allow controlling minimum DOMTimer interval on a per-page basis
        https://bugs.webkit.org/show_bug.cgi?id=54312

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::WebPage):

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

8 years ago2011-02-15 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Tue, 15 Feb 2011 22:49:19 +0000 (22:49 +0000)]
2011-02-15  Mihai Parparita  <mihaip@chromium.org>

        Unreviewed chromium-gpu baseline update. Unskip some tests that fail;
        we want to keep running them in case they regress in unexpected ways
        (e.g. they start to crash).

        * platform/chromium/test_expectations.txt:

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

8 years ago2011-02-15 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Tue, 15 Feb 2011 22:46:50 +0000 (22:46 +0000)]
2011-02-15  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Beth Dakin.

        Fix scrollbar rendering crash when rendered into a layer
        https://bugs.webkit.org/show_bug.cgi?id=54494

        Remove code added in r78394 which was intended to find out whether
        a scrollbar was being rendered into a compositing layer. r78612
        obviated the need for this code.

        * page/FrameView.h:
        * platform/ScrollableArea.h:
        * rendering/RenderLayer.cpp:
        * rendering/RenderLayer.h:
        * rendering/RenderListBox.cpp:
        * rendering/RenderListBox.h:

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

8 years ago2011-02-15 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Tue, 15 Feb 2011 22:37:22 +0000 (22:37 +0000)]
2011-02-15  Simon Fraser  <simon.fraser@apple.com>

        Let Xcode have its way with the project.

        * WebCore.xcodeproj/project.pbxproj:

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

8 years ago2011-02-15 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Tue, 15 Feb 2011 22:37:18 +0000 (22:37 +0000)]
2011-02-15  Simon Fraser  <simon.fraser@apple.com>

        Fix Mac builds that don't use rubber-band scrolling
        by moving m_drawingIntoLayer out of the #ifdef.

        * platform/mac/ScrollAnimatorMac.h:
        * platform/mac/ScrollAnimatorMac.mm:
        (WebCore::ScrollAnimatorMac::ScrollAnimatorMac):

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

8 years ago2011-02-15 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Tue, 15 Feb 2011 22:16:17 +0000 (22:16 +0000)]
2011-02-15  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [Freetype] Better map CSS font weight to Fontconfig font weight
        https://bugs.webkit.org/show_bug.cgi?id=54323

        Update the results of this test, which is now passing. Also update results for
        all other tests which have different results now.

        * platform/gtk/fast/css/font-weight-1-expected.checksum:
        * platform/gtk/fast/css/font-weight-1-expected.png:
        * platform/gtk/fast/css/font-weight-1-expected.txt:
2011-02-15  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [Freetype] Better map CSS font weight to Fontconfig font weight
        https://bugs.webkit.org/show_bug.cgi?id=54323

        * platform/graphics/freetype/FontCacheFreeType.cpp:
        (WebCore::fontWeightToFontconfigWeight): Added this helper to map between CSS and
        Fontconfig font weights.
        (WebCore::FontCache::createFontPlatformData): Use the new helper instead of just
        deciding between bold and regular.
2011-02-15  Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Xan Lopez.

        [Freetype] Better map CSS font weight to Fontconfig font weight
        https://bugs.webkit.org/show_bug.cgi?id=54323

        Add the WeightWatcher fonts to the list of sourced fonts when intializing
        DRT. This will allow us to pass tests that use WeightWatcher.

        * DumpRenderTree/gtk/DumpRenderTree.cpp:
        (initializeFonts): Source the WebkitWeightWatcher fonts.

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

8 years ago2011-02-15 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Tue, 15 Feb 2011 22:12:12 +0000 (22:12 +0000)]
2011-02-15  Mihai Parparita  <mihaip@chromium.org>

        Unreviewed chromium-gpu-linux rebaseline. Check in correct expectations
        which should allow us to remove the PASS FAIL line for compositing/ for
        this platform.

        * platform/chromium-gpu-linux/compositing/direct-image-compositing-expected.checksum:
        * platform/chromium-gpu-linux/compositing/direct-image-compositing-expected.png:
        * platform/chromium-gpu-linux/compositing/generated-content-expected.checksum:
        * platform/chromium-gpu-linux/compositing/generated-content-expected.png:
        * platform/chromium-gpu-linux/compositing/geometry/composited-html-size-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/geometry/composited-html-size-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/geometry/fixed-position-expected.checksum:
        * platform/chromium-gpu-linux/compositing/geometry/fixed-position-expected.png:
        * platform/chromium-gpu-linux/compositing/geometry/horizontal-scroll-composited-expected.checksum:
        * platform/chromium-gpu-linux/compositing/geometry/horizontal-scroll-composited-expected.png:
        * platform/chromium-gpu-linux/compositing/geometry/layer-due-to-layer-children-deep-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/geometry/layer-due-to-layer-children-deep-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/geometry/layer-due-to-layer-children-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/geometry/layer-due-to-layer-children-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/geometry/vertical-scroll-composited-expected.checksum:
        * platform/chromium-gpu-linux/compositing/geometry/vertical-scroll-composited-expected.png:
        * platform/chromium-gpu-linux/compositing/masks/masked-ancestor-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/masks/masked-ancestor-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/masks/simple-composited-mask-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/masks/simple-composited-mask-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/overflow/fixed-position-ancestor-clip-expected.checksum:
        * platform/chromium-gpu-linux/compositing/overflow/fixed-position-ancestor-clip-expected.png:
        * platform/chromium-gpu-linux/compositing/reflections/animation-inside-reflection-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/animation-inside-reflection-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/compositing-change-inside-reflection-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/compositing-change-inside-reflection-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/deeply-nested-reflections-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/deeply-nested-reflections-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/masked-reflection-on-composited-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/masked-reflection-on-composited-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-animated-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-animated-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-mask-change-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-mask-change-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-on-overflow-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-on-overflow-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-opacity-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-opacity-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-size-change-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-size-change-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-transformed-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-transformed-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-transformed2-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-transformed2-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-transition-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/nested-reflection-transition-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/reflection-in-composited-expected.checksum:
        * platform/chromium-gpu-linux/compositing/reflections/reflection-in-composited-expected.png:
        * platform/chromium-gpu-linux/compositing/reflections/reflection-on-composited-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/reflection-on-composited-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/reflection-ordering-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/reflection-ordering-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/reflection-positioning-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/reflection-positioning-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/reflection-positioning2-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/reflection-positioning2-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/simple-composited-reflections-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/simple-composited-reflections-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/reflections/transform-inside-reflection-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/reflections/transform-inside-reflection-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/sibling-positioning-expected.checksum:
        * platform/chromium-gpu-linux/compositing/sibling-positioning-expected.png:
        * platform/chromium-gpu-linux/compositing/transitions/scale-transition-no-start-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/transitions/scale-transition-no-start-expected.png: Added.
        * platform/chromium-gpu-linux/compositing/webgl/webgl-reflection-expected.checksum: Added.
        * platform/chromium-gpu-linux/compositing/webgl/webgl-reflection-expected.png: Added.
        * platform/chromium/test_expectations.txt:

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

8 years ago2011-02-15 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Tue, 15 Feb 2011 22:00:32 +0000 (22:00 +0000)]
2011-02-15  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Sam Weinig.

        Fix scrollbar rendering crash when rendered into a layer
        https://bugs.webkit.org/show_bug.cgi?id=54494

        The scroller delegate was failing to return a layer in a case
        where the scroller was still rendering into a GraphicsLayer, because
        even though WebCore had switched out of compositing mode, the
        DrawingAreaImpl was still rendering into its nonCompositedContent
        layer. This happens when the m_exitCompositingTimer timer hasn't fired
        yet.

        The fix is to track whether we're drawing into a layer via the
        GraphicsContext, rather than asking about compositing layers.

        * platform/graphics/GraphicsContext.h:
        * platform/graphics/cg/GraphicsContextCG.cpp:
        (WebCore::GraphicsContext::setIsCALayerContext):
        (WebCore::GraphicsContext::isCALayerContext):
        Getter and setter for the bit that says if we're rendering into a CALayer.

        * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h:
        (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
        Store a bool for whether this context targets a layer.

        * platform/graphics/mac/WebLayer.mm:
        (drawLayerContents): Call setIsCALayerContext(true).

        * platform/mac/ScrollAnimatorMac.h:
        (WebCore::ScrollAnimatorMac::setIsDrawingIntoLayer):
        (WebCore::ScrollAnimatorMac::isDrawingIntoLayer):
        New methods to get and set a flag that says when we're
        drawing into a layer, so that the delegate can get at this state.

        * platform/mac/ScrollAnimatorMac.mm:
        (-[ScrollbarPainterDelegate layer]): Use isDrawingIntoLayer()
        (WebCore::ScrollAnimatorMac::ScrollAnimatorMac): Init the flag.

        * platform/mac/ScrollbarThemeMac.mm:
        (WebCore::ScrollbarThemeMac::unregisterScrollbar): Whitespace.
        (WebCore::ScrollbarThemeMac::paint): Push the "isDrawingIntoLayer"
        state down onto ScrollAnimatorMac, getting it from the GraphicsContext.

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

8 years ago2011-02-15 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 15 Feb 2011 21:35:04 +0000 (21:35 +0000)]
2011-02-15  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Add sitesWithData and clearSiteData to NetscapePluginModule
        https://bugs.webkit.org/show_bug.cgi?id=54492

        * Shared/Plugins/Netscape/NetscapePluginModule.cpp:
        (WebKit::NetscapePluginModule::NetscapePluginModule):
        (WebKit::NetscapePluginModule::pluginCreated):
        (WebKit::NetscapePluginModule::pluginDestroyed):
        (WebKit::NetscapePluginModule::sitesWithData):
        (WebKit::NetscapePluginModule::clearSiteData):
        (WebKit::NetscapePluginModule::tryGetSitesWithData):
        (WebKit::NetscapePluginModule::tryClearSiteData):
        (WebKit::NetscapePluginModule::incrementLoadCount):
        (WebKit::NetscapePluginModule::decrementLoadCount):
        * Shared/Plugins/Netscape/NetscapePluginModule.h:

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

8 years ago2011-02-15 Tony Chang <tony@chromium.org>
tony@chromium.org [Tue, 15 Feb 2011 21:33:18 +0000 (21:33 +0000)]
2011-02-15  Tony Chang  <tony@chromium.org>

        Rebaseline chromium-linux tests with menulists (select drop downs).
        We now match Windows w.r.t. sizes, the only difference is the
        background color of the menulist (in themeChromiumLinux.css).

        * platform/chromium-linux/editing/pasteboard/4641033-expected.checksum:
        * platform/chromium-linux/editing/pasteboard/4641033-expected.png:
        * platform/chromium-linux/editing/pasteboard/4641033-expected.txt:
        * platform/chromium-linux/editing/pasteboard/4944770-1-expected.checksum:
        * platform/chromium-linux/editing/pasteboard/4944770-1-expected.png:
        * platform/chromium-linux/editing/pasteboard/4944770-1-expected.txt:
        * platform/chromium-linux/editing/pasteboard/4944770-2-expected.checksum:
        * platform/chromium-linux/editing/pasteboard/4944770-2-expected.png:
        * platform/chromium-linux/editing/pasteboard/4944770-2-expected.txt:
        * platform/chromium-linux/editing/selection/caret-before-select-expected.checksum:
        * platform/chromium-linux/editing/selection/caret-before-select-expected.png:
        * platform/chromium-linux/editing/selection/caret-before-select-expected.txt:
        * platform/chromium-linux/editing/selection/replaced-boundaries-3-expected.checksum:
        * platform/chromium-linux/editing/selection/replaced-boundaries-3-expected.png:
        * platform/chromium-linux/editing/selection/replaced-boundaries-3-expected.txt:
        * platform/chromium-linux/editing/selection/select-box-expected.checksum:
        * platform/chromium-linux/editing/selection/select-box-expected.png:
        * platform/chromium-linux/editing/selection/select-box-expected.txt:
        * platform/chromium-linux/editing/selection/select-element-paragraph-boundary-expected.checksum:
        * platform/chromium-linux/editing/selection/select-element-paragraph-boundary-expected.png:
        * platform/chromium-linux/editing/selection/select-element-paragraph-boundary-expected.txt:
        * platform/chromium-linux/fast/block/float/float-avoidance-expected.checksum:
        * platform/chromium-linux/fast/block/float/float-avoidance-expected.png:
        * platform/chromium-linux/fast/block/float/float-avoidance-expected.txt:
        * platform/chromium-linux/fast/block/margin-collapse/103-expected.checksum:
        * platform/chromium-linux/fast/block/margin-collapse/103-expected.png:
        * platform/chromium-linux/fast/block/margin-collapse/103-expected.txt:
        * platform/chromium-linux/fast/forms/003-expected.checksum:
        * platform/chromium-linux/fast/forms/003-expected.png:
        * platform/chromium-linux/fast/forms/003-expected.txt:
        * platform/chromium-linux/fast/forms/004-expected.checksum:
        * platform/chromium-linux/fast/forms/004-expected.png:
        * platform/chromium-linux/fast/forms/004-expected.txt:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label01-expected.checksum:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label01-expected.png:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label01-expected.txt:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label02-expected.checksum:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label02-expected.png:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label02-expected.txt:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label03-expected.checksum:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label03-expected.png:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label03-expected.txt:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label04-expected.checksum:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label04-expected.png:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label04-expected.txt:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label06-expected.checksum:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label06-expected.png:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label06-expected.txt:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label07-expected.checksum:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label07-expected.png:
        * platform/chromium-linux/fast/forms/HTMLOptionElement_label07-expected.txt:
        * platform/chromium-linux/fast/forms/basic-selects-expected.checksum:
        * platform/chromium-linux/fast/forms/basic-selects-expected.png:
        * platform/chromium-linux/fast/forms/basic-selects-expected.txt:
        * platform/chromium-linux/fast/forms/control-clip-overflow-expected.checksum:
        * platform/chromium-linux/fast/forms/control-clip-overflow-expected.png:
        * platform/chromium-linux/fast/forms/control-clip-overflow-expected.txt:
        * platform/chromium-linux/fast/forms/control-restrict-line-height-expected.checksum:
        * platform/chromium-linux/fast/forms/control-restrict-line-height-expected.png:
        * platform/chromium-linux/fast/forms/control-restrict-line-height-expected.txt:
        * platform/chromium-linux/fast/forms/disabled-select-change-index-expected.checksum:
        * platform/chromium-linux/fast/forms/disabled-select-change-index-expected.png:
        * platform/chromium-linux/fast/forms/disabled-select-change-index-expected.txt:
        * platform/chromium-linux/fast/forms/menulist-clip-expected.checksum:
        * platform/chromium-linux/fast/forms/menulist-clip-expected.png:
        * platform/chromium-linux/fast/forms/menulist-clip-expected.txt:
        * platform/chromium-linux/fast/forms/menulist-deselect-update-expected.checksum:
        * platform/chromium-linux/fast/forms/menulist-deselect-update-expected.png:
        * platform/chromium-linux/fast/forms/menulist-deselect-update-expected.txt:
        * platform/chromium-linux/fast/forms/menulist-narrow-width-expected.checksum:
        * platform/chromium-linux/fast/forms/menulist-narrow-width-expected.png:
        * platform/chromium-linux/fast/forms/menulist-narrow-width-expected.txt:
        * platform/chromium-linux/fast/forms/menulist-no-overflow-expected.checksum:
        * platform/chromium-linux/fast/forms/menulist-no-overflow-expected.png:
        * platform/chromium-linux/fast/forms/menulist-no-overflow-expected.txt:
        * platform/chromium-linux/fast/forms/menulist-option-wrap-expected.checksum:
        * platform/chromium-linux/fast/forms/menulist-option-wrap-expected.png:
        * platform/chromium-linux/fast/forms/menulist-option-wrap-expected.txt:
        * platform/chromium-linux/fast/forms/menulist-restrict-line-height-expected.checksum:
        * platform/chromium-linux/fast/forms/menulist-restrict-line-height-expected.png:
        * platform/chromium-linux/fast/forms/menulist-restrict-line-height-expected.txt: Removed.
        * platform/chromium-linux/fast/forms/menulist-separator-painting-expected.checksum:
        * platform/chromium-linux/fast/forms/menulist-separator-painting-expected.png:
        * platform/chromium-linux/fast/forms/menulist-separator-painting-expected.txt:
        * platform/chromium-linux/fast/forms/menulist-style-color-expected.checksum:
        * platform/chromium-linux/fast/forms/menulist-style-color-expected.png:
        * platform/chromium-linux/fast/forms/menulist-style-color-expected.txt:
        * platform/chromium-linux/fast/forms/menulist-width-change-expected.checksum:
        * platform/chromium-linux/fast/forms/menulist-width-change-expected.png:
        * platform/chromium-linux/fast/forms/menulist-width-change-expected.txt:
        * platform/chromium-linux/fast/forms/option-script-expected.checksum:
        * platform/chromium-linux/fast/forms/option-script-expected.png:
        * platform/chromium-linux/fast/forms/option-script-expected.txt:
        * platform/chromium-linux/fast/forms/option-strip-whitespace-expected.checksum:
        * platform/chromium-linux/fast/forms/option-strip-whitespace-expected.png:
        * platform/chromium-linux/fast/forms/option-strip-whitespace-expected.txt:
        * platform/chromium-linux/fast/forms/option-text-clip-expected.checksum:
        * platform/chromium-linux/fast/forms/option-text-clip-expected.png:
        * platform/chromium-linux/fast/forms/option-text-clip-expected.txt:
        * platform/chromium-linux/fast/forms/select-align-expected.checksum:
        * platform/chromium-linux/fast/forms/select-align-expected.png:
        * platform/chromium-linux/fast/forms/select-align-expected.txt:
        * platform/chromium-linux/fast/forms/select-baseline-expected.checksum:
        * platform/chromium-linux/fast/forms/select-baseline-expected.png:
        * platform/chromium-linux/fast/forms/select-baseline-expected.txt:
        * platform/chromium-linux/fast/forms/select-dirty-parent-pref-widths-expected.checksum:
        * platform/chromium-linux/fast/forms/select-dirty-parent-pref-widths-expected.png:
        * platform/chromium-linux/fast/forms/select-dirty-parent-pref-widths-expected.txt:
        * platform/chromium-linux/fast/forms/select-disabled-appearance-expected.checksum:
        * platform/chromium-linux/fast/forms/select-disabled-appearance-expected.png:
        * platform/chromium-linux/fast/forms/select-disabled-appearance-expected.txt:
        * platform/chromium-linux/fast/forms/select-empty-option-height-expected.checksum:
        * platform/chromium-linux/fast/forms/select-empty-option-height-expected.png:
        * platform/chromium-linux/fast/forms/select-empty-option-height-expected.txt:
        * platform/chromium-linux/fast/forms/select-selected-expected.checksum:
        * platform/chromium-linux/fast/forms/select-selected-expected.png:
        * platform/chromium-linux/fast/forms/select-selected-expected.txt:
        * platform/chromium-linux/fast/forms/stuff-on-my-optgroup-expected.checksum:
        * platform/chromium-linux/fast/forms/stuff-on-my-optgroup-expected.png:
        * platform/chromium-linux/fast/forms/stuff-on-my-optgroup-expected.txt:
        * platform/chromium-linux/fast/html/keygen-expected.checksum:
        * platform/chromium-linux/fast/html/keygen-expected.png:
        * platform/chromium-linux/fast/html/keygen-expected.txt:
        * platform/chromium-linux/fast/invalid/014-expected.checksum:
        * platform/chromium-linux/fast/invalid/014-expected.png:
        * platform/chromium-linux/fast/invalid/014-expected.txt:
        * platform/chromium-linux/fast/invalid/residual-style-expected.checksum:
        * platform/chromium-linux/fast/invalid/residual-style-expected.png:
        * platform/chromium-linux/fast/invalid/residual-style-expected.txt:
        * platform/chromium-linux/fast/parser/document-write-option-expected.checksum:
        * platform/chromium-linux/fast/parser/document-write-option-expected.png:
        * platform/chromium-linux/fast/parser/document-write-option-expected.txt:
        * platform/chromium-linux/fast/repaint/control-clip-expected.checksum:
        * platform/chromium-linux/fast/repaint/control-clip-expected.png:
        * platform/chromium-linux/fast/repaint/control-clip-expected.txt:
        * platform/chromium-linux/fast/replaced/replaced-breaking-expected.checksum:
        * platform/chromium-linux/fast/replaced/replaced-breaking-expected.png:
        * platform/chromium-linux/fast/replaced/replaced-breaking-expected.txt:
        * platform/chromium-linux/fast/replaced/replaced-breaking-mixture-expected.checksum:
        * platform/chromium-linux/fast/replaced/replaced-breaking-mixture-expected.png:
        * platform/chromium-linux/fast/replaced/replaced-breaking-mixture-expected.txt:
        * platform/chromium-linux/fast/replaced/three-selects-break-expected.checksum:
        * platform/chromium-linux/fast/replaced/three-selects-break-expected.png:
        * platform/chromium-linux/fast/replaced/three-selects-break-expected.txt:
        * platform/chromium-linux/fast/text/international/bidi-menulist-expected.checksum:
        * platform/chromium-linux/fast/text/international/bidi-menulist-expected.png:
        * platform/chromium-linux/fast/text/international/bidi-menulist-expected.txt:
        * platform/chromium-linux/fast/text/international/pop-up-button-text-alignment-and-direction-expected.checksum:
        * platform/chromium-linux/fast/text/international/pop-up-button-text-alignment-and-direction-expected.png:
        * platform/chromium-linux/fast/text/international/pop-up-button-text-alignment-and-direction-expected.txt:
        * platform/chromium-linux/tables/mozilla/bugs/bug1188-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug1188-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug1188-expected.txt:
        * platform/chromium-linux/tables/mozilla/bugs/bug18359-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug18359-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug18359-expected.txt:
        * platform/chromium-linux/tables/mozilla/bugs/bug2479-3-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug2479-3-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug2479-3-expected.txt:
        * platform/chromium-linux/tables/mozilla/bugs/bug2479-4-expected.txt:
        * platform/chromium-linux/tables/mozilla/bugs/bug29326-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug29326-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug29326-expected.txt:
        * platform/chromium-linux/tables/mozilla/bugs/bug33855-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug33855-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug33855-expected.txt:
        * platform/chromium-linux/tables/mozilla/bugs/bug4382-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug4382-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug4382-expected.txt:
        * platform/chromium-linux/tables/mozilla/bugs/bug96334-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug96334-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug96334-expected.txt:
        * platform/chromium-linux/tables/mozilla/core/margins-expected.checksum:
        * platform/chromium-linux/tables/mozilla/core/margins-expected.png:
        * platform/chromium-linux/tables/mozilla/core/margins-expected.txt:
        * platform/chromium-linux/tables/mozilla/dom/tableDom-expected.checksum:
        * platform/chromium-linux/tables/mozilla/dom/tableDom-expected.png:
        * platform/chromium-linux/tables/mozilla/dom/tableDom-expected.txt:
        * platform/chromium-linux/tables/mozilla_expected_failures/bugs/bug2479-5-expected.checksum:
        * platform/chromium-linux/tables/mozilla_expected_failures/bugs/bug2479-5-expected.png:
        * platform/chromium-linux/tables/mozilla_expected_failures/bugs/bug2479-5-expected.txt:
        * platform/chromium-linux/transforms/2d/zoom-menulist-expected.checksum:
        * platform/chromium-linux/transforms/2d/zoom-menulist-expected.png:
        * platform/chromium-linux/transforms/2d/zoom-menulist-expected.txt:
        * platform/chromium/test_expectations.txt:

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

8 years agoFix windows build.
weinig@apple.com [Tue, 15 Feb 2011 21:30:58 +0000 (21:30 +0000)]
Fix windows build.

* Shared/win/WebCoreArgumentCodersWin.cpp:
(CoreIPC::encodeResourceRequest):

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

8 years ago2011-02-15 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Tue, 15 Feb 2011 21:22:43 +0000 (21:22 +0000)]
2011-02-15  Martin Robinson  <mrobinson@igalia.com>

        Reversing an expectations update, that I mistakenly uploaded in r78595.

        * platform/gtk/Skipped: Skip this test, as the results are incorrect on GTK+.
        * svg/text/lengthAdjust-text-metrics-expected.txt: Restore expectations for this test.

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

8 years agoSkip failing tests being tracked by https://bugs.webkit.org/show_bug.cgi?id=54490
sfalken@apple.com [Tue, 15 Feb 2011 21:21:18 +0000 (21:21 +0000)]
Skip failing tests being tracked by https://bugs.webkit.org/show_bug.cgi?id=54490

* platform/win/Skipped:

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

8 years ago2011-02-15 Jochen Eisinger <jochen@chromium.org>
jochen@chromium.org [Tue, 15 Feb 2011 21:09:08 +0000 (21:09 +0000)]
2011-02-15  Jochen Eisinger  <jochen@chromium.org>

        Reviewed by Jeremy Orlow.

        [chromium] add WebIDBFactory::deleteDatabase method
        https://bugs.webkit.org/show_bug.cgi?id=54447

        * public/WebIDBFactory.h:
        (WebKit::WebIDBFactory::open):
        (WebKit::WebIDBFactory::deleteDatabase):

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

8 years ago2011-02-15 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Tue, 15 Feb 2011 21:03:16 +0000 (21:03 +0000)]
2011-02-15  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Darin Adler.

        Moved MarkedBlock data members to the head of the block
        https://bugs.webkit.org/show_bug.cgi?id=54482

        This allows for a variable-sized tail, to accommodate oversized blocks.

        SunSpider reports no change.

        * runtime/JSCell.h:
        (JSC::JSCell::MarkedBlock::allocate):
        * runtime/MarkedBlock.cpp:
        (JSC::MarkedBlock::destroy):
        (JSC::MarkedBlock::MarkedBlock):
        (JSC::MarkedBlock::sweep):
        * runtime/MarkedBlock.h: Added missing element to the CELLS_PER_BLOCK
        calculation. This kind of error is why we want to migrate to the system
        described below.

        (JSC::roundUpToMultipleOf):
        (JSC::MarkedBlock::firstCell):
        (JSC::MarkedBlock::cells):
        (JSC::MarkedBlock::cellNumber): Use subtraction instead of masking to
        calculate cell number. The mask is no longer correct because the first
        cell is not at the head of the block.

        (JSC::MarkedBlock::forEach): Replaced m_cells data member with a cells()
        accessor. We want to use sizeof(MarkedBlock) to calculate the size of the
        block header, so we can't have an explicit data member to represent the block tail.

        Also replaced iteration from zero with iteration from startCell(), since
        the first N cells are now occupied by the header.

        * runtime/MarkedSpace.cpp:
        (JSC::MarkedSpace::MarkedSpace):
        (JSC::MarkedSpace::reset): Replaced iteration from zero as above.

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

8 years ago2011-02-15 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Tue, 15 Feb 2011 20:50:56 +0000 (20:50 +0000)]
2011-02-15  Anders Carlsson  <andersca@apple.com>

        Reviewed by Darin Adler.

        Add NPP_GetSitesWithData and NPP_URLRedirectNotify to the NPAPI headers
        https://bugs.webkit.org/show_bug.cgi?id=54481

        We should really sync all headers with the NPAPI repository, but doing that
        lead to build errors so I just added what was needed.

        * bridge/npapi.h:
        Add new functions.

        * bridge/nptypes.h:
        Sync with the official NPAPI repository, adding 64-bit integer types and
        removing a duplicate license header.

        * plugins/npfunctions.h:
        Add new functions.

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

8 years ago Reviewed by Darin Adler.
ap@apple.com [Tue, 15 Feb 2011 20:37:14 +0000 (20:37 +0000)]
    Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=54480
        <rdar://problem/8975229> REGRESSION (WebKit2): A web page remains unresponsive for a long
        time after printing

        Nothing was painted until moving the mouse over browser chrome, deactivating the window,
        or taking some other drastic measure like that.

        * UIProcess/API/mac/PageClientImpl.mm: (WebKit::PageClientImpl::setAutodisplay):
        Call -[NSView displayIfNeeded] after enabling autodisplay. For some reason, this makes
        WebCore push updates again.

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

8 years agohttps://bugs.webkit.org/show_bug.cgi?id=54486
antti@apple.com [Tue, 15 Feb 2011 20:29:03 +0000 (20:29 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=54486
Crashes under CachedResourceLoader::revalidateResource

Reviewed by Darin Adler.

CachedResourceLoader might get deleted from under one of its methods.
Try to catch a more informative crash stack.

* loader/cache/CachedResourceLoader.cpp:
(WebCore::CachedResourceLoader::CachedResourceLoader):
(WebCore::CachedResourceLoader::~CachedResourceLoader):
(WebCore::CachedResourceLoader::requestImage):
(WebCore::CachedResourceLoader::requestUserCSSStyleSheet):
(WebCore::CachedResourceLoader::requestResource):
(WebCore::CachedResourceLoader::setAutoLoadImages):
(WebCore::CachedResourceLoader::load):
(WebCore::CachedResourceLoader::loadDone):
(WebCore::CachedResourceLoader::preload):
(WebCore::CachedResourceLoader::requestPreload):
* loader/cache/CachedResourceLoader.h:

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

8 years ago2011-02-15 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Tue, 15 Feb 2011 20:12:40 +0000 (20:12 +0000)]
2011-02-15  Dirk Pranke  <dpranke@chromium.org>

        Reviewed by Tony Chang.

        Make new-run-webkit-tests --processes work under Windows' weird
        multiprocessing model. This requires us to be running a Python
        file that can be imported as a module, so I've modified the
        new-run-webkit-tests script to spawn a subprocess runing
        webkitpy.layout_tests.run_webkit_tests.py. I've also modified
        the manager_worker_broker tests because you can't pickle a
        nested class. This requires us to use globals to pass queues
        back and forth for testing, but the alternative is to pass extra
        arguments to start_worker() and that feels like a bad tradeoff
        just for testing.

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

        * Scripts/new-run-webkit-tests:
        * Scripts/webkitpy/layout_tests/layout_package/manager_worker_broker_unittest.py:

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

8 years ago2011-02-15 Sam Weinig <sam@webkit.org>
weinig@apple.com [Tue, 15 Feb 2011 20:10:31 +0000 (20:10 +0000)]
2011-02-15  Sam Weinig  <sam@webkit.org>

        Reviewed by Darin Adler.

        Crash loading fast/loader/empty-embed-src-attribute.html
        <rdar://problem/9005541>
        https://bugs.webkit.org/show_bug.cgi?id=54483

        Add the ability to encode/decode and empty ResourceRequest.

        * Shared/mac/WebCoreArgumentCodersMac.mm:
        (CoreIPC::encodeResourceRequest):
        (CoreIPC::decodeResourceRequest):
        (CoreIPC::decodeResourceResponse): Add missing false check for the
        decode step.
        * Shared/win/WebCoreArgumentCodersWin.cpp:
        (CoreIPC::encodeResourceRequest):
        (CoreIPC::decodeResourceRequest):
        (CoreIPC::decodeResourceResponse): Add missing false check for the
        decode step.

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

8 years ago2011-02-15 Stephen White <senorblanco@chromium.org>
senorblanco@chromium.org [Tue, 15 Feb 2011 20:02:43 +0000 (20:02 +0000)]
2011-02-15  Stephen White  <senorblanco@chromium.org>

        Unreviewed; new Chromium/Linux test baselines.

        canvas-composite.html rebaselined due to new GPU-based path drawing code.
        canvas-text-alignment and image-object-in-canvas rebaselined due to slight pixel differences near the scrollbar.

        * platform/chromium-gpu-linux/fast/canvas/canvas-composite-expected.checksum:
        * platform/chromium-gpu-linux/fast/canvas/canvas-composite-expected.png:
        * platform/chromium-gpu-linux/fast/canvas/canvas-text-alignment-expected.checksum:
        * platform/chromium-gpu-linux/fast/canvas/canvas-text-alignment-expected.png:
        * platform/chromium-gpu-linux/fast/canvas/image-object-in-canvas-expected.checksum:
        * platform/chromium-gpu-linux/fast/canvas/image-object-in-canvas-expected.png:

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

8 years ago2011-02-15 Tony Chang <tony@chromium.org>
tony@chromium.org [Tue, 15 Feb 2011 19:58:50 +0000 (19:58 +0000)]
2011-02-15  Tony Chang  <tony@chromium.org>

        Unreviewed, update the version of Chromium in webkit.

        * DEPS:

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

8 years ago2011-02-15 Chris Rogers <crogers@google.com>
crogers@google.com [Tue, 15 Feb 2011 19:52:49 +0000 (19:52 +0000)]
2011-02-15  Chris Rogers  <crogers@google.com>

        Reviewed by Alexey Proskuryakov.

        Fix Mutex::tryLock() on Windows to work properly with PlatformCondition::timedWait()
        https://bugs.webkit.org/show_bug.cgi?id=54408

        * wtf/ThreadingWin.cpp:
        (WTF::PlatformCondition::timedWait):

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

8 years ago2011-02-15 Andreas Kling <kling@webkit.org>
andreas.kling@nokia.com [Tue, 15 Feb 2011 19:47:37 +0000 (19:47 +0000)]
2011-02-15  Andreas Kling  <kling@webkit.org>

        Reviewed by Darin Adler.

        Optimize Color::serialized()
        https://bugs.webkit.org/show_bug.cgi?id=54452

        Apply the optimizations from CSSPrimitiveValue::cssText() [CSS_RGBCOLOR]
        to Color::serialized() - build the serialized color strings manually
        instead of using String::format().

        * platform/graphics/Color.cpp:
        (WebCore::appendHexNumber):
        (WebCore::Color::serialized):

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

8 years ago2011-02-15 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Tue, 15 Feb 2011 19:26:54 +0000 (19:26 +0000)]
2011-02-15  Martin Robinson  <mrobinson@igalia.com>

        Import the last set of GTK+ baselines for SVG tests.

        * platform/gtk/Skipped: Unskip tests which now have results. Classify failures.

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

8 years ago2011-02-15 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Tue, 15 Feb 2011 19:17:26 +0000 (19:17 +0000)]
2011-02-15  Martin Robinson  <mrobinson@igalia.com>

        Add the next batch of GTK+ SVG results.

        * platform/gtk/Skipped: Unskip tests which now have results.

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

8 years ago2011-02-15 Andreas Kling <kling@webkit.org>
andreas.kling@nokia.com [Tue, 15 Feb 2011 19:17:14 +0000 (19:17 +0000)]
2011-02-15  Andreas Kling  <kling@webkit.org>

        Unreviewed Qt build fix after r78588.

        * UIProcess/API/qt/qwkpage.cpp:
        (QWKPage::QWKPage): Add WKPageLoaderClient::shouldGoToHistoryItem.

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

8 years ago2011-02-15 Sheriff Bot <webkit.review.bot@gmail.com>
mario@webkit.org [Tue, 15 Feb 2011 19:10:34 +0000 (19:10 +0000)]
2011-02-15  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r78579.
        http://trac.webkit.org/changeset/78579
        https://bugs.webkit.org/show_bug.cgi?id=54479

        Undo wrong rebaseline for Gtk results (Requested by msanchez
        on #webkit).

        * platform/gtk/fast/block/float/marquee-shrink-to-avoid-floats-expected.txt:

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

8 years ago2011-02-15 Jarred Nicholls <jarred@sencha.com>
commit-queue@webkit.org [Tue, 15 Feb 2011 19:10:12 +0000 (19:10 +0000)]
2011-02-15  Jarred Nicholls  <jarred@sencha.com>

        Reviewed by Alexey Proskuryakov.

        XMLHttpRequest::abort() doesn't clear response data
        https://bugs.webkit.org/show_bug.cgi?id=54118

        Properly clear all buffer data on abort, so no memory hangs around unnecessarily.

        No new tests because there is no observable effect except for less memory used.

        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::abort):

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

8 years ago2011-02-15 Andreas Kling <kling@webkit.org>
andreas.kling@nokia.com [Tue, 15 Feb 2011 19:01:17 +0000 (19:01 +0000)]
2011-02-15  Andreas Kling  <kling@webkit.org>

        Reviewed by Darin Adler.

        Rename Color::name() to Color::nameForRenderTreeAsText()
        https://bugs.webkit.org/show_bug.cgi?id=54464

        Color::name() returns the color as either #RRGGBB or #RRGGBBAA.
        Since the latter is not a valid CSS color, it can't be re-parsed
        by WebKit, and should only be used in DRT dumps.

        * editing/ApplyStyleCommand.cpp:
        (WebCore::StyleChange::extractTextStyles):
        * page/DragController.cpp:
        (WebCore::DragController::concludeEditDrag):
        * platform/graphics/Color.cpp:
        (WebCore::Color::nameForRenderTreeAsText):
        * platform/graphics/Color.h:
        * platform/graphics/GraphicsLayer.cpp:
        (WebCore::GraphicsLayer::dumpProperties):
        * platform/graphics/filters/FEFlood.cpp:
        (WebCore::FEFlood::externalRepresentation):
        * rendering/RenderTreeAsText.cpp:
        (WebCore::RenderTreeAsText::writeRenderObject):
        * rendering/svg/SVGRenderTreeAsText.cpp:
        (WebCore::operator<<):
        (WebCore::writeRenderSVGTextBox):
        * svg/SVGAnimateElement.cpp:
        (WebCore::SVGAnimateElement::applyResultsToTarget):
        * svg/SVGColor.cpp:
        (WebCore::SVGColor::cssText):

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

8 years agoStop using deprecated API to flip the dragImage.
enrica@apple.com [Tue, 15 Feb 2011 18:57:08 +0000 (18:57 +0000)]
Stop using deprecated API to flip the dragImage.
<rdar://problem/8930897>
https://bugs.webkit.org/show_bug.cgi?id=54477

Reviewed by Darin Adler.

NSImage setFlipped is a deprecated API. We replace it with
drawInRect:fromRect:operation:fraction:respectFlipped:hints.

* UIProcess/API/mac/PageClientImpl.mm:
(WebKit::PageClientImpl::setDragImage): Removed call to setFlipped.
* WebProcess/WebCoreSupport/mac/WebDragClientMac.mm:
(WebKit::WebDragClient::startDrag): The image is now drawn with
drawInRect:fromRect:operation:fraction:respectFlipped:hints.

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

8 years ago<rdar://problem/9002047> and https://bugs.webkit.org/show_bug.cgi?id=54426
beidson@apple.com [Tue, 15 Feb 2011 18:46:04 +0000 (18:46 +0000)]
<rdar://problem/9002047> and https://bugs.webkit.org/show_bug.cgi?id=54426
WebFrameLoaderClient::shouldGoToHistoryItem needs implementation

Reviewed by Darin Adler.

Source/WebKit2:

Expose HistoryItem -> ItemID mapping for the message:
* WebProcess/WebPage/WebBackForwardListProxy.cpp:
(WebKit::WebBackForwardListProxy::idForItem):
* WebProcess/WebPage/WebBackForwardListProxy.h:

Sync message to the UIProcess for the answer:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::shouldGoToHistoryItem):

Call out to the WebLoaderClient for the answer:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::shouldGoToBackForwardListItem):
* UIProcess/WebPageProxy.h:
* UIProcess/WebPageProxy.messages.in:

Call out to the client application for the answer:
* UIProcess/WebLoaderClient.cpp:
(WebKit::WebLoaderClient::shouldGoToBackForwardListItem):
* UIProcess/WebLoaderClient.h:

Add API for the client application to listen for this:
* UIProcess/API/C/WKPage.h:

Tools:

Add dummy implementations to keep our tools building.

* MiniBrowser/mac/BrowserWindowController.m:
(-[BrowserWindowController awakeFromNib]):

* WebKitTestRunner/TestController.cpp:
(WTR::TestController::initialize):

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

8 years ago2011-02-15 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Tue, 15 Feb 2011 18:43:02 +0000 (18:43 +0000)]
2011-02-15  Martin Robinson  <mrobinson@igalia.com>

        Import the next batch of GTK+ SVG test results and correct an incorrect
        line in the skipped list.

        * platform/gtk/Skipped: Unskip tests which now have results.

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

8 years ago2011-02-15 Mikhail Naganov <mnaganov@chromium.org>
mnaganov@chromium.org [Tue, 15 Feb 2011 18:38:36 +0000 (18:38 +0000)]
2011-02-15  Mikhail Naganov  <mnaganov@chromium.org>

        [Chromium] Unreviewed test expectations update.
        SKIP two more Inspector tests, from r78581 (by pfeldman's request).

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

8 years ago2011-02-15 Andras Becsi <abecsi@webkit.org>
abecsi@webkit.org [Tue, 15 Feb 2011 18:25:05 +0000 (18:25 +0000)]
2011-02-15  Andras Becsi  <abecsi@webkit.org>

        Rubber-stamped by Andreas Kling.

        [Qt] Typo fix.

        No new tests needed.

        * WebCore.pro: add missing ASCII to header name.

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

8 years ago2011-02-15 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Tue, 15 Feb 2011 18:22:28 +0000 (18:22 +0000)]
2011-02-15  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed: expectations update for r78548 and r78576.

        * platform/mac-leopard/inspector/extensions/extensions-resources-expected.txt: Removed.
        * platform/qt/Skipped:

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

8 years ago2011-02-15 Martin Robinson <mrobinson@igalia.com>
mrobinson@webkit.org [Tue, 15 Feb 2011 18:18:25 +0000 (18:18 +0000)]
2011-02-15  Martin Robinson  <mrobinson@igalia.com>

        Continue importing GTK+ SVG test results.

        * platform/gtk/Skipped: Unskip tests which now have results.

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

8 years ago2011-02-15 Mikhail Naganov <mnaganov@chromium.org>
mnaganov@chromium.org [Tue, 15 Feb 2011 18:14:40 +0000 (18:14 +0000)]
2011-02-15  Mikhail Naganov  <mnaganov@chromium.org>

        [Chromium] Unreviewed test expectations update.
        SKIP two Inspector tests (by pfeldman's request).

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

8 years ago2011-02-15 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Tue, 15 Feb 2011 18:07:22 +0000 (18:07 +0000)]
2011-02-15  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: test whether inspector gets populated with databases and storages upon opening.
        https://bugs.webkit.org/show_bug.cgi?id=54469

        * http/tests/inspector-enabled/database-open-expected.txt: Added.
        * http/tests/inspector-enabled/database-open.html: Added.
        * http/tests/inspector-enabled/dom-storage-open-expected.txt: Added.
        * http/tests/inspector-enabled/dom-storage-open.html: Added.
2011-02-15  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: test whether inspector gets populated with databases and storages upon opening.
        https://bugs.webkit.org/show_bug.cgi?id=54469

        Tests: http/tests/inspector-enabled/database-open.html
               http/tests/inspector-enabled/dom-storage-open.html

        * inspector/front-end/DOMStorage.js:
        * inspector/front-end/Database.js:
        (WebInspector.DatabaseDispatcher.prototype.addDatabase):

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

8 years ago2011-02-15 Andreas Kling <kling@webkit.org>
andreas.kling@nokia.com [Tue, 15 Feb 2011 17:58:26 +0000 (17:58 +0000)]
2011-02-15  Andreas Kling  <kling@webkit.org>

        Reviewed by Darin Adler.

        Share the helper functions used by Latin-1 and UTF-8 text codecs
        https://bugs.webkit.org/show_bug.cgi?id=54446

        Move MachineWord, UCharByteFiller and the other helper functions
        into TextCodecASCIIFastPath.h where they can be used by both
        TextCodecUTF8 and TextCodecLatin1.

        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * platform/text/TextCodecASCIIFastPath.h: Added.
        (WebCore::isAllASCII):
        (WebCore::copyASCIIMachineWord):
        (WebCore::isAlignedToMachineWord):
        (WebCore::alignToMachineWord):
        * platform/text/TextCodecLatin1.cpp:
        (WebCore::TextCodecLatin1::decode):
        * platform/text/TextCodecUTF8.cpp:
        (WebCore::TextCodecUTF8::decode):

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

8 years ago2011-02-15 Mario Sanchez Prada <msanchez@igalia.com>
mario@webkit.org [Tue, 15 Feb 2011 17:52:22 +0000 (17:52 +0000)]
2011-02-15  Mario Sanchez Prada  <msanchez@igalia.com>

        Unreviewed, rebaseline of Gtk result.

        * platform/gtk/fast/block/float/marquee-shrink-to-avoid-floats-expected.txt:

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

8 years agoFix Anders typo. false -> 0.
weinig@apple.com [Tue, 15 Feb 2011 17:49:22 +0000 (17:49 +0000)]
Fix Anders typo. false -> 0.

Reviewed by Anders Carlsson.

* Platform/mac/SharedMemoryMac.cpp:
(WebKit::SharedMemory::create):

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

8 years ago[Chromium] Unreviewed text expectations fix
mnaganov@chromium.org [Tue, 15 Feb 2011 17:45:56 +0000 (17:45 +0000)]
[Chromium] Unreviewed text expectations fix

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

8 years ago2011-02-15 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Tue, 15 Feb 2011 17:41:11 +0000 (17:41 +0000)]
2011-02-15  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: implement DOM agent tests.
        https://bugs.webkit.org/show_bug.cgi?id=54459

        * http/tests/inspector/elements-test.js:
        (initialize_ElementTest.InspectorTest.expandedNodeWithId.callback):
        (initialize_ElementTest.InspectorTest.expandedNodeWithId):
        (initialize_ElementTest.InspectorTest.dumpElementsTree):
        (initialize_ElementTest.InspectorTest.dumpElementsTree.print):
        (initialize_ElementTest.InspectorTest.expandElementsTree):
        (initialize_ElementTest.InspectorTest.expandElementsTree.mycallback):
        (initialize_ElementTest.InspectorTest.dumpDOMAgentTree):
        (initialize_ElementTest):
        * http/tests/inspector/extensions-resources-redirect-expected.txt:
        * http/tests/inspector/inspector-test.js:
        (initialize_InspectorTest.InspectorTest.addResult.clearResults):
        (initialize_InspectorTest.InspectorTest.runTestSuite.runner):
        (initialize_InspectorTest.InspectorTest.runTestSuite):
        (output):
        (clearOutput):
        * inspector/debugger/dom-breakpoints.html:
        * inspector/elements/elements-panel-limited-children-expected.txt:
        * inspector/elements/elements-panel-rewrite-href.html:
        * inspector/elements/elements-panel-structure-expected.txt:
        * inspector/elements/elements-panel-structure.html:
        * inspector/elements/elements-panel-xhtml-structure-expected.txt:
        * inspector/elements/elements-panel-xhtml-structure.xhtml:
        * inspector/elements/insert-node-collapsed-expected.txt: Added.
        * inspector/elements/insert-node-collapsed.html: Added.
        * inspector/elements/insert-node-expected.txt: Added.
        * inspector/elements/insert-node.html: Added.
        * inspector/elements/modify-chardata-expected.txt: Added.
        * inspector/elements/modify-chardata.html: Added.
        * inspector/elements/mutate-unknown-node-expected.txt: Added.
        * inspector/elements/mutate-unknown-node.html: Added.
        * inspector/elements/remove-node-expected.txt: Added.
        * inspector/elements/remove-node.html: Added.
        * inspector/elements/set-attribute.html: Added.
        * inspector/extensions/extensions-expected.txt:

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

8 years ago2011-02-15 Leo Yang <leo.yang@torchmobile.com.cn>
commit-queue@webkit.org [Tue, 15 Feb 2011 17:36:38 +0000 (17:36 +0000)]
2011-02-15  Leo Yang  <leo.yang@torchmobile.com.cn>

        Reviewed by Kent Tamura.

        Code style issue in WebCore/dom/InputElement.cpp
        https://bugs.webkit.org/show_bug.cgi?id=54428

        Remove 2 extra spaces in InputElement.cpp line 221.

        Code style fix, No new tests.

        * dom/InputElement.cpp:
        (WebCore::InputElement::handleBeforeTextInsertedEvent):

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

8 years ago2011-02-15 Mikhail Naganov <mnaganov@chromium.org>
mnaganov@chromium.org [Tue, 15 Feb 2011 17:30:02 +0000 (17:30 +0000)]
2011-02-15  Mikhail Naganov  <mnaganov@chromium.org>

        [Chromium] Unreviewed test expectations update.
        Mark svg/custom/use-css-no-effect-on-shadow-tree.svg as passing.
        Mark media/audio-delete-while-slider-thumb-clicked.html as timing out.
        https://bugs.webkit.org/show_bug.cgi?id=54472

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

8 years ago2011-02-15 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Tue, 15 Feb 2011 17:29:58 +0000 (17:29 +0000)]
2011-02-15  Xan Lopez  <xlopez@igalia.com>

        Reviewed by Martin Robinson.

        Remove some dead code in ARMv7
        https://bugs.webkit.org/show_bug.cgi?id=54461

        * assembler/ARMv7Assembler.h: remove dead code.

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

8 years ago2011-02-15 Mario Sanchez Prada <msanchez@igalia.com>
mario@webkit.org [Tue, 15 Feb 2011 17:28:30 +0000 (17:28 +0000)]
2011-02-15  Mario Sanchez Prada  <msanchez@igalia.com>

        Unreviewed, test crashing because of failing ASSERT on GTK 64-bit debug bot.

        [GTK] svg/text/select-textLength-spacing-squeeze-1.svg crashes due to ASSERT failing
        https://bugs.webkit.org/show_bug.cgi?id=54470

        * platform/gtk/Skipped: Skipped test.

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

8 years ago2011-02-15 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Tue, 15 Feb 2011 16:59:06 +0000 (16:59 +0000)]
2011-02-15  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Martin Robinson.

        [GStreamer] Video player sets system volume to 100%
        https://bugs.webkit.org/show_bug.cgi?id=54140

        Don't explicitely set volume at startup and use the
        GstStreamVolume interface with cubic volume scale when
        updating/retrieving the volume value. This gives a much better
        user-experience.

        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
        (WebCore::MediaPlayerPrivateGStreamer::createGSTPlayBin):

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

8 years ago2011-02-15 Zan Dobersek <zandobersek@gmail.com>
commit-queue@webkit.org [Tue, 15 Feb 2011 16:48:37 +0000 (16:48 +0000)]
2011-02-15  Zan Dobersek  <zandobersek@gmail.com>

        Reviewed by Andreas Kling.

        [Gtk] Cleanup in the canvas tests
        https://bugs.webkit.org/show_bug.cgi?id=54458

        Unskip canvas tests that already pass.

        * platform/gtk/Skipped:

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

8 years ago2011-02-15 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Tue, 15 Feb 2011 16:47:38 +0000 (16:47 +0000)]
2011-02-15  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Sketch script-src for Content Security Policy
        https://bugs.webkit.org/show_bug.cgi?id=54381

        * http/tests/security/contentSecurityPolicy/script-loads-with-img-src-expected.txt: Added.
        * http/tests/security/contentSecurityPolicy/script-loads-with-img-src.html: Added.
            - Test that we don't block scripts when the policy is just img-src.
        * http/tests/security/contentSecurityPolicy/script-src-in-iframe.html:
        * http/tests/security/contentSecurityPolicy/script-src-none.html:
        * http/tests/security/contentSecurityPolicy/script-src-redirect.html:
            - Turns out we need to escape the ; character in order for it to be
              echoed back correctly in the header.
2011-02-15  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Sketch script-src for Content Security Policy
        https://bugs.webkit.org/show_bug.cgi?id=54381

        This patch provides a sketch of the script-src directive.  We still do
        not parse the value of the directive, and the wiring into the rest of
        WebCore is incorrect, but those are things we can fix in future
        patches.  For the momemnt, this patch lets us test what we're doing.

        Test: http/tests/security/contentSecurityPolicy/script-loads-with-img-src.html

        * page/ContentSecurityPolicy.cpp:
        (WebCore::CSPDirective::CSPDirective):
        (WebCore::CSPDirective::allows):
        (WebCore::ContentSecurityPolicy::didReceiveHeader):
        (WebCore::ContentSecurityPolicy::canLoadExternalScriptFromSrc):
        (WebCore::ContentSecurityPolicy::parse):
        (WebCore::ContentSecurityPolicy::emitDirective):
        * page/ContentSecurityPolicy.h:

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

8 years agosvg/custom/use-css-no-effect-on-shadow-tree.svg produces empty image on Chromium...
antti@apple.com [Tue, 15 Feb 2011 16:45:58 +0000 (16:45 +0000)]
svg/custom/use-css-no-effect-on-shadow-tree.svg produces empty image on Chromium Linux after r58556
https://bugs.webkit.org/show_bug.cgi?id=54460

Reviewed by Andreas Kling.

Don't use fast path for SVG. There are some additional rules for shadow trees that are not
implemented on fast path.

* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::checkSelector):

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

8 years ago2011-02-15 Mario Sanchez Prada <msanchez@igalia.com>
mario@webkit.org [Tue, 15 Feb 2011 16:41:21 +0000 (16:41 +0000)]
2011-02-15  Mario Sanchez Prada  <msanchez@igalia.com>

        Unreviewed, skipping flaky test on GTK 64-bit debug bot.

        editing/selection/end-of-document.html is failing in the GTK 64-bit debug bot
        https://bugs.webkit.org/show_bug.cgi?id=53995

        * platform/gtk/Skipped: Skipped flaky test.

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

8 years ago2011-02-15 Andras Becsi <abecsi@webkit.org>
abecsi@webkit.org [Tue, 15 Feb 2011 16:15:40 +0000 (16:15 +0000)]
2011-02-15  Andras Becsi  <abecsi@webkit.org>

        Reviewed by Csaba Osztrogonác.

        [Qt] Redesign the build system
        https://bugs.webkit.org/show_bug.cgi?id=51339

        Part 1.

        Introduce CodeGenerators.pri and add common includepaths to WebCore.pri,
        thus unnecessary duplications can be removed from project files.

        No new tests needed.

        * CodeGenerators.pri: Copied from Source/WebCore/WebCore.pri.
        Don't add non-source generated files to SOURCES.
        * DerivedSources.pro: Change WebCore.pri to CodeGenerators.pri.
        * WebCore.pri: Move code generation rules to CodeGenerators.pri.
        * WebCore.pro: Move common options to WebCore.pri.
2011-02-15  Andras Becsi  <abecsi@webkit.org>

        Reviewed by NOBODY Csaba Osztrogonác.

        [Qt] Redesign the build system
        https://bugs.webkit.org/show_bug.cgi?id=51339

        Part 1.

        Introduce CodeGenerators.pri and add common includepaths to WebCore.pri,
        thus unnecessary duplications can be removed from project files.

        * WebKit2.pro: Simplify and deduplicate includepaths.

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

8 years ago2011-02-15 Benjamin Kalman <kalman@chromium.org>
kalman@chromium.org [Tue, 15 Feb 2011 16:14:47 +0000 (16:14 +0000)]
2011-02-15  Benjamin Kalman  <kalman@chromium.org>

        Reviewed by Ryosuke Niwa.

        Refactor the extend-selection tests to be clearer what they're doing
        https://bugs.webkit.org/show_bug.cgi?id=54429

        This is essentially a cleanup to extend-selection.js and propagation of those changes to the affected tests.

        * editing/selection/extend-selection-character.html:
        * editing/selection/extend-selection-enclosing-block.html:
        * editing/selection/extend-selection-home-end.html:
        * editing/selection/extend-selection-word.html:
        * editing/selection/resources/extend-selection.js:
        (getSerializedSelection):
        (extendSelectionWithinBlock):
        (extendSelectionToEnd):
        (fold):
        (logMismatchingPositions):
        (extendAndLogSelection):
        (extendAndLogSelectionWithinBlock):
        (extendAndLogSelectionToEnd):
        (runSelectionTestsWithGranularity):
        (getTestNodeContainer):
        (createNode):
        (createCharAndWordNodes):
        (createEnclosingBlockNodes):
        (createHomeEndNodes):
        (createAllNodes):
        (.window.onload):

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

8 years ago2011-02-15 Mikhail Naganov <mnaganov@chromium.org>
mnaganov@chromium.org [Tue, 15 Feb 2011 15:58:22 +0000 (15:58 +0000)]
2011-02-15  Mikhail Naganov  <mnaganov@chromium.org>

        [Chromium] Unreviewed test expectations update.
        Mark svg/custom/use-css-no-effect-on-shadow-tree.svg as failing.
        https://bugs.webkit.org/show_bug.cgi?id=54460

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

8 years ago2011-02-15 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Tue, 15 Feb 2011 15:56:26 +0000 (15:56 +0000)]
2011-02-15  Philippe Normand  <pnormand@igalia.com>

        Reviewed by Eric Carlson.

        [GTK] media/audio-delete-while-slider-thumb-clicked.html is flaky
        https://bugs.webkit.org/show_bug.cgi?id=53247

        Refactored the test to use the seeking event instead of timeupdate
        and avoid flakyness.

        * media/audio-delete-while-slider-thumb-clicked-expected.txt:
        * media/audio-delete-while-slider-thumb-clicked.html:
        * platform/gtk/Skipped:

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

8 years ago2011-02-15 Charlie Reis <creis@chromium.org>
commit-queue@webkit.org [Tue, 15 Feb 2011 15:55:21 +0000 (15:55 +0000)]
2011-02-15  Charlie Reis  <creis@chromium.org>

        Reviewed by Mihai Parparita.

        Crash in WebCore::FrameLoader::continueLoadAfterNavigationPolicy
        https://bugs.webkit.org/show_bug.cgi?id=54219

        Ensures we do not start a new navigation while we are in the process of
        stopping a navigation.  Also adds a manual test, since the crash can
        only be reproduced using the back button and not history.back().

        * loader/FrameLoader.cpp:
        * manual-tests/navigation-during-onload-triggered-by-back.html: Added.
        * manual-tests/resources/navigation-during-onload-container.html: Added.

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

8 years ago2011-02-15 Dirk Schulze <krit@webkit.org>
krit@webkit.org [Tue, 15 Feb 2011 15:48:37 +0000 (15:48 +0000)]
2011-02-15  Dirk Schulze  <krit@webkit.org>

        Unreviewed rebaseline.

        SVG animation doesn't support attribute value 'inherit'
        https://bugs.webkit.org/show_bug.cgi?id=54410

        Rebaseline of Gtk result.

        * platform/gtk/svg/W3C-SVG-1.1/animate-elem-31-t-expected.txt:

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

8 years agoUnreviewed. Add myself to the list of committers.
jeffm@apple.com [Tue, 15 Feb 2011 15:47:35 +0000 (15:47 +0000)]
Unreviewed. Add myself to the list of committers.

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