Changeset 15912 in josm for trunk/src/com/kitfox/svg/SVGElement.java
- Timestamp:
- 2020-02-23T13:40:09+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/kitfox/svg/SVGElement.java
r15904 r15912 47 47 import java.util.LinkedList; 48 48 import java.util.List; 49 import java.util.Map; 49 50 import java.util.Set; 50 51 import java.util.regex.Matcher; … … 89 90 * Styles defined for this elemnt via the <b>style</b> attribute. 90 91 */ 91 pr otected final HashMap<String, String> inlineStyles = new HashMap<>();92 private Map<String, String> inlineStyles = Collections.emptyMap(); 92 93 /** 93 94 * Presentation attributes set for this element. Ie, any attribute other 94 95 * than the <b>style</b> attribute. 95 96 */ 96 pr otected final HashMap<String, String> presAttributes = new HashMap<>();97 private Map<String, String> presAttributes = Collections.emptyMap(); 97 98 /** 98 99 * A list of presentation attributes to not include in the presentation … … 273 274 if (style != null) 274 275 { 275 XMLParseUtil.parseStyle(style, inlineStyles);276 inlineStyles = XMLParseUtil.parseStyle(style); 276 277 } 277 278 … … 299 300 String value = attrs.getValue(i); 300 301 302 if (i == 0) 303 { 304 presAttributes = new HashMap<>(); 305 } 301 306 presAttributes.put(name, value == null ? null : value.intern()); 302 307 } 308 presAttributes = XMLParseUtil.toUnmodifiableMap(presAttributes); 303 309 } 304 310
Note:
See TracChangeset
for help on using the changeset viewer.