WebKit-https.git
9 years agoWebCore: SVGFEConvolveMatrixElement doesn't support dynamic invalidation
reni@webkit.org [Mon, 8 Nov 2010 10:43:35 +0000 (10:43 +0000)]
WebCore: SVGFEConvolveMatrixElement doesn't support dynamic invalidation
https://bugs.webkit.org/show_bug.cgi?id=47660

Patch by Renata Hodovan <reni@webkit.org> on 2010-11-08
Reviewed by Nikolas Zimmermann.

Wrap orderX and orderY into the common order property according to the w3 standard and remove them from svnattrs.in.
The patch implements the orderXIdentifier and orderYIdentifier getter functions to reach
properly the orderX and orderY components of order property from SVG DOM.

Tests: svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-bias-prop.html
       svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-divisor-prop.html
       svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-edgeMode-prop.html
       svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-in-prop.html
       svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-kernelMatrix-prop.html
       svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-kernelUnitLength-prop.html
       svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-order-prop.html
       svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-preserveAlpha-prop.html
       svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-targetX-prop.html
       svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-targetY-prop.html

* svg/SVGFEConvolveMatrixElement.cpp:
(WebCore::SVGFEConvolveMatrixElement::orderXIdentifier):
(WebCore::SVGFEConvolveMatrixElement::orderYIdentifier):
* svg/SVGFEConvolveMatrixElement.h:
* svg/svgattrs.in:

LayoutTests: SVGFEConvolveMatrixElement doesn't support dynamic invalidation, when attributes change.
https://bugs.webkit.org/show_bug.cgi?id=47660

Patch by Renata Hodovan <reni@webkit.org> on 2010-11-08
Reviewed by Nikolas Zimmermann.

This patch contains the SVG DOM dynamic update tests of feConvolveMatrix and it
fixes the DOM test of order attribute because the product of order components should be equal the
size of the kernelMatrix.

* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-bias-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-bias-prop-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-divisor-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-divisor-prop-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-edgeMode-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-edgeMode-prop-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-in-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-in-prop-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-kernelMatrix-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-kernelMatrix-prop-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-kernelUnitLength-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-kernelUnitLength-prop-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-order-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-order-prop-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-preserveAlpha-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-preserveAlpha-prop-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-targetX-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-targetX-prop-expected.png: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-targetY-prop-expected.checksum: Added.
* platform/mac/svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-targetY-prop-expected.png: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-bias-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-bias-prop.html: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-divisor-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-divisor-prop.html: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-edgeMode-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-edgeMode-prop.html: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-in-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-in-prop.html: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-kernelMatrix-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-kernelMatrix-prop.html: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-kernelUnitLength-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-kernelUnitLength-prop.html: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-order-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-order-prop.html: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-preserveAlpha-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-preserveAlpha-prop.html: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-targetX-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-targetX-prop.html: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-targetY-prop-expected.txt: Added.
* svg/dynamic-updates/SVGFEConvolveMatrixElement-svgdom-targetY-prop.html: Added.
* svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-dom-order-attr.js:
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-svgdom-bias-prop.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-svgdom-divisor-prop.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-svgdom-edgeMode-prop.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-svgdom-in-prop.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-svgdom-kernelMatrix-prop.js: Added.
(SVGNumberListToString):
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-svgdom-kernelUnitLength-prop.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-svgdom-order-prop.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-svgdom-preserveAlpha-prop.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-svgdom-targetX-prop.js: Added.
(executeTest):
* svg/dynamic-updates/script-tests/SVGFEConvolveMatrixElement-svgdom-targetY-prop.js: Added.
(executeTest):

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

9 years ago2010-11-08 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Mon, 8 Nov 2010 10:28:04 +0000 (10:28 +0000)]
2010-11-08  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed: follow up to inspector commit.
        https://bugs.webkit.org/show_bug.cgi?id=49130

        * inspector/front-end/ScriptsPanel.js:
        (WebInspector.ScriptsPanel.prototype.reset):
        * inspector/front-end/inspector.css:
        (.event-bar):

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

9 years ago2010-11-06 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Mon, 8 Nov 2010 10:12:36 +0000 (10:12 +0000)]
2010-11-06  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: add more event listener breakpoint types, add support for regular breakpoint hit state, beautify hit rendering.
        https://bugs.webkit.org/show_bug.cgi?id=49130

        * English.lproj/localizedStrings.js:
        * inspector/front-end/BreakpointManager.js:
        (WebInspector.BreakpointManager.prototype.debuggerPaused):
        (WebInspector.Breakpoint.jsBreakpointId):
        (WebInspector.Breakpoint.prototype.get id):
        * inspector/front-end/BreakpointsSidebarPane.js:
        (WebInspector.EventListenerBreakpointsSidebarPane):
        (WebInspector.EventListenerBreakpointsSidebarPane.prototype._createCategory):
        * inspector/front-end/ScriptsPanel.js:
        (WebInspector.ScriptsPanel):
        * inspector/front-end/inspector.css:
        (#elements-sidebar):
        (.pane > .body):
        (#scripts-sidebar):
        (li.breakpoint-hit .breakpoint-hit-marker):

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

9 years agoUnreviewed, updating Chromium expectations.
ukai@chromium.org [Mon, 8 Nov 2010 09:36:16 +0000 (09:36 +0000)]
Unreviewed, updating Chromium expectations.

Since r71493:r71496, http/tests/misc/prefetch-purpose.html start failing on Mac

* platform/chromium/test_expectations.txt:

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

9 years ago[Qt] REGRESSION (r71465): editing/selection/after-line-break.html fails
ossy@webkit.org [Mon, 8 Nov 2010 09:12:49 +0000 (09:12 +0000)]
[Qt] REGRESSION (r71465): editing/selection/after-line-break.html fails
https://bugs.webkit.org/show_bug.cgi?id=49127

* platform/qt/Skipped: editing/selection/after-line-break.html skipped until fix.

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

9 years ago2010-11-08 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Mon, 8 Nov 2010 08:59:24 +0000 (08:59 +0000)]
2010-11-08  Adam Barth  <abarth@webkit.org>

        Reviewed by Antti Koivisto.

        Rename CachedResourceLoader::m_doc to CachedResourceLoader::m_document
        https://bugs.webkit.org/show_bug.cgi?id=49163

        The usual convention is to use "document", not "doc" to refer to the
        document.

        * css/CSSCursorImageValue.cpp:
        (WebCore::CSSCursorImageValue::cachedImage):
        * dom/XMLDocumentParserLibxml2.cpp:
        (WebCore::shouldAllowExternalLoad):
        * loader/cache/CachedResourceLoader.cpp:
        (WebCore::CachedResourceLoader::CachedResourceLoader):
        (WebCore::CachedResourceLoader::frame):
        (WebCore::CachedResourceLoader::requestImage):
        (WebCore::CachedResourceLoader::canRequest):
        (WebCore::CachedResourceLoader::requestResource):
        (WebCore::CachedResourceLoader::printAccessDeniedMessage):
        (WebCore::CachedResourceLoader::preload):
        (WebCore::CachedResourceLoader::checkForPendingPreloads):
        (WebCore::CachedResourceLoader::requestPreload):
        * loader/cache/CachedResourceLoader.h:
        (WebCore::CachedResourceLoader::document):
        * loader/cache/MemoryCache.cpp:
        (WebCore::MemoryCache::requestResource):
        * loader/loader.cpp:
        (WebCore::Loader::load):
        (WebCore::Loader::Host::servePendingRequests):
        (WebCore::Loader::Host::didFinishLoading):
        (WebCore::Loader::Host::didFail):
        * xml/XSLTProcessorLibxslt.cpp:
        (WebCore::docLoaderFunc):

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

9 years ago2010-11-08 Eric Seidel <eric@webkit.org>
eric@webkit.org [Mon, 8 Nov 2010 08:42:44 +0000 (08:42 +0000)]
2010-11-08  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Add clean-review-queue command to remove closed bugs from the webkit.org/pending-review
        https://bugs.webkit.org/show_bug.cgi?id=49160

        Bugzilla doesn't automatically remove r? when a bug gets closed.
        This script takes care of that for webkit.org.

        * Scripts/webkitpy/common/net/bugzilla.py:
        * Scripts/webkitpy/tool/commands/upload.py:

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

9 years ago2010-11-07 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Mon, 8 Nov 2010 07:59:14 +0000 (07:59 +0000)]
2010-11-07  Adam Barth  <abarth@webkit.org>

        Unreviewed.  Remove some unneeded includes.

        * loader/FrameLoader.cpp:
        * loader/PlaceholderDocument.cpp:

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

9 years agoUnreviewed, updating Chromium expectations.
ukai@chromium.org [Mon, 8 Nov 2010 06:54:22 +0000 (06:54 +0000)]
Unreviewed, updating Chromium expectations.

* platform/chromium/test_expectations.txt:

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

9 years ago2010-11-07 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Mon, 8 Nov 2010 06:46:03 +0000 (06:46 +0000)]
2010-11-07  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename Cache to MemoryCache
        https://bugs.webkit.org/show_bug.cgi?id=49159

        * public/WebCache.h:
        * src/WebCache.cpp:
        (WebKit::ToResourceTypeStat):
        (WebKit::WebCache::setCapacities):
        (WebKit::WebCache::clear):
        (WebKit::WebCache::getUsageStats):
        (WebKit::WebCache::getResourceTypeStats):
2010-11-07  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename Cache to MemoryCache
        https://bugs.webkit.org/show_bug.cgi?id=49159

        * Api/qwebpage.cpp:
        * Api/qwebsettings.cpp:
2010-11-07  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename Cache to MemoryCache
        https://bugs.webkit.org/show_bug.cgi?id=49159

        * webkit/webkitwebview.cpp:
2010-11-07  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename Cache to MemoryCache
        https://bugs.webkit.org/show_bug.cgi?id=49159

        * WebCache.cpp:
        (WebCache::statistics):
        * WebFrame.cpp:
        * WebView.cpp:
2010-11-07  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename Cache to MemoryCache
        https://bugs.webkit.org/show_bug.cgi?id=49159

        * WebView.cpp:
        (wxWebView::SetCachePolicy):
        * WebView.h:
2010-11-07  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename Cache to MemoryCache
        https://bugs.webkit.org/show_bug.cgi?id=49159

        * Misc/WebCache.mm:
        (+[WebCache statistics]):
        * WebCoreSupport/WebDeviceOrientationClient.mm:
        (WebDeviceOrientationClient::setController):
        * WebView/WebView.mm:
2010-11-07  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename Cache to MemoryCache
        https://bugs.webkit.org/show_bug.cgi?id=49159

        So sayeth the diagram.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * css/CSSImageValue.cpp:
        * dom/ContainerNode.cpp:
        * history/PageCache.cpp:
        * inspector/InspectorCSSStore.h:
        * inspector/InspectorResourceAgent.cpp:
        * loader/FrameLoader.cpp:
        * loader/archive/cf/LegacyWebArchive.cpp:
        * loader/cache/Cache.cpp: Removed.
        * loader/cache/Cache.h: Removed.
        * loader/cache/CachedCSSStyleSheet.cpp:
        (WebCore::CachedCSSStyleSheet::allClientsRemoved):
        * loader/cache/CachedFont.cpp:
        * loader/cache/CachedFont.h:
        * loader/cache/CachedImage.cpp:
        (WebCore::CachedImage::destroyDecodedData):
        * loader/cache/CachedImage.h:
        * loader/cache/CachedResource.cpp:
        * loader/cache/CachedResource.h:
        * loader/cache/CachedResourceLoader.cpp:
        * loader/cache/CachedResourceLoader.h:
        * loader/cache/CachedScript.cpp:
        (WebCore::CachedScript::destroyDecodedData):
        * loader/cache/MemoryCache.cpp: Copied from WebCore/loader/cache/Cache.cpp.
        (WebCore::cache):
        (WebCore::MemoryCache::MemoryCache):
        (WebCore::MemoryCache::requestResource):
        (WebCore::MemoryCache::requestUserCSSStyleSheet):
        (WebCore::MemoryCache::revalidateResource):
        (WebCore::MemoryCache::revalidationSucceeded):
        (WebCore::MemoryCache::revalidationFailed):
        (WebCore::MemoryCache::resourceForURL):
        (WebCore::MemoryCache::deadCapacity):
        (WebCore::MemoryCache::liveCapacity):
        (WebCore::MemoryCache::pruneLiveResources):
        (WebCore::MemoryCache::pruneDeadResources):
        (WebCore::MemoryCache::setCapacities):
        (WebCore::MemoryCache::makeResourcePurgeable):
        (WebCore::MemoryCache::evict):
        (WebCore::MemoryCache::addCachedResourceLoader):
        (WebCore::MemoryCache::removeCachedResourceLoader):
        (WebCore::MemoryCache::lruListFor):
        (WebCore::MemoryCache::removeFromLRUList):
        (WebCore::MemoryCache::insertInLRUList):
        (WebCore::MemoryCache::resourceAccessed):
        (WebCore::MemoryCache::removeFromLiveDecodedResourcesList):
        (WebCore::MemoryCache::insertInLiveDecodedResourcesList):
        (WebCore::MemoryCache::addToLiveResourcesSize):
        (WebCore::MemoryCache::removeFromLiveResourcesSize):
        (WebCore::MemoryCache::adjustSize):
        (WebCore::MemoryCache::TypeStatistic::addResource):
        (WebCore::MemoryCache::getStatistics):
        (WebCore::MemoryCache::setDisabled):
        (WebCore::MemoryCache::dumpStats):
        (WebCore::MemoryCache::dumpLRULists):
        * loader/cache/MemoryCache.h: Copied from WebCore/loader/cache/Cache.h.
        (WebCore::MemoryCache::shouldMakeResourcePurgeableOnEviction):
        * loader/loader.cpp:
        * page/EventSource.cpp:
        * page/Settings.h:
        * xml/XMLHttpRequest.cpp:
        (WebCore::XMLHttpRequest::createRequest):
2010-11-07  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename Cache to MemoryCache
        https://bugs.webkit.org/show_bug.cgi?id=49159

        * WebProcess/WebProcess.cpp:
        * WebProcess/mac/WebProcessMac.mm:
        * WebProcess/win/WebProcessWin.cpp:

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

9 years agoUnreviewed, updating Chromium expectations.
ukai@chromium.org [Mon, 8 Nov 2010 05:57:04 +0000 (05:57 +0000)]
Unreviewed, updating Chromium expectations.

Add failures for crbug 62298, 62299, 62301

* platform/chromium/test_expectations.txt:

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

9 years ago2010-11-07 Eric Seidel <eric@webkit.org>
eric@webkit.org [Mon, 8 Nov 2010 05:47:28 +0000 (05:47 +0000)]
2010-11-07  Eric Seidel  <eric@webkit.org>

        Unreviewed.  Attempt to fix the windows build.

        Move the rest of the cache-related files into loader/cache
        https://bugs.webkit.org/show_bug.cgi?id=49156

        * WebCore.vcproj/WebCoreCommon.vsprops:
        * WebCore.vcproj/copyForwardingHeaders.cmd:

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

9 years ago2010-11-07 Eric Seidel <eric@webkit.org>
eric@webkit.org [Mon, 8 Nov 2010 05:30:16 +0000 (05:30 +0000)]
2010-11-07  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Move the rest of the cache-related files into loader/cache
        https://bugs.webkit.org/show_bug.cgi?id=49156

        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * loader/CachePolicy.h: Removed.
        * loader/CachedCSSStyleSheet.cpp: Removed.
        * loader/CachedCSSStyleSheet.h: Removed.
        * loader/CachedFont.cpp: Removed.
        * loader/CachedFont.h: Removed.
        * loader/CachedImage.cpp: Removed.
        * loader/CachedImage.h: Removed.
        * loader/CachedResource.cpp: Removed.
        * loader/CachedResource.h: Removed.
        * loader/CachedResourceClient.h: Removed.
        * loader/CachedResourceClientWalker.cpp: Removed.
        * loader/CachedResourceClientWalker.h: Removed.
        * loader/CachedResourceHandle.cpp: Removed.
        * loader/CachedResourceHandle.h: Removed.
        * loader/CachedResourceLoader.cpp: Removed.
        * loader/CachedResourceLoader.h: Removed.
        * loader/CachedScript.cpp: Removed.
        * loader/CachedScript.h: Removed.
        * loader/CachedXSLStyleSheet.cpp: Removed.
        * loader/CachedXSLStyleSheet.h: Removed.
        * loader/cache/CachePolicy.h: Copied from WebCore/loader/CachePolicy.h.
        * loader/cache/CachedCSSStyleSheet.cpp: Copied from WebCore/loader/CachedCSSStyleSheet.cpp.
        * loader/cache/CachedCSSStyleSheet.h: Copied from WebCore/loader/CachedCSSStyleSheet.h.
        * loader/cache/CachedFont.cpp: Copied from WebCore/loader/CachedFont.cpp.
        * loader/cache/CachedFont.h: Copied from WebCore/loader/CachedFont.h.
        * loader/cache/CachedImage.cpp: Copied from WebCore/loader/CachedImage.cpp.
        * loader/cache/CachedImage.h: Copied from WebCore/loader/CachedImage.h.
        * loader/cache/CachedResource.cpp: Copied from WebCore/loader/CachedResource.cpp.
        * loader/cache/CachedResource.h: Copied from WebCore/loader/CachedResource.h.
        * loader/cache/CachedResourceClient.h: Copied from WebCore/loader/CachedResourceClient.h.
        * loader/cache/CachedResourceClientWalker.cpp: Copied from WebCore/loader/CachedResourceClientWalker.cpp.
        * loader/cache/CachedResourceClientWalker.h: Copied from WebCore/loader/CachedResourceClientWalker.h.
        * loader/cache/CachedResourceHandle.cpp: Copied from WebCore/loader/CachedResourceHandle.cpp.
        * loader/cache/CachedResourceHandle.h: Copied from WebCore/loader/CachedResourceHandle.h.
        * loader/cache/CachedResourceLoader.cpp: Copied from WebCore/loader/CachedResourceLoader.cpp.
        * loader/cache/CachedResourceLoader.h: Copied from WebCore/loader/CachedResourceLoader.h.
        * loader/cache/CachedScript.cpp: Copied from WebCore/loader/CachedScript.cpp.
        * loader/cache/CachedScript.h: Copied from WebCore/loader/CachedScript.h.
        * loader/cache/CachedXSLStyleSheet.cpp: Copied from WebCore/loader/CachedXSLStyleSheet.cpp.
        * loader/cache/CachedXSLStyleSheet.h: Copied from WebCore/loader/CachedXSLStyleSheet.h.

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

9 years ago2010-11-07 MORITA Hajime <morrita@google.com>
morrita@google.com [Mon, 8 Nov 2010 05:03:26 +0000 (05:03 +0000)]
2010-11-07  MORITA Hajime  <morrita@google.com>

        Unreviewed test expectation rebaseline.

        * platform/chromium-win/fast/dom/HTMLMeterElement/meter-element-expected.txt: Removed. (It's now same as platform/win)
        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-07 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Mon, 8 Nov 2010 04:44:51 +0000 (04:44 +0000)]
2010-11-07  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename X-Purpose to Purpose
        https://bugs.webkit.org/show_bug.cgi?id=47802

        As requested by IETF HTTP WG.  This patch is part of a larger movement
        in the HTTP community to move away from X- headers.  Various senior
        folks at the IETF believe they're a failed experiment:

        http://tools.ietf.org/html/draft-saintandre-xdash-considered-harmful

        * loader/loader.cpp:
        (WebCore::Loader::Host::servePendingRequests):
2010-11-07  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename X-Purpose to Purpose
        https://bugs.webkit.org/show_bug.cgi?id=47802

        Update expected results.

        * http/tests/misc/prefetch-purpose-expected.txt:
        * http/tests/misc/resources/prefetch-purpose.php:

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

9 years ago2010-11-07 Daniel Bates <dbates@rim.com>
dbates@webkit.org [Mon, 8 Nov 2010 04:32:02 +0000 (04:32 +0000)]
2010-11-07  Daniel Bates  <dbates@rim.com>

        Reviewed by Adam Barth.

        Assert that a non-null PassRefPtr<Document> has a non-null frame in Frame::setDocument()
        https://bugs.webkit.org/show_bug.cgi?id=49152

        Add an ASSERT to ensure that a non-null Document has a non-null Frame
        in Frame::setDocument().

        Currently, whenever Frame::setDocument() is called with a non-null
        Document the Document has a non-null Frame. We should assert this
        invariant.

        * page/Frame.cpp:
        (WebCore::Frame::setDocument):

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

9 years ago2010-11-07 Eric Seidel <eric@webkit.org>
eric@webkit.org [Mon, 8 Nov 2010 04:09:13 +0000 (04:09 +0000)]
2010-11-07  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Move Cache.* into loader/cache in as a start to cleaning up loader/
        https://bugs.webkit.org/show_bug.cgi?id=49153

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * loader/cache/Cache.cpp: Renamed from WebCore/loader/Cache.cpp.
        (WebCore::cache):
        (WebCore::Cache::Cache):
        (WebCore::createResource):
        (WebCore::Cache::requestResource):
        (WebCore::Cache::requestUserCSSStyleSheet):
        (WebCore::Cache::revalidateResource):
        (WebCore::Cache::revalidationSucceeded):
        (WebCore::Cache::revalidationFailed):
        (WebCore::Cache::resourceForURL):
        (WebCore::Cache::deadCapacity):
        (WebCore::Cache::liveCapacity):
        (WebCore::Cache::pruneLiveResources):
        (WebCore::Cache::pruneDeadResources):
        (WebCore::Cache::setCapacities):
        (WebCore::Cache::makeResourcePurgeable):
        (WebCore::Cache::evict):
        (WebCore::Cache::addCachedResourceLoader):
        (WebCore::Cache::removeCachedResourceLoader):
        (WebCore::fastLog2):
        (WebCore::Cache::lruListFor):
        (WebCore::Cache::removeFromLRUList):
        (WebCore::Cache::insertInLRUList):
        (WebCore::Cache::resourceAccessed):
        (WebCore::Cache::removeFromLiveDecodedResourcesList):
        (WebCore::Cache::insertInLiveDecodedResourcesList):
        (WebCore::Cache::addToLiveResourcesSize):
        (WebCore::Cache::removeFromLiveResourcesSize):
        (WebCore::Cache::adjustSize):
        (WebCore::Cache::TypeStatistic::addResource):
        (WebCore::Cache::getStatistics):
        (WebCore::Cache::setDisabled):
        (WebCore::Cache::dumpStats):
        (WebCore::Cache::dumpLRULists):
        * loader/cache/Cache.h: Renamed from WebCore/loader/Cache.h.
        (WebCore::Cache::LRUList::LRUList):
        (WebCore::Cache::TypeStatistic::TypeStatistic):
        (WebCore::Cache::loader):
        (WebCore::Cache::disabled):
        (WebCore::Cache::setPruneEnabled):
        (WebCore::Cache::prune):
        (WebCore::Cache::setDeadDecodedDataDeletionInterval):
        (WebCore::Cache::deadDecodedDataDeletionInterval):
        (WebCore::Cache::remove):
        (WebCore::Cache::shouldMakeResourcePurgeableOnEviction):

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

9 years ago2010-11-07 Fumitoshi Ukai <ukai@chromium.org>
ukai@chromium.org [Mon, 8 Nov 2010 03:54:27 +0000 (03:54 +0000)]
2010-11-07  Fumitoshi Ukai  <ukai@chromium.org>

        Unreviewed, rolling out r71474.
        http://trac.webkit.org/changeset/71474
        https://bugs.webkit.org/show_bug.cgi?id=48280

        breaks chromium webkit tests
        https://bugs.webkit.org/show_bug.cgi?id=49151

        * Scripts/webkitpy/layout_tests/port/base.py:
        * Scripts/webkitpy/layout_tests/port/base_unittest.py:
        * Scripts/webkitpy/layout_tests/port/config.py:
        * Scripts/webkitpy/layout_tests/port/config_unittest.py:
        * Scripts/webkitpy/layout_tests/port/google_chrome_unittest.py:
        * Scripts/webkitpy/layout_tests/port/webkit.py:
        * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
        * Scripts/webkitpy/tool/mocktool.py:

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

9 years ago2010-11-07 Fumitoshi Ukai <ukai@chromium.org>
ukai@chromium.org [Mon, 8 Nov 2010 03:52:02 +0000 (03:52 +0000)]
2010-11-07  Fumitoshi Ukai  <ukai@chromium.org>

        Unreviewed, rolling out r71475.
        http://trac.webkit.org/changeset/71475

        breaks chromium webkit tests
        https://bugs.webkit.org/show_bug.cgi?id=49151

        * Scripts/webkitpy/common/newstringio.py: Removed.
        * Scripts/webkitpy/common/newstringio_unittest.py: Removed.
        * Scripts/webkitpy/common/system/executive_mock.py: Removed.
        * Scripts/webkitpy/common/system/filesystem_mock.py: Removed.
        * Scripts/webkitpy/layout_tests/port/config_mock.py: Removed.

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

9 years ago2010-11-07 Sam Magnuson <smagnuson@netflix.com>
andreas.kling@nokia.com [Mon, 8 Nov 2010 03:08:49 +0000 (03:08 +0000)]
2010-11-07  Sam Magnuson  <smagnuson@netflix.com>

        Reviewed by Andreas Kling.

        [Qt] make install does not cause JavaScriptCore to be built
        https://bugs.webkit.org/show_bug.cgi?id=49114

        * JavaScriptCore.pro:

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

9 years ago2010-11-05 Helder Correia <helder@sencha.com>
andreas.kling@nokia.com [Mon, 8 Nov 2010 02:54:17 +0000 (02:54 +0000)]
2010-11-05  Helder Correia  <helder@sencha.com>

        Reviewed by Andreas Kling.

        [Qt] box-shadow does not blur (is solid) when using border-radius
        https://bugs.webkit.org/show_bug.cgi?id=46327

        Implement blurred box-shadow when styling with border-radius.
        This change is related to https://bugs.webkit.org/show_bug.cgi?id=44488

        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::GraphicsContext::fillRoundedRect):
2010-11-05  Helder Correia  <helder@sencha.com>

        Reviewed by Andreas Kling.

        [Qt] box-shadow does not blur (is solid) when using border-radius
        https://bugs.webkit.org/show_bug.cgi?id=46327

        Implement blurred box-shadow when styling with border-radius.
        This change is related to https://bugs.webkit.org/show_bug.cgi?id=44488

        * platform/qt/fast/box-shadow/basic-shadows-expected.checksum:
        * platform/qt/fast/box-shadow/basic-shadows-expected.png:

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

9 years ago2010-11-07 Matthew Delaney <mdelaney@apple.com>
mdelaney@apple.com [Mon, 8 Nov 2010 02:31:57 +0000 (02:31 +0000)]
2010-11-07  Matthew Delaney  <mdelaney@apple.com>

        Reviewed by Andreas Kling.

        Unskipping recently merged new philip canvas tests from SnowLeopard
        https://bugs.webkit.org/show_bug.cgi?id=49147

        * platform/mac-leopard/Skipped: Moving skipped test list down to leopard.
        * platform/mac-snowleopard/canvas/philip/tests/*: All new tests' expectations.
        * platform/mac/Skipped: Unskipping tests from overall mac.

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

9 years ago2010-11-07 Helder Correia <helder@sencha.com>
andreas.kling@nokia.com [Mon, 8 Nov 2010 01:49:16 +0000 (01:49 +0000)]
2010-11-07  Helder Correia  <helder@sencha.com>

        Reviewed by Ariya Hidayat.

        [Qt] Update the baseline for blur shadow test
        https://bugs.webkit.org/show_bug.cgi?id=48223

        Update basic-shadows test expected result with correct line segments.

        * platform/qt/fast/box-shadow/basic-shadows-expected.checksum:
        * platform/qt/fast/box-shadow/basic-shadows-expected.png:

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

9 years ago2010-11-07 Andreas Kling <kling@webkit.org>
andreas.kling@nokia.com [Mon, 8 Nov 2010 01:14:43 +0000 (01:14 +0000)]
2010-11-07  Andreas Kling  <kling@webkit.org>

        Unreviewed, skipping new canvas tests that are failing on Gtk+ and Qt.

        Skip the following tests:
        - canvas/philip/tests/security.pattern.canvas.timing.html
        - canvas/philip/tests/security.pattern.create.html
        - canvas/philip/tests/security.pattern.cross.html
        - canvas/philip/tests/security.pattern.image.fillStyle.html
        - canvas/philip/tests/security.pattern.image.strokeStyle.html

        * platform/gtk/Skipped:
        * platform/qt/Skipped:

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

9 years ago2010-11-07 John Reck <jreck@google.com>
commit-queue@webkit.org [Sun, 7 Nov 2010 23:38:22 +0000 (23:38 +0000)]
2010-11-07  John Reck  <jreck@google.com>

        Reviewed by Steve Block.

        Implements navigator.language for Android
        https://bugs.webkit.org/show_bug.cgi?id=49099

        Android was previously hardcoding the value for WebCore::platformDefaultLanguage().
        This patch removes the hardcoding and calls into the PlatformBridge to get the
        correct language based off of the user's settings.

        No new tests needed, this is already covered

        * Android.mk:
        * platform/android/LanguageAndroid.cpp: Added.
        (WebCore::platformDefaultLanguage):
        * platform/android/PlatformBridge.h:
        * platform/android/TemporaryLinkStubs.cpp:

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

9 years ago2010-11-07 Robert Hogan <robert@webkit.org>
robert@webkit.org [Sun, 7 Nov 2010 15:25:52 +0000 (15:25 +0000)]
2010-11-07  Robert Hogan  <robert@webkit.org>

        Reviewed by Andreas Kling.

        [qt] screenDepthPerComponent returns the wrong value

        Return best estimate of the number of bits per color
        rather than screen depth.

        Add a layout test to sanity check screenDepthPerComponent.

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

        * fast/css/media-rule-screenDepthPerComponent-expected.txt: Added.
        * fast/css/media-rule-screenDepthPerComponent.html: Added.
2010-11-07  Robert Hogan  <robert@webkit.org>

        Reviewed by Andreas Kling.

        [qt] screenDepthPerComponent returns the wrong value

        Return best estimate of the number of bits per color
        rather than screen depth.

        Add a layout test to sanity check screenDepthPerComponent.

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

        Test: fast/css/media-rule-screenDepthPerComponent.html

        * platform/qt/PlatformScreenQt.cpp:
        (WebCore::screenDepthPerComponent):

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

9 years ago2010-11-07 Andreas Kling <kling@webkit.org>
andreas.kling@nokia.com [Sun, 7 Nov 2010 15:02:01 +0000 (15:02 +0000)]
2010-11-07  Andreas Kling  <kling@webkit.org>

        Unreviewed, rebaselining failures on Leopard and Snow Leopard after r71481.

        * canvas/philip/tests/2d.imageData.get.source.negative-expected.txt:
        * canvas/philip/tests/security.pattern.canvas.timing-expected.txt:
        * canvas/philip/tests/security.pattern.create-expected.txt:
        * canvas/philip/tests/security.pattern.cross-expected.txt:
        * canvas/philip/tests/security.pattern.image.fillStyle-expected.txt:
        * canvas/philip/tests/security.pattern.image.strokeStyle-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.drawImage.broken-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.drawImage.null-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.fillStyle.parse.system-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.gradient.radial.cone.front-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.gradient.radial.cone.top-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.gradient.radial.inside2-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.gradient.radial.inside3-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.gradient.radial.outside1-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.imageData.create1.type-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.imageData.create2.type-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.imageData.get.type-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.line.cap.closed-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.line.join.parallel-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.line.miter.lineedge-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.missingargs-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.path.rect.winding-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.pattern.image.broken-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.pattern.image.incomplete-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.shadow.enable.blur-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.shadow.enable.x-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.shadow.enable.y-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.shadow.gradient.alpha-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.shadow.gradient.basic-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.shadow.gradient.transparent.2-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.strokeRect.zero.4-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.draw.baseline.bottom-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.draw.baseline.hanging-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.draw.baseline.ideographic-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.draw.baseline.middle-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.draw.baseline.top-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.draw.fill.maxWidth.fontface-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.draw.space.collapse.end-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.draw.space.collapse.nonspace-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.draw.space.collapse.other-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.draw.space.collapse.space-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.draw.space.collapse.start-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.font.parse.basic-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.font.parse.complex-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.font.parse.invalid-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.font.parse.size.percentage-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.font.parse.size.percentage.default-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.font.parse.system-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/2d.text.measure.width.space-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/toDataURL.jpeg.alpha-expected.txt:
        * platform/mac-snowleopard/canvas/philip/tests/type.prototype-expected.txt:

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

9 years ago2010-10-18 Andreas Kling <kling@webkit.org>
andreas.kling@nokia.com [Sun, 7 Nov 2010 13:49:39 +0000 (13:49 +0000)]
2010-10-18  Andreas Kling  <kling@webkit.org>

        Reviewed by James Robinson.

        Update our clone of Philip Taylor's canvas test suite
        https://bugs.webkit.org/show_bug.cgi?id=47707

        Source: http://dvcs.w3.org/hg/html/file/df23d00a3395/tests/submission/PhilipTaylor

        * canvas/philip/README: Added, contains link to upstream revision.
        * canvas/philip/: Synced with upstream.
        * platform/gtk/Skipped: Skipped new failing tests.
        * platform/mac/Skipped: Ditto.
        * platform/qt/Skipped: Ditto.

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

9 years ago2010-11-07 Jay Civelli <jcivelli@chromium.org>
jcivelli@chromium.org [Sun, 7 Nov 2010 09:42:10 +0000 (09:42 +0000)]
2010-11-07  Jay Civelli  <jcivelli@chromium.org>

        Reviewed by Kent Tamura.

        Fixing a crasher with the select popup on Mac that happens when a
        page removes the select node when the select changes.
        https://bugs.webkit.org/show_bug.cgi?id=49108

        * src/ExternalPopupMenu.cpp:
        (WebKit::ExternalPopupMenu::didAcceptIndex):
        (WebKit::ExternalPopupMenu::didCancel):

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

9 years ago2010-11-07 Chang Shu <chang.shu@nokia.com>
chang.shu@nokia.com [Sun, 7 Nov 2010 09:24:27 +0000 (09:24 +0000)]
2010-11-07  Chang Shu  <chang.shu@nokia.com>

        Reviewed by Antonio Gomes.

        Add a helper function to avoid duplicated code.
        https://bugs.webkit.org/show_bug.cgi?id=49085

        * dom/SelectElement.cpp:
        * editing/SelectionController.cpp:
        (WebCore::SelectionController::modify):
        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::isKeyboardFocusable):
        * page/EventHandler.cpp:
        (WebCore::EventHandler::defaultArrowEventHandler):
        * page/SpatialNavigation.cpp:
        (WebCore::isSpatialNavigationEnabled):
        * page/SpatialNavigation.h:
2010-11-07  Chang Shu  <chang.shu@nokia.com>

        Reviewed by Antonio Gomes.

        Add a helper function to avoid duplicated code.
        https://bugs.webkit.org/show_bug.cgi?id=49085

        * WebCoreSupport/EditorClientQt.cpp:
        (WebCore::EditorClientQt::handleKeyboardEvent):

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

9 years ago2010-11-06 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Sun, 7 Nov 2010 06:43:21 +0000 (06:43 +0000)]
2010-11-06  Pavel Feldman  <pfeldman@chromium.org>

        Not reviewed. Chromium DevTools: disable filesystem inspection
        until polished.
        https://bugs.webkit.org/show_bug.cgi?id=48963

        * src/js/DevTools.js:

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

9 years ago2010-11-06 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Sun, 7 Nov 2010 06:26:36 +0000 (06:26 +0000)]
2010-11-06  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Simon Fraser.

        Web Inspector: Some image resources don't display the image when selected in the Resources panel.
        https://bugs.webkit.org/show_bug.cgi?id=48935

        Marked resources loaded from memory cache as finished.

        * inspector/front-end/ResourceManager.js:
        (WebInspector.ResourceManager.prototype.didLoadResourceFromMemoryCache):

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

9 years ago2010-11-06 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Sun, 7 Nov 2010 06:23:23 +0000 (06:23 +0000)]
2010-11-06  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: XHR logging is not checked in context menu after browser restart.
        https://bugs.webkit.org/show_bug.cgi?id=49133

        * inspector/InspectorState.cpp:
        (WebCore::InspectorState::InspectorState):

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

9 years ago2010-11-06 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Sun, 7 Nov 2010 04:21:28 +0000 (04:21 +0000)]
2010-11-06  Dirk Pranke  <dpranke@chromium.org>

        Unreviewed, build fix.

        Add files inexplicably not committed in r71474 as part of the
        fix for bug 48280.

        * Scripts/webkitpy/common/newstringio.py: Added.
        * Scripts/webkitpy/common/newstringio_unittest.py: Added.
        * Scripts/webkitpy/common/system/executive_mock.py: Added.
        * Scripts/webkitpy/common/system/filesystem_mock.py: Added.
        * Scripts/webkitpy/layout_tests/port/config_mock.py: Added.

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

9 years ago2010-11-06 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Sun, 7 Nov 2010 03:38:40 +0000 (03:38 +0000)]
2010-11-06  Dirk Pranke  <dpranke@chromium.org>

        Reviewed by Eric Siedel.

        new-run-webkit-tests: update port/base and port/webkit to use the
        new FileSystem and Config abstractions, pulling more logic out of
        the base Port classes into separate, mockable objects.

        Also create a MockFileSystem object, a MockConfig object, move
        MockExecutive into common/system to be next to executive, and
        update the config object to use a FileSystem.

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

        * Scripts/webkitpy/common/newstringio.py: Added.
        * Scripts/webkitpy/common/newstringio_unittest.py: Added.
        * Scripts/webkitpy/common/system/executive_mock.py: Added.
        * Scripts/webkitpy/common/system/filesystem_mock.py: Added.
        * Scripts/webkitpy/layout_tests/port/base.py:
        * Scripts/webkitpy/layout_tests/port/base_unittest.py:
        * Scripts/webkitpy/layout_tests/port/config.py:
        * Scripts/webkitpy/layout_tests/port/config_mock.py:
        * Scripts/webkitpy/layout_tests/port/config_unittest.py:
        * Scripts/webkitpy/layout_tests/port/google_chrome_unittest.py:
        * Scripts/webkitpy/layout_tests/port/webkit.py:
        * Scripts/webkitpy/layout_tests/run_webkit_tests_unittest.py:
        * Scripts/webkitpy/tool/mocktool.py:

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

9 years ago2010-11-06 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Sun, 7 Nov 2010 02:44:15 +0000 (02:44 +0000)]
2010-11-06  Dirk Pranke  <dpranke@chromium.org>

        Unreviewed, build breakage.

        Apparently I uploaded the wrong version of the file to fix 49122
        and neither Eric or I noticed - it was missing a dirname() call.
        Fixing ...

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

        * Scripts/webkitpy/common/checkout/scm.py:

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

9 years ago2010-11-06 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Sun, 7 Nov 2010 02:31:01 +0000 (02:31 +0000)]
2010-11-06  Dirk Pranke  <dpranke@chromium.org>

        Reviewed by Eric Seidel.

        webkitpy/tool/* unittests change cwd and don't clean up properly

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

        * Scripts/webkitpy/common/checkout/scm.py:

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

9 years ago2010-11-06 Balazs Kelemen <kbalazs@webkit.org>
kbalazs@webkit.org [Sun, 7 Nov 2010 01:23:39 +0000 (01:23 +0000)]
2010-11-06  Balazs Kelemen  <kbalazs@webkit.org>

        Reviewed by Andreas Kling.

        [Qt][WK2] WebKitTestRunner is dead
        https://bugs.webkit.org/show_bug.cgi?id=49129

        * Platform/qt/SharedMemoryQt.cpp:
        (WebKit::SharedMemory::~SharedMemory):
        Avoid double deletion when deleteLater has
        already been called.

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

9 years ago2010-11-06 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Sat, 6 Nov 2010 22:56:01 +0000 (22:56 +0000)]
2010-11-06  Ryosuke Niwa  <rniwa@webkit.org>

        Unreviewed Windows build fix.

        * editing/EditingAllInOne.cpp: Added EditingStyle.cpp

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

9 years ago2010-11-04 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Sat, 6 Nov 2010 21:19:59 +0000 (21:19 +0000)]
2010-11-04  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Darin Adler.

        Bug 46335 - Add EditingStyle
        https://bugs.webkit.org/show_bug.cgi?id=46335

        Added EditingStyle to WebCore/editing.  This class is intended to encapsulate getPropertiesNotIn, removeNonEditingProperties,
        editingStyleAtPosition, and prepareEditingStyleToApplyAt in ApplyStyleCommand.cpp once deployed everywhere.
        Deployed it in typing styles.

        No new tests are added since this is a refactoring in progress.

        * CMakeLists.txt: Added EditingStyle.cpp
        * GNUmakefile.am: Added EditingStyle.cpp and EditingStyle.h
        * WebCore.gypi: Ditto.
        * WebCore.pro: Ditto.
        * WebCore.xcodeproj/project.pbxproj: Ditto.
        * editing/CompositeEditCommand.cpp:
        (WebCore::CompositeEditCommand::moveParagraphs): Calls editingStyleIncludingTypingStyle.
        (WebCore::CompositeEditCommand::breakOutOfEmptyListItem): Uses EditingStyle.
        * editing/DeleteSelectionCommand.cpp:
        (WebCore::DeleteSelectionCommand::saveTypingStyleState): Ditto.
        (WebCore::DeleteSelectionCommand::calculateTypingStyleAfterDelete): Ditto.
        * editing/DeleteSelectionCommand.h:
        * editing/EditingStyle.cpp: Added.
        (WebCore::editingStyleFromComputedStyle): Added.
        (WebCore::EditingStyle::EditingStyle): Added.
        (WebCore::EditingStyle::init): Added; a clone of ApplyStyleCommand::editingStyleAtPosition.
        (WebCore::EditingStyle::removeTextFillAndStrokeColorsIfNeeded): Extracted from init.
        (WebCore::EditingStyle::replaceFontSizeByKeywordIfPossible): Extracted from init.
        (WebCore::EditingStyle::isEmpty): Added.
        (WebCore::EditingStyle::setStyle): Added.
        (WebCore::EditingStyle::clear): Added.
        (WebCore::EditingStyle::removeBlockProperties): Added.
        (WebCore::EditingStyle::prepareToApplyAt): Added.
        (WebCore::editingStyleIncludingTypingStyle): Added.
        * editing/EditingStyle.h: Added.
        (WebCore::EditingStyle::create): Added.
        (WebCore::EditingStyle::style): Added.
        * editing/RemoveFormatCommand.cpp:
        (WebCore::RemoveFormatCommand::doApply): Uses EditingStyle.
        * editing/SelectionController.h:
        (WebCore::SelectionController::typingStyle): Uses EditingStyle.
        (WebCore::SelectionController::clearTypingStyle): Uses EditingStyle.
        (WebCore::SelectionController::setTypingStyle): Uses EditingStyle.
        * rendering/style/RenderStyle.h: Added EditingStyle as a friend.

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

9 years agoUnreviewed. Update Qt specific expected files after r71467.
ossy@webkit.org [Sat, 6 Nov 2010 08:33:27 +0000 (08:33 +0000)]
Unreviewed. Update Qt specific expected files after r71467.

* platform/qt/fast/blockflow/background-horizontal-bt-expected.checksum:
* platform/qt/fast/blockflow/background-horizontal-bt-expected.png:
* platform/qt/fast/blockflow/background-horizontal-bt-expected.txt:
* platform/qt/fast/blockflow/background-vertical-lr-expected.checksum:
* platform/qt/fast/blockflow/background-vertical-lr-expected.png:
* platform/qt/fast/blockflow/background-vertical-lr-expected.txt:

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

9 years ago2010-11-05 Alexey Proskuryakov <ap@apple.com>
ap@apple.com [Sat, 6 Nov 2010 06:13:17 +0000 (06:13 +0000)]
2010-11-05  Alexey Proskuryakov  <ap@apple.com>

        Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=49100
        ASSERT([self window]) fails in -[WebBaseNetscapePluginView restartTimers]

        * Plugins/WebBaseNetscapePluginView.mm: (-[WebBaseNetscapePluginView restartTimers]):
        Removed the assertion. Multiple callers provide no guarantee that the plug-in is still alive
        (see bug comments), and there seems to be no harm in executing this function in that case.

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

9 years ago2010-11-05 Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>
commit-queue@webkit.org [Sat, 6 Nov 2010 05:52:23 +0000 (05:52 +0000)]
2010-11-05  Nicolas Dufresne  <nicolas.dufresne@collabora.co.uk>

        Reviewed by Martin Robinson.

        [GTK] Link with target name set does not work correctly
        https://bugs.webkit.org/show_bug.cgi?id=48865

        When a new page is created with a name (target=myFrame), the new
        mainFrame could not be found because they where not stored in the
        same PageGroup. As PageGroup are not exposed externally so the
        simpliest solution is to use a global page group name. This also fixes
        issue with visited link coloration across pages. After this change the
        private function webkit_web_view_set_group_name() was no longer used
        so it was removed completly.

        * WebCoreSupport/ChromeClientGtk.cpp:
        (WebKit::ChromeClient::closeWindowSoon):
        * webkit/webkitprivate.h:
        * webkit/webkitwebview.cpp:
        (webkit_web_view_init):

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

9 years agohttps://bugs.webkit.org/show_bug.cgi?id=47237
hyatt@apple.com [Sat, 6 Nov 2010 05:49:57 +0000 (05:49 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=47237

Reviewed by Dan Bernstein and Simon Fraser.

Make selection work with vertical text.  This patch fixes a bug in the computation of lineTop.  For lines
with positive leading, lineTop was incorrectly including the top leading.  Since the flipping of lines
for "lr" and "bt" writing modes involved flipping using lineTop and lineBottom, an incorrect lineTop meant
that those modes were mis-rendering.  This is why the Japanese "lr" text examples have the first line smushed
too far against the border.

Fixing lineTop to no longer incorrectly include top leading has implications for editing.  I ended up
rewriting positionForPoint to exactly match selection, since that seemed to be the most intuitive
behavior.  I got rid of the verticalClickFudgeFactor and now just use selectionTop and selectionBottom
instead of lineTop and lineBottom.  I am pretty sure the code used selectionTop in a previous incarnation
anyway and that I moved away from it when I implemented lineTop and lineBottom.  The code then grew
more complicated from people trying to work with lineTop and lineBottom, but going back to selectionTop
and selectionBottom is the right behavior I think.  One editing test has been updated after this change
(editing/selection/after-line-break.html), and one DOM test has been changed to not hit test past the
bottom of a line (fast/dom/Document/CaretRangeFromPoint/basic.html).

I patched selection painting of InlineTextBoxes so that the leading going up to the next line box is used
for "lr" and "bt" modes instead of the previous box.  This makes sense for English text, but we may want
a different policy for Japanese text eventually (possibly just splitting the difference instead).  Leaving it
this way for now, and we can collect feedback on the design.

I rewrote all of the selection gap painting code to be writing-mode aware.  During the course of rewriting this
code I noticed a bug in the logicalLeftSelectionOffset and logicalRightSelectionOffset functions where there
was a coordinate space mismatch on a comparison.  Fixing this improves the repaint/selection-clear.html test.

Added new tests in fast/blockflow/.

WebCore:

* rendering/InlineFlowBox.cpp:
(WebCore::InlineFlowBox::placeBoxesInBlockDirection):
* rendering/InlineFlowBox.h:
* rendering/InlineTextBox.cpp:
(WebCore::InlineTextBox::selectionBottom):
(WebCore::InlineTextBox::paintSelection):
(WebCore::InlineTextBox::paintCompositionBackground):
(WebCore::InlineTextBox::paintSpellingOrGrammarMarker):
(WebCore::InlineTextBox::paintTextMatchMarker):
* rendering/InlineTextBox.h:
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::selectionGapRectsForRepaint):
(WebCore::RenderBlock::paintSelection):
(WebCore::clipOutPositionedObjects):
(WebCore::blockDirectionOffset):
(WebCore::inlineDirectionOffset):
(WebCore::RenderBlock::logicalRectToPhysicalRect):
(WebCore::RenderBlock::selectionGaps):
(WebCore::RenderBlock::inlineSelectionGaps):
(WebCore::RenderBlock::blockSelectionGaps):
(WebCore::RenderBlock::blockSelectionGap):
(WebCore::RenderBlock::logicalLeftSelectionGap):
(WebCore::RenderBlock::logicalRightSelectionGap):
(WebCore::RenderBlock::logicalLeftSelectionOffset):
(WebCore::RenderBlock::logicalRightSelectionOffset):
* rendering/RenderBlock.h:
* rendering/RenderBox.cpp:
(WebCore::RenderBox::flipForWritingMode):
* rendering/RenderBox.h:
(WebCore::RenderBox::logicalBottom):
* rendering/RootInlineBox.cpp:
(WebCore::RootInlineBox::alignBoxesInBlockDirection):
(WebCore::RootInlineBox::lineSelectionGap):
(WebCore::RootInlineBox::selectionTop):
(WebCore::RootInlineBox::selectionBottom):
* rendering/RootInlineBox.h:

LayoutTests:

* editing/selection/after-line-break-expected.txt:
* fast/blockflow/japanese-lr-selection.html: Added.
* fast/blockflow/japanese-rl-selection.html: Added.
* fast/dom/Document/CaretRangeFromPoint/basic.html:
* platform/mac/fast/blockflow/background-horizontal-bt-expected.checksum:
* platform/mac/fast/blockflow/background-horizontal-bt-expected.png:
* platform/mac/fast/blockflow/background-horizontal-bt-expected.txt:
* platform/mac/fast/blockflow/background-vertical-lr-expected.checksum:
* platform/mac/fast/blockflow/background-vertical-lr-expected.png:
* platform/mac/fast/blockflow/background-vertical-lr-expected.txt:
* platform/mac/fast/blockflow/border-image-horizontal-bt-expected.checksum:
* platform/mac/fast/blockflow/border-image-horizontal-bt-expected.png:
* platform/mac/fast/blockflow/border-image-horizontal-bt-expected.txt:
* platform/mac/fast/blockflow/border-image-vertical-lr-expected.checksum:
* platform/mac/fast/blockflow/border-image-vertical-lr-expected.png:
* platform/mac/fast/blockflow/border-image-vertical-lr-expected.txt:
* platform/mac/fast/blockflow/border-radius-clipping-vertical-lr-expected.checksum:
* platform/mac/fast/blockflow/border-radius-clipping-vertical-lr-expected.png:
* platform/mac/fast/blockflow/border-radius-clipping-vertical-lr-expected.txt:
* platform/mac/fast/blockflow/border-vertical-lr-expected.checksum:
* platform/mac/fast/blockflow/border-vertical-lr-expected.png:
* platform/mac/fast/blockflow/border-vertical-lr-expected.txt:
* platform/mac/fast/blockflow/box-shadow-horizontal-bt-expected.checksum:
* platform/mac/fast/blockflow/box-shadow-horizontal-bt-expected.png:
* platform/mac/fast/blockflow/box-shadow-horizontal-bt-expected.txt:
* platform/mac/fast/blockflow/box-shadow-vertical-lr-expected.checksum:
* platform/mac/fast/blockflow/box-shadow-vertical-lr-expected.png:
* platform/mac/fast/blockflow/box-shadow-vertical-lr-expected.txt:
* platform/mac/fast/blockflow/japanese-lr-selection-expected.checksum: Added.
* platform/mac/fast/blockflow/japanese-lr-selection-expected.png: Added.
* platform/mac/fast/blockflow/japanese-lr-selection-expected.txt: Added.
* platform/mac/fast/blockflow/japanese-lr-text-expected.checksum:
* platform/mac/fast/blockflow/japanese-lr-text-expected.png:
* platform/mac/fast/blockflow/japanese-lr-text-expected.txt:
* platform/mac/fast/blockflow/japanese-rl-selection-expected.checksum: Added.
* platform/mac/fast/blockflow/japanese-rl-selection-expected.png: Added.
* platform/mac/fast/blockflow/japanese-rl-selection-expected.txt: Added.
* platform/mac/fast/repaint/selection-clear-expected.checksum:
* platform/mac/fast/repaint/selection-clear-expected.png:

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

9 years ago2010-11-05 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Sat, 6 Nov 2010 05:34:37 +0000 (05:34 +0000)]
2010-11-05  Simon Fraser  <simon.fraser@apple.com>

        Just put things back the way they were. Too many mysterious linker errors.

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

9 years ago2010-11-05 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Sat, 6 Nov 2010 05:23:23 +0000 (05:23 +0000)]
2010-11-05  Simon Fraser  <simon.fraser@apple.com>

        Undo most of the previous commit since the compiler seems to have trouble
        with an inlined operator++ in debug builds.

        * platform/DeprecatedPtrListImpl.cpp:
        (WebCore::DeprecatedPtrListImplIterator::operator++):
        * platform/DeprecatedPtrListImpl.h:

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

9 years ago2010-11-05 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Sat, 6 Nov 2010 04:55:43 +0000 (04:55 +0000)]
2010-11-05  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dave Hyatt.

        Inline some DeprecatedPtrListImplIterator methods for performance
        https://bugs.webkit.org/show_bug.cgi?id=49124

        This is a ~4% performance improvement on some Peacekeepr "Community" tests.

        * platform/DeprecatedPtrListImpl.cpp:
        * platform/DeprecatedPtrListImpl.h:
        (WebCore::DeprecatedListNode::DeprecatedListNode):
        (WebCore::DeprecatedPtrListImplIterator::current):
        (WebCore::DeprecatedPtrListImplIterator::operator++):

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

9 years ago2010-11-05 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Sat, 6 Nov 2010 01:01:18 +0000 (01:01 +0000)]
2010-11-05  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Gray-scale PNGs with color profiles don't decode properly on Chromium Mac
        https://bugs.webkit.org/show_bug.cgi?id=49110

        Test that we decode gray-scale PNGs correctly.  Sadly, this is a pixel
        test.  For ports that run pixel tests, we'll have to grab the pixels
        off the bot.

        * fast/images/gray-scale-png-with-color-profile.html: Added.
        * fast/images/resources/mu.png: Added.
        * platform/mac/fast/images/gray-scale-png-with-color-profile-expected.txt: Added.
2010-11-05  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Gray-scale PNGs with color profiles don't decode properly on Chromium Mac
        https://bugs.webkit.org/show_bug.cgi?id=49110

        Applying the color profile from this PNG was causing the image to
        triple in width.  This seems to be because both the PNG decoder and
        CoreGraphics were trying to expand the gray-scale image to RGB.  To fix
        this issue, I've disabled color profile support for gray-scale PNGs.

        Test: fast/images/gray-scale-png-with-color-profile.html

        * platform/image-decoders/png/PNGImageDecoder.cpp:
        (WebCore::PNGImageDecoder::headerAvailable):

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

9 years ago2010-11-05 Jian Li <jianli@chromium.org>
jianli@chromium.org [Sat, 6 Nov 2010 00:42:21 +0000 (00:42 +0000)]
2010-11-05  Jian Li  <jianli@chromium.org>

        Reviewed by Dmitry Titov.

        Need to check if page is detached in Frame::transferChildFrameToNewDocument to avoid occasional crash
        https://bugs.webkit.org/show_bug.cgi?id=49116

        The fix is to add the check.

        * page/Frame.cpp:
        (WebCore::Frame::transferChildFrameToNewDocument):

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

9 years agoPasting large amounts of plain text in a text area is very slow
enrica@apple.com [Sat, 6 Nov 2010 00:14:52 +0000 (00:14 +0000)]
Pasting large amounts of plain text in a text area is very slow
https://bugs.webkit.org/show_bug.cgi?id=49040
<rdar://problem/7640912>

Reviewed by Adele Peterson.

The optimization consists in skipping the ApplyStyle command when
pasting into a text area or into an element that has -webkit-user-modify: read-write-plaintext-only.
The biggest performance hit comes from iterating through
a large number of paragraph when no style change is needed.
A further step will be to improve the paragraph iteration when it
can't be avoided.

* editing/ReplaceSelectionCommand.cpp:
(WebCore::ReplaceSelectionCommand::doApply): Check if the selection
is in a text form control or in an element that has -webkit-user-modify: read-write-plaintext-only
and force no style matching.

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

9 years ago2010-11-05 Chris Marrin <cmarrin@apple.com>
cmarrin@apple.com [Sat, 6 Nov 2010 00:12:07 +0000 (00:12 +0000)]
2010-11-05  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Simon Fraser.

        suspendAnimations/resumeAnimations not present in WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=49109

        Got 4 tests out of the Skipped list that now pass

        * platform/mac-wk2/Skipped:
2010-11-05  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Simon Fraser.

        suspendAnimations/resumeAnimations not present in WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=49109

        * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl:
        * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp:
        (WTR::LayoutTestController::suspendAnimations):
        (WTR::LayoutTestController::resumeAnimations):
        * WebKitTestRunner/InjectedBundle/LayoutTestController.h:
2010-11-05  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Simon Fraser.

        suspendAnimations/resumeAnimations not present in WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=49109

        * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp:
        (WKBundleFrameSuspendAnimations):
        (WKBundleFrameResumeAnimations):
        * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h:
        * WebProcess/WebPage/WebFrame.cpp:
        (WebKit::WebFrame::suspendAnimations):
        (WebKit::WebFrame::resumeAnimations):
        * WebProcess/WebPage/WebFrame.h:

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

9 years agoUnreviewed, updating Chromium expectations.
dumi@chromium.org [Fri, 5 Nov 2010 23:01:22 +0000 (23:01 +0000)]
Unreviewed, updating Chromium expectations.

* platform/chromium-linux/fast/dom/HTMLProgressElement/progress-element-with-child-crash-expected.txt: Added.
* platform/chromium-win/fast/dom/HTMLProgressElement/progress-element-with-child-crash-expected.txt: Added.
* platform/chromium/test_expectations.txt:

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

9 years agoWebProcess won't kill itself if UIProcess goes away while WebProcess is spinning
andersca@apple.com [Fri, 5 Nov 2010 22:55:41 +0000 (22:55 +0000)]
WebProcess won't kill itself if UIProcess goes away while WebProcess is spinning
https://bugs.webkit.org/show_bug.cgi?id=49090
<rdar://problem/7834575>

Reviewed by Darin Adler.

* Platform/CoreIPC/Connection.cpp:
(CoreIPC::Connection::connectionDidClose):
Call Client::didCloseOnConnectionWorkQueue.

* Platform/CoreIPC/Connection.h:
(CoreIPC::Connection::Client::didCloseOnConnectionWorkQueue):
Add new client function. Will be called on the connection work queue when the connection is closed.

* Platform/WorkItem.h:
(FunctionWorkItem0::FunctionWorkItem0):
(FunctionWorkItem0::execute):
(WorkItem::create):
Add a new WorkItem subclass that will invoke a C function.

* Platform/WorkQueue.h:
* Platform/mac/WorkQueueMac.cpp:
(WorkQueue::scheduleWorkAfterDelay):
New function which will schedule the given work item to be executed in at least 'delay' seconds.

* Platform/qt/WorkQueueQt.cpp:
(WorkQueue::scheduleWorkAfterDelay):
Add empty stub.

* Platform/win/WorkQueueWin.cpp:
(WorkQueue::scheduleWorkAfterDelay):
Ditto.

* PluginProcess/PluginProcess.h:
Derive from ChildProcess.

* Shared/ChildProcess.cpp: Added.
(WebKit::ChildProcess::ChildProcess):
(WebKit::ChildProcess::~ChildProcess):
(WebKit::watchdogCallback):
Call _exit.

(WebKit::ChildProcess::didCloseOnConnectionWorkQueue):
When the connection is closed, schedule a work item to be run in 10 seconds. If the process hasn't
exited normally by then, we'll exit.

* Shared/ChildProcess.h:
Add new ChildProcess class which is a common base class of WebProcess and PluginProcess and which contains
the watchdog timer logic.

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

* WebProcess/WebProcess.h:
Derive from ChildProcess.

* win/WebKit2.vcproj:
Add new files.

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

9 years ago2010-11-05 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Fri, 5 Nov 2010 22:47:59 +0000 (22:47 +0000)]
2010-11-05  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by David Levin.

        JSCallbackData::invokeCallback triggers layout from a worker thread
        https://bugs.webkit.org/show_bug.cgi?id=49096

        Fixed the bug by only calling updateStyleForAllDocuments when the context is document in
        JSCallbackData::invokeCallback.

        No new tests are added since many of existing workers tests hit the added assertion in debug builds.

        * bindings/js/JSCallbackData.cpp:
        (WebCore::JSCallbackData::invokeCallback): No longer calls updateStyleForAllDocuments unconditionally.
        * dom/Document.cpp:
        (WebCore::Document::updateStyleIfNeeded): Added ASSERT(isMainThread()).
        (WebCore::Document::updateStyleForAllDocuments): Ditto.
        (WebCore::Document::updateLayout): Ditto.

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

9 years agoIncreased tolerance on test due to variability of timing on the bots
cmarrin@apple.com [Fri, 5 Nov 2010 22:47:56 +0000 (22:47 +0000)]
Increased tolerance on test due to variability of timing on the bots

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

9 years agoUnreviewed.
ossy@webkit.org [Fri, 5 Nov 2010 22:34:00 +0000 (22:34 +0000)]
Unreviewed.

[Qt] animations tests fails which uses suspend/resume
https://bugs.webkit.org/show_bug.cgi?id=43905

* platform/qt/Skipped:
 - animations/suspend-resume-animation-events.html added until fix.
 - animations/stop-animation-on-suspend.html added until fix.

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

9 years ago2010-11-05 Ilya Sherman <isherman@chromium.org>
commit-queue@webkit.org [Fri, 5 Nov 2010 22:00:54 +0000 (22:00 +0000)]
2010-11-05  Ilya Sherman  <isherman@chromium.org>

        Reviewed by Simon Fraser.

        Querying selection start and end should be const
        https://bugs.webkit.org/show_bug.cgi?id=48786

        * rendering/RenderTextControl.cpp:
        (WebCore::RenderTextControl::selectionStart):
        (WebCore::RenderTextControl::selectionEnd):
        (WebCore::RenderTextControl::visiblePositionForIndex):
        (WebCore::RenderTextControl::indexForVisiblePosition):
        * rendering/RenderTextControl.h:
2010-11-05  Ilya Sherman  <isherman@chromium.org>

        Reviewed by Simon Fraser.

        Querying selection start and end should be const
        https://bugs.webkit.org/show_bug.cgi?id=48786

        * public/WebInputElement.h:
        * src/WebInputElement.cpp:
        (WebKit::WebInputElement::selectionStart):
        (WebKit::WebInputElement::selectionEnd):

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

9 years ago2010-11-05 Chris Marrin <cmarrin@apple.com>
cmarrin@apple.com [Fri, 5 Nov 2010 21:45:37 +0000 (21:45 +0000)]
2010-11-05  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Simon Fraser.

        Move resumeAnimations/suspendAnimations from Frame to AnimationController.
        https://bugs.webkit.org/show_bug.cgi?id=49073

        * src/WebAnimationControllerImpl.cpp:
        (WebKit::WebAnimationControllerImpl::suspendAnimations):
        (WebKit::WebAnimationControllerImpl::resumeAnimations):
2010-11-05  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Simon Fraser.

        Move resumeAnimations/suspendAnimations from Frame to AnimationController.
        https://bugs.webkit.org/show_bug.cgi?id=49073

        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
        (DumpRenderTreeSupportQt::suspendAnimations):
        (DumpRenderTreeSupportQt::resumeAnimations):
2010-11-05  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Simon Fraser.

        Move resumeAnimations/suspendAnimations from Frame to AnimationController.
        https://bugs.webkit.org/show_bug.cgi?id=49073

        * webkit/webkitwebframe.cpp:
        (webkit_web_frame_suspend_animations):
        (webkit_web_frame_resume_animations):
2010-11-05  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Simon Fraser.

        Move resumeAnimations/suspendAnimations from Frame to AnimationController.
        https://bugs.webkit.org/show_bug.cgi?id=49073

        * WebFrame.cpp:
        (WebFrame::suspendAnimations):
        (WebFrame::resumeAnimations):
2010-11-05  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Simon Fraser.

        Move resumeAnimations/suspendAnimations from Frame to AnimationController.
        https://bugs.webkit.org/show_bug.cgi?id=49073

        * WebView/WebFrame.mm:
        (-[WebFrame _suspendAnimations]):
        (-[WebFrame _resumeAnimations]):
2010-11-05  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Simon Fraser.

        Move resumeAnimations/suspendAnimations from Frame to AnimationController.
        https://bugs.webkit.org/show_bug.cgi?id=49073

        Changed the name of suspendAnimations/resumeAnimations to
        suspendAnimationsInDocument/resumeAnimationsInDocument. These are no
        longer exported, but have the same functionality as before. I then
        added new suspendAnimations/resumeAnimations function which take
        no params and suspend/resume on the frame owning the animation
        controller and all its child frames. These are the functions that
        are now exported. I then changed all the platform specific WebKit
        code to use these functions.

        * WebCore.exp.in:
        * page/Frame.cpp:
        * page/Frame.h:
        * page/animation/AnimationController.cpp:
        (WebCore::AnimationControllerPrivate::suspendAnimations):
        (WebCore::AnimationControllerPrivate::resumeAnimations):

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

9 years ago2010-11-05 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Fri, 5 Nov 2010 21:41:24 +0000 (21:41 +0000)]
2010-11-05  Mihai Parparita  <mihaip@chromium.org>

        Reviewed by Ojan Vafai.

        [Chromium] fast/events/stopPropagation-submit.html fails
        https://bugs.webkit.org/show_bug.cgi?id=49078

        The test was failing because of a difference between KURL and GURL in
        how forms that have a data: URL action are handled*. Since the actual
        test was testing something else (that stopPropagation does not prevent
        form submissions), using a real page as the target makes the test
        pass everywhere.

        * FWIW, it looks like GURL is right, per step 15 of section 4.10.22.3
        (Form submission algorithm) of the HTML 5 spec, data URLs used with GET
        should not be mutated; filed bug 49091 about this.

        * fast/events/resources/stopPropagation-submit-target.html: Added.
        * fast/events/stopPropagation-submit.html:
        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-04 Zhenyao Mo <zmo@google.com>
zmo@google.com [Fri, 5 Nov 2010 20:28:49 +0000 (20:28 +0000)]
2010-11-04  Zhenyao Mo  <zmo@google.com>

        Reviewed by Kenneth Russell.

        Need to simulate DEPTH_STENCIL in framebufferRenderbuffer / getFramebufferAttachmentParameter
        https://bugs.webkit.org/show_bug.cgi?id=49020

        * src/WebGraphicsContext3DDefaultImpl.cpp: Remove DEPTH_STENCIL_ATTACHMENT emulation at this level.
2010-11-04  Zhenyao Mo  <zmo@google.com>

        Reviewed by Kenneth Russell.

        Need to simulate DEPTH_STENCIL in framebufferRenderbuffer / getFramebufferAttachmentParameter
        https://bugs.webkit.org/show_bug.cgi?id=49020

        * html/canvas/WebGLFramebuffer.cpp:
        (WebCore::WebGLFramebuffer::getAttachment): Return the attached renderbuffer/texture.
        (WebCore::WebGLFramebuffer::isIncomplete): Add an extra parameter deciding whether we should check internal format matching the attachment point or not.
        (WebCore::WebGLFramebuffer::onAccess): Pass extra parameter in isIncomplete.
        * html/canvas/WebGLFramebuffer.h:
        * html/canvas/WebGLRenderingContext.cpp:
        (WebCore::WebGLRenderingContext::checkFramebufferStatus): Pass extra parameter in isIncomplete.
        (WebCore::WebGLRenderingContext::framebufferRenderbuffer): Emulate DEPTH_STENCIL_ATTACHMENT; re-attach previously conflicted buffers upon detachment.
        (WebCore::WebGLRenderingContext::getFramebufferAttachmentParameter): Throw an error when conflicted attachments exist.
        (WebCore::WebGLRenderingContext::renderbufferStorage): Map DEPTH_STENCIL to DEPTH24_STENCIL8.
        * platform/graphics/Extensions3D.h: Add DEPTH24_STENCIL8 enum and update the documentation.
        * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
        (WebCore::GraphicsContext3D::framebufferRenderbuffer): Remove emulation code at this level.

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

9 years ago2010-11-05 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Fri, 5 Nov 2010 20:27:15 +0000 (20:27 +0000)]
2010-11-05  Mihai Parparita  <mihaip@chromium.org>

        Unreviewed; test_expectations fix.

        Remove three tests that are no longer flaky. Update a comment about a
        test that fails due to V8 differences.

        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-05 Darin Fisher <darin@chromium.org>
darin@chromium.org [Fri, 5 Nov 2010 20:26:45 +0000 (20:26 +0000)]
2010-11-05  Darin Fisher  <darin@chromium.org>

        Pull chromium@65229 to fix the build.

        * DEPS:

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

9 years ago2010-11-05 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Fri, 5 Nov 2010 20:08:50 +0000 (20:08 +0000)]
2010-11-05  Mihai Parparita  <mihaip@chromium.org>

        Unreviewed expectation update for fast/events/context-no-deselect.html.

        Add missing chromium-linux expectations.

        * platform/chromium-linux/fast/events/context-no-deselect-expected.checksum: Added.
        * platform/chromium-linux/fast/events/context-no-deselect-expected.png: Added.
        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-05 Chris Guillory <chris.guillory@google.com>
commit-queue@webkit.org [Fri, 5 Nov 2010 19:55:25 +0000 (19:55 +0000)]
2010-11-05  Chris Guillory  <chris.guillory@google.com>

        Reviewed by Chris Fleizach.

        Keep a reference to the scrollbar in accessibility scrollbar.
        https://bugs.webkit.org/show_bug.cgi?id=48896

        * accessibility/AccessibilityScrollbar.h:
        (WebCore::AccessibilityScrollbar::scrollbar):

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

9 years ago2010-11-05 Oliver Hunt <oliver@apple.com>
oliver@apple.com [Fri, 5 Nov 2010 19:42:32 +0000 (19:42 +0000)]
2010-11-05  Oliver Hunt  <oliver@apple.com>

        Reviewed by Gavin Barraclough.

        Website consistently crashing TOT in JIT::execute() on news.com.au
        https://bugs.webkit.org/show_bug.cgi?id=48954

        The problem here was the strict pass of this conversion was loading the
        this structure into one register but doing the flags check off a different
        register.  This is clearly wrong.  I have been unable to trigger the crash
        with a reduction, but I've added an assertion to the this conversion to
        attempt to make it more readily catchable in future.

        * jit/JITOpcodes.cpp:
        (JSC::JIT::emit_op_convert_this_strict):
        * jit/JITOpcodes32_64.cpp:
        (JSC::JIT::emit_op_convert_this_strict):
        * jit/JITStubs.cpp:
        (JSC::DEFINE_STUB_FUNCTION):

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

9 years ago2010-11-05 Tony Chang <tony@chromium.org>
tony@chromium.org [Fri, 5 Nov 2010 19:37:44 +0000 (19:37 +0000)]
2010-11-05  Tony Chang  <tony@chromium.org>

        Reviewed by David Levin.

        cleanup style in TestNetscapePlugIn/PluginObject.cpp
        https://bugs.webkit.org/show_bug.cgi?id=49044

        * DumpRenderTree/TestNetscapePlugIn/PluginObject.cpp:
        (getPluginClass):
        (pluginGetProperty):
        (pluginSetProperty):
        (variantToIdentifier):
        (testCallback):
        (getURL):
        (getURLNotify):
        (testInvokeDefault):
        (testGetProperty):
        (testDocumentOpen):
        (testWindowOpen):
        (pluginInvoke):
        (handleCallback):
        (notifyStream):
        * DumpRenderTree/TestNetscapePlugIn/PluginObject.h:

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

9 years ago2010-11-05 Chang Shu <chang.shu@nokia.com>
chang.shu@nokia.com [Fri, 5 Nov 2010 19:22:11 +0000 (19:22 +0000)]
2010-11-05  Chang Shu  <chang.shu@nokia.com>

        Reviewed by Antonio Gomes.

        Add support for <select> element in single selection mode. We use space to
        trigger arrow key handling for selection change or spatial navigation.
        https://bugs.webkit.org/show_bug.cgi?id=48937

        * fast/events/spatial-navigation/resources/spatial-navigation-utils.js:
        (doMove):
        * fast/events/spatial-navigation/snav-single-select-expected.txt:
        * fast/events/spatial-navigation/snav-single-select.html:
2010-11-05  Chang Shu  <chang.shu@nokia.com>

        Reviewed by Antonio Gomes.

        Add support for <select> element in single selection mode. We use space to
        trigger arrow key handling for selection change or spatial navigation.
        https://bugs.webkit.org/show_bug.cgi?id=48937

        * dom/SelectElement.cpp:
        (WebCore::isSpatialNavigationEnabled):
        (WebCore::SelectElement::menuListDefaultEventHandler):
        (WebCore::SelectElement::listBoxDefaultEventHandler):

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

9 years ago2010-11-05 Eric Seidel <eric@webkit.org>
eric@webkit.org [Fri, 5 Nov 2010 19:02:30 +0000 (19:02 +0000)]
2010-11-05  Eric Seidel  <eric@webkit.org>

        Reviewed by David Levin.

        Add QueueStatusServer/__init__.py so others can run the QueueStatusServer tests
        https://bugs.webkit.org/show_bug.cgi?id=49032

        I wrote this file as part of bug 47847, but I forgot to commit it.
        No one else noticed it missing because test-webkitpy knows how
        to recover in the case where it can't import QueueStatusServer
        (which generally occurs due to not having installed the AppEngine SDK).

        * QueueStatusServer/__init__.py: Added.
        * QueueStatusServer/model/workitems_unittest.py:
         - Remove a test which fails.  This was probably landed (by me)
           from my other machine, which since this __init__.py was missing
           I never noticed the failure and landed this invalid test.
           Sadly we can't really test remove_work_item as it depends
           on .key() working.  .key() will throw unless the object
           has already been saved it seems.
           This may be a mis-design in our remove_work_item implementation,
           but for now, just removing the test.

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

9 years ago2010-11-05 Darin Fisher <darin@chromium.org>
darin@chromium.org [Fri, 5 Nov 2010 18:44:05 +0000 (18:44 +0000)]
2010-11-05  Darin Fisher  <darin@chromium.org>

        Reviewed by Nate Chapin.

        Replace deprecated TargetIsSub{Frame,Resource} with TargetIsSub{frame,resource}.
        https://bugs.webkit.org/show_bug.cgi?id=49074

        * public/WebURLRequest.h:
        * src/FrameLoaderClientImpl.cpp:

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

9 years ago2010-11-05 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Fri, 5 Nov 2010 18:32:24 +0000 (18:32 +0000)]
2010-11-05  Mihai Parparita  <mihaip@chromium.org>

        Unreviewed expectations update for fast/events/click-count.html; it's no longer slow since r46779 sped it up.

        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-05 Mihai Parparita <mihaip@chromium.org>
mihaip@chromium.org [Fri, 5 Nov 2010 18:25:55 +0000 (18:25 +0000)]
2010-11-05  Mihai Parparita  <mihaip@chromium.org>

        Unreviewed expectations update for fast/events/option-tab.html; it no longer crashes.

        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-05 Charlie Reis <creis@chromium.org>
commit-queue@webkit.org [Fri, 5 Nov 2010 18:24:27 +0000 (18:24 +0000)]
2010-11-05  Charlie Reis  <creis@chromium.org>

        Reviewed by Darin Fisher.

        Need to expose HistoryController::previousItem() for Chromium WebKit API.
        https://bugs.webkit.org/show_bug.cgi?id=48809

        * loader/HistoryController.h:
2010-11-05  Charlie Reis  <creis@chromium.org>

        Reviewed by Darin Fisher.

        WebFrame::previousHistoryItem() should return last committed item.
        https://bugs.webkit.org/show_bug.cgi?id=48809

        * src/WebFrameImpl.cpp:

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

9 years agoImplement PluginInfoStore::shouldUsePlugin on Windows
aroben@apple.com [Fri, 5 Nov 2010 18:15:26 +0000 (18:15 +0000)]
Implement PluginInfoStore::shouldUsePlugin on Windows

Fixes <http://webkit.org/b/43509> <rdar://problem/8273822> WebKit2
should refuse to load the same plugins that old-WebKit refuses to load

Reviewed by Anders Carlsson.

* UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
(WebKit::fileVersion): Helper function to construct a 64-bit file
version from two 32-bit numbers.
(WebKit::PluginInfoStore::getPluginInfo): Ported code from
WebCore::PluginPackage::fetchInfo to get the plugin's version. We now
store it in Plugin::fileVersion.

(WebKit::isOldWindowsMediaPlayerPlugin):
(WebKit::isNewWindowsMediaPlayerPlugin):
Added these helpers. The code came from
WebCore::PluginDatabase::getPluginPathsInDirectories.

(WebKit::PluginInfoStore::shouldUsePlugin): Implemented. The code was
ported from WebCore::PluginDatabase::getPluginPathsInDirectories and
WebCore::PluginPackage::isPluginBlacklisted.

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

9 years agoOperate on m_plugins directly in PluginInfoStore::shouldUsePlugin
aroben@apple.com [Fri, 5 Nov 2010 18:14:54 +0000 (18:14 +0000)]
Operate on m_plugins directly in PluginInfoStore::shouldUsePlugin

We'll need to operate on m_plugins if we ever want to unload an
already-loaded plugin before loading the new one.

Fixes <http://webkit.org/b/49076> loadedPlugins parameter to
PluginInfoStore::shouldUsePlugin is redundant

Reviewed by Anders Carlsson.

* UIProcess/Plugins/PluginInfoStore.cpp:
(WebKit::PluginInfoStore::loadPlugin):
* UIProcess/Plugins/PluginInfoStore.h:
* UIProcess/Plugins/gtk/PluginInfoStoreGtk.cpp:
(WebKit::PluginInfoStore::shouldUsePlugin):
* UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
(WebKit::PluginInfoStore::shouldUsePlugin):
* UIProcess/Plugins/qt/PluginInfoStoreQt.cpp:
(WebKit::PluginInfoStore::shouldUsePlugin):
* UIProcess/Plugins/win/PluginInfoStoreWin.cpp:
(WebKit::PluginInfoStore::shouldUsePlugin):
Removed the loadedPlugins parameter from shouldUsePlugin. The single
implementation (Mac) now uses m_plugins directly.

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

9 years agoAssertion failure in PluginStream::~PluginStream when running userscripts/user-script...
bweinstein@apple.com [Fri, 5 Nov 2010 18:08:33 +0000 (18:08 +0000)]
Assertion failure in PluginStream::~PluginStream when running userscripts/user-script-plugin-document.html
https://bugs.webkit.org/show_bug.cgi?id=48751
<rdar://problem/8615536>

Reviewed by Anders Carlsson.

WebKit/win:

Always call committedLoad in WebFrameLoaderClient::finishedLoading, even if we have a manual loader. We were
running into a case where we were trying to load an empty plugin document, which uses a manual loader, and
PluginStream::didFinishLoading was never being called. The stream was never being stopped, making us fire
an assert in the PluginStream destructor.

* WebCoreSupport/WebFrameLoaderClient.cpp:
(WebFrameLoaderClient::finishedLoading):

LayoutTests:

Unskip userscripts/user-script-plugin-document.html because it is passing now.

* platform/win/Skipped:

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

9 years agouserscripts/user-script-*-document.html tests are flaky on Windows
bweinstein@apple.com [Fri, 5 Nov 2010 18:01:50 +0000 (18:01 +0000)]
userscripts/user-script-*-document.html tests are flaky on Windows
https://bugs.webkit.org/show_bug.cgi?id=45980

Reviewed by Eric Carlson.

We can't use counting.mp4 as our video file to create a video document, because on Windows counting.mp4
is opened in Windows Explorer or Quicktime instead of Safari. This bug is being tracked by
<https://bugs.webkit.org/show_bug.cgi?id=25220>.

This patch switches user-script-video-document.html to use silence-loop.mov instead of counting.mp4,
which creates a video document on both Mac and Windows.

* userscripts/resources/counting.mp4: Removed.
* userscripts/resources/silence-loop.mov: Added.
* userscripts/user-script-video-document-expected.txt:
* userscripts/user-script-video-document.html:

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

9 years agoImplement pluginElementNPObject
andersca@apple.com [Fri, 5 Nov 2010 17:58:18 +0000 (17:58 +0000)]
Implement pluginElementNPObject
https://bugs.webkit.org/show_bug.cgi?id=49077

Reviewed by Adam Roben.

WebKit2:

* PluginProcess/PluginControllerProxy.cpp:
(WebKit::PluginControllerProxy::pluginElementNPObject):
Send the GetPluginElementNPObject message.

* WebProcess/Plugins/PluginProxy.cpp:
(WebKit::PluginProxy::getPluginElementNPObject):
Get the plug-in element NPObject and expose it to the other side of the connection.

* WebProcess/Plugins/PluginProxy.messages.in:
Add GetPluginElementNPObject.

LayoutTests:

Remove now passing test.

* platform/mac-snowleopard/Skipped:

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

9 years ago2010-11-05 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Fri, 5 Nov 2010 17:43:38 +0000 (17:43 +0000)]
2010-11-05  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Darin Adler.

        Crash in ApplyStyleCommand::surroundNodeRangeWithElement
        https://bugs.webkit.org/show_bug.cgi?id=48581

        The crash was caused by a false assertion that we can always recover selection in
        ApplyStyleCommand::removeInlineStyle.  Fixed the crash by removing the assertion
        and adding an early exit to the call site.  Also converted raw pointers to RefPtr
        in surroundNodeRangeWithElement and addInlineStyleIfNeeded.

        Test (non-Mac platforms): editing/style/iframe-onload-crash.html

        * editing/ApplyStyleCommand.cpp:
        (WebCore::ApplyStyleCommand::applyInlineStyle):
        (WebCore::ApplyStyleCommand::removeInlineStyle):
        (WebCore::ApplyStyleCommand::surroundNodeRangeWithElement):
        (WebCore::ApplyStyleCommand::addInlineStyleIfNeeded):
        * editing/ApplyStyleCommand.h:
2010-11-04  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Darin Adler.

        Re-enabled editing/style/iframe-onload-crash.html on Chromium, Qt, and Windows platforms.

        * platform/chromium/test_expectations.txt:
        * platform/qt/Skipped:
        * platform/win/Skipped:

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

9 years agoImplement NP_RemoveProperty and NP_Enumerate
andersca@apple.com [Fri, 5 Nov 2010 17:38:40 +0000 (17:38 +0000)]
Implement NP_RemoveProperty and NP_Enumerate
https://bugs.webkit.org/show_bug.cgi?id=49046

Reviewed by Oliver Hunt.

WebKit2:

* Shared/Plugins/NPObjectMessageReceiver.cpp:
(WebKit::NPObjectMessageReceiver::removeProperty):
Call the removeProperty NPClass function.

(WebKit::NPObjectMessageReceiver::enumerate):
Call the enumerate NPClass function.

* Shared/Plugins/NPObjectMessageReceiver.messages.in:
Add RemoveProperty and Enumerate messages.

* Shared/Plugins/NPObjectProxy.cpp:
(WebKit::NPObjectProxy::removeProperty):
Send the RemoveProperty message.

(WebKit::NPObjectProxy::enumerate):
Send the Enumerate message.

(WebKit::NPObjectProxy::NP_RemoveProperty):
Call removeProperty.

(WebKit::NPObjectProxy::NP_Enumerate):
Call enumerate.

LayoutTests:

Remove now passing tests.

* platform/mac-wk2/Skipped:

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

9 years ago2010-11-05 Zhenyao Mo <zmo@google.com>
zmo@google.com [Fri, 5 Nov 2010 17:35:56 +0000 (17:35 +0000)]
2010-11-05  Zhenyao Mo  <zmo@google.com>

        Unreviewed, update webgl test expectations.

        * platform/chromium/test_expectations.txt:

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

9 years ago2010-11-05 Zhenyao Mo <zmo@google.com>
zmo@google.com [Fri, 5 Nov 2010 17:25:05 +0000 (17:25 +0000)]
2010-11-05  Zhenyao Mo  <zmo@google.com>

        Unreviewed, update webgl test expectations.

        * platform/chromium/test_expectations.txt:

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

9 years agoFix for GTK build broken by http://trac.webkit.org/changeset/71424
cmarrin@apple.com [Fri, 5 Nov 2010 17:05:12 +0000 (17:05 +0000)]
Fix for GTK build broken by trac.webkit.org/changeset/71424

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

9 years ago Reviewed by Darin Adler.
ap@apple.com [Fri, 5 Nov 2010 17:02:24 +0000 (17:02 +0000)]
    Reviewed by Darin Adler.

        https://bugs.webkit.org/show_bug.cgi?id=49008
        <rdar://problem/7906226> Frequent crashes on mail.yahoo.co.jp

WebCore:
        Instance::m_runtimeObject used to be zeroed out by RuntimeObject destructor. But the
        destructor may not be called immediately - GC first marks an object as dead, and only
        destroys it when its cell is overwritten. So, m_runtimeObject would keep pointing to a dead
        object.

        Functions in JSPluginElementFunctions.cpp put the RuntimeObject on stack for later use,
        but if it's already dead, it can be overwritten before use.

        The solution is of course to use WeakGCPtr, which returns 0 for dead objects.

        * bridge/jsc/BridgeJSC.cpp:
        (JSC::Bindings::Instance::Instance):
        (JSC::Bindings::Instance::~Instance):
        (JSC::Bindings::Instance::createRuntimeObject):
        (JSC::Bindings::Instance::willDestroyRuntimeObject):
        (JSC::Bindings::Instance::willInvalidateRuntimeObject):
        * bridge/jsc/BridgeJSC.h:
        * bridge/runtime_object.cpp:
        (JSC::Bindings::RuntimeObject::~RuntimeObject):
        (JSC::Bindings::RuntimeObject::invalidate):

WebKit:
        Callers of NetscapePluginInstanceProxy::waitForReply() are not prepared to be deleted during
        the call, unless it returns 0. There are two reasons for NetscapePluginInstanceProxy to be
        deleted during wait:
        - plugin crashed;
        - plugin was stopped (e.g. due to a DOM modification performed by another reply that came in
        while waiting).

        We didn't recognize the latter.

        * Plugins/Hosted/NetscapePluginHostProxy.mm:
        (WebKit::PluginDestroyDeferrer::~PluginDestroyDeferrer):
        * Plugins/Hosted/NetscapePluginInstanceProxy.h:
        (WebKit::NetscapePluginInstanceProxy::waitForReply):
        * Plugins/Hosted/NetscapePluginInstanceProxy.mm:
        (WebKit::NetscapePluginInstanceProxy::didCallPluginFunction):

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

9 years agoFix failing python tests.
weinig@apple.com [Fri, 5 Nov 2010 16:55:18 +0000 (16:55 +0000)]
Fix failing python tests.

* Scripts/webkit2/messages.py:
* Scripts/webkit2/messages_unittest.py:

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

9 years ago2010-11-05 Chris Marrin <cmarrin@apple.com>
cmarrin@apple.com [Fri, 5 Nov 2010 16:38:46 +0000 (16:38 +0000)]
2010-11-05  Chris Marrin  <cmarrin@apple.com>

        Reviewed by Simon Fraser.

        Make suspendAnimations/resumeAnimations and setCSSAnimations traverse through subframes and remember state
        https://bugs.webkit.org/show_bug.cgi?id=46945

        Add new funtions to suspend and resume animations. The go through all subframes and suspend or resume them
        recursively.

        Test: animations/stop-animation-on-suspend.html

        * WebCore.exp.in:
        * page/Frame.cpp:
        (WebCore::Frame::suspendAnimations):
        (WebCore::Frame::resumeAnimations):
        * page/Frame.h:

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

9 years agoGenerate the messages sent to the WebProcessProxy
weinig@apple.com [Fri, 5 Nov 2010 16:18:34 +0000 (16:18 +0000)]
Generate the messages sent to the WebProcessProxy
https://bugs.webkit.org/show_bug.cgi?id=49062

Reviewed by Adam Roben..

* Platform/CoreIPC/MessageID.h:
Temporarily add MessageClassWebProcessProxyLegacy while we still can't
support GetPluginProcessConnection (and deferred sync replies) in the
general mechanism.

* Scripts/webkit2/messages.py:
Add support for WebCore::PluginData and WebKit::WebNavigationDataStore.

* Shared/CoreIPCSupport/WebProcessProxyMessageKinds.h:
Remove now unused kinds. Rename to MessageClassWebProcessProxyLegacy.

* UIProcess/WebProcessProxy.cpp:
(WebKit::WebProcessProxy::getPluginPath):
(WebKit::WebProcessProxy::addBackForwardItem):
(WebKit::WebProcessProxy::didNavigateWithNavigationData):
(WebKit::WebProcessProxy::didPerformClientRedirect):
(WebKit::WebProcessProxy::didPerformServerRedirect):
(WebKit::WebProcessProxy::didUpdateHistoryTitle):
(WebKit::WebProcessProxy::didReceiveMessage):
(WebKit::WebProcessProxy::didReceiveSyncMessage):
(WebKit::WebProcessProxy::didDestroyFrame):
* UIProcess/WebProcessProxy.h:
* UIProcess/WebProcessProxy.messages.in: Added.
Move implementations to their own functions.

* WebProcess/Plugins/PluginProcessConnectionManager.cpp:
(WebKit::PluginProcessConnectionManager::getPluginProcessConnection):
Change to use WebProcessProxyLegacyMessage.

* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::updateGlobalHistory):
(WebKit::WebFrameLoaderClient::updateGlobalHistoryRedirectLinks):
(WebKit::WebFrameLoaderClient::setTitle):
* WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
(WebKit::WebPlatformStrategies::populatePluginCache):
* WebProcess/WebPage/WebBackForwardListProxy.cpp:
(WebKit::updateBackForwardItem):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::createPlugin):
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::addVisitedLink):
(WebKit::WebProcess::removeWebFrame):
Use generated messages.

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

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

9 years ago2010-11-05 Stephen White <senorblanco@chromium.org>
senorblanco@chromium.org [Fri, 5 Nov 2010 15:45:16 +0000 (15:45 +0000)]
2010-11-05  Stephen White  <senorblanco@chromium.org>

        Unreviewed; test_expectations fix.

        Cleaning up the chromium-gpu test expectations after the switch to DRT.

        * platform/chromium-gpu/test_expectations.txt:

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

9 years agoUpdate expected results for two tests on Windows
aroben@apple.com [Fri, 5 Nov 2010 15:40:54 +0000 (15:40 +0000)]
Update expected results for two tests on Windows

* platform/win/fast/dom/HTMLMeterElement/meter-element-expected.png:
* platform/win/fast/dom/HTMLMeterElement/meter-element-expected.txt:
* platform/win/fast/dom/HTMLProgressElement/progress-element-with-child-crash-expected.txt: Added.

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

9 years agoUnreviewed.
ossy@webkit.org [Fri, 5 Nov 2010 14:59:56 +0000 (14:59 +0000)]
Unreviewed.

[Qt] Add platform specific expected results for new passing tests introduced in r71382.
Compared to Mac png files and Mac expected files.

* platform/qt/fast/table/027-vertical-expected.checksum: Added.
* platform/qt/fast/table/027-vertical-expected.png: Added.
* platform/qt/fast/table/027-vertical-expected.txt: Added.
* platform/qt/fast/table/028-vertical-expected.checksum: Added.
* platform/qt/fast/table/028-vertical-expected.png: Added.
* platform/qt/fast/table/028-vertical-expected.txt: Added.
* platform/qt/fast/table/035-vertical-expected.checksum: Added.
* platform/qt/fast/table/035-vertical-expected.png: Added.
* platform/qt/fast/table/035-vertical-expected.txt: Added.
* platform/qt/fast/table/038-vertical-expected.checksum: Added.
* platform/qt/fast/table/038-vertical-expected.png: Added.
* platform/qt/fast/table/038-vertical-expected.txt: Added.
* platform/qt/fast/table/040-vertical-expected.checksum: Added.
* platform/qt/fast/table/040-vertical-expected.png: Added.
* platform/qt/fast/table/040-vertical-expected.txt: Added.
* platform/qt/fast/table/auto-with-percent-height-vertical-expected.checksum: Added.
* platform/qt/fast/table/auto-with-percent-height-vertical-expected.png: Added.
* platform/qt/fast/table/auto-with-percent-height-vertical-expected.txt: Added.
* platform/qt/fast/table/border-collapsing/001-vertical-expected.checksum: Added.
* platform/qt/fast/table/border-collapsing/001-vertical-expected.png: Added.
* platform/qt/fast/table/border-collapsing/001-vertical-expected.txt: Added.
* platform/qt/fast/table/border-collapsing/002-vertical-expected.checksum: Added.
* platform/qt/fast/table/border-collapsing/002-vertical-expected.png: Added.
* platform/qt/fast/table/border-collapsing/002-vertical-expected.txt: Added.
* platform/qt/fast/table/border-collapsing/003-vertical-expected.checksum: Added.
* platform/qt/fast/table/border-collapsing/003-vertical-expected.png: Added.
* platform/qt/fast/table/border-collapsing/003-vertical-expected.txt: Added.
* platform/qt/fast/table/border-collapsing/004-vertical-expected.checksum: Added.
* platform/qt/fast/table/border-collapsing/004-vertical-expected.png: Added.
* platform/qt/fast/table/border-collapsing/004-vertical-expected.txt: Added.
* platform/qt/fast/table/border-collapsing/border-collapsing-head-foot-vertical-expected.checksum: Added.
* platform/qt/fast/table/border-collapsing/border-collapsing-head-foot-vertical-expected.png: Added.
* platform/qt/fast/table/border-collapsing/border-collapsing-head-foot-vertical-expected.txt: Added.
* platform/qt/fast/table/border-collapsing/equal-precedence-resolution-vertical-expected.checksum: Added.
* platform/qt/fast/table/border-collapsing/equal-precedence-resolution-vertical-expected.png: Added.
* platform/qt/fast/table/border-collapsing/equal-precedence-resolution-vertical-expected.txt: Added.
* platform/qt/fast/table/border-collapsing/rtl-border-collapsing-vertical-expected.checksum: Added.
* platform/qt/fast/table/border-collapsing/rtl-border-collapsing-vertical-expected.png: Added.
* platform/qt/fast/table/border-collapsing/rtl-border-collapsing-vertical-expected.txt: Added.
* platform/qt/fast/table/fixed-with-auto-with-colspan-vertical-expected.checksum: Added.
* platform/qt/fast/table/fixed-with-auto-with-colspan-vertical-expected.png: Added.
* platform/qt/fast/table/fixed-with-auto-with-colspan-vertical-expected.txt: Added.
* platform/qt/fast/table/growCellForImageQuirk-vertical-expected.checksum: Added.
* platform/qt/fast/table/growCellForImageQuirk-vertical-expected.png: Added.
* platform/qt/fast/table/growCellForImageQuirk-vertical-expected.txt: Added.
* platform/qt/fast/table/height-percent-test-vertical-expected.checksum: Added.
* platform/qt/fast/table/height-percent-test-vertical-expected.png: Added.
* platform/qt/fast/table/height-percent-test-vertical-expected.txt: Added.
* platform/qt/fast/table/percent-widths-stretch-vertical-expected.checksum: Added.
* platform/qt/fast/table/percent-widths-stretch-vertical-expected.png: Added.
* platform/qt/fast/table/percent-widths-stretch-vertical-expected.txt: Added.
* platform/qt/fast/table/rowspan-paint-order-vertical-expected.checksum: Added.
* platform/qt/fast/table/rowspan-paint-order-vertical-expected.png: Added.
* platform/qt/fast/table/rowspan-paint-order-vertical-expected.txt: Added.
* platform/qt/fast/table/table-display-types-vertical-expected.checksum: Added.
* platform/qt/fast/table/table-display-types-vertical-expected.png: Added.
* platform/qt/fast/table/table-display-types-vertical-expected.txt: Added.

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

9 years agoTeach check-webkit-style about TestNetscapePlugIn
aroben@apple.com [Fri, 5 Nov 2010 14:48:06 +0000 (14:48 +0000)]
Teach check-webkit-style about TestNetscapePlugIn

Fixes <http://webkit.org/b/49030> check-webkit-style is ignorant of
TestNetscapePlugIn's coding conventions

Reviewed by John Sullivan.

* Scripts/webkitpy/style/checker.py: Lump TestNetscapePlugIn in with
WebKitAPITest and TestWebKitAPI in having different include order and
naming conventions than WebCore. Added some comments about why the
exceptions exist.

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

9 years agoAdd a test that shows that windowed plugins are able to paint
aroben@apple.com [Fri, 5 Nov 2010 14:47:37 +0000 (14:47 +0000)]
Add a test that shows that windowed plugins are able to paint

Somehow we never had a test for this before.

Fixes <http://webkit.org/b/49029> Should add a test that shows
windowed plugins can paint

Reviewed by Jon Honeycutt.

WebKitTools:

* DumpRenderTree/TestNetscapePlugIn/Tests/win/DrawsGradient.cpp: Added.
(DrawsGradient::DrawsGradient):
(DrawsGradient::wndProc): We handle the WM_PAINT and WM_PRINTCLIENT messages.

(DrawsGradient::onPaint):
(DrawsGradient::onPrintClient):
These both just call through to paint.

(DrawsGradient::paint): Fills our client area with some gradients.

* DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj: Link
against Msimg32.lib for ::GradientFill and added DrawsGradient.

* DumpRenderTree/win/PixelDumpSupportWin.cpp:
(createBitmapContextFromWebView): Use WM_PRINT instead of
WM_PRINTCLIENT so that ::DefWindowProc will send
WM_PRINT/WM_PRINTCLIENT messages to the WebView's child windows.
Replaced kCGImageAlphaPremultipledFirst with kCGImageAlphaNoneSkipFirst
because GDI doesn't support alpha and kCGImageBitmapOrder32Little with
kCGImageBitmapOrder32Host because, who knows, maybe someday Windows
will run on a big-endian platform.

LayoutTests:

* platform/win/platform/win/plugins/draws-gradient-expected.checksum: Added.
* platform/win/platform/win/plugins/draws-gradient-expected.png: Added.
* platform/win/platform/win/plugins/draws-gradient-expected.txt: Added.
* platform/win/plugins/draws-gradient.html: Added.

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

9 years agoExtract much of NPNInvalidateRectInvalidatesWindow's code into a WindowedPluginTest...
aroben@apple.com [Fri, 5 Nov 2010 14:46:45 +0000 (14:46 +0000)]
Extract much of NPNInvalidateRectInvalidatesWindow's code into a WindowedPluginTest base class

The base class takes care of subclassing the plugin's window so that a
custom WNDPROC is called. This will make it easier to write tests that
need to handle window messages.

Fixes <http://webkit.org/b/49028> It's hard to write a PluginTest with
a custom WNDPROC

Reviewed by Jon Honeycutt.

* DumpRenderTree/TestNetscapePlugIn/Tests/win/NPNInvalidateRectInvalidatesWindow.cpp:
(NPNInvalidateRectInvalidatesWindow::NPNInvalidateRectInvalidatesWindow):
(NPNInvalidateRectInvalidatesWindow::NPP_SetWindow):
(NPNInvalidateRectInvalidatesWindow::wndProc):
(NPNInvalidateRectInvalidatesWindow::testInvalidateRect):
Moved code from here to WindowedPluginTest. Changed to use window()
instead of m_window.

* DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj:
Added WindowedPluginTest and added TestNetscapePlugIn/win to the
include path. Also reordered the include path to make a little more
sense and simplified the entry that added TestNetscapePlugIn itself to
the include path.

* DumpRenderTree/TestNetscapePlugIn/win/WindowedPluginTest.cpp: Added.
(WindowedPluginTest::WindowedPluginTest):
(WindowedPluginTest::NPP_SetWindow):
(WindowedPluginTest::staticWndProc):
* DumpRenderTree/TestNetscapePlugIn/win/WindowedPluginTest.h: Added.
(WindowedPluginTest::window):
Code came from NPNInvalidateRectInvalidatesWindow.

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

9 years agoUse a window region to clip windowed plugins
aroben@apple.com [Fri, 5 Nov 2010 14:46:05 +0000 (14:46 +0000)]
Use a window region to clip windowed plugins

Fixes <http://webkit.org/b/49024> <rdar://problem/8487847> Windowed
plugins aren't clipped in WebKit2 on Windows

Reviewed by Jon Honeycutt.

WebKit2:

* WebProcess/Plugins/Netscape/win/NetscapePluginWin.cpp:
(WebKit::registerPluginView): Removed the CS_PARENTDC style. This style
makes Windows ignore the window region and always clip to the parent
window. Also pass WebKit.dll's HINSTANCE as part of the WNDCLASSW
struct so that the window class will be specific to WebKit.dll rather
than to WebKit2WebProcess.exe. This is useful for testing, but also
more pedantically correct.
(WebKit::setWindowRegion): Helper function to set a window region and
deal with ownership of the HRGN correctly.
(WebKit::NetscapePlugin::platformGeometryDidChange): Make an HRGN that
corresponds to m_clipRect and set it on the plugin's window.

WebKitTools:

Add a plugin test to show that windowed plugins are clipped correctly

* DumpRenderTree/TestNetscapePlugIn/Tests/win/WindowRegionIsSetToClipRect.cpp: Added.
(WindowRegionIsSetToClipRect::WindowRegionIsSetToClipRect): Initialize members.
(WindowRegionIsSetToClipRect::NPP_SetWindow): Check that our window
region matches the clip rect we know we should have based on
window-region-is-set-to-clip-rect.html, and check that our window class
doesn't have the CS_PARENTDC style.

* DumpRenderTree/TestNetscapePlugIn/win/TestNetscapePlugin.vcproj:
Added WindowRegionIsSetToClipRect.

LayoutTests:

Add a test to show that windowed plugins are clipped correctly

* platform/win/plugins/window-region-is-set-to-clip-rect-expected.txt: Added.
* platform/win/plugins/window-region-is-set-to-clip-rect.html: Added.

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

9 years ago2010-11-05 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Fri, 5 Nov 2010 14:29:57 +0000 (14:29 +0000)]
2010-11-05  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: Crash in InspectorDOMAgent::innerParentNode.
        https://bugs.webkit.org/show_bug.cgi?id=49054

        * inspector/InspectorDOMAgent.cpp:
        (WebCore::InspectorDOMAgent::setOuterHTML):

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

9 years agoUnreviewed.
ossy@webkit.org [Fri, 5 Nov 2010 14:25:59 +0000 (14:25 +0000)]
Unreviewed.

[Qt] Add platform specific expected results for new passing tests.
Compared to Mac png files and Mac expected files.

* platform/qt/fast/block/basic/truncation-rtl-expected.checksum: Added.
* platform/qt/fast/block/basic/truncation-rtl-expected.png: Added.
* platform/qt/fast/block/basic/truncation-rtl-expected.txt: Added.
* platform/qt/fast/blockflow/background-horizontal-bt-expected.checksum: Added.
* platform/qt/fast/blockflow/background-horizontal-bt-expected.png: Added.
* platform/qt/fast/blockflow/background-horizontal-bt-expected.txt: Added.
* platform/qt/fast/blockflow/background-vertical-lr-expected.checksum: Added.
* platform/qt/fast/blockflow/background-vertical-lr-expected.png: Added.
* platform/qt/fast/blockflow/background-vertical-lr-expected.txt: Added.
* platform/qt/fast/blockflow/background-vertical-rl-expected.checksum: Added.
* platform/qt/fast/blockflow/background-vertical-rl-expected.png: Added.
* platform/qt/fast/blockflow/background-vertical-rl-expected.txt: Added.
* platform/qt/fast/blockflow/basic-vertical-line-expected.checksum: Added.
* platform/qt/fast/blockflow/basic-vertical-line-expected.png: Added.
* platform/qt/fast/blockflow/basic-vertical-line-expected.txt: Added.
* platform/qt/fast/blockflow/body-direction-propagation-blocked-expected.checksum: Added.
* platform/qt/fast/blockflow/body-direction-propagation-blocked-expected.png: Added.
* platform/qt/fast/blockflow/body-direction-propagation-blocked-expected.txt: Added.
* platform/qt/fast/blockflow/body-direction-propagation-expected.checksum: Added.
* platform/qt/fast/blockflow/body-direction-propagation-expected.png: Added.
* platform/qt/fast/blockflow/body-direction-propagation-expected.txt: Added.
* platform/qt/fast/blockflow/body-writing-mode-propagation-blocked-expected.checksum: Added.
* platform/qt/fast/blockflow/body-writing-mode-propagation-blocked-expected.png: Added.
* platform/qt/fast/blockflow/body-writing-mode-propagation-blocked-expected.txt: Added.
* platform/qt/fast/blockflow/body-writing-mode-propagation-expected.checksum: Added.
* platform/qt/fast/blockflow/body-writing-mode-propagation-expected.png: Added.
* platform/qt/fast/blockflow/body-writing-mode-propagation-expected.txt: Added.
* platform/qt/fast/blockflow/border-radius-clipping-vertical-lr-expected.checksum: Added.
* platform/qt/fast/blockflow/border-radius-clipping-vertical-lr-expected.png: Added.
* platform/qt/fast/blockflow/border-radius-clipping-vertical-lr-expected.txt: Added.
* platform/qt/fast/blockflow/box-shadow-horizontal-bt-expected.checksum: Added.
* platform/qt/fast/blockflow/box-shadow-horizontal-bt-expected.png: Added.
* platform/qt/fast/blockflow/box-shadow-horizontal-bt-expected.txt: Added.
* platform/qt/fast/blockflow/box-shadow-vertical-lr-expected.checksum: Added.
* platform/qt/fast/blockflow/box-shadow-vertical-lr-expected.png: Added.
* platform/qt/fast/blockflow/box-shadow-vertical-lr-expected.txt: Added.
* platform/qt/fast/blockflow/box-shadow-vertical-rl-expected.checksum: Added.
* platform/qt/fast/blockflow/box-shadow-vertical-rl-expected.png: Added.
* platform/qt/fast/blockflow/box-shadow-vertical-rl-expected.txt: Added.
* platform/qt/fast/blockflow/english-bt-text-expected.checksum: Added.
* platform/qt/fast/blockflow/english-bt-text-expected.png: Added.
* platform/qt/fast/blockflow/english-bt-text-expected.txt: Added.
* platform/qt/fast/blockflow/english-lr-text-expected.checksum: Added.
* platform/qt/fast/blockflow/english-lr-text-expected.png: Added.
* platform/qt/fast/blockflow/english-lr-text-expected.txt: Added.
* platform/qt/fast/blockflow/english-rl-text-expected.checksum: Added.
* platform/qt/fast/blockflow/english-rl-text-expected.png: Added.
* platform/qt/fast/blockflow/english-rl-text-expected.txt: Added.
* platform/qt/fast/borders/border-radius-inline-flow-expected.checksum: Added.
* platform/qt/fast/borders/border-radius-inline-flow-expected.png: Added.
* platform/qt/fast/borders/border-radius-inline-flow-expected.txt: Added.
* platform/qt/fast/dom/HTMLMeterElement/meter-boundary-values-expected.checksum: Added.
* platform/qt/fast/dom/HTMLMeterElement/meter-boundary-values-expected.png: Added.
* platform/qt/fast/dom/HTMLMeterElement/meter-boundary-values-expected.txt: Added.
* platform/qt/fast/dom/gc-10-expected.checksum: Added.
* platform/qt/fast/dom/gc-10-expected.png: Added.
* platform/qt/fast/dom/gc-10-expected.txt: Added.
* platform/qt/fast/transforms/rotated-transform-affects-scrolling-1-expected.checksum: Added.
* platform/qt/fast/transforms/rotated-transform-affects-scrolling-1-expected.png: Added.
* platform/qt/fast/transforms/rotated-transform-affects-scrolling-1-expected.txt: Added.
* platform/qt/fast/transforms/rotated-transform-affects-scrolling-2-expected.checksum: Added.
* platform/qt/fast/transforms/rotated-transform-affects-scrolling-2-expected.png: Added.
* platform/qt/fast/transforms/rotated-transform-affects-scrolling-2-expected.txt: Added.
* platform/qt/svg/W3C-SVG-1.1-SE/types-dom-06-f-expected.checksum: Added.
* platform/qt/svg/W3C-SVG-1.1-SE/types-dom-06-f-expected.png: Added.
* platform/qt/svg/W3C-SVG-1.1-SE/types-dom-06-f-expected.txt: Added.
* platform/qt/svg/animations: Added.
* platform/qt/svg/animations/repeatDur-zero-expected.checksum: Added.
* platform/qt/svg/animations/repeatDur-zero-expected.png: Added.
* platform/qt/svg/animations/repeatDur-zero-expected.txt: Added.
* platform/qt/svg/custom/use-invalid-pattern-expected.checksum: Added.
* platform/qt/svg/custom/use-invalid-pattern-expected.png: Added.

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

9 years ago2010-11-05 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Fri, 5 Nov 2010 14:25:23 +0000 (14:25 +0000)]
2010-11-05  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: XHR logging in console should give complete view of resource.
        https://bugs.webkit.org/show_bug.cgi?id=48998

        Drive-by fixes: linkify line number to scripts panel, fall back to resources;
        enable multiline console entry on shift modifier as well.

        * inspector/front-end/NetworkPanel.js:
        (WebInspector.NetworkPanel):
        (WebInspector.NetworkPanel.prototype._reset):
        (WebInspector.NetworkPanel.prototype.refreshResource):
        (WebInspector.NetworkPanel.prototype.canShowSourceLine):
        (WebInspector.NetworkPanel.prototype.showSourceLine):
        * inspector/front-end/StoragePanel.js:
        (WebInspector.StoragePanel.prototype.show):
        (WebInspector.StoragePanel.prototype.showSourceLine):
        * inspector/front-end/inspector.js:
        (WebInspector.showPanel):
        (WebInspector.linkifyStringAsFragment):

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

9 years ago2010-10-27 Jeremy Orlow <jorlow@chromium.org>
jorlow@chromium.org [Fri, 5 Nov 2010 14:01:34 +0000 (14:01 +0000)]
2010-10-27  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Steve Block.

        Clean up IDBTransactionBackend/Coordinator
        https://bugs.webkit.org/show_bug.cgi?id=48425

        Get rid of obsolete id and thus we don't need the factory method
        on IDBTransactionCoordinator that creates IDBTransactionBackends.

        Add an assert to IDBTransactionBackend to make sure we're not in
        the coordinator and then remove the coordinators ref counting link
        to the transaction.

        Have the transaction backend zero out refs to the database when its
        done using it.

        Existing tests provide coverage for this refactoring.

        * storage/IDBDatabaseBackendImpl.cpp:
        (WebCore::IDBDatabaseBackendImpl::setVersion):
        (WebCore::IDBDatabaseBackendImpl::transaction):
        * storage/IDBTransactionBackendImpl.cpp:
        (WebCore::IDBTransactionBackendImpl::create):
        (WebCore::IDBTransactionBackendImpl::IDBTransactionBackendImpl):
        (WebCore::IDBTransactionBackendImpl::~IDBTransactionBackendImpl):
        (WebCore::IDBTransactionBackendImpl::abort):
        (WebCore::IDBTransactionBackendImpl::commit):
        * storage/IDBTransactionBackendImpl.h:
        * storage/IDBTransactionBackendInterface.h:
        * storage/IDBTransactionCoordinator.cpp:
        (WebCore::IDBTransactionCoordinator::didStartTransaction):
        (WebCore::IDBTransactionCoordinator::didFinishTransaction):
        (WebCore::IDBTransactionCoordinator::isActive):
        (WebCore::IDBTransactionCoordinator::processStartedTransactions):
        * storage/IDBTransactionCoordinator.h:
2010-10-27  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Steve Block.

        Clean up IDBTransactionBackend/Coordinator
        https://bugs.webkit.org/show_bug.cgi?id=48425

        Remove obsolete ::id() method.

        * public/WebIDBTransaction.h:
        * src/IDBTransactionBackendProxy.cpp:
        * src/IDBTransactionBackendProxy.h:
        * src/WebIDBTransactionImpl.cpp:
        * src/WebIDBTransactionImpl.h:

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

9 years ago2010-10-27 Jeremy Orlow <jorlow@chromium.org>
jorlow@chromium.org [Fri, 5 Nov 2010 13:57:26 +0000 (13:57 +0000)]
2010-10-27  Jeremy Orlow  <jorlow@chromium.org>

        Reviewed by Steve Block.

        IDBFactoryBackend's reference to IDBDatabaseBackend should be weak
        https://bugs.webkit.org/show_bug.cgi?id=48416

        The factory's lifetime is that of the application, so without making
        this weak, IDBDatabaseBackend's will never be closed until the app
        terminates.

        * storage/IDBDatabaseBackendImpl.cpp:
        (WebCore::IDBDatabaseBackendImpl::IDBDatabaseBackendImpl):
        (WebCore::IDBDatabaseBackendImpl::~IDBDatabaseBackendImpl):
        * storage/IDBDatabaseBackendImpl.h:
        (WebCore::IDBDatabaseBackendImpl::create):
        * storage/IDBFactoryBackendImpl.cpp:
        (WebCore::IDBFactoryBackendImpl::removeIDBDatabaseBackend):
        (WebCore::IDBFactoryBackendImpl::removeSQLiteDatabase):
        (WebCore::IDBFactoryBackendImpl::open):
        * storage/IDBFactoryBackendImpl.h:

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

9 years ago2010-11-05 Alejandro G. Castro <alex@igalia.com>
alex@webkit.org [Fri, 5 Nov 2010 12:25:59 +0000 (12:25 +0000)]
2010-11-05  Alejandro G. Castro  <alex@igalia.com>

        Unreviewed, apparently some forms tests need different results in
        the bots after the removing the font hinting.

        * platform/gtk/fast/dynamic/window-resize-scrollbars-test-expected.txt:
        * platform/gtk/fast/forms/001-expected.txt:
        * platform/gtk/fast/forms/003-expected.txt:
        * platform/gtk/fast/forms/004-expected.txt:
        * platform/gtk/fast/forms/HTMLOptionElement_label01-expected.txt:
        * platform/gtk/fast/forms/HTMLOptionElement_label02-expected.txt:
        * platform/gtk/fast/forms/HTMLOptionElement_label03-expected.txt:
        * platform/gtk/fast/forms/HTMLOptionElement_label04-expected.txt:
        * platform/gtk/fast/forms/HTMLOptionElement_label06-expected.txt:
        * platform/gtk/fast/forms/HTMLOptionElement_label07-expected.txt:
        * platform/gtk/fast/forms/control-restrict-line-height-expected.txt:
        * platform/gtk/fast/forms/disabled-select-change-index-expected.txt:
        * platform/gtk/fast/forms/form-element-geometry-expected.txt:
        * platform/gtk/fast/forms/menulist-deselect-update-expected.txt:
        * platform/gtk/fast/forms/menulist-narrow-width-expected.txt:
        * platform/gtk/fast/forms/menulist-no-overflow-expected.txt:
        * platform/gtk/fast/forms/menulist-restrict-line-height-expected.txt:
        * platform/gtk/fast/forms/menulist-separator-painting-expected.txt:
        * platform/gtk/fast/forms/menulist-style-color-expected.txt:
        * platform/gtk/fast/forms/menulist-width-change-expected.txt:
        * platform/gtk/fast/forms/option-script-expected.txt:
        * platform/gtk/fast/forms/option-strip-whitespace-expected.txt:
        * platform/gtk/fast/forms/select-baseline-expected.txt:
        * platform/gtk/fast/forms/select-change-listbox-to-popup-expected.txt:
        * platform/gtk/fast/forms/select-dirty-parent-pref-widths-expected.txt:
        * platform/gtk/fast/forms/select-disabled-appearance-expected.txt:
        * platform/gtk/fast/forms/select-initial-position-expected.txt:
        * platform/gtk/fast/forms/select-size-expected.txt:
        * platform/gtk/fast/forms/select-style-expected.txt:
        * platform/gtk/fast/forms/select-visual-hebrew-expected.txt:
        * platform/gtk/fast/forms/select-writing-direction-natural-expected.txt:
        * platform/gtk/fast/forms/stuff-on-my-optgroup-expected.txt:
        * platform/gtk/scrollbars/custom-scrollbar-with-incomplete-style-expected.txt:
        * platform/gtk/svg/custom/use-font-face-crash-expected.txt:
        * platform/gtk/svg/in-html/circle-expected.txt:

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

9 years ago[Qt][WK2] Left over files and shared memory segments
kbalazs@webkit.org [Fri, 5 Nov 2010 12:03:50 +0000 (12:03 +0000)]
[Qt][WK2] Left over files and shared memory segments
https://bugs.webkit.org/show_bug.cgi?id=48985

Reviewed by Andreas Kling.

* Platform/qt/SharedMemoryQt.cpp:
(WebKit::SharedMemory::create): Force deletion of the QSharedMemory
object on terminate by connecting QCoreApplication::aboutToQuit with
deleteLater. Add the object to the CrashHandler as well to release the
shared memory segment even on crash.
(WebKit::SharedMemory::~SharedMemory):
* Shared/qt/CrashHandler.cpp: Added.
CrashHandler has a container for QObjects that we want to
destroy on crash. When we got a signal that we interpret as
a crash then it destroys those objects.
(WebKit::CrashHandler::CrashHandler):
(WebKit::CrashHandler::signalHandler):
(WebKit::CrashHandler::deleteObjects):
* Shared/qt/CrashHandler.h: Added.
(WebKit::CrashHandler::instance):
(WebKit::CrashHandler::didDelete):
(WebKit::CrashHandler::markForDeletionOnCrash):
* UIProcess/Launcher/qt/ProcessLauncherQt.cpp:
(WebKit::ProcessLauncherHelper::ProcessLauncherHelper):
Add the object itself to the CrashHandler to close the QLocalServer
even on crash. Without that the QLocalServer leaves over socket files on the disk.
(WebKit::ProcessLauncherHelper::~ProcessLauncherHelper):
* WebKit2.pro:

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