xmlgraphics-batik-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hill...@apache.org
Subject cvs commit: xml-batik/sources/org/apache/batik/css/engine CSSEngine.java
Date Mon, 10 Jun 2002 14:37:17 GMT
hillion     2002/06/10 07:37:17

  Modified:    sources/org/apache/batik/css/engine CSSEngine.java
  Log:
  Removed a unused method.
  
  Revision  Changes    Path
  1.15      +1 -43     xml-batik/sources/org/apache/batik/css/engine/CSSEngine.java
  
  Index: CSSEngine.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/css/engine/CSSEngine.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- CSSEngine.java	10 Jun 2002 14:04:24 -0000	1.14
  +++ CSSEngine.java	10 Jun 2002 14:37:16 -0000	1.15
  @@ -58,7 +58,7 @@
    * This is the base class for all the CSS engines.
    *
    * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
  - * @version $Id: CSSEngine.java,v 1.14 2002/06/10 14:04:24 hillion Exp $
  + * @version $Id: CSSEngine.java,v 1.15 2002/06/10 14:37:16 hillion Exp $
    */
   public abstract class CSSEngine {
   
  @@ -1041,48 +1041,6 @@
               parseStyleSheet(ir, ir.getURI());
           }
           
  -    }
  -
  -    /**
  -     * Adds the rules of the given style-sheet to a style-map.
  -     */
  -    protected void putStyleSheetRules(Element elt,
  -                                      String pseudo,
  -                                      StyleMap sm,
  -                                      StyleSheet ss,
  -                                      short origin) {
  -        List rules = new ArrayList();
  -        addMatchingRules(rules, ss, elt, pseudo);
  -        sortRules(rules, elt, pseudo);
  -        int rlen = rules.size();
  -        int props = getNumberOfProperties();
  -
  -        if (origin == StyleMap.AUTHOR_ORIGIN) {
  -            for (int r = 0; r < rlen; r++) {
  -                StyleRule sr = (StyleRule)rules.get(r);
  -                StyleDeclaration sd = sr.getStyleDeclaration();
  -                int len = sd.size();
  -                for (int i = 0; i < len; i++) {
  -                    putAuthorProperty(sm,
  -                                      sd.getIndex(i),
  -                                      sd.getValue(i),
  -                                      sd.getPriority(i),
  -                                      origin);
  -                }
  -            }
  -        } else {
  -            for (int r = 0; r < rlen; r++) {
  -                StyleRule sr = (StyleRule)rules.get(r);
  -                StyleDeclaration sd = sr.getStyleDeclaration();
  -                int len = sd.size();
  -                for (int i = 0; i < len; i++) {
  -                    int idx = sd.getIndex(i);
  -                    sm.putValue(idx, sd.getValue(i));
  -                    sm.putImportant(idx, sd.getPriority(i));
  -                    sm.putOrigin(idx, origin);
  -                }
  -            }
  -        }
       }
   
       /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org


Mime
View raw message