Index: Source/WebCore/inspector/InspectorStyleSheet.cpp |
=================================================================== |
--- Source/WebCore/inspector/InspectorStyleSheet.cpp (revision 139385) |
+++ Source/WebCore/inspector/InspectorStyleSheet.cpp (working copy) |
@@ -910,7 +910,7 @@ |
ASSERT(!id.isEmpty()); |
ensureFlatRules(); |
- return id.ordinal() >= m_flatRules.size() ? 0 : m_flatRules.at(id.ordinal()); |
+ return id.ordinal() >= m_flatRules.size() ? 0 : m_flatRules.at(id.ordinal()).get(); |
} |
@@ -1268,7 +1268,7 @@ |
m_isRevalidating = true; |
ensureFlatRules(); |
for (unsigned i = 0, size = m_flatRules.size(); i < size; ++i) { |
- CSSStyleRule* parsedRule = m_flatRules.at(i); |
+ CSSStyleRule* parsedRule = m_flatRules.at(i).get(); |
if (parsedRule->style() == pageStyle) { |
if (parsedRule->styleRule()->properties()->asText() != pageStyle->cssText()) { |
// Clear the disabled properties for the invalid style here. |
@@ -1330,16 +1330,16 @@ |
return result.release(); |
RefPtr<CSSRuleList> refRuleList = ruleList; |
- Vector<CSSStyleRule*> rules; |
+ CSSStyleRuleVector rules; |
collectFlatRules(refRuleList, &rules); |
for (unsigned i = 0, size = rules.size(); i < size; ++i) |
- result->addItem(buildObjectForRule(rules.at(i))); |
+ result->addItem(buildObjectForRule(rules.at(i).get())); |
return result.release(); |
} |
-void InspectorStyleSheet::collectFlatRules(PassRefPtr<CSSRuleList> ruleList, Vector<CSSStyleRule*>* result) |
+void InspectorStyleSheet::collectFlatRules(PassRefPtr<CSSRuleList> ruleList, CSSStyleRuleVector* result) |
{ |
if (!ruleList) |
return; |