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