Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
parent
c648dedbde
commit
97b8365caf
17478 changed files with 606493 additions and 100744 deletions
|
@ -464,6 +464,16 @@ public class HTML
|
|||
*/
|
||||
public static final Attribute WIDTH = new Attribute("width");
|
||||
|
||||
/**
|
||||
* This is used to reflect the pseudo class for the a tag.
|
||||
*/
|
||||
static final Attribute PSEUDO_CLASS = new Attribute("_pseudo");
|
||||
|
||||
/**
|
||||
* This is used to reflect the dynamic class for the a tag.
|
||||
*/
|
||||
static final Attribute DYNAMIC_CLASS = new Attribute("_dynamic");
|
||||
|
||||
/**
|
||||
* The attribute name.
|
||||
*/
|
||||
|
@ -1119,8 +1129,8 @@ public class HTML
|
|||
static final int BLOCK = 2;
|
||||
static final int PREFORMATTED = 4;
|
||||
static final int SYNTHETIC = 8;
|
||||
private static Map tagMap;
|
||||
private static Map attrMap;
|
||||
private static Map<String,Tag> tagMap;
|
||||
private static Map<String,Attribute> attrMap;
|
||||
|
||||
/**
|
||||
* The public constructor (does nothing). It it seldom required to have
|
||||
|
@ -1159,7 +1169,7 @@ public class HTML
|
|||
if (attrMap == null)
|
||||
{
|
||||
// Create the map on demand.
|
||||
attrMap = new TreeMap();
|
||||
attrMap = new TreeMap<String,Attribute>();
|
||||
|
||||
Attribute[] attrs = getAllAttributeKeys();
|
||||
|
||||
|
@ -1169,7 +1179,7 @@ public class HTML
|
|||
}
|
||||
}
|
||||
|
||||
return (Attribute) attrMap.get(attName.toLowerCase());
|
||||
return attrMap.get(attName.toLowerCase());
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -1228,7 +1238,7 @@ public class HTML
|
|||
if (tagMap == null)
|
||||
{
|
||||
// Create the mao on demand.
|
||||
tagMap = new TreeMap();
|
||||
tagMap = new TreeMap<String,Tag>();
|
||||
|
||||
Tag[] tags = getAllTags();
|
||||
|
||||
|
@ -1238,6 +1248,6 @@ public class HTML
|
|||
}
|
||||
}
|
||||
|
||||
return (Tag) tagMap.get(tagName.toLowerCase());
|
||||
return tagMap.get(tagName.toLowerCase());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue