expressionToDisplay static method
Implementation
static Display expressionToDisplay(css.Expression value) {
if (value is css.LiteralTerm) {
switch(value.text) {
case 'block':
return Display.BLOCK;
case 'inline-block':
return Display.INLINE_BLOCK;
case 'inline':
return Display.INLINE;
case 'list-item':
return Display.LIST_ITEM;
case 'none':
return Display.NONE;
}
}
return Display.INLINE;
}