- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Fri, 09 Sep 2011 12:16:48 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/svg In directory hutz:/tmp/cvs-serv18813/properties/svg Modified Files: SVGBasicStyle.java SVGStyle.java SVGTinyStyle.java Log Message: code cleanup, removed dead code, starting reorg of azimuth (others to follow) Index: SVGStyle.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/svg/SVGStyle.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- SVGStyle.java 5 Jan 2010 13:49:59 -0000 1.4 +++ SVGStyle.java 9 Sep 2011 12:16:46 -0000 1.5 @@ -8,8 +8,6 @@ package org.w3c.css.properties.svg; -import org.w3c.css.parser.CssPrinterStyle; - public class SVGStyle extends SVGBasicStyle { Marker marker; @@ -93,37 +91,4 @@ return cssRenderIntent; } - /** - * Print this style - * - * @param printer The printer interface - */ - public void print(CssPrinterStyle printer) { - super.print(printer); - - if (marker != null) { - marker.print(printer); - } - if (markerStart != null) { - markerStart.print(printer); - } - if (markerEnd != null) { - markerEnd.print(printer); - } - if (markerMid != null) { - markerMid.print(printer); - } - if (lightingColor != null) { - lightingColor.print(printer); - } - if (cpSrc != null) { - cpSrc.print(printer); - } - if (cpName != null) { - cpName.print(printer); - } - if (cssRenderIntent != null) { - cssRenderIntent.print(printer); - } - } } Index: SVGTinyStyle.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/svg/SVGTinyStyle.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- SVGTinyStyle.java 5 Jan 2010 13:49:59 -0000 1.4 +++ SVGTinyStyle.java 9 Sep 2011 12:16:46 -0000 1.5 @@ -10,8 +10,6 @@ import org.w3c.css.properties.css3.Css3Style; -import org.w3c.css.parser.CssPrinterStyle; - public class SVGTinyStyle extends Css3Style { FillRule fillRule; @@ -106,43 +104,6 @@ } /** - * Print this style - * - * @param printer The printer interface - */ - public void print(CssPrinterStyle printer) { - super.print(printer); - - if (fillRule != null) { - fillRule.print(printer); - } - if (strokeLinejoin != null) { - strokeLinejoin.print(printer); - } - if (strokeLineCap != null) { - strokeLineCap.print(printer); - } - if (strokeMiterLimit != null) { - strokeMiterLimit.print(printer); - } - if (strokeWidth != null) { - strokeWidth.print(printer); - } - if (strokeDashOffset != null) { - strokeDashOffset.print(printer); - } - if (strokeDashArray != null) { - strokeDashArray.print(printer); - } - if (stroke != null) { - stroke.print(printer); - } - if (fill != null) { - fill.print(printer); - } - } - - /** * Returns the name of the actual selector */ public String getSelector() Index: SVGBasicStyle.java =================================================================== RCS file: /sources/public/2002/css-validator/org/w3c/css/properties/svg/SVGBasicStyle.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- SVGBasicStyle.java 5 Jan 2010 13:49:59 -0000 1.4 +++ SVGBasicStyle.java 9 Sep 2011 12:16:46 -0000 1.5 @@ -8,8 +8,6 @@ package org.w3c.css.properties.svg; -import org.w3c.css.parser.CssPrinterStyle; - public class SVGBasicStyle extends SVGTinyStyle { AlignmentBaseline alignmentBaseline; @@ -272,92 +270,5 @@ } return solidOpacity; } - - /** - * Print this style - * - * @param printer The printer interface - */ - public void print(CssPrinterStyle printer) { - super.print(printer); - if (alignmentBaseline != null) { - alignmentBaseline.print(printer); - } - if (dominantBaseLine != null) { - dominantBaseLine.print(printer); - } - if (clipPath != null) { - clipPath.print(printer); - } - if (clipRule != null) { - clipRule.print(printer); - } - if (colorInterpolation != null) { - colorInterpolation.print(printer); - } - if (colorInterpolationFilters != null) { - colorInterpolationFilters.print(printer); - } - if (colorRendering != null) { - colorRendering.print(printer); - } - if (enableBackground != null) { - enableBackground.print(printer); - } - if (writingModeSVG != null) { - writingModeSVG.print(printer); - } - if (floodOpacity != null) { - floodOpacity.print(printer); - } - if (filter != null) { - filter.print(printer); - } - if (fillOpacity != null) { - fillOpacity.print(printer); - } - if (imageRendering != null) { - imageRendering.print(printer); - } - if (mask != null) { - mask.print(printer); - } - if (stopOpacity != null) { - stopOpacity.print(printer); - } - if (kerning != null) { - kerning.print(printer); - } - if (pointerEvents != null) { - pointerEvents.print(printer); - } - if (shapeRendering != null) { - shapeRendering.print(printer); - } - if (textRendering != null) { - textRendering.print(printer); - } - if (textAnchor != null) { - textAnchor.print(printer); - } - if (strokeOpacity != null) { - strokeOpacity.print(printer); - } - if (stopColor != null) { - stopColor.print(printer); - } - if (solidColor != null) { - solidColor.print(printer); - } - if (floodColor != null) { - floodColor.print(printer); - } - if (colorProfile != null) { - colorProfile.print(printer); - } - if (solidOpacity != null) { - solidOpacity.print(printer); - } - } }
Received on Friday, 9 September 2011 12:16:53 UTC