1. 04 Oct, 2011 40 commits
    • mhahnenberg@apple.com's avatar
      Add static ClassInfo structs to classes that override JSCell::getCallData · dd90ed20
      mhahnenberg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=69311
      
      Reviewed by Darin Adler.
      
      Source/JavaScriptCore:
      
      Added ClassInfo structs to each class that defined its own getCallData
      function but did not already have its own ClassInfo struct.  This is a
      necessary addition for when we switch over to looking up getCallData from
      the MethodTable in ClassInfo rather than doing the virtual call (which we
      are removing).  These new ClassInfo structs are public because we often
      use these structs in other areas of the code to uniquely identify JSC classes and
      to enforce runtime invariants based on those class identities using ASSERTs.
      
      * runtime/BooleanConstructor.cpp:
      * runtime/BooleanConstructor.h:
      
      getCallData was not marked as static is StrictModeTypeErrorFunction.
      * runtime/Error.cpp:
      (JSC::StrictModeTypeErrorFunction::getCallDataVirtual):
      (JSC::StrictModeTypeErrorFunction::getCallData):
      * runtime/ErrorConstructor.cpp:
      * runtime/ErrorConstructor.h:
      * runtime/FunctionConstructor.cpp:
      * runtime/FunctionConstructor.h:
      * runtime/FunctionPrototype.cpp:
      * runtime/FunctionPrototype.h:
      
      Source/WebCore:
      
      No new tests.
      
      Added ClassInfo structs to each class that defined its own getCallData
      function but did not already have its own ClassInfo struct.  This is a
      necessary addition for when we switch over to looking up getCallData from
      the MethodTable in ClassInfo rather than doing the virtual call (which we
      are removing).  These new ClassInfo structs are public because we often
      use these structs in other areas of the code to uniquely identify JSC classes and
      to enforce runtime invariants based on those class identities using ASSERTs.
      
      * bridge/qt/qt_runtime.cpp:
      * bridge/qt/qt_runtime.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dd90ed20
    • rniwa@webkit.org's avatar
      Leopard build fix after r96613. · 54009a4c
      rniwa@webkit.org authored
      * wtf/Platform.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96629 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      54009a4c
    • rniwa@webkit.org's avatar
      REGRESSION(r94274): setting input.value erroneously triggers focus event · cf9c03f9
      rniwa@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69315
      
      Reviewed by Kent Tamura.
      
      Fixed the bug by adding a new flag to setSelection to avoid calling setFocusedNodeIfNeeded
      when called by nodeWillBeRemoved and textWillBeReplaced.
      
      Added a manual test. Unfortunately, the test always passes in DRT.
      
      * editing/FrameSelection.cpp:
      (WebCore::FrameSelection::setSelection):
      (WebCore::FrameSelection::respondToNodeModification):
      (WebCore::FrameSelection::textWillBeReplaced):
      * editing/FrameSelection.h:
      * manual-tests/mutate-unfocused-text-with-selection.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96628 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cf9c03f9
    • mhahnenberg@apple.com's avatar
      Implicitly add toString and valueOf to prototype when convertToType callback is provided · ff057a67
      mhahnenberg@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=69156
      
      Reviewed by Geoffrey Garen.
      
      Added callbacks for toString and valueOf which are implicitly added to a client object's
      prototype if they provide a convertToType callback when declaring their class through
      the JSC API.
      
      * API/JSCallbackFunction.cpp:
      (JSC::JSCallbackFunction::toStringCallback):
      (JSC::JSCallbackFunction::valueOfCallback):
      * API/JSCallbackFunction.h:
      * API/JSClassRef.cpp:
      (OpaqueJSClass::prototype):
      * API/tests/testapi.js:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96627 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff057a67
    • commit-queue@webkit.org's avatar
      HTML canvas strokes with dash and dashOffset · 6cabcb62
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=63933
      
      Patch by Young Han Lee <joybro201@gmail.com> on 2011-10-04
      Reviewed by Simon Fraser.
      
      Add webkitLineDash and webkitLineDashOffset attributes to CanvasRenderingContext2D for JSC.
      These attributes can be used to determine the dash-style of stroke in HTML Canvas.
      
      As this kind of attributes are not specified in the HTML Canvas specification yet,
      the 'webkit' prefix is added to its names.
      
      Mozilla already implemented these attributes, mozDash and mozDashOffset [1], and this patch
      is created by referring to the implementation. This patch is basically using the specified
      behavior of stroke-dasharray and stroke-dashoffset in the SVG specification [2], except
      that doesn't support units or percentages, just floating point numbers.
      
      [1] https://bugzilla.mozilla.org/show_bug.cgi?id=662038
      [2] http://www.w3.org/TR/SVG/painting.html#StrokeProperties
      
      Source/WebCore:
      
      Tests: fast/canvas/canvas-webkitLineDash-invalid.html
             fast/canvas/canvas-webkitLineDash.html
      
      * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
      (WebCore::JSCanvasRenderingContext2D::webkitLineDash):
      (WebCore::JSCanvasRenderingContext2D::setWebkitLineDash):
      * html/canvas/CanvasRenderingContext2D.cpp:
      (WebCore::CanvasRenderingContext2D::State::State):
      (WebCore::CanvasRenderingContext2D::webkitLineDash):
      (WebCore::CanvasRenderingContext2D::setWebkitLineDash):
      (WebCore::CanvasRenderingContext2D::webkitLineDashOffset):
      (WebCore::CanvasRenderingContext2D::setWebkitLineDashOffset):
      * html/canvas/CanvasRenderingContext2D.h:
      * html/canvas/CanvasRenderingContext2D.idl:
      
      LayoutTests:
      
      * fast/canvas/canvas-webkitLineDash-expected.txt: Added.
      * fast/canvas/canvas-webkitLineDash-invalid-expected.txt: Added.
      * fast/canvas/canvas-webkitLineDash-invalid.html: Added.
      * fast/canvas/canvas-webkitLineDash.html: Added.
      * fast/canvas/script-tests/canvas-webkitLineDash-invalid.js: Added.
      (trySettingLineDash):
      (trySettingLineDashOffset):
      * fast/canvas/script-tests/canvas-webkitLineDash.js: Added.
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96626 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6cabcb62
    • timothy_horton@apple.com's avatar
      Additional unreviewed Lion SVG pixel test rebaselining. · 1846639a
      timothy_horton@apple.com authored
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/coords-units-01-b-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/filters-image-01-b-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/masking-intro-01-f-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/pservers-grad-02-b-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/pservers-grad-12-b-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/pservers-grad-13-b-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/pservers-grad-14-b-expected.png: Added.
      * platform/mac-snowleopard/svg/carto.net: Added.
      * platform/mac-snowleopard/svg/carto.net/selectionlist-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGFEColorMatrixElement-dom-in-attr-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGFEColorMatrixElement-dom-type-attr-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGFEColorMatrixElement-dom-values-attr-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGFEColorMatrixElement-svgdom-in-prop-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGFEColorMatrixElement-svgdom-type-prop-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGFEColorMatrixElement-svgdom-values-prop-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGFEImageElement-dom-preserveAspectRatio-attr-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGFEImageElement-svgdom-preserveAspectRatio-prop-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGLinearGradientElement-dom-gradientUnits-attr-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGLinearGradientElement-svgdom-gradientTransform-prop-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGLinearGradientElement-svgdom-gradientUnits-prop-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGRadialGradientElement-svgdom-gradientTransform-prop-expected.png: Added.
      * platform/mac/svg/W3C-SVG-1.1/coords-units-01-b-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/filters-image-01-b-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/masking-intro-01-f-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/pservers-grad-02-b-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/pservers-grad-12-b-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/pservers-grad-13-b-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/pservers-grad-14-b-expected.png:
      * platform/mac/svg/carto.net/selectionlist-expected.png:
      * platform/mac/svg/custom/external-paintserver-reference-expected.png: Added.
      * platform/mac/svg/custom/linking-base-external-reference-expected.png: Added.
      * platform/mac/svg/dynamic-updates/SVGFEColorMatrixElement-dom-in-attr-expected.png:
      * platform/mac/svg/dynamic-updates/SVGFEColorMatrixElement-dom-type-attr-expected.png:
      * platform/mac/svg/dynamic-updates/SVGFEColorMatrixElement-dom-values-attr-expected.png:
      * platform/mac/svg/dynamic-updates/SVGFEColorMatrixElement-svgdom-in-prop-expected.png:
      * platform/mac/svg/dynamic-updates/SVGFEColorMatrixElement-svgdom-type-prop-expected.png:
      * platform/mac/svg/dynamic-updates/SVGFEColorMatrixElement-svgdom-values-prop-expected.png:
      * platform/mac/svg/dynamic-updates/SVGFEImageElement-dom-preserveAspectRatio-attr-expected.png:
      * platform/mac/svg/dynamic-updates/SVGFEImageElement-svgdom-preserveAspectRatio-prop-expected.png:
      * platform/mac/svg/dynamic-updates/SVGLinearGradientElement-dom-gradientUnits-attr-expected.png:
      * platform/mac/svg/dynamic-updates/SVGLinearGradientElement-svgdom-gradientTransform-prop-expected.png:
      * platform/mac/svg/dynamic-updates/SVGLinearGradientElement-svgdom-gradientUnits-prop-expected.png:
      * platform/mac/svg/dynamic-updates/SVGRadialGradientElement-svgdom-gradientTransform-prop-expected.png:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96625 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1846639a
    • mdelaney@apple.com's avatar
      Allow canvas backing store to be lazily allocated · 8c076a71
      mdelaney@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=67054
      
      Reviewed by Darin Adler.
      
      No new tests; doesn't affect behavior.
      
      * html/HTMLCanvasElement.cpp:
      (WebCore::HTMLCanvasElement::createImageBuffer): Removed the setting of lineWidth
      that caused the eager creation of ImageBuffer to use its GraphicsContext.
      * html/canvas/CanvasRenderingContext2D.cpp:
      (WebCore::CanvasRenderingContext2D::CanvasRenderingContext2D): Added in default
      line width setting along with other default context settings.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96624 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c076a71
    • simon.fraser@apple.com's avatar
      Move font-fixup code in WebKitTestRunner to a better place · fd9cb027
      simon.fraser@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=69356
      
      Reviewed by Sam Weinig.
      
      Move code that swizzles NSFontManager methods to ActivateFonts.mm, which
      already contains font-related code.
      
      * WebKitTestRunner/InjectedBundle/InjectedBundle.cpp:
      (WTR::InjectedBundle::initialize):
      * WebKitTestRunner/InjectedBundle/mac/ActivateFonts.mm:
      (WTR::allowedFontFamilySet):
      (WTR::drt_NSFontManager_availableFontFamilies):
      (WTR::drt_NSFontManager_availableFonts):
      (WTR::swizzleNSFontManagerMethods):
      (WTR::activateFonts):
      * WebKitTestRunner/InjectedBundle/mac/InjectedBundleMac.mm:
      (WTR::InjectedBundle::platformInitialize):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96623 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fd9cb027
    • timothy_horton@apple.com's avatar
      Partial unreviewed rebaselines for Lion SVG pixel tests. · a595ec4f
      timothy_horton@apple.com authored
      * platform/mac-snowleopard/svg/W3C-SVG-1.1-SE/text-intro-09-b-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/animate-elem-31-t-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/animate-elem-33-t-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/animate-elem-34-t-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/animate-elem-44-t-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/animate-elem-52-t-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/filters-light-01-f-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/filters-turb-01-f-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/fonts-elem-02-t-expected.png: Added.
      * platform/mac-snowleopard/svg/W3C-SVG-1.1/text-fonts-03-t-expected.png: Added.
      * platform/mac-snowleopard/svg/css: Added.
      * platform/mac-snowleopard/svg/css/composite-shadow-example-expected.png: Added.
      * platform/mac-snowleopard/svg/css/composite-shadow-with-opacity-expected.png: Added.
      * platform/mac-snowleopard/svg/css/stars-with-shadow-expected.png: Added.
      * platform/mac-snowleopard/svg/custom: Added.
      * platform/mac-snowleopard/svg/custom/altglyph-expected.png: Added.
      * platform/mac-snowleopard/svg/custom/dynamic-svg-document-creation-expected.png: Added.
      * platform/mac-snowleopard/svg/custom/getscreenctm-in-scrollable-div-area-expected.png: Added.
      * platform/mac-snowleopard/svg/custom/getscreenctm-in-scrollable-div-area-nested-expected.png: Added.
      * platform/mac-snowleopard/svg/custom/getscreenctm-in-scrollable-svg-area-expected.png: Added.
      * platform/mac-snowleopard/svg/custom/invisible-text-after-scrolling-expected.png: Added.
      * platform/mac-snowleopard/svg/custom/junk-data-expected.png: Added.
      * platform/mac-snowleopard/svg/custom/missing-xlink-expected.png: Added.
      * platform/mac-snowleopard/svg/custom/object-sizing-no-width-height-expected.png: Added.
      * platform/mac-snowleopard/svg/custom/path-bad-data-expected.png: Added.
      * platform/mac-snowleopard/svg/custom/scrolling-embedded-svg-file-image-repaint-problem-expected.png: Added.
      * platform/mac-snowleopard/svg/custom/text-xy-updates-SVGList-expected.png: Added.
      * platform/mac-snowleopard/svg/custom/use-font-face-crash-expected.png: Added.
      * platform/mac-snowleopard/svg/dom: Added.
      * platform/mac-snowleopard/svg/dom/SVGLengthList-appendItem-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGLengthList-basics-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGLengthList-initialize-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGLengthList-insertItemBefore-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGLengthList-removeItem-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGLengthList-replaceItem-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGLengthList-xml-dom-modifications-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGNumberList-basics-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGPathSegList-appendItem-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGPathSegList-clear-and-initialize-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGPathSegList-insertItemBefore-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGPathSegList-removeItem-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGPathSegList-replaceItem-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGPointList-basics-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGStringList-basics-expected.png: Added.
      * platform/mac-snowleopard/svg/dom/SVGTransformList-basics-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGFEBlendElement-dom-in-attr-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGFEBlendElement-dom-in2-attr-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGFEBlendElement-dom-mode-attr-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGFEBlendElement-svgdom-in-prop-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGFEBlendElement-svgdom-in2-prop-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGFEBlendElement-svgdom-mode-prop-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGImageElement-svgdom-preserveAspectRatio-prop-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGLineElement-svgdom-requiredFeatures-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGTextElement-dom-lengthAdjust-attr-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGTextElement-svgdom-lengthAdjust-prop-expected.png: Added.
      * platform/mac-snowleopard/svg/dynamic-updates/SVGUseElement-dom-requiredFeatures-expected.png: Added.
      * platform/mac-snowleopard/svg/hixie: Added.
      * platform/mac-snowleopard/svg/hixie/error: Added.
      * platform/mac-snowleopard/svg/hixie/error/012-expected.png: Added.
      * platform/mac-snowleopard/svg/in-html: Added.
      * platform/mac-snowleopard/svg/in-html/circle-expected.png: Added.
      * platform/mac-snowleopard/svg/overflow: Added.
      * platform/mac-snowleopard/svg/overflow/overflow-on-outermost-svg-element-defaults-expected.png: Added.
      * platform/mac-snowleopard/svg/overflow/overflow-on-outermost-svg-element-ignore-attribute-1-expected.png: Added.
      * platform/mac-snowleopard/svg/overflow/overflow-on-outermost-svg-element-ignore-attribute-2-expected.png: Added.
      * platform/mac-snowleopard/svg/overflow/overflow-on-outermost-svg-element-ignore-attribute-3-expected.png: Added.
      * platform/mac-snowleopard/svg/overflow/overflow-on-outermost-svg-element-in-xhtml-defaults-expected.png: Added.
      * platform/mac-snowleopard/svg/text/kerning-expected.png: Added.
      * platform/mac-snowleopard/svg/text/multichar-glyph-expected.png: Added.
      * platform/mac-snowleopard/svg/wicd: Added.
      * platform/mac-snowleopard/svg/wicd/rightsizing-grid-expected.png: Added.
      * platform/mac-snowleopard/svg/wicd/test-rightsizing-b-expected.png: Added.
      * platform/mac-snowleopard/svg/wicd/test-scalable-background-image1-expected.png: Added.
      * platform/mac-snowleopard/svg/zoom: Added.
      * platform/mac-snowleopard/svg/zoom/page: Added.
      * platform/mac-snowleopard/svg/zoom/page/absolute-sized-document-scrollbars-expected.png: Added.
      * platform/mac-snowleopard/svg/zoom/page/relative-sized-document-scrollbars-expected.png: Added.
      * platform/mac-snowleopard/svg/zoom/page/zoom-foreignObject-expected.png: Added.
      * platform/mac-snowleopard/svg/zoom/page/zoom-hixie-mixed-008-expected.png: Added.
      * platform/mac-snowleopard/svg/zoom/page/zoom-mask-with-percentages-expected.png: Added.
      * platform/mac-snowleopard/svg/zoom/page/zoom-svg-float-border-padding-expected.png: Added.
      * platform/mac-snowleopard/svg/zoom/text: Added.
      * platform/mac-snowleopard/svg/zoom/text/zoom-svg-float-border-padding-expected.png: Added.
      * platform/mac/svg/W3C-SVG-1.1-SE/text-intro-09-b-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/animate-elem-31-t-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/animate-elem-33-t-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/animate-elem-34-t-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/animate-elem-44-t-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/animate-elem-52-t-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/filters-light-01-f-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/filters-turb-01-f-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/fonts-elem-02-t-expected.png:
      * platform/mac/svg/W3C-SVG-1.1/text-fonts-03-t-expected.png:
      * platform/mac/svg/css/composite-shadow-example-expected.png:
      * platform/mac/svg/css/composite-shadow-with-opacity-expected.png:
      * platform/mac/svg/css/stars-with-shadow-expected.png:
      * platform/mac/svg/custom/altglyph-expected.png:
      * platform/mac/svg/custom/dynamic-svg-document-creation-expected.png:
      * platform/mac/svg/custom/getscreenctm-in-scrollable-div-area-expected.png:
      * platform/mac/svg/custom/getscreenctm-in-scrollable-div-area-nested-expected.png:
      * platform/mac/svg/custom/getscreenctm-in-scrollable-svg-area-expected.png:
      * platform/mac/svg/custom/invisible-text-after-scrolling-expected.png:
      * platform/mac/svg/custom/junk-data-expected.png:
      * platform/mac/svg/custom/missing-xlink-expected.png:
      * platform/mac/svg/custom/object-sizing-no-width-height-expected.png:
      * platform/mac/svg/custom/path-bad-data-expected.png:
      * platform/mac/svg/custom/scrolling-embedded-svg-file-image-repaint-problem-expected.png:
      * platform/mac/svg/custom/text-xy-updates-SVGList-expected.png:
      * platform/mac/svg/custom/use-font-face-crash-expected.png:
      * platform/mac/svg/dom/SVGLengthList-appendItem-expected.png:
      * platform/mac/svg/dom/SVGLengthList-basics-expected.png:
      * platform/mac/svg/dom/SVGLengthList-initialize-expected.png:
      * platform/mac/svg/dom/SVGLengthList-insertItemBefore-expected.png:
      * platform/mac/svg/dom/SVGLengthList-removeItem-expected.png:
      * platform/mac/svg/dom/SVGLengthList-replaceItem-expected.png:
      * platform/mac/svg/dom/SVGLengthList-xml-dom-modifications-expected.png:
      * platform/mac/svg/dom/SVGNumberList-basics-expected.png:
      * platform/mac/svg/dom/SVGPathSegList-appendItem-expected.png:
      * platform/mac/svg/dom/SVGPathSegList-clear-and-initialize-expected.png:
      * platform/mac/svg/dom/SVGPathSegList-insertItemBefore-expected.png:
      * platform/mac/svg/dom/SVGPathSegList-removeItem-expected.png:
      * platform/mac/svg/dom/SVGPathSegList-replaceItem-expected.png:
      * platform/mac/svg/dom/SVGPointList-basics-expected.png:
      * platform/mac/svg/dom/SVGStringList-basics-expected.png:
      * platform/mac/svg/dom/SVGTransformList-basics-expected.png:
      * platform/mac/svg/dynamic-updates/SVGFEBlendElement-dom-in-attr-expected.png:
      * platform/mac/svg/dynamic-updates/SVGFEBlendElement-dom-in2-attr-expected.png:
      * platform/mac/svg/dynamic-updates/SVGFEBlendElement-dom-mode-attr-expected.png:
      * platform/mac/svg/dynamic-updates/SVGFEBlendElement-svgdom-in-prop-expected.png:
      * platform/mac/svg/dynamic-updates/SVGFEBlendElement-svgdom-in2-prop-expected.png:
      * platform/mac/svg/dynamic-updates/SVGFEBlendElement-svgdom-mode-prop-expected.png:
      * platform/mac/svg/dynamic-updates/SVGImageElement-svgdom-preserveAspectRatio-prop-expected.png:
      * platform/mac/svg/dynamic-updates/SVGLineElement-svgdom-requiredFeatures-expected.png:
      * platform/mac/svg/dynamic-updates/SVGTextElement-dom-lengthAdjust-attr-expected.png:
      * platform/mac/svg/dynamic-updates/SVGTextElement-svgdom-lengthAdjust-prop-expected.png:
      * platform/mac/svg/dynamic-updates/SVGUseElement-dom-requiredFeatures-expected.png:
      * platform/mac/svg/hixie/error/012-expected.png:
      * platform/mac/svg/in-html/circle-expected.png:
      * platform/mac/svg/overflow/overflow-on-outermost-svg-element-defaults-expected.png:
      * platform/mac/svg/overflow/overflow-on-outermost-svg-element-ignore-attribute-1-expected.png:
      * platform/mac/svg/overflow/overflow-on-outermost-svg-element-ignore-attribute-2-expected.png:
      * platform/mac/svg/overflow/overflow-on-outermost-svg-element-ignore-attribute-3-expected.png:
      * platform/mac/svg/overflow/overflow-on-outermost-svg-element-in-xhtml-defaults-expected.png:
      * platform/mac/svg/text/kerning-expected.png:
      * platform/mac/svg/text/multichar-glyph-expected.png:
      * platform/mac/svg/wicd/rightsizing-grid-expected.png:
      * platform/mac/svg/wicd/test-rightsizing-b-expected.png:
      * platform/mac/svg/wicd/test-scalable-background-image1-expected.png:
      * platform/mac/svg/zoom/page/absolute-sized-document-scrollbars-expected.png:
      * platform/mac/svg/zoom/page/relative-sized-document-scrollbars-expected.png:
      * platform/mac/svg/zoom/page/zoom-foreignObject-expected.png:
      * platform/mac/svg/zoom/page/zoom-hixie-mixed-008-expected.png:
      * platform/mac/svg/zoom/page/zoom-mask-with-percentages-expected.png:
      * platform/mac/svg/zoom/page/zoom-svg-float-border-padding-expected.png:
      * platform/mac/svg/zoom/text/zoom-svg-float-border-padding-expected.png:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96622 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a595ec4f
    • weinig@apple.com's avatar
      Add support for the CSP connect-src directive · 5f414e1d
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=69353
      
      Reviewed by Adam Barth.
      
      Add CSP support for XMLHttpRequest, WebSockets and EventSource.
      
      Source/WebCore: 
      
      Tests: http/tests/security/contentSecurityPolicy/connect-src-eventsource-allowed.html
             http/tests/security/contentSecurityPolicy/connect-src-eventsource-blocked.html
             http/tests/security/contentSecurityPolicy/connect-src-websocket-allowed.html
             http/tests/security/contentSecurityPolicy/connect-src-websocket-blocked.html
             http/tests/security/contentSecurityPolicy/connect-src-xmlhttprequest-allowed.html
             http/tests/security/contentSecurityPolicy/connect-src-xmlhttprequest-blocked.html
      
      * page/ContentSecurityPolicy.cpp:
      (WebCore::ContentSecurityPolicy::allowConnectFromSource):
      (WebCore::ContentSecurityPolicy::addDirective):
      * page/ContentSecurityPolicy.h:
      Add connect-src directive parsing and predicate.
      
      * page/EventSource.cpp:
      (WebCore::EventSource::create):
      * websockets/WebSocket.cpp:
      (WebCore::WebSocket::connect):
      * xml/XMLHttpRequest.cpp:
      (WebCore::XMLHttpRequest::open):
      Test allowConnectFromSource when establishing a connection.
      
      LayoutTests: 
      
      * http/tests/security/contentSecurityPolicy/connect-src-eventsource-allowed-expected.txt: Added.
      * http/tests/security/contentSecurityPolicy/connect-src-eventsource-allowed.html: Added.
      * http/tests/security/contentSecurityPolicy/connect-src-eventsource-blocked-expected.txt: Added.
      * http/tests/security/contentSecurityPolicy/connect-src-eventsource-blocked.html: Added.
      * http/tests/security/contentSecurityPolicy/connect-src-websocket-allowed-expected.txt: Added.
      * http/tests/security/contentSecurityPolicy/connect-src-websocket-allowed.html: Added.
      * http/tests/security/contentSecurityPolicy/connect-src-websocket-blocked-expected.txt: Added.
      * http/tests/security/contentSecurityPolicy/connect-src-websocket-blocked.html: Added.
      * http/tests/security/contentSecurityPolicy/connect-src-xmlhttprequest-allowed-expected.txt: Added.
      * http/tests/security/contentSecurityPolicy/connect-src-xmlhttprequest-allowed.html: Added.
      * http/tests/security/contentSecurityPolicy/connect-src-xmlhttprequest-blocked-expected.txt: Added.
      * http/tests/security/contentSecurityPolicy/connect-src-xmlhttprequest-blocked.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96621 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5f414e1d
    • hyatt@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=69317 · d4d3bcfd
      hyatt@apple.com authored
              
      [CSS3 Regions] Make overflow:hidden/auto/scroll sections behave properly when split across regions. This
      includes sizing and positioning independently in each region, clipping independently in each region, and
      shifting to avoid floats in each region.
      
      Reviewed by Anders Carlsson.
      
      Source/WebCore: 
      
      Added many new tests in fast/regions.
      
      * editing/Editor.cpp:
      (WebCore::Editor::insideVisibleArea):
      Patching a call to overflowClipRect, which now includes a region argument so that clipping can be adjusted
      per-region.
      
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::layoutBlock):
      Don't clear out the cached region information when the width changes. Instead make a new call to
      the flow thread to check if widths changed in any region and set relayoutChildren to true if so.
      
      (WebCore::RenderBlock::computeStartPositionDeltaForChildAvoidingFloats):
      This is a new function that has been split out from determineLogicalLeftPositionForChild so that it can
      be called by region code to compute offsets independently in each region without altering the overall object's
      logical left position.
              
      (WebCore::RenderBlock::determineLogicalLeftPositionForChild):
      Patched to call computeStartPositionDeltaForChildAvoidingFloats instead of doing the work of avoiding the floats
      itself.
      
      (WebCore::RenderBlock::computeLogicalLocationForFloat):
      Fix the left clamping code to clamp to the left border in the correct region rather than always just clamping
      to 0.
      
      (WebCore::RenderBlock::logicalLeftOffsetForContent):
      (WebCore::RenderBlock::logicalRightOffsetForContent):
      Tweaked to handle the new signature of borderBoxRectInRegion.
      
      (WebCore::RenderBlock::nextFloatLogicalBottomBelow):
      Reworked not to return 0 on failure or when done, but to just return the current height. This is a more
      fitting answer for the function to return when no more floats remain.
      
      (WebCore::RenderBlock::getClearDelta):
      Big changes to this function. It was never patched to support writing modes, so the new code is all
      writing-mode-aware now. Also improved the computeLogicalWidth() call to make sure margins didn't get incorrectly changed.
      The code computes transient information in each region as the object tries to find a place to fit, so that the
      old widths are properly retained when layout of that child later checks to see if it needs to relayout children or not.
      
      (WebCore::RenderBlock::nodeAtPoint):
      Patched to call overflowClipRect with the region being hit tested.
      
      (WebCore::inNormalFlow):
      Tweaked to not need the initialBlock variable.
      
      (WebCore::RenderBlock::applyBeforeBreak):
      (WebCore::RenderBlock::applyAfterBreak):
      (WebCore::RenderBlock::pageLogicalHeightForOffset):
      (WebCore::RenderBlock::pageRemainingLogicalHeightForOffset):
      (WebCore::RenderBlock::adjustForUnsplittableChild):
      (WebCore::RenderBlock::adjustLinePositionForPagination):
      (WebCore::RenderBlock::lineWidthForPaginatedLineChanged):
      Tweaked to use inRenderFlowThread() now that it exists. Also removing the regionsHaveUniformLogicalWidth()
      optimization, since you can't rely on that when objects size differently depending on floats. In other words,
      the future of pagination is variable width objects even in printing/columns.
      
      (WebCore::RenderBlock::offsetFromLogicalTopOfFirstPage):
      Renamed to make it more clear what logicalPageOffset() was. It's your offset from the top of the first page.
      
      (WebCore::RenderBlock::regionAtBlockOffset):
      New helper function for accessing the region at a given offset within your block.
      
      (WebCore::RenderBlock::logicalWidthChangedInRegions):
      New helper function that computes whether or not your logical width information changed in any regions. If so,
      relayoutChildren gets set to true (just as it would have when computeLogicalWidth for the overall block changes
      values).
      
      (WebCore::RenderBlock::collapsedMarginBeforeForChild):
      (WebCore::RenderBlock::collapsedMarginAfterForChild):
      (WebCore::RenderBlock::marginBeforeForChild):
      (WebCore::RenderBlock::marginAfterForChild):
      (WebCore::RenderBlock::marginLogicalLeftForChild):
      (WebCore::RenderBlock::marginLogicalRightForChild):
      (WebCore::RenderBlock::marginStartForChild):
      (WebCore::RenderBlock::marginEndForChild):
      Tweaked because of const to take const arguments.
              
      * rendering/RenderBlock.h:
      (WebCore::RenderBlock::availableLogicalWidthForLine):
      (WebCore::RenderBlock::logicalRightOffsetForLine):
      (WebCore::RenderBlock::logicalLeftOffsetForLine):
      (WebCore::RenderBlock::startOffsetForLine):
      (WebCore::RenderBlock::logicalWidthForChild):
      (WebCore::RenderBlock::logicalHeightForChild):
      (WebCore::RenderBlock::logicalTopForChild):
      (WebCore::RenderBlock::logicalLeftForChild):
      (WebCore::RenderBlock::availableLogicalWidthForContent):
      (WebCore::RenderBlock::startOffsetForContent):
      (WebCore::RenderBlock::logicalLeftOffsetForContent):
      (WebCore::RenderBlock::logicalRightOffsetForContent):
      Reworking these functions so versions exist that take regions and page offsets to avoid having to recalculate
      where you are over and over again as you walk up a containing block chain.
      
      * rendering/RenderBlockLineLayout.cpp:
      (WebCore::LineWidth::fitBelowFloats):
      Changed to handle the better return value for nextFloatLogicalBottomBelow.
              
      (WebCore::RenderBlock::checkPaginationAndFloatsAtEndLine):
      Removing the uniform logical width optimization.
      
      * rendering/RenderBox.cpp:
      (WebCore::RenderBox::borderBoxRectInRegion):
      Changed to take a region and offset from the first page so that it doesn't have to be recomputed as you recur up
      the containing block chain.
      
      (WebCore::RenderBox::clearRenderBoxRegionInfo):
      Changed to just use inRenderFlowThread().
      
      (WebCore::RenderBox::pushContentsClip):
      Changed for the new region-parameterized overflow clip function.
              
      (WebCore::RenderBox::overflowClipRect):
      Now takes a region so that a specific clip rect can be returned sized to the appropriate border box in that
      region.
      
      (WebCore::RenderBox::containingBlockLogicalWidthForContent):
      (WebCore::RenderBox::containingBlockLogicalWidthForContentInRegion):
      Objects in flow threads no longer shrink to avoid floats when computing their overall widths. The region-specific
      check now does the shrinking. It checks at the point where the region slices the object, or the top of the object if
      it begins in the middle of the region.
      
      (WebCore::RenderBox::computeLogicalWidth):
      (WebCore::RenderBox::computeLogicalWidthInRegion):
      Push all the rest of the computeLogicalWidth code into computeLogicalWidthInRegion.
              
      (WebCore::RenderBox::renderBoxRegionInfo):
      Changed to take the region and the offset from the top of the first page to avoid recomputation.
      
      * rendering/RenderBox.h:
      (WebCore::RenderBox::hasRenderOverflow):
      (WebCore::RenderBox::hasVisualOverflow):
      New helper used by the RenderLayer code to avoid having to check visual overflow when none exists.
      
      * rendering/RenderBoxModelObject.cpp:
      (WebCore::RenderBoxModelObject::paintFillLayerExtended):
      Use the new region-specific overflow clip.
      
      * rendering/RenderBoxRegionInfo.h:
      (WebCore::RenderBoxRegionInfo::shiftLogicalLeft):
      Helper used by the region code to shift a box over when floats cause it to move.
      
      * rendering/RenderFlowThread.cpp:
      (WebCore::RenderFlowThread::computeLogicalWidth):
      Remove the optimization to avoid creating box info for uniform widths.
      
      (WebCore::RenderFlowThread::paintIntoRegion):
      Make the clip rects used when painting the flow thread's layer tree temporary in each region.
      
      (WebCore::RenderFlowThread::removeRenderBoxRegionInfo):
      Removing the uniform logical width optimization
      
      (WebCore::RenderFlowThread::logicalWidthChangedInRegions):
      * rendering/RenderFlowThread.h:
      New helper called to see if a block needs to relayout its children because its width changed in some
      region.
      
      * rendering/RenderLayer.cpp:
      (WebCore::RenderLayer::paint):
      (WebCore::RenderLayer::paintLayer):
      (WebCore::RenderLayer::hitTestLayer):
      (WebCore::RenderLayer::updateClipRects):
      (WebCore::RenderLayer::calculateClipRects):
      (WebCore::RenderLayer::parentClipRects):
      (WebCore::RenderLayer::backgroundClipRect):
      (WebCore::RenderLayer::calculateRects):
      (WebCore::RenderLayer::childrenClipRect):
      (WebCore::RenderLayer::selfClipRect):
      (WebCore::RenderLayer::repaintBlockSelectionGaps):
      * rendering/RenderLayer.h:
      * rendering/RenderLayerBacking.cpp:
      (WebCore::RenderLayerBacking::updateCompositedBounds):
      (WebCore::clipBox):
      (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):
      (WebCore::RenderLayerBacking::paintIntoLayer):
      * rendering/RenderLayerCompositor.cpp:
      (WebCore::RenderLayerCompositor::addToOverlapMap):
      (WebCore::RenderLayerCompositor::clippedByAncestor):
      Changing all the layer clipping code to pass regions through to all of the helper functions involved. This is
      so overflowClipRect can ultimately take a region. Eventually when we get positioned objects moving independently
      in each region, we'll patch the "clip" property as well, and it will be much easier because all the plumbing has
      been put in place here for overflow.
              
      * rendering/RenderObject.cpp:
      (WebCore::RenderObject::enclosingRenderFlowThread):
      Optimized to not walk up the render tree if we're in layout and a currentRenderFlowThread() exists.
      
      * rendering/RenderRegion.cpp:
      (WebCore::RenderRegion::renderBoxRegionInfo):
      (WebCore::RenderRegion::setRenderBoxRegionInfo):
      (WebCore::RenderRegion::takeRenderBoxRegionInfo):
      Removing the optimization for uniform logical width regions. Changed remove to take so that the caller
      can examine it before deleting.
      
      (WebCore::RenderRegion::offsetFromLogicalTopOfFirstPage):
      * rendering/RenderRegion.h:
      Helper function that computes the region's offset from the top of the first page.
      
      * rendering/RenderTable.cpp:
      (WebCore::RenderTable::overflowClipRect):
      (WebCore::RenderTable::nodeAtPoint):
      * rendering/RenderTable.h:
      * rendering/RenderTableCell.h:
      * rendering/RenderTableSection.cpp:
      (WebCore::RenderTableSection::nodeAtPoint):
      Changed to pass the region to overflowClipRect.
      
      * rendering/RenderTreeAsText.cpp:
      (WebCore::writeLayers):
      Modified because the layer clip functions need regions now.
      
      * rendering/RenderView.h:
      (WebCore::RenderView::pushLayoutState):
      Changed to use inRenderFlowThread over view()->hasRenderFlowThread.
              
      * rendering/svg/RenderSVGRoot.cpp:
      (WebCore::RenderSVGRoot::paint):
      Patched to use the new overflowClipRect that is region-specific.
      
      LayoutTests: 
      
      * fast/regions/floats-basic-in-variable-width-regions.html: Added.
      * fast/regions/overflow-in-uniform-regions-dynamic.html: Added.
      * fast/regions/overflow-in-uniform-regions.html: Added.
      * fast/regions/overflow-in-variable-width-regions.html:
      * fast/regions/overflow-moving-below-floats-in-variable-width-regions.html: Added.
      * fast/regions/overflow-not-moving-below-floats-in-variable-width-regions.html: Added.
      * fast/regions/overflow-rtl-in-variable-width-regions.html:
      * fast/regions/overflow-size-change-in-variable-width-regions.html: Added.
      * fast/regions/overflow-size-change-with-stacking-context.html: Added.
      * platform/mac/fast/regions/floats-basic-in-variable-width-regions-expected.png: Added.
      * platform/mac/fast/regions/floats-basic-in-variable-width-regions-expected.txt: Added.
      * platform/mac/fast/regions/overflow-in-uniform-regions-dynamic-expected.png: Added.
      * platform/mac/fast/regions/overflow-in-uniform-regions-dynamic-expected.txt: Added.
      * platform/mac/fast/regions/overflow-in-uniform-regions-expected.png: Added.
      * platform/mac/fast/regions/overflow-in-uniform-regions-expected.txt: Added.
      * platform/mac/fast/regions/overflow-in-variable-width-regions-expected.png:
      * platform/mac/fast/regions/overflow-in-variable-width-regions-expected.txt:
      * platform/mac/fast/regions/overflow-moving-below-floats-in-variable-width-regions-expected.png: Added.
      * platform/mac/fast/regions/overflow-moving-below-floats-in-variable-width-regions-expected.txt: Added.
      * platform/mac/fast/regions/overflow-not-moving-below-floats-in-variable-width-regions-expected.png: Added.
      * platform/mac/fast/regions/overflow-not-moving-below-floats-in-variable-width-regions-expected.txt: Added.
      * platform/mac/fast/regions/overflow-rtl-in-variable-width-regions-expected.png:
      * platform/mac/fast/regions/overflow-rtl-in-variable-width-regions-expected.txt:
      * platform/mac/fast/regions/overflow-size-change-in-variable-width-regions-expected.png: Added.
      * platform/mac/fast/regions/overflow-size-change-in-variable-width-regions-expected.txt: Added.
      * platform/mac/fast/regions/overflow-size-change-with-stacking-context-expected.png: Added.
      * platform/mac/fast/regions/overflow-size-change-with-stacking-context-expected.txt: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96620 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d4d3bcfd
    • jeffm@apple.com's avatar
      WKPreferences should allow control of application chrome mode · af357ac4
      jeffm@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=69344
      
      Reviewed by Dan Bernstein.
      
      * Shared/WebPreferencesStore.h: Add application chrome mode setting to FOR_EACH_WEBKIT_BOOL_PREFERENCE().
      
      * UIProcess/API/C/WKPreferences.cpp:
      (WKPreferencesSetApplicationChromeModeEnabled): Added.
      (WKPreferencesGetApplicationChromeModeEnabled): Added.
      
      * UIProcess/API/C/WKPreferencesPrivate.h: Added WKPreferencesSetApplicationChromeModeEnabled() and WKPreferencesGetApplicationChromeModeEnabled().
      
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::updatePreferences): Set application chrome mode setting.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96619 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      af357ac4
    • commit-queue@webkit.org's avatar
      [EFL] DRT: Add DumpRenderTree.cpp · 399bafef
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=62034
      
      Patch by Raphael Kubo da Costa <kubo@profusion.mobi> on 2011-10-04
      Reviewed by Antonio Gomes.
      
      This is the main implementation file for EFL's DumpRenderTree.
      
      * DumpRenderTree/efl/DumpRenderTree.cpp: Added.
      (dumpFramesAsText):
      (dumpFrameScrollPosition):
      (shouldLogFrameLoadDelegates):
      (shouldDumpAsText):
      (sendPixelResultsEOF):
      (invalidateAnyPreviousWaitToDumpWatchdog):
      (onEcoreEvasResize):
      (onCloseWindow):
      (useLongRunningServerMode):
      (parseCommandLineOptions):
      (getFinalTestURL):
      (getExpectedPixelHash):
      (createLayoutTestController):
      (runTest):
      (runTestingServerLoop):
      (adjustOutputTypeByMimeType):
      (dumpFrameContentsAsText):
      (shouldDumpFrameScrollPosition):
      (shouldDumpPixelsAndCompareWithExpected):
      (shouldDumpBackForwardList):
      (initEfl):
      (shutdownEfl):
      (displayWebView):
      (dump):
      (initEcoreEvas):
      (main):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96618 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      399bafef
    • andersca@apple.com's avatar
      More work towards making PlatformWheelEvent immutable · 09eac2ac
      andersca@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=69348
      
      Reviewed by Sam Weinig.
      
      More work on getting rid of m_isAccepted from PlatformWheelEvent. Add more asserts
      that the return value of handleWheelEvent is equal to m_isAccepted.
      
      * page/EventHandler.cpp:
      (WebCore::EventHandler::handleWheelEvent):
      * platform/ScrollAnimator.cpp:
      (WebCore::ScrollAnimator::handleWheelEvent):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96617 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      09eac2ac
    • carlosgc@webkit.org's avatar
      [GTK] Implement default error pages in WebKit2 GTK+ API · 9e803e65
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69255
      
      Reviewed by Martin Robinson.
      
      * UIProcess/API/gtk/WebKitError.cpp:
      (webkit_policy_error_quark): Add quark for policy errors.
      (webkit_plugin_error_quark): Add quark for plugin errors.
      * UIProcess/API/gtk/WebKitError.h: Add policy and plugin errors.
      * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
      (webkitWebLoaderClientLoadFailed): Load a custom error page when
      load failed and signal has not been handled.
      (webkit_web_loader_client_class_init): Add default implementation
      for provisional_load_failed and load_failed virtual methods.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96616 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9e803e65
    • caryclark@google.com's avatar
      Inset focus ring (Skia on Mac) · 7b7d19e6
      caryclark@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=69166
      http://code.google.com/p/chromium/issues/detail?id=97956
      
      This focus ring was drawn too large and was left tracks
      in subsequent invalidations. Make it more closely match
      the CG version.
      
      Reviewed by Adam Barth.
      
      No new tests. This platform is not enabled.
      
      * platform/graphics/skia/GraphicsContextSkia.cpp:
      (WebCore::getFocusRingOutset):
      (WebCore::GraphicsContext::drawFocusRing):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96615 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b7d19e6
    • carlosgc@webkit.org's avatar
      [GTK] Add webkit_web_view_load_alternate_html() to WebKit2 GTK+ API · 7f264909
      carlosgc@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69254
      
      Reviewed by Martin Robinson.
      
      * UIProcess/API/gtk/WebKitWebView.cpp:
      (webkit_web_view_load_alternate_html):
      * UIProcess/API/gtk/WebKitWebView.h:
      * UIProcess/API/gtk/tests/testloading.c:
      (loadAlternateContentLoadFinished):
      (loadAlternateContentLoadFailed):
      (testLoadAlternateContent):
      (main):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96614 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7f264909
    • jonlee@apple.com's avatar
      Extend DOM WheelEvent to differentiate between physical and logical scroll directions · 736fb651
      jonlee@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=68959
      <rdar://problem/10036688>
      
      Reviewed by Sam Weinig.
      
      Source/JavaScriptCore:
      
      * wtf/Platform.h: Added HAVE_INVERTED_WHEEL_EVENTS for Lion and later.
      
      Source/WebCore:
      
      Test: fast/events/wheelevent-direction-inverted-from-device.html
      
      * dom/WheelEvent.cpp:
      (WebCore::WheelEvent::WheelEvent):
      (WebCore::WheelEvent::initWheelEvent):
      (WebCore::WheelEventDispatchMediator::WheelEventDispatchMediator):
      * dom/WheelEvent.h:
      (WebCore::WheelEvent::create):
      (WebCore::WheelEvent::webkitDirectionInvertedFromDevice):
      * dom/WheelEvent.idl: Added the webkitDirectionInvertedFromDevice idl attribute.
      * platform/PlatformWheelEvent.h:
      (WebCore::PlatformWheelEvent::PlatformWheelEvent):
      (WebCore::PlatformWheelEvent::webkitDirectionInvertedFromDevice):
      * platform/efl/PlatformWheelEventEfl.cpp:
      (WebCore::PlatformWheelEvent::PlatformWheelEvent): default to false.
      * platform/gtk/PlatformWheelEventGtk.cpp:
      (WebCore::PlatformWheelEvent::PlatformWheelEvent): default to false.
      * platform/mac/WheelEventMac.mm:
      (WebCore::PlatformWheelEvent::PlatformWheelEvent): if building on Lion or later, use
      [NSEvent isDirectionInvertedFromDevice].
      * platform/qt/WheelEventQt.cpp:
      (WebCore::PlatformWheelEvent::PlatformWheelEvent): default to false.
      * platform/win/WheelEventWin.cpp:
      (WebCore::PlatformWheelEvent::PlatformWheelEvent): default to false.
      * platform/wx/MouseWheelEventWx.cpp:
      (WebCore::PlatformWheelEvent::PlatformWheelEvent): default to false.
      
      Source/WebKit2:
      
      * Shared/WebEvent.h:
      (WebKit::WebWheelEvent::directionInvertedFromDevice):
      * Shared/WebEventConversion.cpp:
      (WebKit::WebKit2PlatformWheelEvent::WebKit2PlatformWheelEvent):
      * Shared/WebWheelEvent.cpp:
      (WebKit::WebWheelEvent::WebWheelEvent):
      (WebKit::WebWheelEvent::encode):
      (WebKit::WebWheelEvent::decode):
      * Shared/mac/WebEventFactory.mm:
      (WebKit::WebEventFactory::createWebWheelEvent): get the flag from the NSEvent.
      * UIProcess/WebPageProxy.cpp:
      (WebKit::coalesce):
      
      LayoutTests:
      
      * fast/events/wheelevent-direction-inverted-from-device-expected.txt: Added.
      * fast/events/wheelevent-direction-inverted-from-device.html: Added.
      * platform/mac-wk2/Skipped: WKTR does not support mouse scroll events yet.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96613 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      736fb651
    • commit-queue@webkit.org's avatar
      [EFL] Fix compilation when SQLite and/or libxslt are not installed in /usr/include · b960e2a3
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69338
      
      Unreviewed build fix
      
      Patch by Rémi Duraffort <remi.duraffort@st.com> on 2011-10-04
      
      Source/WebCore:
      
      * CMakeListsEfl.txt:
      
      Source/WebKit/efl:
      
      * CMakeListsEfl.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96612 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b960e2a3
    • commit-queue@webkit.org's avatar
      [WebKit2][gtk] Generate gtk-doc for WebKit2-GTK. · b50f1920
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69325
      
      Patch by Nayan Kumar K <nayankk@motorola.com> on 2011-10-04
      Reviewed by Gustavo Noronha Silva.
      
      Documentation generation for WebKit2-GTK+ APIs
      using gtk-doc.
      
      .:
      
      * configure.ac:
      
      Source/WebKit2:
      
      * GNUmakefile.am: Added doc generation files to EXTRA_DIST.
      * UIProcess/API/gtk/docs/GNUmakefile.am: Makefile for doc generation.
      * UIProcess/API/gtk/docs/version.xml.in: Version information.
      * UIProcess/API/gtk/docs/webkit2gtk-docs.sgml: Document template.
      * UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Document sections added.
      * UIProcess/API/gtk/docs/webkit2gtk.types: Added GObjects types.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b50f1920
    • commit-queue@webkit.org's avatar
      Resource loader should block HTTP redirects to local resources · d065482e
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=68706
      
      Patch by Ken Buchanan <kenrb@chromium.org> on 2011-10-03
      Reviewed by Adam Barth.
      
      Source/WebCore:
      
      Modified MainResourceLoader to add an extra security check on
      HTTP redirects. Also, moved isFeedWithNestedProtocolInHTTPFamily
      to SecurityOrigin.cpp.
      
      * loader/FrameLoader.cpp:
      (WebCore::isFeedWithNestedProtocolInHTTPFamily):
      (WebCore::FrameLoader::loadFrameRequest):
      * loader/MainResourceLoader.cpp:
      (WebCore::MainResourceLoader::willSendRequest):
      * page/SecurityOrigin.cpp:
      (WebCore::isFeedWithNestedProtocolInHTTPFamily):
      (WebCore::SecurityOrigin::canDisplay):
      
      LayoutTests:
      
      Adding a test to attempt an HTTP redirect to a file: URL.
      
      * http/tests/security/redirect-BLOCKED-to-localURL.html: Added.
      * http/tests/security/redirect-BLOCKED-to-localURL-expected.txt: Added.
      * http/tests/security/resources/file-redirect-target.html: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96610 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d065482e
    • caryclark@google.com's avatar
      Apply color profile found to decoded bitmap (Skia on Mac) · 1fbeb615
      caryclark@google.com authored
      https://bugs.webkit.org/show_bug.cgi?id=69144
      This fixes http://code.google.com/p/chromium/issues/detail?id=97830
      
      Reviewed by Stephen White.
      
      No new tests. This platform is not enabled.
      
      * platform/image-decoders/ImageDecoder.h:
      Add color profile slot to Skia variation.
      
      * platform/image-decoders/skia/ImageDecoderSkia.cpp:
      (WebCore::resolveColorSpace):
      Adjust the bitmap in place to use the supplied color space.
      
      (WebCore::createColorSpace):
      Create a CGColorSpace from a color profile.
      
      (WebCore::ImageFrame::setColorProfile):
      Save the image's color profile until the image is complete.
      
      (WebCore::ImageFrame::setStatus):
      Apply the color profile, if any, to the image.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96609 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1fbeb615
    • abarth@webkit.org's avatar
      Restore Linux baseline for this test. The Linux baseline got clobbered · c9258aee
      abarth@webkit.org authored
      when I updated the Windows baseline.
      
      * platform/chromium-linux/fast/text/international/bidi-neutral-run-expected.txt: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96608 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c9258aee
    • leandro@webkit.org's avatar
      [CMake] Unreviewed: pass feature definitions in the right format for the CSS scripts. · af8cca11
      leandro@webkit.org authored
      The Perl scripts in the css/ directory expect the definitions passed via
      --defines to be a string of space-separated entries, however we were passing a
      list of semicolon-separated strings, thus making all feature defines actually
      be ignored.
      
      Detected after r96433, which checked for some definitions in
      CSSPropertyNames.in.
      
      No new tests, this is a build fix.
      
      * CMakeLists.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96607 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      af8cca11
    • commit-queue@webkit.org's avatar
      [WebKit2][gtk] Fix warnings while generating documentation using gtk-doc. · 3dcbe9eb
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69329
      
      Patch by Nayan Kumar K <nayankk@motorola.com> on 2011-10-04
      Reviewed by Martin Robinson.
      
      Added documentation for WebKitNetworkError enum and corrected few other
      minor issues in WebKit2-GTK+ API documentation.
      
      * UIProcess/API/gtk/WebKitError.h: Added documentation for WebKitNetworkError.
      * UIProcess/API/gtk/WebKitWebLoaderClient.cpp:
      (webkit_web_loader_client_class_init): Corrected parameter name.
      * UIProcess/API/gtk/WebKitWebView.cpp: Corrected annotation.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96606 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3dcbe9eb
    • mario@webkit.org's avatar
      2011-10-04 Mario Sanchez Prada <msanchez@igalia.com> · bddbd219
      mario@webkit.org authored
              Unreviewed; rebaselines for GTK after r96509.
      
              * platform/gtk/fast/forms/file-input-disabled-expected.png:
              * platform/gtk/fast/forms/file-input-disabled-expected.txt:
              * platform/gtk/fast/invalid/017-expected.txt:
              * platform/gtk/fast/invalid/018-expected.txt:
              * platform/gtk/fast/invalid/020-expected.txt:
              * platform/gtk/fast/invalid/residual-style-expected.png:
              * platform/gtk/fast/invalid/residual-style-expected.txt:
              * platform/gtk/fast/invalid/table-inside-stray-table-content-expected.txt:
              * platform/gtk/fast/table/inline-form-assert-expected.txt:
              * platform/gtk/tables/mozilla/bugs/bug113235-2-expected.txt:
              * platform/gtk/tables/mozilla/bugs/bug23994-expected.txt:
              * platform/gtk/tables/mozilla/bugs/bug56405-expected.png:
              * platform/gtk/tables/mozilla/bugs/bug56405-expected.txt:
              * platform/gtk/tables/mozilla/bugs/bug56563-expected.png:
              * platform/gtk/tables/mozilla/bugs/bug56563-expected.txt:
              * platform/gtk/tables/mozilla/bugs/bug9024-expected.txt:
              * platform/gtk/tables/mozilla_expected_failures/bugs/bug220653-expected.png:
              * platform/gtk/tables/mozilla_expected_failures/bugs/bug220653-expected.txt:
              * platform/gtk/tables/mozilla_expected_failures/bugs/bug7121-2-expected.png:
              * platform/gtk/tables/mozilla_expected_failures/bugs/bug7121-2-expected.txt:
              * platform/gtk/tables/mozilla_expected_failures/core/conflicts-expected.png:
              * platform/gtk/tables/mozilla_expected_failures/core/conflicts-expected.txt:
              * platform/gtk/tables/mozilla_expected_failures/other/empty_cells-expected.png:
              * platform/gtk/tables/mozilla_expected_failures/other/empty_cells-expected.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96605 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bddbd219
    • pfeldman@chromium.org's avatar
      Web Inspector: make SourceFrame compile. · 4c90cbc7
      pfeldman@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69345
      
      Reviewed by Yury Semikhatsky.
      
      * inspector/compile-front-end.sh:
      * inspector/front-end/DOMAgent.js:
      (WebInspector.DOMAgent.prototype.inspectElement):
      (WebInspector.DOMDispatcher.prototype.inspectElementRequested):
      * inspector/front-end/ElementsPanel.js:
      (WebInspector.ElementsPanel.prototype._inspectElementRequested):
      * inspector/front-end/ObjectPropertiesSection.js:
      (WebInspector.ObjectPropertyTreeElement.prototype._contextMenuEventFired):
      (WebInspector.ObjectPropertyTreeElement.prototype.startEditing):
      * inspector/front-end/ResourcesPanel.js:
      (WebInspector.ResourcesPanel.prototype._applyDiffMarkup):
      * inspector/front-end/SourceFrame.js:
      (WebInspector.SourceFrame.prototype._onShowPopover.showObjectPopover):
      (WebInspector.SourceFrame.prototype._onShowPopover):
      (WebInspector.SourceFrame.prototype._editBreakpointCondition):
      (WebInspector.SourceFrame.prototype.startEditing):
      (WebInspector.SourceFrame.prototype.commitEditing.didEditContent):
      (WebInspector.SourceFrame.prototype.commitEditing):
      (WebInspector.SourceFrameDelegate.prototype.requestContent):
      (WebInspector.SourceFrameDelegate.prototype.debuggingSupported):
      (WebInspector.SourceFrameDelegate.prototype.setBreakpoint):
      (WebInspector.SourceFrameDelegate.prototype.removeBreakpoint):
      (WebInspector.SourceFrameDelegate.prototype.updateBreakpoint):
      (WebInspector.SourceFrameDelegate.prototype.findBreakpoint):
      (WebInspector.SourceFrameDelegate.prototype.continueToLine):
      (WebInspector.SourceFrameDelegate.prototype.canEditScriptSource):
      (WebInspector.SourceFrameDelegate.prototype.setScriptSource):
      (WebInspector.SourceFrameDelegate.prototype.setScriptSourceIsBeingEdited):
      (WebInspector.SourceFrameDelegate.prototype.debuggerPaused):
      (WebInspector.SourceFrameDelegate.prototype.evaluateInSelectedCallFrame):
      (WebInspector.SourceFrameDelegate.prototype.releaseEvaluationResult):
      (WebInspector.SourceFrameDelegate.prototype.suggestedFileName):
      * inspector/front-end/externs.js:
      (WebInspector.log):
      * inspector/front-end/inspector.js:
      (WebInspector.log.logMessage):
      (WebInspector.log):
      * inspector/front-end/utilities.js:
      ():
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96604 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4c90cbc7
    • mario@webkit.org's avatar
      2011-10-04 Mario Sanchez Prada <msanchez@igalia.com> · 6cb378eb
      mario@webkit.org authored
              Unreviewed; new baselines for GTK after r96470
      
              * platform/gtk/svg/custom/grayscale-gradient-mask-2-expected.png: Added.
              * platform/gtk/svg/custom/grayscale-gradient-mask-2-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96603 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6cb378eb
    • abarth@webkit.org's avatar
      Update font shaping result after http://trac.webkit.org/changeset/96582. · ac12a4ea
      abarth@webkit.org authored
      This appears to be a progression, but I'll check with the authors of
      that patch to be sure.
      
      * platform/chromium-win/fast/text/international/bidi-neutral-run-expected.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96602 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac12a4ea
    • abarth@webkit.org's avatar
      Update leopard results. · 62d3f017
      abarth@webkit.org authored
      * platform/chromium-cg-mac-leopard/svg/as-object/embedded-svg-immediate-offsetWidth-query-expected.txt: Removed.
      * platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug23994-expected.png: Added.
      * platform/chromium-mac-leopard/svg/as-object: Removed.
      * platform/chromium-mac-leopard/svg/as-object/embedded-svg-immediate-offsetWidth-query-expected.txt: Removed.
      * platform/chromium-mac/svg/as-object/embedded-svg-immediate-offsetWidth-query-expected.png:
      * platform/chromium/tables/mozilla/bugs/bug23994-expected.txt: Removed.
      * platform/qt/svg/as-object/embedded-svg-immediate-offsetWidth-query-expected.txt: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96601 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      62d3f017
    • mario@webkit.org's avatar
      2011-10-04 Mario Sanchez Prada <msanchez@igalia.com> · 62312020
      mario@webkit.org authored
              Unreviewed; new baselines for GTK after r96257, r96374 and r96404.
      
              * platform/gtk/fast/repaint/selection-clear-expected.png: Added.
              * platform/gtk/fast/repaint/selection-clear-expected.txt: Added.
              * platform/gtk/fast/text/complex-synthetic-bold-space-width-expected.png: Added.
              * platform/gtk/fast/text/complex-synthetic-bold-space-width-expected.txt: Added.
              * platform/gtk/fast/text/line-initial-and-final-swashes-expected.png: Added.
              * platform/gtk/fast/text/line-initial-and-final-swashes-expected.txt: Added.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96600 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      62312020
    • mnaganov@chromium.org's avatar
      Web Inspector: Factor out object properties popup. · 85861193
      mnaganov@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69234
      
      Also, for HTML elements, show a non-empty id value in the element name.
      
      Reviewed by Pavel Feldman.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96599 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      85861193
    • ossy@webkit.org's avatar
      MinGW warning fix after r96286. · eaa2073c
      ossy@webkit.org authored
      Avoid redefining STDCALL, because STDCALL is also defined in mingw32/include/windef.h:
      
      Reviewed by Tor Arne Vestbø.
      
      * assembler/MacroAssemblerCodeRef.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96598 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eaa2073c
    • pfeldman@chromium.org's avatar
      Web Inspector: compile text editor. · 50463bec
      pfeldman@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69339
      
      Drive-by compilation for color, database and dom storage entities.
      
      Reviewed by Yury Semikhatsky.
      
      * inspector/Inspector.json:
      * inspector/compile-front-end.sh:
      * inspector/front-end/Color.js:
      (WebInspector.Color.prototype._individualRGBValueToFloatValue):
      * inspector/front-end/KeyboardShortcut.js:
      (WebInspector.KeyboardShortcut.makeKey):
      (WebInspector.KeyboardShortcut.makeKeyFromEvent):
      (WebInspector.KeyboardShortcut.makeDescriptor):
      * inspector/front-end/SourceCSSTokenizer.js:
      * inspector/front-end/SourceCSSTokenizer.re2js:
      * inspector/front-end/SourceHTMLTokenizer.js:
      * inspector/front-end/SourceHTMLTokenizer.re2js:
      * inspector/front-end/SourceJavaScriptTokenizer.js:
      * inspector/front-end/SourceJavaScriptTokenizer.re2js:
      * inspector/front-end/SourceTokenizer.js:
      (WebInspector.SourceTokenizer.prototype._charAt):
      (WebInspector.SourceTokenizer.prototype.createInitialCondition):
      (WebInspector.SourceTokenizer.prototype.nextToken):
      * inspector/front-end/TextEditorHighlighter.js:
      (WebInspector.TextEditorHighlighter.prototype.highlight):
      (WebInspector.TextEditorHighlighter.prototype._highlightLines):
      * inspector/front-end/TextEditorModel.js:
      * inspector/front-end/TextViewer.js:
      (WebInspector.TextViewerDelegate.prototype.doubleClick):
      (WebInspector.TextViewerDelegate.prototype.beforeTextChanged):
      (WebInspector.TextViewerDelegate.prototype.afterTextChanged):
      (WebInspector.TextViewerDelegate.prototype.commitEditing):
      (WebInspector.TextViewerDelegate.prototype.cancelEditing):
      (WebInspector.TextViewerDelegate.prototype.populateLineGutterContextMenu):
      (WebInspector.TextViewerDelegate.prototype.populateTextAreaContextMenu):
      (WebInspector.TextViewerDelegate.prototype.suggestedFileName):
      (WebInspector.TextEditorMainPanel.prototype._enclosingLineRowOrSelf):
      (WebInspector.TextEditorMainPanel.prototype._createLink):
      (WebInspector.TextEditorMainPanel.prototype._applyDomUpdates):
      (WebInspector.TextEditorMainPanel.prototype._updateChunksForRanges):
      * inspector/front-end/externs.js:
      (WebInspector.completeURL):
      (window.getComputedStyle):
      (Event.prototype.initWebKitWheelEvent):
      * inspector/front-end/utilities.js:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96597 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      50463bec
    • vsevik@chromium.org's avatar
      Web Inspector: Timeline panel shortcut for filtering short records should have shorter description. · 061e8e7f
      vsevik@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69333
      
      Reviewed by Pavel Feldman.
      
      * English.lproj/localizedStrings.js:
      * inspector/front-end/TimelinePanel.js:
      (WebInspector.TimelinePanel.prototype._registerShortcuts):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96596 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      061e8e7f
    • gavinp@chromium.org's avatar
      add more stack dumping methods · bd3152c8
      gavinp@chromium.org authored
             https://bugs.webkit.org/show_bug.cgi?id=69018
      
             In addition to WTFReportBacktrace, this adds the cross-platform WTFGetBacktrace, which lets
             WebKit programmatically retrieve the current stack.  This is useful if you need to add more
             reporting to field crash report uploads, if you're tracking down an irreproducable bug,
             for instance.
      
             Reviewed by Darin Adler.
      
             * wtf/Assertions.cpp:
             * wtf/Assertions.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96595 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bd3152c8
    • commit-queue@webkit.org's avatar
      Shrink StyleRareNonInheritedData. · 29d01f5a
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69331
      
      Patch by Andreas Kling <kling@webkit.org> on 2011-10-04
      Reviewed by Antti Koivisto.
      
      Rearrange the members and move all small types into the bitfield.
      This shrinks StyleRareNonInheritedData by two CPU words, reducing memory
      consumption by 140 kB (on 64-bit) when loading the full HTML5 spec.
      
      * rendering/style/StyleRareNonInheritedData.cpp:
      (WebCore::StyleRareNonInheritedData::StyleRareNonInheritedData):
      * rendering/style/StyleRareNonInheritedData.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96594 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      29d01f5a
    • vsevik@chromium.org's avatar
      Web Inspector: Remove http/tests/inspector/network/disabled-cache-crash.html. · 6ed4d5c8
      vsevik@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69332
      
      Reviewed by Pavel Feldman.
      
      .:
      
      * Source/autotools/symbols.filter:
      
      Source/WebCore:
      
      * WebCore.exp.in:
      * testing/Internals.cpp:
      * testing/Internals.h:
      * testing/Internals.idl:
      
      Source/WebKit2:
      
      * win/WebKit2.def:
      * win/WebKit2CFLite.def:
      
      LayoutTests:
      
      * http/tests/inspector/network/disabled-cache-crash-expected.txt: Removed.
      * http/tests/inspector/network/disabled-cache-crash.html: Removed.
      * platform/chromium/test_expectations.txt:
      * platform/gtk/Skipped:
      * platform/mac/Skipped:
      * platform/qt/Skipped:
      * platform/win/Skipped:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96593 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6ed4d5c8
    • commit-queue@webkit.org's avatar
      allow failure of most Chromium-Mac-Skia tests while we clean up that port · 25821a55
      commit-queue@webkit.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69279
      
      Patch by Elliot Poger <epoger@google.com> on 2011-10-04
      Reviewed by Adam Barth.
      
      * platform/chromium/test_expectations.txt:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96592 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      25821a55
    • pfeldman@chromium.org's avatar
      Web Inspector: make DataGrid compile · ff95b46a
      pfeldman@chromium.org authored
      https://bugs.webkit.org/show_bug.cgi?id=69334
      
      Patch by Pavel Feldman <pfeldman@chromium.org> on 2011-10-04
      Reviewed by Yury Semikhatsky.
      
      * inspector/compile-front-end.sh:
      * inspector/front-end/DataGrid.js:
      (WebInspector.DataGrid):
      (WebInspector.DataGrid.prototype._startEditingColumnOfDataGridNode):
      (WebInspector.DataGrid.prototype._startEditing):
      (WebInspector.DataGrid.prototype._startEditingConfig):
      (WebInspector.DataGrid.prototype._editingCommitted.moveToNextIfNeeded):
      (WebInspector.DataGrid.prototype._editingCommitted):
      (WebInspector.DataGrid.prototype._editingCancelled):
      (WebInspector.DataGrid.prototype.removeChildrenRecursive):
      (WebInspector.DataGrid.prototype._keyDown):
      (WebInspector.DataGrid.prototype._startResizerDragging):
      (WebInspector.DataGrid.prototype._resizerDragging):
      (WebInspector.DataGrid.prototype._endResizerDragging):
      (WebInspector.DataGridNode.prototype._attach):
      * inspector/front-end/UIUtils.js:
      (WebInspector.isBeingEdited):
      (WebInspector.markBeingEdited):
      (WebInspector.isEditingAnyField):
      (WebInspector.EditingConfig):
      (WebInspector.startEditing.blurEventListener):
      (WebInspector.startEditing.getContent):
      (WebInspector.startEditing.cleanUpAfterEditing):
      (WebInspector.startEditing.editingCancelled):
      (WebInspector.startEditing.editingCommitted):
      (WebInspector.startEditing.defaultFinishHandler):
      (WebInspector.startEditing):
      (WebInspector.startEditing.pasteEventListener):
      (WebInspector.startEditing.keyDownEventListener):
      * inspector/front-end/externs.js:
      (Array.prototype.remove):
      (window.getComputedStyle):
      * inspector/front-end/inspector.js:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@96591 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff95b46a