Skip to content

Commit 845bcb4

Browse files
committed
svgom: remove the experimental SVGStylableP interface
1 parent 456aaff commit 845bcb4

File tree

2 files changed

+32
-51
lines changed

2 files changed

+32
-51
lines changed

svgom-api/src/main/java/org/w3c/dom/svg/SVGStylable.java

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,54 @@
1212

1313
package org.w3c.dom.svg;
1414

15+
import org.w3c.css.om.CSSStyleDeclaration;
16+
import org.w3c.css.om.typed.CSSStyleValue;
1517
import org.w3c.dom.css.CSSValue;
1618

1719
/**
1820
* This interface is implemented on all objects corresponding to SVG elements
1921
* that can have <code>style</code>, <code>class</code> and presentation
2022
* attributes specified on them.
2123
*/
22-
public interface SVGStylable extends SVGStylableP<CSSValue> {
24+
public interface SVGStylable {
25+
26+
/**
27+
* Gets the attribute {@code class} on this element.
28+
*
29+
* @return the attribute {@code class}.
30+
*/
31+
SVGAnimatedString getClassName();
32+
33+
/**
34+
* Gets the inline style of this element.
35+
*
36+
* @return the inline style.
37+
*/
38+
CSSStyleDeclaration getStyle();
2339

2440
/**
2541
* Returns the base value of a given presentation attribute as an object.
2642
*
2743
* @param name the presentation attribute.
28-
* @return the given presentation attribute as an object.
44+
* @return the given presentation attribute as a {@code CSSValue}, {@code null}
45+
* if no value was defined for the given attribute or this
46+
* implementation does not support the {@code CSSValue} API.
2947
*/
30-
@Override
3148
@Deprecated
3249
default CSSValue getPresentationAttribute(String name) {
3350
return null;
3451
}
3552

53+
/**
54+
* Returns the base value of a given presentation attribute as an object.
55+
*
56+
* @param name the presentation attribute.
57+
* @return the given presentation attribute as a {@code CSSStyleValue},
58+
* {@code null} if no value was defined for the given attribute or this
59+
* implementation does not support the {@code CSSStyleValue} API.
60+
*/
61+
default CSSStyleValue getPresentationAttributeValue(String name) {
62+
return null;
63+
}
64+
3665
}

svgom-api/src/main/java/org/w3c/dom/svg/SVGStylableP.java

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)