mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 20:47:44 +00:00
e357781a51
--HG-- rename : content/svg/content/src/DOMSVGAnimatedLengthList.cpp => dom/svg/DOMSVGAnimatedLengthList.cpp rename : content/svg/content/src/DOMSVGAnimatedLengthList.h => dom/svg/DOMSVGAnimatedLengthList.h rename : content/svg/content/src/DOMSVGAnimatedNumberList.cpp => dom/svg/DOMSVGAnimatedNumberList.cpp rename : content/svg/content/src/DOMSVGAnimatedNumberList.h => dom/svg/DOMSVGAnimatedNumberList.h rename : content/svg/content/src/DOMSVGLength.cpp => dom/svg/DOMSVGLength.cpp rename : content/svg/content/src/DOMSVGLength.h => dom/svg/DOMSVGLength.h rename : content/svg/content/src/DOMSVGLengthList.cpp => dom/svg/DOMSVGLengthList.cpp rename : content/svg/content/src/DOMSVGLengthList.h => dom/svg/DOMSVGLengthList.h rename : content/svg/content/src/DOMSVGNumber.cpp => dom/svg/DOMSVGNumber.cpp rename : content/svg/content/src/DOMSVGNumber.h => dom/svg/DOMSVGNumber.h rename : content/svg/content/src/DOMSVGNumberList.cpp => dom/svg/DOMSVGNumberList.cpp rename : content/svg/content/src/DOMSVGNumberList.h => dom/svg/DOMSVGNumberList.h rename : content/svg/content/src/DOMSVGPathSeg.cpp => dom/svg/DOMSVGPathSeg.cpp rename : content/svg/content/src/DOMSVGPathSeg.h => dom/svg/DOMSVGPathSeg.h rename : content/svg/content/src/DOMSVGPathSegList.cpp => dom/svg/DOMSVGPathSegList.cpp rename : content/svg/content/src/DOMSVGPathSegList.h => dom/svg/DOMSVGPathSegList.h rename : content/svg/content/src/DOMSVGPoint.cpp => dom/svg/DOMSVGPoint.cpp rename : content/svg/content/src/DOMSVGPoint.h => dom/svg/DOMSVGPoint.h rename : content/svg/content/src/DOMSVGPointList.cpp => dom/svg/DOMSVGPointList.cpp rename : content/svg/content/src/DOMSVGPointList.h => dom/svg/DOMSVGPointList.h rename : content/svg/content/src/DOMSVGStringList.cpp => dom/svg/DOMSVGStringList.cpp rename : content/svg/content/src/DOMSVGStringList.h => dom/svg/DOMSVGStringList.h rename : content/svg/content/src/DOMSVGTransformList.cpp => dom/svg/DOMSVGTransformList.cpp rename : content/svg/content/src/DOMSVGTransformList.h => dom/svg/DOMSVGTransformList.h rename : content/svg/content/src/SVGAElement.cpp => dom/svg/SVGAElement.cpp rename : content/svg/content/src/SVGAElement.h => dom/svg/SVGAElement.h rename : content/svg/content/src/SVGAltGlyphElement.cpp => dom/svg/SVGAltGlyphElement.cpp rename : content/svg/content/src/SVGAltGlyphElement.h => dom/svg/SVGAltGlyphElement.h rename : content/svg/content/src/SVGAngle.cpp => dom/svg/SVGAngle.cpp rename : content/svg/content/src/SVGAngle.h => dom/svg/SVGAngle.h rename : content/svg/content/src/SVGAnimateElement.cpp => dom/svg/SVGAnimateElement.cpp rename : content/svg/content/src/SVGAnimateElement.h => dom/svg/SVGAnimateElement.h rename : content/svg/content/src/SVGAnimateMotionElement.cpp => dom/svg/SVGAnimateMotionElement.cpp rename : content/svg/content/src/SVGAnimateMotionElement.h => dom/svg/SVGAnimateMotionElement.h rename : content/svg/content/src/SVGAnimateTransformElement.cpp => dom/svg/SVGAnimateTransformElement.cpp rename : content/svg/content/src/SVGAnimateTransformElement.h => dom/svg/SVGAnimateTransformElement.h rename : content/svg/content/src/SVGAnimatedAngle.cpp => dom/svg/SVGAnimatedAngle.cpp rename : content/svg/content/src/SVGAnimatedAngle.h => dom/svg/SVGAnimatedAngle.h rename : content/svg/content/src/SVGAnimatedBoolean.cpp => dom/svg/SVGAnimatedBoolean.cpp rename : content/svg/content/src/SVGAnimatedBoolean.h => dom/svg/SVGAnimatedBoolean.h rename : content/svg/content/src/SVGAnimatedEnumeration.cpp => dom/svg/SVGAnimatedEnumeration.cpp rename : content/svg/content/src/SVGAnimatedEnumeration.h => dom/svg/SVGAnimatedEnumeration.h rename : content/svg/content/src/SVGAnimatedInteger.cpp => dom/svg/SVGAnimatedInteger.cpp rename : content/svg/content/src/SVGAnimatedInteger.h => dom/svg/SVGAnimatedInteger.h rename : content/svg/content/src/SVGAnimatedLength.cpp => dom/svg/SVGAnimatedLength.cpp rename : content/svg/content/src/SVGAnimatedLength.h => dom/svg/SVGAnimatedLength.h rename : content/svg/content/src/SVGAnimatedLengthList.cpp => dom/svg/SVGAnimatedLengthList.cpp rename : content/svg/content/src/SVGAnimatedLengthList.h => dom/svg/SVGAnimatedLengthList.h rename : content/svg/content/src/SVGAnimatedNumber.cpp => dom/svg/SVGAnimatedNumber.cpp rename : content/svg/content/src/SVGAnimatedNumber.h => dom/svg/SVGAnimatedNumber.h rename : content/svg/content/src/SVGAnimatedNumberList.cpp => dom/svg/SVGAnimatedNumberList.cpp rename : content/svg/content/src/SVGAnimatedNumberList.h => dom/svg/SVGAnimatedNumberList.h rename : content/svg/content/src/SVGAnimatedPathSegList.cpp => dom/svg/SVGAnimatedPathSegList.cpp rename : content/svg/content/src/SVGAnimatedPathSegList.h => dom/svg/SVGAnimatedPathSegList.h rename : content/svg/content/src/SVGAnimatedPointList.cpp => dom/svg/SVGAnimatedPointList.cpp rename : content/svg/content/src/SVGAnimatedPointList.h => dom/svg/SVGAnimatedPointList.h rename : content/svg/content/src/SVGAnimatedPreserveAspectRatio.cpp => dom/svg/SVGAnimatedPreserveAspectRatio.cpp rename : content/svg/content/src/SVGAnimatedPreserveAspectRatio.h => dom/svg/SVGAnimatedPreserveAspectRatio.h rename : content/svg/content/src/SVGAnimatedRect.cpp => dom/svg/SVGAnimatedRect.cpp rename : content/svg/content/src/SVGAnimatedRect.h => dom/svg/SVGAnimatedRect.h rename : content/svg/content/src/SVGAnimatedString.cpp => dom/svg/SVGAnimatedString.cpp rename : content/svg/content/src/SVGAnimatedString.h => dom/svg/SVGAnimatedString.h rename : content/svg/content/src/SVGAnimatedTransformList.cpp => dom/svg/SVGAnimatedTransformList.cpp rename : content/svg/content/src/SVGAnimatedTransformList.h => dom/svg/SVGAnimatedTransformList.h rename : content/svg/content/src/SVGAnimationElement.cpp => dom/svg/SVGAnimationElement.cpp rename : content/svg/content/src/SVGAnimationElement.h => dom/svg/SVGAnimationElement.h rename : content/svg/content/src/SVGAttrValueWrapper.cpp => dom/svg/SVGAttrValueWrapper.cpp rename : content/svg/content/src/SVGAttrValueWrapper.h => dom/svg/SVGAttrValueWrapper.h rename : content/svg/content/src/SVGCircleElement.cpp => dom/svg/SVGCircleElement.cpp rename : content/svg/content/src/SVGCircleElement.h => dom/svg/SVGCircleElement.h rename : content/svg/content/src/SVGClipPathElement.cpp => dom/svg/SVGClipPathElement.cpp rename : content/svg/content/src/SVGClipPathElement.h => dom/svg/SVGClipPathElement.h rename : content/svg/content/src/SVGComponentTransferFunctionElement.h => dom/svg/SVGComponentTransferFunctionElement.h rename : content/svg/content/src/SVGContentUtils.cpp => dom/svg/SVGContentUtils.cpp rename : content/svg/content/src/SVGContentUtils.h => dom/svg/SVGContentUtils.h rename : content/svg/content/src/SVGDefsElement.cpp => dom/svg/SVGDefsElement.cpp rename : content/svg/content/src/SVGDefsElement.h => dom/svg/SVGDefsElement.h rename : content/svg/content/src/SVGDescElement.cpp => dom/svg/SVGDescElement.cpp rename : content/svg/content/src/SVGDescElement.h => dom/svg/SVGDescElement.h rename : content/svg/document/src/SVGDocument.cpp => dom/svg/SVGDocument.cpp rename : content/svg/document/src/SVGDocument.h => dom/svg/SVGDocument.h rename : content/svg/content/src/SVGElementFactory.cpp => dom/svg/SVGElementFactory.cpp rename : content/svg/content/src/SVGElementFactory.h => dom/svg/SVGElementFactory.h rename : content/svg/content/src/SVGEllipseElement.cpp => dom/svg/SVGEllipseElement.cpp rename : content/svg/content/src/SVGEllipseElement.h => dom/svg/SVGEllipseElement.h rename : content/svg/content/src/SVGFEBlendElement.cpp => dom/svg/SVGFEBlendElement.cpp rename : content/svg/content/src/SVGFEBlendElement.h => dom/svg/SVGFEBlendElement.h rename : content/svg/content/src/SVGFEColorMatrixElement.cpp => dom/svg/SVGFEColorMatrixElement.cpp rename : content/svg/content/src/SVGFEColorMatrixElement.h => dom/svg/SVGFEColorMatrixElement.h rename : content/svg/content/src/SVGFEComponentTransferElement.cpp => dom/svg/SVGFEComponentTransferElement.cpp rename : content/svg/content/src/SVGFEComponentTransferElement.h => dom/svg/SVGFEComponentTransferElement.h rename : content/svg/content/src/SVGFECompositeElement.cpp => dom/svg/SVGFECompositeElement.cpp rename : content/svg/content/src/SVGFECompositeElement.h => dom/svg/SVGFECompositeElement.h rename : content/svg/content/src/SVGFEConvolveMatrixElement.cpp => dom/svg/SVGFEConvolveMatrixElement.cpp rename : content/svg/content/src/SVGFEConvolveMatrixElement.h => dom/svg/SVGFEConvolveMatrixElement.h rename : content/svg/content/src/SVGFEDiffuseLightingElement.cpp => dom/svg/SVGFEDiffuseLightingElement.cpp rename : content/svg/content/src/SVGFEDiffuseLightingElement.h => dom/svg/SVGFEDiffuseLightingElement.h rename : content/svg/content/src/SVGFEDisplacementMapElement.cpp => dom/svg/SVGFEDisplacementMapElement.cpp rename : content/svg/content/src/SVGFEDisplacementMapElement.h => dom/svg/SVGFEDisplacementMapElement.h rename : content/svg/content/src/SVGFEDistantLightElement.cpp => dom/svg/SVGFEDistantLightElement.cpp rename : content/svg/content/src/SVGFEDistantLightElement.h => dom/svg/SVGFEDistantLightElement.h rename : content/svg/content/src/SVGFEDropShadowElement.cpp => dom/svg/SVGFEDropShadowElement.cpp rename : content/svg/content/src/SVGFEDropShadowElement.h => dom/svg/SVGFEDropShadowElement.h rename : content/svg/content/src/SVGFEFloodElement.cpp => dom/svg/SVGFEFloodElement.cpp rename : content/svg/content/src/SVGFEFloodElement.h => dom/svg/SVGFEFloodElement.h rename : content/svg/content/src/SVGFEGaussianBlurElement.cpp => dom/svg/SVGFEGaussianBlurElement.cpp rename : content/svg/content/src/SVGFEGaussianBlurElement.h => dom/svg/SVGFEGaussianBlurElement.h rename : content/svg/content/src/SVGFEImageElement.cpp => dom/svg/SVGFEImageElement.cpp rename : content/svg/content/src/SVGFEImageElement.h => dom/svg/SVGFEImageElement.h rename : content/svg/content/src/SVGFEMergeElement.cpp => dom/svg/SVGFEMergeElement.cpp rename : content/svg/content/src/SVGFEMergeElement.h => dom/svg/SVGFEMergeElement.h rename : content/svg/content/src/SVGFEMergeNodeElement.cpp => dom/svg/SVGFEMergeNodeElement.cpp rename : content/svg/content/src/SVGFEMergeNodeElement.h => dom/svg/SVGFEMergeNodeElement.h rename : content/svg/content/src/SVGFEMorphologyElement.cpp => dom/svg/SVGFEMorphologyElement.cpp rename : content/svg/content/src/SVGFEMorphologyElement.h => dom/svg/SVGFEMorphologyElement.h rename : content/svg/content/src/SVGFEOffsetElement.cpp => dom/svg/SVGFEOffsetElement.cpp rename : content/svg/content/src/SVGFEOffsetElement.h => dom/svg/SVGFEOffsetElement.h rename : content/svg/content/src/SVGFEPointLightElement.cpp => dom/svg/SVGFEPointLightElement.cpp rename : content/svg/content/src/SVGFEPointLightElement.h => dom/svg/SVGFEPointLightElement.h rename : content/svg/content/src/SVGFESpecularLightingElement.cpp => dom/svg/SVGFESpecularLightingElement.cpp rename : content/svg/content/src/SVGFESpecularLightingElement.h => dom/svg/SVGFESpecularLightingElement.h rename : content/svg/content/src/SVGFESpotLightElement.cpp => dom/svg/SVGFESpotLightElement.cpp rename : content/svg/content/src/SVGFESpotLightElement.h => dom/svg/SVGFESpotLightElement.h rename : content/svg/content/src/SVGFETileElement.cpp => dom/svg/SVGFETileElement.cpp rename : content/svg/content/src/SVGFETileElement.h => dom/svg/SVGFETileElement.h rename : content/svg/content/src/SVGFETurbulenceElement.cpp => dom/svg/SVGFETurbulenceElement.cpp rename : content/svg/content/src/SVGFETurbulenceElement.h => dom/svg/SVGFETurbulenceElement.h rename : content/svg/content/src/SVGFilterElement.cpp => dom/svg/SVGFilterElement.cpp rename : content/svg/content/src/SVGFilterElement.h => dom/svg/SVGFilterElement.h rename : content/svg/content/src/SVGForeignObjectElement.cpp => dom/svg/SVGForeignObjectElement.cpp rename : content/svg/content/src/SVGForeignObjectElement.h => dom/svg/SVGForeignObjectElement.h rename : content/svg/content/src/SVGFragmentIdentifier.cpp => dom/svg/SVGFragmentIdentifier.cpp rename : content/svg/content/src/SVGFragmentIdentifier.h => dom/svg/SVGFragmentIdentifier.h rename : content/svg/content/src/SVGGElement.cpp => dom/svg/SVGGElement.cpp rename : content/svg/content/src/SVGGElement.h => dom/svg/SVGGElement.h rename : content/svg/content/src/SVGGradientElement.cpp => dom/svg/SVGGradientElement.cpp rename : content/svg/content/src/SVGGradientElement.h => dom/svg/SVGGradientElement.h rename : content/svg/content/src/SVGGraphicsElement.cpp => dom/svg/SVGGraphicsElement.cpp rename : content/svg/content/src/SVGGraphicsElement.h => dom/svg/SVGGraphicsElement.h rename : content/svg/content/src/SVGIFrameElement.cpp => dom/svg/SVGIFrameElement.cpp rename : content/svg/content/src/SVGIFrameElement.h => dom/svg/SVGIFrameElement.h rename : content/svg/content/src/SVGIRect.h => dom/svg/SVGIRect.h rename : content/svg/content/src/SVGImageElement.cpp => dom/svg/SVGImageElement.cpp rename : content/svg/content/src/SVGImageElement.h => dom/svg/SVGImageElement.h rename : content/svg/content/src/SVGIntegerPairSMILType.cpp => dom/svg/SVGIntegerPairSMILType.cpp rename : content/svg/content/src/SVGIntegerPairSMILType.h => dom/svg/SVGIntegerPairSMILType.h rename : content/svg/content/src/SVGLength.cpp => dom/svg/SVGLength.cpp rename : content/svg/content/src/SVGLength.h => dom/svg/SVGLength.h rename : content/svg/content/src/SVGLengthList.cpp => dom/svg/SVGLengthList.cpp rename : content/svg/content/src/SVGLengthList.h => dom/svg/SVGLengthList.h rename : content/svg/content/src/SVGLengthListSMILType.cpp => dom/svg/SVGLengthListSMILType.cpp rename : content/svg/content/src/SVGLengthListSMILType.h => dom/svg/SVGLengthListSMILType.h rename : content/svg/content/src/SVGLineElement.cpp => dom/svg/SVGLineElement.cpp rename : content/svg/content/src/SVGLineElement.h => dom/svg/SVGLineElement.h rename : content/svg/content/src/SVGMPathElement.cpp => dom/svg/SVGMPathElement.cpp rename : content/svg/content/src/SVGMPathElement.h => dom/svg/SVGMPathElement.h rename : content/svg/content/src/SVGMarkerElement.cpp => dom/svg/SVGMarkerElement.cpp rename : content/svg/content/src/SVGMarkerElement.h => dom/svg/SVGMarkerElement.h rename : content/svg/content/src/SVGMaskElement.cpp => dom/svg/SVGMaskElement.cpp rename : content/svg/content/src/SVGMaskElement.h => dom/svg/SVGMaskElement.h rename : content/svg/content/src/SVGMatrix.cpp => dom/svg/SVGMatrix.cpp rename : content/svg/content/src/SVGMatrix.h => dom/svg/SVGMatrix.h rename : content/svg/content/src/SVGMetadataElement.cpp => dom/svg/SVGMetadataElement.cpp rename : content/svg/content/src/SVGMetadataElement.h => dom/svg/SVGMetadataElement.h rename : content/svg/content/src/SVGMotionSMILAnimationFunction.cpp => dom/svg/SVGMotionSMILAnimationFunction.cpp rename : content/svg/content/src/SVGMotionSMILAnimationFunction.h => dom/svg/SVGMotionSMILAnimationFunction.h rename : content/svg/content/src/SVGMotionSMILAttr.cpp => dom/svg/SVGMotionSMILAttr.cpp rename : content/svg/content/src/SVGMotionSMILAttr.h => dom/svg/SVGMotionSMILAttr.h rename : content/svg/content/src/SVGMotionSMILPathUtils.cpp => dom/svg/SVGMotionSMILPathUtils.cpp rename : content/svg/content/src/SVGMotionSMILPathUtils.h => dom/svg/SVGMotionSMILPathUtils.h rename : content/svg/content/src/SVGMotionSMILType.cpp => dom/svg/SVGMotionSMILType.cpp rename : content/svg/content/src/SVGMotionSMILType.h => dom/svg/SVGMotionSMILType.h rename : content/svg/content/src/SVGNumberList.cpp => dom/svg/SVGNumberList.cpp rename : content/svg/content/src/SVGNumberList.h => dom/svg/SVGNumberList.h rename : content/svg/content/src/SVGNumberListSMILType.cpp => dom/svg/SVGNumberListSMILType.cpp rename : content/svg/content/src/SVGNumberListSMILType.h => dom/svg/SVGNumberListSMILType.h rename : content/svg/content/src/SVGNumberPairSMILType.cpp => dom/svg/SVGNumberPairSMILType.cpp rename : content/svg/content/src/SVGNumberPairSMILType.h => dom/svg/SVGNumberPairSMILType.h rename : content/svg/content/src/SVGOrientSMILType.cpp => dom/svg/SVGOrientSMILType.cpp rename : content/svg/content/src/SVGOrientSMILType.h => dom/svg/SVGOrientSMILType.h rename : content/svg/content/src/SVGPathData.cpp => dom/svg/SVGPathData.cpp rename : content/svg/content/src/SVGPathData.h => dom/svg/SVGPathData.h rename : content/svg/content/src/SVGPathElement.cpp => dom/svg/SVGPathElement.cpp rename : content/svg/content/src/SVGPathElement.h => dom/svg/SVGPathElement.h rename : content/svg/content/src/SVGPathSegListSMILType.cpp => dom/svg/SVGPathSegListSMILType.cpp rename : content/svg/content/src/SVGPathSegListSMILType.h => dom/svg/SVGPathSegListSMILType.h rename : content/svg/content/src/SVGPathSegUtils.cpp => dom/svg/SVGPathSegUtils.cpp rename : content/svg/content/src/SVGPathSegUtils.h => dom/svg/SVGPathSegUtils.h rename : content/svg/content/src/SVGPatternElement.cpp => dom/svg/SVGPatternElement.cpp rename : content/svg/content/src/SVGPatternElement.h => dom/svg/SVGPatternElement.h rename : content/svg/content/src/SVGPoint.h => dom/svg/SVGPoint.h rename : content/svg/content/src/SVGPointList.cpp => dom/svg/SVGPointList.cpp rename : content/svg/content/src/SVGPointList.h => dom/svg/SVGPointList.h rename : content/svg/content/src/SVGPointListSMILType.cpp => dom/svg/SVGPointListSMILType.cpp rename : content/svg/content/src/SVGPointListSMILType.h => dom/svg/SVGPointListSMILType.h rename : content/svg/content/src/SVGPolygonElement.cpp => dom/svg/SVGPolygonElement.cpp rename : content/svg/content/src/SVGPolygonElement.h => dom/svg/SVGPolygonElement.h rename : content/svg/content/src/SVGPolylineElement.cpp => dom/svg/SVGPolylineElement.cpp rename : content/svg/content/src/SVGPolylineElement.h => dom/svg/SVGPolylineElement.h rename : content/svg/content/src/SVGPreserveAspectRatio.cpp => dom/svg/SVGPreserveAspectRatio.cpp rename : content/svg/content/src/SVGPreserveAspectRatio.h => dom/svg/SVGPreserveAspectRatio.h rename : content/svg/content/src/SVGRect.cpp => dom/svg/SVGRect.cpp rename : content/svg/content/src/SVGRect.h => dom/svg/SVGRect.h rename : content/svg/content/src/SVGRectElement.cpp => dom/svg/SVGRectElement.cpp rename : content/svg/content/src/SVGRectElement.h => dom/svg/SVGRectElement.h rename : content/svg/content/src/SVGSVGElement.cpp => dom/svg/SVGSVGElement.cpp rename : content/svg/content/src/SVGSVGElement.h => dom/svg/SVGSVGElement.h rename : content/svg/content/src/SVGScriptElement.cpp => dom/svg/SVGScriptElement.cpp rename : content/svg/content/src/SVGScriptElement.h => dom/svg/SVGScriptElement.h rename : content/svg/content/src/SVGSetElement.cpp => dom/svg/SVGSetElement.cpp rename : content/svg/content/src/SVGSetElement.h => dom/svg/SVGSetElement.h rename : content/svg/content/src/SVGStopElement.cpp => dom/svg/SVGStopElement.cpp rename : content/svg/content/src/SVGStopElement.h => dom/svg/SVGStopElement.h rename : content/svg/content/src/SVGStringList.cpp => dom/svg/SVGStringList.cpp rename : content/svg/content/src/SVGStringList.h => dom/svg/SVGStringList.h rename : content/svg/content/src/SVGStyleElement.cpp => dom/svg/SVGStyleElement.cpp rename : content/svg/content/src/SVGStyleElement.h => dom/svg/SVGStyleElement.h rename : content/svg/content/src/SVGSwitchElement.cpp => dom/svg/SVGSwitchElement.cpp rename : content/svg/content/src/SVGSwitchElement.h => dom/svg/SVGSwitchElement.h rename : content/svg/content/src/SVGSymbolElement.cpp => dom/svg/SVGSymbolElement.cpp rename : content/svg/content/src/SVGSymbolElement.h => dom/svg/SVGSymbolElement.h rename : content/svg/content/src/SVGTSpanElement.cpp => dom/svg/SVGTSpanElement.cpp rename : content/svg/content/src/SVGTSpanElement.h => dom/svg/SVGTSpanElement.h rename : content/svg/content/src/SVGTagList.h => dom/svg/SVGTagList.h rename : content/svg/content/src/SVGTests.cpp => dom/svg/SVGTests.cpp rename : content/svg/content/src/SVGTests.h => dom/svg/SVGTests.h rename : content/svg/content/src/SVGTextContentElement.cpp => dom/svg/SVGTextContentElement.cpp rename : content/svg/content/src/SVGTextContentElement.h => dom/svg/SVGTextContentElement.h rename : content/svg/content/src/SVGTextElement.cpp => dom/svg/SVGTextElement.cpp rename : content/svg/content/src/SVGTextElement.h => dom/svg/SVGTextElement.h rename : content/svg/content/src/SVGTextPathElement.cpp => dom/svg/SVGTextPathElement.cpp rename : content/svg/content/src/SVGTextPathElement.h => dom/svg/SVGTextPathElement.h rename : content/svg/content/src/SVGTextPositioningElement.cpp => dom/svg/SVGTextPositioningElement.cpp rename : content/svg/content/src/SVGTextPositioningElement.h => dom/svg/SVGTextPositioningElement.h rename : content/svg/content/src/SVGTitleElement.cpp => dom/svg/SVGTitleElement.cpp rename : content/svg/content/src/SVGTitleElement.h => dom/svg/SVGTitleElement.h rename : content/svg/content/src/SVGTransform.cpp => dom/svg/SVGTransform.cpp rename : content/svg/content/src/SVGTransform.h => dom/svg/SVGTransform.h rename : content/svg/content/src/SVGTransformList.cpp => dom/svg/SVGTransformList.cpp rename : content/svg/content/src/SVGTransformList.h => dom/svg/SVGTransformList.h rename : content/svg/content/src/SVGTransformListParser.cpp => dom/svg/SVGTransformListParser.cpp rename : content/svg/content/src/SVGTransformListParser.h => dom/svg/SVGTransformListParser.h rename : content/svg/content/src/SVGTransformListSMILType.cpp => dom/svg/SVGTransformListSMILType.cpp rename : content/svg/content/src/SVGTransformListSMILType.h => dom/svg/SVGTransformListSMILType.h rename : content/svg/content/src/SVGTransformableElement.cpp => dom/svg/SVGTransformableElement.cpp rename : content/svg/content/src/SVGTransformableElement.h => dom/svg/SVGTransformableElement.h rename : content/svg/content/src/SVGUseElement.cpp => dom/svg/SVGUseElement.cpp rename : content/svg/content/src/SVGUseElement.h => dom/svg/SVGUseElement.h rename : content/svg/content/src/SVGViewBoxSMILType.cpp => dom/svg/SVGViewBoxSMILType.cpp rename : content/svg/content/src/SVGViewBoxSMILType.h => dom/svg/SVGViewBoxSMILType.h rename : content/svg/content/src/SVGViewElement.cpp => dom/svg/SVGViewElement.cpp rename : content/svg/content/src/SVGViewElement.h => dom/svg/SVGViewElement.h rename : content/svg/content/src/SVGZoomEvent.cpp => dom/svg/SVGZoomEvent.cpp rename : content/svg/content/src/SVGZoomEvent.h => dom/svg/SVGZoomEvent.h rename : content/svg/content/src/crashtests/307322-1.svg => dom/svg/crashtests/307322-1.svg rename : content/svg/content/src/crashtests/327705-1.svg => dom/svg/crashtests/327705-1.svg rename : content/svg/content/src/crashtests/336994-1.html => dom/svg/crashtests/336994-1.html rename : content/svg/content/src/crashtests/344888-1.svg => dom/svg/crashtests/344888-1.svg rename : content/svg/content/src/crashtests/345445-1.svg => dom/svg/crashtests/345445-1.svg rename : content/svg/content/src/crashtests/360836-1.svg => dom/svg/crashtests/360836-1.svg rename : content/svg/content/src/crashtests/367357-1.xhtml => dom/svg/crashtests/367357-1.xhtml rename : content/svg/content/src/crashtests/369051-1.svg => dom/svg/crashtests/369051-1.svg rename : content/svg/content/src/crashtests/369249-1.svg => dom/svg/crashtests/369249-1.svg rename : content/svg/content/src/crashtests/369291-1.svg => dom/svg/crashtests/369291-1.svg rename : content/svg/content/src/crashtests/369291-2.svg => dom/svg/crashtests/369291-2.svg rename : content/svg/content/src/crashtests/369568-1.svg => dom/svg/crashtests/369568-1.svg rename : content/svg/content/src/crashtests/372046-1.svg => dom/svg/crashtests/372046-1.svg rename : content/svg/content/src/crashtests/372046-2.svg => dom/svg/crashtests/372046-2.svg rename : content/svg/content/src/crashtests/374882-1.svg => dom/svg/crashtests/374882-1.svg rename : content/svg/content/src/crashtests/380101-1.svg => dom/svg/crashtests/380101-1.svg rename : content/svg/content/src/crashtests/381777-1.svg => dom/svg/crashtests/381777-1.svg rename : content/svg/content/src/crashtests/383685-1.svg => dom/svg/crashtests/383685-1.svg rename : content/svg/content/src/crashtests/385096.html => dom/svg/crashtests/385096.html rename : content/svg/content/src/crashtests/385554-1.html => dom/svg/crashtests/385554-1.html rename : content/svg/content/src/crashtests/385554-2.xul => dom/svg/crashtests/385554-2.xul rename : content/svg/content/src/crashtests/388712-1.svg => dom/svg/crashtests/388712-1.svg rename : content/svg/content/src/crashtests/395616-1.html => dom/svg/crashtests/395616-1.html rename : content/svg/content/src/crashtests/396618-1.html => dom/svg/crashtests/396618-1.html rename : content/svg/content/src/crashtests/397017-1.html => dom/svg/crashtests/397017-1.html rename : content/svg/content/src/crashtests/397551-1.svg => dom/svg/crashtests/397551-1.svg rename : content/svg/content/src/crashtests/397704-1.svg => dom/svg/crashtests/397704-1.svg rename : content/svg/content/src/crashtests/398926-both-different.svg => dom/svg/crashtests/398926-both-different.svg rename : content/svg/content/src/crashtests/398926-both-same.svg => dom/svg/crashtests/398926-both-same.svg rename : content/svg/content/src/crashtests/398926-fill.svg => dom/svg/crashtests/398926-fill.svg rename : content/svg/content/src/crashtests/398926-stroke.svg => dom/svg/crashtests/398926-stroke.svg rename : content/svg/content/src/crashtests/405639-1.svg => dom/svg/crashtests/405639-1.svg rename : content/svg/content/src/crashtests/406361-1.html => dom/svg/crashtests/406361-1.html rename : content/svg/content/src/crashtests/409811-1.html => dom/svg/crashtests/409811-1.html rename : content/svg/content/src/crashtests/410659-1.svg => dom/svg/crashtests/410659-1.svg rename : content/svg/content/src/crashtests/410659-2.svg => dom/svg/crashtests/410659-2.svg rename : content/svg/content/src/crashtests/410659-3.svg => dom/svg/crashtests/410659-3.svg rename : content/svg/content/src/crashtests/412104-1.svg => dom/svg/crashtests/412104-1.svg rename : content/svg/content/src/crashtests/413174-1.svg => dom/svg/crashtests/413174-1.svg rename : content/svg/content/src/crashtests/414188-1.svg => dom/svg/crashtests/414188-1.svg rename : content/svg/content/src/crashtests/427325-1.svg => dom/svg/crashtests/427325-1.svg rename : content/svg/content/src/crashtests/428228-1.svg => dom/svg/crashtests/428228-1.svg rename : content/svg/content/src/crashtests/428841-1.svg => dom/svg/crashtests/428841-1.svg rename : content/svg/content/src/crashtests/435209-1.svg => dom/svg/crashtests/435209-1.svg rename : content/svg/content/src/crashtests/436418-mpathRoot-1.svg => dom/svg/crashtests/436418-mpathRoot-1.svg rename : content/svg/content/src/crashtests/448244-1.svg => dom/svg/crashtests/448244-1.svg rename : content/svg/content/src/crashtests/466576-1.xhtml => dom/svg/crashtests/466576-1.xhtml rename : content/svg/content/src/crashtests/499879-1.svg => dom/svg/crashtests/499879-1.svg rename : content/svg/content/src/crashtests/535691-1.svg => dom/svg/crashtests/535691-1.svg rename : content/svg/content/src/crashtests/539167-1.svg => dom/svg/crashtests/539167-1.svg rename : content/svg/content/src/crashtests/573316-1.svg => dom/svg/crashtests/573316-1.svg rename : content/svg/content/src/crashtests/579356-1.svg => dom/svg/crashtests/579356-1.svg rename : content/svg/content/src/crashtests/579356-2.svg => dom/svg/crashtests/579356-2.svg rename : content/svg/content/src/crashtests/595608-1.svg => dom/svg/crashtests/595608-1.svg rename : content/svg/content/src/crashtests/601251-1.html => dom/svg/crashtests/601251-1.html rename : content/svg/content/src/crashtests/601406-1.svg => dom/svg/crashtests/601406-1.svg rename : content/svg/content/src/crashtests/603145-1.svg => dom/svg/crashtests/603145-1.svg rename : content/svg/content/src/crashtests/613899-1.svg => dom/svg/crashtests/613899-1.svg rename : content/svg/content/src/crashtests/613899-2.svg => dom/svg/crashtests/613899-2.svg rename : content/svg/content/src/crashtests/719779-1.svg => dom/svg/crashtests/719779-1.svg rename : content/svg/content/src/crashtests/723441-1.html => dom/svg/crashtests/723441-1.html rename : content/svg/content/src/crashtests/723441-resource.svg => dom/svg/crashtests/723441-resource.svg rename : content/svg/content/src/crashtests/751515-1.svg => dom/svg/crashtests/751515-1.svg rename : content/svg/content/src/crashtests/761507-1.svg => dom/svg/crashtests/761507-1.svg rename : content/svg/content/src/crashtests/831561.html => dom/svg/crashtests/831561.html rename : content/svg/content/src/crashtests/837450-1.svg => dom/svg/crashtests/837450-1.svg rename : content/svg/content/src/crashtests/842463-1.html => dom/svg/crashtests/842463-1.html rename : content/svg/content/src/crashtests/847138-1.svg => dom/svg/crashtests/847138-1.svg rename : content/svg/content/src/crashtests/864509.svg => dom/svg/crashtests/864509.svg rename : content/svg/content/src/crashtests/880544-1.svg => dom/svg/crashtests/880544-1.svg rename : content/svg/content/src/crashtests/880544-2.svg => dom/svg/crashtests/880544-2.svg rename : content/svg/content/src/crashtests/880544-3.svg => dom/svg/crashtests/880544-3.svg rename : content/svg/content/src/crashtests/880544-4.svg => dom/svg/crashtests/880544-4.svg rename : content/svg/content/src/crashtests/880544-5.svg => dom/svg/crashtests/880544-5.svg rename : content/svg/content/src/crashtests/898915-1.svg => dom/svg/crashtests/898915-1.svg rename : content/svg/content/src/crashtests/crashtests.list => dom/svg/crashtests/crashtests.list rename : content/svg/content/src/crashtests/zero-size-image.svg => dom/svg/crashtests/zero-size-image.svg rename : content/svg/moz.build => dom/svg/moz.build rename : content/svg/content/src/nsISVGPoint.cpp => dom/svg/nsISVGPoint.cpp rename : content/svg/content/src/nsISVGPoint.h => dom/svg/nsISVGPoint.h rename : content/svg/content/src/nsSVGAngle.cpp => dom/svg/nsSVGAngle.cpp rename : content/svg/content/src/nsSVGAngle.h => dom/svg/nsSVGAngle.h rename : content/svg/content/src/nsSVGAnimatedTransformList.cpp => dom/svg/nsSVGAnimatedTransformList.cpp rename : content/svg/content/src/nsSVGAnimatedTransformList.h => dom/svg/nsSVGAnimatedTransformList.h rename : content/svg/content/src/nsSVGAttrTearoffTable.h => dom/svg/nsSVGAttrTearoffTable.h rename : content/svg/content/src/nsSVGBoolean.cpp => dom/svg/nsSVGBoolean.cpp rename : content/svg/content/src/nsSVGBoolean.h => dom/svg/nsSVGBoolean.h rename : content/svg/content/src/nsSVGClass.cpp => dom/svg/nsSVGClass.cpp rename : content/svg/content/src/nsSVGClass.h => dom/svg/nsSVGClass.h rename : content/svg/content/src/nsSVGDataParser.cpp => dom/svg/nsSVGDataParser.cpp rename : content/svg/content/src/nsSVGDataParser.h => dom/svg/nsSVGDataParser.h rename : content/svg/content/src/nsSVGElement.cpp => dom/svg/nsSVGElement.cpp rename : content/svg/content/src/nsSVGElement.h => dom/svg/nsSVGElement.h rename : content/svg/content/src/nsSVGEnum.cpp => dom/svg/nsSVGEnum.cpp rename : content/svg/content/src/nsSVGEnum.h => dom/svg/nsSVGEnum.h rename : content/svg/content/src/nsSVGFeatures.cpp => dom/svg/nsSVGFeatures.cpp rename : content/svg/content/src/nsSVGFeatures.h => dom/svg/nsSVGFeatures.h rename : content/svg/content/src/nsSVGFeaturesList.h => dom/svg/nsSVGFeaturesList.h rename : content/svg/content/src/nsSVGFilters.cpp => dom/svg/nsSVGFilters.cpp rename : content/svg/content/src/nsSVGFilters.h => dom/svg/nsSVGFilters.h rename : content/svg/content/src/nsSVGInteger.cpp => dom/svg/nsSVGInteger.cpp rename : content/svg/content/src/nsSVGInteger.h => dom/svg/nsSVGInteger.h rename : content/svg/content/src/nsSVGIntegerPair.cpp => dom/svg/nsSVGIntegerPair.cpp rename : content/svg/content/src/nsSVGIntegerPair.h => dom/svg/nsSVGIntegerPair.h rename : content/svg/content/src/nsSVGLength2.cpp => dom/svg/nsSVGLength2.cpp rename : content/svg/content/src/nsSVGLength2.h => dom/svg/nsSVGLength2.h rename : content/svg/content/src/nsSVGNumber2.cpp => dom/svg/nsSVGNumber2.cpp rename : content/svg/content/src/nsSVGNumber2.h => dom/svg/nsSVGNumber2.h rename : content/svg/content/src/nsSVGNumberPair.cpp => dom/svg/nsSVGNumberPair.cpp rename : content/svg/content/src/nsSVGNumberPair.h => dom/svg/nsSVGNumberPair.h rename : content/svg/content/src/nsSVGPathDataParser.cpp => dom/svg/nsSVGPathDataParser.cpp rename : content/svg/content/src/nsSVGPathDataParser.h => dom/svg/nsSVGPathDataParser.h rename : content/svg/content/src/nsSVGPathGeometryElement.cpp => dom/svg/nsSVGPathGeometryElement.cpp rename : content/svg/content/src/nsSVGPathGeometryElement.h => dom/svg/nsSVGPathGeometryElement.h rename : content/svg/content/src/nsSVGPolyElement.cpp => dom/svg/nsSVGPolyElement.cpp rename : content/svg/content/src/nsSVGPolyElement.h => dom/svg/nsSVGPolyElement.h rename : content/svg/content/src/nsSVGString.cpp => dom/svg/nsSVGString.cpp rename : content/svg/content/src/nsSVGString.h => dom/svg/nsSVGString.h rename : content/svg/content/src/nsSVGTransform.cpp => dom/svg/nsSVGTransform.cpp rename : content/svg/content/src/nsSVGTransform.h => dom/svg/nsSVGTransform.h rename : content/svg/content/src/nsSVGViewBox.cpp => dom/svg/nsSVGViewBox.cpp rename : content/svg/content/src/nsSVGViewBox.h => dom/svg/nsSVGViewBox.h rename : content/svg/content/test/MutationEventChecker.js => dom/svg/test/MutationEventChecker.js rename : content/svg/content/test/a_href_destination.svg => dom/svg/test/a_href_destination.svg rename : content/svg/content/test/a_href_helper_01.svg => dom/svg/test/a_href_helper_01.svg rename : content/svg/content/test/a_href_helper_02_03.svg => dom/svg/test/a_href_helper_02_03.svg rename : content/svg/content/test/a_href_helper_04.svg => dom/svg/test/a_href_helper_04.svg rename : content/svg/content/test/animated-svg-image-helper.html => dom/svg/test/animated-svg-image-helper.html rename : content/svg/content/test/animated-svg-image-helper.svg => dom/svg/test/animated-svg-image-helper.svg rename : content/svg/content/test/bbox-helper.svg => dom/svg/test/bbox-helper.svg rename : content/svg/content/test/bounds-helper.svg => dom/svg/test/bounds-helper.svg rename : content/svg/content/test/dataTypes-helper.svg => dom/svg/test/dataTypes-helper.svg rename : content/svg/content/test/fragments-helper.svg => dom/svg/test/fragments-helper.svg rename : content/svg/content/test/getBBox-method-helper.svg => dom/svg/test/getBBox-method-helper.svg rename : content/svg/content/test/getCTM-helper.svg => dom/svg/test/getCTM-helper.svg rename : content/svg/content/test/getSubStringLength-helper.svg => dom/svg/test/getSubStringLength-helper.svg rename : content/svg/content/test/matrixUtils.js => dom/svg/test/matrixUtils.js rename : content/svg/content/test/mochitest.ini => dom/svg/test/mochitest.ini rename : content/svg/content/test/object-delayed-intrinsic-size.sjs => dom/svg/test/object-delayed-intrinsic-size.sjs rename : content/svg/content/test/pointer-events.js => dom/svg/test/pointer-events.js rename : content/svg/content/test/scientific-helper.svg => dom/svg/test/scientific-helper.svg rename : content/svg/content/test/selectSubString-helper.svg => dom/svg/test/selectSubString-helper.svg rename : content/svg/content/test/switch-helper.svg => dom/svg/test/switch-helper.svg rename : content/svg/content/test/test_SVGLengthList-2.xhtml => dom/svg/test/test_SVGLengthList-2.xhtml rename : content/svg/content/test/test_SVGLengthList.xhtml => dom/svg/test/test_SVGLengthList.xhtml rename : content/svg/content/test/test_SVGMatrix.xhtml => dom/svg/test/test_SVGMatrix.xhtml rename : content/svg/content/test/test_SVGNumberList.xhtml => dom/svg/test/test_SVGNumberList.xhtml rename : content/svg/content/test/test_SVGPathSegList.xhtml => dom/svg/test/test_SVGPathSegList.xhtml rename : content/svg/content/test/test_SVGPointList.xhtml => dom/svg/test/test_SVGPointList.xhtml rename : content/svg/content/test/test_SVGStringList.xhtml => dom/svg/test/test_SVGStringList.xhtml rename : content/svg/content/test/test_SVGStyleElement.xhtml => dom/svg/test/test_SVGStyleElement.xhtml rename : content/svg/content/test/test_SVGTransformList.xhtml => dom/svg/test/test_SVGTransformList.xhtml rename : content/svg/content/test/test_SVGTransformListAddition.xhtml => dom/svg/test/test_SVGTransformListAddition.xhtml rename : content/svg/content/test/test_SVGUnitTypes.html => dom/svg/test/test_SVGUnitTypes.html rename : content/svg/content/test/test_SVG_namespace_ids.html => dom/svg/test/test_SVG_namespace_ids.html rename : content/svg/content/test/test_SVGxxxList.xhtml => dom/svg/test/test_SVGxxxList.xhtml rename : content/svg/content/test/test_SVGxxxListIndexing.xhtml => dom/svg/test/test_SVGxxxListIndexing.xhtml rename : content/svg/content/test/test_a_href_01.xhtml => dom/svg/test/test_a_href_01.xhtml rename : content/svg/content/test/test_a_href_02.xhtml => dom/svg/test/test_a_href_02.xhtml rename : content/svg/content/test/test_animLengthObjectIdentity.xhtml => dom/svg/test/test_animLengthObjectIdentity.xhtml rename : content/svg/content/test/test_animLengthReadonly.xhtml => dom/svg/test/test_animLengthReadonly.xhtml rename : content/svg/content/test/test_animLengthUnits.xhtml => dom/svg/test/test_animLengthUnits.xhtml rename : content/svg/content/test/test_bbox-with-invalid-viewBox.xhtml => dom/svg/test/test_bbox-with-invalid-viewBox.xhtml rename : content/svg/content/test/test_bbox.xhtml => dom/svg/test/test_bbox.xhtml rename : content/svg/content/test/test_bounds.html => dom/svg/test/test_bounds.html rename : content/svg/content/test/test_bug872812.html => dom/svg/test/test_bug872812.html rename : content/svg/content/test/test_dataTypes.html => dom/svg/test/test_dataTypes.html rename : content/svg/content/test/test_dataTypesModEvents.html => dom/svg/test/test_dataTypesModEvents.html rename : content/svg/content/test/test_fragments.html => dom/svg/test/test_fragments.html rename : content/svg/content/test/test_getBBox-method.html => dom/svg/test/test_getBBox-method.html rename : content/svg/content/test/test_getCTM.html => dom/svg/test/test_getCTM.html rename : content/svg/content/test/test_getElementById.xhtml => dom/svg/test/test_getElementById.xhtml rename : content/svg/content/test/test_getSubStringLength.xhtml => dom/svg/test/test_getSubStringLength.xhtml rename : content/svg/content/test/test_hasFeature.xhtml => dom/svg/test/test_hasFeature.xhtml rename : content/svg/content/test/test_lang.xhtml => dom/svg/test/test_lang.xhtml rename : content/svg/content/test/test_length.xhtml => dom/svg/test/test_length.xhtml rename : content/svg/content/test/test_lengthParsing.html => dom/svg/test/test_lengthParsing.html rename : content/svg/content/test/test_non-scaling-stroke.html => dom/svg/test/test_non-scaling-stroke.html rename : content/svg/content/test/test_nonAnimStrings.xhtml => dom/svg/test/test_nonAnimStrings.xhtml rename : content/svg/content/test/test_object-delayed-intrinsic-size.html => dom/svg/test/test_object-delayed-intrinsic-size.html rename : content/svg/content/test/test_onerror.xhtml => dom/svg/test/test_onerror.xhtml rename : content/svg/content/test/test_pathAnimInterpolation.xhtml => dom/svg/test/test_pathAnimInterpolation.xhtml rename : content/svg/content/test/test_pathLength.html => dom/svg/test/test_pathLength.html rename : content/svg/content/test/test_pathSeg.xhtml => dom/svg/test/test_pathSeg.xhtml rename : content/svg/content/test/test_pointAtLength.xhtml => dom/svg/test/test_pointAtLength.xhtml rename : content/svg/content/test/test_pointer-events-1a.xhtml => dom/svg/test/test_pointer-events-1a.xhtml rename : content/svg/content/test/test_pointer-events-1b.xhtml => dom/svg/test/test_pointer-events-1b.xhtml rename : content/svg/content/test/test_pointer-events-2.xhtml => dom/svg/test/test_pointer-events-2.xhtml rename : content/svg/content/test/test_pointer-events-3.xhtml => dom/svg/test/test_pointer-events-3.xhtml rename : content/svg/content/test/test_pointer-events-4.xhtml => dom/svg/test/test_pointer-events-4.xhtml rename : content/svg/content/test/test_pointer-events-5.xhtml => dom/svg/test/test_pointer-events-5.xhtml rename : content/svg/content/test/test_pointer-events-6.xhtml => dom/svg/test/test_pointer-events-6.xhtml rename : content/svg/content/test/test_scientific.html => dom/svg/test/test_scientific.html rename : content/svg/content/test/test_selectSubString.xhtml => dom/svg/test/test_selectSubString.xhtml rename : content/svg/content/test/test_stroke-linecap-hit-testing.xhtml => dom/svg/test/test_stroke-linecap-hit-testing.xhtml rename : content/svg/content/test/test_switch.xhtml => dom/svg/test/test_switch.xhtml rename : content/svg/content/test/test_text.html => dom/svg/test/test_text.html rename : content/svg/content/test/test_text_2.html => dom/svg/test/test_text_2.html rename : content/svg/content/test/test_text_dirty.html => dom/svg/test/test_text_dirty.html rename : content/svg/content/test/test_text_lengthAdjust.html => dom/svg/test/test_text_lengthAdjust.html rename : content/svg/content/test/test_text_scaled.html => dom/svg/test/test_text_scaled.html rename : content/svg/content/test/test_text_selection.html => dom/svg/test/test_text_selection.html rename : content/svg/content/test/test_text_update.html => dom/svg/test/test_text_update.html rename : content/svg/content/test/test_transform.xhtml => dom/svg/test/test_transform.xhtml rename : content/svg/content/test/test_transformParsing.html => dom/svg/test/test_transformParsing.html rename : content/svg/content/test/test_valueAsString.xhtml => dom/svg/test/test_valueAsString.xhtml rename : content/svg/content/test/test_valueLeaks.xhtml => dom/svg/test/test_valueLeaks.xhtml rename : content/svg/content/test/test_viewport.html => dom/svg/test/test_viewport.html rename : content/svg/content/test/test_zoom.xhtml => dom/svg/test/test_zoom.xhtml rename : content/svg/content/test/text-helper-scaled.svg => dom/svg/test/text-helper-scaled.svg rename : content/svg/content/test/text-helper-selection.svg => dom/svg/test/text-helper-selection.svg rename : content/svg/content/test/text-helper.svg => dom/svg/test/text-helper.svg rename : content/svg/content/test/viewport-helper.svg => dom/svg/test/viewport-helper.svg rename : content/svg/content/test/zoom-helper.svg => dom/svg/test/zoom-helper.svg
1252 lines
36 KiB
C++
1252 lines
36 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#include <stdint.h>
|
|
#include "mozilla/ArrayUtils.h"
|
|
#include "mozilla/ContentEvents.h"
|
|
#include "mozilla/EventDispatcher.h"
|
|
#include "mozilla/Likely.h"
|
|
|
|
#include "nsGkAtoms.h"
|
|
#include "nsLayoutUtils.h"
|
|
#include "nsLayoutStylesheetCache.h"
|
|
#include "DOMSVGNumber.h"
|
|
#include "DOMSVGLength.h"
|
|
#include "nsSVGAngle.h"
|
|
#include "nsCOMPtr.h"
|
|
#include "nsIPresShell.h"
|
|
#include "nsContentUtils.h"
|
|
#include "nsIDocument.h"
|
|
#include "mozilla/dom/SVGMatrix.h"
|
|
#include "DOMSVGPoint.h"
|
|
#include "nsIFrame.h"
|
|
#include "nsFrameSelection.h"
|
|
#include "nsISVGSVGFrame.h" //XXX
|
|
#include "mozilla/dom/SVGRect.h"
|
|
#include "nsError.h"
|
|
#include "nsISVGChildFrame.h"
|
|
#include "mozilla/dom/SVGSVGElement.h"
|
|
#include "mozilla/dom/SVGSVGElementBinding.h"
|
|
#include "nsSVGUtils.h"
|
|
#include "mozilla/dom/SVGViewElement.h"
|
|
#include "nsStyleUtil.h"
|
|
#include "SVGContentUtils.h"
|
|
|
|
#include "nsSMILTimeContainer.h"
|
|
#include "nsSMILAnimationController.h"
|
|
#include "nsSMILTypes.h"
|
|
#include "SVGAngle.h"
|
|
#include <algorithm>
|
|
#include "prtime.h"
|
|
|
|
NS_IMPL_NS_NEW_NAMESPACED_SVG_ELEMENT_CHECK_PARSER(SVG)
|
|
|
|
using namespace mozilla::gfx;
|
|
|
|
namespace mozilla {
|
|
namespace dom {
|
|
|
|
class SVGAnimatedLength;
|
|
|
|
JSObject*
|
|
SVGSVGElement::WrapNode(JSContext *aCx)
|
|
{
|
|
return SVGSVGElementBinding::Wrap(aCx, this);
|
|
}
|
|
|
|
NS_IMPL_CYCLE_COLLECTION_INHERITED(DOMSVGTranslatePoint, nsISVGPoint,
|
|
mElement)
|
|
|
|
NS_IMPL_ADDREF_INHERITED(DOMSVGTranslatePoint, nsISVGPoint)
|
|
NS_IMPL_RELEASE_INHERITED(DOMSVGTranslatePoint, nsISVGPoint)
|
|
|
|
NS_INTERFACE_MAP_BEGIN_CYCLE_COLLECTION(DOMSVGTranslatePoint)
|
|
NS_WRAPPERCACHE_INTERFACE_MAP_ENTRY
|
|
// We have to qualify nsISVGPoint because NS_GET_IID looks for a class in the
|
|
// global namespace
|
|
NS_INTERFACE_MAP_ENTRY(mozilla::nsISVGPoint)
|
|
NS_INTERFACE_MAP_ENTRY(nsISupports)
|
|
NS_INTERFACE_MAP_END
|
|
|
|
SVGSVGElement::~SVGSVGElement()
|
|
{
|
|
}
|
|
|
|
DOMSVGPoint*
|
|
DOMSVGTranslatePoint::Copy()
|
|
{
|
|
return new DOMSVGPoint(mPt.GetX(), mPt.GetY());
|
|
}
|
|
|
|
nsISupports*
|
|
DOMSVGTranslatePoint::GetParentObject()
|
|
{
|
|
return static_cast<nsIDOMSVGElement*>(mElement);
|
|
}
|
|
|
|
void
|
|
DOMSVGTranslatePoint::SetX(float aValue, ErrorResult& rv)
|
|
{
|
|
mElement->SetCurrentTranslate(aValue, mPt.GetY());
|
|
}
|
|
|
|
void
|
|
DOMSVGTranslatePoint::SetY(float aValue, ErrorResult& rv)
|
|
{
|
|
mElement->SetCurrentTranslate(mPt.GetX(), aValue);
|
|
}
|
|
|
|
already_AddRefed<nsISVGPoint>
|
|
DOMSVGTranslatePoint::MatrixTransform(SVGMatrix& matrix)
|
|
{
|
|
float a = matrix.A(), b = matrix.B(), c = matrix.C();
|
|
float d = matrix.D(), e = matrix.E(), f = matrix.F();
|
|
float x = mPt.GetX();
|
|
float y = mPt.GetY();
|
|
|
|
nsCOMPtr<nsISVGPoint> point = new DOMSVGPoint(a*x + c*y + e, b*x + d*y + f);
|
|
return point.forget();
|
|
}
|
|
|
|
nsSVGElement::LengthInfo SVGSVGElement::sLengthInfo[4] =
|
|
{
|
|
{ &nsGkAtoms::x, 0, nsIDOMSVGLength::SVG_LENGTHTYPE_NUMBER, SVGContentUtils::X },
|
|
{ &nsGkAtoms::y, 0, nsIDOMSVGLength::SVG_LENGTHTYPE_NUMBER, SVGContentUtils::Y },
|
|
{ &nsGkAtoms::width, 100, nsIDOMSVGLength::SVG_LENGTHTYPE_PERCENTAGE, SVGContentUtils::X },
|
|
{ &nsGkAtoms::height, 100, nsIDOMSVGLength::SVG_LENGTHTYPE_PERCENTAGE, SVGContentUtils::Y },
|
|
};
|
|
|
|
nsSVGEnumMapping SVGSVGElement::sZoomAndPanMap[] = {
|
|
{&nsGkAtoms::disable, SVG_ZOOMANDPAN_DISABLE},
|
|
{&nsGkAtoms::magnify, SVG_ZOOMANDPAN_MAGNIFY},
|
|
{nullptr, 0}
|
|
};
|
|
|
|
nsSVGElement::EnumInfo SVGSVGElement::sEnumInfo[1] =
|
|
{
|
|
{ &nsGkAtoms::zoomAndPan,
|
|
sZoomAndPanMap,
|
|
SVG_ZOOMANDPAN_MAGNIFY
|
|
}
|
|
};
|
|
|
|
//----------------------------------------------------------------------
|
|
// nsISupports methods
|
|
|
|
NS_IMPL_CYCLE_COLLECTION_CLASS(SVGSVGElement)
|
|
|
|
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN_INHERITED(SVGSVGElement,
|
|
SVGSVGElementBase)
|
|
if (tmp->mTimedDocumentRoot) {
|
|
tmp->mTimedDocumentRoot->Unlink();
|
|
}
|
|
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN_INHERITED(SVGSVGElement,
|
|
SVGSVGElementBase)
|
|
if (tmp->mTimedDocumentRoot) {
|
|
tmp->mTimedDocumentRoot->Traverse(&cb);
|
|
}
|
|
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
|
|
|
|
NS_IMPL_ADDREF_INHERITED(SVGSVGElement,SVGSVGElementBase)
|
|
NS_IMPL_RELEASE_INHERITED(SVGSVGElement,SVGSVGElementBase)
|
|
|
|
NS_INTERFACE_TABLE_HEAD_CYCLE_COLLECTION_INHERITED(SVGSVGElement)
|
|
NS_INTERFACE_TABLE_INHERITED(SVGSVGElement, nsIDOMNode, nsIDOMElement,
|
|
nsIDOMSVGElement)
|
|
NS_INTERFACE_TABLE_TAIL_INHERITING(SVGSVGElementBase)
|
|
|
|
//----------------------------------------------------------------------
|
|
// Implementation
|
|
|
|
SVGSVGElement::SVGSVGElement(already_AddRefed<mozilla::dom::NodeInfo>& aNodeInfo,
|
|
FromParser aFromParser)
|
|
: SVGSVGElementBase(aNodeInfo),
|
|
mViewportWidth(0),
|
|
mViewportHeight(0),
|
|
mCurrentTranslate(0.0f, 0.0f),
|
|
mCurrentScale(1.0f),
|
|
mPreviousTranslate(0.0f, 0.0f),
|
|
mPreviousScale(1.0f),
|
|
mStartAnimationOnBindToTree(aFromParser == NOT_FROM_PARSER ||
|
|
aFromParser == FROM_PARSER_FRAGMENT ||
|
|
aFromParser == FROM_PARSER_XSLT),
|
|
mImageNeedsTransformInvalidation(false),
|
|
mIsPaintingSVGImageElement(false),
|
|
mHasChildrenOnlyTransform(false),
|
|
mUseCurrentView(false)
|
|
{
|
|
}
|
|
|
|
//----------------------------------------------------------------------
|
|
// nsIDOMNode methods
|
|
|
|
// From NS_IMPL_ELEMENT_CLONE_WITH_INIT(SVGSVGElement)
|
|
nsresult
|
|
SVGSVGElement::Clone(mozilla::dom::NodeInfo *aNodeInfo, nsINode **aResult) const
|
|
{
|
|
*aResult = nullptr;
|
|
already_AddRefed<mozilla::dom::NodeInfo> ni = nsRefPtr<mozilla::dom::NodeInfo>(aNodeInfo).forget();
|
|
SVGSVGElement *it = new SVGSVGElement(ni, NOT_FROM_PARSER);
|
|
|
|
nsCOMPtr<nsINode> kungFuDeathGrip = it;
|
|
nsresult rv1 = it->Init();
|
|
nsresult rv2 = const_cast<SVGSVGElement*>(this)->CopyInnerTo(it);
|
|
if (NS_SUCCEEDED(rv1) && NS_SUCCEEDED(rv2)) {
|
|
kungFuDeathGrip.swap(*aResult);
|
|
}
|
|
|
|
return NS_FAILED(rv1) ? rv1 : rv2;
|
|
}
|
|
|
|
|
|
//----------------------------------------------------------------------
|
|
// nsIDOMSVGSVGElement methods:
|
|
|
|
already_AddRefed<SVGAnimatedLength>
|
|
SVGSVGElement::X()
|
|
{
|
|
return mLengthAttributes[ATTR_X].ToDOMAnimatedLength(this);
|
|
}
|
|
|
|
already_AddRefed<SVGAnimatedLength>
|
|
SVGSVGElement::Y()
|
|
{
|
|
return mLengthAttributes[ATTR_Y].ToDOMAnimatedLength(this);
|
|
}
|
|
|
|
already_AddRefed<SVGAnimatedLength>
|
|
SVGSVGElement::Width()
|
|
{
|
|
return mLengthAttributes[ATTR_WIDTH].ToDOMAnimatedLength(this);
|
|
}
|
|
|
|
already_AddRefed<SVGAnimatedLength>
|
|
SVGSVGElement::Height()
|
|
{
|
|
return mLengthAttributes[ATTR_HEIGHT].ToDOMAnimatedLength(this);
|
|
}
|
|
|
|
float
|
|
SVGSVGElement::PixelUnitToMillimeterX()
|
|
{
|
|
return MM_PER_INCH_FLOAT / 96;
|
|
}
|
|
|
|
float
|
|
SVGSVGElement::PixelUnitToMillimeterY()
|
|
{
|
|
return PixelUnitToMillimeterX();
|
|
}
|
|
|
|
float
|
|
SVGSVGElement::ScreenPixelToMillimeterX()
|
|
{
|
|
return MM_PER_INCH_FLOAT / 96;
|
|
}
|
|
|
|
float
|
|
SVGSVGElement::ScreenPixelToMillimeterY()
|
|
{
|
|
return ScreenPixelToMillimeterX();
|
|
}
|
|
|
|
bool
|
|
SVGSVGElement::UseCurrentView()
|
|
{
|
|
return mUseCurrentView;
|
|
}
|
|
|
|
float
|
|
SVGSVGElement::CurrentScale()
|
|
{
|
|
return mCurrentScale;
|
|
}
|
|
|
|
#define CURRENT_SCALE_MAX 16.0f
|
|
#define CURRENT_SCALE_MIN 0.0625f
|
|
|
|
void
|
|
SVGSVGElement::SetCurrentScale(float aCurrentScale)
|
|
{
|
|
SetCurrentScaleTranslate(aCurrentScale,
|
|
mCurrentTranslate.GetX(), mCurrentTranslate.GetY());
|
|
}
|
|
|
|
already_AddRefed<nsISVGPoint>
|
|
SVGSVGElement::CurrentTranslate()
|
|
{
|
|
nsCOMPtr<nsISVGPoint> point = new DOMSVGTranslatePoint(&mCurrentTranslate, this);
|
|
return point.forget();
|
|
}
|
|
|
|
uint32_t
|
|
SVGSVGElement::SuspendRedraw(uint32_t max_wait_milliseconds)
|
|
{
|
|
// suspendRedraw is a no-op in Mozilla, so it doesn't matter what
|
|
// we return
|
|
return 1;
|
|
}
|
|
|
|
/* void unsuspendRedraw (in unsigned long suspend_handle_id); */
|
|
void
|
|
SVGSVGElement::UnsuspendRedraw(uint32_t suspend_handle_id)
|
|
{
|
|
// no-op
|
|
}
|
|
|
|
/* void unsuspendRedrawAll (); */
|
|
void
|
|
SVGSVGElement::UnsuspendRedrawAll()
|
|
{
|
|
// no-op
|
|
}
|
|
|
|
void
|
|
SVGSVGElement::ForceRedraw(ErrorResult& rv)
|
|
{
|
|
nsIDocument* doc = GetComposedDoc();
|
|
if (!doc) {
|
|
rv.Throw(NS_ERROR_FAILURE);
|
|
return;
|
|
}
|
|
|
|
doc->FlushPendingNotifications(Flush_Display);
|
|
}
|
|
|
|
void
|
|
SVGSVGElement::PauseAnimations()
|
|
{
|
|
if (mTimedDocumentRoot) {
|
|
mTimedDocumentRoot->Pause(nsSMILTimeContainer::PAUSE_SCRIPT);
|
|
}
|
|
// else we're not the outermost <svg> or not bound to a tree, so silently fail
|
|
}
|
|
|
|
void
|
|
SVGSVGElement::UnpauseAnimations()
|
|
{
|
|
if (mTimedDocumentRoot) {
|
|
mTimedDocumentRoot->Resume(nsSMILTimeContainer::PAUSE_SCRIPT);
|
|
}
|
|
// else we're not the outermost <svg> or not bound to a tree, so silently fail
|
|
}
|
|
|
|
bool
|
|
SVGSVGElement::AnimationsPaused()
|
|
{
|
|
nsSMILTimeContainer* root = GetTimedDocumentRoot();
|
|
return root && root->IsPausedByType(nsSMILTimeContainer::PAUSE_SCRIPT);
|
|
}
|
|
|
|
float
|
|
SVGSVGElement::GetCurrentTime()
|
|
{
|
|
nsSMILTimeContainer* root = GetTimedDocumentRoot();
|
|
if (root) {
|
|
double fCurrentTimeMs = double(root->GetCurrentTime());
|
|
return (float)(fCurrentTimeMs / PR_MSEC_PER_SEC);
|
|
} else {
|
|
return 0.f;
|
|
}
|
|
}
|
|
|
|
void
|
|
SVGSVGElement::SetCurrentTime(float seconds)
|
|
{
|
|
if (mTimedDocumentRoot) {
|
|
// Make sure the timegraph is up-to-date
|
|
FlushAnimations();
|
|
double fMilliseconds = double(seconds) * PR_MSEC_PER_SEC;
|
|
// Round to nearest whole number before converting, to avoid precision
|
|
// errors
|
|
nsSMILTime lMilliseconds = int64_t(NS_round(fMilliseconds));
|
|
mTimedDocumentRoot->SetCurrentTime(lMilliseconds);
|
|
AnimationNeedsResample();
|
|
// Trigger synchronous sample now, to:
|
|
// - Make sure we get an up-to-date paint after this method
|
|
// - re-enable event firing (it got disabled during seeking, and it
|
|
// doesn't get re-enabled until the first sample after the seek -- so
|
|
// let's make that happen now.)
|
|
FlushAnimations();
|
|
}
|
|
// else we're not the outermost <svg> or not bound to a tree, so silently fail
|
|
}
|
|
|
|
void
|
|
SVGSVGElement::DeselectAll()
|
|
{
|
|
nsIFrame* frame = GetPrimaryFrame();
|
|
if (frame) {
|
|
nsRefPtr<nsFrameSelection> frameSelection = frame->GetFrameSelection();
|
|
frameSelection->ClearNormalSelection();
|
|
}
|
|
}
|
|
|
|
already_AddRefed<DOMSVGNumber>
|
|
SVGSVGElement::CreateSVGNumber()
|
|
{
|
|
nsRefPtr<DOMSVGNumber> number = new DOMSVGNumber(ToSupports(this));
|
|
return number.forget();
|
|
}
|
|
|
|
already_AddRefed<DOMSVGLength>
|
|
SVGSVGElement::CreateSVGLength()
|
|
{
|
|
nsCOMPtr<DOMSVGLength> length = new DOMSVGLength();
|
|
return length.forget();
|
|
}
|
|
|
|
already_AddRefed<SVGAngle>
|
|
SVGSVGElement::CreateSVGAngle()
|
|
{
|
|
nsSVGAngle* angle = new nsSVGAngle();
|
|
angle->Init();
|
|
nsRefPtr<SVGAngle> svgangle = new SVGAngle(angle, this, SVGAngle::CreatedValue);
|
|
return svgangle.forget();
|
|
}
|
|
|
|
already_AddRefed<nsISVGPoint>
|
|
SVGSVGElement::CreateSVGPoint()
|
|
{
|
|
nsCOMPtr<nsISVGPoint> point = new DOMSVGPoint(0, 0);
|
|
return point.forget();
|
|
}
|
|
|
|
already_AddRefed<SVGMatrix>
|
|
SVGSVGElement::CreateSVGMatrix()
|
|
{
|
|
nsRefPtr<SVGMatrix> matrix = new SVGMatrix();
|
|
return matrix.forget();
|
|
}
|
|
|
|
already_AddRefed<SVGIRect>
|
|
SVGSVGElement::CreateSVGRect()
|
|
{
|
|
return NS_NewSVGRect(this);
|
|
}
|
|
|
|
already_AddRefed<SVGTransform>
|
|
SVGSVGElement::CreateSVGTransform()
|
|
{
|
|
nsRefPtr<SVGTransform> transform = new SVGTransform();
|
|
return transform.forget();
|
|
}
|
|
|
|
already_AddRefed<SVGTransform>
|
|
SVGSVGElement::CreateSVGTransformFromMatrix(SVGMatrix& matrix)
|
|
{
|
|
nsRefPtr<SVGTransform> transform = new SVGTransform(matrix.GetMatrix());
|
|
return transform.forget();
|
|
}
|
|
|
|
//----------------------------------------------------------------------
|
|
|
|
already_AddRefed<SVGAnimatedRect>
|
|
SVGSVGElement::ViewBox()
|
|
{
|
|
return mViewBox.ToSVGAnimatedRect(this);
|
|
}
|
|
|
|
already_AddRefed<DOMSVGAnimatedPreserveAspectRatio>
|
|
SVGSVGElement::PreserveAspectRatio()
|
|
{
|
|
nsRefPtr<DOMSVGAnimatedPreserveAspectRatio> ratio;
|
|
mPreserveAspectRatio.ToDOMAnimatedPreserveAspectRatio(getter_AddRefs(ratio), this);
|
|
return ratio.forget();
|
|
}
|
|
|
|
uint16_t
|
|
SVGSVGElement::ZoomAndPan()
|
|
{
|
|
SVGViewElement* viewElement = GetCurrentViewElement();
|
|
if (viewElement && viewElement->mEnumAttributes[
|
|
SVGViewElement::ZOOMANDPAN].IsExplicitlySet()) {
|
|
return viewElement->mEnumAttributes[
|
|
SVGViewElement::ZOOMANDPAN].GetAnimValue();
|
|
}
|
|
return mEnumAttributes[ZOOMANDPAN].GetAnimValue();
|
|
}
|
|
|
|
void
|
|
SVGSVGElement::SetZoomAndPan(uint16_t aZoomAndPan, ErrorResult& rv)
|
|
{
|
|
if (aZoomAndPan == SVG_ZOOMANDPAN_DISABLE ||
|
|
aZoomAndPan == SVG_ZOOMANDPAN_MAGNIFY) {
|
|
mEnumAttributes[ZOOMANDPAN].SetBaseValue(aZoomAndPan, this);
|
|
return;
|
|
}
|
|
|
|
rv.Throw(NS_ERROR_RANGE_ERR);
|
|
}
|
|
|
|
//----------------------------------------------------------------------
|
|
// helper methods for implementing SVGZoomEvent:
|
|
|
|
void
|
|
SVGSVGElement::SetCurrentScaleTranslate(float s, float x, float y)
|
|
{
|
|
if (s == mCurrentScale &&
|
|
x == mCurrentTranslate.GetX() && y == mCurrentTranslate.GetY()) {
|
|
return;
|
|
}
|
|
|
|
// Prevent bizarre behaviour and maxing out of CPU and memory by clamping
|
|
if (s < CURRENT_SCALE_MIN)
|
|
s = CURRENT_SCALE_MIN;
|
|
else if (s > CURRENT_SCALE_MAX)
|
|
s = CURRENT_SCALE_MAX;
|
|
|
|
// IMPORTANT: If either mCurrentTranslate *or* mCurrentScale is changed then
|
|
// mPreviousTranslate_x, mPreviousTranslate_y *and* mPreviousScale must all
|
|
// be updated otherwise SVGZoomEvents will end up with invalid data. I.e. an
|
|
// SVGZoomEvent's properties previousScale and previousTranslate must contain
|
|
// the state of currentScale and currentTranslate immediately before the
|
|
// change that caused the event's dispatch, which is *not* necessarily the
|
|
// same thing as the values of currentScale and currentTranslate prior to
|
|
// their own last change.
|
|
mPreviousScale = mCurrentScale;
|
|
mPreviousTranslate = mCurrentTranslate;
|
|
|
|
mCurrentScale = s;
|
|
mCurrentTranslate = SVGPoint(x, y);
|
|
|
|
// now dispatch the appropriate event if we are the root element
|
|
nsIDocument* doc = GetUncomposedDoc();
|
|
if (doc) {
|
|
nsCOMPtr<nsIPresShell> presShell = doc->GetShell();
|
|
if (presShell && IsRoot()) {
|
|
nsEventStatus status = nsEventStatus_eIgnore;
|
|
if (mPreviousScale != mCurrentScale) {
|
|
InternalSVGZoomEvent svgZoomEvent(true, NS_SVG_ZOOM);
|
|
presShell->HandleDOMEventWithTarget(this, &svgZoomEvent, &status);
|
|
} else {
|
|
WidgetEvent svgScrollEvent(true, NS_SVG_SCROLL);
|
|
presShell->HandleDOMEventWithTarget(this, &svgScrollEvent, &status);
|
|
}
|
|
InvalidateTransformNotifyFrame();
|
|
}
|
|
}
|
|
}
|
|
|
|
void
|
|
SVGSVGElement::SetCurrentTranslate(float x, float y)
|
|
{
|
|
SetCurrentScaleTranslate(mCurrentScale, x, y);
|
|
}
|
|
|
|
nsSMILTimeContainer*
|
|
SVGSVGElement::GetTimedDocumentRoot()
|
|
{
|
|
if (mTimedDocumentRoot) {
|
|
return mTimedDocumentRoot;
|
|
}
|
|
|
|
// We must not be the outermost <svg> element, try to find it
|
|
SVGSVGElement *outerSVGElement =
|
|
SVGContentUtils::GetOuterSVGElement(this);
|
|
|
|
if (outerSVGElement) {
|
|
return outerSVGElement->GetTimedDocumentRoot();
|
|
}
|
|
// invalid structure
|
|
return nullptr;
|
|
}
|
|
|
|
//----------------------------------------------------------------------
|
|
// nsIContent methods
|
|
|
|
NS_IMETHODIMP_(bool)
|
|
SVGSVGElement::IsAttributeMapped(const nsIAtom* name) const
|
|
{
|
|
// We want to map the 'width' and 'height' attributes into style for
|
|
// outer-<svg>, except when the attributes aren't set (since their default
|
|
// values of '100%' can cause unexpected and undesirable behaviour for SVG
|
|
// inline in HTML). We rely on nsSVGElement::UpdateContentStyleRule() to
|
|
// prevent mapping of the default values into style (it only maps attributes
|
|
// that are set). We also rely on a check in nsSVGElement::
|
|
// UpdateContentStyleRule() to prevent us mapping the attributes when they're
|
|
// given a <length> value that is not currently recognized by the SVG
|
|
// specification.
|
|
|
|
if (!IsInner() && (name == nsGkAtoms::width || name == nsGkAtoms::height)) {
|
|
return true;
|
|
}
|
|
|
|
static const MappedAttributeEntry* const map[] = {
|
|
sColorMap,
|
|
sFEFloodMap,
|
|
sFillStrokeMap,
|
|
sFiltersMap,
|
|
sFontSpecificationMap,
|
|
sGradientStopMap,
|
|
sGraphicsMap,
|
|
sLightingEffectsMap,
|
|
sMarkersMap,
|
|
sTextContentElementsMap,
|
|
sViewportsMap
|
|
};
|
|
|
|
return FindAttributeDependence(name, map) ||
|
|
SVGSVGElementBase::IsAttributeMapped(name);
|
|
}
|
|
|
|
//----------------------------------------------------------------------
|
|
// nsIContent methods:
|
|
|
|
nsresult
|
|
SVGSVGElement::PreHandleEvent(EventChainPreVisitor& aVisitor)
|
|
{
|
|
if (aVisitor.mEvent->message == NS_SVG_LOAD) {
|
|
if (mTimedDocumentRoot) {
|
|
mTimedDocumentRoot->Begin();
|
|
// Set 'resample needed' flag, so that if any script calls a DOM method
|
|
// that requires up-to-date animations before our first sample callback,
|
|
// we'll force a synchronous sample.
|
|
AnimationNeedsResample();
|
|
}
|
|
}
|
|
return SVGSVGElementBase::PreHandleEvent(aVisitor);
|
|
}
|
|
|
|
bool
|
|
SVGSVGElement::IsEventAttributeName(nsIAtom* aName)
|
|
{
|
|
/* The events in EventNameType_SVGSVG are for events that are only
|
|
applicable to outermost 'svg' elements. We don't check if we're an outer
|
|
'svg' element in case we're not inserted into the document yet, but since
|
|
the target of the events in question will always be the outermost 'svg'
|
|
element, this shouldn't cause any real problems.
|
|
*/
|
|
return nsContentUtils::IsEventAttributeName(aName,
|
|
(EventNameType_SVGGraphic | EventNameType_SVGSVG));
|
|
}
|
|
|
|
//----------------------------------------------------------------------
|
|
// nsSVGElement overrides
|
|
|
|
// Helper for GetViewBoxTransform on root <svg> node
|
|
// * aLength: internal value for our <svg> width or height attribute.
|
|
// * aViewportLength: length of the corresponding dimension of the viewport.
|
|
// * aSelf: the outermost <svg> node itself.
|
|
// NOTE: aSelf is not an ancestor viewport element, so it can't be used to
|
|
// resolve percentage lengths. (It can only be used to resolve
|
|
// 'em'/'ex'-valued units).
|
|
inline float
|
|
ComputeSynthesizedViewBoxDimension(const nsSVGLength2& aLength,
|
|
float aViewportLength,
|
|
const SVGSVGElement* aSelf)
|
|
{
|
|
if (aLength.IsPercentage()) {
|
|
return aViewportLength * aLength.GetAnimValInSpecifiedUnits() / 100.0f;
|
|
}
|
|
|
|
return aLength.GetAnimValue(const_cast<SVGSVGElement*>(aSelf));
|
|
}
|
|
|
|
//----------------------------------------------------------------------
|
|
// public helpers:
|
|
|
|
gfx::Matrix
|
|
SVGSVGElement::GetViewBoxTransform() const
|
|
{
|
|
float viewportWidth, viewportHeight;
|
|
if (IsInner()) {
|
|
SVGSVGElement *ctx = GetCtx();
|
|
viewportWidth = mLengthAttributes[ATTR_WIDTH].GetAnimValue(ctx);
|
|
viewportHeight = mLengthAttributes[ATTR_HEIGHT].GetAnimValue(ctx);
|
|
} else {
|
|
viewportWidth = mViewportWidth;
|
|
viewportHeight = mViewportHeight;
|
|
}
|
|
|
|
if (viewportWidth <= 0.0f || viewportHeight <= 0.0f) {
|
|
return gfx::Matrix(0.0, 0.0, 0.0, 0.0, 0.0, 0.0); // singular
|
|
}
|
|
|
|
nsSVGViewBoxRect viewBox =
|
|
GetViewBoxWithSynthesis(viewportWidth, viewportHeight);
|
|
|
|
if (viewBox.width <= 0.0f || viewBox.height <= 0.0f) {
|
|
return gfx::Matrix(0.0, 0.0, 0.0, 0.0, 0.0, 0.0); // singular
|
|
}
|
|
|
|
return SVGContentUtils::GetViewBoxTransform(viewportWidth, viewportHeight,
|
|
viewBox.x, viewBox.y,
|
|
viewBox.width, viewBox.height,
|
|
GetPreserveAspectRatioWithOverride());
|
|
}
|
|
|
|
void
|
|
SVGSVGElement::UpdateHasChildrenOnlyTransform()
|
|
{
|
|
bool hasChildrenOnlyTransform =
|
|
HasViewBoxOrSyntheticViewBox() ||
|
|
(IsRoot() && (mCurrentTranslate != SVGPoint(0.0f, 0.0f) ||
|
|
mCurrentScale != 1.0f));
|
|
mHasChildrenOnlyTransform = hasChildrenOnlyTransform;
|
|
}
|
|
|
|
void
|
|
SVGSVGElement::ChildrenOnlyTransformChanged(uint32_t aFlags)
|
|
{
|
|
// Avoid wasteful calls:
|
|
NS_ABORT_IF_FALSE(!(GetPrimaryFrame()->GetStateBits() &
|
|
NS_FRAME_IS_NONDISPLAY),
|
|
"Non-display SVG frames don't maintain overflow rects");
|
|
|
|
nsChangeHint changeHint;
|
|
|
|
bool hadChildrenOnlyTransform = mHasChildrenOnlyTransform;
|
|
|
|
UpdateHasChildrenOnlyTransform();
|
|
|
|
if (hadChildrenOnlyTransform != mHasChildrenOnlyTransform) {
|
|
// Reconstruct the frame tree to handle stacking context changes:
|
|
// XXXjwatt don't do this for root-<svg> or even outer-<svg>?
|
|
changeHint = nsChangeHint_ReconstructFrame;
|
|
} else {
|
|
// We just assume the old and new transforms are different.
|
|
changeHint = nsChangeHint(nsChangeHint_UpdateOverflow |
|
|
nsChangeHint_ChildrenOnlyTransform);
|
|
}
|
|
|
|
// If we're not reconstructing the frame tree, then we only call
|
|
// PostRestyleEvent if we're not being called under reflow to avoid recursing
|
|
// to death. See bug 767056 comments 10 and 12. Since our nsSVGOuterSVGFrame
|
|
// is being reflowed we're going to invalidate and repaint its entire area
|
|
// anyway (which will include our children).
|
|
if ((changeHint & nsChangeHint_ReconstructFrame) ||
|
|
!(aFlags & eDuringReflow)) {
|
|
nsLayoutUtils::PostRestyleEvent(this, nsRestyleHint(0), changeHint);
|
|
}
|
|
}
|
|
|
|
nsresult
|
|
SVGSVGElement::BindToTree(nsIDocument* aDocument,
|
|
nsIContent* aParent,
|
|
nsIContent* aBindingParent,
|
|
bool aCompileEventHandlers)
|
|
{
|
|
nsSMILAnimationController* smilController = nullptr;
|
|
|
|
if (aDocument) {
|
|
smilController = aDocument->GetAnimationController();
|
|
if (smilController) {
|
|
// SMIL is enabled in this document
|
|
if (WillBeOutermostSVG(aParent, aBindingParent)) {
|
|
// We'll be the outermost <svg> element. We'll need a time container.
|
|
if (!mTimedDocumentRoot) {
|
|
mTimedDocumentRoot = new nsSMILTimeContainer();
|
|
}
|
|
} else {
|
|
// We're a child of some other <svg> element, so we don't need our own
|
|
// time container. However, we need to make sure that we'll get a
|
|
// kick-start if we get promoted to be outermost later on.
|
|
mTimedDocumentRoot = nullptr;
|
|
mStartAnimationOnBindToTree = true;
|
|
}
|
|
}
|
|
}
|
|
|
|
nsresult rv = SVGSVGElementBase::BindToTree(aDocument, aParent,
|
|
aBindingParent,
|
|
aCompileEventHandlers);
|
|
NS_ENSURE_SUCCESS(rv,rv);
|
|
|
|
nsIDocument* doc = GetComposedDoc();
|
|
if (doc) {
|
|
// Setup the style sheet during binding, not element construction,
|
|
// because we could move the root SVG element from the document
|
|
// that created it to another document.
|
|
doc->EnsureOnDemandBuiltInUASheet(nsLayoutStylesheetCache::SVGSheet());
|
|
}
|
|
|
|
if (mTimedDocumentRoot && smilController) {
|
|
rv = mTimedDocumentRoot->SetParent(smilController);
|
|
if (mStartAnimationOnBindToTree) {
|
|
mTimedDocumentRoot->Begin();
|
|
mStartAnimationOnBindToTree = false;
|
|
}
|
|
}
|
|
|
|
return rv;
|
|
}
|
|
|
|
void
|
|
SVGSVGElement::UnbindFromTree(bool aDeep, bool aNullParent)
|
|
{
|
|
if (mTimedDocumentRoot) {
|
|
mTimedDocumentRoot->SetParent(nullptr);
|
|
}
|
|
|
|
SVGSVGElementBase::UnbindFromTree(aDeep, aNullParent);
|
|
}
|
|
|
|
//----------------------------------------------------------------------
|
|
// implementation helpers
|
|
|
|
bool
|
|
SVGSVGElement::WillBeOutermostSVG(nsIContent* aParent,
|
|
nsIContent* aBindingParent) const
|
|
{
|
|
nsIContent* parent = aBindingParent ? aBindingParent : aParent;
|
|
|
|
while (parent && parent->IsSVG()) {
|
|
nsIAtom* tag = parent->Tag();
|
|
if (tag == nsGkAtoms::foreignObject) {
|
|
// SVG in a foreignObject must have its own <svg> (nsSVGOuterSVGFrame).
|
|
return false;
|
|
}
|
|
if (tag == nsGkAtoms::svg) {
|
|
return false;
|
|
}
|
|
parent = parent->GetParent();
|
|
}
|
|
|
|
return true;
|
|
}
|
|
|
|
void
|
|
SVGSVGElement::InvalidateTransformNotifyFrame()
|
|
{
|
|
nsISVGSVGFrame* svgframe = do_QueryFrame(GetPrimaryFrame());
|
|
// might fail this check if we've failed conditional processing
|
|
if (svgframe) {
|
|
svgframe->NotifyViewportOrTransformChanged(
|
|
nsISVGChildFrame::TRANSFORM_CHANGED);
|
|
}
|
|
}
|
|
|
|
bool
|
|
SVGSVGElement::HasPreserveAspectRatio()
|
|
{
|
|
return HasAttr(kNameSpaceID_None, nsGkAtoms::preserveAspectRatio) ||
|
|
mPreserveAspectRatio.IsAnimated();
|
|
}
|
|
|
|
SVGViewElement*
|
|
SVGSVGElement::GetCurrentViewElement() const
|
|
{
|
|
if (mCurrentViewID) {
|
|
//XXXsmaug It is unclear how this should work in case we're in Shadow DOM.
|
|
nsIDocument* doc = GetUncomposedDoc();
|
|
if (doc) {
|
|
Element *element = doc->GetElementById(*mCurrentViewID);
|
|
if (element && element->IsSVG(nsGkAtoms::view)) {
|
|
return static_cast<SVGViewElement*>(element);
|
|
}
|
|
}
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
nsSVGViewBoxRect
|
|
SVGSVGElement::GetViewBoxWithSynthesis(
|
|
float aViewportWidth, float aViewportHeight) const
|
|
{
|
|
// The logic here should match HasViewBoxRect().
|
|
SVGViewElement* viewElement = GetCurrentViewElement();
|
|
if (viewElement && viewElement->mViewBox.HasRect()) {
|
|
return viewElement->mViewBox.GetAnimValue();
|
|
}
|
|
if (mViewBox.HasRect()) {
|
|
return mViewBox.GetAnimValue();
|
|
}
|
|
|
|
if (ShouldSynthesizeViewBox()) {
|
|
// Special case -- fake a viewBox, using height & width attrs.
|
|
// (Use |this| as context, since if we get here, we're outermost <svg>.)
|
|
return nsSVGViewBoxRect(0, 0,
|
|
ComputeSynthesizedViewBoxDimension(mLengthAttributes[ATTR_WIDTH],
|
|
mViewportWidth, this),
|
|
ComputeSynthesizedViewBoxDimension(mLengthAttributes[ATTR_HEIGHT],
|
|
mViewportHeight, this));
|
|
|
|
}
|
|
|
|
// No viewBox attribute, so we shouldn't auto-scale. This is equivalent
|
|
// to having a viewBox that exactly matches our viewport size.
|
|
return nsSVGViewBoxRect(0, 0, aViewportWidth, aViewportHeight);
|
|
}
|
|
|
|
SVGPreserveAspectRatio
|
|
SVGSVGElement::GetPreserveAspectRatioWithOverride() const
|
|
{
|
|
nsIDocument* doc = GetUncomposedDoc();
|
|
if (doc && doc->IsBeingUsedAsImage()) {
|
|
const SVGPreserveAspectRatio *pAROverridePtr = GetPreserveAspectRatioProperty();
|
|
if (pAROverridePtr) {
|
|
return *pAROverridePtr;
|
|
}
|
|
}
|
|
|
|
SVGViewElement* viewElement = GetCurrentViewElement();
|
|
|
|
// This check is equivalent to "!HasViewBoxRect() && ShouldSynthesizeViewBox()".
|
|
// We're just holding onto the viewElement that HasViewBoxRect() would look up,
|
|
// so that we don't have to look it up again later.
|
|
if (!((viewElement && viewElement->mViewBox.HasRect()) ||
|
|
mViewBox.HasRect()) &&
|
|
ShouldSynthesizeViewBox()) {
|
|
// If we're synthesizing a viewBox, use preserveAspectRatio="none";
|
|
return SVGPreserveAspectRatio(SVG_PRESERVEASPECTRATIO_NONE, SVG_MEETORSLICE_SLICE);
|
|
}
|
|
|
|
if (viewElement && viewElement->mPreserveAspectRatio.IsExplicitlySet()) {
|
|
return viewElement->mPreserveAspectRatio.GetAnimValue();
|
|
}
|
|
return mPreserveAspectRatio.GetAnimValue();
|
|
}
|
|
|
|
//----------------------------------------------------------------------
|
|
// SVGSVGElement
|
|
|
|
float
|
|
SVGSVGElement::GetLength(uint8_t aCtxType)
|
|
{
|
|
float h, w;
|
|
|
|
SVGViewElement* viewElement = GetCurrentViewElement();
|
|
const nsSVGViewBoxRect* viewbox = nullptr;
|
|
|
|
// The logic here should match HasViewBoxRect().
|
|
if (viewElement && viewElement->mViewBox.HasRect()) {
|
|
viewbox = &viewElement->mViewBox.GetAnimValue();
|
|
} else if (mViewBox.HasRect()) {
|
|
viewbox = &mViewBox.GetAnimValue();
|
|
}
|
|
|
|
if (viewbox) {
|
|
w = viewbox->width;
|
|
h = viewbox->height;
|
|
} else if (IsInner()) {
|
|
SVGSVGElement *ctx = GetCtx();
|
|
w = mLengthAttributes[ATTR_WIDTH].GetAnimValue(ctx);
|
|
h = mLengthAttributes[ATTR_HEIGHT].GetAnimValue(ctx);
|
|
} else if (ShouldSynthesizeViewBox()) {
|
|
w = ComputeSynthesizedViewBoxDimension(mLengthAttributes[ATTR_WIDTH],
|
|
mViewportWidth, this);
|
|
h = ComputeSynthesizedViewBoxDimension(mLengthAttributes[ATTR_HEIGHT],
|
|
mViewportHeight, this);
|
|
} else {
|
|
w = mViewportWidth;
|
|
h = mViewportHeight;
|
|
}
|
|
|
|
w = std::max(w, 0.0f);
|
|
h = std::max(h, 0.0f);
|
|
|
|
switch (aCtxType) {
|
|
case SVGContentUtils::X:
|
|
return w;
|
|
case SVGContentUtils::Y:
|
|
return h;
|
|
case SVGContentUtils::XY:
|
|
return float(SVGContentUtils::ComputeNormalizedHypotenuse(w, h));
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
//----------------------------------------------------------------------
|
|
// nsSVGElement methods
|
|
|
|
/* virtual */ gfxMatrix
|
|
SVGSVGElement::PrependLocalTransformsTo(const gfxMatrix &aMatrix,
|
|
TransformTypes aWhich) const
|
|
{
|
|
// 'transform' attribute:
|
|
gfxMatrix fromUserSpace =
|
|
SVGSVGElementBase::PrependLocalTransformsTo(aMatrix, aWhich);
|
|
if (aWhich == eUserSpaceToParent) {
|
|
return fromUserSpace;
|
|
}
|
|
|
|
if (IsInner()) {
|
|
float x, y;
|
|
const_cast<SVGSVGElement*>(this)->GetAnimatedLengthValues(&x, &y, nullptr);
|
|
if (aWhich == eAllTransforms) {
|
|
// the common case
|
|
return ThebesMatrix(GetViewBoxTransform()) * gfxMatrix::Translation(x, y) * fromUserSpace;
|
|
}
|
|
NS_ABORT_IF_FALSE(aWhich == eChildToUserSpace, "Unknown TransformTypes");
|
|
return ThebesMatrix(GetViewBoxTransform()) * gfxMatrix::Translation(x, y) * aMatrix;
|
|
}
|
|
|
|
if (IsRoot()) {
|
|
gfxMatrix zoomPanTM;
|
|
zoomPanTM.Translate(gfxPoint(mCurrentTranslate.GetX(), mCurrentTranslate.GetY()));
|
|
zoomPanTM.Scale(mCurrentScale, mCurrentScale);
|
|
return ThebesMatrix(GetViewBoxTransform()) * zoomPanTM * fromUserSpace;
|
|
}
|
|
|
|
// outer-<svg>, but inline in some other content:
|
|
return ThebesMatrix(GetViewBoxTransform()) * fromUserSpace;
|
|
}
|
|
|
|
/* virtual */ bool
|
|
SVGSVGElement::HasValidDimensions() const
|
|
{
|
|
return !IsInner() ||
|
|
((!mLengthAttributes[ATTR_WIDTH].IsExplicitlySet() ||
|
|
mLengthAttributes[ATTR_WIDTH].GetAnimValInSpecifiedUnits() > 0) &&
|
|
(!mLengthAttributes[ATTR_HEIGHT].IsExplicitlySet() ||
|
|
mLengthAttributes[ATTR_HEIGHT].GetAnimValInSpecifiedUnits() > 0));
|
|
}
|
|
|
|
nsSVGElement::LengthAttributesInfo
|
|
SVGSVGElement::GetLengthInfo()
|
|
{
|
|
return LengthAttributesInfo(mLengthAttributes, sLengthInfo,
|
|
ArrayLength(sLengthInfo));
|
|
}
|
|
|
|
nsSVGElement::EnumAttributesInfo
|
|
SVGSVGElement::GetEnumInfo()
|
|
{
|
|
return EnumAttributesInfo(mEnumAttributes, sEnumInfo,
|
|
ArrayLength(sEnumInfo));
|
|
}
|
|
|
|
nsSVGViewBox *
|
|
SVGSVGElement::GetViewBox()
|
|
{
|
|
return &mViewBox;
|
|
}
|
|
|
|
SVGAnimatedPreserveAspectRatio *
|
|
SVGSVGElement::GetPreserveAspectRatio()
|
|
{
|
|
return &mPreserveAspectRatio;
|
|
}
|
|
|
|
bool
|
|
SVGSVGElement::HasViewBoxRect() const
|
|
{
|
|
SVGViewElement* viewElement = GetCurrentViewElement();
|
|
if (viewElement && viewElement->mViewBox.HasRect()) {
|
|
return true;
|
|
}
|
|
return mViewBox.HasRect();
|
|
}
|
|
|
|
bool
|
|
SVGSVGElement::ShouldSynthesizeViewBox() const
|
|
{
|
|
NS_ABORT_IF_FALSE(!HasViewBoxRect(),
|
|
"Should only be called if we lack a viewBox");
|
|
|
|
nsIDocument* doc = GetUncomposedDoc();
|
|
return doc &&
|
|
doc->IsBeingUsedAsImage() &&
|
|
!mIsPaintingSVGImageElement &&
|
|
!GetParent();
|
|
}
|
|
|
|
bool
|
|
SVGSVGElement::SetPreserveAspectRatioProperty(const SVGPreserveAspectRatio& aPAR)
|
|
{
|
|
SVGPreserveAspectRatio* pAROverridePtr = new SVGPreserveAspectRatio(aPAR);
|
|
nsresult rv = SetProperty(nsGkAtoms::overridePreserveAspectRatio,
|
|
pAROverridePtr,
|
|
nsINode::DeleteProperty<SVGPreserveAspectRatio>,
|
|
true);
|
|
NS_ABORT_IF_FALSE(rv != NS_PROPTABLE_PROP_OVERWRITTEN,
|
|
"Setting override value when it's already set...?");
|
|
|
|
if (MOZ_UNLIKELY(NS_FAILED(rv))) {
|
|
// property-insertion failed (e.g. OOM in property-table code)
|
|
delete pAROverridePtr;
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
const SVGPreserveAspectRatio*
|
|
SVGSVGElement::GetPreserveAspectRatioProperty() const
|
|
{
|
|
void* valPtr = GetProperty(nsGkAtoms::overridePreserveAspectRatio);
|
|
if (valPtr) {
|
|
return static_cast<SVGPreserveAspectRatio*>(valPtr);
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
bool
|
|
SVGSVGElement::ClearPreserveAspectRatioProperty()
|
|
{
|
|
void* valPtr = UnsetProperty(nsGkAtoms::overridePreserveAspectRatio);
|
|
delete static_cast<SVGPreserveAspectRatio*>(valPtr);
|
|
return valPtr;
|
|
}
|
|
|
|
void
|
|
SVGSVGElement::
|
|
SetImageOverridePreserveAspectRatio(const SVGPreserveAspectRatio& aPAR)
|
|
{
|
|
#ifdef DEBUG
|
|
NS_ABORT_IF_FALSE(OwnerDoc()->IsBeingUsedAsImage(),
|
|
"should only override preserveAspectRatio in images");
|
|
#endif
|
|
|
|
bool hasViewBoxRect = HasViewBoxRect();
|
|
if (!hasViewBoxRect && ShouldSynthesizeViewBox()) {
|
|
// My non-<svg:image> clients will have been painting me with a synthesized
|
|
// viewBox, but my <svg:image> client that's about to paint me now does NOT
|
|
// want that. Need to tell ourselves to flush our transform.
|
|
mImageNeedsTransformInvalidation = true;
|
|
}
|
|
mIsPaintingSVGImageElement = true;
|
|
|
|
if (!hasViewBoxRect) {
|
|
return; // preserveAspectRatio irrelevant (only matters if we have viewBox)
|
|
}
|
|
|
|
if (aPAR.GetDefer() && HasPreserveAspectRatio()) {
|
|
return; // Referring element defers to my own preserveAspectRatio value.
|
|
}
|
|
|
|
if (SetPreserveAspectRatioProperty(aPAR)) {
|
|
mImageNeedsTransformInvalidation = true;
|
|
}
|
|
}
|
|
|
|
void
|
|
SVGSVGElement::ClearImageOverridePreserveAspectRatio()
|
|
{
|
|
#ifdef DEBUG
|
|
NS_ABORT_IF_FALSE(OwnerDoc()->IsBeingUsedAsImage(),
|
|
"should only override image preserveAspectRatio in images");
|
|
#endif
|
|
|
|
mIsPaintingSVGImageElement = false;
|
|
if (!HasViewBoxRect() && ShouldSynthesizeViewBox()) {
|
|
// My non-<svg:image> clients will want to paint me with a synthesized
|
|
// viewBox, but my <svg:image> client that just painted me did NOT
|
|
// use that. Need to tell ourselves to flush our transform.
|
|
mImageNeedsTransformInvalidation = true;
|
|
}
|
|
|
|
if (ClearPreserveAspectRatioProperty()) {
|
|
mImageNeedsTransformInvalidation = true;
|
|
}
|
|
}
|
|
|
|
void
|
|
SVGSVGElement::FlushImageTransformInvalidation()
|
|
{
|
|
NS_ABORT_IF_FALSE(!GetParent(), "Should only be called on root node");
|
|
NS_ABORT_IF_FALSE(OwnerDoc()->IsBeingUsedAsImage(),
|
|
"Should only be called on image documents");
|
|
|
|
if (mImageNeedsTransformInvalidation) {
|
|
InvalidateTransformNotifyFrame();
|
|
mImageNeedsTransformInvalidation = false;
|
|
}
|
|
}
|
|
|
|
bool
|
|
SVGSVGElement::SetViewBoxProperty(const nsSVGViewBoxRect& aViewBox)
|
|
{
|
|
nsSVGViewBoxRect* pViewBoxOverridePtr = new nsSVGViewBoxRect(aViewBox);
|
|
nsresult rv = SetProperty(nsGkAtoms::viewBox,
|
|
pViewBoxOverridePtr,
|
|
nsINode::DeleteProperty<nsSVGViewBoxRect>,
|
|
true);
|
|
NS_ABORT_IF_FALSE(rv != NS_PROPTABLE_PROP_OVERWRITTEN,
|
|
"Setting override value when it's already set...?");
|
|
|
|
if (MOZ_UNLIKELY(NS_FAILED(rv))) {
|
|
// property-insertion failed (e.g. OOM in property-table code)
|
|
delete pViewBoxOverridePtr;
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
const nsSVGViewBoxRect*
|
|
SVGSVGElement::GetViewBoxProperty() const
|
|
{
|
|
void* valPtr = GetProperty(nsGkAtoms::viewBox);
|
|
if (valPtr) {
|
|
return static_cast<nsSVGViewBoxRect*>(valPtr);
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
bool
|
|
SVGSVGElement::ClearViewBoxProperty()
|
|
{
|
|
void* valPtr = UnsetProperty(nsGkAtoms::viewBox);
|
|
delete static_cast<nsSVGViewBoxRect*>(valPtr);
|
|
return valPtr;
|
|
}
|
|
|
|
bool
|
|
SVGSVGElement::SetZoomAndPanProperty(uint16_t aValue)
|
|
{
|
|
nsresult rv = SetProperty(nsGkAtoms::zoomAndPan,
|
|
reinterpret_cast<void*>(aValue),
|
|
nullptr, true);
|
|
NS_ABORT_IF_FALSE(rv != NS_PROPTABLE_PROP_OVERWRITTEN,
|
|
"Setting override value when it's already set...?");
|
|
|
|
return NS_SUCCEEDED(rv);
|
|
}
|
|
|
|
uint16_t
|
|
SVGSVGElement::GetZoomAndPanProperty() const
|
|
{
|
|
void* valPtr = GetProperty(nsGkAtoms::zoomAndPan);
|
|
if (valPtr) {
|
|
return reinterpret_cast<uintptr_t>(valPtr);
|
|
}
|
|
return SVG_ZOOMANDPAN_UNKNOWN;
|
|
}
|
|
|
|
bool
|
|
SVGSVGElement::ClearZoomAndPanProperty()
|
|
{
|
|
return UnsetProperty(nsGkAtoms::zoomAndPan);
|
|
}
|
|
|
|
bool
|
|
SVGSVGElement::SetTransformProperty(const SVGTransformList& aTransform)
|
|
{
|
|
SVGTransformList* pTransformOverridePtr = new SVGTransformList(aTransform);
|
|
nsresult rv = SetProperty(nsGkAtoms::transform,
|
|
pTransformOverridePtr,
|
|
nsINode::DeleteProperty<SVGTransformList>,
|
|
true);
|
|
NS_ABORT_IF_FALSE(rv != NS_PROPTABLE_PROP_OVERWRITTEN,
|
|
"Setting override value when it's already set...?");
|
|
|
|
if (MOZ_UNLIKELY(NS_FAILED(rv))) {
|
|
// property-insertion failed (e.g. OOM in property-table code)
|
|
delete pTransformOverridePtr;
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
const SVGTransformList*
|
|
SVGSVGElement::GetTransformProperty() const
|
|
{
|
|
void* valPtr = GetProperty(nsGkAtoms::transform);
|
|
if (valPtr) {
|
|
return static_cast<SVGTransformList*>(valPtr);
|
|
}
|
|
return nullptr;
|
|
}
|
|
|
|
bool
|
|
SVGSVGElement::ClearTransformProperty()
|
|
{
|
|
return UnsetProperty(nsGkAtoms::transform);
|
|
}
|
|
|
|
} // namespace dom
|
|
} // namespace mozilla
|