-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
css: move the margin properties from 1.2 to the base SVG implementation
This is important for the future support of foreign elements.
- Loading branch information
Showing
7 changed files
with
49 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,13 +26,12 @@ | |
import io.sf.carte.echosvg.css.engine.value.svg.OpacityManager; | ||
import io.sf.carte.echosvg.css.engine.value.svg.SVGColorManager; | ||
import io.sf.carte.echosvg.css.engine.value.svg12.MarginLengthManager; | ||
import io.sf.carte.echosvg.css.engine.value.svg12.MarginShorthandManager; | ||
import io.sf.carte.echosvg.css.engine.value.svg12.TextAlignManager; | ||
import io.sf.carte.echosvg.util.ParsedURL; | ||
import io.sf.carte.echosvg.util.SVG12CSSConstants; | ||
|
||
/** | ||
* This class provides a CSS engine initialized for SVG. | ||
* This class provides a CSS engine initialized for SVG 1.2. | ||
* | ||
* @author <a href="mailto:[email protected]">Stephane Hillion</a> | ||
* @author For later modifications, see Git history. | ||
|
@@ -72,27 +71,19 @@ public SVG12CSSEngine(Document doc, ParsedURL uri, Parser p, ValueManager[] vms, | |
*/ | ||
public static final ValueManager[] SVG_VALUE_MANAGERS = { | ||
new MarginLengthManager(SVG12CSSConstants.CSS_INDENT_PROPERTY), | ||
new MarginLengthManager(SVG12CSSConstants.CSS_MARGIN_BOTTOM_PROPERTY), | ||
new MarginLengthManager(SVG12CSSConstants.CSS_MARGIN_LEFT_PROPERTY), | ||
new MarginLengthManager(SVG12CSSConstants.CSS_MARGIN_RIGHT_PROPERTY), | ||
new MarginLengthManager(SVG12CSSConstants.CSS_MARGIN_TOP_PROPERTY), | ||
new SVGColorManager(SVG12CSSConstants.CSS_SOLID_COLOR_PROPERTY), | ||
new OpacityManager(SVG12CSSConstants.CSS_SOLID_OPACITY_PROPERTY, true), new TextAlignManager(), }; | ||
|
||
/** | ||
* The shorthand managers for SVG. | ||
*/ | ||
public static final ShorthandManager[] SVG_SHORTHAND_MANAGERS = { new MarginShorthandManager(), }; | ||
public static final ShorthandManager[] SVG_SHORTHAND_MANAGERS = { }; | ||
|
||
// | ||
// The property indexes. | ||
// | ||
public static final int INDENT_INDEX = SVGCSSEngine.FINAL_INDEX + 1; | ||
public static final int MARGIN_BOTTOM_INDEX = INDENT_INDEX + 1; | ||
public static final int MARGIN_LEFT_INDEX = MARGIN_BOTTOM_INDEX + 1; | ||
public static final int MARGIN_RIGHT_INDEX = MARGIN_LEFT_INDEX + 1; | ||
public static final int MARGIN_TOP_INDEX = MARGIN_RIGHT_INDEX + 1; | ||
public static final int SOLID_COLOR_INDEX = MARGIN_TOP_INDEX + 1; | ||
public static final int SOLID_COLOR_INDEX = INDENT_INDEX + 1; | ||
public static final int SOLID_OPACITY_INDEX = SOLID_COLOR_INDEX + 1; | ||
public static final int TEXT_ALIGN_INDEX = SOLID_OPACITY_INDEX + 1; | ||
public static final int FINAL_INDEX = TEXT_ALIGN_INDEX; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters