]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Use a slightly more convenient name to keep the code somewhat readable
authorAndreas L. Delmelle <adelmelle@apache.org>
Sat, 14 Jul 2007 08:52:28 +0000 (08:52 +0000)
committerAndreas L. Delmelle <adelmelle@apache.org>
Sat, 14 Jul 2007 08:52:28 +0000 (08:52 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@556248 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/datatypes/ValidationPercentBaseContext.java
src/java/org/apache/fop/fo/flow/Table.java
src/java/org/apache/fop/fo/flow/TableFObj.java

index 76c31b4afbbfbc7b2aa5c98a372f174c045b1371..c9db5d52409f252b866b77bd0b02f0b56f330b88 100644 (file)
@@ -50,7 +50,7 @@ public final class ValidationPercentBaseContext implements PercentBaseContext {
     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();
         }
index 0190c3cb4298cca4ebf045d0dbfe27d300c47238..dbbfdf94b0575d77a722a5ed997cca8bf415db3b 100644 (file)
@@ -139,8 +139,7 @@ public class Table extends TableFObj {
         }
         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)"
index 80d89e9dd7f671eea932df9a250b17a454f2cf7e..ee4029cd75ea60b34b4a6ec70dbd4d077063dd30 100644 (file)
@@ -97,8 +97,7 @@ public abstract class TableFObj extends FObj {
         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.");