Details
Static Properties (12)
-
__LZPropertyCache
-
static public var __LZPropertyCache = { ... };
-
__LZRuleCache
-
static private var __LZRuleCache = { ... };
-
_nameRules
-
static private var _nameRules = { ... };
optimization for selectors which use [name="value"]
-
_rulenum
-
static private var _rulenum = 0.0;
-
_rules
-
static private var _rules = { ... };
-
_sel_attribute
-
static private var _sel_attribute = 5;
-
_sel_compound
-
static private var _sel_compound = 4;
-
_sel_id
-
static private var _sel_id = 2;
-
_sel_star
-
static private var _sel_star = 1;
-
_sel_tag
-
static private var _sel_tag = 3;
-
_sel_tagAndAttr
-
static private var _sel_tagAndAttr = 6;
-
_sel_unknown
-
static private var _sel_unknown = 0.0;
Static Methods (10)
-
_addRule()
-
static private function _addRule(r);
-
__compareSpecificity()
-
static private function __compareSpecificity(rA, rB);
-
_compoundSelectorApplies()
-
static private function _compoundSelectorApplies(rp, node);
-
getComputedStyle()
-
static public function getComputedStyle(node);
-
getPropertyValueFor()
-
static public function getPropertyValueFor(initialnode, pname);
-
getSelectorSpecificity()
-
static public function getSelectorSpecificity(parsedsel);
-
_normalizeClassname()
-
static private function _normalizeClassname(cn);
The tag name of some nodes doesn't match the associated class name, ie,
nodes declared with tag <view> are instances of LzView, not instances of view.
This function normalizes tag names into class names. The complete tag to classname
mapping is listed in LaszloInitiator.as. For speed and size, I am only actually
mapping the class names which it seems sane to style. I am excluding data-related
classes, because they will have undefined behavior when used together with CSS.
-
_parseSelector()
-
static private function _parseSelector(sel);
-
_parseStringSelector()
-
static private function _parseStringSelector(sel);
-
_printRuleArray()
-
static private function _printRuleArray(arr);
JavaScript Synopsis
public var LzCSSStyle = { ... };