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();
}
}
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)"
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.");