Adapt inline SVG sizing behavior to Firefox and Blink
authorkrit@webkit.org <krit@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 May 2014 06:06:28 +0000 (06:06 +0000)
committerkrit@webkit.org <krit@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 6 May 2014 06:06:28 +0000 (06:06 +0000)
commited89533d7aba2ac45d9d8c40be1780635cd0fe3e
treea0d99e5d6138f7d85e72f59183420b6365c7ee16
parent099b9dbed8f8d5c72ff37bee0ca7b218f5ee8e76
Adapt inline SVG sizing behavior to Firefox and Blink
https://bugs.webkit.org/show_bug.cgi?id=132569

Reviewed by Dean Jackson.

Source/WebCore:
This patch is ported from Blink CR 308992. Thanks to David Vest for helping
with back porting his Blink patch. From the commit message:

"The basis of this change is to map explicit width and height
attributes to CSS properties, essentially promoting them to
presentation attributes. Note that implicit "100%" width and height
are not mapped.

This enables us to remove the concept of "percentage intrinsic size"
and rely on normal CSS rules to resolve percentage values.

The change has been approved by the SVG WG and the spec is being
updated. Minutes here:

http://www.w3.org/2014/04/07-svg-minutes.html#item03"

The new model was indeed approved by the SVG WG and is basically following
the CSS 2.1 model for replaced elements.

With this patch WebKit, Firefox and Blink have the same behavior for inline SVG.
This is the first successful approach to unify the sizing behavior of SVG
across UAs.

Tests: svg/as-object/sizing/svg-in-object-placeholder-height-auto.html
       svg/as-object/sizing/svg-in-object-placeholder-height-fixed.html
       svg/as-object/sizing/svg-in-object-placeholder-height-percentage.html
       svg/in-html/sizing/svg-inline.html

* css/svg.css: Root SVG elements still need to be sized with height: 100% and
    width: 100%. This is necessary since width and height are presentation
    attributes now.
(svg:root):
* rendering/RenderBox.h:
(WebCore::RenderBox::computeIntrinsicRatioInformation): Remove all special
    behavior for intrinsic and percentage based sizes in SVG. This simplifies and
    unifies the code a lot. Most of the logic that is used is in RenderBox and
    RenderReplaced now. RenderSVGRoot was cleaned up a lot and is much lighter.
    And so it SVGSVGElement.
* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::hasAutoHeightOrContainingBlockWithAutoHeight):
(WebCore::RenderBoxModelObject::calculateImageIntrinsicDimensions):
* rendering/RenderImage.cpp:
(WebCore::RenderImage::computeIntrinsicRatioInformation):
* rendering/RenderImage.h:
* rendering/RenderReplaced.cpp:
(WebCore::RenderReplaced::computeAspectRatioInformationForRenderBox):
(WebCore::RenderReplaced::computeIntrinsicRatioInformation):
(WebCore::RenderReplaced::computeReplacedLogicalWidth):
(WebCore::RenderReplaced::computeReplacedLogicalHeight):
(WebCore::RenderReplaced::computePreferredLogicalWidths):
* rendering/RenderReplaced.h:
* rendering/svg/RenderSVGRoot.cpp:
(WebCore::RenderSVGRoot::computeIntrinsicRatioInformation):
(WebCore::RenderSVGRoot::computeReplacedLogicalWidth):
(WebCore::RenderSVGRoot::computeReplacedLogicalHeight):
(WebCore::RenderSVGRoot::hasRelativeDimensions):
(WebCore::RenderSVGRoot::hasRelativeIntrinsicLogicalWidth): Deleted.
(WebCore::RenderSVGRoot::hasRelativeLogicalHeight): Deleted.
* rendering/svg/RenderSVGRoot.h:
* svg/SVGElement.h:
(WebCore::SVGElement::invalidateSVGPresentationAttributeStyle):
* svg/SVGSVGElement.cpp:
(WebCore::SVGSVGElement::isPresentationAttribute):
(WebCore::SVGSVGElement::collectStyleForPresentationAttribute):
(WebCore::SVGSVGElement::svgAttributeChanged):
(WebCore::SVGSVGElement::currentViewportSize):
(WebCore::SVGSVGElement::hasIntrinsicWidth):
(WebCore::SVGSVGElement::hasIntrinsicHeight):
(WebCore::SVGSVGElement::intrinsicWidth):
(WebCore::SVGSVGElement::intrinsicHeight):
(WebCore::SVGSVGElement::widthAttributeEstablishesViewport): Deleted.
(WebCore::SVGSVGElement::heightAttributeEstablishesViewport): Deleted.
* svg/SVGSVGElement.h:
* svg/graphics/SVGImage.cpp:
(WebCore::SVGImage::containerSize):
* xml/XMLErrors.cpp: If an error occurs in a stand alone SVG file, we create
    an XHTML document with the error message and append the SVG file.
    This SVG file now follows the CSS sizing behavior as inline SVG.
    Therefore, we need to set width and height to 100% explicitly.
(WebCore::XMLErrors::insertErrorMessageBlock):

LayoutTests:
The new sizing behavior for inline SVG causes different DRT outputs for about 40 test cases.
This is expected but for most tests an improvement since the SVGs fit into the documents
and scrollbars disappear or the general size gets smaller.
Some tests needed to be updated. The size was either not set at all or not properly.

svg-in-object.js and svg-inline.js contain dozens of new tests to check the correct sizing
behavior.

The tests were written by David Vest from Opera as part of CR 308992.

Many of the -expected updates are caused by SVG size changes in turn
affecting where line breaks are inserted.

* TestExpectations:
* accessibility/svg-image-expected.txt:
* css3/flexbox/flexitem.html:
* fast/css/infinite-floating-value-expected.txt:
* fast/css/remove-fixed-resizer-crash-expected.txt:
* fast/css3-text/css3-word-spacing-percentage/word-spacing-crash-expected.txt:
* fast/repaint/moving-shadow-on-container.html:
* fast/repaint/moving-shadow-on-path.html:
* fast/repaint/svg-layout-root-style-attr-update.html:
* fast/shapes/shape-outside-floats/shape-outside-relative-size-svg-expected.html:
* fast/shapes/shape-outside-floats/shape-outside-relative-size-svg.html:
* http/tests/xmlviewer/dumpAsText/svg-expected.txt:
* platform/mac/svg/batik/filters/feTile-expected.txt:
* platform/mac/svg/batik/masking/maskRegions-expected.txt:
* platform/mac/svg/batik/paints/patternRegions-positioned-objects-expected.txt:
* platform/mac/svg/batik/text/longTextOnPath-expected.txt:
* platform/mac/svg/batik/text/textDecoration-expected.txt:
* platform/mac/svg/batik/text/textEffect-expected.txt:
* platform/mac/svg/batik/text/textLength-expected.txt:
* platform/mac/svg/batik/text/textOnPath-expected.txt:
* platform/mac/svg/batik/text/textPosition-expected.txt:
* platform/mac/svg/batik/text/verticalText-expected.txt:
* platform/mac/svg/batik/text/verticalTextOnPath-expected.txt:
* platform/mac/svg/custom/bug45331-expected.txt:
* platform/mac/svg/custom/junk-data-expected.txt:
* platform/mac/svg/custom/missing-xlink-expected.txt:
* platform/mac/svg/custom/object-sizing-height-50p-on-target-svg-absolute-expected.png: Removed.
* platform/mac/svg/custom/object-sizing-height-50p-on-target-svg-expected.png: Removed.
* platform/mac/svg/custom/object-sizing-width-50p-height-50p-on-target-svg-absolute-expected.png: Removed.
* platform/mac/svg/custom/object-sizing-width-50p-height-50p-on-target-svg-expected.png: Removed.
* platform/mac/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-absolute-expected.png: Removed.
* platform/mac/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-absolute-expected.txt: Removed.
* platform/mac/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-expected.png: Removed.
* platform/mac/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-expected.txt: Removed.
* platform/mac/svg/custom/object-sizing-width-50p-on-target-svg-absolute-expected.png: Removed.
* platform/mac/svg/custom/object-sizing-width-50p-on-target-svg-expected.png: Removed.
* platform/mac/svg/custom/object-sizing-width-75p-height-50p-on-target-svg-absolute-expected.png: Removed.
* platform/mac/svg/custom/object-sizing-width-75p-height-50p-on-target-svg-expected.png: Removed.
* platform/mac/svg/custom/object-sizing-width-75p-height-50p-on-target-svg-expected.txt: Removed.
* platform/mac/svg/custom/path-bad-data-expected.txt:
* platform/mac/svg/custom/svg-fonts-in-html-expected.txt:
* platform/mac/svg/custom/use-font-face-crash-expected.txt:
* platform/mac/svg/foreignObject/svg-document-in-html-document-expected.txt:
* platform/mac/svg/hixie/error/012-expected.txt:
* platform/mac/svg/hixie/intrinsic/001-expected.png: Removed.
* platform/mac/svg/hixie/intrinsic/001-expected.txt: Removed.
* platform/mac/svg/hixie/intrinsic/002-expected.png: Removed.
* platform/mac/svg/hixie/intrinsic/002-expected.txt: Removed.
* platform/mac/svg/in-html/circle-expected.txt:
* platform/mac/svg/text/non-bmp-positioning-lists-expected.txt:
* platform/mac/svg/transforms/animated-path-inside-transformed-html-expected.txt:
* platform/mac/svg/transforms/text-with-pattern-inside-transformed-html-expected.txt:
* platform/mac/svg/wicd/rightsizing-grid-expected.txt:
* platform/mac/svg/wicd/test-rightsizing-b-expected.txt:
* platform/mac/svg/zoom/page/zoom-background-image-tiled-expected.txt:
* platform/mac/svg/zoom/page/zoom-background-images-expected.txt:
* platform/mac/svg/zoom/page/zoom-foreignObject-expected.txt:
* platform/mac/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.txt:
* platform/mac/svg/zoom/page/zoom-svg-as-relative-image-expected.txt:
* platform/mac/svg/zoom/page/zoom-svg-float-border-padding-expected.txt:
* platform/mac/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.txt:
* platform/mac/svg/zoom/page/zoom-svg-through-object-with-absolute-size-expected.txt:
* platform/mac/svg/zoom/page/zoom-svg-through-object-with-auto-size-expected.txt:
* platform/mac/svg/zoom/page/zoom-svg-through-object-with-override-size-expected.txt:
* platform/mac/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.txt:
* platform/mac/svg/zoom/page/zoom-zoom-coords-expected.txt:
* platform/mac/svg/zoom/text/zoom-foreignObject-expected.txt:
* svg/animations/animate-css-xml-attributeType-expected.txt:
* svg/as-image/image-respects-deviceScaleFactor.html:
* svg/as-image/image-respects-pageScaleFactor.html:
* svg/as-image/svg-as-image-with-relative-size-expected.html:
* svg/as-image/svg-as-relative-image.html:
* svg/as-object/sizing/svg-in-object-placeholder-height-auto-expected.txt: Added.
* svg/as-object/sizing/svg-in-object-placeholder-height-auto.html: Added.
* svg/as-object/sizing/svg-in-object-placeholder-height-fixed-expected.txt: Added.
* svg/as-object/sizing/svg-in-object-placeholder-height-fixed.html: Added.
* svg/as-object/sizing/svg-in-object-placeholder-height-percentage-expected.txt: Added.
* svg/as-object/sizing/svg-in-object-placeholder-height-percentage.html: Added.
* svg/as-object/sizing/svg-in-object.js: Added.
(.):
(.addAttr):
(.generateSVGURI):
(buildDemo):
(.doCombinationTestRecursive):
(doCombinationTest):
(debugHint):
(.debugHint):
(testSVGInObjectWithPlaceholderHeightAttr.):
(testSVGInObjectWithPlaceholderHeightAttr):
* svg/css/composite-shadow-example.html:
* svg/css/composite-shadow-with-opacity.html:
* svg/css/max-width-2.html:
* svg/css/stars-with-shadow.html:
* svg/custom/absolute-sized-content-with-resources.xhtml:
* svg/custom/altglyph.svg:
* svg/custom/document-all-includes-svg-expected.txt:
* svg/custom/external-paintserver-reference-expected.txt:
* svg/custom/external-paintserver-reference.svg:
* svg/custom/get-text-element-transform-crash-expected.txt:
* svg/custom/linking-base-external-reference-expected.txt:
* svg/custom/linking-base-external-reference.xhtml:
* svg/custom/object-sizing-height-50p-on-target-svg-absolute-expected.txt: Removed.
* svg/custom/object-sizing-height-50p-on-target-svg-absolute.xhtml: Removed.
* svg/custom/object-sizing-height-50p-on-target-svg-expected.txt: Removed.
* svg/custom/object-sizing-height-50p-on-target-svg.xhtml: Removed.
* svg/custom/object-sizing-width-50p-height-50p-on-target-svg-absolute-expected.txt: Removed.
* svg/custom/object-sizing-width-50p-height-50p-on-target-svg-absolute.xhtml: Removed.
* svg/custom/object-sizing-width-50p-height-50p-on-target-svg-expected.txt: Removed.
* svg/custom/object-sizing-width-50p-height-50p-on-target-svg.xhtml: Removed.
* svg/custom/object-sizing-width-50p-height-75p-on-target-svg-absolute-expected.txt: Removed.
* svg/custom/object-sizing-width-50p-height-75p-on-target-svg-absolute.xhtml: Removed.
* svg/custom/object-sizing-width-50p-height-75p-on-target-svg-expected.txt: Removed.
* svg/custom/object-sizing-width-50p-height-75p-on-target-svg.xhtml: Removed.
* svg/custom/object-sizing-width-50p-on-target-svg-absolute-expected.txt: Removed.
* svg/custom/object-sizing-width-50p-on-target-svg-absolute.xhtml: Removed.
* svg/custom/object-sizing-width-50p-on-target-svg-expected.txt: Removed.
* svg/custom/object-sizing-width-50p-on-target-svg.xhtml: Removed.
* svg/custom/object-sizing-width-75p-height-50p-on-target-svg-absolute-expected.txt: Removed.
* svg/custom/object-sizing-width-75p-height-50p-on-target-svg-absolute.xhtml: Removed.
* svg/custom/object-sizing-width-75p-height-50p-on-target-svg-expected.txt: Removed.
* svg/custom/object-sizing-width-75p-height-50p-on-target-svg.xhtml: Removed.
* svg/custom/pending-resource-after-removal.xhtml:
* svg/custom/percentage-of-html-parent.xhtml:
* svg/custom/relative-sized-content-with-resources.xhtml:
* svg/custom/relative-sized-content.xhtml:
* svg/custom/relative-sized-deep-shadow-tree-content.xhtml:
* svg/custom/relative-sized-image.xhtml:
* svg/custom/relative-sized-inner-svg.xhtml:
* svg/custom/relative-sized-shadow-tree-content-with-symbol.xhtml:
* svg/custom/relative-sized-shadow-tree-content.xhtml:
* svg/custom/relative-sized-use-on-symbol.xhtml:
* svg/custom/relative-sized-use-without-attributes-on-symbol.xhtml:
* svg/custom/tref-with-progress-tag-setpseudo-assert-expected.txt:
* svg/custom/unicode-in-tspan-multi-svg-crash-expected.txt:
* svg/custom/use-invalid-html-expected.txt:
* svg/custom/window-named-item-lookup-expected.txt:
* svg/dom/SVGViewSpec-invalid-ref-crash-expected.txt:
* svg/dom/parent-view-layout-crash-expected.txt:
* svg/dom/stylesheet-candidate-node-crash-main-expected.txt:
* svg/dom/svg-root-lengths.html:
* svg/foreignObject/absolute-position-foreign-object-child-crash-expected.txt:
* svg/hixie/intrinsic/001-expected.png: Removed.
* svg/hixie/intrinsic/001-expected.txt: Removed.
* svg/hixie/intrinsic/001.html: Removed.
* svg/hixie/intrinsic/002-expected.png: Removed.
* svg/hixie/intrinsic/002-expected.txt: Removed.
* svg/hixie/intrinsic/002.html: Removed.
* svg/hixie/intrinsic/resources/001.svg: Removed.
* svg/hixie/intrinsic/resources/002.svg: Removed.
* svg/in-html/sizing/svg-inline-expected.txt: Added.
* svg/in-html/sizing/svg-inline.html: Added.
* svg/in-html/sizing/svg-inline.js: Added.
(.):
(setupSVGElement):
(buildDemo):
(.doCombinationTestRecursive):
(doCombinationTest):
(debugHint):
(.debugHint):
* svg/path-arc-invalid-expected.txt:
* svg/repaint/repaint-webkit-svg-shadow-container-expected.txt:
* svg/text/append-text-node-to-tspan.html:
* svg/text/kerning.svg:
* svg/text/modify-text-node-in-tspan.html:
* svg/text/multichar-glyph.svg:
* svg/text/remove-text-node-from-tspan.html:
* svg/text/remove-tspan-from-text.html:
* svg/text/svg-rtl-text-crash-expected.txt:
* svg/text/text-block-child-crash-expected.txt:
* svg/transforms/animated-path-inside-transformed-html.xhtml:
* svg/transforms/svg-css-transforms-clip-path.xhtml:
* svg/transforms/transform-origin-css-property.xhtml:
* svg/zoom/page/zoom-foreignObject.svg:
* svg/zoom/page/zoom-svg-as-relative-image.html:
* svg/zoom/text/zoom-foreignObject.svg:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@168350 268f45cc-cd09-0410-ab3c-d52691b4dbfc
174 files changed:
LayoutTests/ChangeLog
LayoutTests/TestExpectations
LayoutTests/accessibility/svg-image-expected.txt
LayoutTests/css3/flexbox/flexitem.html
LayoutTests/fast/css/infinite-floating-value-expected.txt
LayoutTests/fast/css/remove-fixed-resizer-crash-expected.txt
LayoutTests/fast/css3-text/css3-word-spacing-percentage/word-spacing-crash-expected.txt
LayoutTests/fast/repaint/moving-shadow-on-container.html
LayoutTests/fast/repaint/moving-shadow-on-path.html
LayoutTests/fast/repaint/svg-layout-root-style-attr-update.html
LayoutTests/fast/shapes/shape-outside-floats/shape-outside-relative-size-svg-expected.html
LayoutTests/fast/shapes/shape-outside-floats/shape-outside-relative-size-svg.html
LayoutTests/http/tests/xmlviewer/dumpAsText/svg-expected.txt
LayoutTests/platform/mac/svg/batik/filters/feTile-expected.txt
LayoutTests/platform/mac/svg/batik/masking/maskRegions-expected.txt
LayoutTests/platform/mac/svg/batik/paints/patternRegions-positioned-objects-expected.txt
LayoutTests/platform/mac/svg/batik/text/longTextOnPath-expected.txt
LayoutTests/platform/mac/svg/batik/text/textDecoration-expected.txt
LayoutTests/platform/mac/svg/batik/text/textEffect-expected.txt
LayoutTests/platform/mac/svg/batik/text/textLength-expected.txt
LayoutTests/platform/mac/svg/batik/text/textOnPath-expected.txt
LayoutTests/platform/mac/svg/batik/text/textPosition-expected.txt
LayoutTests/platform/mac/svg/batik/text/verticalText-expected.txt
LayoutTests/platform/mac/svg/batik/text/verticalTextOnPath-expected.txt
LayoutTests/platform/mac/svg/custom/bug45331-expected.txt
LayoutTests/platform/mac/svg/custom/junk-data-expected.txt
LayoutTests/platform/mac/svg/custom/missing-xlink-expected.txt
LayoutTests/platform/mac/svg/custom/object-sizing-height-50p-on-target-svg-absolute-expected.png [deleted file]
LayoutTests/platform/mac/svg/custom/object-sizing-height-50p-on-target-svg-expected.png [deleted file]
LayoutTests/platform/mac/svg/custom/object-sizing-width-50p-height-50p-on-target-svg-absolute-expected.png [deleted file]
LayoutTests/platform/mac/svg/custom/object-sizing-width-50p-height-50p-on-target-svg-expected.png [deleted file]
LayoutTests/platform/mac/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-absolute-expected.png [deleted file]
LayoutTests/platform/mac/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-absolute-expected.txt [deleted file]
LayoutTests/platform/mac/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-expected.png [deleted file]
LayoutTests/platform/mac/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-expected.txt [deleted file]
LayoutTests/platform/mac/svg/custom/object-sizing-width-50p-on-target-svg-absolute-expected.png [deleted file]
LayoutTests/platform/mac/svg/custom/object-sizing-width-50p-on-target-svg-expected.png [deleted file]
LayoutTests/platform/mac/svg/custom/object-sizing-width-75p-height-50p-on-target-svg-absolute-expected.png [deleted file]
LayoutTests/platform/mac/svg/custom/object-sizing-width-75p-height-50p-on-target-svg-expected.png [deleted file]
LayoutTests/platform/mac/svg/custom/object-sizing-width-75p-height-50p-on-target-svg-expected.txt [deleted file]
LayoutTests/platform/mac/svg/custom/path-bad-data-expected.txt
LayoutTests/platform/mac/svg/custom/svg-fonts-in-html-expected.txt
LayoutTests/platform/mac/svg/custom/use-font-face-crash-expected.txt
LayoutTests/platform/mac/svg/foreignObject/svg-document-in-html-document-expected.txt
LayoutTests/platform/mac/svg/hixie/error/012-expected.txt
LayoutTests/platform/mac/svg/hixie/intrinsic/001-expected.png [deleted file]
LayoutTests/platform/mac/svg/hixie/intrinsic/001-expected.txt [deleted file]
LayoutTests/platform/mac/svg/hixie/intrinsic/002-expected.png [deleted file]
LayoutTests/platform/mac/svg/hixie/intrinsic/002-expected.txt [deleted file]
LayoutTests/platform/mac/svg/in-html/circle-expected.txt
LayoutTests/platform/mac/svg/text/non-bmp-positioning-lists-expected.txt [deleted file]
LayoutTests/platform/mac/svg/transforms/animated-path-inside-transformed-html-expected.txt
LayoutTests/platform/mac/svg/transforms/text-with-pattern-inside-transformed-html-expected.txt
LayoutTests/platform/mac/svg/wicd/rightsizing-grid-expected.txt
LayoutTests/platform/mac/svg/wicd/test-rightsizing-b-expected.txt
LayoutTests/platform/mac/svg/zoom/page/zoom-background-image-tiled-expected.txt
LayoutTests/platform/mac/svg/zoom/page/zoom-background-images-expected.txt
LayoutTests/platform/mac/svg/zoom/page/zoom-foreignObject-expected.txt
LayoutTests/platform/mac/svg/zoom/page/zoom-img-preserveAspectRatio-support-1-expected.txt
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-as-relative-image-expected.txt
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-float-border-padding-expected.txt
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-absolute-size-2-expected.txt
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-absolute-size-expected.txt
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-auto-size-expected.txt
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-override-size-expected.txt
LayoutTests/platform/mac/svg/zoom/page/zoom-svg-through-object-with-percentage-size-expected.txt
LayoutTests/platform/mac/svg/zoom/page/zoom-zoom-coords-expected.txt
LayoutTests/platform/mac/svg/zoom/text/zoom-foreignObject-expected.txt
LayoutTests/svg/animations/animate-css-xml-attributeType-expected.txt
LayoutTests/svg/as-image/image-respects-deviceScaleFactor.html
LayoutTests/svg/as-image/image-respects-pageScaleFactor.html
LayoutTests/svg/as-image/svg-as-image-with-relative-size-expected.html
LayoutTests/svg/as-image/svg-as-relative-image.html
LayoutTests/svg/as-object/sizing/svg-in-object-placeholder-height-auto-expected.txt [new file with mode: 0644]
LayoutTests/svg/as-object/sizing/svg-in-object-placeholder-height-auto.html [new file with mode: 0644]
LayoutTests/svg/as-object/sizing/svg-in-object-placeholder-height-fixed-expected.txt [new file with mode: 0644]
LayoutTests/svg/as-object/sizing/svg-in-object-placeholder-height-fixed.html [new file with mode: 0644]
LayoutTests/svg/as-object/sizing/svg-in-object-placeholder-height-percentage-expected.txt [new file with mode: 0644]
LayoutTests/svg/as-object/sizing/svg-in-object-placeholder-height-percentage.html [new file with mode: 0644]
LayoutTests/svg/as-object/sizing/svg-in-object.js [new file with mode: 0644]
LayoutTests/svg/css/composite-shadow-example.html
LayoutTests/svg/css/composite-shadow-with-opacity.html
LayoutTests/svg/css/max-width-2.html
LayoutTests/svg/css/stars-with-shadow.html
LayoutTests/svg/custom/absolute-sized-content-with-resources.xhtml
LayoutTests/svg/custom/altglyph.svg
LayoutTests/svg/custom/document-all-includes-svg-expected.txt
LayoutTests/svg/custom/external-paintserver-reference-expected.txt
LayoutTests/svg/custom/external-paintserver-reference.svg
LayoutTests/svg/custom/get-text-element-transform-crash-expected.txt
LayoutTests/svg/custom/linking-base-external-reference-expected.txt
LayoutTests/svg/custom/linking-base-external-reference.xhtml
LayoutTests/svg/custom/object-sizing-height-50p-on-target-svg-absolute-expected.txt [deleted file]
LayoutTests/svg/custom/object-sizing-height-50p-on-target-svg-absolute.xhtml [deleted file]
LayoutTests/svg/custom/object-sizing-height-50p-on-target-svg-expected.txt [deleted file]
LayoutTests/svg/custom/object-sizing-height-50p-on-target-svg.xhtml [deleted file]
LayoutTests/svg/custom/object-sizing-width-50p-height-50p-on-target-svg-absolute-expected.txt [deleted file]
LayoutTests/svg/custom/object-sizing-width-50p-height-50p-on-target-svg-absolute.xhtml [deleted file]
LayoutTests/svg/custom/object-sizing-width-50p-height-50p-on-target-svg-expected.txt [deleted file]
LayoutTests/svg/custom/object-sizing-width-50p-height-50p-on-target-svg.xhtml [deleted file]
LayoutTests/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-absolute-expected.txt [deleted file]
LayoutTests/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-absolute.xhtml [deleted file]
LayoutTests/svg/custom/object-sizing-width-50p-height-75p-on-target-svg-expected.txt [deleted file]
LayoutTests/svg/custom/object-sizing-width-50p-height-75p-on-target-svg.xhtml [deleted file]
LayoutTests/svg/custom/object-sizing-width-50p-on-target-svg-absolute-expected.txt [deleted file]
LayoutTests/svg/custom/object-sizing-width-50p-on-target-svg-absolute.xhtml [deleted file]
LayoutTests/svg/custom/object-sizing-width-50p-on-target-svg-expected.txt [deleted file]
LayoutTests/svg/custom/object-sizing-width-50p-on-target-svg.xhtml [deleted file]
LayoutTests/svg/custom/object-sizing-width-75p-height-50p-on-target-svg-absolute-expected.txt [deleted file]
LayoutTests/svg/custom/object-sizing-width-75p-height-50p-on-target-svg-absolute.xhtml [deleted file]
LayoutTests/svg/custom/object-sizing-width-75p-height-50p-on-target-svg-expected.txt [deleted file]
LayoutTests/svg/custom/object-sizing-width-75p-height-50p-on-target-svg.xhtml [deleted file]
LayoutTests/svg/custom/pending-resource-after-removal.xhtml
LayoutTests/svg/custom/percentage-of-html-parent.xhtml
LayoutTests/svg/custom/relative-sized-content-with-resources.xhtml
LayoutTests/svg/custom/relative-sized-content.xhtml
LayoutTests/svg/custom/relative-sized-deep-shadow-tree-content.xhtml
LayoutTests/svg/custom/relative-sized-image.xhtml
LayoutTests/svg/custom/relative-sized-inner-svg.xhtml
LayoutTests/svg/custom/relative-sized-shadow-tree-content-with-symbol.xhtml
LayoutTests/svg/custom/relative-sized-shadow-tree-content.xhtml
LayoutTests/svg/custom/relative-sized-use-on-symbol.xhtml
LayoutTests/svg/custom/relative-sized-use-without-attributes-on-symbol.xhtml
LayoutTests/svg/custom/tref-with-progress-tag-setpseudo-assert-expected.txt
LayoutTests/svg/custom/unicode-in-tspan-multi-svg-crash-expected.txt
LayoutTests/svg/custom/use-invalid-html-expected.txt
LayoutTests/svg/custom/window-named-item-lookup-expected.txt
LayoutTests/svg/dom/SVGViewSpec-invalid-ref-crash-expected.txt
LayoutTests/svg/dom/parent-view-layout-crash-expected.txt
LayoutTests/svg/dom/stylesheet-candidate-node-crash-main-expected.txt
LayoutTests/svg/dom/svg-root-lengths.html
LayoutTests/svg/foreignObject/absolute-position-foreign-object-child-crash-expected.txt
LayoutTests/svg/hixie/intrinsic/001-expected.png [deleted file]
LayoutTests/svg/hixie/intrinsic/001-expected.txt [deleted file]
LayoutTests/svg/hixie/intrinsic/001.html [deleted file]
LayoutTests/svg/hixie/intrinsic/002-expected.png [deleted file]
LayoutTests/svg/hixie/intrinsic/002-expected.txt [deleted file]
LayoutTests/svg/hixie/intrinsic/002.html [deleted file]
LayoutTests/svg/hixie/intrinsic/resources/001.svg [deleted file]
LayoutTests/svg/hixie/intrinsic/resources/002.svg [deleted file]
LayoutTests/svg/in-html/sizing/svg-inline-expected.txt [new file with mode: 0644]
LayoutTests/svg/in-html/sizing/svg-inline.html [new file with mode: 0644]
LayoutTests/svg/in-html/sizing/svg-inline.js [new file with mode: 0644]
LayoutTests/svg/path-arc-invalid-expected.txt
LayoutTests/svg/repaint/repaint-webkit-svg-shadow-container-expected.txt
LayoutTests/svg/text/append-text-node-to-tspan.html
LayoutTests/svg/text/kerning.svg
LayoutTests/svg/text/modify-text-node-in-tspan.html
LayoutTests/svg/text/multichar-glyph.svg
LayoutTests/svg/text/remove-text-node-from-tspan.html
LayoutTests/svg/text/remove-tspan-from-text.html
LayoutTests/svg/text/svg-rtl-text-crash-expected.txt
LayoutTests/svg/text/text-block-child-crash-expected.txt
LayoutTests/svg/transforms/animated-path-inside-transformed-html.xhtml
LayoutTests/svg/transforms/svg-css-transforms-clip-path.xhtml
LayoutTests/svg/transforms/transform-origin-css-property.xhtml
LayoutTests/svg/zoom/page/zoom-foreignObject.svg
LayoutTests/svg/zoom/page/zoom-svg-as-relative-image.html
LayoutTests/svg/zoom/text/zoom-foreignObject.svg
Source/WebCore/ChangeLog
Source/WebCore/css/svg.css
Source/WebCore/rendering/RenderBox.h
Source/WebCore/rendering/RenderBoxModelObject.cpp
Source/WebCore/rendering/RenderImage.cpp
Source/WebCore/rendering/RenderImage.h
Source/WebCore/rendering/RenderReplaced.cpp
Source/WebCore/rendering/RenderReplaced.h
Source/WebCore/rendering/svg/RenderSVGRoot.cpp
Source/WebCore/rendering/svg/RenderSVGRoot.h
Source/WebCore/svg/SVGElement.h
Source/WebCore/svg/SVGSVGElement.cpp
Source/WebCore/svg/SVGSVGElement.h
Source/WebCore/svg/graphics/SVGImage.cpp
Source/WebCore/xml/XMLErrors.cpp