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

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

Issue 872893002: Remove lots of @keyframes related code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 | « sky/engine/core/css/RuleSet.h ('k') | sky/engine/core/css/resolver/ScopedStyleResolver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/RuleSet.cpp
diff --git a/sky/engine/core/css/RuleSet.cpp b/sky/engine/core/css/RuleSet.cpp
index ce4528128d32bd1cb7e82dcb27b9ef6169aa7376..08a2bd3232c62ead840e519a8fb702508320c28f 100644
--- a/sky/engine/core/css/RuleSet.cpp
+++ b/sky/engine/core/css/RuleSet.cpp
@@ -34,7 +34,6 @@
#include "sky/engine/core/css/CSSSelector.h"
#include "sky/engine/core/css/CSSSelectorList.h"
#include "sky/engine/core/css/SelectorChecker.h"
-#include "sky/engine/core/css/StyleRuleKeyframes.h"
#include "sky/engine/core/css/StyleSheetContents.h"
#include "sky/engine/platform/TraceEvent.h"
#include "sky/engine/wtf/TerminatedArrayBuilder.h"
@@ -141,12 +140,6 @@ void RuleSet::addFontFaceRule(StyleRuleFontFace* rule)
m_fontFaceRules.append(rule);
}
-void RuleSet::addKeyframesRule(StyleRuleKeyframes* rule)
-{
- ensurePendingRules(); // So that m_keyframesRules.shrinkToFit() gets called.
- m_keyframesRules.append(rule);
-}
-
void RuleSet::addChildRules(const Vector<RefPtr<StyleRuleBase> >& rules)
{
for (unsigned i = 0; i < rules.size(); ++i) {
@@ -161,7 +154,7 @@ void RuleSet::addChildRules(const Vector<RefPtr<StyleRuleBase> >& rules)
} else if (rule->isFontFaceRule()) {
addFontFaceRule(toStyleRuleFontFace(rule));
} else if (rule->isKeyframesRule()) {
- addKeyframesRule(toStyleRuleKeyframes(rule));
+ // TODO(esprehn): remove this.
} else if (rule->isSupportsRule() && toStyleRuleSupports(rule)->conditionIsSupported()) {
addChildRules(toStyleRuleSupports(rule)->childRules());
}
@@ -208,7 +201,6 @@ void RuleSet::compactRules()
compactPendingRules(pendingRules->tagRules, m_tagRules);
m_universalRules.shrinkToFit();
m_fontFaceRules.shrinkToFit();
- m_keyframesRules.shrinkToFit();
}
#ifndef NDEBUG
« no previous file with comments | « sky/engine/core/css/RuleSet.h ('k') | sky/engine/core/css/resolver/ScopedStyleResolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698