Cleanup: Tiny nits in ContentSecurityPolicy::reportViolation.
https://bugs.webkit.org/show_bug.cgi?id=112784

Reviewed by Jochen Eisinger.

Just cleanup of three tiny nits I ran across in
ContentSecurityPolicy::reportViolation while doing other work.

- 'directiveText' and 'effectiveDirective' can't be empty; we pass in
  values at every callsite. We can safely remove the 'isEmpty()' checks.
  Moreover, even if they could possibly somehow be empty, we should
  still include those empty strings in the report, rather than
  dropping the values entirely.

- We don't need to hold 'document->referrer()' in a temp variable.

* page/ContentSecurityPolicy.cpp:
(WebCore::ContentSecurityPolicy::reportViolation):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146755 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening. Making pixel test bot happier after r146206.

* platform/qt/fast/frames/flattening/frameset-flattening-grid-expected.png:
* platform/qt/fast/frames/flattening/frameset-flattening-simple-expected.png:
* platform/qt/fast/frames/flattening/frameset-flattening-subframe-resize-expected.png:
* platform/qt/fast/frames/flattening/iframe-flattening-fixed-height-expected.png:
* platform/qt/fast/frames/flattening/iframe-flattening-fixed-width-and-height-expected.png:
* platform/qt/fast/frames/flattening/iframe-flattening-fixed-width-and-height-no-scrolling-expected.png:
* platform/qt/fast/frames/flattening/iframe-flattening-fixed-width-expected.png:
* platform/qt/fast/frames/flattening/iframe-flattening-offscreen-expected.png:
* platform/qt/fast/frames/flattening/iframe-flattening-out-of-view-expected.png:
* platform/qt/fast/frames/flattening/iframe-flattening-simple-expected.png:
* platform/qt/fast/frames/frame-scrolling-attribute-expected.png:
* platform/qt/fast/frames/frameset-style-recalc-expected.png:
* platform/qt/fast/frames/iframe-scrolling-attribute-expected.png:
* platform/qt/fast/frames/iframe-with-frameborder-expected.png:
* platform/qt/fast/frames/viewsource-attribute-expected.png:
* platform/qt/fast/gradients/background-clipped-expected.png:
* platform/qt/fast/gradients/border-image-gradient-sides-and-corners-expected.png:
* platform/qt/fast/gradients/crash-on-zero-radius-expected.png:
* platform/qt/fast/gradients/radial-centered-expected.png:
* platform/qt/fast/html/details-nested-1-expected.png:
* platform/qt/fast/html/details-nested-2-expected.png:
* platform/qt/fast/html/details-writing-mode-expected.png:
* platform/qt/fast/html/font-weight-bold-for-b-and-strong-expected.png:
* platform/qt/fast/html/link-rel-stylesheet-expected.png:
* platform/qt/fast/html/listing-expected.png:
* platform/qt/fast/html/marquee-scroll-expected.png:
* platform/qt/fast/html/marquee-scrollamount-expected.png:
* platform/qt/fast/images/image-map-anchor-children-expected.png:
* platform/qt/fast/images/imagemap-circle-focus-ring-expected.png:
* platform/qt/fast/images/imagemap-focus-ring-expected.png:
* platform/qt/fast/images/imagemap-focus-ring-outline-color-expected.png:
* platform/qt/fast/images/imagemap-focus-ring-outline-color-explicitly-inherited-from-map-expected.png:
* platform/qt/fast/images/imagemap-focus-ring-zoom-expected.png:
* platform/qt/fast/images/imagemap-polygon-focus-ring-expected.png:
* platform/qt/fast/inline-block/001-expected.png:
* platform/qt/fast/inline-block/002-expected.png:
* platform/qt/fast/inline-block/003-expected.png:
* platform/qt/fast/inline-block/006-expected.png:
* platform/qt/fast/inline-block/14498-positionForCoordinates-expected.png:
* platform/qt/fast/inline-block/contenteditable-baseline-expected.png:
* platform/qt/fast/inline-block/tricky-baseline-expected.png:
* platform/qt/fast/inline/25277-2-expected.png:
* platform/qt/fast/inline/25277-expected.png:
* platform/qt/fast/inline/continuation-outlines-with-layers-2-expected.png:
* platform/qt/fast/inline/drawStyledEmptyInlines-expected.png:
* platform/qt/fast/inline/drawStyledEmptyInlinesWithWS-expected.png:
* platform/qt/fast/inline/emptyInlinesWithinLists-expected.png:
* platform/qt/fast/inline/inline-continuation-borders-expected.png:
* platform/qt/fast/inline/inline-focus-ring-expected.png:
* platform/qt/fast/inline/inline-text-quirk-bpm-expected.png:
* platform/qt/fast/inline/left-right-center-inline-alignment-in-ltr-and-rtl-blocks-expected.png:
* platform/qt/fast/inline/long-wrapped-line-expected.png:
* platform/qt/fast/inline/nested-top-alignment-expected.png:
* platform/qt/fast/inline/vertical-align-text-bottom-expected.png:
* platform/qt/fast/invalid/003-expected.png:
* platform/qt/fast/invalid/004-expected.png:
* platform/qt/fast/invalid/010-expected.png:
* platform/qt/fast/invalid/014-expected.png:
* platform/qt/fast/invalid/016-expected.png:
* platform/qt/fast/invalid/019-expected.png:
* platform/qt/fast/invalid/021-expected.png:
* platform/qt/fast/invalid/missing-address-end-tag-expected.png:
* platform/qt/fast/invalid/missing-dl-end-tag-expected.png:
* platform/qt/fast/invalid/missing-dt-end-tag-expected.png:
* platform/qt/fast/invalid/missing-font-end-tag-expected.png:
* platform/qt/fast/invalid/nestedh3s-expected.png:
* platform/qt/fast/invalid/td-inside-object-expected.png:
* platform/qt/fast/layers/inline-dirty-z-order-lists-expected.png:
* platform/qt/fast/layers/opacity-transforms-expected.png:
* platform/qt/fast/layers/remove-only-this-layer-update-expected.png:
* platform/qt/fast/line-grid/line-align-left-edges-expected.png:
* platform/qt/fast/line-grid/line-align-right-edges-expected.png:
* platform/qt/fast/line-grid/line-grid-floating-expected.png:
* platform/qt/fast/line-grid/line-grid-into-floats-expected.png:
* platform/qt/fast/line-grid/line-grid-positioned-expected.png:
* platform/qt/fast/lists/001-expected.png:
* platform/qt/fast/lists/001-vertical-expected.png:
* platform/qt/fast/lists/002-expected.png:
* platform/qt/fast/lists/002-vertical-expected.png:
* platform/qt/fast/lists/007-expected.png:
* platform/qt/fast/lists/007-vertical-expected.png:
* platform/qt/fast/lists/008-expected.png:
* platform/qt/fast/lists/008-vertical-expected.png:
* platform/qt/fast/lists/anonymous-items-expected.png:
* platform/qt/fast/lists/big-list-marker-expected.png:
* platform/qt/fast/lists/li-br-expected.png:
* platform/qt/fast/lists/li-style-alpha-huge-value-crash-expected.png:
* platform/qt/fast/lists/list-item-line-height-expected.png:
* platform/qt/fast/lists/list-style-none-crash-expected.png:
* platform/qt/fast/lists/ol-display-types-expected.png:
* platform/qt/fast/lists/ol-start-parsing-expected.png:
* platform/qt/fast/lists/olstart-expected.png:
* platform/qt/fast/multicol/block-axis-horizontal-bt-expected.png:
* platform/qt/fast/multicol/block-axis-horizontal-tb-expected.png:
* platform/qt/fast/multicol/block-axis-vertical-lr-expected.png:
* platform/qt/fast/multicol/block-axis-vertical-rl-expected.png:
* platform/qt/fast/multicol/client-rects-expected.png:
* platform/qt/fast/multicol/column-break-with-balancing-expected.png:
* platform/qt/fast/multicol/column-count-with-rules-expected.png:
* platform/qt/fast/multicol/float-avoidance-expected.png:
* platform/qt/fast/multicol/float-paginate-complex-expected.png:
* platform/qt/fast/multicol/float-paginate-expected.png:
* platform/qt/fast/multicol/layers-in-multicol-expected.png:
* platform/qt/fast/multicol/margin-collapse-expected.png:
* platform/qt/fast/multicol/max-height-columns-block-expected.png:
* platform/qt/fast/multicol/overflow-across-columns-expected.png:
* platform/qt/fast/multicol/overflow-unsplittable-expected.png:
* platform/qt/fast/multicol/paginate-block-replaced-expected.png:
* platform/qt/fast/multicol/positioned-split-expected.png:
* platform/qt/fast/multicol/positive-leading-expected.png:
* platform/qt/fast/multicol/progression-reverse-expected.png:
* platform/qt/fast/multicol/shadow-breaking-expected.png:
* platform/qt/fast/multicol/span/anonymous-before-child-parent-crash-expected.png:
* platform/qt/fast/multicol/span/anonymous-split-block-crash-expected.png:
* platform/qt/fast/multicol/span/clone-anonymous-block-non-inline-child-crash-expected.png:
* platform/qt/fast/multicol/span/span-as-nested-inline-block-child-expected.png:
* platform/qt/fast/multicol/table-margin-collapse-expected.png:
* platform/qt/fast/multicol/table-vertical-align-expected.png:
* platform/qt/fast/multicol/unsplittable-inline-block-expected.png:
* platform/qt/fast/multicol/vertical-lr/column-break-with-balancing-expected.png:
* platform/qt/fast/multicol/vertical-lr/column-count-with-rules-expected.png:
* platform/qt/fast/multicol/vertical-lr/float-multicol-expected.png:
* platform/qt/fast/multicol/vertical-lr/float-paginate-expected.png:
* platform/qt/fast/multicol/vertical-lr/unsplittable-inline-block-expected.png:
* platform/qt/fast/multicol/vertical-rl/column-break-with-balancing-expected.png:
* platform/qt/fast/multicol/vertical-rl/column-count-with-rules-expected.png:
* platform/qt/fast/multicol/vertical-rl/float-multicol-expected.png:
* platform/qt/fast/multicol/vertical-rl/float-paginate-expected.png:
* platform/qt/fast/multicol/vertical-rl/unsplittable-inline-block-expected.png:
* platform/qt/fast/overflow/001-expected.png:
* platform/qt/fast/overflow/002-expected.png:
* platform/qt/fast/overflow/003-expected.png:
* platform/qt/fast/overflow/004-expected.png:
* platform/qt/fast/overflow/007-expected.png:
* platform/qt/fast/overflow/008-expected.png:
* platform/qt/fast/overflow/dynamic-hidden-expected.png:
* platform/qt/fast/overflow/float-in-relpositioned-expected.png:
* platform/qt/fast/overflow/hidden-scrollbar-resize-expected.png:
* platform/qt/fast/overflow/line-clamp-expected.png:
* platform/qt/fast/overflow/overflow-auto-table-expected.png:
* platform/qt/fast/overflow/overflow-float-stacking-expected.png:
* platform/qt/fast/overflow/overflow-focus-ring-expected.png:
* platform/qt/fast/overflow/overflow-rtl-vertical-expected.png:
* platform/qt/fast/overflow/overflow-stacking-expected.png:
* platform/qt/fast/overflow/paged-x-div-with-column-gap-expected.png:
* platform/qt/fast/overflow/position-fixed-transform-clipping-expected.png:
* platform/qt/fast/overflow/scrollbar-position-update-expected.png:
* platform/qt/fast/overflow/table-overflow-float-expected.png:
* platform/qt/fast/overflow/trailing-float-linebox-expected.png:
* platform/qt/fast/parser/001-expected.png:
* platform/qt/fast/parser/broken-comments-vs-parsing-mode-expected.png:
* platform/qt/fast/parser/entity-comment-in-style-expected.png:
* platform/qt/fast/parser/nofoo-tags-inside-paragraph-expected.png:
* platform/qt/fast/parser/open-comment-in-style-expected.png:
* platform/qt/fast/reflections/inline-crash-expected.png:
* platform/qt/fast/reflections/opacity-reflection-transform-expected.png:
* platform/qt/fast/reflections/reflection-masks-expected.png:
* platform/qt/fast/reflections/reflection-masks-opacity-expected.png:
* platform/qt/fast/reflections/reflection-masks-outset-expected.png:
* platform/qt/fast/reflections/reflection-nesting-expected.png:
* platform/qt/fast/reflections/reflection-overflow-hidden-expected.png:
* platform/qt/fast/regions/flow-content-basic-expected.png:
* platform/qt/fast/regions/flow-content-basic-vertical-expected.png:
* platform/qt/fast/regions/flow-content-basic-vertical-rl-expected.png:
* platform/qt/fast/regions/multiple-directionality-changes-in-variable-width-regions-expected.png:
* platform/qt/fast/regions/overflow-in-uniform-regions-dynamic-expected.png:
* platform/qt/fast/regions/overflow-in-variable-width-regions-expected.png:
* platform/qt/fast/regions/overflow-moving-below-floats-in-variable-width-regions-expected.png:
* platform/qt/fast/regions/overflow-not-moving-below-floats-in-variable-width-regions-expected.png:
* platform/qt/fast/regions/overflow-rtl-in-variable-width-regions-expected.png:
* platform/qt/fast/regions/overflow-size-change-in-variable-width-regions-expected.png:
* platform/qt/fast/regions/overflow-size-change-with-stacking-context-rtl-expected.png:
* platform/qt/fast/regions/region-style-block-background-color-expected.png:
* platform/qt/fast/regions/region-style-block-background-color2-expected.png:
* platform/qt/fast/regions/text-region-split-small-pagination-expected.png:
* platform/qt/fast/regions/top-overflow-out-of-second-region-expected.png:
* platform/qt/fast/regions/webkit-flow-double-pagination-float-push-expected.png:
* platform/qt/fast/regions/webkit-flow-float-pushed-to-last-region-expected.png:
* platform/qt/fast/regions/webkit-flow-float-unable-to-push-expected.png:
* platform/qt/fast/regions/webkit-flow-floats-inside-regions-bounds-expected.png:
* platform/qt/fast/regions/webkit-flow-inlines-inside-regions-bounds-expected.png:
* platform/qt/fast/repaint/background-misaligned-expected.png:
* platform/qt/fast/repaint/block-layout-inline-children-replaced-expected.png:
* platform/qt/fast/repaint/focus-layers-expected.png:
* platform/qt/fast/repaint/scale-page-shrink-expected.png:
* platform/qt/fast/repaint/transform-absolute-child-expected.png:
* platform/qt/fast/repaint/transform-absolute-in-positioned-container-expected.png:
* platform/qt/fast/repaint/transform-relative-position-expected.png:
* platform/qt/fast/repaint/transform-replaced-shadows-expected.png:
* platform/qt/fast/replaced/004-expected.png:
* platform/qt/fast/replaced/absolute-position-percentage-height-expected.png:
* platform/qt/fast/replaced/absolute-position-with-auto-height-and-top-and-bottom-expected.png:
* platform/qt/fast/replaced/absolute-position-with-auto-width-and-left-and-right-expected.png:
* platform/qt/fast/replaced/applet-display-none-expected.png:
* platform/qt/fast/replaced/image-resize-width-expected.png:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146756 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Fix JSDocs.
https://bugs.webkit.org/show_bug.cgi?id=113025

Reviewed by Pavel Feldman.

Next version of JS compiler finds more inconsistencies
and ambiguous declarations.
Some of them are resolved in this patch.

* inspector/InjectedScriptSource.js: Fix JSDocs.
* inspector/front-end/ConsoleModel.js: Ditto.
* inspector/front-end/CookieParser.js: Ditto.
* inspector/front-end/FileContentView.js: Ditto.
* inspector/front-end/HeapSnapshotView.js: Ditto.
* inspector/front-end/IndexedDBModel.js: Ditto.
* inspector/front-end/ProfilesPanelDescriptor.js: Ditto.
* inspector/front-end/utilities.js: Ditto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146757 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CSP 1.1: Strip URLs in SecurityPolicyViolationEvents, just as we do for POSTed violation reports.
https://bugs.webkit.org/show_bug.cgi?id=113039

Reviewed by Jochen Eisinger.

Source/WebCore:

I'd originally assumed that we didn't need to be quite so careful when
handing URLs to JavaScript via SecurityPolicyViolationEvents. This was
a mistake. Cross-origin URLs aren't accessible to JavaScript currently
and there's no reason that we should begin exposing them via an event.

This patch extracts the stripping logic from the existing reports into
stripURLForUseInReport(), and uses that new method when populating the
event and report objects.

Relatedly, we were doing the wrong thing with 'file:' URLs, which this
patch made clear. Now they're treated the same as 'data:' et al.

Spec: https://dvcs.w3.org/hg/content-security-policy/rev/45f6ccaba0ef

Tests: http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image-from-script.html
       http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image.html
       http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-from-script.html
       http/tests/security/contentSecurityPolicy/report-blocked-file-uri.html

* page/ContentSecurityPolicy.cpp:
(WebCore::stripURLForUseInReport):
    Extract the logic from blockedURI out into a reusable method:
    cross-origin URLs are stripped down to the ASCII serialization of
    their origin, and non-heirarchical (and 'file:') URLs are stripped
    down to the ASCII serialization of their protocol.
(WebCore::gatherSecurityPolicyViolationEventData):
(WebCore::ContentSecurityPolicy::reportViolation):
    Use ::stripURLForUseInReport for blockedURL and sourceFile
    attributes in these two methods.

LayoutTests:

* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image-expected.txt: Copied from LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-expected.txt.
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image-from-script-expected.txt: Copied from LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-expected.txt.
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image-from-script.html: Added.
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image.html: Added.
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-expected.txt:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-from-script-expected.txt: Copied from LayoutTests/http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-expected.txt.
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-from-script.html: Added.
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image.html:
* http/tests/security/contentSecurityPolicy/resources/securitypolicyviolation-test.js: Added.
    Updating tests to cover cross-origin scenarios: load cross-origin
    images, and cross-origin scripts that inject images. The former
    should strip the image URL down to the origin, the latter the
    script URL.
* http/tests/security/contentSecurityPolicy/report-blocked-file-uri-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/report-blocked-file-uri.html: Added.
* platform/chromium/http/tests/security/contentSecurityPolicy/report-blocked-file-uri-expected.txt: Added.
* platform/gtk/http/tests/security/contentSecurityPolicy/report-blocked-file-uri-expected.txt: Added.
    This patch changes the behavior of 'file:' URLs to behave similarly
    to 'data:'/'blob:', etc. We weren't previously testing this, now we
    are. We need platform-specific results for Chromium and GTK, since
    those ports have enabled CSP_NEXT, which adds a field to the report.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146758 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: support changing local variables in frontend
https://bugs.webkit.org/show_bug.cgi?id=112470

Patch by Peter Rybin <prybin@chromium.org> on 2013-03-25
Reviewed by Yury Semikhatsky.

Source/WebCore:

ScopeRef type is added to RemoteObject and setPropertyValue is patched accordingly.

Test: inspector/debugger/debugger-change-variable.html

* inspector/front-end/DebuggerModel.js:
(WebInspector.DebuggerModel.CallFrame.prototype.get id):
* inspector/front-end/ObjectPropertiesSection.js:
(WebInspector.FunctionScopeMainTreeElement.prototype.onpopulate.didGetDetails):
(WebInspector.FunctionScopeMainTreeElement.prototype.onpopulate):
* inspector/front-end/RemoteObject.js:
(WebInspector.RemoteObject):
(WebInspector.RemoteObject.fromScopePayload):
(WebInspector.RemoteObject.prototype.):
(WebInspector.RemoteObject.prototype.setPropertyValue):
(WebInspector.RemoteObject.prototype.setVariableValueCallback):
(WebInspector.RemoteObject.prototype._setDeclarativeVariableValue):
(WebInspector.ScopeRef):
* inspector/front-end/ScopeChainSidebarPane.js:
(WebInspector.ScopeChainSidebarPane.prototype.update):

LayoutTests:

* inspector/debugger/debugger-change-variable-expected.txt: Added.
* inspector/debugger/debugger-change-variable.html: Added.
* platform/chromium/inspector/debugger/debugger-change-variable-expected.txt: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146759 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Properly handle the rule addition to an XML or SVG document.
https://bugs.webkit.org/show_bug.cgi?id=113185

Reviewed by Pavel Feldman.

* inspector/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::viaInspectorStyleSheet):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] REGRESSION(r146630): 8 text related test asserts on debug builds
https://bugs.webkit.org/show_bug.cgi?id=113179

Reviewed by Jocelyn Turcotte.

Test if range.start is within the valid range before testing the value at that point.

* platform/graphics/qt/FontQt.cpp:
(WebCore::Font::initFormatForTextLayout):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146761 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[CSS Filters] Using negative drop-shadow radius values has slow performance
https://bugs.webkit.org/show_bug.cgi?id=107848

Source/WebCore:

Setting negative blur radius values in drop-shadow() and box-shadow() led to
significant rendering performance loss. The invalid value overflowed and the
embedder became unresponsive for few seconds.
This impacted SVG too (SVGFEDropShadow and SVGFEGaussianBlur).

Reviewed by Dirk Schulze.

Tests: css3/filters/effect-drop-shadow-negative-radius.html
       fast/box-shadow/box-shadow-parsing-invalid.html
       svg/filters/feDropShadow-negative-deviation-expected.svg
       svg/filters/feDropShadow-negative-deviation.svg
       svg/filters/feDropShadow-zero-deviation.svg
       svg/filters/feGaussianBlur-negative-deviation-expected.svg
       svg/filters/feGaussianBlur-negative-deviation.svg
       svg/filters/feGaussianBlur-zero-deviation.svg

* css/CSSParser.cpp:
(WebCore::CSSParser::parseShadow): Negative values are skipped during parsing: as per
CSS Background and Borders specs, negative values shall not be allowed.
* platform/graphics/filters/FEGaussianBlur.cpp:
(WebCore::FEGaussianBlur::calculateUnscaledKernelSize): Added "non-negative" assertion for
negative deviations.
* svg/SVGFEDropShadowElement.cpp:
(WebCore::SVGFEDropShadowElement::build): If a negative standard deviation is encountered, don't
build the filter and returns earlier, this avoids unnecessary calls: FEGaussianBlur is not being
created with wrong and potentially overflowing values.
* svg/SVGFEGaussianBlurElement.cpp:
(WebCore::SVGFEGaussianBlurElement::build): Ditto.

LayoutTests:

Added a whole set of new tests for both CSS and SVG to assess the correctness of
blur(), drop-shadow() and box-shadow() blur radius values.

Reviewed by Dirk Schulze.

* css3/filters/effect-drop-shadow-negative-radius-expected.html: Added.
* css3/filters/effect-drop-shadow-negative-radius.html: Added.
* css3/filters/filter-property-parsing-invalid-expected.txt:
* css3/filters/script-tests/filter-property-parsing-invalid.js:
* fast/box-shadow/box-shadow-parsing-invalid-expected.txt: Added.
* fast/box-shadow/box-shadow-parsing-invalid.html: Added.
* fast/box-shadow/script-tests/box-shadow-parsing-invalid.js: Added.
(testInvalidFilterRule):
* platform/chromium/svg/filters/feDropShadow-zero-deviation-expected.png: Added.
* platform/chromium/svg/filters/feDropShadow-zero-deviation-expected.txt: Added.
* platform/chromium/svg/filters/feGaussianBlur-zero-deviation-expected.png: Added.
* platform/chromium/svg/filters/feGaussianBlur-zero-deviation-expected.txt: Added.
* platform/mac/svg/filters/feDropShadow-zero-deviation-expected.png: Added.
* platform/mac/svg/filters/feDropShadow-zero-deviation-expected.txt: Added.
* platform/mac/svg/filters/feGaussianBlur-zero-deviation-expected.png: Added.
* platform/mac/svg/filters/feGaussianBlur-zero-deviation-expected.txt: Added.
* svg/filters/feDropShadow-negative-deviation-expected.svg: Added.
* svg/filters/feDropShadow-negative-deviation.svg: Added.
* svg/filters/feDropShadow-zero-deviation.svg: Added.
* svg/filters/feGaussianBlur-negative-deviation-expected.svg: Added.
* svg/filters/feGaussianBlur-negative-deviation.svg: Added.
* svg/filters/feGaussianBlur-zero-deviation.svg: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146762 268f45cc-cd09-0410-ab3c-d52691b4dbfc
CSP 1.1: Rename SecurityPolicyViolationEvent::sourceURL to ::sourceFile.
https://bugs.webkit.org/show_bug.cgi?id=113033

Reviewed by Jochen Eisinger.

Source/WebCore:

Bringing our experimental implementation into line with the spec, which
has landed on the de facto standard name Gecko has been sending out for
years and years.

Spec: https://dvcs.w3.org/hg/content-security-policy/rev/e44f4003e158
Thread: http://lists.w3.org/Archives/Public/public-webappsec/2013Mar/0087.html

* dom/SecurityPolicyViolationEvent.h:
(SecurityPolicyViolationEventInit):
(WebCore::SecurityPolicyViolationEvent::sourceFile):
(WebCore::SecurityPolicyViolationEvent::SecurityPolicyViolationEvent):
(SecurityPolicyViolationEvent):
* dom/SecurityPolicyViolationEvent.idl:
* page/ContentSecurityPolicy.cpp:
(WebCore::gatherSecurityPolicyViolationEventData):
    s/sourceURL/sourceFile/

LayoutTests:

* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-basics-expected.txt:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-basics.html:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image-expected.txt:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image-from-script-expected.txt:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image-from-script.html:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-cross-origin-image.html:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-expected.txt:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-from-script-expected.txt:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image-from-script.html:
* http/tests/security/contentSecurityPolicy/1.1/securitypolicyviolation-block-image.html:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Support Quota API in Workers
https://bugs.webkit.org/show_bug.cgi?id=112972

Reviewed by Adam Barth.

Source/WebCore:

Tests: fast/workers/shared-worker-storagequota-query-usage.html
       fast/workers/worker-storagequota-query-usage.html

* Modules/quota/WorkerNavigatorStorageQuota.cpp: Added.
* Modules/quota/WorkerNavigatorStorageQuota.h: Added.
* Modules/quota/WorkerNavigatorStorageQuota.idl: Added.
* WebCore.gypi: Add entries for WorkerNavigatorStorageQuota.
* page/WorkerNavigator.h: Add a Navigator supplement that extends the worker navigator.

LayoutTests:

* fast/workers/resources/shared-worker-common.js:
(handleMessage): Allow port to be dynamically discovered from self.
* fast/workers/resources/storagequota-query-usage.js: Added.
(worker.onmessage):
* fast/workers/resources/worker-storagequota-query-usage.js: Added.
(requestUsage.errorCallback):
(requestUsage.usageCallback):
(requestUsage):
* fast/workers/shared-worker-storagequota-query-usage-expected.txt: Added.
* fast/workers/shared-worker-storagequota-query-usage.html: Added.
* fast/workers/worker-storagequota-query-usage-expected.txt: Added.
* fast/workers/worker-storagequota-query-usage.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Use generate-inspector-protocol-version to list valid public API changes
https://bugs.webkit.org/show_bug.cgi?id=113148

Added --show-changes command line option.
Used existing compare_schemas method to do a reverse compare.
Fixed a number of small problems (missing domain name in the message,
incorrect error messages for command parameters).

Patch by Vladislav Kaznacheev <kaznacheev@chromium.org> on 2013-03-25
Reviewed by Pavel Feldman.

* inspector/generate-inspector-protocol-version:
(named_list_to_map):
(removed):
(required):
(compare_schemas):
(compare_domains):
(compare_commands):
(compare_events):
(compare_params_list):
(compare_types):
(self_test):
(self_test.create_test_schema_1):
(self_test.create_test_schema_2):
(self_test.is_subset):
(self_test.errors_match):
(main):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146765 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Qml WebKit needs preferences to change security knobs
https://bugs.webkit.org/show_bug.cgi?id=111979

Patch by Maxim Ermilov <maxim.ermilov@canonical.com> on 2013-03-25
Reviewed by Jocelyn Turcotte.

* UIProcess/API/qt/qwebpreferences.cpp:
(QWebPreferencesPrivate::testAttribute):
(QWebPreferencesPrivate::setAttribute):
(QWebPreferences::universalAccessFromFileURLsAllowed):
(QWebPreferences::setUniversalAccessFromFileURLsAllowed):
(QWebPreferences::fileAccessFromFileURLsAllowed):
(QWebPreferences::setFileAccessFromFileURLsAllowed):
* UIProcess/API/qt/qwebpreferences_p.h:
* UIProcess/API/qt/qwebpreferences_p_p.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146766 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Fonts refactoring
https://bugs.webkit.org/show_bug.cgi?id=113047

Patch by Alexei Filippov <alph@chromium.org> on 2013-03-25
Reviewed by Pavel Feldman.

Unify fonts usage across inspector.
Make inspector default font depend on platform.

Source/WebCore:

* inspector/front-end/dataGrid.css:
(.data-grid table):
(.data-grid td):
* inspector/front-end/inspector.css:
(.toolbar-label):
(body.show-toolbar-icons .toolbar-label):
(.console-message .bubble):
(li .status .bubble):
(.source-frame-breakpoint-message):
(.soft-context-menu):
* inspector/front-end/inspectorCommon.css:
(body):
* inspector/front-end/networkLogView.css:
(.network-log-grid.data-grid td):
(.network-log-grid.data-grid.small td):
* inspector/front-end/tabbedPane.css:
(.tabbed-pane-header-tab):
(select.tabbed-pane-header-tabs-drop-down-select):
* inspector/front-end/timelinePanel.css:
(.memory-counter-value):

Source/WebKit/chromium:

* src/js/devTools.css:
(body.platform-linux):
(body.platform-mac):
(body.platform-windows):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146767 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Remove unneeded code from JavaScriptSourceFrame.
https://bugs.webkit.org/show_bug.cgi?id=113182

Reviewed by Pavel Feldman.

* inspector/front-end/JavaScriptSourceFrame.js:
(WebInspector.JavaScriptSourceFrame):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146768 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: Toggling breakpoint with shortcut should be freezed as well while editing.
https://bugs.webkit.org/show_bug.cgi?id=113188

Reviewed by Pavel Feldman.

* inspector/front-end/JavaScriptSourceFrame.js:
(WebInspector.JavaScriptSourceFrame.prototype.toggleBreakpointOnCurrentLine):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146769 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[EFL] Fix build break when media source is enabled
https://bugs.webkit.org/show_bug.cgi?id=113143

Unreviewed. Build error needs to be fixed in order to start to implement
media source functionality.


* CMakeLists.txt:
* platform/efl/MIMETypeRegistryEfl.cpp:
(WebCore):
(WebCore::MIMETypeRegistry::isSupportedMediaSourceMIMEType):
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
(WebCore):
(WebCore::MediaPlayerPrivateGStreamer::load):
* platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h:
(MediaPlayerPrivateGStreamer):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146770 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Web Inspector: [Timeline] set glue records mode off by default
https://bugs.webkit.org/show_bug.cgi?id=113189

Reviewed by Pavel Feldman.

Source/WebCore:

* inspector/front-end/TimelinePanel.js: /glueRecordsSetting/s/true/false/

LayoutTests:

* inspector/timeline/timeline-receive-response-event.html: enable glue records mode for the test.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146771 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening. Updated png results after r146206.

* platform/qt/css1/basic/class_as_selector-expected.png:
* platform/qt/css1/basic/comments-expected.png:
* platform/qt/css1/basic/contextual_selectors-expected.png:
* platform/qt/css1/basic/grouping-expected.png:
* platform/qt/css1/basic/id_as_selector-expected.png:
* platform/qt/css1/box_properties/acid_test-expected.png:
* platform/qt/css1/box_properties/border_bottom_inline-expected.png:
* platform/qt/css1/box_properties/border_bottom_width-expected.png:
* platform/qt/css1/box_properties/border_bottom_width_inline-expected.png:
* platform/qt/css1/box_properties/border_color-expected.png:
* platform/qt/css1/box_properties/border_color_inline-expected.png:
* platform/qt/css1/box_properties/border_inline-expected.png:
* platform/qt/css1/box_properties/border_left_inline-expected.png:
* platform/qt/css1/box_properties/border_left_width_inline-expected.png:
* platform/qt/css1/box_properties/border_right-expected.png:
* platform/qt/css1/box_properties/border_right_width_inline-expected.png:
* platform/qt/css1/box_properties/border_style_inline-expected.png:
* platform/qt/css1/box_properties/border_top_inline-expected.png:
* platform/qt/css1/box_properties/border_top_width-expected.png:
* platform/qt/css1/box_properties/border_top_width_inline-expected.png:
* platform/qt/css1/box_properties/border_width-expected.png:
* platform/qt/css1/box_properties/border_width_inline-expected.png:
* platform/qt/css1/box_properties/clear-expected.png:
* platform/qt/css1/box_properties/float-expected.png:
* platform/qt/css1/box_properties/float_elements_in_series-expected.png:
* platform/qt/css1/box_properties/height-expected.png:
* platform/qt/css1/box_properties/margin-expected.png:
* platform/qt/css1/box_properties/margin_bottom-expected.png:
* platform/qt/css1/box_properties/margin_bottom_inline-expected.png:
* platform/qt/css1/box_properties/margin_left_inline-expected.png:
* platform/qt/css1/box_properties/margin_right_inline-expected.png:
* platform/qt/css1/box_properties/margin_top-expected.png:
* platform/qt/css1/box_properties/margin_top_inline-expected.png:
* platform/qt/css1/box_properties/padding-expected.png:
* platform/qt/css1/box_properties/padding_left_inline-expected.png:
* platform/qt/css1/box_properties/padding_right_inline-expected.png:
* platform/qt/css1/box_properties/padding_top-expected.png:
* platform/qt/css1/box_properties/padding_top_inline-expected.png:
* platform/qt/css1/box_properties/width-expected.png:
* platform/qt/css1/classification/list_style-expected.png:
* platform/qt/css1/classification/list_style_image-expected.png:
* platform/qt/css1/classification/list_style_position-expected.png:
* platform/qt/css1/classification/list_style_type-expected.png:
* platform/qt/css1/classification/white_space-expected.png:
* platform/qt/css1/color_and_background/background-expected.png:
* platform/qt/css1/color_and_background/background_attachment-expected.png:
* platform/qt/css1/color_and_background/background_color-expected.png:
* platform/qt/css1/color_and_background/background_image-expected.png:
* platform/qt/css1/color_and_background/color-expected.png:
* platform/qt/css1/font_properties/font_family-expected.png:
* platform/qt/css1/font_properties/font_size-expected.png:
* platform/qt/css1/font_properties/font_style-expected.png:
* platform/qt/css1/font_properties/font_variant-expected.png:
* platform/qt/css1/font_properties/font_weight-expected.png:
* platform/qt/css1/formatting_model/canvas-expected.png:
* platform/qt/css1/formatting_model/floating_elements-expected.png:
* platform/qt/css1/formatting_model/height_of_lines-expected.png:
* platform/qt/css1/formatting_model/horizontal_formatting-expected.png:
* platform/qt/css1/formatting_model/replaced_elements-expected.png:
* platform/qt/css1/text_properties/letter_spacing-expected.png:
* platform/qt/css1/text_properties/line_height-expected.png:
* platform/qt/css1/text_properties/text_align-expected.png:
* platform/qt/css1/text_properties/vertical_align-expected.png:
* platform/qt/css1/text_properties/word_spacing-expected.png:
* platform/qt/css1/units/color_units-expected.png:
* platform/qt/css1/units/length_units-expected.png:
* platform/qt/css1/units/percentage_units-expected.png:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146772 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Qt] Unreviewed gardening. Updated expected png results r146206.

* platform/qt-5.0-wk2/css2.1/t0905-c414-flt-01-d-g-expected.png: Added.
* platform/qt-5.0-wk2/css2.1/t1004-c5524-width-00-b-g-expected.png: Added.
* platform/qt/css2.1/20110323/absolute-non-replaced-height-001-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-height-002-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-height-008-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-max-height-002-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-max-height-008-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-001-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-002-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-003-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-004-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-005-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-006-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-007-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-008-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-009-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-010-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-011-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-012-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-013-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-014-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-015-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-016-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-017-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-018-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-019-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-020-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-021-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-022-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-023-expected.png:
* platform/qt/css2.1/20110323/absolute-non-replaced-width-024-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-height-001-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-height-008-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-height-009-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-height-010-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-height-016-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-height-017-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-height-022-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-height-023-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-height-024-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-height-029-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-height-030-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-height-031-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-001-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-006-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-008-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-013-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-015-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-020-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-022-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-027-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-029-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-034-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-036-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-041-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-043-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-048-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-050-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-055-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-057-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-062-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-064-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-069-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-071-expected.png:
* platform/qt/css2.1/20110323/absolute-replaced-width-076-expected.png:
* platform/qt/css2.1/20110323/block-non-replaced-height-001-expected.png:
* platform/qt/css2.1/20110323/block-non-replaced-height-002-expected.png:
* platform/qt/css2.1/20110323/block-non-replaced-height-005-expected.png:
* platform/qt/css2.1/20110323/block-non-replaced-height-006-expected.png:
* platform/qt/css2.1/20110323/block-non-replaced-width-005-expected.png:
* platform/qt/css2.1/20110323/block-non-replaced-width-006-expected.png:
* platform/qt/css2.1/20110323/block-non-replaced-width-007-expected.png:
* platform/qt/css2.1/20110323/block-replaced-height-001-expected.png:
* platform/qt/css2.1/20110323/block-replaced-width-001-expected.png:
* platform/qt/css2.1/20110323/block-replaced-width-006-expected.png:
* platform/qt/css2.1/20110323/border-conflict-style-079-expected.png:
* platform/qt/css2.1/20110323/border-conflict-style-088-expected.png:
* platform/qt/css2.1/20110323/border-spacing-applies-to-015-expected.png:
* platform/qt/css2.1/20110323/empty-inline-003-expected.png:
* platform/qt/css2.1/20110323/float-non-replaced-width-007-expected.png:
* platform/qt/css2.1/20110323/float-non-replaced-width-008-expected.png:
* platform/qt/css2.1/20110323/float-non-replaced-width-009-expected.png:
* platform/qt/css2.1/20110323/float-non-replaced-width-010-expected.png:
* platform/qt/css2.1/20110323/float-non-replaced-width-011-expected.png:
* platform/qt/css2.1/20110323/float-non-replaced-width-012-expected.png:
* platform/qt/css2.1/20110323/float-replaced-height-001-expected.png:
* platform/qt/css2.1/20110323/float-replaced-width-006-expected.png:
* platform/qt/css2.1/20110323/float-replaced-width-011-expected.png:
* platform/qt/css2.1/20110323/floating-replaced-height-008-expected.png:
* platform/qt/css2.1/20110323/inline-block-non-replaced-width-002-expected.png:
* platform/qt/css2.1/20110323/inline-block-non-replaced-width-003-expected.png:
* platform/qt/css2.1/20110323/inline-block-non-replaced-width-004-expected.png:
* platform/qt/css2.1/20110323/inline-block-replaced-height-001-expected.png:
* platform/qt/css2.1/20110323/inline-block-replaced-height-008-expected.png:
* platform/qt/css2.1/20110323/inline-block-replaced-width-001-expected.png:
* platform/qt/css2.1/20110323/inline-block-replaced-width-006-expected.png:
* platform/qt/css2.1/20110323/inline-replaced-height-001-expected.png:
* platform/qt/css2.1/20110323/inline-replaced-height-008-expected.png:
* platform/qt/css2.1/20110323/inline-replaced-width-001-expected.png:
* platform/qt/css2.1/20110323/inline-replaced-width-006-expected.png:
* platform/qt/css2.1/20110323/inline-replaced-width-014-expected.png:
* platform/qt/css2.1/20110323/inline-replaced-width-015-expected.png:
* platform/qt/css2.1/20110323/margin-applies-to-010-expected.png:
* platform/qt/css2.1/20110323/replaced-intrinsic-001-expected.png:
* platform/qt/css2.1/20110323/replaced-intrinsic-ratio-001-expected.png:
* platform/qt/css2.1/20110323/table-caption-002-expected.png:
* platform/qt/css2.1/20110323/table-caption-optional-001-expected.png:
* platform/qt/css2.1/20110323/table-caption-optional-002-expected.png:
* platform/qt/css2.1/20110323/table-height-algorithm-023-expected.png:
* platform/qt/css2.1/20110323/table-height-algorithm-024-expected.png:
* platform/qt/css2.1/20110323/width-non-replaced-inline-001-expected.png:
* platform/qt/css2.1/t051103-c21-activ-ln-00-e-i-expected.png:
* platform/qt/css2.1/t051103-c21-hover-ln-00-e-i-expected.png:
* platform/qt/css2.1/t060403-c21-pseu-cls-00-e-i-expected.png:
* platform/qt/css2.1/t060403-c21-pseu-id-00-e-i-expected.png:
* platform/qt/css2.1/t0905-c5525-fltwidth-00-c-g-expected.png:
* platform/qt/css2.1/t1202-counters-08-b-expected.png:
* platform/qt/css2.1/t140201-c535-bg-fixd-00-b-g-expected.png:
* platform/qt/css2.1/t140201-c537-bgfxps-00-c-ag-expected.png:
* platform/qt/css2.1/t1508-c527-font-07-b-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-41-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-42-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-43-d-expected.png:
* platform/qt/css2.1/t170602-bdr-conflct-w-49-d-expected.png:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146773 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WTF::binarySearchImpl() should compile with -Wshorten-64-to-32
<http://webkit.org/b/113170>

Reviewed by Dan Bernstein.

Fixes the following build failure:

    /usr/local/include/wtf/StdLibExtras.h:190:30: error: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Werror,-Wshorten-64-to-32]
            int pos = (size - 1) >> 1;
                ~~~   ~~~~~~~~~~~^~~~
    1 error generated.

* wtf/StdLibExtras.h:
(WTF::binarySearchImpl): Switch type from int to size_t.


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