public void setDirection(CSSDirection direction) { if (cssstyle.direction != direction) { cssstyle.direction = direction; dirty(); } }