Пример #1
0
 /**
  * Adds a feature to the Condition attribute of the Selector object
  *
  * @param c The feature to be added to the Condition attribute
  */
 private void addCondition(Condition c) {
   if (conditions == null) {
     conditions = new java.util.ArrayList();
   }
   if (_pe != null) {
     conditions.add(Condition.createUnsupportedCondition());
     XRLog.match(Level.WARNING, "Trying to append conditions to pseudoElement " + _pe);
   }
   conditions.add(c);
 }
Пример #2
0
 /** for unsupported or invalid CSS */
 public void addUnsupportedCondition() {
   addCondition(Condition.createUnsupportedCondition());
 }