Skip to content

Commit

Permalink
Upgrade to SVGOM 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosame committed Aug 25, 2024
1 parent 324a899 commit 5f7f5fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
import org.w3c.css.om.typed.CSSStyleValue;
import org.w3c.dom.Node;
import org.w3c.dom.svg.SVGAnimatedString;
import org.w3c.dom.svg.SVGStylableP;
import org.w3c.dom.svg.SVGStylable;

import io.sf.carte.echosvg.css.dom.CSSValue;
import io.sf.carte.echosvg.css.engine.CSSStylableElement;
import io.sf.carte.echosvg.css.engine.StyleDeclarationProvider;
import io.sf.carte.echosvg.css.engine.StyleMap;
import io.sf.carte.echosvg.dom.AbstractDocument;
import io.sf.carte.echosvg.dom.AbstractStylableDocument;
import io.sf.carte.echosvg.util.ParsedURL;

/**
Expand All @@ -43,7 +43,7 @@
* @version $Id$
*/
public abstract class StylableExtensionElement extends ExtensionElement implements CSSStylableElement,
SVGStylableP<CSSStyleValue> {
SVGStylable {

private static final long serialVersionUID = 1L;

Expand Down Expand Up @@ -157,13 +157,10 @@ public CSSStyleDeclaration getStyle() {
throw new UnsupportedOperationException("Not implemented");
}

/**
* <b>DOM</b>: Implements
* {@link org.w3c.dom.svg.SVGStylable#getPresentationAttribute(String)}.
*/
@Override
public CSSValue getPresentationAttribute(String name) {
throw new UnsupportedOperationException("Not implemented");
public CSSStyleValue getPresentationAttributeValue(String name) {
AbstractStylableDocument doc = (AbstractStylableDocument) getCurrentDocument();
return computedStyleMap.getValue(doc.getCSSEngine().getPropertyIndex(name));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ xmlDtdVersion=4.3
rhinoVersion=1.7.15
legacyColorsVersion=1.0
domViewVersion=1.0
svgomVersion=1.1
svgomVersion=1.1.1
xmlApisVersion=1.4.01
commonsIOVersion=2.16.1
htmlParserVersion=1.4.16
Expand Down

0 comments on commit 5f7f5fb

Please sign in to comment.