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

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

Issue 1314923005: Deprecate 'intrinsic' and 'min-intrinsic' CSS keywords (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: a couple more tests... Created 5 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/CSSGroupingRule.cpp ('k') | Source/core/css/CSSPageRule.cpp » ('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 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;
« no previous file with comments | « Source/core/css/CSSGroupingRule.cpp ('k') | Source/core/css/CSSPageRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698