Changeset 9398 in josm


Ignore:
Timestamp:
2016-01-11T00:20:43+01:00 (9 years ago)
Author:
Don-vip
Message:

see #12282 - drop support for canvas{background-color} (deprecated since r7110, not used anymore in any known MapCSS style)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java

    r9334 r9398  
    532532        Cascade c = constructSpecial("canvas");
    533533        backgroundColorOverride = c.get("fill-color", null, Color.class);
    534         if (backgroundColorOverride == null) {
    535             backgroundColorOverride = c.get("background-color", null, Color.class);
    536             if (backgroundColorOverride != null) {
    537                 String msg = tr("Detected deprecated ''{0}'' in ''{1}'' which will be removed shortly. Use ''{2}'' instead.",
    538                         "canvas{background-color}", url, "fill-color");
    539                 logWarning(msg);
    540                 Main.warn(msg);
    541             }
    542         }
    543534    }
    544535
  • trunk/test/data/styles/label-from-tag.mapcss

    r3991 r9398  
    1010
    1111canvas {
    12     background-color: #000000;
     12    fill-color: #000000;
    1313}
    1414
Note: See TracChangeset for help on using the changeset viewer.