Lines Matching defs:index
60 unsigned CSSGroupingRule::insertRule(const String& ruleString, unsigned index, ExceptionCode& ec)
64 if (index > m_groupRule->childRules().size()) {
65 // INDEX_SIZE_ERR: Raised if the specified index is not a valid insertion point.
85 // index, e.g., if an @import rule is inserted after a standard rule set or other
92 m_groupRule->wrapperInsertRule(index, newRule);
94 m_childRuleCSSOMWrappers.insert(index, RefPtr<CSSRule>());
95 return index;
98 void CSSGroupingRule::deleteRule(unsigned index, ExceptionCode& ec)
102 if (index >= m_groupRule->childRules().size()) {
103 // INDEX_SIZE_ERR: Raised if the specified index does not correspond to a
111 m_groupRule->wrapperRemoveRule(index);
113 if (m_childRuleCSSOMWrappers[index])
114 m_childRuleCSSOMWrappers[index]->setParentRule(0);
115 m_childRuleCSSOMWrappers.remove(index);
133 CSSRule* CSSGroupingRule::item(unsigned index) const
135 if (index >= length())
138 RefPtr<CSSRule>& rule = m_childRuleCSSOMWrappers[index];
140 rule = m_groupRule->childRules()[index]->createCSSOMWrapper(const_cast<CSSGroupingRule*>(this));