| Index: Source/core/css/CSSKeyframesRule.cpp
|
| diff --git a/Source/core/css/CSSKeyframesRule.cpp b/Source/core/css/CSSKeyframesRule.cpp
|
| index ea44a94b856fae90010e410dab69731f1ed784ba..85e2e72a2db587761d5fab65223d68cb041fd12c 100644
|
| --- a/Source/core/css/CSSKeyframesRule.cpp
|
| +++ b/Source/core/css/CSSKeyframesRule.cpp
|
| @@ -30,6 +30,7 @@
|
| #include "core/css/CSSRuleList.h"
|
| #include "core/css/CSSStyleSheet.h"
|
| #include "core/css/parser/CSSParser.h"
|
| +#include "core/dom/Document.h"
|
| #include "core/frame/UseCounter.h"
|
| #include "wtf/text/StringBuilder.h"
|
|
|
| @@ -122,7 +123,8 @@ void CSSKeyframesRule::appendRule(const String& ruleText)
|
| ASSERT(m_childRuleCSSOMWrappers.size() == m_keyframesRule->keyframes().size());
|
|
|
| CSSStyleSheet* styleSheet = parentStyleSheet();
|
| - CSSParserContext context(parserContext(), UseCounter::getFrom(styleSheet));
|
| + Document* doc = styleSheet ? styleSheet->ownerDocument() : 0;
|
| + CSSParserContext context(parserContext(), doc ? doc->frame() : 0, UseCounter::getFrom(styleSheet));
|
| RefPtrWillBeRawPtr<StyleRuleKeyframe> keyframe = CSSParser::parseKeyframeRule(context, ruleText);
|
| if (!keyframe)
|
| return;
|
|
|