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 ad...@apache.org on 2007/07/14 10:52:29 UTC

svn commit: r556248 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop: datatypes/ValidationPercentBaseContext.java fo/flow/Table.java fo/flow/TableFObj.java

Author: adelmelle
Date: Sat Jul 14 01:52:28 2007
New Revision: 556248

URL: http://svn.apache.org/viewvc?view=rev&rev=556248
Log:
Use a slightly more convenient name to keep the code somewhat readable

Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/ValidationPercentBaseContext.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/Table.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/TableFObj.java

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/ValidationPercentBaseContext.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/ValidationPercentBaseContext.java?view=diff&rev=556248&r1=556247&r2=556248
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/ValidationPercentBaseContext.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/ValidationPercentBaseContext.java Sat Jul 14 01:52:28 2007
@@ -50,7 +50,7 @@
     private static PercentBaseContext pseudoContextForValidation = null;
     
     /** @return a base context for validation purposes. See class description. */
-    public static PercentBaseContext getPseudoContextForValidationPurposes() {
+    public static PercentBaseContext getPseudoContext() {
         if (pseudoContextForValidation == null) {
             pseudoContextForValidation = new ValidationPercentBaseContext();
         }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/Table.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/Table.java?view=diff&rev=556248&r1=556247&r2=556248
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/Table.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/Table.java Sat Jul 14 01:52:28 2007
@@ -139,8 +139,7 @@
         }
         if (!isSeparateBorderModel() 
                 && getCommonBorderPaddingBackground().hasPadding(
-                        ValidationPercentBaseContext
-                            .getPseudoContextForValidationPurposes())) {
+                        ValidationPercentBaseContext.getPseudoContext())) {
             //See "17.6.2 The collapsing border model" in CSS2
             attributeWarning("In collapsing border model a table does not have padding"
                     + " (see http://www.w3.org/TR/REC-CSS2/tables.html#collapsing-borders)"

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/TableFObj.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/TableFObj.java?view=diff&rev=556248&r1=556247&r2=556248
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/TableFObj.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/flow/TableFObj.java Sat Jul 14 01:52:28 2007
@@ -97,8 +97,7 @@
         if (getNameId() != FO_TABLE //Separate check for fo:table in Table.java
                 && getNameId() != FO_TABLE_CELL
                 && getCommonBorderPaddingBackground().hasPadding(
-                        ValidationPercentBaseContext
-                            .getPseudoContextForValidationPurposes())) {
+                        ValidationPercentBaseContext.getPseudoContext())) {
             attributeWarning(
                     "padding-* properties are not applicable to " + getName()
                     + ", but a non-zero value for padding was found.");



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