1. 13 Oct, 2011 25 commits
    • commit-queue@webkit.org's avatar
      Unreviewed, rolling out r97362. · 33998592
      commit-queue@webkit.org authored
      http://trac.webkit.org/changeset/97362
      https://bugs.webkit.org/show_bug.cgi?id=70039
      
      Relies on V8 APIs that have been reverted upstream. (Requested
      by dglazkov on #webkit).
      
      Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-10-13
      
      Source/WebCore:
      
      * English.lproj/localizedStrings.js:
      * bindings/js/ScriptProfiler.cpp:
      * bindings/js/ScriptProfiler.h:
      * bindings/v8/ScriptProfiler.cpp:
      * bindings/v8/ScriptProfiler.h:
      * inspector/Inspector.json:
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::InspectorController):
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::create):
      (WebCore::InspectorProfilerAgent::InspectorProfilerAgent):
      * inspector/InspectorProfilerAgent.h:
      * inspector/front-end/DetailedHeapshotGridNodes.js:
      (WebInspector.HeapSnapshotGridNode.prototype.hasHoverMessage.false.hoverMessage):
      (WebInspector.HeapSnapshotGenericObjectNode):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.get data):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.hoverMessage):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.shortenWindowURL):
      * inspector/front-end/DetailedHeapshotView.js:
      (WebInspector.DetailedHeapshotView.prototype._showStringContentPopover):
      * inspector/front-end/HeapSnapshot.js:
      (WebInspector.HeapSnapshot.prototype._init):
      (WebInspector.HeapSnapshot.prototype.dispose):
      (WebInspector.HeapSnapshot.prototype.updateStaticData):
      (WebInspector.HeapSnapshotNodesProvider.prototype._serialize):
      * inspector/front-end/HeapSnapshotProxy.js:
      * inspector/front-end/RemoteObject.js:
      * inspector/front-end/heapProfiler.css:
      
      LayoutTests:
      
      * inspector/profiler/heap-snapshot-expected.txt:
      * inspector/profiler/heap-snapshot-test.js:
      (initialize_HeapSnapshotTest):
      * inspector/profiler/heap-snapshot.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97372 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33998592
    • commit-queue@webkit.org's avatar
      Use realloc() to expand/shrink StringBuilder buffer · 4de3ab70
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69913
      
      Patch by Xianzhu Wang <wangxianzhu@chromium.org> on 2011-10-13
      Reviewed by Darin Adler.
      
      * wtf/text/StringBuilder.cpp:
      (WTF::StringBuilder::reserveCapacity):
      (WTF::StringBuilder::reallocateBuffer):
      (WTF::StringBuilder::appendUninitialized):
      (WTF::StringBuilder::shrinkToFit):
      * wtf/text/StringBuilder.h:
      * wtf/text/StringImpl.cpp:
      (WTF::StringImpl::reallocate): Added to allow StringBuilder to reallocate the buffer.
      * wtf/text/StringImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97371 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4de3ab70
    • hyatt@apple.com's avatar
      Source/WebCore: https://bugs.webkit.org/show_bug.cgi?id=69932 · 1e233187
      hyatt@apple.com authored
              
      Layout repainting messed up for objects in regions. There were two bugs here.
      The first is that the regionOverflowRect needs to at least be the size of the 
      region's rect. When you're in the middle of layout, you haven't computed the
      overflow rect for the flow thread yet (the flow thread's height could even be 0),
      and so you just need to enforce a minimum size. Also removed the region-overflow:break
      clipping behavior, since it was established that was wrong.
              
      The second bug is that when you tell a region to repaint, you need to disable layout state,
      since applying layout deltas from the flow thread makes no sense. The region is in a totally
      different place in the render tree, so the current flow thread layout state can't be used
      to determine your coordinate offset.
      
      Reviewed by Dan Bernstein.
      
      Added fast/repaint test.
      
      * rendering/RenderFlowThread.cpp:
      (WebCore::RenderFlowThread::repaintRectangleInRegions):
      * rendering/RenderRegion.cpp:
      (WebCore::RenderRegion::regionOverflowRect):
      
      LayoutTests: https://bugs.webkit.org/show_bug.cgi?id=69932
              
      Layout repainting messed up for objects in regions. Add a repaint test to
      illustrate the issue.
      
      Reviewed by Dan Bernstein.
      
      * fast/repaint/region-painting-via-layout.html: Added.
      * platform/mac/fast/regions/region-overflow-break-expected.png:
      * platform/mac/fast/repaint/region-painting-via-layout-expected.png: Added.
      * platform/mac/fast/repaint/region-painting-via-layout-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97370 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1e233187
    • reni@webkit.org's avatar
      FEComponentTransfer element doesn't support dynamic invalidation · a0e31749
      reni@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69747
      
      Source/WebCore: 
      
      The dynamic changes are captured by the svgAttributeChange() function, and
      invalidate the filter primitive if necessary.
      invalidateFilterPrimitiveParent() is a new free function in
      SVGFilterPrimitiveStanardAttributes what makes the invalidation possible
      by objects not inherited from SVGFilterPrimitiveStanardAttributes too.
      This solution was used in SVGFEMergeNodeElement::svgAttributeChanged()
      previously and now it can use this new function too.
      
      Reviewed by Nikolas Zimmermann.
      
      Tests: svg/dynamic-updates/SVGFEComponentTransferElement-dom-amplitude-attr.html
             svg/dynamic-updates/SVGFEComponentTransferElement-dom-exponent-attr.html
             svg/dynamic-updates/SVGFEComponentTransferElement-dom-intercept-attr.html
             svg/dynamic-updates/SVGFEComponentTransferElement-dom-offset-attr.html
             svg/dynamic-updates/SVGFEComponentTransferElement-dom-slope-attr.html
             svg/dynamic-updates/SVGFEComponentTransferElement-dom-tableValues-attr.html
             svg/dynamic-updates/SVGFEComponentTransferElement-dom-type-attr.html
             svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-amplitude-prop.html
             svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-exponent-prop.html
             svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-intercept-prop.html
             svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-offset-prop.html
             svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-slope-prop.html
             svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-tableValues-prop.html
             svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-type-prop.html
      
      * svg/SVGComponentTransferFunctionElement.cpp:
      (WebCore::SVGComponentTransferFunctionElement::svgAttributeChanged):
      * svg/SVGComponentTransferFunctionElement.h:
      * svg/SVGFEComponentTransferElement.cpp:
      (WebCore::SVGFEComponentTransferElement::build):
      * svg/SVGFEMergeNodeElement.cpp:
      (WebCore::SVGFEMergeNodeElement::svgAttributeChanged):
      * svg/SVGFilterPrimitiveStandardAttributes.cpp:
      (WebCore::invalidateFilterPrimitiveParent):
      * svg/SVGFilterPrimitiveStandardAttributes.h:
      
      LayoutTests: 
      
      Adding new tests for feComponentTransfer dynamic changes.
      
      Reviewed by Nikolas Zimmermann.
      
      * platform/mac/svg/dynamic-updates/SVGFEComponentTransferElement-dom-amplitude-attr-expected.png: Added.
      * platform/mac/svg/dynamic-updates/SVGFEComponentTransferElement-dom-exponent-attr-expected.png: Added.
      * platform/mac/svg/dynamic-updates/SVGFEComponentTransferElement-dom-intercept-attr-expected.png: Added.
      * platform/mac/svg/dynamic-updates/SVGFEComponentTransferElement-dom-offset-attr-expected.png: Added.
      * platform/mac/svg/dynamic-updates/SVGFEComponentTransferElement-dom-slope-attr-expected.png: Added.
      * platform/mac/svg/dynamic-updates/SVGFEComponentTransferElement-dom-tableValues-attr-expected.png: Added.
      * platform/mac/svg/dynamic-updates/SVGFEComponentTransferElement-dom-type-attr-expected.png: Added.
      * platform/mac/svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-amplitude-prop-expected.png: Added.
      * platform/mac/svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-exponent-prop-expected.png: Added.
      * platform/mac/svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-intercept-prop-expected.png: Added.
      * platform/mac/svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-offset-prop-expected.png: Added.
      * platform/mac/svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-slope-prop-expected.png: Added.
      * platform/mac/svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-tableValues-prop-expected.png: Added.
      * platform/mac/svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-type-prop-expected.png: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-dom-amplitude-attr-expected.txt: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-dom-amplitude-attr.html: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-dom-exponent-attr-expected.txt: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-dom-exponent-attr.html: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-dom-intercept-attr-expected.txt: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-dom-intercept-attr.html: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-dom-offset-attr-expected.txt: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-dom-offset-attr.html: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-dom-slope-attr-expected.txt: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-dom-slope-attr.html: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-dom-tableValues-attr-expected.txt: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-dom-tableValues-attr.html: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-dom-type-attr-expected.txt: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-dom-type-attr.html: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-amplitude-prop-expected.txt: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-amplitude-prop.html: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-exponent-prop-expected.txt: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-exponent-prop.html: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-intercept-prop-expected.txt: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-intercept-prop.html: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-offset-prop-expected.txt: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-offset-prop.html: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-slope-prop-expected.txt: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-slope-prop.html: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-tableValues-prop-expected.txt: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-tableValues-prop.html: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-type-prop-expected.txt: Added.
      * svg/dynamic-updates/SVGFEComponentTransferElement-svgdom-type-prop.html: Added.
      * svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-dom-amplitude-attr.js: Added.
      (executeTest):
      * svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-dom-exponent-attr.js: Added.
      (executeTest):
      * svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-dom-intercept-attr.js: Added.
      (executeTest):
      * svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-dom-offset-attr.js: Added.
      (executeTest):
      * svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-dom-slope-attr.js: Added.
      (executeTest):
      * svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-dom-tableValues-attr.js: Added.
      (executeTest):
      * svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-dom-type-attr.js: Added.
      (executeTest):
      * svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-svgdom-amplitude-prop.js: Added.
      (executeTest):
      * svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-svgdom-exponent-prop.js: Added.
      (executeTest):
      * svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-svgdom-intercept-prop.js: Added.
      (executeTest):
      * svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-svgdom-offset-prop.js: Added.
      (executeTest):
      * svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-svgdom-slope-prop.js: Added.
      (executeTest):
      * svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-svgdom-tableValues-prop.js: Added.
      (SVGNumberListToString):
      (executeTest):
      * svg/dynamic-updates/script-tests/SVGFEComponentTransferElement-svgdom-type-prop.js: Added.
      (executeTest):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97369 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a0e31749
    • commit-queue@webkit.org's avatar
      [chromium] Add a selectionBounds() method to WebWidget. · 7eaa8bec
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69028
      
      Patch by Peng Huang <shawn.p.huang@gmail.com> on 2011-10-13
      Reviewed by Darin Fisher.
      
      * public/WebWidget.h:
      (WebKit::WebWidget::selectionBounds):
      * src/WebViewImpl.cpp:
      (WebKit::WebViewImpl::selectionRange):
      (WebKit::WebViewImpl::selectionBounds):
      * src/WebViewImpl.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7eaa8bec
    • commit-queue@webkit.org's avatar
      REGRESSION (r95381): Standalone video can be focused and draws a focus ring. · 568dcd62
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69097
      
      Patch by Deepak Sherveghar <bpwv64@motorola.com> on 2011-10-13
      Reviewed by Eric Carlson.
      
      Source/WebCore:
      
      We don't want to focus a media element in a standalone document.
      
      Test: fast/events/media-focus-in-standalone-media-document.html
      
      * html/HTMLMediaElement.cpp:
      (WebCore::HTMLMediaElement::supportsFocus): return false if media element is in a standalone media document.
      
      LayoutTests:
      
      New test to check that media element in a standalone document are not focussed.
      
      * fast/events/media-focus-in-standalone-media-document-expected.txt: Added.
      * fast/events/media-focus-in-standalone-media-document.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97367 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      568dcd62
    • carlosgc@webkit.org's avatar
      [GTK] Add WebKitTestServer class to WebKit2 GTK+ unit tests library · 67134db5
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=70010
      
      Reviewed by Martin Robinson.
      
      With this class tests using a soup server only need to implement
      the soup server callback.
      
      * UIProcess/API/gtk/tests/GNUmakefile.am: Add new files to compilation.
      * UIProcess/API/gtk/tests/TestWebKitWebLoaderClient.cpp: Use WebKitTestServer.
      (testLoadingStatus):
      (testLoadingError):
      (testLoadAlternateContent):
      (testWebViewReload):
      (testLoadProgress):
      (beforeAll):
      (afterAll):
      * UIProcess/API/gtk/tests/WebKitTestServer.cpp: Added.
      (WebKitTestServer::WebKitTestServer):
      (WebKitTestServer::~WebKitTestServer):
      (WebKitTestServer::run): Run the soup server and adds the given
      soup server callback to handle requests.
      (WebKitTestServer::getURIForPath): Returns the server absolute URI
      for the given relative path.
      * UIProcess/API/gtk/tests/WebKitTestServer.h: Added.
      (WebKitTestServer::baseURI):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97366 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      67134db5
    • leandro@webkit.org's avatar
      Unreviewed; revert some changes introduced in r97329 which are · 7592be76
      leandro@webkit.org authored
      unrelated to the patch and reverted other patches themselves.
      
      * ewk/ewk_frame.cpp:
      (_ewk_frame_smart_del): Remove warning again.
      (ewk_frame_contents_size_get): Check for Frame and FrameView again.
      * ewk/ewk_view.cpp:
      (_ewk_view_priv_new): Revert back default font size change.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97365 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7592be76
    • commit-queue@webkit.org's avatar
      [WebKit2][gtk] Fix warnings while generating WebKit2-GTK+ documentation. · d590787c
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69928
      
      Patch by Nayan Kumar K <nayankk@motorola.com> on 2011-10-13
      Reviewed by Philippe Normand.
      
      Patch fixes the warnings reported by gtk-doc while generating
      WebKit2-GTK+ documentation.
      
      * UIProcess/API/gtk/WebKitWebContext.h: Correct the documentation comment.
      * UIProcess/API/gtk/WebKitWebView.cpp: Parameter name correction.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97364 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d590787c
    • sergio@webkit.org's avatar
      Unreviewed, rebaselined GTK SVG test result. · e0538aa4
      sergio@webkit.org authored
      * platform/gtk/svg/hixie/cascade/002-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97363 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e0538aa4
    • mnaganov@chromium.org's avatar
      Web Inspector: [Chromium] Add an ability to look up and explore an object from a heap profile. · 32d0638d
      mnaganov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=61179
      
      This is exteremely helpful when dealing with DOM wrappers, as
      their properties are mostly implemented with getters and thus not
      stored in heap snapshots.
      
      Reviewed by Pavel Feldman.
      
      * English.lproj/localizedStrings.js:
      * bindings/js/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::objectByHeapObjectId):
      * bindings/js/ScriptProfiler.h:
      * bindings/v8/ScriptProfiler.cpp:
      (WebCore::ScriptProfiler::objectByHeapObjectId):
      * bindings/v8/ScriptProfiler.h:
      * inspector/Inspector.json:
      * inspector/InspectorController.cpp:
      (WebCore::InspectorController::InspectorController):
      * inspector/InspectorProfilerAgent.cpp:
      (WebCore::InspectorProfilerAgent::create):
      (WebCore::InspectorProfilerAgent::InspectorProfilerAgent):
      (WebCore::InspectorProfilerAgent::getObjectByHeapObjectId):
      * inspector/InspectorProfilerAgent.h:
      * inspector/front-end/DetailedHeapshotGridNodes.js:
      (WebInspector.HeapSnapshotGridNode.prototype.hasHoverMessage.false.queryObjectContent):
      (WebInspector.HeapSnapshotGenericObjectNode):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.get data):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.queryObjectContent.else.formatResult):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.queryObjectContent):
      (WebInspector.HeapSnapshotGenericObjectNode.prototype.shortenWindowURL):
      * inspector/front-end/DetailedHeapshotView.js:
      (WebInspector.DetailedHeapshotView.prototype._showObjectPopover):
      * inspector/front-end/HeapSnapshot.js:
      (WebInspector.HeapSnapshotNode.prototype.get canBeQueried):
      (WebInspector.HeapSnapshotNode.prototype.get flags):
      (WebInspector.HeapSnapshotNode.prototype.get isDOMWindow):
      (WebInspector.HeapSnapshot.prototype._init):
      (WebInspector.HeapSnapshot.prototype.dispose):
      (WebInspector.HeapSnapshot.prototype._flagsOfNode):
      (WebInspector.HeapSnapshot.prototype._calculateFlags):
      (WebInspector.HeapSnapshot.prototype.updateStaticData):
      (WebInspector.HeapSnapshotNodesProvider.prototype._serialize):
      * inspector/front-end/HeapSnapshotProxy.js:
      (WebInspector.HeapSnapshotProxy.prototype.get nodeFlags):
      * inspector/front-end/RemoteObject.js:
      (WebInspector.RemoteObject.fromError):
      * inspector/front-end/heapProfiler.css:
      (.detailed-heapshot-view tr:not(.selected) td.object-column span.highlight):
      
      * inspector/profiler/heap-snapshot-expected.txt:
      * inspector/profiler/heap-snapshot-test.js:
      (initialize_HeapSnapshotTest.InspectorTest.createHeapSnapshotMockWithDOM):
      (initialize_HeapSnapshotTest):
      * inspector/profiler/heap-snapshot.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97362 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      32d0638d
    • tkent@chromium.org's avatar
      [Chromium] Fix test expectations. · f3ec21be
      tkent@chromium.org authored
      * platform/chromium-gpu-linux/media/video-playing-and-pause-expected.png: Renamed from LayoutTests/platform/chromium-gpu-linux/media/video-playing-and-pause.png.
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97361 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f3ec21be
    • abarth@webkit.org's avatar
      script-src * should allow all URLs · 6c5b65d7
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=70011
      
      Reviewed by Eric Seidel.
      
      Source/WebCore:
      
      This patch gets us slightly ahead of the spec.  Technically, script-src
      means "any host" and inherits the current scheme.  However, that's not
      what developers expect and it's even contradicted by examples in the
      spec itself.  After this patch, * matches all URLs.
      
      Test: http/tests/security/contentSecurityPolicy/script-src-star-cross-scheme.html
      
      * page/ContentSecurityPolicy.cpp:
      (WebCore::CSPSourceList::CSPSourceList):
      (WebCore::CSPSourceList::matches):
      (WebCore::CSPSourceList::parseSource):
      (WebCore::CSPSourceList::addSourceStar):
      
      LayoutTests:
      
      Test that using * in script-src matches URLs with other schemes.
      
      * http/tests/security/contentSecurityPolicy/script-src-star-cross-scheme-expected.txt: Added.
      * http/tests/security/contentSecurityPolicy/script-src-star-cross-scheme.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6c5b65d7
    • tkent@chromium.org's avatar
      [Chromium] Update test expectation. · 714bcf70
      tkent@chromium.org authored
      * fast/borders/border-radius-different-width-001-expected.txt: Renamed from LayoutTests/platform/gtk/fast/borders/border-radius-different-width-001-expected.txt.
      * fast/inline/left-right-center-inline-alignment-in-ltr-and-rtl-blocks-expected.txt: Renamed from LayoutTests/platform/gtk/fast/inline/left-right-center-inline-alignment-in-ltr-and-rtl-blocks-expected.txt.
      * platform/chromium-cg-mac-leopard/css2.1/20110323/border-conflict-style-079-expected.png: Added.
      * platform/chromium-cg-mac-leopard/css2.1/20110323/border-conflict-style-088-expected.png: Added.
      * platform/chromium-cg-mac-snowleopard/css2.1/20110323/border-conflict-style-079-expected.png: Added.
      * platform/chromium-cg-mac-snowleopard/css2.1/20110323/border-conflict-style-088-expected.png: Added.
      * platform/chromium-cg-mac-snowleopard/fast/borders/border-radius-complex-inner-expected.png: Added.
      * platform/chromium-cg-mac-snowleopard/fast/borders/border-radius-different-width-001-expected.png: Added.
      * platform/chromium-cg-mac-snowleopard/fast/borders/mixed-border-styles-radius-expected.png: Added.
      * platform/chromium-cg-mac/fast/borders/border-radius-different-width-001-expected.png: Removed.
      * platform/chromium-cg-mac/fast/borders/mixed-border-styles-radius-expected.png: Removed.
      * platform/chromium-mac-leopard/css2.1/20110323/border-conflict-style-079-expected.png: Added.
      * platform/chromium-mac-leopard/css2.1/20110323/border-conflict-style-088-expected.png: Added.
      * platform/chromium-mac-snowleopard/css2.1/20110323/border-conflict-style-079-expected.png: Added.
      * platform/chromium-mac-snowleopard/css2.1/20110323/border-conflict-style-088-expected.png: Added.
      * platform/chromium-mac-snowleopard/fast/borders/border-radius-complex-inner-expected.png: Added.
      * platform/chromium-mac-snowleopard/fast/borders/border-radius-different-width-001-expected.png: Added.
      * platform/chromium-mac-snowleopard/fast/borders/mixed-border-styles-radius-expected.png: Added.
      * platform/chromium-mac/fast/borders/border-radius-different-width-001-expected.png: Removed.
      * platform/chromium-mac/fast/borders/mixed-border-styles-radius-expected.png: Removed.
      * platform/chromium-win/css2.1/20110323/border-conflict-style-079-expected.png: Added.
      * platform/chromium-win/css2.1/20110323/border-conflict-style-079-expected.txt: Renamed from LayoutTests/platform/chromium-linux/css2.1/20110323/border-conflict-style-079-expected.txt.
      * platform/chromium-win/css2.1/20110323/border-conflict-style-088-expected.png: Added.
      * platform/chromium-win/css2.1/20110323/border-conflict-style-088-expected.txt: Renamed from LayoutTests/platform/chromium-linux/css2.1/20110323/border-conflict-style-088-expected.txt.
      * platform/chromium-win/fast/borders/border-radius-complex-inner-expected.png: Added.
      * platform/chromium-win/fast/borders/border-radius-different-width-001-expected.png:
      * platform/chromium-win/fast/borders/mixed-border-styles-radius-expected.png:
      * platform/chromium-win/fast/css/outline-narrowLine-expected.png: Renamed from LayoutTests/platform/chromium-linux/fast/css/outline-narrowLine-expected.png.
      * platform/chromium-win/fast/css/outline-narrowLine-expected.txt: Renamed from LayoutTests/platform/chromium-linux/fast/css/outline-narrowLine-expected.txt.
      * platform/chromium-win/fast/inline/left-right-center-inline-alignment-in-ltr-and-rtl-blocks-expected.png: Added.
      * platform/chromium-win/fast/inline/left-right-center-inline-alignment-in-ltr-and-rtl-blocks-expected.txt: Renamed from LayoutTests/platform/chromium-linux/fast/inline/left-right-center-inline-alignment-in-ltr-and-rtl-blocks-expected.txt.
      * platform/chromium/fast/css/outline-narrowLine-expected.png: Added.
      * platform/chromium/fast/inline/left-right-center-inline-alignment-in-ltr-and-rtl-blocks-expected.png: Added.
      * platform/chromium/test_expectations.txt:
      * platform/mac/fast/borders/border-radius-different-width-001-expected.txt: Removed.
      * platform/mac/fast/inline/left-right-center-inline-alignment-in-ltr-and-rtl-blocks-expected.txt: Removed.
      * platform/qt/fast/borders/border-radius-different-width-001-expected.txt: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      714bcf70
    • tkent@chromium.org's avatar
      [Chromium] Update test expectation. · d12eb895
      tkent@chromium.org authored
      * platform/chromium-gpu-linux/media/video-playing-and-pause.png: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97358 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d12eb895
    • tkent@chromium.org's avatar
      Update expectation of xss-DENIED-contentWindow-eval.html for r97353 · 0acf5255
      tkent@chromium.org authored
      * http/tests/security/xss-DENIED-contentWindow-eval-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97357 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0acf5255
    • haraken@chromium.org's avatar
      Implement an OverflowEvent constructor for JSC · 87d22d23
      haraken@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69907
      
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      There is no spec for the OverflowEvent constructor
      since it is WebKit-specific. However, judging from the current
      IDL of initOverflowEvent(), the constructor IDL should be as follows.
      
      [Constructor(DOMString type, optional OverflowEventInit eventInitDict)]
      interface OverflowEvent : Event {
          ...;
      }
      
      dictionary OverflowEventInit : EventInit {
          unsigned short orient;
          boolean horizontalOverflow;
          boolean verticalOverflow;
      }
      
      Note: In initOverflowEvent(), we cannot specify |bubbles| and |cancelable|.
      I do not know why, but we can find a comment in fast/events/script-tests/init-events.js
      that says "initOverflowEvent has an interface that has a design that's
      inconsistent with the init functions from other events".
      On the other hand, the above constructor enables to specify |bubbles| and |cancelable|,
      which is consistent with other constructors.
      
      Test: fast/events/constructors/overflow-event-constructor.html
      
      * bindings/generic/EventConstructors.h: Added a definition for the OverflowEvent constructor.
      * bindings/js/JSEventConstructors.cpp: Added #includes for OverflowEvent.
      * dom/OverflowEvent.cpp:
      (WebCore::OverflowEventInit::OverflowEventInit):
      (WebCore::OverflowEvent::OverflowEvent):
      (WebCore::OverflowEvent::initOverflowEvent):
      * dom/OverflowEvent.h: Added a definition for OverflowEventInit.
      (WebCore::OverflowEvent::create):
      (WebCore::OverflowEvent::orient):
      (WebCore::OverflowEvent::horizontalOverflow):
      (WebCore::OverflowEvent::verticalOverflow):
      * dom/OverflowEvent.idl: Makes OverflowEvent constructible.
      
      LayoutTests:
      
      overflow-event-constructor.html checks the behavior of the OverflowEvent constructor.
      
      * fast/dom/constructed-objects-prototypes-expected.txt: Added inner.OverflowEvent().
      * fast/dom/dom-constructors-expected.txt: Updated the test result.
      * fast/dom/dom-constructors.html: Removed OverflowEvent from test cases, since now OverflowEvent has a constructor.
      * fast/events/constructors/overflow-event-constructor-expected.txt: Added.
      * fast/events/constructors/overflow-event-constructor.html: Added.
      * platform/chromium/test_expectations.txt: Skipped overflow-event-constructor.html, since V8 does not yet have the OverflowEvent constructor.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97356 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      87d22d23
    • tkent@chromium.org's avatar
      Cleanup of HTMLSelectElement · 76e5b12a
      tkent@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69908
      
      Reviewed by Darin Adler.
      
      Source/WebCore:
      
      - Change the m_listItems type: Vector<Element*> -> Vector<HTMLElement*>
      - Rename a member: m_recalcListItems -> m_shouldRecalcListItems
      - Fold checkListItems() into listItems()
      - Style fixes
      
      No new tests, just a cleanup.
      
      * accessibility/AccessibilityListBox.cpp:
      (WebCore::AccessibilityListBox::addChildren):
      * accessibility/AccessibilityListBoxOption.cpp:
      (WebCore::AccessibilityListBoxOption::listBoxOptionIndex):
      * accessibility/AccessibilityMenuListPopup.cpp:
      (WebCore::AccessibilityMenuListPopup::addChildren):
      * accessibility/AccessibilityRenderObject.cpp:
      (WebCore::AccessibilityRenderObject::stringValue):
      * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
      (optionFromSelection):
      (webkit_accessible_selection_get_selection_count):
      * dom/OptionElement.cpp:
      (WebCore::OptionElement::optionIndex):
      * html/HTMLSelectElement.cpp:
      (WebCore::HTMLSelectElement::HTMLSelectElement):
      (WebCore::HTMLSelectElement::add):
      (WebCore::HTMLSelectElement::value):
      (WebCore::HTMLSelectElement::setValue):
      (WebCore::HTMLSelectElement::parseMappedAttribute):
      (WebCore::HTMLSelectElement::recalcListItemsIfNeeded):
      (WebCore::HTMLSelectElement::setOption):
      (WebCore::HTMLSelectElement::setLength):
      (WebCore::HTMLSelectElement::nextValidIndex):
      (WebCore::HTMLSelectElement::firstSelectableListIndex):
      (WebCore::HTMLSelectElement::nextSelectableListIndexPageAway):
      (WebCore::HTMLSelectElement::selectAll):
      (WebCore::HTMLSelectElement::saveLastSelection):
      (WebCore::HTMLSelectElement::setActiveSelectionAnchorIndex):
      (WebCore::HTMLSelectElement::updateListBoxSelection):
      (WebCore::HTMLSelectElement::listBoxOnChange):
      (WebCore::HTMLSelectElement::listItems):
      (WebCore::HTMLSelectElement::setRecalcListItems):
      (WebCore::HTMLSelectElement::recalcListItemsInternal):
      (WebCore::HTMLSelectElement::selectedIndex):
      (WebCore::HTMLSelectElement::setSelectedIndexInternal):
      (WebCore::HTMLSelectElement::optionToListIndex):
      (WebCore::HTMLSelectElement::listToOptionIndex):
      (WebCore::HTMLSelectElement::dispatchFocusEvent):
      (WebCore::HTMLSelectElement::deselectItemsWithoutValidation):
      (WebCore::HTMLSelectElement::saveFormControlState): Use StringBuilder.
      (WebCore::HTMLSelectElement::restoreFormControlState):
      (WebCore::HTMLSelectElement::appendFormData):
      (WebCore::HTMLSelectElement::reset):
      (WebCore::HTMLSelectElement::menuListDefaultEventHandler):
      (WebCore::HTMLSelectElement::updateSelectedState):
      (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
      (WebCore::HTMLSelectElement::lastSelectedListIndex):
      Optimize the code by iterating in the reverse order.
      (WebCore::HTMLSelectElement::typeAheadFind):
      (WebCore::HTMLSelectElement::accessKeySetSelectedIndex):
      (WebCore::HTMLSelectElement::length):
      (WebCore::toSelectElement):
      * html/HTMLSelectElement.h:
      * rendering/RenderListBox.cpp:
      (WebCore::RenderListBox::updateFromElement):
      (WebCore::RenderListBox::addFocusRingRects):
      (WebCore::RenderListBox::paintItemForeground):
      (WebCore::RenderListBox::paintItemBackground):
      (WebCore::RenderListBox::nodeAtPoint):
      * rendering/RenderMenuList.cpp:
      (WebCore::RenderMenuList::updateOptionsWidth):
      (WebCore::RenderMenuList::setTextFromOption):
      (WebCore::RenderMenuList::itemText):
      (WebCore::RenderMenuList::itemAccessibilityText):
      (WebCore::RenderMenuList::itemToolTip):
      (WebCore::RenderMenuList::itemIsEnabled):
      (WebCore::RenderMenuList::itemStyle):
      (WebCore::RenderMenuList::itemBackgroundColor):
      (WebCore::RenderMenuList::itemIsSeparator):
      (WebCore::RenderMenuList::itemIsLabel):
      (WebCore::RenderMenuList::itemIsSelected):
      
      Source/WebKit/chromium:
      
      Change the HTMLSelectElement::listItems() return type:
        Vector<Element*> -> Vector<HTMLElement*>
      
      * src/WebSearchableFormData.cpp:
      (HTMLNames::IsSelectInDefaultState):
      * src/WebSelectElement.cpp:
      (WebKit::WebSelectElement::listItems):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97354 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      76e5b12a
    • abarth@webkit.org's avatar
      DOMWindow subobjects can be re-created after navigation · a58bb856
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=68849
      
      Reviewed by Sam Weinig.
      
      Source/WebCore: 
      
      Test: http/tests/security/xss-DENIED-getSelection-from-inactive-domwindow.html
      
      * page/DOMWindow.cpp:
      (WebCore::DOMWindow::~DOMWindow):
          - Add ASSERTs to show that we're not recreating these objects.
          - Add a call to clear() as defense in depth in case we have any of
            these objects hanging around.
      (WebCore::DOMWindow::clear):
          - Clear out a couple of objects that weren't getting cleared.
            These are actually not likely to cause problems, but clearing
            them out is the safe thing to do.
      (WebCore::DOMWindow::isActive):
          - Add a concept of whether the DOMWindow is "active" in its frame.
            We had this concept in a couple places already, but centralizing
            it into a helper function make it easier to use and talk about.
      (WebCore::DOMWindow::orientation):
          - Whitespace nit.
      (WebCore::DOMWindow::screen):
      (WebCore::DOMWindow::history):
      (WebCore::DOMWindow::crypto):
      (WebCore::DOMWindow::locationbar):
      (WebCore::DOMWindow::menubar):
      (WebCore::DOMWindow::personalbar):
      (WebCore::DOMWindow::scrollbars):
      (WebCore::DOMWindow::statusbar):
      (WebCore::DOMWindow::toolbar):
      (WebCore::DOMWindow::console):
      (WebCore::DOMWindow::applicationCache):
      (WebCore::DOMWindow::navigator):
      (WebCore::DOMWindow::performance):
      (WebCore::DOMWindow::location):
      (WebCore::DOMWindow::sessionStorage):
      (WebCore::DOMWindow::localStorage):
      (WebCore::DOMWindow::webkitNotifications):
      (WebCore::DOMWindow::webkitIndexedDB):
      (WebCore::DOMWindow::getSelection):
      (WebCore::DOMWindow::styleMedia):
      (WebCore::DOMWindow::webkitURL):
      (WebCore::DOMWindow::webkitStorageInfo):
          - Avoid creating these objects when we're not active.  That can
            only lead to sadness.
      (WebCore::DOMWindow::webkitRequestFileSystem):
      (WebCore::DOMWindow::webkitResolveLocalFileSystemURL):
      (WebCore::DOMWindow::openDatabase):
      (WebCore::DOMWindow::postMessage):
          - While not techincally creating subobjects, these functions also
            seem unwise when the DOMWindow is inactive.
      (WebCore::DOMWindow::find):
      (WebCore::DOMWindow::length):
      (WebCore::DOMWindow::getMatchedCSSRules):
          - These functions operate on the active Document.  When we're not
            active, that's not us!
      (WebCore::DOMWindow::document):
          - Update to use the new concept of being active rather than having
            this function roll its own implementation.
      (WebCore::DOMWindow::webkitConvertPointFromNodeToPage):
      (WebCore::DOMWindow::webkitConvertPointFromPageToNode):
      (WebCore::DOMWindow::scrollBy):
      (WebCore::DOMWindow::scrollTo):
          - These functions also look unwise to run when inactive because
            they're reading information from the active document.
          - I added a RefPtr for node because the call to
            updateLayoutIgnorePendingStylesheets() seems likely to be able to
            run script somehow.
      (WebCore::DOMWindow::addEventListener):
      (WebCore::DOMWindow::removeEventListener):
      (WebCore::DOMWindow::dispatchLoadEvent):
      (WebCore::DOMWindow::dispatchEvent):
          - I don't think these functions worked when inactive anyway, but
            explicitly blocking them seems wise.
      (WebCore::DOMWindow::setLocation):
      (WebCore::DOMWindow::isInsecureScriptAccess):
      (WebCore::DOMWindow::open):
      (WebCore::DOMWindow::showModalDialog):
          - These already have checks for being active, but it can't hurt to
            be explicit at the top of the function.
      * page/DOMWindow.h:
      
      LayoutTests: 
      
      * http/tests/security/xss-DENIED-getSelection-from-inactive-domwindow-expected.txt: Added.
      * http/tests/security/xss-DENIED-getSelection-from-inactive-domwindow.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97353 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a58bb856
    • tkent@chromium.org's avatar
      [Chromium] Fix errors in test_expectations.txt. · 23248840
      tkent@chromium.org authored
      * platform/chromium/test_expectations.txt:
      Remove duplicated entries for MAC DEBUG.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      23248840
    • tkent@chromium.org's avatar
      REGRESSION(r89915): <input type=email multiple> don't show the default value · 8bc5ea65
      tkent@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69895
      
      Reviewed by Hajime Morita.
      
      Source/WebCore:
      
      m_valueIfDirty became unexpectedly empty because
      EmailInputType::sanitizeValue() returned an empty string for a
      null input string.
      
      To solve this issue, HTMLInputElement::sanitizeValue() checks
      nullness, and remove the null check of sanitizeValue() of
      InputType subclasses.
      Also, we make InputType::sanitizeValue() const.
      
      * html/ColorInputType.cpp:
      (WebCore::ColorInputType::sanitizeValue):
      - Make this const.
      - Remove null check.
      * html/ColorInputType.h: Make sanitizeValue() const.
      * html/EmailInputType.cpp:
      (WebCore::EmailInputType::sanitizeValue): Make this const.
      * html/EmailInputType.h: Make sanitizeValue() const.
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::sanitizeValue):
      (WebCore::HTMLInputElement::updateValueIfNeeded):
      * html/InputType.cpp:
      (WebCore::InputType::sanitizeValue):
      Returns a null string if the input string is null, and
      don't call InputType::sanitizeValue() in this case.
      * html/InputType.h: Make sanitizeValue() const.
      * html/NumberInputType.cpp:
      (WebCore::NumberInputType::sanitizeValue): Make this const.
      * html/NumberInputType.h: Make sanitizeValue() const.
      * html/RangeInputType.cpp:
      (WebCore::RangeInputType::sanitizeValue):
      - Make this const.
      - Remove null check.
      * html/RangeInputType.h: Make sanitizeValue() const.
      * html/TextFieldInputType.cpp:
      (WebCore::TextFieldInputType::sanitizeValue): Make this const.
      * html/TextFieldInputType.h: Make sanitizeValue() const.
      
      LayoutTests:
      
      * fast/forms/input-value-sanitization-expected.txt:
      * fast/forms/input-value-sanitization.html:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97351 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8bc5ea65
    • tkent@chromium.org's avatar
      [Chromium] A DRT fix for r97348. · 33d5956a
      tkent@chromium.org authored
      * DumpRenderTree/chromium/LayoutTestController.cpp:
      (LayoutTestController::overridePreference):
      Ignore overridePreference() for "WebKitWebAudioEnabled", and don't
      print an error message.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33d5956a
    • ossy@webkit.org's avatar
      [Qt] Unreviewed gardening. · 8ed25ad6
      ossy@webkit.org authored
      Web Inspector: REGRESSION(r97267): It made 3 tests fail on the Qt bot
      https://bugs.webkit.org/show_bug.cgi?id=70005
      
      * platform/qt/Skipped: Skip failing tests.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97349 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8ed25ad6
    • philn@webkit.org's avatar
      Tests don't override the WebKitWebAudioEnabled runtime preference · 1b7d8f5a
      philn@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69830
      
      Rubber-stamped by Eric Carlson.
      
      Override WebKitWebAudioEnabled in the WebAudio tests so the audio
      context can be created even for the WebKit ports not enabling the
      runtime WebAudio preference by default.
      
      * webaudio/biquadfilternode-basic.html:
      * webaudio/delaynode-scheduling.html:
      * webaudio/delaynode.html:
      * webaudio/mediaelementaudiosourcenode-gc.html:
      * webaudio/mediaelementaudiosourcenode.html:
      * webaudio/realtimeanalyser-fft-sizing.html:
      * webaudio/resources/audio-testing.js:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97348 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b7d8f5a
    • tkent@chromium.org's avatar
      [Chromium] Test expectation udpate. · 1b6e6165
      tkent@chromium.org authored
      Add baseline files for ruby-base-merge-block-children.html, and
      color-jpeg-with-color-profile.html only for Mac.
      
      * fast/ruby/ruby-base-merge-block-children-crash-expected.txt: Renamed from LayoutTests/platform/gtk/fast/ruby/ruby-base-merge-block-children-crash-expected.txt.
      * platform/chromium-cg-mac-leopard/fast/images/color-jpeg-with-color-profile-expected.png: Added.
      * platform/chromium-cg-mac-leopard/fast/images/color-jpeg-with-color-profile-expected.txt: Added.
      * platform/chromium-cg-mac-snowleopard/fast/images/color-jpeg-with-color-profile-expected.png: Added.
      * platform/chromium-cg-mac-snowleopard/fast/images/color-jpeg-with-color-profile-expected.txt: Added.
      * platform/chromium-linux-x86/fast/images/color-jpeg-with-color-profile-expected.txt: Added.
      * platform/chromium-linux/fast/images/color-jpeg-with-color-profile-expected.txt: Added.
      * platform/chromium-linux/fast/ruby/ruby-base-merge-block-children-crash-expected.png: Added.
      * platform/chromium-mac-leopard/fast/images/color-jpeg-with-color-profile-expected.png: Added.
      * platform/chromium-mac-snowleopard/fast/images/color-jpeg-with-color-profile-expected.png: Added.
      * platform/chromium-win-vista/fast/images/color-jpeg-with-color-profile-expected.txt: Added.
      * platform/chromium-win-xp/fast/images/color-jpeg-with-color-profile-expected.txt: Added.
      * platform/chromium-win/fast/images/color-jpeg-with-color-profile-expected.txt: Added.
      * platform/chromium-win/fast/ruby/ruby-base-merge-block-children-crash-expected.png: Added.
      * platform/chromium/fast/ruby/ruby-base-merge-block-children-crash-expected.png: Added.
      * platform/chromium/test_expectations.txt:
      * platform/qt/fast/ruby/ruby-base-merge-block-children-crash-expected.txt: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97347 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1b6e6165
  2. 12 Oct, 2011 15 commits
    • tkent@chromium.org's avatar
      [Chromium] Test expectation update. · e5d4cc0a
      tkent@chromium.org authored
      Add baseline files for media/video-playing-and-pause.html.
      
      * platform/chromium-cg-mac-leopard/media/video-playing-and-pause-expected.png: Added.
      * platform/chromium-cg-mac-snowleopard/media/video-playing-and-pause-expected.png: Added.
      * platform/chromium-gpu-cg-mac/media/video-playing-and-pause-expected.png: Added.
      * platform/chromium-gpu-mac/media/video-playing-and-pause-expected.png: Added.
      * platform/chromium-gpu-win/media/video-playing-and-pause-expected.png: Added.
      * platform/chromium-linux/media/video-playing-and-pause-expected.png: Added.
      * platform/chromium-mac-leopard/media/video-playing-and-pause-expected.png: Added.
      * platform/chromium-mac-snowleopard/media/video-playing-and-pause-expected.png: Added.
      * platform/chromium-win/media/video-playing-and-pause-expected.png: Added.
      * platform/chromium-win/media/video-playing-and-pause-expected.txt: Added.
      * platform/chromium/media/video-playing-and-pause-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e5d4cc0a
    • simon.fraser@apple.com's avatar
      Skip some more tests for WK2. · d67c044a
      simon.fraser@apple.com authored
      * platform/wk2/Skipped:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97345 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d67c044a
    • rniwa@webkit.org's avatar
      Mac test expectation update. The failure is tracked by the bug 69999. · dc5feb9d
      rniwa@webkit.org authored
      * platform/mac/test_expectations.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97344 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dc5feb9d
    • tkent@chromium.org's avatar
      [Chromium] Test expectation update. · 7365caec
      tkent@chromium.org authored
      * platform/chromium/test_expectations.txt:
      plugins/refcount-leaks.html is flaky.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97343 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7365caec
    • fpizlo@apple.com's avatar
      If an Arguments object is being used to copy the arguments, then · 6abf4b68
      fpizlo@apple.com authored
      make this explicit
      https://bugs.webkit.org/show_bug.cgi?id=69995
      
      Reviewed by Sam Weinig.
      
      * interpreter/Interpreter.cpp:
      (JSC::Interpreter::retrieveArguments):
      * runtime/Arguments.h:
      (JSC::Arguments::createAndCopyRegisters):
      (JSC::Arguments::finishCreationButDontCopyRegisters):
      (JSC::Arguments::finishCreation):
      (JSC::Arguments::finishCreationAndCopyRegisters):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6abf4b68
    • rniwa@webkit.org's avatar
      Update kill-old-processes logic. · 606c21da
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=63651
      
      Patch by Lucas Forschler <lforschler@apple.com> on 2011-10-12
      Reviewed by Ryosuke Niwa.
      
      Remove unused mac platform specific folder.
      Update master.config to use new kill-old-processes.
      
      * BuildSlaveSupport/build.webkit.org-config/master.cfg:
      * BuildSlaveSupport/kill-old-processes:
      * BuildSlaveSupport/mac: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      606c21da
    • simon.fraser@apple.com's avatar
      Rebaseline Mac region results after r97308. · a02561b8
      simon.fraser@apple.com authored
      * platform/mac/fast/regions/overflow-size-change-with-stacking-context-rtl-expected.txt:
      * platform/mac/fast/regions/position-writing-modes-in-variable-width-regions-expected.txt:
      * platform/mac/fast/regions/positioned-objects-block-static-spanning-regions-expected.txt:
      * platform/mac/fast/regions/positioned-objects-block-static-spanning-regions-rtl-expected.txt:
      * platform/mac/fast/regions/positioned-objects-inline-static-spanning-regions-expected.txt:
      * platform/mac/fast/regions/positioned-objects-inline-static-spanning-regions-rtl-expected.txt:
      * platform/mac/fast/regions/positioned-objects-spanning-regions-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97340 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a02561b8
    • rniwa@webkit.org's avatar
      [NRWT] New tests without expected files are reported as flakey tests · f3ad9495
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=67268
      
      Reviewed by Dirk Pranke.
      
      The bug was caused by summarize_results's regarding all tests that have an entry in result_summary
      and no entry in retry_summary as flaky. Since we don't retry missing tests, there will be no entries
      for missing results in retry_summary.
      
      Fixed the bug by treating missing results separately.
      
      * Scripts/webkitpy/layout_tests/controllers/manager.py:
      * Scripts/webkitpy/layout_tests/run_webkit_tests_integrationtest.py:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f3ad9495
    • joepeck@webkit.org's avatar
      <http://webkit.org/b/69598> Pass Parsed Accept Attribute MIME Types to WebKit Clients · 5eb6f946
      joepeck@webkit.org authored
      Part 3 - Add acceptMIMETypes, a parsed list of MIME types, to FileChooserSettings for WebKit ports
      
      Reviewed by David Kilzer.
      
      Source/WebCore:
      
      No new tests. No new functionality in WebCore, just
      exposing more information to the WebKit port.
      
      * html/FileInputType.cpp:
      (WebCore::FileInputType::handleDOMActivateEvent):
      (WebCore::FileInputType::receiveDropForDirectoryUpload):
      Set the MIME type list on the FileChooser settings.
      
      * html/HTMLInputElement.h:
      * html/HTMLInputElement.cpp:
      (WebCore::HTMLInputElement::acceptMIMETypes):
      Accessor for a parsed list of MIME types from the accept attribute.
      
      * platform/FileChooser.h:
      Add a slot for a MIME type list on the chooser settings.
      
      Source/WebKit2:
      
      * Shared/WebCoreArgumentCoders.cpp:
      (CoreIPC::::encode):
      (CoreIPC::::decode):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97338 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5eb6f946
    • joepeck@webkit.org's avatar
      <http://webkit.org/b/69598> Pass Parsed Accept Attribute MIME Types to WebKit Clients · 6b94be25
      joepeck@webkit.org authored
      Part 2 - Switch a WebKit2 mirror struct of WebCore::FileChooserSettings to just use FileChooserSettings
      
      Reviewed by Anders Carlsson.
      
      The WebOpenPanelParameters::Data struct was a mirror of
      the already existing WebCore::FileChooserSettings struct.
      So eliminate the excess struct and generate default
      WebCore coders for the WebCore::FileChooserSettings struct.
      
      * Scripts/webkit2/messages.py:
      Switch to the new type. FileChooserSetting's header needs
      to be special cased to FileChooser.h.
      
      * Shared/WebCoreArgumentCoders.h:
      * Shared/WebCoreArgumentCoders.cpp:
      (CoreIPC::::encode):
      (CoreIPC::::decode):
      Encode and decode all, non-deprecated, values. So we
      ignore deprecatedAcceptTypes. A follow-up patch will add it.
      
      * Shared/WebOpenPanelParameters.cpp:
      (WebKit::WebOpenPanelParameters::create):
      (WebKit::WebOpenPanelParameters::WebOpenPanelParameters):
      Switch to the new type.
      
      * Shared/WebOpenPanelParameters.h:
      (WebKit::WebOpenPanelParameters::allowMultipleFiles):
      (WebKit::WebOpenPanelParameters::selectedFileNames):
      FileChooserSettings had different property names.
      
      * UIProcess/WebPageProxy.cpp:
      (WebKit::WebPageProxy::runOpenPanel):
      Generate the WebOpenPanelParameters object here, before
      passing into the WebUIClient. This seems to be the convention
      to not have WebCore types in WebUIClient.
      
      * UIProcess/WebPageProxy.h:
      * UIProcess/WebPageProxy.messages.in:
      * UIProcess/WebUIClient.cpp:
      (WebKit::WebUIClient::runOpenPanel):
      * UIProcess/WebUIClient.h:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::runOpenPanel):
      Switch to the new type.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6b94be25
    • joepeck@webkit.org's avatar
      <http://webkit.org/b/69598> Pass Parsed Accept Attribute MIME Types to WebKit Clients · f58aef1e
      joepeck@webkit.org authored
      Part 1 - Deprecate String version of acceptTypes
      
      Reviewed by Kent Tamura.
      
      Source/WebCore:
      
      Deprecate the old String version of getting the "accept"
      mime type values. Instead we will change to include a
      list of MIME types.
      
      * html/FileInputType.cpp:
      (WebCore::FileInputType::handleDOMActivateEvent):
      (WebCore::FileInputType::receiveDropForDirectoryUpload):
      * platform/FileChooser.h:
      
      Source/WebKit/chromium:
      
      Chromium uses the deprecated accept string. Switching to
      the new approach will require coordination with their port.
      
      * src/ChromeClientImpl.cpp:
      (WebKit::ChromeClientImpl::runOpenPanel):
      
      Source/WebKit/efl:
      
      EFL uses the deprecated accept string. They can switch
      to an Eina_List if they want to update their API.
      
      * src/ChromeClientImpl.cpp:
      (WebKit::ChromeClientImpl::runOpenPanel):
      
      Source/WebKit2:
      
      Switch to deprecated for now, but the next patches will
      remove the deprecated version from the WebKit2 path.
      
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::runOpenPanel):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f58aef1e
    • tkent@chromium.org's avatar
      [Chromium] Test expectation update · c5e7e65b
      tkent@chromium.org authored
      * platform/chromium/test_expectations.txt:
      More slow tests for Mac Debug.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97335 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c5e7e65b
    • fpizlo@apple.com's avatar
      DFG CFA does not filter structures aggressively enough. · 857f05b3
      fpizlo@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=69989
      
      Reviewed by Oliver Hunt.
      
      * dfg/DFGAbstractValue.h:
      (JSC::DFG::AbstractValue::clear):
      (JSC::DFG::AbstractValue::makeTop):
      (JSC::DFG::AbstractValue::clobberStructures):
      (JSC::DFG::AbstractValue::set):
      (JSC::DFG::AbstractValue::merge):
      (JSC::DFG::AbstractValue::filter):
      (JSC::DFG::AbstractValue::checkConsistency):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97334 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      857f05b3
    • abarth@webkit.org's avatar
      Remove ENABLE(XHTMLMP) and associated code · 42bafeb2
      abarth@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69729
      
      Reviewed by David Levin.
      
      .:
      
      * Source/cmake/OptionsEfl.cmake:
      * Source/cmake/OptionsWinCE.cmake:
      * Source/cmakeconfig.h.cmake:
      * configure.ac:
      
      Source/JavaScriptCore:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebCore:
      
      As discussed on webkit-dev, we are removing this feature as part of our
      cleanup of unmaintained code in WebKit.
      
      * Configurations/FeatureDefines.xcconfig:
      * GNUmakefile.am:
      * GNUmakefile.list.am:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * dom/DOMImplementation.cpp:
      (WebCore::DOMImplementation::createDocument):
      * dom/Document.cpp:
      (WebCore::Document::Document):
      * dom/Document.h:
      (WebCore::Document::isMediaDocument):
      * dom/Node.cpp:
      * dom/make_names.pl:
      (usesDefaultJSWrapper):
      * features.pri:
      * html/HTMLElement.cpp:
      (WebCore::HTMLElement::rendererIsNeeded):
      * html/HTMLElementsAllInOne.cpp:
      * html/HTMLNoScriptElement.cpp: Removed.
      * html/HTMLNoScriptElement.h: Removed.
      * html/HTMLTagNames.in:
      * html/HTMLViewSourceDocument.cpp:
      (WebCore::HTMLViewSourceDocument::createParser):
      * loader/FrameLoader.cpp:
      * platform/wince/MIMETypeRegistryWinCE.cpp:
      (WebCore::MIMETypeRegistry::getPreferredExtensionForMIMEType):
      * xml/parser/XMLDocumentParser.h:
      (WebCore::XMLDocumentParser::isXHTMLDocument):
      * xml/parser/XMLDocumentParserLibxml2.cpp:
      (WebCore::XMLDocumentParser::XMLDocumentParser):
      (WebCore::XMLDocumentParser::startElementNs):
      (WebCore::XMLDocumentParser::endElementNs):
      (WebCore::XMLDocumentParser::endDocument):
      (WebCore::XMLDocumentParser::internalSubset):
      (WebCore::getEntityHandler):
      (WebCore::externalSubsetHandler):
      * xml/parser/XMLDocumentParserQt.cpp:
      (WebCore::XMLDocumentParser::XMLDocumentParser):
      (WebCore::XMLDocumentParser::parse):
      (WebCore::XMLDocumentParser::parseStartElement):
      (WebCore::XMLDocumentParser::parseEndElement):
      (WebCore::XMLDocumentParser::endDocument):
      (WebCore::XMLDocumentParser::parseDtd):
      
      Source/WebKit/mac:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Source/WebKit2:
      
      * Configurations/FeatureDefines.xcconfig:
      
      Tools:
      
      * Scripts/build-webkit:
      * Scripts/old-run-webkit-tests:
      * Scripts/webkitperl/features.pm:
      * Scripts/webkitpy/layout_tests/port/webkit.py:
      * Scripts/webkitpy/layout_tests/port/webkit_unittest.py:
      
      WebKitLibraries:
      
      * win/tools/vsprops/FeatureDefines.vsprops:
      * win/tools/vsprops/FeatureDefinesCairo.vsprops:
      
      LayoutTests:
      
      These tests are not needed anymore (and they are currently not run).
      
      * fast/xhtmlmp: Removed.
      * fast/xhtmlmp/check-doctype-declaration.xhtml: Removed.
      * fast/xhtmlmp/check-rootelement.xhtml: Removed.
      * fast/xhtmlmp/noscript-basic-expected.txt: Removed.
      * fast/xhtmlmp/noscript-basic.xhtml: Removed.
      * fast/xhtmlmp/noscript-in-multiscripts.xhtml: Removed.
      * fast/xhtmlmp/noscript-nested.xhtml: Removed.
      * fast/xhtmlmp/noscript.xhtml: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      42bafeb2
    • commit-queue@webkit.org's avatar
      Fix CCThreadTest.startPostAndWaitOnCondition · 3436cbc9
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69967
      
      Patch by Antoine Labour <piman@chromium.org> on 2011-10-12
      Reviewed by Darin Fisher.
      
      * tests/CCThreadTest.cpp:
      (WebKit::TEST):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@97332 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3436cbc9