OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/css/parser/CSSParser.h" | 5 #include "core/css/parser/CSSParser.h" |
6 | 6 |
| 7 #include <memory> |
7 #include "core/css/CSSColorValue.h" | 8 #include "core/css/CSSColorValue.h" |
8 #include "core/css/CSSKeyframeRule.h" | 9 #include "core/css/CSSKeyframeRule.h" |
9 #include "core/css/StyleColor.h" | 10 #include "core/css/StyleColor.h" |
10 #include "core/css/StyleRule.h" | 11 #include "core/css/StyleRule.h" |
11 #include "core/css/StyleSheetContents.h" | 12 #include "core/css/StyleSheetContents.h" |
12 #include "core/css/parser/CSSParserFastPaths.h" | 13 #include "core/css/parser/CSSParserFastPaths.h" |
13 #include "core/css/parser/CSSParserImpl.h" | 14 #include "core/css/parser/CSSParserImpl.h" |
14 #include "core/css/parser/CSSPropertyParser.h" | 15 #include "core/css/parser/CSSPropertyParser.h" |
15 #include "core/css/parser/CSSSelectorParser.h" | 16 #include "core/css/parser/CSSSelectorParser.h" |
16 #include "core/css/parser/CSSSupportsParser.h" | 17 #include "core/css/parser/CSSSupportsParser.h" |
17 #include "core/css/parser/CSSTokenizer.h" | 18 #include "core/css/parser/CSSTokenizer.h" |
18 #include "core/css/parser/CSSVariableParser.h" | 19 #include "core/css/parser/CSSVariableParser.h" |
19 #include "core/layout/LayoutTheme.h" | 20 #include "core/layout/LayoutTheme.h" |
20 #include <memory> | |
21 | 21 |
22 namespace blink { | 22 namespace blink { |
23 | 23 |
24 bool CSSParser::parseDeclarationList(const CSSParserContext* context, | 24 bool CSSParser::parseDeclarationList(const CSSParserContext* context, |
25 MutableStylePropertySet* propertySet, | 25 MutableStylePropertySet* propertySet, |
26 const String& declaration) { | 26 const String& declaration) { |
27 return CSSParserImpl::parseDeclarationList(propertySet, declaration, context); | 27 return CSSParserImpl::parseDeclarationList(propertySet, declaration, context); |
28 } | 28 } |
29 | 29 |
30 void CSSParser::parseDeclarationListForInspector( | 30 void CSSParser::parseDeclarationListForInspector( |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 builder.append(propertyValue); | 242 builder.append(propertyValue); |
243 builder.append("; }"); | 243 builder.append("; }"); |
244 StyleRuleBase* rule = parseRule(context, nullptr, builder.toString()); | 244 StyleRuleBase* rule = parseRule(context, nullptr, builder.toString()); |
245 if (!rule || !rule->isFontFaceRule()) | 245 if (!rule || !rule->isFontFaceRule()) |
246 return nullptr; | 246 return nullptr; |
247 return toStyleRuleFontFace(rule)->properties().getPropertyCSSValue( | 247 return toStyleRuleFontFace(rule)->properties().getPropertyCSSValue( |
248 propertyID); | 248 propertyID); |
249 } | 249 } |
250 | 250 |
251 } // namespace blink | 251 } // namespace blink |
OLD | NEW |