An Element with style.
Keeps a list of associated style classes, and automatically matches against the ownerDocument's StyleSheet.
Recognizes the "style" attribute when parsing from XML.
name to value.
Similar to Return the value of the "style trait" name. Style traits
differ from normal traits in a few aspects:
inherit is true or omitted,
or the trait has the special type DOCME: move this doc somewhere else?
Hook function. Derived classes can override this to do something when the element's style changes (like redraw).
In reality, it is not strictly always called when the style would change-- notably, if the style comes from a StyleSheet, and either the StyleSheet changes or this element would match different selectors (because it changed in the display hierarchy), or similar things, it will *not* be called, in the current implementation.
Note, however, that setting any trait with setStyleTrait, or changing a StyledElement's style classes does indeed trigger a call to styleChanged.
name, and re-match against ownerDocument's StyleSheet.
name, and re-match against ownerDocument's StyleSheet.
true if name is in the list of style classes.
Return the element's XML tag name.
FIXME: this needs rework. currently, tagName must be
set "manually" by deriving classes.
true if the object matches
the given Selector s, false otherwise.