You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by je...@apache.org on 2005/01/24 10:14:37 UTC

cvs commit: xml-fop/src/java/org/apache/fop/fo FOPropertyMapping.java

jeremias    2005/01/24 01:14:37

  Modified:    src/java/org/apache/fop/fo FOPropertyMapping.java
  Log:
  Missing aliases for background-position-*.
  Missing percent base for height.
  
  Revision  Changes    Path
  1.40      +10 -1     xml-fop/src/java/org/apache/fop/fo/FOPropertyMapping.java
  
  Index: FOPropertyMapping.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/fo/FOPropertyMapping.java,v
  retrieving revision 1.39
  retrieving revision 1.40
  diff -u -r1.39 -r1.40
  --- FOPropertyMapping.java	11 Jan 2005 00:07:52 -0000	1.39
  +++ FOPropertyMapping.java	24 Jan 2005 09:14:36 -0000	1.40
  @@ -704,12 +704,20 @@
           m  = new LengthProperty.Maker(PR_BACKGROUND_POSITION_HORIZONTAL);
           m.setInherited(false);
           m.setDefault("0%");
  +        m.addKeyword("left", "0%");
  +        m.addKeyword("center", "50%");
  +        m.addKeyword("right", "100%");
  +        m.setPercentBase(LengthBase.CONTAINING_BOX);
           addPropertyMaker("background-position-horizontal", m);
   
           // background-position-vertical
           m  = new LengthProperty.Maker(PR_BACKGROUND_POSITION_VERTICAL);
           m.setInherited(false);
           m.setDefault("0%");
  +        m.addKeyword("top", "0%");
  +        m.addKeyword("center", "50%");
  +        m.addKeyword("bottom", "100%");
  +        m.setPercentBase(LengthBase.CONTAINING_BOX);
           addPropertyMaker("background-position-vertical", m);
   
           // border-before-color
  @@ -1434,6 +1442,7 @@
           l  = new LengthProperty.Maker(PR_HEIGHT);
           l.setInherited(false);
           l.addEnum("auto", getEnumProperty(EN_AUTO, "AUTO"));
  +        l.setPercentBase(LengthBase.BLOCK_HEIGHT);
           l.setDefault("auto");
           addPropertyMaker("height", l);
   
  
  
  

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