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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp

Issue 2390373002: Fix setting properties on CSSFontFaceRule (Closed)
Patch Set: Patch for landing Created 4 years, 2 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
Index: third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
diff --git a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
index c1bad3372fb9d780282b6e0427ad62ec59205b8a..677d494070faf999275a4f8f6eee5b2949fb71f1 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
+++ b/third_party/WebKit/Source/core/css/parser/CSSParserImpl.cpp
@@ -49,6 +49,8 @@ bool CSSParserImpl::parseValue(MutableStylePropertySet* declaration,
StyleRule::RuleType ruleType = StyleRule::Style;
if (declaration->cssParserMode() == CSSViewportRuleMode)
ruleType = StyleRule::Viewport;
+ else if (declaration->cssParserMode() == CSSFontFaceRuleMode)
+ ruleType = StyleRule::FontFace;
CSSTokenizer::Scope scope(string);
parser.consumeDeclarationValue(scope.tokenRange(), unresolvedProperty,
important, ruleType);
@@ -633,7 +635,7 @@ StyleRuleFontFace* CSSParserImpl::consumeFontFaceRule(
consumeDeclarationList(block, StyleRule::FontFace);
return StyleRuleFontFace::create(
- createStylePropertySet(m_parsedProperties, m_context.mode()));
+ createStylePropertySet(m_parsedProperties, CSSFontFaceRuleMode));
}
StyleRuleKeyframes* CSSParserImpl::consumeKeyframesRule(

Powered by Google App Engine
This is Rietveld 408576698