From 3ff7cea4a83d4af695c6a43258522738449387ed Mon Sep 17 00:00:00 2001 From: "Andreas L. Delmelle" Date: Sat, 14 Jul 2007 08:52:28 +0000 Subject: [PATCH] Use a slightly more convenient name to keep the code somewhat readable git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@556248 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/datatypes/ValidationPercentBaseContext.java | 2 +- src/java/org/apache/fop/fo/flow/Table.java | 3 +-- src/java/org/apache/fop/fo/flow/TableFObj.java | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/java/org/apache/fop/datatypes/ValidationPercentBaseContext.java b/src/java/org/apache/fop/datatypes/ValidationPercentBaseContext.java index 76c31b4af..c9db5d524 100644 --- a/src/java/org/apache/fop/datatypes/ValidationPercentBaseContext.java +++ b/src/java/org/apache/fop/datatypes/ValidationPercentBaseContext.java @@ -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(); } diff --git a/src/java/org/apache/fop/fo/flow/Table.java b/src/java/org/apache/fop/fo/flow/Table.java index 0190c3cb4..dbbfdf94b 100644 --- a/src/java/org/apache/fop/fo/flow/Table.java +++ b/src/java/org/apache/fop/fo/flow/Table.java @@ -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)" diff --git a/src/java/org/apache/fop/fo/flow/TableFObj.java b/src/java/org/apache/fop/fo/flow/TableFObj.java index 80d89e9dd..ee4029cd7 100644 --- a/src/java/org/apache/fop/fo/flow/TableFObj.java +++ b/src/java/org/apache/fop/fo/flow/TableFObj.java @@ -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."); -- 2.39.5