hillion 01/06/19 07:27:20 Modified: sources/org/apache/batik/css AbstractViewCSS.java Log: Added a getCascadedStyle() method to AbstractViewCSS. Revision Changes Path 1.15 +15 -4 xml-batik/sources/org/apache/batik/css/AbstractViewCSS.java Index: AbstractViewCSS.java =================================================================== RCS file: /home/cvs/xml-batik/sources/org/apache/batik/css/AbstractViewCSS.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- AbstractViewCSS.java 2001/06/12 14:09:19 1.14 +++ AbstractViewCSS.java 2001/06/19 14:27:18 1.15 @@ -44,7 +44,7 @@ * {@link org.w3c.dom.css.ViewCSS} interface. * * @author <a href="mailto:[EMAIL PROTECTED]">Stephane Hillion</a> - * @version $Id: AbstractViewCSS.java,v 1.14 2001/06/12 14:09:19 hillion Exp $ + * @version $Id: AbstractViewCSS.java,v 1.15 2001/06/19 14:27:18 hillion Exp $ */ public abstract class AbstractViewCSS implements ViewCSS { @@ -169,8 +169,21 @@ * Computes the cascaded style for the given element and pseudo element. */ public CSSOMReadOnlyStyleDeclaration computeStyle(Element elt, - String pseudoElt) { + String pseudoElt) { CSSOMReadOnlyStyleDeclaration result; + result = getCascadedStyle(elt, pseudoElt); + + computeRelativeValues(elt, pseudoElt, result); + + return result; + } + + /** + * Computes the cascaded style for the given element and pseudo element. + */ + public CSSOMReadOnlyStyleDeclaration getCascadedStyle(Element elt, + String pseudoElt) { + CSSOMReadOnlyStyleDeclaration result; result = new CSSOMReadOnlyStyleDeclaration(this, elt); addUserAgentProperties(elt, pseudoElt, result); @@ -179,8 +192,6 @@ addAuthorStyleSheetProperties(elt, pseudoElt, result); addInlineStyleProperties(elt, pseudoElt, result); addOverrideStyleProperties(elt, pseudoElt, result); - - computeRelativeValues(elt, pseudoElt, result); return result; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]