Changeset 17745 in josm
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ConditionFactory.java
r17744 r17745 690 690 @Override 691 691 public boolean applies(Environment env) { 692 Cascade cascade = env.getCascade(); 692 return Environment.DEFAULT_LAYER.equals(env.layer) 693 ? applies(env, env.layer) 694 : applies(env, env.layer) || applies(env, Environment.DEFAULT_LAYER); 695 } 696 697 private boolean applies(Environment env, String layer) { 698 Cascade cascade = env.getCascade(layer); 693 699 return cascade != null && (not ^ cascade.containsKey(id)); 694 700 } -
trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTest.java
r17743 r17745 125 125 "way[railway][bridge=yes]::bridges { z-index: 1; casting-width: 4; casing-color: #797979 }", 126 126 "way[bridge=yes]::bridges { set .bridge }\nway[railway].bridge::bridges { z-index: 1; casting-width: 4; casing-color: #797979 }", 127 // FIXME"way[bridge=yes] { set .bridge }\nway[railway].bridge::bridges { z-index: 1; casting-width: 4; casing-color: #797979 }",127 "way[bridge=yes] { set .bridge }\nway[railway].bridge::bridges { z-index: 1; casting-width: 4; casing-color: #797979 }", 128 128 }) 129 129 void testLayerMatching(String cssString) {
Note:
See TracChangeset
for help on using the changeset viewer.