Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: Source/WebCore/inspector/InspectorStyleSheet.cpp

Issue 11841005: Merge 138460 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/inspector/InspectorStyleSheet.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/WebCore/inspector/InspectorStyleSheet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698