Name

LzCSSStyle (as2)

Synopsis

JavaScript: LzCSSStyle
Type: Object
Access: public
Runtimes: as2
Topic: LFC.CSS
Declared in: WEB-INF/lps/lfc/services/platform/swf/LzCSSStyle.js

Details

Static Properties (5)

__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 = { ... };
_selTypes
static private var _selTypes = { ... };

Static Methods (10)

_addRule()
static private function _addRule(r);
__compareSpecificity()
static private function __compareSpecificity(rA, rB);
getComputedStyle()
static public function getComputedStyle(node);
getPropertyValueFor()
static public function getPropertyValueFor(node, 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);
_selectorApplies()
static private function _selectorApplies(rule, rp, node);

JavaScript Synopsis

public var LzCSSStyle = { ... };