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: http://svn.webkit.org/repository/webkit/trunk@71475 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71476 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71477 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71478 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71479 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71480 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71482 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71483 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71485 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71487 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71488 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71489 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71490 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71491 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71493 268f45cc-cd09-0410-ab3c-d52691b4dbfc
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: http://svn.webkit.org/repository/webkit/trunk@71494 268f45cc-cd09-0410-ab3c-d52691b4dbfc