Home | History | Annotate | Download | only in elements

Lines Matching defs:styleRule

553                 section.styleRule.style = nodeComputedStyle;
554 var styleRule = { section: section, style: section.styleRule.style, computedStyle: section.computedStyle, rule: section.rule, editable: !!(section.styleRule.style && section.styleRule.style.styleSheetId),
555 isAttribute: section.styleRule.isAttribute, isInherited: section.styleRule.isInherited, parentNode: section.styleRule.parentNode };
556 styleRules.push(styleRule);
650 var styleRule = styleRules[i];
651 if (styleRule.computedStyle || styleRule.isStyleSeparator)
653 if (styleRule.section && styleRule.section.noAffect)
656 styleRule.usedProperties = {};
658 var style = styleRule.style;
666 if (styleRule.isInherited && !WebInspector.CSSMetadata.isPropertyInherited(property.name))
677 if (!isKnownProperty && styleRule.isInherited && !inheritedPropertyToNode[canonicalName])
678 inheritedPropertyToNode[canonicalName] = styleRule.parentNode;
681 if (styleRule.isInherited && isKnownProperty && styleRule.parentNode !== inheritedPropertyToNode[canonicalName])
689 styleRule.usedProperties[canonicalName] = true;
691 propertyToEffectiveRule[canonicalName] = styleRule;
700 var styleRule = styleRules[i];
701 var section = styleRule.section;
702 if (styleRule.computedStyle) {
706 section._usedProperties = styleRule.usedProperties;
722 var styleRule = styleRules[i];
723 if (styleRule.isStyleSeparator) {
725 if (styleRule.isPlaceholder) {
731 if (styleRule.node) {
732 var link = WebInspector.DOMPresentationUtils.linkifyNodeReference(styleRule.node);
737 } else if ("pseudoId" in styleRule) {
738 var pseudoName = WebInspector.StylesSidebarPane.PseudoIdNames[styleRule.pseudoId];
744 separatorElement.textContent = styleRule.text;
748 var computedStyle = styleRule.computedStyle;
751 var editable = styleRule.editable;
756 var section = new WebInspector.ComputedStylePropertiesSection(this, styleRule, usedProperties);
758 var section = new WebInspector.StylePropertiesSection(this, styleRule, editable, styleRule.isInherited);
1077 * @param {!Object} styleRule
1081 WebInspector.StylePropertiesSection = function(parentPane, styleRule, editable, isInherited)
1086 this.styleRule = styleRule;
1087 this.rule = this.styleRule.rule;
1098 this._selectorElement.textContent = styleRule.selectorText;
1127 this._usedProperties = styleRule.usedProperties;
1165 * @param {!Object} styleRule
1167 _createMediaList: function(styleRule)
1169 if (!styleRule.media)
1171 for (var i = styleRule.media.length - 1; i >= 0; --i) {
1172 var media = styleRule.media[i];
1222 this._createMediaList(this.styleRule);
1271 var longhandProperties = this.styleRule.style.longhandProperties(propertyName);
1321 if (this.styleRule.selectorText)
1322 this._selectorElement.textContent = this.styleRule.selectorText;
1347 var style = this.styleRule.style;
1362 var item = new WebInspector.StylePropertyTreeElement(this._parentPane, this.styleRule, style, property, isShorthand, inherited, overloaded);
1396 var item = new WebInspector.StylePropertyTreeElement(this._parentPane, this.styleRule, style, shorthandProperty, /* isShorthand */ true, /* inherited */ false, overloaded);
1406 var item = new WebInspector.StylePropertyTreeElement(this._parentPane, this.styleRule, style, property, isShorthand, inherited, overloaded);
1413 if (this.styleRule.isAttribute)
1425 if (this.styleRule.rule)
1431 var rule = this.styleRule.rule;
1498 var style = this.styleRule.style;
1500 var item = new WebInspector.StylePropertyTreeElement(this._parentPane, this.styleRule, style, property, false, false, false);
1524 if (this.styleRule.sourceURL) {
1525 var firstMatchingIndex = this.styleRule.rule.matchingSelectors && this.rule.matchingSelectors.length ? this.rule.matchingSelectors[0] : 0;
1526 var matchingSelectorLocation = new WebInspector.CSSLocation(this._parentPane._target, this.styleRule.sourceURL, this.rule.lineNumberInSource(firstMatchingIndex), this.rule.columnNumberInSource(firstMatchingIndex));
1527 return this._parentPane._linkifier.linkifyCSSLocation(this.rule.styleSheetId, matchingSelectorLocation) || linkifyUncopyable(this.styleRule.sourceURL, this.rule.lineNumberInSource());
1669 this.styleRule = { section: this, style: newRule.style, selectorText: newRule.selectorText, media: newRule.media, sourceURL: newRule.resourceURL(), rule: newRule };
1718 * @param {!Object} styleRule
1721 WebInspector.ComputedStylePropertiesSection = function(stylesPane, styleRule, usedProperties)
1753 this.styleRule = styleRule;
1799 var style = this.styleRule.style;
1813 var item = new WebInspector.ComputedStylePropertyTreeElement(this._stylesPane, this.styleRule, style, property, inherited);
1838 selector.textContent = section.styleRule.selectorText;
1905 var styleRule = { section: this, style: newRule.style, selectorText: newRule.selectorText, sourceURL: newRule.resourceURL(), rule: newRule };
1906 this.makeNormal(styleRule);
1956 makeNormal: function(styleRule)
1959 this.styleRule = styleRule;
1960 this.rule = styleRule.rule;
1972 * @param {!Object} styleRule
1979 WebInspector.StylePropertyTreeElementBase = function(styleRule, style, property, inherited, overloaded, hasChildren)
1981 this._styleRule = styleRule;
2414 * @param {!Object} styleRule
2419 WebInspector.ComputedStylePropertyTreeElement = function(stylesPane, styleRule, style, property, inherited)
2421 WebInspector.StylePropertyTreeElementBase.call(this, styleRule, style, property, inherited, false, false);
2463 * @param {!Object} styleRule
2470 WebInspector.StylePropertyTreeElement = function(stylesPane, styleRule, style, property, isShorthand, inherited, overloaded)
2472 WebInspector.StylePropertyTreeElementBase.call(this, styleRule, style, property, inherited, overloaded, isShorthand);