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

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

Issue 23264017: Implement support for unprefixed keyframes rules resolution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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/CSSKeyframesRule.h ('k') | Source/core/css/CSSParser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSKeyframesRule.cpp
diff --git a/Source/core/css/CSSKeyframesRule.cpp b/Source/core/css/CSSKeyframesRule.cpp
index 80c69288d767fb8ab6fdd23681a90c63815a49c3..b4fbb0e3d996795b3b67315c4c5d3c3585880b38 100644
--- a/Source/core/css/CSSKeyframesRule.cpp
+++ b/Source/core/css/CSSKeyframesRule.cpp
@@ -43,6 +43,7 @@ StyleRuleKeyframes::StyleRuleKeyframes(const StyleRuleKeyframes& o)
: StyleRuleBase(o)
, m_keyframes(o.m_keyframes)
, m_name(o.m_name)
+ , m_isPrefixed(o.m_isPrefixed)
{
}
@@ -88,6 +89,7 @@ CSSKeyframesRule::CSSKeyframesRule(StyleRuleKeyframes* keyframesRule, CSSStyleSh
: CSSRule(parent)
, m_keyframesRule(keyframesRule)
, m_childRuleCSSOMWrappers(keyframesRule->keyframes().size())
+ , m_isPrefixed(keyframesRule->isVendorPrefixed())
{
}
@@ -151,7 +153,10 @@ CSSKeyframeRule* CSSKeyframesRule::findRule(const String& s)
String CSSKeyframesRule::cssText() const
{
StringBuilder result;
- result.append("@-webkit-keyframes ");
+ if (isVendorPrefixed())
+ result.append("@-webkit-keyframes ");
+ else
+ result.append("@keyframes ");
result.append(name());
result.append(" { \n");
« no previous file with comments | « Source/core/css/CSSKeyframesRule.h ('k') | Source/core/css/CSSParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698