File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ public final int getType() {
36
36
static final CssIdent ellipse = CssIdent .getIdent ("ellipse" );
37
37
static final CssIdent from = CssIdent .getIdent ("from" );
38
38
static final CssIdent [] extent_keywords ;
39
+ static final CssIdent [] image_tags ;
39
40
40
41
static {
41
42
String _val [] = {"closest-corner" , "closest-side" ,
@@ -45,6 +46,12 @@ public final int getType() {
45
46
for (String s : _val ) {
46
47
extent_keywords [i ++] = CssIdent .getIdent (s );
47
48
}
49
+ String _img_tags [] = { "ltr" , "rtl" };
50
+ image_tags = new CssIdent [_img_tags .length ];
51
+ i = 0 ;
52
+ for (String s : _img_tags ) {
53
+ image_tags [i ++] = CssIdent .getIdent (s );
54
+ }
48
55
}
49
56
50
57
boolean contains_variable = false ;
@@ -86,6 +93,15 @@ public static CssIdent getExtentIdent(CssIdent ident) {
86
93
return null ;
87
94
}
88
95
96
+ public static CssIdent getImageTag (CssIdent ident ) {
97
+ for (CssIdent id : image_tags ) {
98
+ if (id .equals (ident )) {
99
+ return id ;
100
+ }
101
+ }
102
+ return null ;
103
+ }
104
+
89
105
public static CssIdent getShape (CssIdent ident ) {
90
106
if (circle .equals (ident )) {
91
107
return circle ;
You can’t perform that action at this time.
0 commit comments