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

Unified Diff: sky/engine/core/css/StyleSheetContents.cpp

Issue 799113003: Remove hasFailedOrCanceledSubresources. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/engine/core/css/StyleSheetContents.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/StyleSheetContents.cpp
diff --git a/sky/engine/core/css/StyleSheetContents.cpp b/sky/engine/core/css/StyleSheetContents.cpp
index ef8923fbc8bb1f2276e79fff68fd2cfb28228e87..f4d0d1df107d584f40a487a511d5e36ec7f9cd47 100644
--- a/sky/engine/core/css/StyleSheetContents.cpp
+++ b/sky/engine/core/css/StyleSheetContents.cpp
@@ -142,40 +142,6 @@ KURL StyleSheetContents::completeURL(const String& url) const
return m_parserContext.completeURL(url);
}
-static bool childRulesHaveFailedOrCanceledSubresources(const Vector<RefPtr<StyleRuleBase> >& rules)
-{
- for (unsigned i = 0; i < rules.size(); ++i) {
- const StyleRuleBase* rule = rules[i].get();
- switch (rule->type()) {
- case StyleRuleBase::Style:
- if (toStyleRule(rule)->properties().hasFailedOrCanceledSubresources())
- return true;
- break;
- case StyleRuleBase::FontFace:
- if (toStyleRuleFontFace(rule)->properties().hasFailedOrCanceledSubresources())
- return true;
- break;
- case StyleRuleBase::Media:
- if (childRulesHaveFailedOrCanceledSubresources(toStyleRuleMedia(rule)->childRules()))
- return true;
- break;
- case StyleRuleBase::Keyframes:
- case StyleRuleBase::Unknown:
- case StyleRuleBase::Keyframe:
- case StyleRuleBase::Supports:
- case StyleRuleBase::Filter:
- break;
- }
- }
- return false;
-}
-
-bool StyleSheetContents::hasFailedOrCanceledSubresources() const
-{
- ASSERT(isCacheable());
- return childRulesHaveFailedOrCanceledSubresources(m_childRules);
-}
-
Document* StyleSheetContents::clientSingleOwnerDocument() const
{
if (!m_hasSingleOwnerDocument || clientSize() <= 0)
« no previous file with comments | « sky/engine/core/css/StyleSheetContents.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698