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

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

Issue 758573005: Remove CSSOM mutability in StyleRule. (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/StyleRuleKeyframes.h ('k') | sky/engine/core/css/StyleSheetContents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/StyleRuleKeyframes.cpp
diff --git a/sky/engine/core/css/StyleRuleKeyframes.cpp b/sky/engine/core/css/StyleRuleKeyframes.cpp
index 9c432fc108fae55e2a9cf0dcf23920bb62610e3c..be7ce466abc7fb600e7fa41606e8f06eb8c19fbe 100644
--- a/sky/engine/core/css/StyleRuleKeyframes.cpp
+++ b/sky/engine/core/css/StyleRuleKeyframes.cpp
@@ -35,14 +35,6 @@ StyleRuleKeyframes::StyleRuleKeyframes()
{
}
-StyleRuleKeyframes::StyleRuleKeyframes(const StyleRuleKeyframes& o)
- : StyleRuleBase(o)
- , m_keyframes(o.m_keyframes)
- , m_name(o.m_name)
- , m_isPrefixed(o.m_isPrefixed)
-{
-}
-
StyleRuleKeyframes::~StyleRuleKeyframes()
{
}
@@ -54,31 +46,4 @@ void StyleRuleKeyframes::parserAppendKeyframe(PassRefPtr<StyleKeyframe> keyframe
m_keyframes.append(keyframe);
}
-void StyleRuleKeyframes::wrapperAppendKeyframe(PassRefPtr<StyleKeyframe> keyframe)
-{
- m_keyframes.append(keyframe);
-}
-
-void StyleRuleKeyframes::wrapperRemoveKeyframe(unsigned index)
-{
- m_keyframes.remove(index);
-}
-
-int StyleRuleKeyframes::findKeyframeIndex(const String& key) const
-{
- String percentageString;
- if (equalIgnoringCase(key, "from"))
- percentageString = "0%";
- else if (equalIgnoringCase(key, "to"))
- percentageString = "100%";
- else
- percentageString = key;
-
- for (unsigned i = 0; i < m_keyframes.size(); ++i) {
- if (m_keyframes[i]->keyText() == percentageString)
- return i;
- }
- return -1;
-}
-
} // namespace blink
« no previous file with comments | « sky/engine/core/css/StyleRuleKeyframes.h ('k') | sky/engine/core/css/StyleSheetContents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698