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

Unified Diff: Source/WebCore/css/WebKitCSSKeyframesRule.cpp

Issue 6711030: Merge 80144 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 9 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 | « LayoutTests/fast/css/css-keyframe-parent-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/css/WebKitCSSKeyframesRule.cpp
===================================================================
--- Source/WebCore/css/WebKitCSSKeyframesRule.cpp (revision 81433)
+++ Source/WebCore/css/WebKitCSSKeyframesRule.cpp (working copy)
@@ -88,7 +88,14 @@
void WebKitCSSKeyframesRule::append(WebKitCSSKeyframeRule* rule)
{
- m_lstCSSRules.get()->append(rule);
+ if (!rule)
+ return;
+
+ m_lstCSSRules->append(rule);
+ rule->setParent(this);
+
+ if (CSSMutableStyleDeclaration* style = rule->style())
+ style->setParent(this);
}
void WebKitCSSKeyframesRule::insertRule(const String& rule)
« no previous file with comments | « LayoutTests/fast/css/css-keyframe-parent-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698