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

Unified Diff: Source/core/css/StyleRuleKeyframe.cpp

Issue 1184143003: Remove CSSParserValue usage from StyleRuleKeyframe (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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/core/css/StyleRuleKeyframe.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/StyleRuleKeyframe.cpp
diff --git a/Source/core/css/StyleRuleKeyframe.cpp b/Source/core/css/StyleRuleKeyframe.cpp
index 186adeab75bdc319f4d1db3170d7b78d8c83d03d..d2d1b4454883bd8bf1ebcd1de4c2c568a24e6012 100644
--- a/Source/core/css/StyleRuleKeyframe.cpp
+++ b/Source/core/css/StyleRuleKeyframe.cpp
@@ -7,7 +7,6 @@
#include "core/css/StylePropertySet.h"
#include "core/css/parser/CSSParser.h"
-#include "core/css/parser/CSSParserValues.h"
#include "wtf/text/StringBuilder.h"
namespace blink {
@@ -71,25 +70,6 @@ String StyleRuleKeyframe::cssText() const
return result.toString();
}
-PassOwnPtr<Vector<double>> StyleRuleKeyframe::createKeyList(CSSParserValueList* keys)
-{
- size_t numKeys = keys ? keys->size() : 0;
- OwnPtr<Vector<double>> keyVector = adoptPtr(new Vector<double>(numKeys));
- for (size_t i = 0; i < numKeys; ++i) {
- ASSERT(keys->valueAt(i)->unit == CSSPrimitiveValue::CSS_NUMBER);
- double key = keys->valueAt(i)->fValue;
- if (key < 0 || key > 100) {
- // As per http://www.w3.org/TR/css3-animations/#keyframes,
- // "If a keyframe selector specifies negative percentage values
- // or values higher than 100%, then the keyframe will be ignored."
- keyVector->clear();
- break;
- }
- keyVector->at(i) = key / 100;
- }
- return keyVector.release();
-}
-
DEFINE_TRACE_AFTER_DISPATCH(StyleRuleKeyframe)
{
visitor->trace(m_properties);
« no previous file with comments | « Source/core/css/StyleRuleKeyframe.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698