1 18 package org.apache.batik.css.dom; 19 20 import org.apache.batik.css.engine.CSSEngine; 21 import org.apache.batik.css.engine.CSSStylableElement; 22 import org.w3c.dom.Element ; 23 import org.w3c.dom.css.CSSStyleDeclaration; 24 25 32 public class CSSOMSVGViewCSS extends CSSOMViewCSS { 33 34 37 public CSSOMSVGViewCSS(CSSEngine engine) { 38 super(engine); 39 } 40 41 45 public CSSStyleDeclaration getComputedStyle(Element elt, 46 String pseudoElt) { 47 if (elt instanceof CSSStylableElement) { 48 return new CSSOMSVGComputedStyle(cssEngine, 49 (CSSStylableElement)elt, 50 pseudoElt); 51 } 52 return null; 53 } 54 } 55 | Popular Tags |